From e9f7c9a4b1a012a9f3c39d16212c684a80b08071 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Thu, 12 Dec 2024 14:50:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=85=8D=E8=BD=BD=E5=9B=BE?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/print.js | 14 +- src/views/desk/DataBoard.vue | 20 +-- .../artery/VehicleArrivalManagement.vue | 15 +- .../distribution/artery/VehicleNodeImgs.vue | 163 +++++++++++------- .../distribution/artery/VehicleStowage.vue | 1 + 5 files changed, 130 insertions(+), 83 deletions(-) diff --git a/src/utils/print.js b/src/utils/print.js index fa20edf3..dfb4a3c2 100644 --- a/src/utils/print.js +++ b/src/utils/print.js @@ -47,6 +47,13 @@ const print = (nodeList, type = 'deliveryPrint') => { // 初始化打印实例 let LODOP = getLodop(); + // const _count = LODOP.GET_PRINTER_COUNT(); + + // for (let index = 0; index < _count; index++) { + // const name = LODOP.GET_PRINTER_NAME(index); + // console.log('name :>> ', name); + // } + // 当列表内没有元素时, 退出函数 if (nodeList.length === 0) return; @@ -68,13 +75,6 @@ const print = (nodeList, type = 'deliveryPrint') => { const newPrint = nodeName => { if (nodeName) return hwyPrintNew(nodeName); - // const nodeList = document.querySelectorAll('.el-dialog__body>div>div>div') - - // for (const iterator of nodeList) { - // //$Print(iterator) - - // console.log(iterator, 'iterator'); - // } hwyPrintNew('.el-dialog__body>div>div>div'); }; diff --git a/src/views/desk/DataBoard.vue b/src/views/desk/DataBoard.vue index b86d8ec1..e7000ff1 100644 --- a/src/views/desk/DataBoard.vue +++ b/src/views/desk/DataBoard.vue @@ -905,13 +905,13 @@ () => handleDetails('trunklineCarsDataColumn', '干线车次统计 - 在途 - 车', { tip: '在途', - prop: 'inTransitNum', + prop: 'onTheWayNum', }) " >
- {{ details.trunklineCarsDataInfo.inTransitNum || 0 }} + {{ details.trunklineCarsDataInfo.onTheWayNum || 0 }}
@@ -926,13 +926,13 @@ () => handleDetails('trunklineCarsDataColumn', '干线车次统计 - 作业 - 车', { tip: '作业', - prop: 'workNum', + prop: 'workingNum', }) " >
- {{ details.trunklineCarsDataInfo.workNum || 0 }} + {{ details.trunklineCarsDataInfo.workingNum || 0 }}
@@ -947,13 +947,13 @@ () => handleDetails('trunklineCarsDataColumn', '干线车次统计 - 卸车完成 - 车', { tip: '卸车完成', - prop: 'unloadNum', + prop: 'unloadCompleteNum', }) " >
- {{ details.trunklineCarsDataInfo.unloadNum || 0 }} + {{ details.trunklineCarsDataInfo.unloadCompleteNum || 0 }}
@@ -1841,10 +1841,10 @@ const details = reactive({ }, /** 干线车次数据 */ trunklineCarsDataInfo: { - inTransitNum: 0, + onTheWayNum: 0, totalNum: 0, - unloadNum: 0, - workNum: 0, + unloadCompleteNum: 0, + workingNum: 0, }, /** 异常卸车数据 */ unloadAbnormalDataInfo: { @@ -2136,7 +2136,7 @@ const initTrunklineHandOrderData = async () => { /** 请求干线车次数据 */ const initTrunklineCarsData = async () => { const _obj: any = {}; - const _keyArr = ['inTransitNum', 'totalNum', 'unloadNum', 'workNum']; + const _keyArr = ['onTheWayNum', 'totalNum', 'unloadCompleteNum', 'workingNum']; for (let i = 0; i < _keyArr.length; i++) { const value = _keyArr[i]; diff --git a/src/views/distribution/artery/VehicleArrivalManagement.vue b/src/views/distribution/artery/VehicleArrivalManagement.vue index 746b3846..002e2bb8 100644 --- a/src/views/distribution/artery/VehicleArrivalManagement.vue +++ b/src/views/distribution/artery/VehicleArrivalManagement.vue @@ -397,9 +397,9 @@ - + @@ -1870,6 +1870,17 @@ const handleExportAbnormal = () => { const time = new Date().getTime(); exportExcelByDom(abnormalOrderTableNode.value.$el, '异常数据' + ' - ' + time + '.xlsx'); }; + +/** 配载图片 */ +const handleShowVehicleImgs = ({ row }) => { + $router.push({ + path: '/distribution/artery/VehicleNodeImgs', + query: { + name: `${row.carsNo} - 节点图片`, + loadId: row.id, + }, + }); +};