|
|
|
@ -399,17 +399,17 @@ const submitForm = async () => {
|
|
|
|
|
commonResult = 'common.createSuccess'
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
storageid.value = await StorageApi.getStorage(router.query.id)
|
|
|
|
|
storageid.value = data.id
|
|
|
|
|
await StorageApi.updateStorage(data)
|
|
|
|
|
commonResult = 'common.updateSuccess'
|
|
|
|
|
}
|
|
|
|
|
//物料信息保存
|
|
|
|
|
formData.value.productBomItemDOList.forEach(item => {
|
|
|
|
|
item.stockId = storageid.value.id
|
|
|
|
|
item.stockId = storageid.value
|
|
|
|
|
item.whId = formData.value.whId
|
|
|
|
|
})
|
|
|
|
|
const dataMats = formData.value.productBomItemDOList as unknown as StorageMatApi.StorageMatVO[]
|
|
|
|
|
//await StorageMatApi.createStorageMatBatch(dataMats)
|
|
|
|
|
await StorageMatApi.createStorageMatBatch(dataMats)
|
|
|
|
|
|
|
|
|
|
//附件信息保存
|
|
|
|
|
matUploadFiles.value = { 'businessType': 'STORAGE', 'businessId': storageid, 'businessFileType': '' }
|
|
|
|
@ -420,7 +420,7 @@ const submitForm = async () => {
|
|
|
|
|
|
|
|
|
|
// 成功后刷新
|
|
|
|
|
reload();
|
|
|
|
|
router.query.id = storageid.value.id;
|
|
|
|
|
//router.query.id = storageid.value.id;
|
|
|
|
|
} finally {
|
|
|
|
|
formLoading.value = false
|
|
|
|
|
}
|
|
|
|
@ -487,8 +487,6 @@ const handleDelete2 = (index: number) => {
|
|
|
|
|
formData.value.productBomItemDOList.splice(index, 1)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//仓库全数据
|
|
|
|
|
const warehouseList = ref([])
|
|
|
|
|
//库区全数据
|
|
|
|
@ -529,7 +527,6 @@ const handleRg = (async (scope) => {
|
|
|
|
|
//-------------------
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const matList = ref<MaterialApi.MaterialVO[]>([]) // 物料列表
|
|
|
|
|
const matSelectLoading = ref(false);
|
|
|
|
|
const remoteMatCodeSearch = async (query) => {
|
|
|
|
|