From 1fe7c954e4a1316ca05d0b17827b3156e0cd0ed5 Mon Sep 17 00:00:00 2001
From: qb <1191961160@qq.com>
Date: Mon, 28 Oct 2024 18:45:42 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=B2=E7=BA=BF=E9=83=A8?=
=?UTF-8?q?=E5=88=86bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ArteryPrintTemplate.vue | 215 ++++++++++--------
.../TripartiteTransferPrintTemplate.vue | 96 ++++----
.../distribution/VehicleArrivalManagement.js | 8 +-
src/option/distribution/VehicleStowage.js | 8 +-
.../artery/TripartiteTransfer.vue | 6 +
.../artery/VehicleArrivalManagement.vue | 6 +
.../distribution/artery/VehicleStowage.vue | 6 +
.../distribution/inventory/BookingNote.vue | 4 +-
src/views/waybill/WaybillOrderList.vue | 24 +-
9 files changed, 203 insertions(+), 170 deletions(-)
diff --git a/src/components/ArteryPrintTemplate/ArteryPrintTemplate.vue b/src/components/ArteryPrintTemplate/ArteryPrintTemplate.vue
index 3380f4ed..25ef3009 100644
--- a/src/components/ArteryPrintTemplate/ArteryPrintTemplate.vue
+++ b/src/components/ArteryPrintTemplate/ArteryPrintTemplate.vue
@@ -129,103 +129,116 @@
小计 |
-
- {{ index + 1 }} |
-
-
- {{ value.shipper || '' }}
- |
-
-
- {{ value.createTime || '' }}
- |
-
-
- {{ value.departureWarehouseName || '' }}
- |
-
-
- {{ value.destinationWarehouseName || '' }}
- |
-
-
- {{ value.consignee }}
- |
-
-
- {{ value.consigneeName }}
- |
-
-
- {{ value.consigneeMobile }}
- |
-
-
- {{ value.waybillNo }}
- |
-
-
- {{ value.orderCode }}
- |
-
-
- {{ value.planNum }}
- |
-
- |
-
- {{ (value.goodsList.find(val => val.goodsName === item) || {}).num || '' }}
- |
-
-
- {{ value.smallTotal }}
- |
-
-
-
-
- {{ value.unloadNum }}
- |
-
- |
-
- |
-
- |
-
+
+
+
+ {{ index + 1 }}
+ |
+
+
+ {{ value.shipper || '' }}
+ |
+
+
+ {{ value.createTime || '' }}
+ |
+
+
+ {{ value.departureWarehouseName || '' }}
+ |
+
+
+ {{ value.destinationWarehouseName || '' }}
+ |
+
+
+ {{ value.consignee }}
+ |
+
+
+ {{ value.consigneeName }}
+ |
+
+
+ {{ value.consigneeMobile }}
+ |
+
+
+ {{ value.waybillNo }}
+ |
+
+
+ {{ value.orderCode }}
+ |
+
+
+ {{ value.planNum }}
+ |
+
+ |
+
+ {{ (value.goodsList.find(val => val.goodsName === item) || {}).num || '' }}
+ |
+
+
+ {{ value.smallTotal }}
+ |
+
+
+
+
+ {{ value.unloadNum }}
+ |
+
+ |
+
+ |
+
+ |
+
+
@@ -296,8 +309,6 @@ renderInfo.value.endWarehouseNames = renderInfo.value.endWarehouseNames.split(',
let mergeStartIndex = 0;
// 比对值
let comparisonValue = '';
-renderInfo.value.mainList[0].mergeColumnIndex = 1;
-
const handleMerge = (startIndex: number, endIndex: number, data: {}) => {
for (let index = startIndex; index < endIndex; index++) {
const value = data[index];
@@ -312,8 +323,10 @@ const handleMerge = (startIndex: number, endIndex: number, data: {}) => {
for (let index = 0; index < renderInfo.value.mainList.length; index++) {
const element = renderInfo.value.mainList[index];
- if (index === 0) comparisonValue = element.waybillNo;
-
+ if (index === 0) {
+ comparisonValue = element.waybillNo;
+ element.mergeColumnIndex = 1;
+ }
totalNum.value += element.smallTotal || 0;
totalUnLoadNum.value += element.unloadNum || 0;
totalPlanNum.value += element.planNum || 0;
diff --git a/src/components/TripartiteTransferPrintTemplate/TripartiteTransferPrintTemplate.vue b/src/components/TripartiteTransferPrintTemplate/TripartiteTransferPrintTemplate.vue
index 0e51ce6e..40c210a8 100644
--- a/src/components/TripartiteTransferPrintTemplate/TripartiteTransferPrintTemplate.vue
+++ b/src/components/TripartiteTransferPrintTemplate/TripartiteTransferPrintTemplate.vue
@@ -58,50 +58,52 @@
-
- {{ index + 1 }} |
-
-
- {{ value.shipper || '' }}
- |
-
-
- {{ value.createTime || '' }}
- |
-
-
- {{ value.consignee }}
- |
-
-
- {{ value.consigneeName }}
- |
-
-
- {{ value.consigneeMobile }}
- |
-
-
- {{ value.waybillNo }}
- |
-
- {{ value.orderCode }} |
-
- {{ value.planNum }} |
-
- |
-
- {{ (value.goodsList.find(val => val.goodsName === item) || {}).num || '' }}
- |
-
- {{ value.smallTotal }} |
-
- {{ value.smallTotal }} |
-
- {{ value.unloadNum }} |
-
- |
-
+
+
+ {{ index + 1 }} |
+
+
+ {{ value.shipper || '' }}
+ |
+
+
+ {{ value.createTime || '' }}
+ |
+
+
+ {{ value.consignee }}
+ |
+
+
+ {{ value.consigneeName }}
+ |
+
+
+ {{ value.consigneeMobile }}
+ |
+
+
+ {{ value.waybillNo }}
+ |
+
+ {{ value.orderCode }} |
+
+ {{ value.planNum }} |
+
+ |
+
+ {{ (value.goodsList.find(val => val.goodsName === item) || {}).num || '' }}
+ |
+
+ {{ value.smallTotal }} |
+
+ {{ value.smallTotal }} |
+
+ {{ value.unloadNum }} |
+
+ |
+
+
@@ -157,7 +159,6 @@ const isShowTotal = ref(false);
let mergeStartIndex = 0;
// 比对值
let comparisonValue = '';
-renderInfo.value.mainList[0].mergeColumnIndex = 1;
const handleMerge = (startIndex: number, endIndex: number, data: {}) => {
for (let index = startIndex; index < endIndex; index++) {
@@ -174,7 +175,10 @@ renderInfo.value.endWarehouseNames = renderInfo.value.endWarehouseNames.split(',
for (let index = 0; index < renderInfo.value.mainList.length; index++) {
const element = renderInfo.value.mainList[index];
- if (index === 0) comparisonValue = element.waybillNo;
+ if (index === 0) {
+ comparisonValue = element.waybillNo;
+ element.mergeColumnIndex = 1;
+ }
totalNum.value += element.smallTotal || 0;
totalUnLoadNum.value += element.unloadNum || 0;
diff --git a/src/option/distribution/VehicleArrivalManagement.js b/src/option/distribution/VehicleArrivalManagement.js
index df08a80d..d6c824a8 100644
--- a/src/option/distribution/VehicleArrivalManagement.js
+++ b/src/option/distribution/VehicleArrivalManagement.js
@@ -145,7 +145,7 @@ export const columnList = [
{
prop: 'driverName',
label: '主驾司机',
- type: 1,
+ type: 2,
values: '',
width: '130',
checkarr: [],
@@ -165,7 +165,7 @@ export const columnList = [
{
prop: 'carNumber',
label: '车牌号',
- type: 1,
+ type: 2,
values: '',
width: '150',
checkarr: [],
@@ -175,7 +175,7 @@ export const columnList = [
{
prop: 'startWarehouseName',
label: '起点仓库',
- type: 1,
+ type: 2,
values: '',
width: '130',
checkarr: [],
@@ -185,7 +185,7 @@ export const columnList = [
{
prop: 'endWarehouseNames',
label: '终点仓库',
- type: 1,
+ type: 2,
values: '',
width: '130',
checkarr: [],
diff --git a/src/option/distribution/VehicleStowage.js b/src/option/distribution/VehicleStowage.js
index 4b30abb8..1db42ef8 100644
--- a/src/option/distribution/VehicleStowage.js
+++ b/src/option/distribution/VehicleStowage.js
@@ -145,7 +145,7 @@ export const columnList = [
{
prop: 'driverName',
label: '主驾司机',
- type: 1,
+ type: 2,
values: '',
width: '130',
checkarr: [],
@@ -165,7 +165,7 @@ export const columnList = [
{
prop: 'carNumber',
label: '车牌号',
- type: 1,
+ type: 2,
values: '',
width: '150',
checkarr: [],
@@ -175,7 +175,7 @@ export const columnList = [
{
prop: 'startWarehouseName',
label: '起点仓库',
- type: 1,
+ type: 2,
values: '',
width: '130',
checkarr: [],
@@ -185,7 +185,7 @@ export const columnList = [
{
prop: 'endWarehouseNames',
label: '终点仓库',
- type: 1,
+ type: 2,
values: '',
width: '130',
checkarr: [],
diff --git a/src/views/distribution/artery/TripartiteTransfer.vue b/src/views/distribution/artery/TripartiteTransfer.vue
index e4011a9e..d5dcf440 100644
--- a/src/views/distribution/artery/TripartiteTransfer.vue
+++ b/src/views/distribution/artery/TripartiteTransfer.vue
@@ -499,6 +499,12 @@
>
+
+
+
+