From 4688b34ca6bab0925189b73b62d466c2bff10eef Mon Sep 17 00:00:00 2001 From: linfso Date: Thu, 13 Mar 2025 21:38:58 +0800 Subject: [PATCH] md --- src/views/emis/emisCreditCustomer/index.vue | 76 ++----------------- src/views/emis/emisCreditSalesmen/index.vue | 81 +++------------------ 2 files changed, 15 insertions(+), 142 deletions(-) diff --git a/src/views/emis/emisCreditCustomer/index.vue b/src/views/emis/emisCreditCustomer/index.vue index fb409471..74ec8845 100644 --- a/src/views/emis/emisCreditCustomer/index.vue +++ b/src/views/emis/emisCreditCustomer/index.vue @@ -440,80 +440,16 @@ export default { if (j === 'index') { return ++index } - if (j === 'kjlx') { - return v['sendSiteName']+'--'+v['dispatchUnderlingSiteName']; + if (j === 'curMoney') { + return (v['creditMoney'] - v['useMoney']).toFixed(2); } - if (j === 'fjr') { - return v['sendName']+'--'+v['receiveName']; + if (j === 'curMoneyRate') { + return (((v['creditMoney'] - v['useMoney'])/v['creditMoney'])*100 ).toFixed(2); } - if (j === 'custName') { - let paymentType=v['paymentType']; - if(paymentType==2 || paymentType==4 || paymentType==5 ){ - return v['custName']; - }else{ - return ""; - } + if (j === 'transType') { + return this.selectDictLabel(this.dict.type.emis_biz_shipping_method,v[j]); } - if (j === 'sendMobile') { - return ""; - } - if (j === 'paymentStatus') { - return this.selectDictLabel(this.dict.type.emis_payment_status,v[j]); - } - - if (j === 'pickupMethod') { - return this.selectDictLabel(this.dict.type.emis_qujian_fangshi,v[j]); - } - if (j === 'customsEclaration') { - return this.selectDictLabel(this.dict.type.emis_declare_mode,v[j]); - } - if (j === 'customsClear') { - return this.selectDictLabel(this.dict.type.emis_customs_clear,v[j]); - } - if (j === 'packType') { - return this.selectDictLabels(this.dict.type.emis_tab_packing_type,v[j]); - } - - if (j === 'dispatchMethod') { - if(v[j] == 1){ - return '派送'; - }else{ - return '自提'; - } - } - if (j === 'blUploadPic') { - if(v['goodsPics']!=null && v['goodsPics']!=''){ - return '是'; - }else{ - return '否'; - } - } - - if (j === 'blMessage') { - if(v[j] == 1){ - return '发送'; - }else{ - return '不发送'; - } - } - if (j === 'blAcceptMessage') { - if(v[j] == 1){ - return '发送'; - }else{ - return '不发送'; - } - } - if (j === 'blSign') { - if(v[j] == 1){ - return '已签收'; - }else{ - return '未签收'; - } - } - if (j === 'paymentType') { - return this.selectDictLabel(this.dict.type.emis_payment_type,v[j]); - } return v[j] })) }, diff --git a/src/views/emis/emisCreditSalesmen/index.vue b/src/views/emis/emisCreditSalesmen/index.vue index 23edfef7..80424365 100644 --- a/src/views/emis/emisCreditSalesmen/index.vue +++ b/src/views/emis/emisCreditSalesmen/index.vue @@ -172,7 +172,7 @@ import NumberRangePicker from '@/components/NumberRange/NumberRangePicker'; import { formatSearchStr,deepClone } from '@/utils/index' export default { - name: "emisCreditSalesmen", + name: "EmisCreditSalesmen", components: { elDateSimplePicker,emisCreditSalesmenForm,SalemanPicker,NumberRangePicker }, dicts: ['emis_biz_shipping_method'], data() { @@ -379,7 +379,7 @@ export default { qParam.pageNum=1; qParam.pageSize=20000; - listEmisCreditCustomer(qParam).then(response => { + listEmisCreditSalesmen(qParam).then(response => { if (response.code === 200) { this.exportData(response.rows,loadingInstance); } @@ -409,80 +409,17 @@ export default { if (j === 'index') { return ++index } - if (j === 'kjlx') { - return v['sendSiteName']+'--'+v['dispatchUnderlingSiteName']; + + if (j === 'curMoney') { + return (v['creditMoney'] - v['useMoney']).toFixed(2); } - if (j === 'fjr') { - return v['sendName']+'--'+v['receiveName']; + if (j === 'curMoneyRate') { + return (((v['creditMoney'] - v['useMoney'])/v['creditMoney'])*100 ).toFixed(2); } - if (j === 'custName') { - let paymentType=v['paymentType']; - if(paymentType==2 || paymentType==4 || paymentType==5 ){ - return v['custName']; - }else{ - return ""; - } + if (j === 'transType') { + return this.selectDictLabel(this.dict.type.emis_biz_shipping_method,v[j]); } - if (j === 'sendMobile') { - return ""; - } - if (j === 'paymentStatus') { - return this.selectDictLabel(this.dict.type.emis_payment_status,v[j]); - } - - if (j === 'pickupMethod') { - return this.selectDictLabel(this.dict.type.emis_qujian_fangshi,v[j]); - } - if (j === 'customsEclaration') { - return this.selectDictLabel(this.dict.type.emis_declare_mode,v[j]); - } - if (j === 'customsClear') { - return this.selectDictLabel(this.dict.type.emis_customs_clear,v[j]); - } - if (j === 'packType') { - return this.selectDictLabels(this.dict.type.emis_tab_packing_type,v[j]); - } - - if (j === 'dispatchMethod') { - if(v[j] == 1){ - return '派送'; - }else{ - return '自提'; - } - } - if (j === 'blUploadPic') { - if(v['goodsPics']!=null && v['goodsPics']!=''){ - return '是'; - }else{ - return '否'; - } - } - - if (j === 'blMessage') { - if(v[j] == 1){ - return '发送'; - }else{ - return '不发送'; - } - } - if (j === 'blAcceptMessage') { - if(v[j] == 1){ - return '发送'; - }else{ - return '不发送'; - } - } - if (j === 'blSign') { - if(v[j] == 1){ - return '已签收'; - }else{ - return '未签收'; - } - } - if (j === 'paymentType') { - return this.selectDictLabel(this.dict.type.emis_payment_type,v[j]); - } return v[j] })) },