diff --git a/src/api/qms/sampleCode/index.ts b/src/api/qms/sampleCode/index.ts index 021edea4e..3f8e22f45 100644 --- a/src/api/qms/sampleCode/index.ts +++ b/src/api/qms/sampleCode/index.ts @@ -5,13 +5,13 @@ export interface SampleCodeVO { code: string batchLowLimiting: number batchUpperLimiting: number - s1: number - s2: number - s3: number - s4: number - g1: number - g2: number - g3: number + s1: string + s2: string + s3: string + s4: string + g1: string + g2: string + g3: string available: string } diff --git a/src/views/qms/sampleCode/index.vue b/src/views/qms/sampleCode/index.vue index bc328bf0e..0c31d4587 100644 --- a/src/views/qms/sampleCode/index.vue +++ b/src/views/qms/sampleCode/index.vue @@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'wms:sampleCode:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'wms:sampleCode:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'wms:sampleCode:export'}), // 导出 + defaultButtons.defaultAddBtn({hasPermi:'qms:sampleCode:create'}), // 新增 + defaultButtons.defaultImportBtn({hasPermi:'qms:sampleCode:import'}), // 导入 + defaultButtons.defaultExportBtn({hasPermi:'qms:sampleCode:export'}), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -133,8 +133,8 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = [ - defaultButtons.mainListEditBtn({hasPermi:'wms:sampleCode:update'}), // 编辑 - defaultButtons.mainListDeleteBtn({hasPermi:'wms:sampleCode:delete'}), // 删除 + defaultButtons.mainListEditBtn({hasPermi:'qms:sampleCode:update'}), // 编辑 + defaultButtons.mainListDeleteBtn({hasPermi:'qms:sampleCode:delete'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/qms/sampleCode/sampleCode.data.ts b/src/views/qms/sampleCode/sampleCode.data.ts index cc6e9ed6d..a17eff756 100644 --- a/src/views/qms/sampleCode/sampleCode.data.ts +++ b/src/views/qms/sampleCode/sampleCode.data.ts @@ -24,7 +24,7 @@ export const SampleCode = useCrudSchemas(reactive([ }, { label: '批量下限', - field: 'batchLow limiting', + field: 'batchLowLimiting', sort: 'custom', isSearch: true, form: { @@ -81,6 +81,11 @@ export const SampleCode = useCrudSchemas(reactive([ label: '是否可用', field: 'available', sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + form: { + component: 'SelectV2' + }, }, { label: '创建时间',