十天内重复提报单据提示

This commit is contained in:
lihao 2025-04-18 11:03:25 +08:00
parent 8856cf8699
commit 651bc699b7
1 changed files with 40 additions and 4 deletions

View File

@ -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); // 用户确认继续
},