Browse Source

调试

master_hella_20240701
zhaoyiran 8 months ago
parent
commit
0a4d37a57b
  1. 10
      src/api/qms/samplingScheme/index.ts

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

@ -26,25 +26,25 @@ export const getSamplingScheme = async (id: number) => {
// 新增采样方案
export const createSamplingScheme = async (data: SamplingSchemeVO) => {
return await request.post({ url: `/basic/sampling-scheme/create`, data })
return await request.post({ url: `/qms/sampling-scheme/create`, data })
}
// 修改采样方案
export const updateSamplingScheme = async (data: SamplingSchemeVO) => {
return await request.put({ url: `/basic/sampling-scheme/update`, data })
return await request.put({ url: `/qms/sampling-scheme/update`, data })
}
// 删除采样方案
export const deleteSamplingScheme = async (id: number) => {
return await request.delete({ url: `/basic/sampling-scheme/delete?id=` + id })
return await request.delete({ url: `/qms/sampling-scheme/delete?id=` + id })
}
// 导出采样方案 Excel
export const exportSamplingScheme = async (params) => {
return await request.download({ url: `/basic/sampling-scheme/export-excel`, params })
return await request.download({ url: `/qms/sampling-scheme/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/basic/sampling-scheme/get-import-template' })
return request.download({ url: '/qms/sampling-scheme/get-import-template' })
}

Loading…
Cancel
Save