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