From 6f1770fd35eb8864353edca7741fecf3fd036879 Mon Sep 17 00:00:00 2001 From: wyuu Date: Wed, 24 Dec 2025 17:42:44 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/liswork/xmmb/index.ts | 20 ++ src/api/liswork/xtwh/xmReqItemVsApi.ts | 33 +++ src/components/SelectTable/index.vue | 9 +- src/hooks/lisData/dictData.ts | 4 +- src/types/SelectTable.d.ts | 1 + src/views/liswork/xmKnowledge/TableData.vue | 33 ++- src/views/liswork/xmKnowledge/index.vue | 28 +-- src/views/liswork/xmmb/index.vue | 192 ++++++++++++++++++ src/views/liswork/xtwh/xmFeeInstr/index.vue | 55 ++--- src/views/liswork/xtwh/xmReqItemVs/index.vue | 105 ++++++++-- src/views/regional/circulation/bbcx/index.vue | 30 +-- src/views/regional/circulation/bbqs/index.vue | 32 +-- src/views/regional/circulation/bbth/index.vue | 30 +-- src/views/regional/circulation/sjdj/index.vue | 32 +-- src/views/regional/statistics/bbtj/index.vue | 12 +- src/views/regional/statistics/fytj/index.vue | 12 +- 16 files changed, 490 insertions(+), 138 deletions(-) create mode 100644 src/api/liswork/xmmb/index.ts create mode 100644 src/views/liswork/xmmb/index.vue diff --git a/src/api/liswork/xmmb/index.ts b/src/api/liswork/xmmb/index.ts new file mode 100644 index 0000000..76fbe21 --- /dev/null +++ b/src/api/liswork/xmmb/index.ts @@ -0,0 +1,20 @@ +//@ts-ignore js语法检查忽略 +import request from '@/utils/request'; + + +// 查询模板列表 +export function queryMbList(query?: Object) { + return request({ + url: '/labInputmdl/query', + method: 'get', + params: query, + }); +} +// 查询明细数据 +export function queryDetail(query?: Object) { + return request({ + url: '/labInputmdl/queryDetail', + method: 'get', + params: query, + }); +} \ No newline at end of file diff --git a/src/api/liswork/xtwh/xmReqItemVsApi.ts b/src/api/liswork/xtwh/xmReqItemVsApi.ts index 2d7abeb..61d52dd 100644 --- a/src/api/liswork/xtwh/xmReqItemVsApi.ts +++ b/src/api/liswork/xtwh/xmReqItemVsApi.ts @@ -19,3 +19,36 @@ export function queryDetailService(params: any) { params, }); } +//查询项目明细 old +export function queryOldxminfo(params: any) { + return request({ + url: "/oldxminfo/query", + method: "get", + params, + }); +} +//搜索项目 +export function searchxminfo(params: any) { + return request({ + url: "/vsReportitem/search", + method: "get", + params, + }); +} + +//添加收费项目报告项目对照 +export function addXminfo(data: Object) { + return request({ + url: "/vsReportitem/add", + method: "post", + data, + }); +} +//删除收费项目报告项目对照 +export function delXminfo(data: Object) { + return request({ + url: "/vsReportitem/del", + method: "delete", + params: data, + }); +} diff --git a/src/components/SelectTable/index.vue b/src/components/SelectTable/index.vue index 8053e7d..cd31dd5 100644 --- a/src/components/SelectTable/index.vue +++ b/src/components/SelectTable/index.vue @@ -61,6 +61,7 @@ const props = withDefaults(defineProps(), { dictType: '', clearable: true, objKey: 'value', + keyValue: false, fields: () => [ { prop: 'value', label: '代号', width: 80, enablePinyinSearch: true }, { prop: 'label', label: '名称', width: 150, enablePinyinSearch: true }, @@ -116,7 +117,7 @@ const visibleChange = (val: any) => { currentIndex.value = filterData.value.findIndex(item => item[props.value!] === props.data); if (currentIndex.value >= 0) { tableRef.value.setCurrentRow(filterData.value[currentIndex.value]); - tableRef.value.setScrollTop(currentIndex.value); + tableRef.value.setScrollTop(currentIndex.value * 30); } }, 10); } @@ -140,7 +141,7 @@ const handleDataEcho = () => { } else if (props.tableData) { row = props.tableData?.find((item: any) => props.objKey && item[props.objKey] === props.data) } - selectShowValue.value = row ? (props.label ? row[props.label] : (props.value ? row[props.value] : '')) : ''; + selectShowValue.value = row ? (props.keyValue ? `${row[props.value]} ${row[props.label]}` : (props.label ? row[props.label] : (props.value ? row[props.value] : ''))) : ''; } }; @@ -238,7 +239,7 @@ const handleKeydown = (e: any) => { tableRef.value.setCurrentRow(filterData.value[currentIndex.value]); // 滚动到当前行 - tableRef.value.setScrollTop(currentIndex.value); + tableRef.value.setScrollTop(currentIndex.value * 30); // 回车确认 if (e.key === "Enter") { @@ -301,6 +302,8 @@ const setLabel = (val: any) => { selectShowValue.value = val[props.label]; } else if (props.value) { selectShowValue.value = val[props.value]; + } else if (props.keyValue) { + selectShowValue.value = `${val[props.value]} ${val[props.label]}`; } if (props.objKey) { // 返回值objKey对应的对象数据 diff --git a/src/hooks/lisData/dictData.ts b/src/hooks/lisData/dictData.ts index d12369f..10db473 100644 --- a/src/hooks/lisData/dictData.ts +++ b/src/hooks/lisData/dictData.ts @@ -33,12 +33,12 @@ export const getDictData = async (...args: string[]) => { //字典数据格式化方法 export const formatDict = (v: string, dictType: string) => { if (v == undefined) return; - return dictData.value[dictType]?.find((item: any) => item.value == v.trim())?.label; + return dictData.value[dictType]?.find((item: any) => item.value == v.trim())?.label || v; } //仪器格式化方法 export const formatInstr = (v: string) => { - return instrOptions.value.find((item: any) => item.yq == v.trim())?.yqmc; + return instrOptions.value.find((item: any) => item.yq == v.trim())?.yqmc || v; } export { dictData, instrOptions } \ No newline at end of file diff --git a/src/types/SelectTable.d.ts b/src/types/SelectTable.d.ts index c076b43..dbb78eb 100644 --- a/src/types/SelectTable.d.ts +++ b/src/types/SelectTable.d.ts @@ -18,6 +18,7 @@ export interface Props { disabled?: boolean; dictType?: string; clearable?: boolean; + keyValue?: boolean; //是否使用键值对模式 } diff --git a/src/views/liswork/xmKnowledge/TableData.vue b/src/views/liswork/xmKnowledge/TableData.vue index 7dd295c..51617b8 100644 --- a/src/views/liswork/xmKnowledge/TableData.vue +++ b/src/views/liswork/xmKnowledge/TableData.vue @@ -1,17 +1,17 @@ - + diff --git a/src/views/liswork/xmKnowledge/index.vue b/src/views/liswork/xmKnowledge/index.vue index a638940..74026cd 100644 --- a/src/views/liswork/xmKnowledge/index.vue +++ b/src/views/liswork/xmKnowledge/index.vue @@ -1,20 +1,22 @@ - + @@ -63,7 +65,7 @@ const columnsLeft = ref([ const tableConfig = ref({ border: true, // 边框 - height: '85vh', // 高度 + height: '100%', // 高度 highlightCurrentRow: true, // 高亮当前行 // cellStyle: cellStyleHd }) @@ -158,12 +160,12 @@ onMounted(() => { diff --git a/src/views/liswork/xmmb/index.vue b/src/views/liswork/xmmb/index.vue new file mode 100644 index 0000000..676948a --- /dev/null +++ b/src/views/liswork/xmmb/index.vue @@ -0,0 +1,192 @@ +/** +* @file index.vue +* @author: w +* @since: 2025-12-24 +*/ + + + + + + \ No newline at end of file diff --git a/src/views/liswork/xtwh/xmFeeInstr/index.vue b/src/views/liswork/xtwh/xmFeeInstr/index.vue index b4d138b..6b4cbf3 100644 --- a/src/views/liswork/xtwh/xmFeeInstr/index.vue +++ b/src/views/liswork/xtwh/xmFeeInstr/index.vue @@ -13,16 +13,16 @@ 查询 - 说明:双击左侧列表,能删除对照数据,双击右边列表能新增数据到对照当中 + 说明:双击左侧列表,能删除对照数据,双击右边列表能新增数据到对照当中 - - - + + + - + @@ -42,36 +42,31 @@ import { ElMessage } from 'element-plus'; const tableConfig = ref({ border: true, // 边框 - height: '76vh', // 高度 + height: '100%', // 高度 highlightCurrentRow: true, // 高亮当前行 - // cellStyle: cellStyleHd }) //退拽属性 const handleColumnDragEnd = (data: any) => { - // 更新列配置 - columnsLeft.value = data.columns; columnsRight.value = data.columns; } const columnsLeft = ref([ - { prop: 'sfxmmc', label: '当前仪器对应的收费项目', visible: true, align: 'center', width: 300 }, + { prop: 'sfxmmc', label: '当前仪器对应的收费项目', visible: true, }, { prop: 'yq', label: '仪器', visible: false, align: 'center', width: 100 }, ]); const columnsRight = ref([ - { prop: 'xmlb', label: '类别', visible: true, align: 'center', width: 100 }, - { prop: 'sfxmdh', label: '收费项目代号', visible: true, align: 'center', width: 200 }, - { prop: 'sfxmmc', label: '收费项目名称', visible: true, align: 'center', width: 300 }, - { prop: 'dj', label: '单价', visible: true, align: 'center', width: 100 }, - { prop: 'cp_yq', label: '分配了仪器', visible: true, align: 'center', width: 400 } + { prop: 'xmlb', label: '类别', visible: true, align: 'center', }, + { prop: 'sfxmdh', label: '收费项目代号', visible: true, align: 'center', }, + { prop: 'sfxmmc', label: '收费项目名称', visible: true, align: 'center', }, + { prop: 'dj', label: '单价', visible: true, align: 'center', }, + { prop: 'cp_yq', label: '分配了仪器', visible: true, align: 'center', } ]); -const dataListLeft = ref([ - { 'sfxmdh': '', 'yq': '' } -]) +const dataListLeft = ref([]) const dataListRight = ref([]) const formData = ref({ - yq: '', + yq: '46', item: '' }) @@ -115,9 +110,23 @@ const onQueryClick = () => { getList() } - - +getList() - + diff --git a/src/views/liswork/xtwh/xmReqItemVs/index.vue b/src/views/liswork/xtwh/xmReqItemVs/index.vue index 3018786..c92c63a 100644 --- a/src/views/liswork/xtwh/xmReqItemVs/index.vue +++ b/src/views/liswork/xtwh/xmReqItemVs/index.vue @@ -3,10 +3,10 @@
- + - + @@ -15,7 +15,8 @@ 新增 - 删除 + 删除 + 搜索申请项目 保存 @@ -26,10 +27,9 @@ + @column-drag-end="handleColumnDragEnd" :config="tableConfig" @row-click="rowHandle"> diff --git a/src/views/regional/circulation/bbcx/index.vue b/src/views/regional/circulation/bbcx/index.vue index 3636695..6afbf4c 100644 --- a/src/views/regional/circulation/bbcx/index.vue +++ b/src/views/regional/circulation/bbcx/index.vue @@ -71,20 +71,20 @@
- - - - - - - +
+ + + + + +
@@ -258,6 +258,8 @@ const formatDict = (v: string, arr: Array) => { \ No newline at end of file diff --git a/src/views/liswork/xtwh/reportsetting/reportlist.vue b/src/views/liswork/xtwh/reportsetting/reportlist.vue new file mode 100644 index 0000000..fa60482 --- /dev/null +++ b/src/views/liswork/xtwh/reportsetting/reportlist.vue @@ -0,0 +1,272 @@ + + + From 5f0d568cb7607eeb09cfbd5336c8792e9782416e Mon Sep 17 00:00:00 2001 From: wyuu Date: Thu, 25 Dec 2025 17:34:36 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/liswork/advancedReview/index.ts | 12 ++ src/api/liswork/xmmb/index.ts | 36 ++++- .../SelectTable/YQSelectTable/index.vue | 4 +- src/views/liswork/advancedReview/index.vue | 75 +++++++++ src/views/liswork/xmmb/index.vue | 151 +++++++++++++++--- src/views/regional/circulation/bbcx/index.vue | 2 +- src/views/regional/circulation/bbqs/index.vue | 2 +- src/views/regional/circulation/bbth/index.vue | 2 +- src/views/regional/circulation/sjdj/index.vue | 2 +- 9 files changed, 258 insertions(+), 28 deletions(-) create mode 100644 src/api/liswork/advancedReview/index.ts create mode 100644 src/views/liswork/advancedReview/index.vue diff --git a/src/api/liswork/advancedReview/index.ts b/src/api/liswork/advancedReview/index.ts new file mode 100644 index 0000000..9d9d696 --- /dev/null +++ b/src/api/liswork/advancedReview/index.ts @@ -0,0 +1,12 @@ +//@ts-ignore js语法检查忽略 +import request from '@/utils/request'; + + +//获取报告列表 +export function queryList(query?: Object) { + return request({ + url: '/labCheckrules/queryList', + method: 'get', + params: query, + }); +} \ No newline at end of file diff --git a/src/api/liswork/xmmb/index.ts b/src/api/liswork/xmmb/index.ts index 76fbe21..f03e9ca 100644 --- a/src/api/liswork/xmmb/index.ts +++ b/src/api/liswork/xmmb/index.ts @@ -17,4 +17,38 @@ export function queryDetail(query?: Object) { method: 'get', params: query, }); -} \ No newline at end of file +} +// 新增模板 +export function addXmInfo(query?: Object) { + return request({ + url: '/labInputmdl/add', + method: 'post', + data: query, + }); +} +// 修改模板 +export function updateXmInfo(query?: Object) { + return request({ + url: '/labInputmdl/update', + method: 'post', + data: query, + }); +} + +// 删除模板 +export function deleteXmInfo(query?: Object) { + return request({ + url: '/labInputmdl/delete', + method: 'get', + params: query, + }); +} +// 删除明细数据 +export function deleteDetail(query?: Object) { + return request({ + url: '/labInputmdl/deleteDetail', + method: 'post', + data: query, + }); +} + diff --git a/src/components/SelectTable/YQSelectTable/index.vue b/src/components/SelectTable/YQSelectTable/index.vue index ba01c4e..b0483eb 100644 --- a/src/components/SelectTable/YQSelectTable/index.vue +++ b/src/components/SelectTable/YQSelectTable/index.vue @@ -54,8 +54,8 @@ const getYqConfig = () => { } const getDataValue = (val: any) => { - emits('update:data', val.yq); - emits('getDataValue', val); + emits('update:data', val?.yq || null); + emits('getDataValue', val || null); }; watch(() => props.data, (val) => { diff --git a/src/views/liswork/advancedReview/index.vue b/src/views/liswork/advancedReview/index.vue new file mode 100644 index 0000000..e6f3a72 --- /dev/null +++ b/src/views/liswork/advancedReview/index.vue @@ -0,0 +1,75 @@ +/** +* @file index.vue 高级审核条件 +* @author: w +* @since: 2025-12-25 +*/ + + + + + + diff --git a/src/views/liswork/xmmb/index.vue b/src/views/liswork/xmmb/index.vue index 676948a..96b90d5 100644 --- a/src/views/liswork/xmmb/index.vue +++ b/src/views/liswork/xmmb/index.vue @@ -6,6 +6,18 @@ @@ -113,7 +113,7 @@ const columns: any = ref([ ]) const tableConfig = ref({ border: true, // 边框 - height: '68vh', // 高度 + height: '100%', // 高度 highlightCurrentRow: true, // 高亮当前行 // fit: true, // 列宽自适应 }) diff --git a/src/views/regional/circulation/bbth/index.vue b/src/views/regional/circulation/bbth/index.vue index 6e3eb9c..7de86a5 100644 --- a/src/views/regional/circulation/bbth/index.vue +++ b/src/views/regional/circulation/bbth/index.vue @@ -60,18 +60,20 @@ 申请作废
- - - - - +
+ + + + + +
@@ -109,7 +111,7 @@ const columns: any = ref([ ]) const tableConfig = ref({ border: true, // 边框 - height: '68vh', // 高度 + height: '100%', // 高度 highlightCurrentRow: true, // 高亮当前行 // fit: true, // 列宽自适应 }) diff --git a/src/views/regional/statistics/bbtj/index.vue b/src/views/regional/statistics/bbtj/index.vue index 66619c8..7de86a5 100644 --- a/src/views/regional/statistics/bbtj/index.vue +++ b/src/views/regional/statistics/bbtj/index.vue @@ -4,15 +4,39 @@ - + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + @@ -31,20 +55,31 @@
- -
- + 申请作废 - + +
+ + + + + +
diff --git a/src/views/liswork/xtwh/configdict/index.vue b/src/views/liswork/xtwh/configdict/index.vue index 69166fe..5c2e52d 100644 --- a/src/views/liswork/xtwh/configdict/index.vue +++ b/src/views/liswork/xtwh/configdict/index.vue @@ -1,48 +1,23 @@