feat(mes): 新增到货通知单编码及相关逻辑处理

pull/871/MERGE
YunaiV 2026-03-29 19:13:37 +08:00
parent 166caaa72c
commit 32a830b595
1 changed files with 3 additions and 3 deletions

View File

@ -150,7 +150,7 @@ const handleDelete = async (id: number) => {
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
const dialogTitle = ref('') // const dialogTitle = ref('') //
const formLoading = ref(false) // const formLoading = ref(false) //
const formType = ref('') // const dialogFormType = ref('') //
const itemList = ref<any[]>([]) // const itemList = ref<any[]>([]) //
const formData = ref({ const formData = ref({
id: undefined, id: undefined,
@ -174,7 +174,7 @@ const formRef = ref() // 表单 Ref
const openForm = async (type: string, id?: number) => { const openForm = async (type: string, id?: number) => {
dialogVisible.value = true dialogVisible.value = true
dialogTitle.value = t('action.' + type) dialogTitle.value = t('action.' + type)
formType.value = type dialogFormType.value = type
resetForm() resetForm()
itemList.value = await MdItemApi.getItemSimpleList() itemList.value = await MdItemApi.getItemSimpleList()
if (id) { if (id) {
@ -193,7 +193,7 @@ const submitForm = async () => {
formLoading.value = true formLoading.value = true
try { try {
const data = { ...formData.value, noticeId: props.noticeId } as unknown as WmArrivalNoticeLineVO const data = { ...formData.value, noticeId: props.noticeId } as unknown as WmArrivalNoticeLineVO
if (formType.value === 'create') { if (dialogFormType.value === 'create') {
await WmArrivalNoticeLineApi.createArrivalNoticeLine(data) await WmArrivalNoticeLineApi.createArrivalNoticeLine(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
} else { } else {