|
|
@ -678,7 +678,7 @@ const handleClose = async (id: number) => { |
|
|
|
tableObject.loading = true |
|
|
|
await PurchasereceiptRequestMainApi.closePurchasereceiptRequestMain(id) |
|
|
|
message.success(t('common.closeSuccess')) |
|
|
|
await getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
@ -691,7 +691,7 @@ const handleReAdd = async (id: number) => { |
|
|
|
tableObject.loading = true |
|
|
|
await PurchasereceiptRequestMainApi.reAddPurchasereceiptRequestMain(id) |
|
|
|
message.success(t('common.reAddSuccess')) |
|
|
|
await getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
@ -705,7 +705,7 @@ const handleAgree = async (id: number) => { |
|
|
|
await PurchasereceiptRequestMainApi.agreePurchasereceiptRequestMain(id) |
|
|
|
message.success(t('common.agreeSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
@ -719,7 +719,7 @@ const handleRefused = async (id: number) => { |
|
|
|
await PurchasereceiptRequestMainApi.refusedPurchasereceiptRequestMain(id) |
|
|
|
message.success(t('common.refusedSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
@ -733,7 +733,7 @@ const handleHandle = async (id: number) => { |
|
|
|
await PurchasereceiptRequestMainApi.handlePurchasereceiptRequestMain(id) |
|
|
|
message.success(t('common.handleSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
@ -747,7 +747,7 @@ const handleSubmit = async (id: number) => { |
|
|
|
await PurchasereceiptRequestMainApi.submitPurchasereceiptRequestMain(id) |
|
|
|
message.success(t('common.submitSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
@ -819,7 +819,11 @@ const submitForm = async (formType, submitData) => { |
|
|
|
} |
|
|
|
formRef.value.dialogVisible = false |
|
|
|
// 刷新当前列表 |
|
|
|
getList() |
|
|
|
if (formType === 'create') { |
|
|
|
getList() |
|
|
|
}else{ |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
} |
|
|
|
} finally { |
|
|
|
formRef.value.formLoading = false |
|
|
|
} |
|
|
|