Browse Source

BUG修改

hella_online_20240829
parent
commit
9047fee00d
  1. 2
      src/api/qms/samplingScheme/index.ts
  2. 3
      src/views/qms/aql/aql.data.ts
  3. 3
      src/views/qms/aql/index.vue
  4. 3
      src/views/qms/counter/counter.data.ts
  5. 3
      src/views/qms/counter/index.vue
  6. 3
      src/views/qms/dynamicRule/dynamicRule.data.ts
  7. 3
      src/views/qms/dynamicRule/index.vue
  8. 3
      src/views/qms/inspectionJob/index.vue
  9. 3
      src/views/qms/inspectionJob/inspectionJobMain.data.ts
  10. 3
      src/views/qms/inspectionMethod/index.vue
  11. 3
      src/views/qms/inspectionMethod/inspectionMethod.data.ts
  12. 5
      src/views/qms/inspectionRecord/index.vue
  13. 3
      src/views/qms/inspectionRecord/inspectionRecordMain.data.ts
  14. 5
      src/views/qms/inspectionRequest/index.vue
  15. 3
      src/views/qms/inspectionRequest/inspectionRequestMain.data.ts
  16. 3
      src/views/qms/inspectionScheme/index.vue
  17. 3
      src/views/qms/inspectionScheme/inspectionScheme.data.ts
  18. 3
      src/views/qms/inspectionTemplate/index.vue
  19. 3
      src/views/qms/inspectionTemplate/inspectionTemplate.data.ts
  20. 5
      src/views/qms/qualityNotice/index.vue
  21. 3
      src/views/qms/qualityNotice/qualityNoticeMain.data.ts
  22. 3
      src/views/qms/sampleCode/index.vue
  23. 3
      src/views/qms/sampleCode/sampleCode.data.ts
  24. 3
      src/views/qms/samplingProcess/index.vue
  25. 3
      src/views/qms/samplingProcess/samplingProcess.data.ts
  26. 3
      src/views/qms/samplingScheme/index.vue
  27. 3
      src/views/qms/samplingScheme/samplingScheme.data.ts
  28. 3
      src/views/qms/selectedSet/index.vue
  29. 3
      src/views/qms/selectedSet/selectedSet.data.ts

2
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 })

3
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',

3
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()
})

3
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',

3
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()
})

3
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',

3
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()
})

3
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()
})

3
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',

3
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()
})

3
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',

5
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()
})
</script>

3
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',

5
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()
})

3
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',

3
src/views/qms/inspectionScheme/index.vue

@ -269,6 +269,9 @@ const importSuccess = () => {
/** 初始化 **/
onMounted(async () => {
  tableObject.params = {
    available: true
  }
getList()
importTemplateData.templateUrl = await InspectionSchemeApi.importTemplate()
})

3
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',

3
src/views/qms/inspectionTemplate/index.vue

@ -246,6 +246,9 @@ const importSuccess = () => {
/** 初始化 **/
onMounted(async () => {
  tableObject.params = {
    available: true
  }
getList()
importTemplateData.templateUrl = await InspectionProcessPageApi.importTemplate()
})

3
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',

5
src/views/qms/qualityNotice/index.vue

@ -228,7 +228,10 @@ const handleOrderPub = async (row : object) => {
}
/** 初始化 **/
onMounted(async () => {
onMounted(async () => {
  tableObject.params = {
    available: true
  }
getList()
})
</script>

3
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',

3
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()
})

3
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',

3
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()
})

3
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',

3
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()
})

3
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',

3
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()
})

3
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',

Loading…
Cancel
Save