Browse Source

新增开单录单客户修改后数据带出

dev-xx
qb 9 months ago
parent
commit
5fd52870c6
  1. 25
      src/views/distribution/inventory/CreateOrder.vue
  2. 27
      src/views/waybill/CreateZeroOrder.vue

25
src/views/distribution/inventory/CreateOrder.vue

@ -2513,6 +2513,14 @@ const handleChooseShipper = (column, prop, order) => {
details.query.shipperName = column.linkMan;
details.query.shipperMobile = column.linkPhone;
//
const _departure = [];
if (column.provinceId) _departure[0] = column.provinceId;
if (column.cityId) _departure[1] = column.cityId;
if (column.areaId) _departure[2] = column.areaId;
if (_departure.length > 0) details.query.departure = _departure;
handleFindClientInfo('shipper');
handleFindClientInfo('shipperName');
handleFindClientInfo('shipperMobile');
@ -2528,6 +2536,23 @@ const handleChooseConsigner = (column, prop, order) => {
details.query.consigneeName = column.linkMan;
details.query.consigneeMobile = column.linkPhone;
//
if (column.destinationWarehouseId) {
details.query.destinationWarehouseId = column.destinationWarehouseId;
details.query.destinationWarehouseName = column.destinationWarehouseName;
}
//
if (column.defaultDeliveryWay) details.query.deliveryWay = column.defaultDeliveryWay;
//
const _destination = [];
if (column.provinceId) _destination[0] = column.provinceId;
if (column.cityId) _destination[1] = column.cityId;
if (column.areaId) _destination[2] = column.areaId;
if (_destination.length > 0) details.query.destination = _destination;
handleFindClientInfo('consignee');
handleFindClientInfo('consigneeName');
handleFindClientInfo('consigneeMobile');

27
src/views/waybill/CreateZeroOrder.vue

@ -288,7 +288,7 @@
<el-table
:data="details.consigneeNameOptions"
style="width: 100%"
@@row-click="
@row-click="
(column, prop, order) => {
handleChooseConsigner(column, prop, order);
}
@ -2062,6 +2062,14 @@ const handleChooseShipper = (column, prop, order) => {
details.query.shipperName = column.linkMan;
details.query.shipperMobile = column.linkPhone;
//
const _departure = [];
if (column.provinceId) _departure[0] = column.provinceId;
if (column.cityId) _departure[1] = column.cityId;
if (column.areaId) _departure[2] = column.areaId;
if (_departure.length > 0) details.query.departure = _departure;
handleFindClientInfo('shipper');
handleFindClientInfo('shipperName');
handleFindClientInfo('shipperMobile');
@ -2077,6 +2085,23 @@ const handleChooseConsigner = (column, prop, order) => {
details.query.consigneeName = column.linkMan;
details.query.consigneeMobile = column.linkPhone;
//
if (column.destinationWarehouseId) {
details.query.destinationWarehouseId = column.destinationWarehouseId;
details.query.destinationWarehouseName = column.destinationWarehouseName;
}
//
if (column.defaultDeliveryWay) details.query.deliveryWay = column.defaultDeliveryWay;
//
const _destination = [];
if (column.provinceId) _destination[0] = column.provinceId;
if (column.cityId) _destination[1] = column.cityId;
if (column.areaId) _destination[2] = column.areaId;
if (_destination.length > 0) details.query.destination = _destination;
handleFindClientInfo('consignee');
handleFindClientInfo('consigneeName');
handleFindClientInfo('consigneeMobile');

Loading…
Cancel
Save