From 137cdcfa0c45e8d04cb1c98859b47166d51ec83b Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Tue, 18 Mar 2025 15:03:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=87=BA=E7=BA=B3=E4=BB=98?= =?UTF-8?q?=E6=AC=BE=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chunafukuan/chunafukuanguanli/cashier.vue | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/chunafukuan/chunafukuanguanli/cashier.vue b/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/chunafukuan/chunafukuanguanli/cashier.vue index b041672495..a5433c96b5 100644 --- a/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/chunafukuan/chunafukuanguanli/cashier.vue +++ b/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/chunafukuan/chunafukuanguanli/cashier.vue @@ -182,7 +182,7 @@
*收款单位名称
- + @@ -190,7 +190,7 @@
*收款银行账号
- + @@ -488,19 +488,12 @@ export default { } }, handleSelectionChange(row) { - console.log('aaa', row) const aa = [] - const bb = [] row.forEach(element => { aa.push(element.sid) - bb.push({ - state: element.state, - receiveBankAccount: element.receiveBankAccount - }) }) this.sids = aa - this.nodeState_list = bb - console.log('获取sids数组', this.sids) + this.nodeState_list = row }, // 序号 indexMethod(index) { @@ -514,7 +507,6 @@ export default { this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') req.listPage(this.listQuery).then((response) => { - console.log('列表查询结果:', response) this.listLoading = false if (response.success) { this.list = response.data.records @@ -666,7 +658,6 @@ export default { this.$message({ showClose: true, type: 'error', message: '请选择至少一条以上记录进行批量处理' }) return } else { - console.log(this.nodeState_list) if (this.nodeState_list.length > 0) { for (var i = 0; i < this.nodeState_list.length; i++) { if (this.nodeState_list[i].state !== '未支付') { @@ -682,6 +673,17 @@ export default { this.$refs['form_obj'].clearValidate() }) this.dialogVisible = true + this.disabledCost = true + var num = 0 + for (let i = 0; i < this.nodeState_list.length; i++) { + if (i === 0) { + this.formobj.receiveCompany = this.nodeState_list[i].receiveCompany + this.formobj.receiveBankAccount = this.nodeState_list[i].receiveBankAccount + this.formobj.receiveBank = this.nodeState_list[i].receiveBank + } + num = Math.round((parseFloat(num) + parseFloat(this.nodeState_list[i].cost !== '' ? this.nodeState_list[i].cost : 0)) * 100) / 100 + } + this.formobj.cost = num } } },