Browse Source

备料计划修改

hella_online_20240829
陈薪名 2 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 //
try {
if (formType === 'create') {
await PreparetoissueMainApi.createPreparetoissueMain(data).then((res) => {
await PreparetoissueMainApi.createPreparetoissueMain(data).then(async (res) => {
if (res.status == '6') {
//
PreparetoissueMainApi.generateIssueRequest(res.number)
await PreparetoissueMainApi.generateIssueRequest(res.number)
}
getList()
})
message.success(t('common.createSuccess'))
} else {
await PreparetoissueMainApi.updatePreparetoissueMain(data)
message.success(t('common.updateSuccess'))
getList()
}
formRef.value.dialogVisible = false
//
getList()
} finally {
formRef.value.formLoading = false
}

Loading…
Cancel
Save