|
|
@ -301,7 +301,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
PreparetoissueMainApi.open(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -312,7 +312,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
PreparetoissueMainApi.close(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -324,7 +324,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
PreparetoissueMainApi.submit(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -335,7 +335,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
PreparetoissueMainApi.reject(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -347,7 +347,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
PreparetoissueMainApi.agree(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -358,7 +358,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
PreparetoissueMainApi.publish(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
PreparetoissueMainApi.generateIssueRequest(row.number) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
@ -370,7 +370,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
PreparetoissueMainApi.resetting(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -382,7 +382,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
await PreparetoissueMainApi.generateIssueRequest(row.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
@ -445,7 +445,7 @@ const handleDelete = async (id: number) => { |
|
|
|
message.success(t('common.delSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
|
|
|
@ -514,7 +514,7 @@ const submitForm = async (formType, submitData) => { |
|
|
|
} else { |
|
|
|
await PreparetoissueMainApi.updatePreparetoissueMain(data) |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
} |
|
|
|
formRef.value.dialogVisible = false |
|
|
|
// 刷新当前列表 |
|
|
|