Browse Source

样本字码

master_hella_20240701
zhaoyiran 8 months ago
parent
commit
a958d35adf
  1. 14
      src/api/qms/sampleCode/index.ts
  2. 10
      src/views/qms/sampleCode/index.vue
  3. 7
      src/views/qms/sampleCode/sampleCode.data.ts

14
src/api/qms/sampleCode/index.ts

@ -5,13 +5,13 @@ export interface SampleCodeVO {
code: string code: string
batchLowLimiting: number batchLowLimiting: number
batchUpperLimiting: number batchUpperLimiting: number
s1: number s1: string
s2: number s2: string
s3: number s3: string
s4: number s4: string
g1: number g1: string
g2: number g2: string
g3: number g3: string
available: string available: string
} }

10
src/views/qms/sampleCode/index.vue

@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:sampleCode:create'}), // defaultButtons.defaultAddBtn({hasPermi:'qms:sampleCode:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:sampleCode:import'}), // defaultButtons.defaultImportBtn({hasPermi:'qms:sampleCode:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:sampleCode:export'}), // defaultButtons.defaultExportBtn({hasPermi:'qms:sampleCode:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -133,8 +133,8 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:sampleCode:update'}), // defaultButtons.mainListEditBtn({hasPermi:'qms:sampleCode:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:sampleCode:delete'}), // defaultButtons.mainListDeleteBtn({hasPermi:'qms:sampleCode:delete'}), //
] ]
// - // -

7
src/views/qms/sampleCode/sampleCode.data.ts

@ -24,7 +24,7 @@ export const SampleCode = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '批量下限', label: '批量下限',
field: 'batchLow limiting', field: 'batchLowLimiting',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
@ -81,6 +81,11 @@ export const SampleCode = useCrudSchemas(reactive<CrudSchema[]>([
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
form: {
component: 'SelectV2'
},
}, },
{ {
label: '创建时间', label: '创建时间',

Loading…
Cancel
Save