|
|
@ -11,6 +11,14 @@ import * as QadProjectApi from '@/api/wms/qadProject' |
|
|
|
import * as SubjectAccountApi from '@/api/wms/subjectAccount' |
|
|
|
import { SubjectAccount } from '@/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data' |
|
|
|
|
|
|
|
// 获取当前操作人的部门
|
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
const userStore = useUserStore() |
|
|
|
const userDept = userStore.userSelfInfo.dept |
|
|
|
// id 转str 否则form回显匹配不到
|
|
|
|
userDept.id = userDept.id.toString() |
|
|
|
const userDeptArray: any = [userDept] |
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 计划外出库记录主表 |
|
|
|
*/ |
|
|
@ -345,6 +353,9 @@ export const UnplannedissueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
|
return userDeptArray.find((account) => account.id == cellValue)?.name |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '接口类型', |
|
|
@ -450,26 +461,26 @@ export const UnplannedissueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '是否可用', |
|
|
|
field: 'available', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
|
value: 'TRUE', |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '是否可用',
|
|
|
|
// field: 'available',
|
|
|
|
// dictType: DICT_TYPE.TRUE_FALSE,
|
|
|
|
// dictClass: 'string',
|
|
|
|
// isSearch: false,
|
|
|
|
// isTable: true,
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// form: {
|
|
|
|
// component: 'Switch',
|
|
|
|
// value: 'TRUE',
|
|
|
|
// componentProps: {
|
|
|
|
// inactiveValue: 'FALSE',
|
|
|
|
// activeValue: 'TRUE'
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
])) |
|
|
|
|
|
|
|
//表单校验
|
|
|
|