From 182d43fd84769107191edb6bb2ec0a1ea0afa4ce Mon Sep 17 00:00:00 2001 From: wyuu Date: Fri, 19 Dec 2025 17:28:33 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E9=80=9A=E9=81=93=E5=8F=B7=E3=80=81?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/liswork/xtwh/ComOpt.ts | 40 +++++ .../comopt/components/sysChannel/index.vue | 97 ++++++++--- .../xtwh/comopt/components/sysSort/index.vue | 153 ++++++++---------- src/views/liswork/xtwh/comopt/index.vue | 2 +- 4 files changed, 186 insertions(+), 106 deletions(-) diff --git a/src/api/liswork/xtwh/ComOpt.ts b/src/api/liswork/xtwh/ComOpt.ts index 5624cfb..abc37d1 100644 --- a/src/api/liswork/xtwh/ComOpt.ts +++ b/src/api/liswork/xtwh/ComOpt.ts @@ -106,4 +106,44 @@ export function querySjcs(data?: Object) { method: 'get', params: data }); +} +// 查询检验项目排序 +export function getitemsort(data?: Object) { + return request({ + url: '/xminfo/getitemsort', + method: 'get', + params: data + }); +} +// 保存检验项目排序 +export function saveitemsort(data?: Object) { + return request({ + url: '/xminfo/saveitemsort', + method: 'post', + data + }); +} +// 查询检验项目通道号 +export function getitemtdh(data?: Object) { + return request({ + url: '/xminfo/getitemtdh', + method: 'get', + params: data + }); +} +// 保存检验项目通道号 +export function saveitemtdh(data?: Object) { + return request({ + url: '/xminfo/saveitemtdh', + method: 'post', + data + }); +} +// 删除检验项目通道号 +export function delitemtdh(data?: Object) { + return request({ + url: '/xminfo/delitemtdh', + method: 'get', + params: data + }); } \ No newline at end of file diff --git a/src/views/liswork/xtwh/comopt/components/sysChannel/index.vue b/src/views/liswork/xtwh/comopt/components/sysChannel/index.vue index e8f367c..f0b3b8e 100644 --- a/src/views/liswork/xtwh/comopt/components/sysChannel/index.vue +++ b/src/views/liswork/xtwh/comopt/components/sysChannel/index.vue @@ -18,18 +18,15 @@ - - - - - - - - + + + +
@@ -44,37 +41,93 @@ diff --git a/src/views/liswork/xtwh/comopt/components/sysSort/index.vue b/src/views/liswork/xtwh/comopt/components/sysSort/index.vue index 81db88d..3704f50 100644 --- a/src/views/liswork/xtwh/comopt/components/sysSort/index.vue +++ b/src/views/liswork/xtwh/comopt/components/sysSort/index.vue @@ -1,44 +1,28 @@ @@ -46,28 +30,21 @@ + From ddccaa4f32f3a708aa6f01850bdb0489cccd6d59 Mon Sep 17 00:00:00 2001 From: wyuu Date: Mon, 22 Dec 2025 17:30:28 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/liswork/xtwh/ComOpt.ts | 24 ++ src/utils/request.js | 8 +- .../comopt/components/sysParameter/index.vue | 346 ++++++++++-------- .../xtwh/comopt/components/sysSort/index.vue | 6 +- src/views/liswork/xtwh/comopt/index.vue | 2 +- 5 files changed, 227 insertions(+), 159 deletions(-) diff --git a/src/api/liswork/xtwh/ComOpt.ts b/src/api/liswork/xtwh/ComOpt.ts index abc37d1..14ece01 100644 --- a/src/api/liswork/xtwh/ComOpt.ts +++ b/src/api/liswork/xtwh/ComOpt.ts @@ -146,4 +146,28 @@ export function delitemtdh(data?: Object) { method: 'get', params: data }); +} +// 获取仪器参数 +export function querydouble(data?: Object) { + return request({ + url: '/xminfo/querydouble', + method: 'get', + params: data + }); +} +// 保存仪器参数 +export function savedouble(data?: Object) { + return request({ + url: '/xminfo/savedouble', + method: 'post', + data + }); +} +// 获取参数默认模板 +export function querymbmc(data?: Object) { + return request({ + url: '/xminfo/querymbmc', + method: 'get', + params: data + }); } \ No newline at end of file diff --git a/src/utils/request.js b/src/utils/request.js index 964bce6..5811963 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -171,13 +171,7 @@ service.interceptors.response.use(res => { }) return Promise.reject('error'); } else if (code === 1) { - //提示并失败 - ElNotification({ - title: '提示', - message: msg, - type: 'error', - duration: 0, - }) + //提示并返回数据 return Promise.resolve(res.data) } else if (code === 4) { //返回特定值,需要后续处理,表示当前操作需要处理后再调用,problemId是步骤关键参数,需要再次调用时引入 diff --git a/src/views/liswork/xtwh/comopt/components/sysParameter/index.vue b/src/views/liswork/xtwh/comopt/components/sysParameter/index.vue index 5c19ce5..b0faa43 100644 --- a/src/views/liswork/xtwh/comopt/components/sysParameter/index.vue +++ b/src/views/liswork/xtwh/comopt/components/sysParameter/index.vue @@ -1,159 +1,169 @@ + + From c3b89a01ab5a1c37a6d9fbdc8261017efce9371e Mon Sep 17 00:00:00 2001 From: wyuu Date: Tue, 23 Dec 2025 17:36:12 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/index.scss | 4 +- src/components/DictTag/index.vue | 18 +- .../comopt/components/sysChannel/index.vue | 41 +-- src/views/liswork/xtwh/comopt/index.vue | 2 +- src/views/liswork/xtwh/configdict/index.vue | 321 +++++++----------- src/views/liswork/xtwh/reportItem/index.vue | 27 +- src/views/liswork/xtwh/reportdict/index.vue | 11 + src/views/liswork/xtwh/xmFeeInstr/index.vue | 2 +- src/views/liswork/xtwh/xmReqItemVs/index.vue | 56 +-- 9 files changed, 210 insertions(+), 272 deletions(-) create mode 100644 src/views/liswork/xtwh/reportdict/index.vue diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 2109434..834f5b1 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -124,7 +124,7 @@ aside { //main-container全局样式 .app-container { padding: 10px 10px 0 10px; - min-height: calc(100vh - 5.25rem); + height: calc(100vh - 5.25rem); } .components-container { @@ -133,7 +133,7 @@ aside { } .pagination-container { - margin-top: 30px; + margin-top: 10px; } .text-center { diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue index 7d0888c..bcbd948 100644 --- a/src/components/DictTag/index.vue +++ b/src/components/DictTag/index.vue @@ -4,18 +4,10 @@ @@ -45,13 +33,14 @@ import { queryXmInfo, } from '@/api/liswork/work/LisWork'; import { getitemtdh, saveitemtdh, delitemtdh } from '@/api/liswork/xtwh/ComOpt'; import { ElMessage } from 'element-plus'; const yq = defineModel(); +const loading = ref(false); const tableRef = ref(); const tableData = ref>([]); const columns = [ { label: '序号', type: 'index', visible: true, width: 50, align: 'center' }, { label: '通道号', prop: 'tdh', visible: true, align: 'center', slot: 'tdh' }, { label: '项目代号', prop: 'xmdh', visible: true, align: 'center' }, - { label: '项目', prop: 'xmmc', visible: true, align: 'center', slot: 'xmmc', showOverflowTooltip: false }, + { label: '项目', prop: 'xmmc', visible: true, align: 'center', slot: 'xmmc', showOverflowTooltip: false, width: 250 }, { label: '项目id', prop: 'xmid', visible: true, align: 'center' }, ]; const tableConfig = { @@ -108,7 +97,9 @@ const allClear = () => { } const xmList = ref>([]); const getXmList = () => { + loading.value = true; queryXmInfo({ yq: yq.value }).then((res: any) => { + loading.value = false; xmList.value = res.data.map((item: any) => { return { label: item.xmmc, diff --git a/src/views/liswork/xtwh/comopt/index.vue b/src/views/liswork/xtwh/comopt/index.vue index aadc9c6..598045f 100644 --- a/src/views/liswork/xtwh/comopt/index.vue +++ b/src/views/liswork/xtwh/comopt/index.vue @@ -112,7 +112,7 @@ const tabList = [ { key: 'SysSort', label: '项目排序', component: SysSort }, { key: 'SysReport', label: '报告单设置', component: SysReport }, ] -const activeName = ref('SysParameter') +const activeName = ref('SysGlobal') // 计算当前要渲染的组件 const currentComponent = computed(() => { diff --git a/src/views/liswork/xtwh/configdict/index.vue b/src/views/liswork/xtwh/configdict/index.vue index 69166fe..fa13382 100644 --- a/src/views/liswork/xtwh/configdict/index.vue +++ b/src/views/liswork/xtwh/configdict/index.vue @@ -1,48 +1,23 @@