Files
jsowell-charger-web/jsowell-ui/src/views/financial/merchant.vue

194 lines
5.3 KiB
Vue
Raw Normal View History

2023-07-06 09:56:19 +08:00
<template>
<div class="app-container">
<el-table
2023-07-06 15:48:06 +08:00
:data="merchantList"
stripe
border
style="width: 100%">
<el-table-column
prop="merchantName"
label="运营商"
align="center"
/>
<el-table-column
prop="organizationCode"
label="组织机构代码"
align="center"
/>
<el-table-column
prop="status"
label="状态"
align="center"
width="130"
>
<template slot-scope="scope">
<dict-tag
:options="dict.type.merchant_status"
:value="scope.row.status"
/>
</template>
</el-table-column>
<el-table-column
prop="managerName"
label="联系人"
align="center"
width="130"
/>
<el-table-column
prop="managerPhone"
label="联系方式"
align="center"
width="300"
/>
<el-table-column
prop="createTime"
label="入驻时间"
align="center"
/>
<el-table-column
prop="address"
label="操作"
align="center">
2023-07-07 14:39:16 +08:00
<template slot-scope="scope">
2023-07-06 15:48:06 +08:00
<!-- :to="'/merchant/detail/index/' + scope.row.id" -->
2023-07-06 09:56:19 +08:00
<router-link
2023-07-07 14:39:16 +08:00
:to="{path:'/financial/merchant/merchantVirtual', query: {merchantId: scope.row.id}} "
2023-07-06 09:56:19 +08:00
class="link-type"
>
<span>虚拟财务</span>
</router-link>
2023-07-06 15:48:06 +08:00
<router-link
:to="{path:'/financial/merchant/cleanFinancial', query: {merchantId: scope.row.id}} "
2023-07-06 09:56:19 +08:00
class="link-type"
>
<span style="margin-left:10px;color: darkblue;">清分财务</span>
</router-link>
</template>
2023-07-06 15:48:06 +08:00
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getFinancialMerchantList"
/>
2023-07-06 09:56:19 +08:00
</div>
2023-07-07 09:11:55 +08:00
2023-07-06 09:56:19 +08:00
</template>
<script>
2023-07-06 15:48:06 +08:00
import {getFinancialMerchantList} from "@/api/pile/merchant";
2023-07-06 09:56:19 +08:00
export default {
2023-07-06 15:48:06 +08:00
dicts: ["merchant_status"],
2023-07-06 09:56:19 +08:00
data() {
return {
2023-07-06 15:48:06 +08:00
// 运营商列表
merchantList: [],
2023-07-06 09:56:19 +08:00
showOrHideText: "显示更多查询条件",
buttonBoolean: false,
//图标,可根据自己的需求匹配
icon: "el-icon-caret-bottom",
2023-07-06 15:48:06 +08:00
total: 0,
queryParams: {
pageNum: 1,
2023-07-07 14:39:16 +08:00
pageSize: 10
}
2023-07-06 09:56:19 +08:00
};
},
created() {
2023-07-06 15:48:06 +08:00
this.getFinancialMerchantList();
2023-07-06 09:56:19 +08:00
},
methods: {
showOrHide() {
if (this.buttonBoolean) {
this.icon = "el-icon-caret-bottom";
this.showOrHideText = "显示更多查询条件";
this.buttonBoolean = !this.buttonBoolean;
} else {
this.icon = "el-icon-caret-top";
this.showOrHideText = "收起";
this.buttonBoolean = !this.buttonBoolean;
}
},
2023-07-06 15:48:06 +08:00
// 获取运营商列表
getFinancialMerchantList() {
2023-07-07 14:39:16 +08:00
getFinancialMerchantList(this.queryParams).then((response) => {
2023-07-06 15:48:06 +08:00
this.merchantList = response.rows;
2023-07-07 09:11:55 +08:00
this.total = response.total;
2023-07-06 15:48:06 +08:00
})
},
2023-07-06 09:56:19 +08:00
// 取消按钮
cancel() {
this.open = false;
this.reset();
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
// 获取订单列表
// this.getList();
// 获取订单总金额
// this.getOrderTotalData();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
// this.handleQuery();
},
/** 导出按钮操作 */
handleExport() {
// this.download(
// "order/order/export",
// {
// ...this.queryParams,
// },
// `order_${new Date().getTime()}.xlsx`
// );
},
},
};
</script>
<style lang="scss" scoped>
::v-deep
2023-07-06 15:48:06 +08:00
.el-descriptions--medium:not(.is-bordered)
.el-descriptions-item__cell {
2023-07-06 09:56:19 +08:00
padding-bottom: 4px;
}
2023-07-06 15:48:06 +08:00
2023-07-06 09:56:19 +08:00
::v-deep .el-descriptions__header {
margin-bottom: 10px;
}
2023-07-06 15:48:06 +08:00
2023-07-06 09:56:19 +08:00
.cardview-box {
width: 100%;
margin-bottom: 12px;
font-size: 16px;
color: #4a4a4a;
border: 1px solid #f0f0f0;
}
2023-07-06 15:48:06 +08:00
2023-07-06 09:56:19 +08:00
.cardview-static {
height: 100%;
width: 100%;
display: flex;
justify-content: space-between;
align-content: center;
padding: 0 10px;
height: 46px;
line-height: 46px;
background-color: #f0f0f0;
}
2023-07-06 15:48:06 +08:00
2023-07-06 09:56:19 +08:00
.flex {
display: flex;
justify-content: space-between;
align-content: center;
margin-bottom: 10px;
}
</style>