Browse Source

aql

master_hella_20240701
zhaoyiran 8 months ago
parent
commit
9eb8146bd7
  1. 62
      src/api/qms/aql/index.ts
  2. 3
      src/api/qms/inspectionMethod/index.ts
  3. 67
      src/views/qms/aql/aql.data.ts
  4. 10
      src/views/qms/aql/index.vue
  5. 10
      src/views/qms/inspectionMethod/index.vue
  6. 15
      src/views/qms/inspectionMethod/inspectionMethod.data.ts

62
src/api/qms/aql/index.ts

@ -6,36 +6,36 @@ export interface AqlVO {
inspectionQualification: string inspectionQualification: string
sampleCharacterCode: string sampleCharacterCode: string
sampleSize: number sampleSize: number
a0010: number a0Separator010: number
r0010: number r0Separator010: number
a0015: number a0Separator015: number
r0015: number r0Separator015: number
a0025: number a0Separator025: number
r0025: number r0Separator025: number
a0040: number a0Separator040: number
r0040: number r0Separator040: number
a0065: number a0Separator065: number
r0065: number r0Separator065: number
a010: number a0Separator10: number
r010: number r0Separator10: number
a015: number a0Separator15: number
r015: number r0Separator15: number
a025: number a0Separator25: number
r025: number r0Separator25: number
a040: number a0Separator40: number
r040: number r0Separator40: number
a065: number a0Separator65: number
r065: number r0Separator65: number
a10: number a1Separator0: number
r10: number r1Separator0: number
a15: number a1Separator5: number
r15: number r1Separator5: number
a25: number a2Separator5: number
r25: number r2Separator5: number
a40: number a4Separator0: number
r40: number r4Separator0: number
a65: number a6Separator5: number
r65: number r6Separator5: number
a10: number a10: number
r10: number r10: number
a15: number a15: number
@ -100,4 +100,4 @@ export const exportAql = async (params) => {
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/qms/aql/get-import-template' }) return request.download({ url: '/qms/aql/get-import-template' })
} }

3
src/api/qms/inspectionMethod/index.ts

@ -5,7 +5,6 @@ export interface InspectionMethodVO {
code: string code: string
describe: string describe: string
version: string version: string
status: string
operationGuidance: string operationGuidance: string
videoAddress: string videoAddress: string
available: string available: string
@ -50,4 +49,4 @@ export const exportInspectionMethod = async (params) => {
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/qms/inspection-method/get-import-template' }) return request.download({ url: '/qms/inspection-method/get-import-template' })
} }

67
src/views/qms/aql/aql.data.ts

@ -48,154 +48,152 @@ export const Aql = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: 'A0_010', label: 'A0_010',
field: 'a0010', field: 'a0Separator010',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'R0_010', label: 'R0_010',
field: 'r0010', field: 'r0Separator010',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'A0_015', label: 'A0_015',
field: 'a0015', field: 'a0Separator015',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'R0_015', label: 'R0_015',
field: 'r0015', field: 'r0Separator015',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'A0_025', label: 'A0_025',
field: 'a0025', field: 'a0Separator025',
sort: 'custom', sort: 'custom',
isSearch: true,
}, },
{ {
label: 'R0_025', label: 'R0_025',
field: 'r0025', field: 'r0Separator025',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'A0_040', label: 'A0_040',
field: 'a0040', field: 'a0Separator040',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'R0_040', label: 'R0_040',
field: 'r0040', field: 'r0Separator040',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'A0_065', label: 'A0_065',
field: 'a0065', field: 'a0Separator065',
sort: 'custom', sort: 'custom',
isSearch: true,
}, },
{ {
label: 'R0_065', label: 'R0_065',
field: 'r0065', field: 'r0Separator065',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'A0_10', label: 'A0_10',
field: 'a010', field: 'a0Separator10',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'R0_10', label: 'R0_10',
field: 'r010', field: 'r0Separator10',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'A0_15', label: 'A0_15',
field: 'a015', field: 'a0Separator15',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'R0_15', label: 'R0_15',
field: 'r015', field: 'r0Separator15',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'A0_25', label: 'A0_25',
field: 'a025', field: 'a0Separator25',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'R0_25', label: 'R0_25',
field: 'r025', field: 'r0Separator25',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'A0_40', label: 'A0_40',
field: 'a040', field: 'a0Separator40',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'R0_40', label: 'R0_40',
field: 'r040', field: 'r0Separator40',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'A0_65', label: 'A0_65',
field: 'a065', field: 'a0Separator65',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'R0_65', label: 'R0_65',
field: 'r065', field: 'r0Separator65',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'A1_0', label: 'A1_0',
field: 'a10', field: 'a1Separator0',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'R1_0', label: 'R1_0',
field: 'r10', field: 'r1Separator0',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'A1_5', label: 'A1_5',
field: 'a15', field: 'a1Separator5',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'R1_5', label: 'R1_5',
field: 'r15', field: 'r1Separator5',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'A2_5', label: 'A2_5',
field: 'a25', field: 'a2Separator5',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'R2_5', label: 'R2_5',
field: 'r25', field: 'r2Separator5',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'A4_0', label: 'A4_0',
field: 'a40', field: 'a4Separator0',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'R4_0', label: 'R4_0',
field: 'r40', field: 'r4Separator0',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'A6_5', label: 'A6_5',
field: 'a65', field: 'a6Separator5',
sort: 'custom', sort: 'custom',
}, },
{ {
label: 'R6_5', label: 'R6_5',
field: 'r65', field: 'r6Separator5',
sort: 'custom', sort: 'custom',
}, },
{ {
@ -312,6 +310,11 @@ export const Aql = 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/aql/index.vue

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

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

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

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

@ -4,7 +4,6 @@ import { dateFormatter } from '@/utils/formatTime'
// 表单校验 // 表单校验
export const InspectionMethodRules = reactive({ export const InspectionMethodRules = reactive({
code: [required], code: [required],
status: [required],
available: [required], available: [required],
}) })
@ -32,15 +31,6 @@ export const InspectionMethod = useCrudSchemas(reactive<CrudSchema[]>([
field: 'version', field: 'version',
sort: 'custom', sort: 'custom',
}, },
{
label: '状态',
field: 'status',
sort: 'custom',
isSearch: true,
form: {
component: 'Radio'
},
},
{ {
label: '操作指导', label: '操作指导',
field: 'operationGuidance', field: 'operationGuidance',
@ -55,6 +45,11 @@ export const InspectionMethod = 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