(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["checkorder~myorder"],{"0540":function(t,e,i){"use strict";var s=function(){var t=this,e=t._self._c;return e("van-popup",t._b({staticClass:"user-Verify_popup",attrs:{"get-container":"body",round:"",position:"bottom"},on:{"click-overlay":t.closePopup}},"van-popup",t.$attrs,!1),[e("div",{staticClass:"bg g_max"},[e("p",{staticClass:"title"},[t._v("自助核销")]),e("div",{staticClass:"bg-content"},[e("div",{staticClass:"sub-title"},[e("div",{attrs:{"data-flex":"dir:top"}},[e("span",{attrs:{"data-flex":"main:justify"}},[t._v(" 请确认本次到店使用的数量")]),t.followInfo.showStoreInfo&&t.followInfo.followStoreName?e("p",{staticStyle:{"margin-top":"8px"}},[t._v(" 门店: "+t._s(t.followInfo.followStoreName)+" ")]):t._e()])]),e("van-checkbox-group",{ref:"checkboxGroup",staticClass:"content-list",on:{change:t.onCheckChange},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},[t._l(t.dataList,(function(i,s){return e("van-checkbox",{key:s,ref:"checkboxes",refInFor:!0,attrs:{"checked-color":"#ff4444",name:i.orderDetailId}},[e("div",{staticClass:"item"},[e("div",{staticClass:"image"},[e("img",{attrs:{src:i.productCover,alt:""}})]),e("div",{staticClass:"content",on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"name ellipsis2"},[t._v(t._s(i.productName))]),e("div",{staticClass:"price"},[e("span",[i.productPrice>0?[e("span",{staticClass:"text"},[t._v("¥")]),t._v(" "+t._s(t.formatRmb(i.productPrice))+" ")]:t._e()],2),e("span",[e("van-stepper",{attrs:{max:i.validCount},model:{value:i.useAmount,callback:function(e){t.$set(i,"useAmount",e)},expression:"item.useAmount"}})],1)])])])])})),t.dataList.length?t._e():e("van-empty",{attrs:{"image-size":"120",color:"#000",description:"暂无可选商品"}})],2)],1),e("div",{staticClass:"submit-btn g_max"},[e("van-checkbox",{attrs:{"checked-color":"#ff4444"},on:{click:function(e){return t.checkAll(t.checked)}},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},[t._v("全选")]),e("div",{staticClass:"right-btn"},[e("button",{staticClass:"active",on:{click:t.add}},[t._v("确认提货")])])],1)])])},a=[],n=(i("14d9"),i("af38")),o=i("f036"),r=i("cb88"),c={props:{isCheckAll:{type:Boolean,default:!1},id:{type:String,default:""}},data(){return{refundWay:"",checkList:[],loading:!1,dataList:[],finished:!1,checked:!1,zbid:"",followInfo:{}}},async mounted(){this.getList(),this._getFollowInfo()},methods:{async _getFollowInfo(){try{const{dataObj:t}=await Object(r["V"])({zbId:this.$route.query.zbid||75999});this.followInfo=t||{}}catch(t){t&&this.$toast(t)}},async getList(){this.zbid=this.$route.query.zbid;const t={zbId:this.zbid};this.id,this.isCheckAll,this.isCheckAll&&(t.orderId=this.id);const e=await n["a"].getCanVerifyGoods(t);e&&e.dataObj&&(this.dataList=e.dataObj.map(t=>({...t,useAmount:this.$route.query.isSelfVerification||window.zbvd.isOpenSelfVerifyProduct?t.validCount:1})),this.isCheckAll&&this.checkAll(!0))},checkAll(t){this.checkList=t?this.dataList.map(t=>t.orderDetailId):[]},add(){if(0===this.checkList.length)return void this.$toast("请选择商品");const t={list:this.dataList,isSelfVerify:!0};let e=0;const i=[];this.dataList.forEach(t=>{this.checkList.includes(t.orderDetailId)&&(i.push(t),e+=t.useAmount)}),this.$dialog.confirm({title:"温馨提示",message:`将核销${this.checkList.length}种商品，共${e}件；确认核销后无法撤销`}).then(async()=>{try{t.list=i;const e=await Object(o["h"])(t);e&&e.dataObj?(this.$toast("核销成功！"),this.$emit("success",e.dataObj.verifyRecordId),this.closePopup()):this.$toast(e.msg||"核销失败")}catch(e){this.$toast(e.msg||"核销失败")}}).catch(()=>{})},closePopup(){this.checkList=[],this.$emit("close")},formatRmb(t,e=2){return Number(t/100).toFixed(e)},onCheckChange(t){this.checked=t.length===this.dataList.length}}},d=c,l=(i("cd67"),i("2877")),u=Object(l["a"])(d,s,a,!1,null,"4adb8e52",null);e["a"]=u.exports},"08b1":function(t,e,i){},"0ea7":function(t,e,i){},"12e5":function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return a}));const s={0:"order",1:"Received",2:"onway",3:"Signed",10:"Pending",412:"timeout",4:"user",202:"dispatching",211:"PendingGet",201:"到达派件城市",204:"到达转运中心",205:"到达派件网点",206:"寄件网点发件",301:"正常签收",302:"派件异常后最终签收",304:"代收签收",311:"快递柜或驿站签收",401:"发货无信息",402:"超时未签收",403:"超时未更新",404:"拒收(退件)",405:"派件异常",406:"退货签收",407:"退货未签收",413:"单号已拦截",414:"破损",415:"客户取消发货",416:"无法联系",417:"配送延迟",418:"快件取出",419:"重新派送",420:"收货地址不详细",421:"收件人电话错误",422:"错分件",423:"超区件",5:"转寄",6:"清关",601:"待清关",602:"清关中",603:"已清关",604:"清关异常"},a={order:0,Received:1,Pending:10,onway:2,dispatching:202,PendingGet:211,Signed:3,error:4,timeout:412}},2706:function(t,e,i){"use strict";i("08b1")},"50ca":function(t,e,i){"use strict";var s=function(){var t=this,e=t._self._c;return e("van-popup",t._g(t._b({directives:[{name:"show",rawName:"v-show",value:!t.isCwxKfCode,expression:"!isCwxKfCode"}],staticClass:"private-domain-traffic__popup",attrs:{round:"","get-container":"body",position:"bottom",duration:t.isJumpLink?"1000":""},on:{open:t.open}},"van-popup",t.$attrs,!1),t.$listeners),[e("van-image",{staticClass:"close-box",attrs:{width:"20px",height:"20px",src:"https://static1.weizan.cn/zhibo/static/img/live/private-domain/traffic/close.png"},on:{click:function(e){return t.$emit("input",!1)}}}),e("private-domain-traffic",{attrs:{setting:t.setting}})],1)},a=[],n=i("cf2c"),o={name:"Popup",components:{PrivateDomainTraffic:n["a"]},props:{setting:{type:Object}},computed:{isJumpLink(){return"jump_link"==this.setting.qrCodeType},isCwxKfCode(){return"cwx_kf_code"==this.setting.qrCodeType}},methods:{open(){(this.isJumpLink||this.isCwxKfCode)&&(window.location.href=this.setting.qrCodeUrl)}}},r=o,c=(i("e8cd"),i("2877")),d=Object(c["a"])(r,s,a,!1,null,"e4b6659a",null);e["a"]=d.exports},"537e":function(t,e,i){"use strict";i("619a")},"619a":function(t,e,i){},"75a4":function(t,e,i){"use strict";var s=function(){var t=this,e=t._self._c;return e("van-dialog",t._g(t._b({staticClass:"qrCodeDialog",attrs:{"confirm-button-text":"关闭","show-confirm-button":!1}},"van-dialog",t.$attrs,!1),t.$listeners),[t.setting&&t.setting.title?e("h2",{staticClass:"qr-title"},[t._v(" "+t._s(t.setting.title)+" ")]):t._e(),e("div",{staticClass:"qr-code-box"},[t.setting&&t.setting.qrCodeUrl?e("img",{staticClass:"qr-code",attrs:{src:t.setting.qrCodeUrl,alt:""}}):t._e()]),t.setting&&t.setting.desc?e("p",{staticClass:"qr-desc"},[t._v(t._s(t.setting.desc))]):t._e(),t.setting&&t.setting.contactPhone?e("div",{staticClass:"contact-box"},[e("span",{staticClass:"label"},[t._v("联系方式：")]),t._v(t._s(t.setting.contactPhone)+" ")]):t._e(),e("div",{staticClass:"popup-line"}),e("img",{staticClass:"popup-closed",attrs:{src:"https://static1.weizan.cn/zhibo/static/img/live/drainset/drain-close.png"},on:{click:function(e){return e.stopPropagation(),t.$emit("input",!1)}}})])},a=[],n={name:"DrainSetPopup",props:{setting:Object},data(){return{}},methods:{}},o=n,r=(i("a07e"),i("2877")),c=Object(r["a"])(o,s,a,!1,null,"3040030f",null);e["a"]=c.exports},7914:function(t,e,i){},7918:function(t,e,i){"use strict";function s(t,e,i){let s={type:"VZAN_IFRAME_PAYMENT",options:{url:t,params:e}};function a({data:t}){"VZAN_IFRAME_PAYMENT_CALLBACK"===t.type&&i(t.data)}return window.parent.postMessage(s,"*"),window.addEventListener("message",a,!1),function(){window.removeEventListener("message",a,!1)}}i.d(e,"a",(function(){return s}))},9137:function(t,e,i){"use strict";var s=function(){var t=this,e=t._self._c;return e("van-popup",{class:["de_popop",t.fromList&&!t.isMiniProgram?"list":""],style:{maxHeight:"85%",minHeight:"30%"},attrs:{round:"",position:"bottom",id:t.fromList?"dePopop":"","lock-scroll":!0},on:{open:t.open,close:t.close},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("div",{staticClass:"content"},[e("div",{staticClass:"de_popop__header"},[t._v("详细信息")]),t.deliveryPackages&&t.deliveryPackages.length?[e("van-tabs",{key:t.currentIndex,class:t.deliveryPackages&&t.deliveryPackages.length<2?"no_padding":"",attrs:{"line-width":0,active:t.currentIndex},on:{click:t.changeTab}},t._l(t.deliveryPackages,(function(t,i){return e("van-tab",{key:i+1,attrs:{"title-active-color":"#202124",title:"包裹 "+(i+1)}})})),1)]:t._e(),e("div",{class:["de_popop__main",t.deliveryPackages&&t.deliveryPackages.length<2?"no_margin":""]},[t.shipperInfo&&t.shipperInfo.deliveryNo?e("div",{staticClass:"d-company",attrs:{"data-flex":"main:justify"}},[e("span",[t._v(t._s(t.shipperInfo.deliveryName)+" "),e("span",{ref:"OrdertradeNo"},[t._v(t._s(t.shipperInfo.deliveryNo))])]),e("a",{staticClass:"copy",on:{click:function(e){return t.onCopy()}}},[t._v(" 复制 ")])]):t._e(),e("van-steps",{attrs:{direction:"vertical"}},[t.logisticsInfo&&t.logisticsInfo.traces&&t.logisticsInfo.traces.length?t._l(t.logisticsInfo.traces,(function(i,s){return e("van-step",{key:s,class:t.judgeClass(i.action,s)},[e("div",{attrs:{"data-flex":"cross:center main:justify"}},[e("h3",[t.judgeTitle(i.action,i.actionText,s)?e("span",{staticClass:"title"},[t._v(t._s(t.judgeTitle(i.action,i.actionText,s)))]):t._e(),e("span",{staticClass:"font-gray date"},[t._v(t._s(i.acceptTime))])])]),e("p",{staticClass:"font-gray mt10 desc"},[t._v(" "+t._s(i.acceptStation)+" ")])])})):[e("van-step",{staticClass:"null"},[e("div",{attrs:{"data-flex":"cross:center main:justify"}},[e("h3",[e("span",{staticClass:"title"},[t._v("无物流信息")])])]),e("p",{staticClass:"font-gray mt10 desc"},[t._v(" 抱歉，未查询到物流信息，暂无法查看 ")])])]],2),e("productInfo",{attrs:{destinationInfo:t.address}})],1)],2),t.deliveryPackages&&t.deliveryPackages.length>=2?e("div",{class:["bottom-btn",t.fromList?"list":""]},[e("van-button",{class:[0==t.currentIndex?"":"active"],attrs:{disabled:0==t.currentIndex},on:{click:function(e){return t.changeCode("prev",t.currentIndex)}}},[t._v("上一个")]),e("van-button",{class:[t.currentIndex==t.deliveryPackages.length-1?"":"active"],attrs:{disabled:t.currentIndex==t.deliveryPackages.length-1},on:{click:function(e){return t.changeCode("next",t.currentIndex)}}},[t._v("下一个")])],1):t._e()])},a=[],n=i("fa7d"),o=i("c1df"),r=i.n(o),c=i("2f62"),d=i("af38"),l=i("12e5"),u=function(){var t=this,e=t._self._c;return t.destinationInfo?e("div",{staticClass:"user-info"},[e("div",{attrs:{"data-flex":""}},[e("span",{staticClass:"u_icon"}),e("span",[t._v(t._s(t.destinationInfo.name)+"，"+t._s(t.destinationInfo.phone)+"，"+t._s(t.destinationInfo.address))])])]):t._e()},p=[],h={props:{destinationInfo:{type:Object,default:null}}},v=h,f=(i("2706"),i("2877")),g=Object(f["a"])(v,u,p,!1,null,"f7a46e54",null),m=g.exports;let b=0;var y={name:"DeliveryPopup",components:{productInfo:m},props:{details:{type:Object},deliveryId:{type:[String,Number]},visible:{type:Boolean},address:{type:Object},fromList:{type:Boolean}},data(){return{DELIVERY_TYPE_ENUM:l["b"],DELIVERY_TYPE:l["a"],onway_index:0,currentIndex:0,deliveryNo:"",deliveryData:{}}},computed:{...Object(c["e"])(["isMiniProgram"]),show:{get(){return this.visible},set(t){this.$emit("update:visible",t)}},logisticsInfo(){return this.deliveryData.logisticsInfo||{}},shipperInfo(){return this.deliveryData.shipperInfo||{}},deliveryPackages(){return this.details.deliveryPackages},judgeClass(){return(t,e)=>{let i="",s=b;if(t[0]==l["b"].onway)switch(Number(t)){case l["b"].PendingGet:i="pendingGet";break;case l["b"].dispatching:s=e+1,i="dispatching";break;default:t[0]==l["b"].onway&&(i=s==e?"onway":"default");break}else t[0]==l["b"].Received?i="received":t[0]==l["b"].Signed?i="signed":t[0]==l["b"].error&&(i=t==l["b"].timeout?"pendingGet":"null");return s>0&&(b=s),i}}},watch:{deliveryData:{handler(t){var e;t&&(this.deliveryNo=null===(e=t.shipperInfo)||void 0===e?void 0:e.deliveryNo)},immediate:!0}},methods:{copyText:n["h"],onCopy(){Object(n["h"])(this.shipperInfo.deliveryNo),this.$toast("复制成功")},open(){this.isMiniProgram,this.deliveryId&&(this.currentIndex=this.deliveryPackages.findIndex(t=>t.deliveryNo==this.deliveryId),this.getOrderDelivery(this.deliveryId));let t=document.getElementById("dePopop");if(this.isMiniProgram)t.style.bottom="0px";else{let e=document.getElementsByClassName("navigation")[0],i=e?e.offsetHeight:62;t=document.getElementById("dePopop"),t&&(t.style.bottom=i+"px")}},close(){this.currentIndex=0},changeTab(t){this.currentIndex=t,this.deliveryNo=this.deliveryPackages[t].deliveryNo,this.deliveryNo?this.getOrderDelivery(this.deliveryNo):this.deliveryData={}},changeCode(t,e){var i,s;"prev"==t?(this.deliveryNo=null===(i=this.deliveryPackages[e-1])||void 0===i?void 0:i.deliveryNo,this.currentIndex=e>0?e-1:0):(this.deliveryNo=null===(s=this.deliveryPackages[e+1])||void 0===s?void 0:s.deliveryNo,this.currentIndex=e+1);this.deliveryNo?this.getOrderDelivery(this.deliveryNo):this.deliveryData={}},judgeTitle(t,e,i){let s="",a=b;switch(t[0]==l["b"].Signed&&(s="已签收"),Number(t)){case l["b"].timeout:case l["b"].PendingGet:s="待取件";break;case l["b"].dispatching:a=i+1,s="派送中";break;default:s=t[0]==l["b"].onway?a==i?"运输中":"":e;break}return a>0&&(b=a),s},async getOrderDelivery(t){try{const e=await d["a"].getorderlogisticsquery({orderId:this.details.id,dtYear:r()(this.details.createTime).year(),deliveryNo:t});e&&e.dataObj&&(this.endAddr=e.dataObj.destinationInfo,this.deliveryData=e.dataObj)}catch(e){this.$toast("暂无物流信息")}}}},_=y,k=(i("537e"),Object(f["a"])(_,s,a,!1,null,"4cd090c6",null));e["a"]=k.exports},a07e:function(t,e,i){"use strict";i("0ea7")},b4bc:function(t,e,i){"use strict";var s=i("6084");e["a"]={postSaveOrUpdateDrainSet:t=>Object(s["c"])("/marketing/wx/v1/public/private_domain/drainage/topic/save_or_update",t,{allResolve:!0}),postDrainTopicDetail:t=>Object(s["c"])("/marketing/wx/v1/public/private_domain/drainage/topic/detail",t,!1,{allResolve:!0})}},b8fe:function(t,e,i){},cd67:function(t,e,i){"use strict";i("b8fe")},e8cd:function(t,e,i){"use strict";i("7914")}}]);