|
|
@ -21,7 +21,7 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备件名称', |
|
|
|
field: 'itemDO.name', |
|
|
|
field: 'name', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 110 |
|
|
@ -78,21 +78,21 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '规格', |
|
|
|
field: 'itemDO.specifications', |
|
|
|
field: 'specifications', |
|
|
|
sort: 'custom', |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否存储', |
|
|
|
field: 'itemDO.isConstant', |
|
|
|
label: '是否常储', |
|
|
|
field: 'isConstant', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 110 |
|
|
|
width: 110, |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
@ -109,57 +109,84 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否存储', |
|
|
|
field: 'itemDO.isRadeIn', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
label: '科目', |
|
|
|
field: 'subject', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.ITEM_SUBJECT, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 110 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
|
value: 'TRUE', |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '科目', |
|
|
|
field: 'itemDO.subject', |
|
|
|
label: '科目代码', |
|
|
|
field: 'subjectCode', |
|
|
|
sort: 'custom', |
|
|
|
isTable: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单位', |
|
|
|
field: 'itemDO.uom', |
|
|
|
field: 'uom', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '类别', |
|
|
|
field: 'category', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.ITEM_CATEGORY, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备件分类', |
|
|
|
field: 'classification', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.CLASSIFICATION, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单价', |
|
|
|
field: 'itemDO.singlePrice', |
|
|
|
label: '区域', |
|
|
|
field: 'region', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.ITEM_REGION, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '单价',
|
|
|
|
// field: 'singlePrice',
|
|
|
|
// sort: 'custom',
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '重点采购', |
|
|
|
field: 'itemDO.reprocurement', |
|
|
|
label: '重采购点', |
|
|
|
field: 'reprocurement', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 110, |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
value: 0 |
|
|
@ -167,8 +194,11 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '安全库存', |
|
|
|
field: 'itemDO.safetyStock', |
|
|
|
field: 'safetyStock', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 110, |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
value: 0 |
|
|
@ -176,44 +206,75 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '成本中心', |
|
|
|
field: 'itemDO.cost', |
|
|
|
field: 'cost', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 110, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '采购员', |
|
|
|
field: 'itemDO.purchaser', |
|
|
|
field: 'purchaser', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 100, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '财务', |
|
|
|
field: 'itemDO.financer', |
|
|
|
field: 'financer', |
|
|
|
sort: 'custom', |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '是否以旧换新',
|
|
|
|
// field: 'itemDO.isRadeIn',
|
|
|
|
// dictType: DICT_TYPE.TRUE_FALSE,
|
|
|
|
// dictClass: 'string',
|
|
|
|
// isSearch: false,
|
|
|
|
// 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: 'isRadeIn', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 140 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
|
value: 'TRUE', |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否框架协议', |
|
|
|
field: 'isFramework', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 140 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
|
value: 'TRUE', |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否可用', |
|
|
|
field: 'available', |
|
|
|