|
|
@ -316,7 +316,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
await ProductionMainApi.open(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -327,7 +327,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
await ProductionMainApi.close(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -342,7 +342,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} |
|
|
|
// message.success(t('common.updateSuccess')) |
|
|
|
// tableObject.loading = false |
|
|
|
// getList() |
|
|
|
// buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -353,7 +353,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
await ProductionMainApi.reject(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -365,7 +365,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
await ProductionMainApi.agree(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -397,7 +397,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
await ProductionMainApi.publish(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -408,7 +408,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
await ProductionMainApi.resetting(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -420,7 +420,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
await ProductionMainApi.generatePreparetoissue(row.number).then((PreparetoissueRes) => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
// 生成发料申请 |
|
|
|
ProductionMainApi.generateIssueRequest(PreparetoissueRes.number) |
|
|
|
}).catch(err => { |
|
|
@ -434,7 +434,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
await ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -481,7 +481,7 @@ const autoCreatePlanRequest = async (row)=>{ |
|
|
|
} finally { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -534,7 +534,7 @@ const handleDelete = async (id: number) => { |
|
|
|
message.success(t('common.delSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
} catch {}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
@ -607,7 +607,11 @@ const submitForm = async (formType, submitData) => { |
|
|
|
} |
|
|
|
formRef.value.dialogVisible = false |
|
|
|
// 刷新当前列表 |
|
|
|
getList() |
|
|
|
if (formType === 'create') { |
|
|
|
getList() |
|
|
|
}else{ |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
} |
|
|
|
|
|
|
|
} finally { |
|
|
|
formRef.value.formLoading = false |
|
|
|