Browse Source

备料计划修改

hella_online_20240829
陈薪名 4 months ago
parent
commit
056ce6b993
  1. 7
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

7
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -489,20 +489,21 @@ const submitForm = async (formType, submitData) => {
data.subList = tableData.value // data.subList = tableData.value //
try { try {
if (formType === 'create') { if (formType === 'create') {
await PreparetoissueMainApi.createPreparetoissueMain(data).then((res) => { await PreparetoissueMainApi.createPreparetoissueMain(data).then(async (res) => {
if (res.status == '6') { if (res.status == '6') {
// //
PreparetoissueMainApi.generateIssueRequest(res.number) await PreparetoissueMainApi.generateIssueRequest(res.number)
} }
getList()
}) })
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
} else { } else {
await PreparetoissueMainApi.updatePreparetoissueMain(data) await PreparetoissueMainApi.updatePreparetoissueMain(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
getList()
} }
formRef.value.dialogVisible = false formRef.value.dialogVisible = false
// //
getList()
} finally { } finally {
formRef.value.formLoading = false formRef.value.formLoading = false
} }

Loading…
Cancel
Save