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
30 KiB
1 line
30 KiB
12 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-admin-delivery-index"],{3222:function(e,t,i){"use strict";i.r(t);var r=i("77b7"),n=i.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(a);t["default"]=n.a},"3c86":function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.checkPhone=function(e){return!!/^1(3|4|5|6|7|8|9)\d{9}$/.test(e)},t.isEmailAvailable=function(e){return!!/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(e)},t.isMoney=function(e){return!!/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(e)},i("ac1f"),i("00b4")},"475c":function(e,t,i){"use strict";var r=i("5b68"),n=i.n(r);n.a},"5b68":function(e,t,i){var r=i("b096");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=i("4f06").default;n("5d74d71a",r,!0,{sourceMap:!1,shadowMode:!1})},"77b7":function(e,t,i){"use strict";i("7a82");var r=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(i("c7eb")),a=r(i("1da1"));i("14d9"),i("d3b7"),i("159b"),i("d81d"),i("ac1f"),i("00b4"),i("1276");var o=i("ed0f"),s=i("26cb"),d=i("a60b"),u=(i("3c86"),i("8342")),c={name:"GoodsDeliver",components:{},props:{},data:function(){return{types:[{type:1,title:"发货"},{type:2,title:"送货"},{type:3,title:"无需物流"}],splitList:[{title:"开启",key:1},{title:"关闭",key:0}],curSplit:0,curExpress:1,active:0,order_id:"",delivery:{user:{}},logistics:[],delivery_type:1,delivery_name:"",to_phone:"",to_name:"",remark:"",mark:"",cargo_weight:0,delivery_id:"",mer_config_temp_id:"",mer_from_com:"",seIndex:0,storeIndex:0,merId:"",expIndex:0,expTemp:[],from_name:"",from_tel:"",from_addr:"",fictitious_content:"",isTemp:!1,isDelivery:!1,is_virtual:0,splitProducts:[],storeList:[],activity_type:0,domain:u.HTTP_REQUEST_URL,isWeixin:this.$wechat.isWeixin()}},watch:{"$route.params.oid":function(e){void 0!=e&&(this.order_id=e,this.getIndex())}},computed:(0,s.mapGetters)(["viewColor"]),onLoad:function(e){this.order_id=e.id,this.merId=e.merId,this.getIndex(),this.expressList(),this.orderDeliveryInfo()},methods:{scanCode:function(){this.$wechat.isWeixin()&&this.$wechat.wechatEvevt("scanQRCode",{needResult:1,scanType:["barCode"]}).then((function(e){var t=e.resultStr.split(",");that.delivery_id=1==t.length?t[0]:t[1]}))},previewImage:function(){uni.previewImage({urls:[this.expTemp[this.expIndex].pic],success:function(){},fail:function(e){}})},isOpenDeliveryTemp:function(e){var t=this;(0,o.getTempAndDelivery)(t.merId).then((function(i){1==e?(t.delivery_type=3,t.types=[{type:3,title:"虚拟发货"}]):(1==i.data.crmeb_serve_dump&&t.types.push({type:4,title:"电子面单"}),1==i.data.delivery_status&&t.types.push({type:5,title:"同城配送"}))}),(function(e){t.$util.Tips({title:e})}))},getDump:function(){var e=this;e.expTemp.forEach((function(t,i){t.temp_id!=e.mer_config_temp_id||(e.expIndex=i)}))},getStoreList:function(){var e=this;(0,o.getDeliveryStoreLst)(this.merId).then((function(t){e.storeList=t.data})).catch((function(t){e.$util.Tips({title:t})}))},changeType:function(e,t){this.active=t,this.delivery_type=e.type,this.delivery_name="",this.delivery_id="",5==e.type&&this.getStoreList()},changeSplit:function(e,t){this.curSplit=e.key},getIndex:function(){var e=this;(0,o.getAdminOrderDetail)(e.merId,e.order_id).then((function(t){t.data.orderProduct.forEach((function(e,t){e.checked=!0,e.split_num=e.refund_num})),e.delivery=t.data,e.activity_type=t.data.activity_type,e.is_virtual=t.data.is_virtual,e.isOpenDeliveryTemp(e.is_virtual)}),(function(t){e.$util.Tips({title:t})}))},expressList:function(){var e=this;(0,d.expressList)().then((function(t){e.logistics=t.data,e.getExpTemp(t.data[0].value)}),(function(t){e.$util.Tips({title:t})}))},checkedChange:function(e){e.checked=!e.checked},getSplitProduct:function(){var e=[];return this.delivery.orderProduct.map((function(t){t.checked&&e.push({id:t.order_product_id,num:t.split_num})})),e},subCart:function(e)
|