Browse Source

采样过程、方案

master_hella_20240701
zhaoyiran 8 months ago
parent
commit
893e7cf765
  1. 4
      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

4
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
@ -50,4 +50,4 @@ export const exportSamplingProcess = async (params) => {
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/qms/sampling-process/get-import-template' }) return request.download({ url: '/qms/sampling-process/get-import-template' })
} }

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

17
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],
}) })
@ -28,19 +28,16 @@ export const SamplingScheme = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{
label: '状态',
field: 'status',
sort: 'custom',
isSearch: true,
form: {
component: 'Radio'
},
},
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
isSearch: true,
form: {
component: 'SelectV2'
},
}, },
{ {
label: '创建时间', label: '创建时间',

Loading…
Cancel
Save