|
|
@ -18,10 +18,6 @@ export const ItemAccountsRules = reactive({ |
|
|
|
areaNumber: [required], |
|
|
|
type: [required], |
|
|
|
locationNumber: [required], |
|
|
|
// qty: [
|
|
|
|
// required,
|
|
|
|
// { validator: validateNumber, message: '数量不能等于0', trigger: 'blur' },
|
|
|
|
// ],
|
|
|
|
}) |
|
|
|
|
|
|
|
export const ItemAccounts = useCrudSchemas( |
|
|
@ -57,9 +53,9 @@ export const ItemAccounts = useCrudSchemas( |
|
|
|
table: { |
|
|
|
width: 130 |
|
|
|
}, |
|
|
|
form:{ |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
isSearch: false |
|
|
@ -93,7 +89,7 @@ export const ItemAccounts = useCrudSchemas( |
|
|
|
field: 'areaName', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm:false,table: { |
|
|
|
isForm: false, table: { |
|
|
|
width: 130 |
|
|
|
}, |
|
|
|
}, |
|
|
@ -131,7 +127,7 @@ export const ItemAccounts = useCrudSchemas( |
|
|
|
field: 'locationName', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm:false,table: { |
|
|
|
isForm: false, table: { |
|
|
|
width: 130 |
|
|
|
}, |
|
|
|
}, |
|
|
@ -143,7 +139,7 @@ export const ItemAccounts = useCrudSchemas( |
|
|
|
width: '110', |
|
|
|
}, |
|
|
|
isDetail: false, |
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
|
formatter: (_ : Recordable, __ : TableColumn, cellValue : number) => { |
|
|
|
return typeLists.find((account) => account.value == cellValue)?.label |
|
|
|
}, |
|
|
|
// dictType: DICT_TYPE.APP_DEVICE_MOLD_TYPE,
|
|
|
@ -180,9 +176,9 @@ export const ItemAccounts = useCrudSchemas( |
|
|
|
table: { |
|
|
|
width: 110 |
|
|
|
}, |
|
|
|
form:{ |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps:{ |
|
|
|
componentProps: { |
|
|
|
min: 0,//最小值`
|
|
|
|
precision: 2//精度`
|
|
|
|
} |
|
|
@ -193,6 +189,7 @@ export const ItemAccounts = useCrudSchemas( |
|
|
|
field: 'uom', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 110 |
|
|
|
}, |
|
|
@ -202,6 +199,7 @@ export const ItemAccounts = useCrudSchemas( |
|
|
|
field: 'specifications', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 110 |
|
|
|
}, |
|
|
@ -213,15 +211,17 @@ export const ItemAccounts = useCrudSchemas( |
|
|
|
dictType: DICT_TYPE.CLASSIFICATION, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 100 |
|
|
|
} , |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '使用地点', |
|
|
|
field: 'usePlace', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 110 |
|
|
|
}, |
|
|
@ -231,6 +231,7 @@ export const ItemAccounts = useCrudSchemas( |
|
|
|
field: 'project', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 110 |
|
|
|
}, |
|
|
@ -254,18 +255,6 @@ export const ItemAccounts = useCrudSchemas( |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '是否账内库',
|
|
|
|
// field: 'isInAccount',
|
|
|
|
// dictType: DICT_TYPE.TRUE_FALSE,
|
|
|
|
// dictClass: 'string',
|
|
|
|
// isSearch: false,
|
|
|
|
// isTable: true,
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 130
|
|
|
|
// },
|
|
|
|
|
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|
field: 'action', |
|
|
|