|
@ -75,14 +75,31 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
value: 'areaNumber', |
|
|
value: 'areaNumber', |
|
|
message: '请选择库区编号!', |
|
|
message: '请选择库区编号!', |
|
|
isMainValue: true, // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 // 前置添加必有,和isFormModel结合使用
|
|
|
isMainValue: true, // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 // 前置添加必有,和isFormModel结合使用
|
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'isInAccount', |
|
|
|
|
|
value: 'isInAccountWill', |
|
|
|
|
|
message: '请选择备件编号!', |
|
|
|
|
|
isMainValue: true, // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 // 前置添加必有,和isFormModel结合使用
|
|
|
}] |
|
|
}] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
label: '是否账内预期值', |
|
|
|
|
|
field: 'isInAccountWill', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备件名称', |
|
|
label: '备件名称', |
|
|
field: 'name', |
|
|
field: 'name', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 110 |
|
|
width: 110 |
|
|
}, |
|
|
}, |
|
@ -92,6 +109,12 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '规格', |
|
|
label: '规格', |
|
|
field: 'specifications', |
|
|
field: 'specifications', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '(账内或账外)库存数量', |
|
|
label: '(账内或账外)库存数量', |
|
@ -132,11 +155,18 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '单价', |
|
|
label: '单价', |
|
|
field: 'singlePrice', |
|
|
field: 'singlePrice', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '总价', |
|
|
label: '总价', |
|
|
field: 'totalPrice', |
|
|
field: 'totalPrice', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '是否账内库', |
|
|
label: '是否账内库', |
|
@ -159,7 +189,8 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
inactiveValue: 'FALSE', |
|
|
inactiveValue: 'FALSE', |
|
|
activeValue: 'TRUE' |
|
|
activeValue: 'TRUE', |
|
|
|
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -185,7 +216,8 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
inactiveValue: 'FALSE', |
|
|
inactiveValue: 'FALSE', |
|
|
activeValue: 'TRUE' |
|
|
activeValue: 'TRUE', |
|
|
|
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -199,14 +231,26 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'Select' |
|
|
type: 'Select' |
|
|
|
|
|
}, |
|
|
|
|
|
isForm: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '科目代码', |
|
|
label: '科目代码', |
|
|
field: 'subjectCode', |
|
|
field: 'subjectCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
|
|
|
isForm: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单位', |
|
|
label: '单位', |
|
@ -218,8 +262,14 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'Select' |
|
|
type: 'Select' |
|
|
|
|
|
}, |
|
|
|
|
|
isForm: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '类别', |
|
|
label: '类别', |
|
|
field: 'category', |
|
|
field: 'category', |
|
@ -230,8 +280,14 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'Select' |
|
|
type: 'Select' |
|
|
|
|
|
}, |
|
|
|
|
|
isForm: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备件分类', |
|
|
label: '备件分类', |
|
|
field: 'classification', |
|
|
field: 'classification', |
|
@ -242,8 +298,14 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'Select' |
|
|
type: 'Select' |
|
|
|
|
|
}, |
|
|
|
|
|
isForm: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '区域', |
|
|
label: '区域', |
|
|
field: 'region', |
|
|
field: 'region', |
|
@ -254,8 +316,14 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'Select' |
|
|
type: 'Select' |
|
|
|
|
|
}, |
|
|
|
|
|
isForm: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
}, |
|
|
// {
|
|
|
// {
|
|
|
// label: '单价',
|
|
|
// label: '单价',
|
|
|
// field: 'singlePrice',
|
|
|
// field: 'singlePrice',
|
|
@ -268,22 +336,27 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 110, |
|
|
width: 110, |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: true, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
componentProps: { |
|
|
value: 0 |
|
|
disabled: true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '安全库存', |
|
|
label: '安全库存', |
|
|
field: 'safetyStock', |
|
|
field: 'safetyStock', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isForm: false, |
|
|
isForm: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 110, |
|
|
width: 110, |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
value: 0 |
|
|
value: 0, |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -293,6 +366,12 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 110, |
|
|
width: 110, |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '采购员', |
|
|
label: '采购员', |
|
@ -301,11 +380,23 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 100, |
|
|
width: 100, |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '财务', |
|
|
label: '财务', |
|
|
field: 'financer', |
|
|
field: 'financer', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '是否以旧换新', |
|
|
label: '是否以旧换新', |
|
@ -328,7 +419,8 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
inactiveValue: 'FALSE', |
|
|
inactiveValue: 'FALSE', |
|
|
activeValue: 'TRUE' |
|
|
activeValue: 'TRUE', |
|
|
|
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -337,10 +429,10 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'purchaseTime', |
|
|
field: 'purchaseTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isForm: false, |
|
|
|
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '库龄', |
|
|
label: '库龄', |
|
@ -387,7 +479,8 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
inactiveValue: 'FALSE', |
|
|
inactiveValue: 'FALSE', |
|
|
activeValue: 'TRUE' |
|
|
activeValue: 'TRUE', |
|
|
|
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -414,7 +507,8 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
inactiveValue: 'FALSE', |
|
|
inactiveValue: 'FALSE', |
|
|
activeValue: 'TRUE' |
|
|
activeValue: 'TRUE' |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
|
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '操作', |
|
|
label: '操作', |
|
|