徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
7.5 KiB

4 months ago
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/delivery/index"],{1384:function(e,t,i){},"2ba5":function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){}));var r=function(){var e=this.$createElement,t=(this._self._c,this.logistics.length),i=t>0&&2==this.curExpress?this.expTemp.length:null,r=this.postPeople.length;this.$mp.data=Object.assign({},{$root:{g0:t,g1:i,g2:r}})},s=[]},"32fa":function(e,t,i){"use strict";(function(e){var r=i("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(i("7eb4")),n=r(i("ee10")),o=i("e727"),a={name:"GoodsDeliver",components:{splitOrder:function(){i.e("components/splitOrder/index").then(function(){return resolve(i("b530"))}.bind(null,i)).catch(i.oe)}},props:{},data:function(){return{types:[{type:"express",title:"发货",key:1,show:!0},{type:"send",title:"送货",key:2,show:!0},{type:"fictitious",title:"无需物流",key:3,show:!0}],expressType:[{title:"手动填写",key:1},{title:"电子面单打印",key:2}],orderGoods:[{title:"开启",key:1},{title:"关闭",key:0}],curExpress:1,active:0,order_id:"",delivery:[],logistics:[],delivery_type:"1",delivery_name:"",delivery_id:"",seIndex:0,expIndex:0,expTemp:[],to_name:"",to_tel:"",to_addr:"",postPeople:[],postIndex:0,fictitious_content:"",listId:0,curGoods:0,splitGoods:[],cartIds:[],totalNum:0,productType:0,storeNum:1}},watch:{"$route.params.oid":function(e){void 0!=e&&(this.order_id=e,this.getIndex())}},onLoad:function(e){if(this.storeNum=parseInt(e.storeNum),this.order_id=e.id,this.listId=e.listId,this.totalNum=e.totalNum,this.comeType=e.comeType,this.productType=e.productType,3==this.productType){for(var t=0;t<this.types.length;t++)this.types[t].show=2==t;this.delivery_type=3,this.active=2}8!=e.orderStatus&&4!=e.orderStatus&&9!=e.orderStatus||(this.curGoods=1,this.orderGoods.pop(),this.splitList()),this.getIndex(),this.getLogistics(),this.orderDeliveryInfo(),this.geTorderOrderDelivery()},methods:{getList:function(e){this.splitGoods=e;var t=[];e.forEach((function(e){if(e.checked){var i={cart_id:e.cart_id,cart_num:e.surplus_num};t.push(i)}})),this.cartIds=t},splitList:function(){var e=this,t="";t=this.storeNum?o.orderSplitInfo:o.storeOrderSplitInfo,t(this.listId).then((function(t){var i=t.data;i.forEach((function(e){e.checked=!1,e.numShow=e.surplus_num})),e.splitGoods=i})).catch((function(t){return e.$util.Tips({title:t})}))},changeGoods:function(){this.curGoods=this.curGoods?0:1,this.curGoods&&this.splitList()},scanCode:function(){var t=this;e.scanCode({scanType:["barCode"],success:function(e){t.delivery_id=e.result}})},previewImage:function(){e.previewImage({urls:[this.expTemp[this.expIndex].pic],success:function(){},fail:function(e){}})},geTorderOrderDelivery:function(){var e=this,t="";t=o.orderOrderDelivery,t().then((function(t){e.postPeople=t.data}))},bindPostChange:function(e){this.postIndex=e.detail.value},changeExpTpe:function(e,t){this.curExpress=e.key,this.getLogistics(t||"")},changeType:function(e,t){this.active=t,this.delivery_type=e.key},getIndex:function(){var e=this,t="";t=o.getAdminOrderDelivery,t(e.order_id).then((function(t){e.delivery=t.data}),(function(t){e.$util.Tips({title:t})}))},getLogistics:function(e){var t=this;(0,o.getLogistics)({status:e}).then((function(e){t.logistics=e.data,t.getExpTemp(e.data[0].code)}),(function(e){t.$util.Tips({title:e})}))},saveInfo:function(){var e=this;return(0,n.default)(s.default.mark((function t(){var i,r,n,o,a,d,u;return s.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=e,r=i.delivery_type,i.logistics[i.seIndex].name,n=i.delivery_id,i.delivery_name,o={},o.delivery_type=r,o.delivery_code=i.logistics[i.seIndex].code,o.delivery_name=i.logistics[i.seIndex].name,o.type=i.active+1,1!=r||1!=e.curExpress){t.next=11;break}if(n){t.next=8;break}return t.abrupt("return",e.$util.Tips({title:"请填写快递单号"}));case 8:o.express_record_type=i.curExpress,o.delivery_id=n,i.curGoods?i.setSplitInfo(o):i.setInfo(o);case 11:if(1!=r||2!=e.