|
@ -12,6 +12,15 @@ import * as QadProjectApi from '@/api/wms/qadProject' |
|
|
import * as SubjectAccountApi from '@/api/wms/subjectAccount' |
|
|
import * as SubjectAccountApi from '@/api/wms/subjectAccount' |
|
|
import { SubjectAccount } from '@/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data' |
|
|
import { SubjectAccount } from '@/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data' |
|
|
|
|
|
|
|
|
|
|
|
// 获取当前操作人的部门
|
|
|
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
|
|
import { TableColumn } from '@/types/table' |
|
|
|
|
|
const userStore = useUserStore() |
|
|
|
|
|
const userDept = userStore.userSelfInfo.dept |
|
|
|
|
|
// id 转str 否则form回显匹配不到
|
|
|
|
|
|
userDept.id = userDept.id.toString() |
|
|
|
|
|
const userDeptArray: any = [userDept] |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 计划外入库记录主表 |
|
|
* @returns {Array} 计划外入库记录主表 |
|
|
*/ |
|
|
*/ |
|
@ -338,14 +347,17 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
// {
|
|
|
{ |
|
|
// label: '部门',
|
|
|
label: '部门', |
|
|
// field: 'departmentCode',
|
|
|
field: 'departmentCode', |
|
|
// sort: 'custom',
|
|
|
sort: 'custom', |
|
|
// table: {
|
|
|
table: { |
|
|
// width: 150
|
|
|
width: 150 |
|
|
// },
|
|
|
}, |
|
|
// },
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
|
|
|
return userDeptArray.find((account) => account.id == cellValue)?.name |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '接口类型', |
|
|
label: '接口类型', |
|
|
field: 'interfaceType', |
|
|
field: 'interfaceType', |
|
|