出库物料联动

出库物料联动
pull/1/head
siontion 9 months ago
parent 47d8cea8db
commit 6a0b06bf40

@ -408,7 +408,11 @@ const handleStatus = (async (num) => {
isShowBtnCancel.value = false;
isShowBtnOther.value = true;
}
query.type= 'update'
query.id = storageid.value
formData.value.id = storageid.value
reload();
})
const userList = ref<UserApi.UserVO[]>([]) //
@ -508,8 +512,10 @@ const submitForm = async () => {
//
query.type= 'update'
query.id = storageid.value
formData.value.id = storageid.value
reload();
} finally {
formLoading.value = false
}

@ -387,6 +387,9 @@ const handleStatus = (async (num) => {
isShowBtnCancel.value = false;
isShowBtnOther.value = true;
}
query.id = storageid.value
query.type= 'update'
formData.value.id = storageid.value
reload()
})
const userList = ref<UserApi.UserVO[]>([]) //
@ -503,7 +506,10 @@ const submitForm = async () => {
//
reload();
query.id = storageid.value
query.type= 'update'
formData.value.id = storageid.value
reload()
} finally {
formLoading.value = false
}
@ -532,6 +538,8 @@ const onAddItem = () => {
productBomItemValueDOList: []
}
matCount = matCount + 1
formData.value.matItemDOList.push(newData)
} else {
message.alertWarning('清选择出库仓库')
@ -562,11 +570,23 @@ const handleWh = (async (wid) => {
pnList.value = []
rgList.value = dataRg.list
formData.value.matItemDOList.forEach(item => {
item.rgId = ''
item.pnId = ''
item.pnlist.value = []
})
const matLastRemoteData = await StorageMatApi.getStorageMatList()
let matParams = {
pageNo: 1,
pageSize: 10,
status: "1"
}
const dataMat = await MaterialApi.getMaterialPage(matParams)
matList.value = []
matList.value = dataMat.list.filter((item) => matLastRemoteData.find((fish) => fish.matId === item.id && fish.whId == wid) !== undefined)
formData.value.matItemDOList = []
// formData.value.matItemDOList.forEach(item => {
// item.rgId = ''
// item.pnId = ''
// item.pnlist.value = []
// })
//-------------------
})
const handleRg = (async (scope) => {
@ -599,7 +619,7 @@ const remoteMatCodeSearch = async (name) => {
const dataMat = await MaterialApi.getMaterialPage(matParams)
matList.value = []
matList.value = dataMat.list.filter((item) => matLastRemoteData.find((fish) => fish.matId === item.id) !== undefined)
matList.value = dataMat.list.filter((item) => matLastRemoteData.find((fish) => fish.matId === item.id && fish.whId == formData.value.whId) !== undefined)
matSelectLoading.value = false
}

Loading…
Cancel
Save