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. 17
      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 {
id: number
code: string
describe: string
description: string
sampleType: string
evaluationMode: string
sampleSize: number

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

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

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

@ -99,10 +99,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
// defaultButtons.defaultAddBtn({hasPermi:'wms:samplingProcess:create'}), //
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn({hasPermi:'wms:samplingProcess:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:samplingProcess:export'}), //
defaultButtons.defaultAddBtn({hasPermi:'qms:samplingProcess:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'qms:samplingProcess:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'qms:samplingProcess:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -134,8 +133,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:samplingProcess:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:samplingProcess:delete'}), //
defaultButtons.mainListEditBtn({hasPermi:'qms:samplingProcess:update'}), //
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: '是否可用',
field: 'available',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
form: {
component: 'SelectV2'
},
},
{
label: '创建时间',

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

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

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

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

Loading…
Cancel
Save