From 9a445bc29b05ba30efffbc469478ec93626078ea Mon Sep 17 00:00:00 2001 From: xiepeng Date: Thu, 25 Apr 2024 18:01:55 +0800 Subject: [PATCH] =?UTF-8?q?BUG=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../waybill_registration/edit.vue | 3 +- .../extraction_and_use/index.vue | 62 +++++++++++-------- 2 files changed, 37 insertions(+), 28 deletions(-) diff --git a/src/views/electronic_waybill_management/waybill_registration/edit.vue b/src/views/electronic_waybill_management/waybill_registration/edit.vue index 186eb7e..1a242ed 100644 --- a/src/views/electronic_waybill_management/waybill_registration/edit.vue +++ b/src/views/electronic_waybill_management/waybill_registration/edit.vue @@ -409,7 +409,7 @@ const fnGetData = async () => { data.form.DISPATCHER = data.form.DISPATCHER.split(","); data.form.SHIPPINGADDRESS = data.form.SHIPPING_ADDR; // 起运地址 data.form.DESTINATIONADDRESS = data.form.DESTINATION_ADDR; // 目的地址 - data.userList = data.form.names; // 获取部门下的|或有人员 + data.userList = data.form.deptList; // 获取部门下的所有人员 data.form.CLIENTCONTACTPHONE = data.form.ENTRUST_PHONE; data.form.CONFIRMINGPHONE = data.form.CONFIRM_PHONE; data.form.STARTADMINISTRATIVEAREA = data.form.DEPARTURE_ADDR; @@ -624,6 +624,7 @@ const fnDepartmentChange = async () => { }; const fnGetUser = async (DEPARTMENT_ID) => { const resData = await getUserListAll({ DEPARTMENT_ID }); + console.log(resData); data.userList = resData.userList; }; diff --git a/src/views/security_investment/extraction_and_use/index.vue b/src/views/security_investment/extraction_and_use/index.vue index 133b259..2b0388b 100644 --- a/src/views/security_investment/extraction_and_use/index.vue +++ b/src/views/security_investment/extraction_and_use/index.vue @@ -29,7 +29,7 @@ - 打印 + 打印 @@ -81,29 +81,29 @@
- - - - - - - - - - + + + + + + + + + + - - - - - - - + + + + + + +
@@ -121,7 +121,7 @@ import useListData from "@/assets/js/useListData.js"; import { getExtractionAndUseList, - setExtractionAndUseBatchDelete, + setExtractionAndUseBatchDelete } from "@/request/security_investment.js"; import { debounce } from "throttle-debounce"; import { ElMessage, ElMessageBox } from "element-plus"; @@ -147,15 +147,17 @@ const costItems = [ "应急管理、事故救援演练以及救援队伍建设", "安全标志及标识", "配备劳动防护用品", - "其它与安全生产直接相关的物品或者活动", + "其它与安全生产直接相关的物品或者活动" ]; +const total = await getExtractionAndUseList(); +console.log(total); const addDialogVisible = ref(false); const { list, searchForm, fnGetData, tableRef } = useListData( getExtractionAndUseList, { usePagination: false, defaultSearchForm: { - YEAR: new Date().getFullYear(), + YEAR: new Date().getFullYear() }, callbackFn: (list) => { for (let i = 0; i < list.length; i++) { @@ -168,7 +170,7 @@ const { list, searchForm, fnGetData, tableRef } = useListData( else list[i].TOTAL = list[i - 1].TOTAL - list[i].AMOUNT; } } - }, + } } ); const fnGetSummaries = ({ columns, data }) => { @@ -178,6 +180,13 @@ const fnGetSummaries = ({ columns, data }) => { sums[index] = "合计"; return; } + + // var arr = ref([5, 6, 7, 8, 9, 10, 11, 12, 13, 14]) + // if (arr.includes(index)) { + // sums[index] = total.allOutlayTotalList[index - 5].total; + // return; + // } + if (index !== columns.length - 1) { sums[index] = "--"; return; @@ -212,7 +221,6 @@ const fnDelete = debounce( await setExtractionAndUseBatchDelete({ DATA_IDS }); ElMessage.success("删除成功"); fnGetData(); - }, { atBegin: true } );