|
|
@ -374,14 +374,14 @@ const openForm = async (type: string, row?: number) => { |
|
|
|
] // 重置明细数据 |
|
|
|
formRef.value.open(type, row) |
|
|
|
|
|
|
|
getOwnerAllList() |
|
|
|
getSupplierAllList() |
|
|
|
getCustomerAllList() |
|
|
|
getItembasicAllList() |
|
|
|
getWarehouseAllList() |
|
|
|
getAreaAllList() |
|
|
|
getLocationgroupAllList() |
|
|
|
getLocationAllList() |
|
|
|
Promise.all([getOwnerAllList(), |
|
|
|
getSupplierAllList(), |
|
|
|
getCustomerAllList(), |
|
|
|
getItembasicAllList(), |
|
|
|
getWarehouseAllList(), |
|
|
|
getAreaAllList(), |
|
|
|
getLocationgroupAllList(), |
|
|
|
getLocationAllList()]) |
|
|
|
} |
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
@ -718,7 +718,7 @@ const allList = ref({ |
|
|
|
}) |
|
|
|
// 获取货主列表 |
|
|
|
const getOwnerAllList = async () => { |
|
|
|
await OwnerApi.getOwnerList().then((res) => { |
|
|
|
OwnerApi.getOwnerList().then((res) => { |
|
|
|
allList.value.ownerAllList = res.map((element) => { |
|
|
|
return { |
|
|
|
value: element.code, |
|
|
@ -729,7 +729,7 @@ const getOwnerAllList = async () => { |
|
|
|
} |
|
|
|
// 获取供应商列表 |
|
|
|
const getSupplierAllList = async () => { |
|
|
|
await SupplierApi.getSupplierList().then((res) => { |
|
|
|
SupplierApi.getSupplierList().then((res) => { |
|
|
|
allList.value.supplierAllList = res.map((element) => { |
|
|
|
return { |
|
|
|
value: element.code, |
|
|
@ -740,7 +740,7 @@ const getSupplierAllList = async () => { |
|
|
|
} |
|
|
|
// 获取供应商列表 |
|
|
|
const getCustomerAllList = async () => { |
|
|
|
await CustomerApi.getCustomerList().then((res) => { |
|
|
|
CustomerApi.getCustomerList().then((res) => { |
|
|
|
allList.value.customerAllList = res.map((element) => { |
|
|
|
return { |
|
|
|
value: element.code, |
|
|
@ -751,7 +751,7 @@ const getCustomerAllList = async () => { |
|
|
|
} |
|
|
|
// 获取物料代码列表 |
|
|
|
const getItembasicAllList = async () => { |
|
|
|
await ItembasicApi.getItembasicList().then((res) => { |
|
|
|
ItembasicApi.getItembasicList().then((res) => { |
|
|
|
allList.value.itembasicAllList = res.map((element) => { |
|
|
|
return { |
|
|
|
value: element.code, |
|
|
@ -762,7 +762,7 @@ const getItembasicAllList = async () => { |
|
|
|
} |
|
|
|
// 获取仓库列表 |
|
|
|
const getWarehouseAllList = async () => { |
|
|
|
await WarehouseApi.getWarehouseList({ available: 'TRUE' }).then((res) => { |
|
|
|
WarehouseApi.getWarehouseList({ available: 'TRUE' }).then((res) => { |
|
|
|
allList.value.warehouseAllList = res.map((element) => { |
|
|
|
return { |
|
|
|
value: element.code, |
|
|
@ -773,7 +773,7 @@ const getWarehouseAllList = async () => { |
|
|
|
} |
|
|
|
// 获取库区列表 |
|
|
|
const getAreaAllList = async () => { |
|
|
|
await AreaApi.getAreaList({ available: 'TRUE' }).then((res) => { |
|
|
|
AreaApi.getAreaList({ available: 'TRUE' }).then((res) => { |
|
|
|
allList.value.areaAllList = res.map((element) => { |
|
|
|
return { |
|
|
|
value: element.code, |
|
|
@ -784,7 +784,7 @@ const getAreaAllList = async () => { |
|
|
|
} |
|
|
|
// 获取库位组列表 |
|
|
|
const getLocationgroupAllList = async () => { |
|
|
|
await LocationgroupApi.getLocationgroupList({ available: 'TRUE' }).then((res) => { |
|
|
|
LocationgroupApi.getLocationgroupList({ available: 'TRUE' }).then((res) => { |
|
|
|
allList.value.locationgroupAllList = res.map((element) => { |
|
|
|
return { |
|
|
|
value: element.code, |
|
|
@ -795,7 +795,7 @@ const getLocationgroupAllList = async () => { |
|
|
|
} |
|
|
|
// 获取库位列表 |
|
|
|
const getLocationAllList = async () => { |
|
|
|
await LocationpApi.getLocationList({ available: 'TRUE' }).then((res) => { |
|
|
|
LocationpApi.getLocationList({ available: 'TRUE' }).then((res) => { |
|
|
|
allList.value.locationAllList = res.map((element) => { |
|
|
|
return { |
|
|
|
value: element.code, |
|
|
|