| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b91d9af","chunk-a24a24f0","chunk-c00576de","chunk-2d22ce36","chunk-2d22891e"],{1383:function(e,t,i){"use strict";i("788d")},"1c1d":function(e,t,i){},"27c1":function(e,t,i){"use strict";i("1c1d")},3713:function(e,t,i){"use strict";i("7701")},"572d":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"card-name-module"},[t("div",{staticClass:"app-size-30 app-color-0"},[e._v(e._s(e.info.receiveUserName))]),t("div",[e._v(e._s(e.info.receiveMobile))]),t("div",[e._v(e._s(e.info.receiveFullAddress)+"("+e._s(e.info.showAddress)+")")]),e._m(0)])},s=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"card-tag"},[t("img",{attrs:{src:i("da6a"),alt:""}})])}],o={name:"card-name-module",props:{info:{type:Object,default:()=>{}}},data(){return{}}},a=o,l=(i("1383"),i("1805")),n=Object(l["a"])(a,r,s,!1,null,"34d73edc",null);t["default"]=n.exports},7701:function(e,t,i){},"788d":function(e,t,i){},da6a:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABiBAMAAABZixs9AAAAKlBMVEVHcEz/KED/KEL/KUL/J0L/KEL//f3/5ef/o6r/ZnT/hI7/QVX/xcn/sbecenlCAAAABXRSTlMAIN+Qj+jKzykAAAJ1SURBVFjD7dbNbtNAEAfw6SvwDtx5BN4BVvgjvc464BxrF5qrEwm1RydVyzWRqNSjieCebVVxhYqivgvr9a5jh+KdubOnJNI/P8/sl+GZ+Pd4DU+Ng+cDkZdPRv4j/REUXGR2xEQCWYmvLGR2IuKsYiA1sUk4lRiiYFTiiJCMWCJWJRFxxFyWNCRUDTHHH/aXVx5khCtNnCvE0v30YhiJVXqZnSH+mo0FEQmVTILvExGQERFhIUYaoCN1oxZ6KW6oiJnuWaEp9Y6GmBWlZ+9nondJRUCaFZU3Exi+pyC3t6UI5Y2ZwKgtZQgJEfMM5W/zZTHeFH7k+gZlurKTg9mWNCeHb92ndUqbkzYRZ6RKOokoXY9JiE2Ep3kZ0pA6McpzxGndrhGhXYd63pc68WDapY78SDQxfarXSyzWsvJXEn82f14/zbxSxHbpAmoiwAtJbJcl9La6JLarJu7s1l2cUBBNRDhtdm5E2oxvdBWfEI9XvSN5sF2mCqmXft4NwXC7dBXn9xn6E227duePJ+GQ3Z71Jjqri5hwq8stKHsslQMJi9R3T9Ee4WbHwzCiL59lW/wmHXqqFpni1i2z5lABH4If2ttxIoYTFvnmAkuLgQ9x49RdcuBFxPTj1dW1wuNU+BJuTrAe8m409icscnH2+PhQii9bf2LvRaIgJHpvK0oQEj1EkhIdpDnyvIkOEiS0xA5prwegIuTE35cWUBF6Yu/SIiTaSyshJywSpeSEe5GQ9MTeCzeQEU6ijwAbATYCbATYCLARYCPARoCNABsBNgJsBNgIsBFgI8BGgI0AGwE2AmwE2AiwEWAjwEaAjQAbYScO/gANPL52EWXAdQAAAABJRU5ErkJggg=="},f152:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sel-order"},[t("el-drawer",{attrs:{title:"发货管理",visible:e.showShipManage,size:"440px","before-close":e.closeFn,"custom-class":"ship-draw-wrap"},on:{"update:visible":function(t){e.showShipManage=t}}},[t("div",{staticClass:"ship-manage-wrap"},[t("div",{staticClass:"order-info-wrap"},[t("div",{staticClass:"order-info-left"},[t("div",{staticClass:"info-list"},[t("div",{staticClass:"label"},[e._v("订单号")]),t("div",{staticClass:"val"},[e._v(e._s(e.orderData.orderSn))])]),t("div",{staticClass:"info-list"},[t("div",{staticClass:"label"},[e._v("下单客户")]),t("div",{staticClass:"val"},[e._v(e._s(e.orderData.customName))])]),t("div",{staticClass:"info-list"},[t("div",{staticClass:"label"},[e._v("下单时间")]),t("div",{staticClass:"val"},[e._v(e._s(e.orderData.addTime))])]),t("div",{staticClass:"info-list"},[t("div",{staticClass:"label"},[e._v("金额")]),t("div",{staticClass:"val"},[e._v(e._s(e.orderData.actPrice))])])])]),t("el-timeline",e._l(e.shipData,(function(i,r){return t("el-timeline-item",{key:r},[t("div",{staticClass:"title-wrap"},[t("div",{staticClass:"title"},[e._v(e._s(i.actionName))]),0!=i.finishTime?t("div",{staticClass:"time"},[e._v(e._s(i.finishTime))]):e._e()]),t("div",{staticClass:"content-wrap"},["制单"==i.actionName?[e.$util.isEmpty(i.receive)&&0==r?t("div",[t("el-button",{attrs:{type:"primary"},on:{click:e.fillFormFn}},[e._v("填写")]),t("el-button",{attrs:{type:"primary"},on:{click:e.hasDeliver}},[e._v("跳过")])],1):t("div",[e.$util.isEmpty(i.receive)?t("span",[e._v("已手写")]):t("card-name",{attrs:{info:i.receive}}),e.$util.isEmpty(i.receive)?e._e():t("div",{staticStyle:{"margin-top":"10px"}},[0==e.orderData.printStatus?t("el-button",{attrs:{size:"mini"},on:{click:e.printOrderFn}},[e._v("打印")]):t("el-button",{attrs:{size:"mini"},on:{click:e.rePrintOrderFn}},[e._v("重打")])],1)],1)]:e._e(),"发货"==i.actionName?[t("div",[e.$util.isEmpty(i.sendInfo)?e._e():[t("div",{staticClass:"label-list"},[e._v("配送:"+e._s(i.sendInfo.sideName))]),t("div",{staticClass:"label-list"},[e._v("距离:"+e._s(i.sendInfo.distance)+"km")]),t("div",{staticClass:"label-list"},[e._v("运费:¥"+e._s(i.sendInfo.cost))]),t("div",{staticClass:"label-list"},[e._v("小费:¥"+e._s(i.sendInfo.tip))]),e.orderData.expressProgress?t("div",{staticClass:"label-list"},[e._v("状态:"+e._s(e.orderData.expressProgress.progressName))]):e._e(),3==e.orderData.status?t("el-popover",{attrs:{placement:"top",width:"160"},model:{value:e.sendMySelfConfirm,callback:function(t){e.sendMySelfConfirm=t},expression:"sendMySelfConfirm"}},[t("p",[e._v("快递送到后会自动确定,需要自己确认?")]),t("div",{staticStyle:{"text-align":"right",margin:"0"}},[t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e.sendMySelfConfirm=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.affirmDeliver}},[e._v("确定")])],1),t("el-button",{attrs:{slot:"reference",type:"primary"},slot:"reference"},[e._v("确认送达")])],1):e._e()],3==e.orderData.sendType?[t("div",{staticClass:"label-list"},[t("div",{staticStyle:{"margin-bottom":"20px"}},[e._v("本店送")]),3==e.orderData.status?t("el-popover",{attrs:{placement:"top",width:"160"},model:{value:e.sendMySelfConfirm,callback:function(t){e.sendMySelfConfirm=t},expression:"sendMySelfConfirm"}},[t("p",[e._v("确认送到了?")]),t("div",{staticStyle:{"text-align":"right",margin:"0"}},[t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e.sendMySelfConfirm=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.affirmDeliver}},[e._v("确定")])],1),t("el-button",{attrs:{slot:"reference",type:"primary"},slot:"reference"},[e._v("确认送达")])],1):e._e()],1)]:e._e(),2==e.orderData.status?[t("div",{staticClass:"label-list"},[t("el-popover",{attrs:{placement:"top",width:"160"},model:{value:e.sendMySelfConfirm,callback:function(t){e.sendMySelfConfirm=t},expression:"sendMySelfConfirm"}},[t("p",[e._v("确认本店送?")]),t("div",{staticStyle:{"text-align":"right",margin:"0"}},[t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e.sendMySelfConfirm=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.sendMySelfFn}},[e._v("确定")])],1),t("el-button",{attrs:{slot:"reference",type:"primary"},slot:"reference"},[e._v("本店送")])],1),t("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:e.fillFormFn}},[e._v("发快递")])],1)]:e._e()],2)]:e._e(),"送达"==i.actionName?[0==i.finishTime?t("div",[3==e.orderData.sendType?[t("el-popover",{attrs:{placement:"top",width:"210"},model:{value:e.confirmSendVisit,callback:function(t){e.confirmSendVisit=t},expression:"confirmSendVisit"}},[t("p",[e._v("此订单已由快递配送,送到会自动确认,确定要手动操作?")]),t("div",{staticStyle:{"text-align":"right",margin:"0"}},[t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e.confirmSendVisit=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.orderReachFn}},[e._v("确定")])],1),t("el-button",{attrs:{slot:"reference",size:"small",type:"primary"},slot:"reference"},[e._v("确认")])],1)]:[t("el-popover",{attrs:{placement:"top",width:"160"},model:{value:e.confirmSendVisit,callback:function(t){e.confirmSendVisit=t},expression:"confirmSendVisit"}},[t("p",[e._v("确认已送达?")]),t("div",{staticStyle:{"text-align":"right",margin:"0"}},[t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e.confirmSendVisit=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.orderReachFn}},[e._v("确定")])],1),t("el-button",{attrs:{slot:"reference",size:"small",type:"primary"},slot:"reference"},[e._v("确认")])],1),t("div",{staticClass:"prompt-text"},[e._v("确认后会通知客户")])]],2):e._e()]:e._e(),"完成"==i.actionName?[e.$util.isEmpty(i.classify)?t("div",[t("el-button",{attrs:{type:"primary"},on:{click:e.orderClassFn}},[e._v("订单分类")])],1):t("div",[t("div",{staticClass:"label-list"},[e._v("订单分类:"+e._s(i.classify.category))]),t("div",{staticClass:"label-list"},[e._v("用途:"+e._s(i.classify.usage))])])]:e._e()],2)])})),1)],1)]),t("el-dialog",{attrs:{title:"确认客户地址",visible:e.orderDialog,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.orderDialog=t}}},[t("div",{staticClass:"order-modal-content"},[t("el-form",{ref:"orderForm",staticClass:"demo-form",attrs:{model:e.orderForm,rules:e.ruleForm,"label-width":"100px"}},[t("div",{staticClass:"form-wrap"},[t("div",{staticClass:"form-left-wrap"},[t("el-form-item",{attrs:{label:"配送方",prop:"sendSide"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",size:"small"},on:{change:e.selectSendSide},model:{value:e.orderForm.sendSide,callback:function(t){e.$set(e.orderForm,"sendSide",t)},expression:"orderForm.sendSide"}},e._l(e.sendSideOpt,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"城市",prop:"receiveMobile"}},[t("el-input",{attrs:{disabled:!0,placeholder:"城市",size:"mini"},model:{value:e.orderForm.receiveCity,callback:function(t){e.$set(e.orderForm,"receiveCity",t)},expression:"orderForm.receiveCity"}})],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"客户名称",prop:"customName"}},[t("el-input",{attrs:{placeholder:"请填写",size:"mini"},model:{value:e.freightInfo.customName,callback:function(t){e.$set(e.freightInfo,"customName",t)},expression:"freightInfo.customName"}})],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"客户手机",prop:"customMobile"}},[t("el-input",{attrs:{placeholder:"请填写",size:"mini"},model:{value:e.freightInfo.customMobile,callback:function(t){e.$set(e.freightInfo,"customMobile",t)},expression:"freightInfo.customMobile"}})],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"详细地址",prop:"receiveAddress"}},[t("el-autocomplete",{staticStyle:{width:"100%"},attrs:{"fetch-suggestions":e.querySearchAsync,placeholder:"请输入地址搜索",size:"mini"},on:{select:e.addressFn},scopedSlots:e._u([{key:"default",fn:function({item:i}){return[t("p",{staticStyle:{"line-height":"30px"}},[e._v(e._s(i.title))]),t("p",{staticStyle:{"line-height":"20px","font-size":"12px",color:"#999"}},[e._v(e._s(i.address))])]}}]),model:{value:e.orderForm.receiveAddress,callback:function(t){e.$set(e.orderForm,"receiveAddress",t)},expression:"orderForm.receiveAddress"}})],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"门牌号",prop:"receiveFloor"}},[t("el-input",{attrs:{placeholder:"楼号门牌号(选填)",size:"mini"},model:{value:e.orderForm.receiveFloor,callback:function(t){e.$set(e.orderForm,"receiveFloor",t)},expression:"orderForm.receiveFloor"}})],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"发单时间",prop:"reachTime"}},[t("el-time-picker",{staticStyle:{width:"100%"},attrs:{format:"HH:mm","value-format":"HH:mm",placeholder:"默认立即发单",size:"mini"},on:{change:e.freight},model:{value:e.orderForm.reachTime,callback:function(t){e.$set(e.orderForm,"reachTime",t)},expression:"orderForm.reachTime"}})],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"运费",prop:"remark"}},[t("el-input",{attrs:{disabled:!0,placeholder:"",size:"mini"},model:{value:e.orderForm.sedCost,callback:function(t){e.$set(e.orderForm,"sedCost",t)},expression:"orderForm.sedCost"}})],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"备注",prop:"remark"}},[t("el-input",{attrs:{type:"textarea",placeholder:"",size:"mini"},model:{value:e.orderForm.remark,callback:function(t){e.$set(e.orderForm,"remark",t)},expression:"orderForm.remark"}})],1)],1)])])],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:e.resetForm}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submitOrderFn}},[e._v("确认")])],1)]),t("el-dialog",{attrs:{title:"请选择",visible:e.shipDialog,"close-on-click-modal":!1,width:"400px"},on:{"update:visible":function(t){e.shipDialog=t}}},[t("div",{staticClass:"ship-modal-content"},[t("el-form",{ref:"shipForm",staticClass:"demo-form",attrs:{model:e.shipForm,rules:e.shipRuleForm,"label-width":"100px"}},[[t("el-form-item",{attrs:{label:"配送时间",prop:"sendTime"}},[t("el-time-select",{staticStyle:{width:"100%"},attrs:{"picker-options":{start:"08:00",step:"00:10",end:"24:00"},placeholder:"请选择时间",size:"small"},model:{value:e.shipForm.sendTime,callback:function(t){e.$set(e.shipForm,"sendTime",t)},expression:"shipForm.sendTime"}})],1),t("el-form-item",{attrs:{label:"配送方",prop:"sendSide"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",size:"small"},model:{value:e.shipForm.sendSide,callback:function(t){e.$set(e.shipForm,"sendSide",t)},expression:"shipForm.sendSide"}},e._l(e.sendSideOpt,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)]],2)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:e.resetForm}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submitShipFn}},[e._v("确认")])],1)]),t("el-dialog",{attrs:{title:"订单分类",visible:e.categoryDialog,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(t){e.categoryDialog=t}}},[t("div",{staticClass:"category-dialog-wrap"},[t("el-form",{ref:"categoryForm",staticClass:"demo-form",attrs:{model:e.categoryForm,rules:e.categoryRule,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"选择分类",prop:"categoryId"}},[t("el-radio-group",{model:{value:e.categoryForm.categoryId,callback:function(t){e.$set(e.categoryForm,"categoryId",t)},expression:"categoryForm.categoryId"}},e._l(e.categoryData,(function(i,r){return t("el-radio",{key:r,attrs:{border:"",label:i.id,size:"small"}},[e._v(e._s(i.categoryName))])})),1)],1),t("el-form-item",{attrs:{label:"选择用途",prop:"usageId"}},[t("el-radio-group",{model:{value:e.categoryForm.usageId,callback:function(t){e.$set(e.categoryForm,"usageId",t)},expression:"categoryForm.usageId"}},e._l(e.usageData,(function(i,r){return t("el-radio",{key:r,attrs:{border:"",label:i.id,size:"small"}},[e._v(e._s(i.usageName))])})),1)],1)],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:e.resetForm}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.orderClassConfirmFn}},[e._v("确认")])],1)]),t("div",{staticClass:"print-html"},[t("table",{staticStyle:{border:"solid 1px black","border-collapse":"collapse"},attrs:{border:"1",width:"780"}},[t("tr",[t("td",{staticStyle:{padding:"10px",width:"100px"}},[e._v("配送时间:")]),t("td",{staticStyle:{"padding-left":"10px"},attrs:{colspan:"2"}},[e._v(e._s(e.deliver.data.reachDate))]),t("td",{staticStyle:{"padding-left":"10px",width:"100px"}},[e._v("订单号:")]),t("td",{staticStyle:{"padding-left":"10px"},attrs:{colspan:"2"}},[e._v(e._s(e.deliver.data.orderSn))])]),t("tr",[t("td",{staticStyle:{"padding-left":"10px",width:"100px"}},[e._v("收花人姓名:")]),t("td",{staticStyle:{"padding-left":"10px",width:"130px"}},[e._v(e._s(e.deliver.data.receiveUserName))]),t("td",{staticStyle:{"padding-left":"10px",width:"100px"}},[e._v("收花人电话:")]),t("td",{staticStyle:{"padding-left":"10px",width:"130px"}},[e._v(e._s(e.deliver.data.receiveMobile))]),t("td",{staticStyle:{"padding-left":"10px"},attrs:{colspan:"2",rowspan:"4"}},[t("div",{staticStyle:{"text-align":"center","padding-top":"1px"}},[t("p",[e._v(e._s(e.deliver.data.orderName))]),t("img",{staticClass:"cover",staticStyle:{width:"100px",height:"100px","margin-bottom":"20px"},attrs:{src:e.deliver.data.img,alt:""}})])])]),t("tr",[t("td",{staticStyle:{"padding-left":"10px",width:"100px"}},[e._v("收花人地址:")]),t("td",{staticStyle:{"padding-left":"10px"},attrs:{colspan:"3"}},[e._v(e._s(e.deliver.data.receiveFullAddress))])]),t("tr",[t("td",{staticStyle:{"padding-left":"10px",width:"100px"}},[e._v("祝福语:")]),t("td",{staticStyle:{"padding-left":"10px"},attrs:{colspan:"3"}},[e._v(e._s(e.deliver.data.cardInfo))])]),t("tr",[t("td",{staticStyle:{"padding-left":"10px",width:"100px"}},[e._v("订花人姓名:")]),t("td",{staticStyle:{"padding-left":"10px",width:"130px"}},[e._v(e._s(e.deliver.data.bookName))]),t("td",{staticStyle:{"padding-left":"10px",width:"100px"}},[e._v("订花人电话:")]),t("td",{staticStyle:{"padding-left":"10px",width:"130px"}},[e._v(e._s(e.deliver.data.bookMobile))])]),t("tr",[t("td",{staticStyle:{padding:"10px",width:"100px"}},[e._v("备注说明:")]),t("td",{staticStyle:{"padding-left":"10px"},attrs:{colspan:"5"}},[e._v(e._s(e.deliver.data.remark))])])])])],1)},s=[],o=(i("b138"),i("8f26"),i("963e"),i("5880")),a=i("572d"),l=i("f4c5"),n={name:"sel-order",components:{cardName:a["default"]},props:{id:String},data(){return{orderData:{},showShipManage:!1,shipData:[],relateData:{},confirmSendVisit:!1,orderDialog:!1,freightInfo:{id:"",floor:"",province:"",city:"",address:"",expressId:"",long:"",lat:"",customName:"",customMobile:"",sendTime:"",receiveUserName:"",receiveMobile:""},orderForm:{sendSide:"",sedCost:"",receiveUserName:"",receiveMobile:"",receiveProvince:"",receiveCity:"",receiveAddress:"",receiveFloor:"",receiveFullAddress:"",bookMobile:"",reachTime:"",reachPeriod:"0",needCard:"1",cardInfo:"",remark:"",anonymity:"0",latitude:0,longitude:0},addressArr:[],ruleForm:{},sendMySelfConfirm:!1,addressOptions:[],addressProps:{label:"name",value:"name",children:"children"},shipDialog:!1,shipForm:{sendType:"2",sendTime:"",sendSide:1},shipRuleForm:{},sendSideOpt:[{label:"达达配送",value:1}],categoryDialog:!1,categoryForm:{categoryId:"",usageId:""},categoryRule:{},deliver:{visible:!1,data:{}}}},computed:{...Object(o["mapGetters"])({categoryData:"category"}),...Object(o["mapGetters"])({usageData:"usage",shopInfo:"shopInfo"})},mounted(){this.freightInfo.expressId=this.sendSideOpt[0].value,this.orderForm.sendSide=this.sendSideOpt[0].label},methods:{selectSendSide(e){this.freightInfo.expressId=e,this.freight()},init(){this.getDet(),this.$service.order.orderRelate().then(e=>{this.relateData=e;let t=e.region,i=[];if(t.length>0)for(let o in t)if(i.push({id:t[o].id,name:t[o].name,children:[]}),t[o].children&&t[o].children.length>0)for(let e in t[o].children)i[o].children.push({id:t[o].children[e].id,name:t[o].children[e].name});this.addressOptions=i;let r=e.shop.province||"",s=e.shop.city||"";this.addressArr=[r,s],this.orderForm.receiveProvince=r,this.orderForm.receiveCity=s,this.orderForm.latitude=e.shop.shopLat||0,this.orderForm.longitude=e.shop.shopLong||0}),this.$service.order.info({id:this.id}).then(e=>{this.orderData=e})},getDet(){this.$service.single.orderSendDet({id:this.id}).then(e=>{this.shipData=e,this.showShipManage=!0})},querySearchAsync(e,t){return this.orderForm.receiveCity?e?void this.$service.single.mapSuggestion({region:this.orderForm.receiveCity,keyword:e}).then(e=>{let i=e.data;i=i.map(e=>(e.value=e.title,e)),t(i)}):(t([]),!1):(this.$message.error("请先选择收花人地址"),t([]),!1)},addressFn(e){this.orderForm.latitude=e.location.lat,this.orderForm.longitude=e.location.lng,this.orderForm.receiveAddress=e.title,this.orderForm.receiveFullAddress=e.address,this.freightInfo.address=e.address,this.freightInfo.long=e.location.lng,this.freightInfo.lat=e.location.lat,this.freight()},submitOrderFn(){if(this.$util.isEmpty(this.freightInfo.expressId))return void this.$message({message:"请选择配送方",type:"warning"});if(this.$util.isEmpty(this.orderForm.reachTime))return void this.$message({message:"请选择配时间",type:"warning"});let e={id:this.id,sendCost:this.orderForm.sedCost,expressId:this.freightInfo.expressId,sendTime:this.orderForm.reachTime,remark:this.orderForm.remark};this.$service.order.sendExpressage(e).then(e=>{this.init(),this.resetForm()})},handleChange(e){console.log("value",e),this.orderForm.receiveProvince=e[0],this.orderForm.receiveCity=e[1],this.orderForm.receiveAddress=e[0]+e[1]},resetForm(){try{this.$refs["orderForm"].resetFields()}catch(e){}try{this.$refs["shipForm"].resetFields()}catch(e){}try{this.$refs["categoryForm"].resetFields()}catch(e){}this.shipDialog=!1,this.categoryDialog=!1,this.orderDialog=!1},closeFn(){this.showShipManage=!1},hasDeliver(){this.$service.single.printOrder({id:this.id,option:1}).then(e=>{this.getDet(),this.$service.order.info({id:this.id}).then(e=>{this.orderData=e})})},async printOrderFn(){await this.$service.single.printOrder({id:this.id,option:2}),this.getDet(),this.$service.order.getDeliverDetail({id:this.id}).then(e=>{this.deliver.data=e,this.printOrder()})},rePrintOrderFn(){this.$service.order.getDeliverDetail({id:this.id}).then(e=>{this.deliver.data=e,this.printOrder()})},fillFormFn(){this.orderDialog=!0,this.freightInfo.id=this.id,this.$service.custom.clientInfo({id:this.orderData.customId}).then(e=>{this.orderForm.receiveCity=`${e.province}-${e.city}`,this.orderForm.receiveAddress=""+e.address,this.orderForm.receiveFloor=e.floor,this.freightInfo.customName=""+e.name,this.freightInfo.customMobile=""+e.mobile,this.freightInfo.province=e.province,this.freightInfo.city=e.city,this.freightInfo.address=e.address,this.freightInfo.long=e.long,this.freightInfo.lat=e.lat})},freight(){this.freightInfo.floor=this.orderForm.receiveFloor,this.freightInfo.sendTime=this.orderForm.reachTime,this.freightInfo.expressId&&!this.$util.isEmpty(this.freightInfo.sendTime)&&this.$service.order.freight(this.freightInfo).then(e=>{this.orderForm.sedCost=e.sedCost})},affirmDeliver(){this.$service.order.orderAffirmDeliver({id:this.id}).then(e=>{this.$message.success("已确认!"),this.$emit("song-success"),this.init(),this.resetForm(),this.sendMySelfConfirm=!1})},sendMySelfFn(){this.sendMySelfConfirm=!1,this.shipForm.sendType=2,this.$service.order.orderDeliver({id:this.id}).then(e=>{this.$message.success("已确认!"),this.$emit("song-success"),this.init(),this.resetForm(),this.sendMySelfConfirm=!1})},sendShipFn(){this.shipDialog=!0},submitShipFn(){return""==this.shipForm.sendTime?(this.$message.error("请选择时间"),!1):(this.$message.success("即将开通..."),!1)},orderReachFn(){this.$service.single.orderReach({id:this.id,option:1}).then(e=>{this.$message.success("已确认!"),this.getDet(),this.confirmSendVisit=!1,this.$set(this.orderData,"status","5"),this.$set(this.orderData,"currentFlow",this.orderData.totalFlow)})},orderClassFn(){this.categoryDialog=!0},orderClassConfirmFn(){if(!this.categoryForm.categoryId||!this.categoryForm.usageId)return this.$message.error("请先选择分类或者用途!"),!1;this.$service.single.orderClass({id:this.id,...this.categoryForm}).then(e=>{this.$message.success("订单分类成功!"),this.getDet(),this.resetForm()})},printOrder(){this.deliver.visible=!0,this.$nextTick(()=>{let e=Object(l["getLodop"])();e.PRINT_INIT("配送单"),e.SET_PRINT_STYLE("FontSize",12),e.ADD_PRINT_TEXT(470,10,350,200,"店铺地址:"+this.shopInfo.address),e.ADD_PRINT_TEXT(470,400,350,600,"电话:"+this.deliver.data.telephone),e.ADD_PRINT_TEXT(470,590,470,600,"制单时间:"+this.deliver.data.printTime),e.SET_PRINT_STYLE("FontSize",20),e.SET_PRINT_STYLE("Bold",1),e.ADD_PRINT_TEXT(150,10,790,30,this.shopInfo.name+"配送单"),e.SET_PRINT_STYLEA(0,"Alignment",2),e.SET_PRINT_STYLE("FontSize",12),e.ADD_PRINT_TEXT(160,500,100,20,"No "+this.deliver.data.sendNum),e.SET_PRINT_STYLEA(0,"Alignment",2),e.ADD_PRINT_HTM(200,10,790,600,document.querySelector(".print-html").innerHTML),e.PREVIEW()})}}},d=n,c=(i("3713"),i("27c1"),i("1805")),m=Object(c["a"])(d,r,s,!1,null,"0199ab9f",null);t["default"]=m.exports},f4c5:function(e,t,i){"use strict";var r,s,o;function a(){try{var e=navigator.userAgent;if(e.match(/Windows\sPhone/i))return!0;if(e.match(/iPhone|iPod|iPad/i))return!0;if(e.match(/Android/i))return!0;if(e.match(/Edge\D?\d+/i))return!0;var t=e.match(/Trident\D?\d+/i),i=e.match(/MSIE\D?\d+/i),r=e.match(/OPR\D?\d+/i),s=e.match(/Firefox\D?\d+/i),o=e.match(/x64/i);if(!t&&!i&&o)return!0;if(s){if(s=s[0].match(/\d+/),s[0]>=41||o)return!0}else if(r){if(r=r[0].match(/\d+/),r[0]>=32)return!0}else if(!t&&!i){var a=e.match(/Chrome\D?\d+/i);if(a&&(a=a[0].match(/\d+/),a[0]>=41))return!0}return!1}catch(l){return!0}}function l(e,t){var i,l="<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop32.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>",n="<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop32.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>",d="<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop64.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>",c="<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop64.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>",m="<br><br><font color='#FF00FF'>(注意:如曾安装过Lodop旧版附件npActiveXPLugin,请在【工具】->【附加组件】->【扩展】中先卸它)</font>",p="<br><br><font color='#FF00FF'>(如果此前正常,仅因浏览器升级或重安装而出问题,需重新执行以上安装)</font>",h="<br><font color='#FF00FF'>Web打印服务CLodop未安装启动,点击这里<a href='https://api.pt.huaml.com/soft/CLodop_Setup_for_Win32NT.exe' target='_self'>下载执行安装</a>",f="<br>(若此前已安装过,可<a href='CLodop.protocol:setup' target='_self'>点这里直接再次启动</a>)",v=",成功后请刷新本页面。</font>",u="<br><font color='#FF00FF'>Web打印服务CLodop需升级!点击这里<a href='CLodop_Setup_for_Win32NT.exe' target='_self'>执行升级</a>,升级后请刷新页面。</font>";try{var g=navigator.userAgent,y=!!g.match(/MSIE/i)||!!g.match(/Trident/i);if(a()){try{i=getCLodop()}catch(F){}if(!i&&("complete"!==document.readyState||y&&"loading"==o))return void alert("网页还没下载完毕,请稍等一下再操作.");if(!i)return void(document.body.innerHTML=h+(s?f:"")+v+document.body.innerHTML);CLODOP.CVERSION<"3.0.9.3"&&(document.body.innerHTML=u+document.body.innerHTML),t&&t.parentNode&&t.parentNode.removeChild(t),e&&e.parentNode&&e.parentNode.removeChild(e)}else{var b=y&&!!g.match(/x64/i);if(e||t?i=y?e:t:r?i=r:(i=document.createElement("object"),i.setAttribute("width",0),i.setAttribute("height",0),i.setAttribute("style","position:absolute;left:0px;top:-100px;width:0px;height:0px;"),y?i.setAttribute("classid","clsid:2105C259-1E0C-4534-8141-A753534CB4CA"):i.setAttribute("type","application/x-print-lodop"),document.documentElement.appendChild(i),r=i),!i||!i.VERSION)return g.indexOf("Chrome")>=0&&(document.body.innerHTML=p+document.body.innerHTML),g.indexOf("Firefox")>=0&&(document.body.innerHTML=m+document.body.innerHTML),document.body.innerHTML=(b?d:l)+document.body.innerHTML,i}return i.VERSION<"6.2.2.6"&&(a()||(document.body.innerHTML=(b?c:n)+document.body.innerHTML)),i}catch(F){alert("getLodop出错:"+F)}}i.r(t),i.d(t,"needCLodop",(function(){return a})),i.d(t,"getLodop",(function(){return l})),a()}}]);
|