|
@ -8,7 +8,18 @@ import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' |
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
|
|
|
|
|
|
|
|
|
import {Warehouse} from "@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data"; |
|
|
|
|
|
import * as WarehouseApi from "@/api/wms/warehouse"; |
|
|
|
|
|
import {Location} from "@/views/wms/basicDataManage/factoryModeling/location/location.data"; |
|
|
|
|
|
import * as LocationApi from "@/api/wms/location"; |
|
|
|
|
|
import { |
|
|
|
|
|
Productionlineitem |
|
|
|
|
|
} from "@/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data"; |
|
|
|
|
|
import * as ProductionlineitemApi from "@/api/wms/productionlineitem"; |
|
|
|
|
|
import { |
|
|
|
|
|
Supplieritem |
|
|
|
|
|
} from "@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data"; |
|
|
|
|
|
import * as SupplieritemApi from "@/api/wms/supplieritem"; |
|
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
@ -22,21 +33,11 @@ const queryParams = { |
|
|
const requestsettingData =data?.list[0]||{} |
|
|
const requestsettingData =data?.list[0]||{} |
|
|
|
|
|
|
|
|
// 获取当前操作人的部门
|
|
|
// 获取当前操作人的部门
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
import {Warehouse} from "@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data"; |
|
|
import { TableColumn } from '@/types/table' |
|
|
import * as WarehouseApi from "@/api/wms/warehouse"; |
|
|
const userStore = useUserStore() |
|
|
import {Location} from "@/views/wms/basicDataManage/factoryModeling/location/location.data"; |
|
|
const userDept = userStore.userSelfInfo.dept |
|
|
import * as LocationApi from "@/api/wms/location"; |
|
|
const userDeptArray:any = [userDept] |
|
|
import { |
|
|
|
|
|
Productionlineitem |
|
|
|
|
|
} from "@/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data"; |
|
|
|
|
|
import * as ProductionlineitemApi from "@/api/wms/productionlineitem"; |
|
|
|
|
|
import { |
|
|
|
|
|
Supplieritem |
|
|
|
|
|
} from "@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data"; |
|
|
|
|
|
import * as SupplieritemApi from "@/api/wms/supplieritem"; |
|
|
|
|
|
const userStore = useUserStore() |
|
|
|
|
|
const userDept = userStore.userSelfInfo.dept |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 计划外入库申请主表 |
|
|
* @returns {Array} 计划外入库申请主表 |
|
@ -191,10 +192,19 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
|
|
|
return userDeptArray.find((account) => account.id === cellValue)?.name |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
value: userDept.name, |
|
|
value: userDept.id, |
|
|
|
|
|
component: 'Select', |
|
|
|
|
|
api: () => userDeptArray, |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true, |
|
|
|
|
|
optionsAlias: { |
|
|
|
|
|
labelField: 'name', |
|
|
|
|
|
valueField: 'id' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|