diff --git a/src/views/wms/mes/mesBarCode/index.vue b/src/views/wms/mes/mesBarCode/index.vue index b24a20fa1..ec7404601 100644 --- a/src/views/wms/mes/mesBarCode/index.vue +++ b/src/views/wms/mes/mesBarCode/index.vue @@ -133,8 +133,8 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = [ - defaultButtons.mainListEditBtn({hasPermi:'wms:mesBarCode:update'}), // 编辑 - defaultButtons.mainListDeleteBtn({hasPermi:'wms:mesBarCode:delete'}), // 删除 + defaultButtons.mainListEditBtn({hasPermi:'wms:mes-bar-code:update'}), // 编辑 + defaultButtons.mainListDeleteBtn({hasPermi:'wms:mes-bar-code:delete'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/wms/mes/mesBarCode/mesBarCode.data.ts b/src/views/wms/mes/mesBarCode/mesBarCode.data.ts index 39b4c5a7a..78c22dab4 100644 --- a/src/views/wms/mes/mesBarCode/mesBarCode.data.ts +++ b/src/views/wms/mes/mesBarCode/mesBarCode.data.ts @@ -7,17 +7,13 @@ export const MesBarCodeRules = reactive({ }) export const MesBarCode = useCrudSchemas(reactive([ - { - label: 'id', - field: 'id', - sort: 'custom', - isForm: false, - }, { label: 'Plnt', field: 'plat', sort: 'custom', - isSearch: true, + table: { + width: 120 + }, form: { component: 'InputNumber', value: 0 @@ -27,43 +23,57 @@ export const MesBarCode = useCrudSchemas(reactive([ label: 'Counter', field: 'counter', sort: 'custom', - isSearch: true, + table: { + width: 150 + }, }, { label: 'SIGN', field: 'sign', sort: 'custom', - isSearch: true, + table: { + width: 120 + }, }, { label: 'Option', field: 'option', sort: 'custom', - isSearch: true, + table: { + width: 120 + }, }, { label: 'Lower Lim.', field: 'lowerLim', sort: 'custom', - isSearch: true, + table: { + width: 150 + }, }, { label: 'UpperLimit', field: 'upperLimit', sort: 'custom', - isSearch: true, + table: { + width: 150 + }, }, { label: 'ITAC', field: 'itac', sort: 'custom', - isSearch: true, + table: { + width: 120 + }, }, { label: 'Type', field: 'type', sort: 'custom', - isSearch: true, + table: { + width: 120 + }, form: { component: 'SelectV2' }, @@ -72,7 +82,9 @@ export const MesBarCode = useCrudSchemas(reactive([ label: 'Length BC', field: 'lengthBc', sort: 'custom', - isSearch: true, + table: { + width: 150 + }, form: { component: 'InputNumber', value: 0 @@ -82,13 +94,17 @@ export const MesBarCode = useCrudSchemas(reactive([ label: 'Pos. mat', field: 'posMat', sort: 'custom', - isSearch: true, + table: { + width: 150 + }, }, { label: 'Length mat', field: 'lengthMat', sort: 'custom', - isSearch: true, + table: { + width: 150 + }, form: { component: 'InputNumber', value: 0 @@ -98,37 +114,49 @@ export const MesBarCode = useCrudSchemas(reactive([ label: 'Pos. revlv', field: 'posRevlv', sort: 'custom', - isSearch: true, + table: { + width: 150 + }, }, { label: 'Part number', field: 'partNumber', sort: 'custom', - isSearch: true, + table: { + width: 150 + }, }, { label: 'Pack Label', field: 'packLabel', sort: 'custom', - isSearch: true, + table: { + width: 150 + }, }, { label: 'OES-Label', field: 'oesLabel', sort: 'custom', - isSearch: true, + table: { + width: 150 + }, }, { label: 'Check Rvl', field: 'checkRvl', sort: 'custom', - isSearch: true, + table: { + width: 150 + }, }, { label: 'Days', field: 'days', sort: 'custom', - isSearch: true, + table: { + width: 120 + }, form: { component: 'InputNumber', value: 0 @@ -138,14 +166,18 @@ export const MesBarCode = useCrudSchemas(reactive([ label: '是否可用', field: 'available', sort: 'custom', - isSearch: true, + table: { + width: 120 + }, }, { label: '创建时间', field: 'createTime', sort: 'custom', formatter: dateFormatter, - isSearch: true, + table: { + width: 180 + }, search: { component: 'DatePicker', componentProps: { @@ -160,7 +192,9 @@ export const MesBarCode = useCrudSchemas(reactive([ label: '备注', field: 'remark', sort: 'custom', - isSearch: true, + table: { + width: 120 + }, }, { label: '操作',