Commit 85b80a7e by Joey

fix(@gms/gms-plugin-billexpand): 点同意按钮只有只读不校验公式

parent f6ff0504
...@@ -14,10 +14,25 @@ export default { ...@@ -14,10 +14,25 @@ export default {
} }
let curTagId = window.nros.context.getCurrTag(); let curTagId = window.nros.context.getCurrTag();
let oldObj = curTagId && GMS.oldBillDataMap[curTagId]?GMS.oldBillDataMap[curTagId]:GMS.oldBillData; let oldObj = curTagId && GMS.oldBillDataMap[curTagId]?GMS.oldBillDataMap[curTagId]:GMS.oldBillData;
let flag = compareData(oldObj, bill.getBuillData()) || bill.getGlobalParam("noRunTimeFormula"); const dataChangeFlag = compareData(oldObj, bill.getBuillData())
if (flag) { const noRunTimeFormula = bill.getGlobalParam("noRunTimeFormula")
if (noRunTimeFormula) {
this.approvalLogical(bill, param, this) this.approvalLogical(bill, param, this)
} else { }
else if (!dataChangeFlag) {
bill.runFormulaCheckData(param, (msg) => {
if (msg.length == 0) {
this.approvalLogical(bill, param, this)
}
else {
GMS.vbus.$Modal.warning({
title: "信息错误",
content: msg,
});
}
})
}
else {
bill.runFormulaCheckData(param, (msg) => { bill.runFormulaCheckData(param, (msg) => {
if (msg.length == 0) { if (msg.length == 0) {
GMS.$hideContainer.$Modal.confirm({ GMS.$hideContainer.$Modal.confirm({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment