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
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
}

10
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'}), //
]
// -

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

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

Loading…
Cancel
Save