|
@ -16,45 +16,30 @@ export const ItemInLocation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'number', |
|
|
field: 'number', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备件编号', |
|
|
label: '备件编号', |
|
|
field: 'itemNumber', |
|
|
field: 'itemNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备件名称', |
|
|
label: '备件名称', |
|
|
field: 'name', |
|
|
field: 'name', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
|
|
|
width: 180, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '库位编号', |
|
|
label: '库位编号', |
|
|
field: 'locationNumber', |
|
|
field: 'locationNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '规格型号', |
|
|
label: '规格型号', |
|
|
field: 'specifications', |
|
|
field: 'specifications', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '类型', |
|
|
label: '类型', |
|
@ -63,9 +48,6 @@ export const ItemInLocation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
dictType: DICT_TYPE.ITEM_OUT_IN_TYPE, |
|
|
dictType: DICT_TYPE.ITEM_OUT_IN_TYPE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
form: { |
|
|
component: 'Select' |
|
|
component: 'Select' |
|
|
}, |
|
|
}, |
|
@ -75,9 +57,6 @@ export const ItemInLocation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'qty', |
|
|
field: 'qty', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建人', |
|
|
label: '创建人', |
|
@ -87,9 +66,6 @@ export const ItemInLocation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
return userListAll.find((account) => account.id == cellValue)?.nickname |
|
|
return userListAll.find((account) => account.id == cellValue)?.nickname |
|
|
}, |
|
|
}, |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '创建时间', |
|
@ -97,9 +73,6 @@ export const ItemInLocation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -115,7 +88,6 @@ export const ItemInLocation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'action', |
|
|
field: 'action', |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
|
|
|
fixed: 'right' |
|
|
fixed: 'right' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|