|
@ -16,15 +16,12 @@ export const ItemRules = reactive({ |
|
|
{ required: true, message: '请选择备件单位', trigger: 'blur' }, |
|
|
{ required: true, message: '请选择备件单位', trigger: 'blur' }, |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
classification: [ |
|
|
classification: [{ required: true, message: '请选择备件分类', trigger: 'blur' }], |
|
|
{ required: true, message: '请选择备件分类', trigger: 'blur' }, |
|
|
describes: [{ max: 600, message: '不得超过600个字符', trigger: 'blur' }] |
|
|
], |
|
|
|
|
|
describes: [ |
|
|
|
|
|
{ max: 600, message: '不得超过600个字符', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
export const Item = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const Item = useCrudSchemas( |
|
|
|
|
|
reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '备件编号', |
|
|
label: '备件编号', |
|
|
field: 'number', |
|
|
field: 'number', |
|
@ -34,7 +31,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 180, |
|
|
width: 180, |
|
|
fixed: 'left' |
|
|
fixed: 'left' |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备件名称', |
|
|
label: '备件名称', |
|
@ -42,13 +39,13 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 110, |
|
|
width: 110 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '规格', |
|
|
label: '规格', |
|
|
field: 'specifications', |
|
|
field: 'specifications', |
|
|
sort: 'custom', |
|
|
sort: 'custom' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '是否常储', |
|
|
label: '是否常储', |
|
@ -59,7 +56,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 110, |
|
|
width: 110 |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'Select', |
|
|
type: 'Select', |
|
@ -92,7 +89,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '科目代码', |
|
|
label: '科目代码', |
|
|
field: 'subjectCode', |
|
|
field: 'subjectCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isTable: true, |
|
|
isTable: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单位', |
|
|
label: '单位', |
|
@ -160,25 +157,25 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 110, |
|
|
width: 110 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单价', |
|
|
label: '单价', |
|
|
field: 'singlePrice', |
|
|
field: 'singlePrice', |
|
|
sort: 'custom', |
|
|
sort: 'custom' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '重采购点', |
|
|
label: '重采购点', |
|
|
field: 'reprocurement', |
|
|
field: 'reprocurement', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 110, |
|
|
width: 110 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
value: 0 |
|
|
value: 0 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '安全库存', |
|
|
label: '安全库存', |
|
@ -187,33 +184,33 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isForm: true, |
|
|
isForm: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 110, |
|
|
width: 110 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
value: 0, |
|
|
value: 0 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '成本中心', |
|
|
label: '成本中心', |
|
|
field: 'cost', |
|
|
field: 'cost', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 110, |
|
|
width: 110 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '采购员', |
|
|
label: '采购员', |
|
|
field: 'purchaser', |
|
|
field: 'purchaser', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 100, |
|
|
width: 100 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '财务', |
|
|
label: '财务', |
|
|
field: 'financer', |
|
|
field: 'financer', |
|
|
sort: 'custom', |
|
|
sort: 'custom' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '是否以旧换新', |
|
|
label: '是否以旧换新', |
|
@ -290,16 +287,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
// },
|
|
|
// },
|
|
|
{ |
|
|
|
|
|
label: '创建时间', |
|
|
|
|
|
field: 'createTime', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 170 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '描述', |
|
|
label: '描述', |
|
|
field: 'describes', |
|
|
field: 'describes', |
|
@ -307,11 +295,27 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
form: { |
|
|
form: { |
|
|
component: 'Input', |
|
|
component: 'Input', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
type: 'textarea', |
|
|
type: 'textarea' |
|
|
}, |
|
|
}, |
|
|
colProps: { |
|
|
colProps: { |
|
|
span: 24, |
|
|
span: 24 |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '创建者', |
|
|
|
|
|
field: 'creator', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '创建时间', |
|
|
|
|
|
field: 'createTime', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 170 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// {
|
|
|
// {
|
|
@ -338,8 +342,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isForm: true, |
|
|
isForm: true, |
|
|
table: { |
|
|
table: {}, |
|
|
}, |
|
|
|
|
|
form: { |
|
|
form: { |
|
|
component: 'UploadImgs', |
|
|
component: 'UploadImgs', |
|
|
colProps: { |
|
|
colProps: { |
|
@ -356,9 +359,11 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
fixed: 'right' |
|
|
fixed: 'right' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
])) |
|
|
]) |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
export const ItemSearchTable = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const ItemSearchTable = useCrudSchemas( |
|
|
|
|
|
reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '备件编号', |
|
|
label: '备件编号', |
|
|
field: 'number', |
|
|
field: 'number', |
|
@ -367,19 +372,19 @@ export const ItemSearchTable = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
table: { |
|
|
table: { |
|
|
fixed: 'left' |
|
|
fixed: 'left' |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备件名称', |
|
|
label: '备件名称', |
|
|
field: 'name', |
|
|
field: 'name', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
table: {} |
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '数量', |
|
|
label: '数量', |
|
|
field: 'qty', |
|
|
field: 'qty', |
|
|
sort: 'custom', |
|
|
sort: 'custom' |
|
|
} |
|
|
} |
|
|
])) |
|
|
]) |
|
|
|
|
|
) |
|
|