|
|
@ -11,6 +11,9 @@ import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/su |
|
|
|
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' |
|
|
|
|
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
|
const queryParams = { |
|
|
|
pageSize: 10, |
|
|
@ -20,20 +23,12 @@ const queryParams = { |
|
|
|
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) |
|
|
|
const requestsettingData = data?.list[0] || {} |
|
|
|
|
|
|
|
// 获取当前操作人的部门
|
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
const userStore = useUserStore() |
|
|
|
const userDept = userStore.userSelfInfo.dept |
|
|
|
|
|
|
|
import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
|
import * as PurchasereceiptRecordMainApi from '@/api/wms/purchasereceiptRecordMain' |
|
|
|
import { PurchasereceiptRecordMain } from '../../purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data' |
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
|
import { PurchaseDetail, PurchaseMain } from '../../supplierdeliver/purchaseMain/purchaseMain.data' |
|
|
|
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' |
|
|
|
import * as LocationApi from '@/api/wms/location' |
|
|
|
// 获取当前操作人的部门
|
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
import { TableColumn } from '@/types/table' |
|
|
|
const userStore = useUserStore() |
|
|
|
const userDept = userStore.userSelfInfo.dept |
|
|
|
const userDeptArray:any = [userDept] |
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 检验申请主表 |
|
|
@ -302,10 +297,19 @@ export const InspectRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
|
return userDeptArray.find((account) => account.id === cellValue)?.name |
|
|
|
}, |
|
|
|
form: { |
|
|
|
value: userDept.name, |
|
|
|
value: userDept.id, |
|
|
|
component: 'Select', |
|
|
|
api: () => userDeptArray, |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
disabled: true, |
|
|
|
optionsAlias: { |
|
|
|
labelField: 'name', |
|
|
|
valueField: 'id' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|