chunk-380f96c0.d68e8a20.js 27 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-380f96c0","chunk-508dd904","chunk-2d22ce36","chunk-2d22891e"],{"03c0":function(e,t,i){},"25b3":function(e,t,i){"use strict";i("b79e")},3177:function(e,t,i){"use strict";i("03c0")},"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.receiveAddress)+e._s(e.info.receiveFloor)+"("+e._s(e.info.receiveFullAddress)+")")]),e._m(0)])},o=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"card-tag"},[t("img",{attrs:{src:i("da6a"),alt:""}})])}],a={name:"card-name-module",props:{info:{type:Object,default:function(){}}},data:function(){return{}}},s=a,n=(i("3177"),i("1805")),l=Object(n["a"])(s,r,o,!1,null,"74d2ddbb",null);t["default"]=l.exports},"5c74":function(e,t,i){"use strict";i("6947")},6947:function(e,t,i){},b79e: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.bookName))])]),t("div",{staticClass:"info-list"},[t("div",{staticClass:"label"},[e._v("下单时间")]),t("div",{staticClass:"val"},[e._v(e._s(e.orderData.addTime))])]),e.$util.isEmpty(e.orderData.goodsInfoList)?e._e():t("div",{staticClass:"info-list"},[t("div",{staticClass:"label"},[e._v("商品名称")]),t("div",{staticClass:"val"},[e._v(e._s(e.orderData.goodsInfoList[0].title))])]),t("div",{staticClass:"info-list"},[t("div",{staticClass:"label"},[e._v("金额")]),t("div",{staticClass:"val"},[e._v(e._s(e.orderData.actPrice))])])]),e.$util.isEmpty(e.orderData.goodsInfoList)?e._e():t("div",{staticClass:"order-info-right"},[t("img",{staticStyle:{"max-height":"100px"},attrs:{src:e.orderData.goodsInfoList[0].smallCoverUrl,alt:""}})])]),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(e._f("formatTime")(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.hasDeliver}},[e._v("跳过")]),t("el-button",{attrs:{type:"primary"},on:{click:e.fillFormFn}},[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?[0==i.finishTime?t("div",[1==e.orderData.hasDeliver?[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",size:"small"},slot:"reference"},[e._v("确认")])],1)]:[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",size:"small"},slot:"reference"},[e._v("本店送")])],1)]],2):t("div",[e.$util.isEmpty(i.sendInfo)?[t("div",{staticClass:"label-list"},[t("span",{staticClass:"label"},[e._v("门店配送")])])]:[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))])]],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",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"收花人姓名",prop:"receiveUserName"}},[t("el-input",{attrs:{placeholder:"请输入姓名",size:"mini"},model:{value:e.orderForm.receiveUserName,callback:function(t){e.$set(e.orderForm,"receiveUserName",t)},expression:"orderForm.receiveUserName"}})],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"收花人电话",prop:"receiveMobile"}},[t("el-input",{attrs:{placeholder:"请输入电话",size:"mini"},model:{value:e.orderForm.receiveMobile,callback:function(t){e.$set(e.orderForm,"receiveMobile",t)},expression:"orderForm.receiveMobile"}})],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"收花人城市",prop:"province"}},[t("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.addressOptions,props:e.addressProps,size:"mini"},on:{change:e.handleChange},model:{value:e.addressArr,callback:function(t){e.addressArr=t},expression:"addressArr"}})],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"详细地址",prop:"address"}},[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(i){var r=i.item;return[t("p",{staticStyle:{"line-height":"30px"}},[e._v(e._s(r.title))]),t("p",{staticStyle:{"line-height":"20px","font-size":"12px",color:"#999"}},[e._v(e._s(r.address))])]}}]),model:{value:e.orderForm.address,callback:function(t){e.$set(e.orderForm,"address",t)},expression:"orderForm.address"}})],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"门牌号",prop:"floor"}},[t("el-input",{attrs:{placeholder:"楼号门牌号(选填)",size:"mini"},model:{value:e.orderForm.floor,callback:function(t){e.$set(e.orderForm,"floor",t)},expression:"orderForm.floor"}})],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"订花人电话",prop:"bookMobile"}},[t("el-input",{attrs:{placeholder:"请输入电话(选填)",size:"mini"},model:{value:e.orderForm.bookMobile,callback:function(t){e.$set(e.orderForm,"bookMobile",t)},expression:"orderForm.bookMobile"}})],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"送达时间",prop:"reachTime"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"请选择日期","value-format":"yyyy-MM-dd",size:"mini"},model:{value:e.orderForm.reachTime,callback:function(t){e.$set(e.orderForm,"reachTime",t)},expression:"orderForm.reachTime"}}),t("el-radio-group",{model:{value:e.orderForm.reachPeriod,callback:function(t){e.$set(e.orderForm,"reachPeriod",t)},expression:"orderForm.reachPeriod"}},[t("el-radio",{attrs:{label:"0"}},[e._v("上午")]),t("el-radio",{attrs:{label:"1"}},[e._v("下午")]),t("el-radio",{attrs:{label:"2"}},[e._v("晚上")])],1)],1),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"要贺卡"}},[t("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:e.orderForm.needCard,callback:function(t){e.$set(e.orderForm,"needCard",t)},expression:"orderForm.needCard"}}),"1"==e.orderForm.needCard?[t("el-input",{attrs:{placeholder:"请输入贺卡内容,留空将寄出空白贺卡",size:"mini"},model:{value:e.orderForm.cardInfo,callback:function(t){e.$set(e.orderForm,"cardInfo",t)},expression:"orderForm.cardInfo"}})]:e._e()],2),t("el-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"其它备注",prop:"remark"}},[t("el-input",{attrs:{placeholder:"选填",size:"mini"},model:{value:e.orderForm.remark,callback:function(t){e.$set(e.orderForm,"remark",t)},expression:"orderForm.remark"}})],1),t("el-form-item",{attrs:{label:"匿名派送"}},[t("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:e.orderForm.anonymity,callback:function(t){e.$set(e.orderForm,"anonymity",t)},expression:"orderForm.anonymity"}})],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:"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),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)]],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:"750"}},[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.fullAddress))])]),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)},o=[],a=i("f2ed"),s=i("c91c"),n=i("ecc5"),l=(i("0da6"),i("b138"),i("7212"),i("8f26"),i("963e"),i("0401"),i("5880")),d=i("572d"),c=i("f4c5"),m={name:"sel-order",components:{cardName:d["default"]},props:{id:String},data:function(){return{orderData:{},showShipManage:!1,shipData:[],relateData:{},confirmSendVisit:!1,orderDialog:!1,orderForm:{receiveUserName:"",receiveMobile:"",province:"",city:"",address:"",floor:"",fullAddress:"",bookName:"",bookMobile:"",reachTime:"",reachPeriod:"0",needCard:"1",cardInfo:"",remark:"",anonymity:"0",lat:0,long: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(n["a"])(Object(n["a"])({},Object(l["mapGetters"])({categoryData:"category"})),Object(l["mapGetters"])({usageData:"usage",shopInfo:"shopInfo"})),methods:{init:function(){var e=this;this.getDet(),this.$service.order.orderRelate().then((function(t){e.relateData=t;var i=t.region,r=[];if(i.length>0)for(var o in i)if(r.push({id:i[o].id,name:i[o].name,children:[]}),i[o].children&&i[o].children.length>0)for(var a in i[o].children)r[o].children.push({id:i[o].children[a].id,name:i[o].children[a].name});e.addressOptions=r;var s=t.shop.province||"",n=t.shop.city||"";e.addressArr=[s,n],e.orderForm.province=s,e.orderForm.city=n,e.orderForm.lat=t.shop.shopLat||0,e.orderForm.long=t.shop.shopLong||0})),this.$service.order.info({id:this.id}).then((function(t){e.orderData=t}))},getDet:function(){var e=this;this.$service.single.orderSendDet({id:this.id}).then((function(t){e.shipData=t,e.showShipManage=!0}))},querySearchAsync:function(e,t){return this.orderForm.city?e?void this.$service.single.mapSuggestion({region:this.orderForm.city,keyword:e}).then((function(e){var i=e.data;i=i.map((function(e){return e.value=e.title,e})),t(i)})):(t([]),!1):(this.$message.error("请先选择收花人地址"),t([]),!1)},addressFn:function(e){console.log("江总",e),this.orderForm.lat=e.location.lat,this.orderForm.long=e.location.lng,this.orderForm.address=e.title,this.orderForm.fullAddress=e.address},submitOrderFn:function(){var e=this;this.$service.order.orderSheet(Object(n["a"])({id:this.id},this.orderForm)).then((function(t){e.getDet(),e.resetForm()}))},handleChange:function(e){console.log("value",e),this.orderForm.province=e[0],this.orderForm.city=e[1],this.orderForm.address=e[0]+e[1]},resetForm:function(){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:function(){this.showShipManage=!1},hasDeliver:function(){var e=this;this.$service.single.printOrder({id:this.id,option:1}).then((function(t){e.getDet(),e.$service.order.info({id:e.id}).then((function(t){e.orderData=t}))}))},printOrderFn:function(){var e=this;return Object(s["a"])(Object(a["a"])().m((function t(){return Object(a["a"])().w((function(t){while(1)switch(t.n){case 0:return t.n=1,e.$service.single.printOrder({id:e.id,option:2});case 1:e.getDet(),e.$service.order.getDeliverDetail({id:e.id}).then((function(t){e.deliver.data=t,e.printOrder()}));case 2:return t.a(2)}}),t)})))()},rePrintOrderFn:function(){var e=this;this.$service.order.getDeliverDetail({id:this.id}).then((function(t){e.deliver.data=t,e.printOrder()}))},fillFormFn:function(){this.orderDialog=!0},sendMySelfFn:function(){var e=this;this.sendMySelfConfirm=!1,this.shipForm.sendType=2,this.$service.single.orderDeliver(Object(n["a"])({id:this.id,option:1},this.shipForm)).then((function(t){e.$message.success("已确认!"),e.$emit("song-success"),e.getDet(),e.resetForm()}))},sendShipFn:function(){this.shipDialog=!0},submitShipFn:function(){return""==this.shipForm.sendTime?(this.$message.error("请选择时间"),!1):(this.$message.success("即将开通..."),!1)},orderReachFn:function(){var e=this;this.$service.single.orderReach({id:this.id,option:1}).then((function(t){e.$message.success("已确认!"),e.getDet(),e.confirmSendVisit=!1,e.$set(e.orderData,"status","5"),e.$set(e.orderData,"currentFlow",e.orderData.totalFlow)}))},orderClassFn:function(){this.categoryDialog=!0},orderClassConfirmFn:function(){var e=this;if(!this.categoryForm.categoryId||!this.categoryForm.usageId)return this.$message.error("请先选择分类或者用途!"),!1;this.$service.single.orderClass(Object(n["a"])({id:this.id},this.categoryForm)).then((function(t){e.$message.success("订单分类成功!"),e.getDet(),e.resetForm()}))},printOrder:function(){var e=this;this.deliver.visible=!0,this.$nextTick((function(){var t=Object(c["getLodop"])();t.PRINT_INIT("配送单"),t.SET_PRINT_STYLE("FontSize",12),t.ADD_PRINT_TEXT(90,10,350,200,"地址:".concat(e.shopInfo.address)),t.ADD_PRINT_TEXT(60,400,350,600,"电话:".concat(e.deliver.data.telephone)),t.ADD_PRINT_TEXT(60,10,470,600,"制单时间:".concat(e.deliver.data.printTime)),t.SET_PRINT_STYLE("FontSize",20),t.SET_PRINT_STYLE("Bold",1),t.ADD_PRINT_TEXT(20,10,790,30,"".concat(e.shopInfo.name,"配送单")),t.SET_PRINT_STYLEA(0,"Alignment",2),t.SET_PRINT_STYLE("FontSize",12),t.ADD_PRINT_TEXT(60,630,100,20,"No ".concat(e.deliver.data.sendNum)),t.SET_PRINT_STYLEA(0,"Alignment",2),t.ADD_PRINT_HTM(120,10,790,600,document.querySelector(".print-html").innerHTML),t.PREVIEW()}))}}},p=m,f=(i("25b3"),i("5c74"),i("1805")),u=Object(f["a"])(p,r,o,!1,null,"d9bcc0fa",null);t["default"]=u.exports},f4c5:function(e,t,i){"use strict";i.r(t),i.d(t,"needCLodop",(function(){return s})),i.d(t,"getLodop",(function(){return m}));var r,o,a;i("d27c"),i("adb4");function s(){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),o=e.match(/Firefox\D?\d+/i),a=e.match(/x64/i);if(!t&&!i&&a)return!0;if(o){if(o=o[0].match(/\d+/),o[0]>=41||a)return!0}else if(r){if(r=r[0].match(/\d+/),r[0]>=32)return!0}else if(!t&&!i){var s=e.match(/Chrome\D?\d+/i);if(s&&(s=s[0].match(/\d+/),s[0]>=41))return!0}return!1}catch(n){return!0}}if(s()){var n=document.head||document.getElementsByTagName("head")[0]||document.documentElement,l=document.createElement("script");l.src="http://localhost:8000/CLodopfuncs.js?priority=1",n.insertBefore(l,n.firstChild);var d=document.createElement("script");if(d.src="http://localhost:18000/CLodopfuncs.js?priority=0",n.insertBefore(d,n.firstChild),o=!!(l.src+d.src).match(/\/\/localho|\/\/127.0.0./i),l.attachEvent){a="loading";var c=function(){"loaded"==window.event.srcElement.readyState&&(a="complete")};l.attachEvent("onreadystatechange",c),d.attachEvent("onreadystatechange",c)}}function m(e,t){var i,n="<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop32.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>",l="<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>",f="<br><font color='#FF00FF'>Web打印服务CLodop未安装启动,点击这里<a href='https://api.pt.huaml.com/soft/CLodop_Setup_for_Win32NT.exe' target='_self'>下载执行安装</a>",u="<br>(若此前已安装过,可<a href='CLodop.protocol:setup' target='_self'>点这里直接再次启动</a>)",v=",成功后请刷新本页面。</font>",h="<br><font color='#FF00FF'>Web打印服务CLodop需升级!点击这里<a href='CLodop_Setup_for_Win32NT.exe' target='_self'>执行升级</a>,升级后请刷新页面。</font>";try{var g=navigator.userAgent,b=!!g.match(/MSIE/i)||!!g.match(/Trident/i);if(s()){try{i=getCLodop()}catch(F){}if(!i&&("complete"!==document.readyState||b&&"loading"==a))return void alert("网页还没下载完毕,请稍等一下再操作.");if(!i)return void(document.body.innerHTML=f+(o?u:"")+v+document.body.innerHTML);CLODOP.CVERSION<"3.0.9.3"&&(document.body.innerHTML=h+document.body.innerHTML),t&&t.parentNode&&t.parentNode.removeChild(t),e&&e.parentNode&&e.parentNode.removeChild(e)}else{var y=b&&!!g.match(/x64/i);if(e||t?i=b?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;"),b?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=(y?d:n)+document.body.innerHTML,i}return i.VERSION<"6.2.2.6"&&(s()||(document.body.innerHTML=(y?c:l)+document.body.innerHTML)),i}catch(F){alert("getLodop出错:"+F)}}}}]);