From cd93ea7fc9c8d7c77290fab8c8c91c60b3c2cfec Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Thu, 2 Jan 2025 10:22:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=80=E5=8D=95=E5=BD=95?= =?UTF-8?q?=E5=8D=95bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/distribution/inventory/CreateOrder.vue | 6 ++++-- src/views/waybill/CreateZeroOrder.vue | 7 +++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/distribution/inventory/CreateOrder.vue b/src/views/distribution/inventory/CreateOrder.vue index 9f151306..86ec8fe7 100644 --- a/src/views/distribution/inventory/CreateOrder.vue +++ b/src/views/distribution/inventory/CreateOrder.vue @@ -2185,8 +2185,10 @@ const onLoad = async (idsArr = []) => { details.query.shipperId = data.shipperClientId || ''; details.query.consigneeId = data.consigneeClientId || ''; - details.query.destination = data.destinationArray || []; - details.query.departure = data.departureArray || []; + details.query.destination = + getObjType(data.destinationArray) === 'array' ? data.destinationArray : []; + details.query.departure = + getObjType(data.departureArray) === 'array' ? data.departureArray : []; details.query.queryDestinationWarehouseName = data.destinationWarehouseName || ''; // 是否提货 details.query.isPickUp = details.query.isPickUp ? details.query.isPickUp : 0; diff --git a/src/views/waybill/CreateZeroOrder.vue b/src/views/waybill/CreateZeroOrder.vue index e2f15e16..92ec3c7f 100644 --- a/src/views/waybill/CreateZeroOrder.vue +++ b/src/views/waybill/CreateZeroOrder.vue @@ -1981,8 +1981,11 @@ const onLoad = async () => { details.query.shipperId = data.shipperClientId || ''; details.query.consigneeId = data.consigneeClientId || ''; - details.query.destination = data.destinationArray || []; - details.query.departure = data.departureArray || []; + details.query.destination = + getObjType(data.destinationArray) === 'array' ? data.destinationArray : []; + details.query.departure = + getObjType(data.departureArray) === 'array' ? data.departureArray : []; + details.query.queryDestinationWarehouseName = data.destinationWarehouseName || ''; // 是否提货 details.query.isPickUp = details.query.isPickUp ? details.query.isPickUp : 0;