From bc1d4cb50a4ab81d61ae72e12c2a7ada130966c8 Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Fri, 5 Aug 2022 12:07:26 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20-=E6=89=93=E5=8C=85=E3=80=81?= =?UTF-8?q?=E5=88=B0=E8=B4=A6=E5=BC=80=E7=A5=A8=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E7=A1=AE=E8=AE=A4=E6=94=B6=E5=85=A5=20?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E7=9A=84=E5=B1=95=E7=A4=BA=EF=BC=9B=E6=89=93?= =?UTF-8?q?=E5=8C=85=E7=AE=A1=E7=90=86=20=E3=80=90=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E6=94=B6=E5=85=A5=E3=80=91=E6=8C=89=E9=92=AE=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tools/StatusSlot.vue | 21 ++++++++++++++++--- .../ArriveAndInvoivingList.vue | 20 ++++++++++++++++-- .../modules/ArriveModule.vue | 12 +++++++++++ .../modules/InvoicingModule.vue | 2 +- .../packManagement/PackProjectMaintenance.vue | 18 ++++++++++++++-- 5 files changed, 65 insertions(+), 8 deletions(-) diff --git a/src/components/tools/StatusSlot.vue b/src/components/tools/StatusSlot.vue index ecc2013..e665515 100644 --- a/src/components/tools/StatusSlot.vue +++ b/src/components/tools/StatusSlot.vue @@ -58,7 +58,7 @@ export default { required: false }, // 当前需要转换key的属性, 悬浮显示实际具体内容信息时需要 - // paymentRecord 来款 mail -- 邮寄 bill--开票 + // paymentRecord 来款 confirm-确认收入 mail -- 邮寄 bill--开票 statusKey: { type: String, required: false, @@ -106,6 +106,9 @@ export default { } else { return finished } + } else if(this.statusNo === 4) { + // 确认收入莫名其妙的出现了 4, 所以修改成 全部确认的样式 + return finished } } }, @@ -129,9 +132,16 @@ export default { // 到账、开票、邮寄 的时候,请求接口获得相应的数据 // 判断条件 tooltip显示、 有不同的统计状态,统计状态值不为0 没有请求过详情数据 if (visible && this.statusType && this.statusNo && !this.hasInfo) { - this.getInfoFunc({ id: this.statuObj.id }).then(res => { + let idKey = this.statusKey === 'confirm' && 'projectId' || 'id' + this.getInfoFunc({ [idKey]: this.statuObj.id }).then(res => { if (res.success) { - let arr = res.result[this.opeStatusKey] || [] + let arr = [] + if(this.statusKey === 'confirm') { + // 确认收入单独的实现逻辑 + arr = res.result || [] + } else { + arr = res.result[this.opeStatusKey] || [] + } let result = [] arr.map(tt => { result.push(this.showTemplate(tt)) @@ -139,6 +149,7 @@ export default { // 对tooltip中的文字进行替换 this.currentTitle = result.join('\n') this.hasInfo = true + } }) } @@ -165,6 +176,10 @@ export default { if (item.sendDate || item.postNo) { result = `${ item.sendDate }新增邮寄信息,邮寄单号:${ item.postNo }` } + } else if (this.statusKey === 'confirm') { + if (item.paymentDate || item.amountReceived) { + result = `${ item.paymentDate }确认收入${ item.amountReceived }元` + } } return result } diff --git a/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue b/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue index 715ad52..f4a6628 100644 --- a/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue +++ b/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue @@ -119,6 +119,11 @@ + + +