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