Browse Source

修改是否可用为滑块

master_hella_20240701
liuchen864 6 months ago
parent
commit
cde1dcaec6
  1. 13
      src/views/wms/buttMesManage/mesBarCode/mesBarCode.data.ts

13
src/views/wms/buttMesManage/mesBarCode/mesBarCode.data.ts

@ -6,6 +6,7 @@ export const MesBarCodeRules = reactive({
available: [required], available: [required],
lowerLim: [required], lowerLim: [required],
partNumber: [required], partNumber: [required],
available: [{ required: true, message: '是否可用不能为空', trigger: 'change' }]
}) })
export const MesBarCode = useCrudSchemas(reactive<CrudSchema[]>([ export const MesBarCode = useCrudSchemas(reactive<CrudSchema[]>([
@ -166,9 +167,19 @@ export const MesBarCode = useCrudSchemas(reactive<CrudSchema[]>([
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
sort: 'custom', sort: 'custom',
table: { dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
table: {
width: 120 width: 120
}, },
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '创建时间', label: '创建时间',

Loading…
Cancel
Save