|
|
@ -332,29 +332,39 @@ const buttonTableClick = async (val, row) => { |
|
|
|
await ProductionMainApi.submit(row.masterId).then((res) => { |
|
|
|
if (res.status == '6') { |
|
|
|
// 生成备料计划 |
|
|
|
tableObject.loading = true |
|
|
|
// tableObject.loading = true |
|
|
|
ProductionMainApi.generatePreparetoissue(row.number).then(() => { |
|
|
|
// message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
// 生成收货申请 |
|
|
|
tableObject.loading = true |
|
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
|
// message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
// tableObject.loading = false |
|
|
|
// getList() |
|
|
|
// 生成收货申请 |
|
|
|
// tableObject.loading = true |
|
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
// tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
// 生成收货申请 |
|
|
|
// tableObject.loading = true |
|
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
// message.success(t('common.updateSuccess')) |
|
|
|
// tableObject.loading = false |
|
|
|
// getList() |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -398,23 +408,33 @@ const buttonTableClick = async (val, row) => { |
|
|
|
}) |
|
|
|
// 生成备料计划 |
|
|
|
tableObject.loading = true |
|
|
|
await ProductionMainApi.generatePreparetoissue(row.number).then(() => { |
|
|
|
// message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
// 生成收货申请 |
|
|
|
tableObject.loading = true |
|
|
|
await ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
|
ProductionMainApi.generatePreparetoissue(row.number).then(() => { |
|
|
|
// message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
// tableObject.loading = false |
|
|
|
// getList() |
|
|
|
// 生成收货申请 |
|
|
|
// tableObject.loading = true |
|
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
// tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
// 生成收货申请 |
|
|
|
// tableObject.loading = true |
|
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
@ -590,25 +610,35 @@ const submitForm = async (formType, submitData) => { |
|
|
|
tableObject.loading = true |
|
|
|
ProductionMainApi.generatePreparetoissue(res.number).then(() => { |
|
|
|
// message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
// 生成收货申请 |
|
|
|
tableObject.loading = true |
|
|
|
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => { |
|
|
|
// message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
// tableObject.loading = false |
|
|
|
// getList() |
|
|
|
// 生成收货申请 |
|
|
|
// tableObject.loading = true |
|
|
|
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
// tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
// 生成收货申请 |
|
|
|
// tableObject.loading = true |
|
|
|
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
// message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
|
await ProductionMainApi.updateProductionMain(data) |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|