liuchen864 7 months ago
parent
commit
9fb3064815
  1. 9
      src/views/eam/basic/item/item.data.ts
  2. 28
      src/views/eam/item/countadjustPlan/countadjustPlan.data.ts
  3. 8
      src/views/eam/item/itemAccounts/itemAccounts.data.ts

9
src/views/eam/basic/item/item.data.ts

@ -17,6 +17,9 @@ export const ItemRules = reactive({
minInventory: [ minInventory: [
{ required: true, message: '请输入最高库存', trigger: 'blur' } { required: true, message: '请输入最高库存', trigger: 'blur' }
], ],
classification: [
{ required: true, message: '请输入ABC分类', trigger: 'blur' }
],
}) })
export const ItemSearchTable = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemSearchTable = useCrudSchemas(reactive<CrudSchema[]>([
@ -143,9 +146,11 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
label: 'ABC分类', label: 'ABC分类',
field: 'classification', field: 'classification',
sort: 'custom', sort: 'custom',
isSearch: false, dictType: DICT_TYPE.CLASSIFICATION,
dictClass: 'string',
isTable: true,
table: { table: {
width: 110 width: 100
} , } ,
}, },
{ {

28
src/views/eam/item/countadjustPlan/countadjustPlan.data.ts

@ -7,7 +7,9 @@ export const CountadjustPlanRules = reactive({
classification: [ classification: [
{ required: true, message: '请选择盘点类型', trigger: 'blur' } { required: true, message: '请选择盘点类型', trigger: 'blur' }
], ],
type: [
{ required: true, message: '请选择库位类型', trigger: 'blur' }
],
}) })
export const CountadjustPlan = useCrudSchemas(reactive<CrudSchema[]>([ export const CountadjustPlan = useCrudSchemas(reactive<CrudSchema[]>([
@ -42,29 +44,15 @@ export const CountadjustPlan = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '是否账内库', label: '库存类型',
field: 'isInAccount', field: 'type',
dictType: DICT_TYPE.TRUE_FALSE, sort: 'custom',
dictType: DICT_TYPE.ITEM_ACCOUNT_LOCATION_TYPE,
dictClass: 'string', dictClass: 'string',
isSearch: false,
isTable: true, isTable: true,
sort: 'custom',
table: { table: {
width: 140 width: 100
} , } ,
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '操作', label: '操作',

8
src/views/eam/item/itemAccounts/itemAccounts.data.ts

@ -18,10 +18,10 @@ export const ItemAccountsRules = reactive({
areaNumber: [required], areaNumber: [required],
type: [required], type: [required],
locationNumber: [required], locationNumber: [required],
qty: [ // qty: [
required, // required,
{ validator: validateNumber, message: '数量不能等于0', trigger: 'blur' }, // { validator: validateNumber, message: '数量不能等于0', trigger: 'blur' },
], // ],
}) })
export const ItemAccounts = useCrudSchemas( export const ItemAccounts = useCrudSchemas(

Loading…
Cancel
Save