|
@ -331,6 +331,8 @@ const buttonTableClick = async (val, row) => { |
|
|
console.log(err) |
|
|
console.log(err) |
|
|
}) |
|
|
}) |
|
|
} else if (val == 'mainPlanSub') { // 提交审批 |
|
|
} else if (val == 'mainPlanSub') { // 提交审批 |
|
|
|
|
|
// 重新获取开关数据 |
|
|
|
|
|
await getSwitch() |
|
|
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') |
|
|
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') |
|
|
await message.confirm('确认要提交审批吗?') |
|
|
await message.confirm('确认要提交审批吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
@ -384,6 +386,8 @@ const buttonTableClick = async (val, row) => { |
|
|
}) |
|
|
}) |
|
|
// 生成备料计划 |
|
|
// 生成备料计划 |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
|
|
|
// 重新获取开关数据 |
|
|
|
|
|
await getSwitch() |
|
|
autoCreatePlanRequest(row) |
|
|
autoCreatePlanRequest(row) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -541,6 +545,8 @@ const tableSelectionDelete = (selection) => { |
|
|
|
|
|
|
|
|
// 主子数据 提交 |
|
|
// 主子数据 提交 |
|
|
const submitForm = async (formType, submitData) => { |
|
|
const submitForm = async (formType, submitData) => { |
|
|
|
|
|
// 重新获取开关数据 |
|
|
|
|
|
getSwitch() |
|
|
let data = {...submitData} |
|
|
let data = {...submitData} |
|
|
if(data.masterId){ |
|
|
if(data.masterId){ |
|
|
data.id = data.masterId |
|
|
data.id = data.masterId |
|
|