Browse Source

采样方案、样本字码增加字段

hella_online_20240823
zhaoyiran 3 months ago
parent
commit
9a9d1da021
  1. 8
      src/api/qms/sampleCode/index.ts
  2. 8
      src/api/qms/samplingScheme/index.ts
  3. 4
      src/views/qms/sampleCode/sampleCode.data.ts
  4. 4
      src/views/qms/samplingScheme/samplingScheme.data.ts

8
src/api/qms/sampleCode/index.ts

@ -48,7 +48,13 @@ export const deleteSampleCode = async (id: number) => {
// 导出样本字码 Excel
export const exportSampleCode = async (params) => {
return await request.download({ url: `/qms/sample-code/export-excel`, params })
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.downloadPost({ url: '/qms/sample-code/export-excel-senior', data })
} else {
return await request.download({ url: `/qms/sample-code/export-excel`, params })
}
}
// 下载用户导入模板

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

@ -40,7 +40,13 @@ export const deleteSamplingScheme = async (id: number) => {
// 导出采样方案 Excel
export const exportSamplingScheme = async (params) => {
return await request.download({ url: `/qms/sampling-scheme/export-excel`, params })
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.downloadPost({ url: '/qms/sampling-scheme/export-excel-senior', data })
} else {
return await request.download({ url: `/qms/sampling-scheme/export-excel`, params })
}
}
// 下载用户导入模板

4
src/views/qms/sampleCode/sampleCode.data.ts

@ -165,7 +165,7 @@ export const SampleCode = useCrudSchemas(
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
isTable: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -188,7 +188,7 @@ export const SampleCode = useCrudSchemas(
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
isTable: true,
table: {
width: 150
}

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

@ -92,7 +92,7 @@ export const SamplingScheme = useCrudSchemas(
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
isTable: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -115,7 +115,7 @@ export const SamplingScheme = useCrudSchemas(
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
isTable: true,
table: {
width: 150
}

Loading…
Cancel
Save