Browse Source

采样过程、方案

master_hella_20240701
zhaoyiran 8 months ago
parent
commit
893e7cf765
  1. 2
      src/api/qms/samplingProcess/index.ts
  2. 1
      src/api/qms/samplingScheme/index.ts
  3. 11
      src/views/qms/samplingProcess/index.vue
  4. 5
      src/views/qms/samplingProcess/samplingProcess.data.ts
  5. 10
      src/views/qms/samplingScheme/index.vue
  6. 15
      src/views/qms/samplingScheme/samplingScheme.data.ts

2
src/api/qms/samplingProcess/index.ts

@ -3,7 +3,7 @@ import request from '@/config/axios'
export interface SamplingProcessVO { export interface SamplingProcessVO {
id: number id: number
code: string code: string
describe: string description: string
sampleType: string sampleType: string
evaluationMode: string evaluationMode: string
sampleSize: number sampleSize: number

1
src/api/qms/samplingScheme/index.ts

@ -4,7 +4,6 @@ export interface SamplingSchemeVO {
id: number id: number
code: string code: string
describe: string describe: string
status: string
available: string available: string
} }

11
src/views/qms/samplingProcess/index.vue

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

5
src/views/qms/samplingProcess/samplingProcess.data.ts

@ -64,6 +64,11 @@ export const SamplingProcess = 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: '创建时间',

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

@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:samplingScheme:create'}), // defaultButtons.defaultAddBtn({hasPermi:'qms:samplingScheme:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:samplingScheme:import'}), // defaultButtons.defaultImportBtn({hasPermi:'qms:samplingScheme:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:samplingScheme:export'}), // defaultButtons.defaultExportBtn({hasPermi:'qms:samplingScheme: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:samplingScheme:update'}), // defaultButtons.mainListEditBtn({hasPermi:'qms:samplingScheme:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:samplingScheme:delete'}), // defaultButtons.mainListDeleteBtn({hasPermi:'qms:samplingScheme:delete'}), //
] ]
// - // -

15
src/views/qms/samplingScheme/samplingScheme.data.ts

@ -4,7 +4,7 @@ import { dateFormatter } from '@/utils/formatTime'
// 表单校验 // 表单校验
export const SamplingSchemeRules = reactive({ export const SamplingSchemeRules = reactive({
code: [required], code: [required],
status: [required], // status: [required],
available: [required], available: [required],
}) })
@ -29,19 +29,16 @@ export const SamplingScheme = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
}, },
{ {
label: '状态', label: '是否可用',
field: 'status', field: 'available',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
isSearch: true, isSearch: true,
form: { form: {
component: 'Radio' component: 'SelectV2'
}, },
}, },
{
label: '是否可用',
field: 'available',
sort: 'custom',
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

Loading…
Cancel
Save