| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-449b729d"],{"2d14":function(e,t,i){"use strict";i.r(t);var s=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)])},r=[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:()=>{}}},data(){return{}}},o=a,l=(i("bd79"),i("1805")),d=Object(l["a"])(o,s,r,!1,null,"fca3533e",null);t["default"]=d.exports},"4f53":function(e,t,i){"use strict";i("940c")},"4ffc":function(e,t,i){},"940c":function(e,t,i){},"9b85":function(e,t,i){"use strict";i("f3f1")},bd79:function(e,t,i){"use strict";i("4ffc")},db7f:function(e,t,i){"use strict";i.r(t);var s=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,s){return t("el-timeline-item",{key:s},[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==s?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,s){return t("el-radio",{key:s,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,s){return t("el-radio",{key:s,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)},r=[],a=(i("b138"),i("8f26"),i("963e"),i("5880")),o=i("2d14"),l=i("f4c5"),d={name:"sel-order",components:{cardName:o["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(a["mapGetters"])({categoryData:"category"}),...Object(a["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 a in t)if(i.push({id:t[a].id,name:t[a].name,children:[]}),t[a].children&&t[a].children.length>0)for(let e in t[a].children)i[a].children.push({id:t[a].children[e].id,name:t[a].children[e].name});this.addressOptions=i;let s=e.shop.province||"",r=e.shop.city||"";this.addressArr=[s,r],this.orderForm.receiveProvince=s,this.orderForm.receiveCity=r,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()})}}},n=d,c=(i("4f53"),i("9b85"),i("1805")),m=Object(c["a"])(n,s,r,!1,null,"61e87d7a",null);t["default"]=m.exports},f3f1:function(e,t,i){}}]);
|