|
@ -8,21 +8,6 @@ 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' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
|
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
|
|
|
const queryParams = { |
|
|
|
|
|
pageSize:10, |
|
|
|
|
|
pageNo:1, |
|
|
|
|
|
code:'UnplannedReceiptRequest' |
|
|
|
|
|
} |
|
|
|
|
|
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) |
|
|
|
|
|
const requestsettingData =data?.list[0]||{} |
|
|
|
|
|
|
|
|
|
|
|
// 获取当前操作人的部门
|
|
|
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
|
|
import {Warehouse} from "@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data"; |
|
|
import {Warehouse} from "@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data"; |
|
|
import * as WarehouseApi from "@/api/wms/warehouse"; |
|
|
import * as WarehouseApi from "@/api/wms/warehouse"; |
|
|
import {Location} from "@/views/wms/basicDataManage/factoryModeling/location/location.data"; |
|
|
import {Location} from "@/views/wms/basicDataManage/factoryModeling/location/location.data"; |
|
@ -35,9 +20,25 @@ import { |
|
|
Supplieritem |
|
|
Supplieritem |
|
|
} from "@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data"; |
|
|
} from "@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data"; |
|
|
import * as SupplieritemApi from "@/api/wms/supplieritem"; |
|
|
import * as SupplieritemApi from "@/api/wms/supplieritem"; |
|
|
const userStore = useUserStore() |
|
|
|
|
|
const userDept = userStore.userSelfInfo.dept |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
|
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
|
|
|
const queryParams = { |
|
|
|
|
|
pageSize:10, |
|
|
|
|
|
pageNo:1, |
|
|
|
|
|
code:'UnplannedReceiptRequest' |
|
|
|
|
|
} |
|
|
|
|
|
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) |
|
|
|
|
|
const requestsettingData =data?.list[0]||{} |
|
|
|
|
|
|
|
|
|
|
|
// 获取当前操作人的部门
|
|
|
|
|
|
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} 计划外入库申请主表 |
|
|
* @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' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|