|
|
@ -453,10 +453,12 @@ const requestSwitch = ref(false) |
|
|
|
const getSwitch = async ()=>{ |
|
|
|
let switch1 = await SwitchApi.getByCode('CreatePrepareToIssuePlanAfterProductionPlanPublished') |
|
|
|
planSwitch.value = switch1=='TRUE' |
|
|
|
let switch2 = await SwitchApi.getByCode('CreateProductReciptRequestAfterProductionPlanPublished') |
|
|
|
requestSwitch.value = switch2=='TRUE' |
|
|
|
console.log('switch1',switch1) |
|
|
|
console.log('switch2',switch2) |
|
|
|
// 预生产计划创建收货申请 不走开关控制 |
|
|
|
// let switch2 = await SwitchApi.getByCode('CreateProductReciptRequestAfterProductionPlanPublished') |
|
|
|
// requestSwitch.value = switch2=='TRUE' |
|
|
|
requestSwitch.value = true |
|
|
|
// console.log('switch1',switch1) |
|
|
|
// console.log('switch2',switch2) |
|
|
|
|
|
|
|
} |
|
|
|
// 自动提交 |
|
|
|