✨ feat(mes): 新增到货通知单编码及相关逻辑处理
parent
166caaa72c
commit
32a830b595
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue