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