Browse Source

盘点计划

master_hella_20240701
yufei0306 5 months ago
parent
commit
7978af2146
  1. 32
      src/views/wms/countManage/count/countPlanMain/index.vue

32
src/views/wms/countManage/count/countPlanMain/index.vue

@ -374,14 +374,14 @@ const openForm = async (type: string, row?: number) => {
] // ] //
formRef.value.open(type, row) formRef.value.open(type, row)
getOwnerAllList() Promise.all([getOwnerAllList(),
getSupplierAllList() getSupplierAllList(),
getCustomerAllList() getCustomerAllList(),
getItembasicAllList() getItembasicAllList(),
getWarehouseAllList() getWarehouseAllList(),
getAreaAllList() getAreaAllList(),
getLocationgroupAllList() getLocationgroupAllList(),
getLocationAllList() getLocationAllList()])
} }
/** 详情操作 */ /** 详情操作 */
@ -718,7 +718,7 @@ const allList = ref({
}) })
// //
const getOwnerAllList = async () => { const getOwnerAllList = async () => {
await OwnerApi.getOwnerList().then((res) => { OwnerApi.getOwnerList().then((res) => {
allList.value.ownerAllList = res.map((element) => { allList.value.ownerAllList = res.map((element) => {
return { return {
value: element.code, value: element.code,
@ -729,7 +729,7 @@ const getOwnerAllList = async () => {
} }
// //
const getSupplierAllList = async () => { const getSupplierAllList = async () => {
await SupplierApi.getSupplierList().then((res) => { SupplierApi.getSupplierList().then((res) => {
allList.value.supplierAllList = res.map((element) => { allList.value.supplierAllList = res.map((element) => {
return { return {
value: element.code, value: element.code,
@ -740,7 +740,7 @@ const getSupplierAllList = async () => {
} }
// //
const getCustomerAllList = async () => { const getCustomerAllList = async () => {
await CustomerApi.getCustomerList().then((res) => { CustomerApi.getCustomerList().then((res) => {
allList.value.customerAllList = res.map((element) => { allList.value.customerAllList = res.map((element) => {
return { return {
value: element.code, value: element.code,
@ -751,7 +751,7 @@ const getCustomerAllList = async () => {
} }
// //
const getItembasicAllList = async () => { const getItembasicAllList = async () => {
await ItembasicApi.getItembasicList().then((res) => { ItembasicApi.getItembasicList().then((res) => {
allList.value.itembasicAllList = res.map((element) => { allList.value.itembasicAllList = res.map((element) => {
return { return {
value: element.code, value: element.code,
@ -762,7 +762,7 @@ const getItembasicAllList = async () => {
} }
// //
const getWarehouseAllList = async () => { const getWarehouseAllList = async () => {
await WarehouseApi.getWarehouseList({ available: 'TRUE' }).then((res) => { WarehouseApi.getWarehouseList({ available: 'TRUE' }).then((res) => {
allList.value.warehouseAllList = res.map((element) => { allList.value.warehouseAllList = res.map((element) => {
return { return {
value: element.code, value: element.code,
@ -773,7 +773,7 @@ const getWarehouseAllList = async () => {
} }
// //
const getAreaAllList = async () => { const getAreaAllList = async () => {
await AreaApi.getAreaList({ available: 'TRUE' }).then((res) => { AreaApi.getAreaList({ available: 'TRUE' }).then((res) => {
allList.value.areaAllList = res.map((element) => { allList.value.areaAllList = res.map((element) => {
return { return {
value: element.code, value: element.code,
@ -784,7 +784,7 @@ const getAreaAllList = async () => {
} }
// //
const getLocationgroupAllList = async () => { const getLocationgroupAllList = async () => {
await LocationgroupApi.getLocationgroupList({ available: 'TRUE' }).then((res) => { LocationgroupApi.getLocationgroupList({ available: 'TRUE' }).then((res) => {
allList.value.locationgroupAllList = res.map((element) => { allList.value.locationgroupAllList = res.map((element) => {
return { return {
value: element.code, value: element.code,
@ -795,7 +795,7 @@ const getLocationgroupAllList = async () => {
} }
// //
const getLocationAllList = async () => { const getLocationAllList = async () => {
await LocationpApi.getLocationList({ available: 'TRUE' }).then((res) => { LocationpApi.getLocationList({ available: 'TRUE' }).then((res) => {
allList.value.locationAllList = res.map((element) => { allList.value.locationAllList = res.map((element) => {
return { return {
value: element.code, value: element.code,

Loading…
Cancel
Save