Browse Source

发料申请-新增提示返回的备注

hella_online_20240904
yufei_wang 2 months ago
parent
commit
b9dc933266
  1. 13
      src/views/wms/issueManage/issue/issueRequestMain/index.vue

13
src/views/wms/issueManage/issue/issueRequestMain/index.vue

@ -513,8 +513,17 @@ const submitForm = async (formType, submitData) => {
formRef.value.formLoading = true
try {
if (formType === 'create') {
await IssueRequestMainApi.createIssueRequestMain(data)
message.success(t('common.createSuccess'))
let remarkRes = await IssueRequestMainApi.createIssueRequestMain(data)
if(remarkRes){
let remarkList = remarkRes.split(';')
ElMessageBox.alert(remarkList.join('<br/>'),'提示',{
dangerouslyUseHTMLString: true,
})
}else{
message.success(t('common.createSuccess'))
}
console.log('remarkRes',remarkRes)
} else {
await IssueRequestMainApi.updateIssueRequestMain(data)
message.success(t('common.updateSuccess'))

Loading…
Cancel
Save