From 651bc699b76bcb074a0b0ada270fe9b74b2ab9ff Mon Sep 17 00:00:00 2001 From: lihao Date: Fri, 18 Apr 2025 11:03:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=81=E5=A4=A9=E5=86=85=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E6=8F=90=E6=8A=A5=E5=8D=95=E6=8D=AE=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/arap/paybill/paybill/card/index.js | 44 +++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/src/arap/paybill/paybill/card/index.js b/src/arap/paybill/paybill/card/index.js index d503b4f..302b3fc 100644 --- a/src/arap/paybill/paybill/card/index.js +++ b/src/arap/paybill/paybill/card/index.js @@ -1214,8 +1214,7 @@ class Card extends Component { amounts: amounts, accounts: accounts }; - - console.log('开始检查十天汇款'); + ajax({ url: "/nccloud/arap/arappub/savecheck.do", data: Object.assign(datas, this.dataInSaga), @@ -1225,9 +1224,46 @@ class Card extends Component { title: "十天内重复提报单据提示", //'预算异常提示信息',//'预算异常提示信息',//this.state.json['10170406-000017'],// 异常提示/* 国际化处理: 预算异常提示信息*/ size:"100", beSureBtnName: "继续" /* 国际化处理: 继续*/, - content: "近期已经提交付款金额为"+res.data.money+"该单位的付款单", //this.Info.tipContent, // '预算不通过!',//this.modalContent.call(this), //弹框内容,可以是字符串或dom + content: "近期已经提交付款金额为"+res.data.list[0].local_money_de+"该单位的付款单", //this.Info.tipContent, // '预算不通过!',//this.modalContent.call(this), //弹框内容,可以是字符串或dom beSureBtnClick: () => { - console.log('开始检查十天汇款1'); + let allDatas = this.props.cardTable.getAllRows(this.tableId); + let resDataList = res.data.list; // 假设 res.data.list 已经定义好 + console.log("-----------") + console.log(allDatas) + console.log("-----------") + allDatas.forEach((data, index) => { + let found = false; + for (let i = 0; i < resDataList.length; i++) { + if ( + resDataList[i].recaccount == data.values.recaccount.value + && + Number(resDataList[i].local_money_de) == Number(data.values.local_money_de.value) + ) { + this.props.cardTable.setValByKeyAndIndex( + this.tableId, + index, + 'def34', + { + display: "近期已经提交付款金额为" + resDataList[i].local_money_de + "该单位的付款单", + value: "近期已经提交付款金额为" + resDataList[i].local_money_de + "该单位的付款单" + } + ); + found = true; + break; + } + } + if (!found) { + this.props.cardTable.setValByKeyAndIndex( + this.tableId, + index, + 'def34', + { + display: "", + value: "" + } + ); + } + }); this.props.modal.close('saveChecktenday'); resolve(true); // 用户确认继续 },