From 911909c72f350215585ab791f521305af3f1d68e Mon Sep 17 00:00:00 2001 From: mll Date: Fri, 17 Apr 2026 10:02:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E4=BA=A7=E5=93=81=E5=8D=A0?= =?UTF-8?q?=E6=AF=94=E8=A1=A8=E5=92=8C=E4=BA=A7=E5=93=81=E5=8F=AF=E9=94=80?= =?UTF-8?q?=E5=BA=93=E5=AD=98=E8=A1=A8=E5=8A=A0=E4=B8=8A=E5=90=88=E8=AE=A1?= =?UTF-8?q?=20=E4=BB=A5=E5=8F=8A=E5=8E=BB=E6=8E=89=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LowDesign/src/LowReport/index.vue | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/components/LowDesign/src/LowReport/index.vue b/src/components/LowDesign/src/LowReport/index.vue index 98eb170..faa153b 100644 --- a/src/components/LowDesign/src/LowReport/index.vue +++ b/src/components/LowDesign/src/LowReport/index.vue @@ -181,6 +181,7 @@ import { assembleLengObj } from '@/utils/lowDesign' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import Avue from '@smallwei/avue' import { Console } from 'console' +import { ruleLeng } from '../utils/util' defineOptions({ name: 'LowReport' }) interface Props { @@ -211,7 +212,8 @@ const transferFields={ 'goodsName':'goodsname', 'customName':'customname', 'dosageName':'dosagename', - 'stdGoodsName':'stdGoodsIdName' + 'stdGoodsName':'stdGoodsIdName', + 'effectName':'effectname' } const loading = ref(false) // 列表的加载中 const isInit = ref(false) @@ -330,6 +332,12 @@ const remoteMethod= async(query,column)=>{ const crudBind = computed(() => { const obj = {} if (tableInfo.value.isPage) obj['page'] = tablePage.value + else{ + tablePage.value={ + currentPage: 1, pageSize: 999999, total: 0 + } + obj['page'] = tablePage.value + } return obj }) @@ -384,10 +392,11 @@ const summaryMethod1=({columns,data})=>{ let keys=Object.values(amountFieds.value).map(item=>item.prop) columns.forEach((item,index)=>{ - if(keys.includes(item.property)){ + if(keys.includes(item.property)&&index!==0){ result[index]=amountObj.value[item.property] } }) + return result; } const rowStyleMethod=({row,rowIndex})=>{ @@ -581,7 +590,7 @@ const initTable = async () => { '业务员':'ywyxx', '业务区域':'ywqy', '标准品名':'bzpm', - '疗效分类':'zhxs-lxfl' + '疗效分类':'effect' } @@ -713,11 +722,11 @@ const sortChange = ({ order, prop }) => { const getSearchData = () => { return new Promise(async (resolve) => { let searchObj: any = {} - if (tableInfo.value.isPage) { + // if (tableInfo.value.isPage) { const { currentPage, pageSize } = tablePage.value searchObj.pageNo = currentPage searchObj.pageSize = pageSize - } + // } for (let key in tableSearch.value) { if (tableSearch.value[key] instanceof Array) searchObj[key] = tableSearch.value[key].join(',') else searchObj[key] = tableSearch.value[key] @@ -769,7 +778,8 @@ const getTableData = async (isLoading = true) => { total: 6 } } - if (tablePage.value) tablePage.value['total'] = data.total + + if (tablePage.value&&tableInfo.value.isPage) tablePage.value['total'] = data.total // 查找动态分组字段(用于生成一级表头) const groupField = fieldList.value.find(f => f.isDynamicGroup === 'Y')