系统配置:增加多账户的启用开关,和在相关单据界面进行判断引用

This commit is contained in:
jishenghua
2024-05-06 00:03:53 +08:00
parent b4bb4657db
commit b60cbd3a26
2 changed files with 27 additions and 8 deletions

View File

@@ -236,11 +236,18 @@ export const BillModalMixin = {
if(res && res.code === 200) {
let list = res.data.accountList
let lastId = list.length>0?list[0].id:''
list.splice(0,0,{id: 0, name: '多账户'})
that.accountList = list
if(isChecked) {
that.form.setFieldsValue({'accountId': lastId})
}
getCurrentSystemConfig().then((res) => {
if (res.code === 200 && res.data) {
let multiAccountFlag = res.data.multiAccountFlag
if(multiAccountFlag==='1') {
list.splice(0,0,{id: 0, name: '多账户'})
}
}
that.accountList = list
if(isChecked) {
that.form.setFieldsValue({'accountId': lastId})
}
})
}
})
},