Browse Source

修改是否可用为滑块

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

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

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

Loading…
Cancel
Save