update 到货单创建获取订单详情方法修改,计算未入库数量

This commit is contained in:
18110972313 2025-05-22 13:43:11 +08:00
parent 472cc135a1
commit f99397d0f2

View File

@ -109,7 +109,7 @@
import { getCurrentInstance, onMounted, reactive, ref, toRefs } from 'vue' import { getCurrentInstance, onMounted, reactive, ref, toRefs } from 'vue'
import { ElForm, ElMessageBox, ElTable } from 'element-plus' import { ElForm, ElMessageBox, ElTable } from 'element-plus'
import { localStorage } from '@/utils/storage' import { localStorage } from '@/utils/storage'
import { createDelivery, getReceiveList, getReceiveDetail } from '@/api/delivery' import { createDelivery, getReceiveList, getReceiveDetail, getDeliveryReceiveDetail } from '@/api/delivery'
import { getORG } from '@/api/auth' import { getORG } from '@/api/auth'
const queryFormRef = ref(ElForm) const queryFormRef = ref(ElForm)
@ -203,7 +203,7 @@ const handleSelection = (val: any) => {
let nameList: any = [] let nameList: any = []
val.forEach((item: any) => nameList.push(item.receiveRequestName)) val.forEach((item: any) => nameList.push(item.receiveRequestName))
// //
getReceiveDetail({nameList: nameList}).then((res: any) => { getDeliveryReceiveDetail({nameList: nameList}).then((res: any) => {
state.receiveList = res.resultObj state.receiveList = res.resultObj
state.receiveLoading = false state.receiveLoading = false
}) })