diff --git a/.env.prod b/.env.prod index cb7c3aa46..c269d3296 100644 --- a/.env.prod +++ b/.env.prod @@ -41,3 +41,7 @@ VITE_TENANT='["长春1379","成都1397","长春2379"]' # 查看质检报告环境 VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400' + +# 登录系统升级的提示 +VITE_SYSTERM_UPDATE_ALERT = true +VITE_SYSTERM_UPDATE_URL = 'https://scptest.faway-hella.com/' diff --git a/README.md b/README.md index 237938dee..0e77af65b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ ## dev发布2024-06-01-002 **xxxx.data.ts 文件配置说明** +dictType: DICT_TYPE.INVENTORY_STATUS, +dictClass: 'string', +dictAllOption:true,// true 字典中--下拉框中展示全选按钮 +dictAllValue:'全选', // 全选按钮的value值 **form表单查询弹窗配置** form: { labelMessage: '信息提示说明!!!', diff --git a/public/systemConfig.js b/public/systemConfig.js index 1908c7089..c84fd37fb 100644 --- a/public/systemConfig.js +++ b/public/systemConfig.js @@ -10,5 +10,7 @@ let systemConfig = { // 查看质检报告环境 reportUrl: 'https://scp.faway-hella.com', // 租户配置 - tenant: '["成都"]' + tenant: '["成都"]', + systermUpdateAlert: true, + systermUpdateUrl: 'https://scptest.faway-hella.com/' } diff --git a/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts b/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts index 375e69b2f..dfd99059f 100644 --- a/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts +++ b/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts @@ -46,6 +46,10 @@ export const createInspectionRecordMain = async (data: InspectionRecordMainVO) = // 修改检验申请 export const updateInspectionRecordMain = async (data: InspectionRecordMainVO) => { + return await request.put({ url: `/qms/inspection-record-main/update`, data }) +} +// 首件检验保存 +export const updateInspectionRecordFirstMain = async (data: InspectionRecordMainVO) => { return await request.put({ url: `/qms/inspection-record-main/firstInspectionUpdate`, data }) } diff --git a/src/api/qms/inspectionScheme/index.ts b/src/api/qms/inspectionScheme/index.ts index 3c5f30e93..53c305c2a 100644 --- a/src/api/qms/inspectionScheme/index.ts +++ b/src/api/qms/inspectionScheme/index.ts @@ -1,21 +1,21 @@ import request from '@/config/axios' // 新增 export const InspectionSchemeCreat = async (data) => { - return await request.post({ url: `/qms/inspection-scheme/create`,data}) + return await request.post({ url: `/qms/inspection-scheme/create`, data }) } // 编辑 export const InspectionSchemeUpdate = async (data) => { - return await request.put({ url: `/qms/inspection-scheme/update`,data}) + return await request.put({ url: `/qms/inspection-scheme/update`, data }) } // 删除 export const InspectionSchemeDelete = async (id) => { - return await request.delete({ url: `/qms/inspection-scheme/delete?id=`+id}) + return await request.delete({ url: `/qms/inspection-scheme/delete?id=` + id }) } // 列表 export const InspectionSchemePage = async (params) => { if (params.isSearch) { delete params.isSearch - const data = {...params} + const data = { ...params } return request.post({ url: '/qms/inspection-scheme/senior', data }) } else { return await request.get({ url: `/qms/inspection-scheme/page`, params }) @@ -31,6 +31,11 @@ export const disableInspectionScheme = async (id: number) => { return await request.disable({ url: `/qms/inspection-scheme/disable?id=` + id }) } +// 导出检验阶段 Excel +export const exportInspectionScheme = async (params) => { + return await request.download({ url: `/qms/inspection-scheme/export-excel`, params }) +} + // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/qms/inspection-scheme/get-import-template' }) diff --git a/src/api/qms/inspectionTemplate/index.ts b/src/api/qms/inspectionTemplate/index.ts index eb80285c8..577fadd6f 100644 --- a/src/api/qms/inspectionTemplate/index.ts +++ b/src/api/qms/inspectionTemplate/index.ts @@ -1,28 +1,26 @@ import request from '@/config/axios' - - // 列表 export const getListByTempleteCode = async (code) => { - return await request.get({ url: `/qms/inspection-process/getListByTempleteCode?code=`+code}) + return await request.get({ url: `/qms/inspection-process/getListByTempleteCode?code=` + code }) } // 新增 export const inspectionTemplateCreat = async (data) => { - return await request.post({ url: `/qms/programme-template/create`,data}) + return await request.post({ url: `/qms/programme-template/create`, data }) } // 编辑 export const inspectionTemplateUpdate = async (data) => { - return await request.put({ url: `/qms/programme-template/update`,data}) + return await request.put({ url: `/qms/programme-template/update`, data }) } // 删除 export const inspectionTemplateDelete = async (id) => { - return await request.delete({ url: `/qms/programme-template/delete?id=`+id}) + return await request.delete({ url: `/qms/programme-template/delete?id=` + id }) } // 列表 export const inspectionTemplatePage = async (params) => { if (params.isSearch) { delete params.isSearch - const data = {...params} + const data = { ...params } return request.post({ url: '/qms/programme-template/senior', data }) } else { return await request.get({ url: `/qms/programme-template/page`, params }) @@ -38,6 +36,11 @@ export const disableInspectionTemplate = async (id: number) => { return await request.disable({ url: `/qms/programme-template/disable?id=` + id }) } +// 导出检验模版 Excel +export const exportInspectionTemplate = async (params) => { + return await request.download({ url: `/qms/programme-template/export-excel`, params }) +} + // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/qms/programme-template/get-import-template' }) diff --git a/src/components/Descriptions/src/Descriptions.vue b/src/components/Descriptions/src/Descriptions.vue index a7c49f853..23ed47eb2 100644 --- a/src/components/Descriptions/src/Descriptions.vue +++ b/src/components/Descriptions/src/Descriptions.vue @@ -149,7 +149,7 @@ const showAll = () =>{