|
@@ -51,6 +51,11 @@
|
|
|
:scroll="{ y: tableHeight }"
|
|
|
:defaultLoadData="false"
|
|
|
bordered>
|
|
|
+ <!-- 客户名称 -->
|
|
|
+ <template slot="customerName" slot-scope="text, record">
|
|
|
+ <span v-if="record.settleClientType&&record.settleClientType=='CUSTOMER'">{{ record.settleClientNameCurrent||'--' }}</span>
|
|
|
+ <span v-else>{{ record.settleClientName||'--' }}</span>
|
|
|
+ </template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<a-button
|
|
@@ -96,7 +101,7 @@ export default {
|
|
|
// 表头
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
|
- { title: '客户名称', dataIndex: 'settleClientNameCurrent', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '客户名称', width: '20%', align: 'center', scopedSlots: { customRender: 'customerName' } },
|
|
|
{ title: '单位类型', dataIndex: 'settleClientTypeDictValue', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '应收金额', dataIndex: 'unSettleAmountReceipt', width: '20%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
{ title: '应付金额', dataIndex: 'unSettleAmountPay', width: '20%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
@@ -131,7 +136,11 @@ export default {
|
|
|
methods: {
|
|
|
// 详情
|
|
|
handleDetail (row) {
|
|
|
- this.$router.push({ path: `/financialManagement/companyReceivablePayable/detail/${row.settleClientSn}/${row.settleClientNameCurrent}/${row.settleClientType}` })
|
|
|
+ if (row.settleClientType == 'CUSTOMER') {
|
|
|
+ this.$router.push({ path: `/financialManagement/companyReceivablePayable/detail/${row.settleClientSn}/${row.settleClientNameCurrent}/${row.settleClientType}` })
|
|
|
+ } else {
|
|
|
+ this.$router.push({ path: `/financialManagement/companyReceivablePayable/detail/${row.settleClientSn}/${row.settleClientName}/${row.settleClientType}` })
|
|
|
+ }
|
|
|
},
|
|
|
// 合计
|
|
|
getTotal (param) {
|
|
@@ -145,7 +154,11 @@ export default {
|
|
|
},
|
|
|
// 收付款
|
|
|
handleCollectionPayment (row) {
|
|
|
- this.$router.push({ path: `/financialManagement/companyReceivablePayable/collectionPayment/${row.settleClientSn}/${row.settleClientNameCurrent}/${row.settleClientType}` })
|
|
|
+ if (row.settleClientType == 'CUSTOMER') {
|
|
|
+ this.$router.push({ path: `/financialManagement/companyReceivablePayable/collectionPayment/${row.settleClientSn}/${row.settleClientNameCurrent}/${row.settleClientType}` })
|
|
|
+ } else {
|
|
|
+ this.$router.push({ path: `/financialManagement/companyReceivablePayable/collectionPayment/${row.settleClientSn}/${row.settleClientName}/${row.settleClientType}` })
|
|
|
+ }
|
|
|
},
|
|
|
// 重置
|
|
|
resetSearchForm () {
|