|
@ -332,13 +332,8 @@ const buttonTableClick = async (val, row) => { |
|
|
await ProductionMainApi.submit(row.masterId).then((res) => { |
|
|
await ProductionMainApi.submit(row.masterId).then((res) => { |
|
|
if (res.status == '6') { |
|
|
if (res.status == '6') { |
|
|
// 生成备料计划 |
|
|
// 生成备料计划 |
|
|
// tableObject.loading = true |
|
|
ProductionMainApi.generatePreparetoissue(row.number).then((PreparetoissueRes) => { |
|
|
ProductionMainApi.generatePreparetoissue(row.number).then(() => { |
|
|
|
|
|
// message.success(t('common.createSuccess')) |
|
|
|
|
|
// tableObject.loading = false |
|
|
|
|
|
// getList() |
|
|
|
|
|
// 生成收货申请 |
|
|
// 生成收货申请 |
|
|
// tableObject.loading = true |
|
|
|
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
message.success(t('common.createSuccess')) |
|
|
message.success(t('common.createSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -347,11 +342,11 @@ const buttonTableClick = async (val, row) => { |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
console.log(err) |
|
|
console.log(err) |
|
|
}) |
|
|
}) |
|
|
|
|
|
// 生成发料申请 |
|
|
|
|
|
ProductionMainApi.generateIssueRequest(PreparetoissueRes.number) |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
// tableObject.loading = false |
|
|
|
|
|
console.log(err) |
|
|
console.log(err) |
|
|
// 生成收货申请 |
|
|
// 生成收货申请 |
|
|
// tableObject.loading = true |
|
|
|
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
message.success(t('common.createSuccess')) |
|
|
message.success(t('common.createSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -408,12 +403,8 @@ const buttonTableClick = async (val, row) => { |
|
|
}) |
|
|
}) |
|
|
// 生成备料计划 |
|
|
// 生成备料计划 |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
ProductionMainApi.generatePreparetoissue(row.number).then(() => { |
|
|
ProductionMainApi.generatePreparetoissue(row.number).then((PreparetoissueRes) => { |
|
|
// message.success(t('common.createSuccess')) |
|
|
|
|
|
// tableObject.loading = false |
|
|
|
|
|
// getList() |
|
|
|
|
|
// 生成收货申请 |
|
|
// 生成收货申请 |
|
|
// tableObject.loading = true |
|
|
|
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
message.success(t('common.createSuccess')) |
|
|
message.success(t('common.createSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -422,11 +413,11 @@ const buttonTableClick = async (val, row) => { |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
console.log(err) |
|
|
console.log(err) |
|
|
}) |
|
|
}) |
|
|
|
|
|
// 生成发料申请 |
|
|
|
|
|
ProductionMainApi.generateIssueRequest(PreparetoissueRes.number) |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
// tableObject.loading = false |
|
|
|
|
|
console.log(err) |
|
|
console.log(err) |
|
|
// 生成收货申请 |
|
|
// 生成收货申请 |
|
|
// tableObject.loading = true |
|
|
|
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
message.success(t('common.createSuccess')) |
|
|
message.success(t('common.createSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -465,10 +456,12 @@ const buttonTableClick = async (val, row) => { |
|
|
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 |
|
|
await ProductionMainApi.generatePreparetoissue(row.number).then(() => { |
|
|
await ProductionMainApi.generatePreparetoissue(row.number).then((PreparetoissueRes) => { |
|
|
message.success(t('common.createSuccess')) |
|
|
message.success(t('common.createSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
getList() |
|
|
getList() |
|
|
|
|
|
// 生成发料申请 |
|
|
|
|
|
ProductionMainApi.generateIssueRequest(PreparetoissueRes.number) |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
console.log(err) |
|
|
console.log(err) |
|
@ -608,12 +601,8 @@ const submitForm = async (formType, submitData) => { |
|
|
if (res.status == '6') { |
|
|
if (res.status == '6') { |
|
|
// 生成备料计划 |
|
|
// 生成备料计划 |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
ProductionMainApi.generatePreparetoissue(res.number).then(() => { |
|
|
ProductionMainApi.generatePreparetoissue(res.number).then((PreparetoissueRes) => { |
|
|
// message.success(t('common.createSuccess')) |
|
|
|
|
|
// tableObject.loading = false |
|
|
|
|
|
// getList() |
|
|
|
|
|
// 生成收货申请 |
|
|
// 生成收货申请 |
|
|
// tableObject.loading = true |
|
|
|
|
|
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => { |
|
|
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => { |
|
|
message.success(t('common.createSuccess')) |
|
|
message.success(t('common.createSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -622,11 +611,11 @@ const submitForm = async (formType, submitData) => { |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
console.log(err) |
|
|
console.log(err) |
|
|
}) |
|
|
}) |
|
|
|
|
|
// 生成发料申请 |
|
|
|
|
|
ProductionMainApi.generateIssueRequest(PreparetoissueRes.number) |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
// tableObject.loading = false |
|
|
|
|
|
console.log(err) |
|
|
console.log(err) |
|
|
// 生成收货申请 |
|
|
// 生成收货申请 |
|
|
// tableObject.loading = true |
|
|
|
|
|
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => { |
|
|
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => { |
|
|
message.success(t('common.createSuccess')) |
|
|
message.success(t('common.createSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|