Commit 49516c21 by 乔延琦

Merge branch 'develop-zhouyi' into 'develop'

feat(@gms/gms-plugin-billexpand): 同意时运行公式,并处理确认保存

See merge request GFP/RBC/rbc-frontend!91
parents ca04a616 9fc87344
...@@ -14,15 +14,25 @@ export default { ...@@ -14,15 +14,25 @@ export default {
if (flag) { if (flag) {
this.approvalLogical(bill, param, this) this.approvalLogical(bill, param, this)
} else { } else {
GMS.$hideContainer.$Modal.confirm({ bill.runFormulaCheckData(param, (msg) => {
title: "信息提示", if (msg.length == 0) {
content: "信息发生变化, 是否保存", GMS.$hideContainer.$Modal.confirm({
onOk: () => { title: "信息提示",
this.saveLogical(bill, param, {data: bill.getBuillData(), detailData: []}, this) content: "信息发生变化, 是否保存",
}, onOk: () => {
onCancel: () => { this.saveLogical(bill, param, {data: bill.getBuillData(), detailData: []}, this)
},
onCancel: () => {
}
})
} else {
GMS.vbus.$Modal.warning({
title: "信息错误",
content: msg,
});
} }
}) });
} }
} else { } else {
...@@ -40,6 +50,13 @@ export default { ...@@ -40,6 +50,13 @@ export default {
}) })
.then((response) => { .then((response) => {
if (response.data.code == 0) { if (response.data.code == 0) {
let curTagId = window.nros.context.getCurrTag();
if (curTagId) {
GMS.oldBillDataMap[curTagId] = bill.getBuillData()
}
else {
GMS.oldBillData = bill.getBuillData()
}
this.approvalLogical(bill, param) this.approvalLogical(bill, param)
} else { } else {
response.data.message && GMS.vbus.$Message.error({ response.data.message && GMS.vbus.$Message.error({
......
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