|
|
@ -332,13 +332,8 @@ const buttonTableClick = async (val, row) => { |
|
|
|
await ProductionMainApi.submit(row.masterId).then((res) => { |
|
|
|
if (res.status == '6') { |
|
|
|
// 生成备料计划 |
|
|
|
// tableObject.loading = true |
|
|
|
ProductionMainApi.generatePreparetoissue(row.number).then(() => { |
|
|
|
// message.success(t('common.createSuccess')) |
|
|
|
// tableObject.loading = false |
|
|
|
// getList() |
|
|
|
ProductionMainApi.generatePreparetoissue(row.number).then((PreparetoissueRes) => { |
|
|
|
// 生成收货申请 |
|
|
|
// tableObject.loading = true |
|
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
@ -347,11 +342,11 @@ const buttonTableClick = async (val, row) => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
// 生成发料申请 |
|
|
|
ProductionMainApi.generateIssueRequest(PreparetoissueRes.number) |
|
|
|
}).catch(err => { |
|
|
|
// tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
// 生成收货申请 |
|
|
|
// tableObject.loading = true |
|
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
@ -408,12 +403,8 @@ const buttonTableClick = async (val, row) => { |
|
|
|
}) |
|
|
|
// 生成备料计划 |
|
|
|
tableObject.loading = true |
|
|
|
ProductionMainApi.generatePreparetoissue(row.number).then(() => { |
|
|
|
// message.success(t('common.createSuccess')) |
|
|
|
// tableObject.loading = false |
|
|
|
// getList() |
|
|
|
ProductionMainApi.generatePreparetoissue(row.number).then((PreparetoissueRes) => { |
|
|
|
// 生成收货申请 |
|
|
|
// tableObject.loading = true |
|
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
@ -422,11 +413,11 @@ const buttonTableClick = async (val, row) => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
// 生成发料申请 |
|
|
|
ProductionMainApi.generateIssueRequest(PreparetoissueRes.number) |
|
|
|
}).catch(err => { |
|
|
|
// tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
// 生成收货申请 |
|
|
|
// tableObject.loading = true |
|
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
@ -465,10 +456,12 @@ const buttonTableClick = async (val, row) => { |
|
|
|
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') |
|
|
|
await message.confirm('确认要生成备料计划吗?') |
|
|
|
tableObject.loading = true |
|
|
|
await ProductionMainApi.generatePreparetoissue(row.number).then(() => { |
|
|
|
await ProductionMainApi.generatePreparetoissue(row.number).then((PreparetoissueRes) => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
// 生成发料申请 |
|
|
|
ProductionMainApi.generateIssueRequest(PreparetoissueRes.number) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -608,12 +601,8 @@ const submitForm = async (formType, submitData) => { |
|
|
|
if (res.status == '6') { |
|
|
|
// 生成备料计划 |
|
|
|
tableObject.loading = true |
|
|
|
ProductionMainApi.generatePreparetoissue(res.number).then(() => { |
|
|
|
// message.success(t('common.createSuccess')) |
|
|
|
// tableObject.loading = false |
|
|
|
// getList() |
|
|
|
ProductionMainApi.generatePreparetoissue(res.number).then((PreparetoissueRes) => { |
|
|
|
// 生成收货申请 |
|
|
|
// tableObject.loading = true |
|
|
|
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
@ -622,11 +611,11 @@ const submitForm = async (formType, submitData) => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
// 生成发料申请 |
|
|
|
ProductionMainApi.generateIssueRequest(PreparetoissueRes.number) |
|
|
|
}).catch(err => { |
|
|
|
// tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
// 生成收货申请 |
|
|
|
// tableObject.loading = true |
|
|
|
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|