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;