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 3e08e21..f4a6628 100644 --- a/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue +++ b/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue @@ -51,12 +51,14 @@ - + - + @@ -117,6 +119,11 @@ + + + + + @@ -133,9 +140,10 @@ + 审核 来款 开票 - - 确认收入 + + 确认收入 @@ -158,6 +163,7 @@ @ok="modalFormOk" :project-id="selectProjectId" :project-type="selectProjectType" + :need-invoice="selectNeedInvoice" :visible.sync="arriveVisible"> @@ -185,16 +191,23 @@ - + - + diff --git a/src/views/financialManagement/arriveAndInvoicing/modules/PreComeModule.vue b/src/views/financialManagement/arriveAndInvoicing/modules/ConfirmModule.vue similarity index 60% rename from src/views/financialManagement/arriveAndInvoicing/modules/PreComeModule.vue rename to src/views/financialManagement/arriveAndInvoicing/modules/ConfirmModule.vue index 711863a..9c23e27 100644 --- a/src/views/financialManagement/arriveAndInvoicing/modules/PreComeModule.vue +++ b/src/views/financialManagement/arriveAndInvoicing/modules/ConfirmModule.vue @@ -16,7 +16,21 @@ e.target.value = (e.target.value.replace(/[^0-9-.]/g, '')).trim()"> + + + addZeroTaxOrNo(e, 'noTaxAmount', 'amountReceived')" + @change="e => e.target.value = (e.target.value.replace(/[^0-9-.]/g, '')).trim()"> + + + addZeroTaxOrNo(e, 'tax', 'amountReceived')" @change="e => e.target.value = (e.target.value.replace(/[^0-9-.]/g, '')).trim()"> @@ -41,15 +55,30 @@ diff --git a/src/views/financialManagement/arriveAndInvoicing/modules/ConfirmStageModule.vue b/src/views/financialManagement/arriveAndInvoicing/modules/ConfirmStageModule.vue new file mode 100644 index 0000000..843c4a9 --- /dev/null +++ b/src/views/financialManagement/arriveAndInvoicing/modules/ConfirmStageModule.vue @@ -0,0 +1,250 @@ + + + + + + + + 第{{ item.chinaNumIndex }}阶段 + + + + + + 确认金额: + {{ item.amountReceived }} + + + + + 税额: + {{ item.tax }} + + + + + 未税金额: + {{ item.noTaxAmount }} + + + + + 确认日期: + {{ item.paymentDate }} + + + + + + + 备注: + {{ item.remark }} + + + + + + + + + + 添加阶段 + + + + + + + + + \ No newline at end of file diff --git a/src/views/financialManagement/arriveAndInvoicing/modules/InvoicingModule.vue b/src/views/financialManagement/arriveAndInvoicing/modules/InvoicingModule.vue index 8fba2ce..5e0c41e 100644 --- a/src/views/financialManagement/arriveAndInvoicing/modules/InvoicingModule.vue +++ b/src/views/financialManagement/arriveAndInvoicing/modules/InvoicingModule.vue @@ -15,7 +15,21 @@ e.target.value = (e.target.value.replace(/[^0-9.-]/g, '')).trim()"> + + + addZeroTaxOrNo(e, 'noTaxAmount', 'invoiceAmount')" + @change="e => e.target.value = (e.target.value.replace(/[^0-9.-]/g, '')).trim()"> + + + addZeroTaxOrNo(e, 'tax', 'invoiceAmount')" @change="e => e.target.value = (e.target.value.replace(/[^0-9.-]/g, '')).trim()"> @@ -47,14 +61,15 @@ diff --git a/src/views/statisticalReport/WholePaymentsStatistics.vue b/src/views/statisticalReport/WholePaymentsStatistics.vue new file mode 100644 index 0000000..dc3f366 --- /dev/null +++ b/src/views/statisticalReport/WholePaymentsStatistics.vue @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + 导出 + + + + + + + + + + + {{ text }} + {{ text }} + + + + + + {{ formatMoney(text) }} + {{ formatMoney(text) }} + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/statisticalReport/statisticData.js b/src/views/statisticalReport/statisticData.js index 460ac2b..bdde6b2 100644 --- a/src/views/statisticalReport/statisticData.js +++ b/src/views/statisticalReport/statisticData.js @@ -1,14 +1,14 @@ export const MonthData = [ - {name: '1月', value: '01'}, - {name: '2月', value: '02'}, - {name: '3月', value: '03'}, - {name: '4月', value: '04'}, - {name: '5月', value: '05'}, - {name: '6月', value: '06'}, - {name: '7月', value: '07'}, - {name: '8月', value: '08'}, - {name: '9月', value: '09'}, - {name: '10月', value: '10'}, - {name: '11月', value: '11'}, - {name: '12月', value: '12'}, + {name: '1月', value: '01', key: 'January'}, + {name: '2月', value: '02', key: 'February'}, + {name: '3月', value: '03', key: 'March'}, + {name: '4月', value: '04', key: 'April'}, + {name: '5月', value: '05', key: 'May'}, + {name: '6月', value: '06', key: 'June'}, + {name: '7月', value: '07', key: 'July'}, + {name: '8月', value: '08', key: 'August'}, + {name: '9月', value: '09', key: 'September'}, + {name: '10月', value: '10', key: 'October'}, + {name: '11月', value: '11', key: 'November'}, + {name: '12月', value: '12', key: 'December'}, ] \ No newline at end of file