|
|
|
|
@ -498,14 +498,7 @@ const handleSubmitStockOut = async () => {
|
|
|
|
|
}
|
|
|
|
|
actionLoading.value = true
|
|
|
|
|
try {
|
|
|
|
|
const data: { id: string; auditUserId?: string; remark?: string } = {
|
|
|
|
|
id: submitFormData.id,
|
|
|
|
|
remark: submitFormData.remark
|
|
|
|
|
}
|
|
|
|
|
if (!isAuditDisabled.value) {
|
|
|
|
|
data.auditUserId = submitFormData.auditUserId
|
|
|
|
|
}
|
|
|
|
|
if (isAuditDisabled.value && submitFormData.status === '1') {
|
|
|
|
|
if (isAuditDisabled.value) {
|
|
|
|
|
await StockOutApi.auditStockOut({
|
|
|
|
|
id: submitFormData.id,
|
|
|
|
|
status: '20',
|
|
|
|
|
@ -513,7 +506,11 @@ const handleSubmitStockOut = async () => {
|
|
|
|
|
})
|
|
|
|
|
message.success(t('ErpStock.Out.auditApproveSuccess'))
|
|
|
|
|
} else {
|
|
|
|
|
await StockOutApi.submitStockOut(data as { id: string; auditUserId: string; remark?: string })
|
|
|
|
|
await StockOutApi.submitStockOut({
|
|
|
|
|
id: submitFormData.id,
|
|
|
|
|
auditUserId: submitFormData.auditUserId,
|
|
|
|
|
remark: submitFormData.remark
|
|
|
|
|
})
|
|
|
|
|
message.success(t('ErpStock.Out.submitSuccess'))
|
|
|
|
|
}
|
|
|
|
|
submitDialogVisible.value = false
|
|
|
|
|
|