|
|
@ -6,7 +6,7 @@ import { validateHanset, validateEmail } from '@/utils/validator' |
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 备件申请主表 |
|
|
|
* @returns {Array} 备件申领主表 |
|
|
|
*/ |
|
|
|
export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
@ -47,31 +47,22 @@ export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否可用', |
|
|
|
field: 'available', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
label: '状态', |
|
|
|
field: 'status', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.ITEM_APPLY_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
|
value: 'TRUE', |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|
field: 'action', |
|
|
|
isDetail: false, |
|
|
|