Commit 70e427e1 by 乔延琦

Merge branch 'develop-zhouyi' into 'develop'

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

See merge request GFP/RBC/rbc-frontend!119
parents c8919953 05264b4a
...@@ -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({
......
...@@ -117,7 +117,7 @@ export default { ...@@ -117,7 +117,7 @@ export default {
titleColor: 'black', titleColor: 'black',
Image: "", Image: "",
imgLoading: 0, imgLoading: 0,
checkLogin: true, // 默认当作已经登录了,因为已经登录的时候不能再进登录页 checkLogin: window.osConfig.isDevelop ? false : true, // 默认当作已经登录了,因为已经登录的时候不能再进登录页
userData: { userData: {
username: "", username: "",
password: "", password: "",
...@@ -161,12 +161,14 @@ export default { ...@@ -161,12 +161,14 @@ export default {
this.getLoginAssetsInfo(); this.getLoginAssetsInfo();
}, },
mounted() { mounted() {
window.GMS.util.nvwa.checkLogin().then(() => { if (!window.osConfig.isDevelop) {
this.checkLogin = true window.GMS.util.nvwa.checkLogin().then(() => {
this.$Message.error('您已登录,请先注销') this.checkLogin = true
}).catch(() => { this.$Message.error('您已登录,请先注销')
this.checkLogin = false }).catch(() => {
}) this.checkLogin = false
})
}
document.addEventListener('keyup', this.onKeyUp) document.addEventListener('keyup', this.onKeyUp)
this.getVerificationCode(); this.getVerificationCode();
}, },
......
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