From 9047fee00de9ab5e8e7b999a46e395bd38c704f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=BB=E7=A0=96-JAVA=5CAdministrator?= <591141169@qq.com> Date: Tue, 23 Jul 2024 11:17:05 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/qms/samplingScheme/index.ts | 2 +- src/views/qms/aql/aql.data.ts | 3 +++ src/views/qms/aql/index.vue | 3 +++ src/views/qms/counter/counter.data.ts | 3 +++ src/views/qms/counter/index.vue | 3 +++ src/views/qms/dynamicRule/dynamicRule.data.ts | 3 +++ src/views/qms/dynamicRule/index.vue | 3 +++ src/views/qms/inspectionJob/index.vue | 3 +++ src/views/qms/inspectionJob/inspectionJobMain.data.ts | 3 +++ src/views/qms/inspectionMethod/index.vue | 3 +++ src/views/qms/inspectionMethod/inspectionMethod.data.ts | 3 +++ src/views/qms/inspectionRecord/index.vue | 5 ++++- src/views/qms/inspectionRecord/inspectionRecordMain.data.ts | 3 +++ src/views/qms/inspectionRequest/index.vue | 5 ++++- .../qms/inspectionRequest/inspectionRequestMain.data.ts | 3 +++ src/views/qms/inspectionScheme/index.vue | 3 +++ src/views/qms/inspectionScheme/inspectionScheme.data.ts | 3 +++ src/views/qms/inspectionTemplate/index.vue | 3 +++ src/views/qms/inspectionTemplate/inspectionTemplate.data.ts | 3 +++ src/views/qms/qualityNotice/index.vue | 5 ++++- src/views/qms/qualityNotice/qualityNoticeMain.data.ts | 3 +++ src/views/qms/sampleCode/index.vue | 3 +++ src/views/qms/sampleCode/sampleCode.data.ts | 3 +++ src/views/qms/samplingProcess/index.vue | 3 +++ src/views/qms/samplingProcess/samplingProcess.data.ts | 3 +++ src/views/qms/samplingScheme/index.vue | 3 +++ src/views/qms/samplingScheme/samplingScheme.data.ts | 3 +++ src/views/qms/selectedSet/index.vue | 3 +++ src/views/qms/selectedSet/selectedSet.data.ts | 3 +++ 29 files changed, 88 insertions(+), 4 deletions(-) diff --git a/src/api/qms/samplingScheme/index.ts b/src/api/qms/samplingScheme/index.ts index c65058f2e..fdf76e455 100644 --- a/src/api/qms/samplingScheme/index.ts +++ b/src/api/qms/samplingScheme/index.ts @@ -11,7 +11,7 @@ export interface SamplingSchemeVO { export const getSamplingSchemePage = async (params) => { if (params.isSearch) { delete params.isSearch - const data = {...params} + const data = { ...params } return await request.post({ url: '/qms/sampling-scheme/senior', data }) } else { return await request.get({ url: `/qms/sampling-scheme/page`, params }) diff --git a/src/views/qms/aql/aql.data.ts b/src/views/qms/aql/aql.data.ts index 9810dcd88..fc961f603 100644 --- a/src/views/qms/aql/aql.data.ts +++ b/src/views/qms/aql/aql.data.ts @@ -543,6 +543,9 @@ export const Aql = useCrudSchemas( dictType: DICT_TYPE.TRUE_FALSE, isSearch: true, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + search: { + value: 'TRUE' + }, form: { component: 'Switch', value: 'TRUE', diff --git a/src/views/qms/aql/index.vue b/src/views/qms/aql/index.vue index c72299829..e04873b03 100644 --- a/src/views/qms/aql/index.vue +++ b/src/views/qms/aql/index.vue @@ -305,6 +305,9 @@ const onChange = async (field, value, formRef) => { }; /** 初始化 **/ onMounted(async () => { +   tableObject.params = { +    available: true +  } getList() importTemplateData.templateUrl = await AqlApi.importTemplate() }) diff --git a/src/views/qms/counter/counter.data.ts b/src/views/qms/counter/counter.data.ts index de708bee0..5e8459bd3 100644 --- a/src/views/qms/counter/counter.data.ts +++ b/src/views/qms/counter/counter.data.ts @@ -174,6 +174,9 @@ export const Counter = useCrudSchemas( dictType: DICT_TYPE.TRUE_FALSE, isSearch: true, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + search: { + value: 'TRUE' + }, form: { component: 'Switch', value: 'TRUE', diff --git a/src/views/qms/counter/index.vue b/src/views/qms/counter/index.vue index 9a9a04c9e..cd789a436 100644 --- a/src/views/qms/counter/index.vue +++ b/src/views/qms/counter/index.vue @@ -246,6 +246,9 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { +   tableObject.params = { +    available: true +  } getList() importTemplateData.templateUrl = await CounterApi.importTemplate() }) diff --git a/src/views/qms/dynamicRule/dynamicRule.data.ts b/src/views/qms/dynamicRule/dynamicRule.data.ts index 13394072c..d585f1d91 100644 --- a/src/views/qms/dynamicRule/dynamicRule.data.ts +++ b/src/views/qms/dynamicRule/dynamicRule.data.ts @@ -41,6 +41,9 @@ export const DynamicRule = useCrudSchemas( dictType: DICT_TYPE.TRUE_FALSE, isSearch: true, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + search: { + value: 'TRUE' + }, form: { component: 'Switch', value: 'TRUE', diff --git a/src/views/qms/dynamicRule/index.vue b/src/views/qms/dynamicRule/index.vue index bdb959e6d..58c82c277 100644 --- a/src/views/qms/dynamicRule/index.vue +++ b/src/views/qms/dynamicRule/index.vue @@ -411,6 +411,9 @@ const validateNotRepetition = (data) => { /** 初始化 **/ onMounted(async () => { +   tableObject.params = { +    available: true +  } getList() importTemplateData.templateUrl = await DynamicRuleApi.importTemplate() }) diff --git a/src/views/qms/inspectionJob/index.vue b/src/views/qms/inspectionJob/index.vue index 06f266f48..13b11b967 100644 --- a/src/views/qms/inspectionJob/index.vue +++ b/src/views/qms/inspectionJob/index.vue @@ -419,6 +419,9 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { +   tableObject.params = { +    available: true +  } getList() // importTemplateData.templateUrl = await InspectionJobMainApi.importTemplate() }) diff --git a/src/views/qms/inspectionJob/inspectionJobMain.data.ts b/src/views/qms/inspectionJob/inspectionJobMain.data.ts index 763f23842..e04ca0ba6 100644 --- a/src/views/qms/inspectionJob/inspectionJobMain.data.ts +++ b/src/views/qms/inspectionJob/inspectionJobMain.data.ts @@ -579,6 +579,9 @@ export const InspectionJobMain = useCrudSchemas( isSearch: true, dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + search: { + value: 'TRUE' + }, form: { component: 'Switch', value: 'TRUE', diff --git a/src/views/qms/inspectionMethod/index.vue b/src/views/qms/inspectionMethod/index.vue index 646e65198..d0d67276d 100644 --- a/src/views/qms/inspectionMethod/index.vue +++ b/src/views/qms/inspectionMethod/index.vue @@ -301,6 +301,9 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { +   tableObject.params = { +    available: true +  } getList() importTemplateData.templateUrl = await InspectionMethodApi.importTemplate() }) diff --git a/src/views/qms/inspectionMethod/inspectionMethod.data.ts b/src/views/qms/inspectionMethod/inspectionMethod.data.ts index 53343e5ad..9bfe757b0 100644 --- a/src/views/qms/inspectionMethod/inspectionMethod.data.ts +++ b/src/views/qms/inspectionMethod/inspectionMethod.data.ts @@ -58,6 +58,9 @@ export const InspectionMethod = useCrudSchemas( isSearch: true, dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + search: { + value: 'TRUE' + }, form: { component: 'Switch', value: 'TRUE', diff --git a/src/views/qms/inspectionRecord/index.vue b/src/views/qms/inspectionRecord/index.vue index a8871e9bf..4bce94b0c 100644 --- a/src/views/qms/inspectionRecord/index.vue +++ b/src/views/qms/inspectionRecord/index.vue @@ -279,7 +279,10 @@ import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' } /** 初始化 **/ - onMounted(async () => { +onMounted(async () => { +   tableObject.params = { +    available: true +  } getList() }) diff --git a/src/views/qms/inspectionRecord/inspectionRecordMain.data.ts b/src/views/qms/inspectionRecord/inspectionRecordMain.data.ts index 1ed5d7378..2651b1ad4 100644 --- a/src/views/qms/inspectionRecord/inspectionRecordMain.data.ts +++ b/src/views/qms/inspectionRecord/inspectionRecordMain.data.ts @@ -452,6 +452,9 @@ export const InspectionRecordMain = useCrudSchemas( isSearch: true, dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + search: { + value: 'TRUE' + }, form: { component: 'Switch', value: 'TRUE', diff --git a/src/views/qms/inspectionRequest/index.vue b/src/views/qms/inspectionRequest/index.vue index 586355240..0d2adf9f3 100644 --- a/src/views/qms/inspectionRequest/index.vue +++ b/src/views/qms/inspectionRequest/index.vue @@ -397,7 +397,10 @@ console.log(formType,data) list.value = await InspectionRequestPackageApi.getInspectionRequestPackageList(data.masterId) } /** 初始化 **/ - onMounted(async () => { +onMounted(async () => { +   tableObject.params = { +    available: true +  } getList() importTemplateData.templateUrl = await InspectionMainApi.importTemplate() }) diff --git a/src/views/qms/inspectionRequest/inspectionRequestMain.data.ts b/src/views/qms/inspectionRequest/inspectionRequestMain.data.ts index 0b83ac846..af8719640 100644 --- a/src/views/qms/inspectionRequest/inspectionRequestMain.data.ts +++ b/src/views/qms/inspectionRequest/inspectionRequestMain.data.ts @@ -432,6 +432,9 @@ export const InspectionMain = useCrudSchemas( isSearch: true, dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + search: { + value: 'TRUE' + }, form: { component: 'Switch', value: 'TRUE', diff --git a/src/views/qms/inspectionScheme/index.vue b/src/views/qms/inspectionScheme/index.vue index 1442fa9e0..1bd6b50e3 100644 --- a/src/views/qms/inspectionScheme/index.vue +++ b/src/views/qms/inspectionScheme/index.vue @@ -269,6 +269,9 @@ const importSuccess = () => { /** 初始化 **/ onMounted(async () => { +   tableObject.params = { +    available: true +  } getList() importTemplateData.templateUrl = await InspectionSchemeApi.importTemplate() }) diff --git a/src/views/qms/inspectionScheme/inspectionScheme.data.ts b/src/views/qms/inspectionScheme/inspectionScheme.data.ts index d82869314..fce02545b 100644 --- a/src/views/qms/inspectionScheme/inspectionScheme.data.ts +++ b/src/views/qms/inspectionScheme/inspectionScheme.data.ts @@ -187,6 +187,9 @@ export const InspectionSchemeMain = useCrudSchemas( isSearch: true, dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + search: { + value: 'TRUE' + }, form: { component: 'Switch', value: 'TRUE', diff --git a/src/views/qms/inspectionTemplate/index.vue b/src/views/qms/inspectionTemplate/index.vue index 1d59f1568..578a526c1 100644 --- a/src/views/qms/inspectionTemplate/index.vue +++ b/src/views/qms/inspectionTemplate/index.vue @@ -246,6 +246,9 @@ const importSuccess = () => { /** 初始化 **/ onMounted(async () => { +   tableObject.params = { +    available: true +  } getList() importTemplateData.templateUrl = await InspectionProcessPageApi.importTemplate() }) diff --git a/src/views/qms/inspectionTemplate/inspectionTemplate.data.ts b/src/views/qms/inspectionTemplate/inspectionTemplate.data.ts index 60c8c6736..631e9a887 100644 --- a/src/views/qms/inspectionTemplate/inspectionTemplate.data.ts +++ b/src/views/qms/inspectionTemplate/inspectionTemplate.data.ts @@ -62,6 +62,9 @@ export const InspectionTemplateMain = useCrudSchemas( isSearch: true, dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + search: { + value: 'TRUE' + }, form: { component: 'Switch', value: 'TRUE', diff --git a/src/views/qms/qualityNotice/index.vue b/src/views/qms/qualityNotice/index.vue index 54b0b8409..064613a52 100644 --- a/src/views/qms/qualityNotice/index.vue +++ b/src/views/qms/qualityNotice/index.vue @@ -228,7 +228,10 @@ const handleOrderPub = async (row : object) => { } /** 初始化 **/ - onMounted(async () => { +onMounted(async () => { +   tableObject.params = { +    available: true +  } getList() }) diff --git a/src/views/qms/qualityNotice/qualityNoticeMain.data.ts b/src/views/qms/qualityNotice/qualityNoticeMain.data.ts index c2dce6077..c5e1104ba 100644 --- a/src/views/qms/qualityNotice/qualityNoticeMain.data.ts +++ b/src/views/qms/qualityNotice/qualityNoticeMain.data.ts @@ -324,6 +324,9 @@ export const QualityNoticeMain = useCrudSchemas( isSearch: true, dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + search: { + value: 'TRUE' + }, form: { component: 'Switch', value: 'TRUE', diff --git a/src/views/qms/sampleCode/index.vue b/src/views/qms/sampleCode/index.vue index 5025694e6..5c1b55904 100644 --- a/src/views/qms/sampleCode/index.vue +++ b/src/views/qms/sampleCode/index.vue @@ -288,6 +288,9 @@ const onChange = async (field, value, formRef) => { } /** 初始化 **/ onMounted(async () => { + tableObject.params = { + available: true + } getList() importTemplateData.templateUrl = await SampleCodeApi.importTemplate() }) diff --git a/src/views/qms/sampleCode/sampleCode.data.ts b/src/views/qms/sampleCode/sampleCode.data.ts index 233b0e86c..2409000a6 100644 --- a/src/views/qms/sampleCode/sampleCode.data.ts +++ b/src/views/qms/sampleCode/sampleCode.data.ts @@ -104,6 +104,9 @@ export const SampleCode = useCrudSchemas( dictType: DICT_TYPE.TRUE_FALSE, isSearch: true, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + search: { + value: 'TRUE' + }, form: { component: 'Switch', value: 'TRUE', diff --git a/src/views/qms/samplingProcess/index.vue b/src/views/qms/samplingProcess/index.vue index ad482a907..1045a90b2 100644 --- a/src/views/qms/samplingProcess/index.vue +++ b/src/views/qms/samplingProcess/index.vue @@ -344,6 +344,9 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { +   tableObject.params = { +    available: true +  } getList() importTemplateData.templateUrl = await SamplingProcessApi.importTemplate() }) diff --git a/src/views/qms/samplingProcess/samplingProcess.data.ts b/src/views/qms/samplingProcess/samplingProcess.data.ts index 74ae82da4..7bdcf8dcc 100644 --- a/src/views/qms/samplingProcess/samplingProcess.data.ts +++ b/src/views/qms/samplingProcess/samplingProcess.data.ts @@ -87,6 +87,9 @@ export const SamplingProcess = useCrudSchemas( dictType: DICT_TYPE.TRUE_FALSE, isSearch: true, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + search: { + value: 'TRUE' + }, form: { component: 'Switch', value: 'TRUE', diff --git a/src/views/qms/samplingScheme/index.vue b/src/views/qms/samplingScheme/index.vue index 3b7d6260f..25ff8c6b5 100644 --- a/src/views/qms/samplingScheme/index.vue +++ b/src/views/qms/samplingScheme/index.vue @@ -266,6 +266,9 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { + tableObject.params = { + available: true + } getList() importTemplateData.templateUrl = await SamplingSchemeApi.importTemplate() }) diff --git a/src/views/qms/samplingScheme/samplingScheme.data.ts b/src/views/qms/samplingScheme/samplingScheme.data.ts index b85abf027..4f5f121ea 100644 --- a/src/views/qms/samplingScheme/samplingScheme.data.ts +++ b/src/views/qms/samplingScheme/samplingScheme.data.ts @@ -31,6 +31,9 @@ export const SamplingScheme = useCrudSchemas( isSearch:true, dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + search: { + value: 'TRUE', + }, form: { component: 'Switch', value: 'TRUE', diff --git a/src/views/qms/selectedSet/index.vue b/src/views/qms/selectedSet/index.vue index d2a498651..ffecc38ef 100644 --- a/src/views/qms/selectedSet/index.vue +++ b/src/views/qms/selectedSet/index.vue @@ -433,6 +433,9 @@ const formSelectChange = (a,b,c,d) => { /** 初始化 **/ onMounted(async () => { +   tableObject.params = { +    available: true +  } getList() importTemplateData.templateUrl = await SelectedSetApi.importTemplate() }) diff --git a/src/views/qms/selectedSet/selectedSet.data.ts b/src/views/qms/selectedSet/selectedSet.data.ts index 3fdbf7d8b..1fcfd94bd 100644 --- a/src/views/qms/selectedSet/selectedSet.data.ts +++ b/src/views/qms/selectedSet/selectedSet.data.ts @@ -33,6 +33,9 @@ export const SelectedSet = useCrudSchemas( isSearch: true, dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + search: { + value: 'TRUE' + }, form: { component: 'Switch', value: 'TRUE',