调整以销定购的查询逻辑

This commit is contained in:
季圣华 2023-12-04 01:03:16 +08:00
parent e2b7d9aeea
commit 5bc74e7e10
2 changed files with 4 additions and 9 deletions

View File

@ -164,6 +164,8 @@ export const BillModalMixin = {
let multiBillType = res.data.multiBillType
let multiLevelApprovalFlag = res.data.multiLevelApprovalFlag
this.checkFlag = getCheckFlag(multiBillType, multiLevelApprovalFlag, this.prefixNo)
this.purchaseBySaleFlag = res.data.purchaseBySaleFlag==='1'?true:false
this.inOutManageFlag = res.data.inOutManageFlag==='1'?true:false
}
})
},

View File

@ -221,6 +221,7 @@
prefixNo: 'CGDD',
fileList:[],
rowCanEdit: true,
//以销定购的场景开关
purchaseBySaleFlag: false,
model: {},
labelCol: {
@ -293,7 +294,6 @@
this.currentSelectDepotId = ''
this.rowCanEdit = true
this.materialTable.columns[0].type = FormTypes.popupJsh
this.getSystemConfig()
this.changeColumnHide()
this.changeFormTypes(this.materialTable.columns, 'preNumber', 0)
this.changeFormTypes(this.materialTable.columns, 'finishNumber', 0)
@ -419,14 +419,7 @@
})
this.materialTable.dataSource = selectBillDetailRows
}
},
getSystemConfig() {
getCurrentSystemConfig().then((res) => {
if(res.code === 200 && res.data){
this.purchaseBySaleFlag = res.data.purchaseBySaleFlag==='1'?true:false
}
})
},
}
}
}
</script>