1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b5fc87d4"],{1206:function(t,e,r){"use strict";var a=r("7406"),s=r.n(a);s.a},"16f5":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAAH4YWdbAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAbKADAAQAAAABAAAAbAAAAADaE/gkAAAL1UlEQVR4Ae1deZAdRRn/Zua9nX27C1ilnIFNOCoKIRQoQYpEKuagYghRSIwIxlLZPxKhhCiGgBBigiBoQdAg11KKihI5LDBcuSpQgSpBjUnMRlNGYIGUGlE0+3b3XTP2N5seZubNPT3Tsy89VbvTx3f/uvv1zOvuJwG5yuWyjvewV2dnpyRFZaLCZZqIeo/NWHDTNHD+Gbbirg2vAaiqrczVR/2/79mIMCMd8QFbWZNGpzZkQEFdL+2wMTb5iASlux40iDCtDw81MWFlEyNqVD728felVyrgtMKVEQuHV15nMLoxGBXkn2twaKXfvclUP2JrXWxGCaXEaa9SpVKZUK/X/2Q1wy8tSdJArMDE8i0WU1PbrKz5HtR+9TObW8522eRTrF5Qvuh8QwtKLy+YBfrf95l5qr7JJ2XimUbd0JVfBPnIo5oYsKDJPLeGK33wSOj89SZDAP5r0mTWWBL6u/stORdNtlqPTChNTt7smCK3cqepUfJNUEVhjkobK4ZRlVD6TJU19WJqhfXu1gus9TTt7O20nN4DPaOKggShQEpLhTvvgcq61r86wlOtmrzyqROh68XtTR+NQQYFKoP2dkPJwIyzTWUd9z9CBgLjQwWMaQOp6bjv52a9VyKw6QeFxinYz7tAZU5hSfLBYUwi3cGbrTL8RHcYkFqWzlN2EQ2npaWFOLS6o6NjSWYNhCjUMsNM13U5M2UIkVDGpKFmGkYmH57O6aRXGAI90/b0efGa5c5pqFnhSAR3ak0D/cD/HGzNWecTbTMFgG8Yy3Ongv7evw2+jt5HYbDnUjcZZpnfZ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e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"order-wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.active,expression:"active == 1"}],staticClass:"order"},[a("div",{staticClass:"left"},[a("div",{staticClass:"left-top"},[a("div",{staticClass:"title"},[a("div",{staticClass:"item",class:{active:1==t.active},on:{click:function(e){t.active=1}}},[t._v("\n 订单列表\n ")]),a("div",{staticClass:"item",class:{active:2==t.active},on:{click:function(e){t.active=2}}},[t._v("\n 桌码管理\n ")])]),1==t.active?a("div",{staticClass:"sx",on:{click:function(e){t.filterModal=!t.filterModal}}},[t._v("\n "+t._s(t.filterModal?"关闭":"筛选")+"\n "),t.filterModal?t._e():a("Icon",{staticClass:"ios-funnel-outline",attrs:{color:"#666",type:"ios-funnel-outline"}})],1):t._e()]),a("div",{staticClass:"order-box"},[t.filterModal?t._e():a("div",{staticClass:"search"},[a("Input",{attrs:{search:"","enter-button":"搜索",size:"large",placeholder:"搜索订单流水号、订单编号"},on:{"on-search":t.search},model:{value:t.orderData.keyword,callback:function(e){t.$set(t.orderData,"keyword",e)},expression:"orderData.keyword"}})],1),t.orderListData.length?a("orderList",{directives:[{name:"show",rawName:"v-show",value:!t.filterModal,expression:"!filterModal"}],attrs:{orderType:"table",total:t.count,orderData:t.orderListData},on:{addPage:t.addPage,selectOrder:t.selectOrder}}):t.orderListData.length||t.filterModal?t._e():a("div",{staticClass:"no-order"},[a("img",{attrs:{src:r("66c9"),alt:""}}),a("span",{staticClass:"trip"},[t._v("噢~目前暂无订单")])]),a("filter-modal",{directives:[{name:"show",rawName:"v-show",value:t.filterModal,expression:"filterModal"}],attrs:{"order-type":"table"},on:{search:t.searchList}})],1)]),a("div",{staticClass:"order-data"},[a("div",{staticClass:"header"},[t._l(t.tabs,(function(e,r){return a("div",{directives:[{name:"show",rawName:"v-show",value:t.selectOrderData.oid||!r,expression:"selectOrderData.oid || !index"}],key:r,staticClass:"item",class:t.sle===r?"sel":r===t.sle-1?"neighbor-left":r===t.sle+1?"neighbor-right":"def",on:{click:function(e){return t.tabClick(r)}}},[a("div",{staticClass:"item-wrap"},[t._v("\n "+t._s(e)+"\n ")])])})),a("div",{staticClass:"box",class:2===t.sle?"neighbor-right":""})],2),a("div",{staticClass:"content",class:{"border-radius":t.sle}},[0===t.sle&&t.selectOrderData.id?a("userOrder",{staticClass:"orders",attrs:{canSend:t.canSend,selectData:t.selectOrderData},on:{remarks:t.remarks,rechargeBnt:t.rechargeBnt,userChange:t.userChange,calculate:t.calculate,discountCon:t.discountCon}}):t._e(),1===t.sle&&t.selectOrderData.oid&&t.selectOrderData.orderId.id?a("orderDetails",{staticClass:"orders",attrs:{orderDatalist:t.orderInfoData}}):t._e(),2===t.sle&&t.selectOrderData.oid&&t.selectOrderData.orderId.id?a("orderRecord",{attrs:{id:t.selectOrderData.oid}}):t.selectOrderData.id?t._e():a("div",{staticClass:"no-order"},[a("img",{attrs:{src:r("0493"),alt:""}}),a("span",{staticClass:"trip"},[t._v("噢~目前暂无挂单记录")])])],1),t.selectOrderData.id&&(2!=t.selectOrderData.status||t.selectOrderData.orderId&&!t.selectOrderData.orderId.is_del)?a("div",{staticClass:"footer"},[t.staff_id?a("Button",{on:{click:t.storeTap}},[t._v(t._s(t.storeInfos.staff_name))]):t._e(),t.selectOrderData.orderId&&t.selectOrderData.orderId.paid?a("div",[a("Button",{staticClass:"btn grey",on:{click:t.remarks}},[t._v("订单备注")]),a("Button",{staticClass:"btn grey",on:{click:t.point}},[t._v("小票打印")]),!t.selectOrderData.orderId.refund_status&&t.selectOrderData.orderId.paid&&t.selectOrderData.orderId.pay_price>0?a("Button",{staticClass:"btn blue",on:{click:t.getRefundData}},[t._v("立即退款")]):t._e()],1):3==t.selectOrderData.status||t.selectOrderData.orderId&&t.selectOrderData.orderId.paid?t._e():a("div",[a("Button",{staticClass:"btn red",on:{click:t.cancelTable}},[t._v("取消")]),t.selectOrderData.orderId&&"offline"==t.selectOrderData.orderId.pay_type?a("Button",{staticClass:"btn blue",on:{click:t.payOffline}},[t._v("立即支付")]):t.selectOrderData.orderId&&!t.selectOrderData.orderId.paid?[t.selectOrderData.orderId.pay_type?t._e():a("Button",{class:["btn",t.integral?"light":"grey"],on:{click:t.integralTap}},[t._v("积分")]),t.selectOrderData.orderId.pay_type?t._e():a("Button",{staticClass:"btn grey",on:{click:t.changePrice}},[t._v("改价")]),a("Button",{staticClass:"btn grey",on:{click:t.staffPlace}},[t._v("打单")]),a("Button",{staticClass:"btn",on:{click:function(e){return t.payPrice("cash")}}},[t._v("现金收款")]),a("Button",{staticClass:"btn",on:{click:function(e){return t.payPrice("")}}},[t._v("微信/支付宝")]),a("Button",{staticClass:"btn blue",on:{click:function(e){return t.payPrice("yue")}}},[t._v("余额收款")])]:t._e()],2)],1):t._e()]),a("order-remark",{ref:"remarks",attrs:{orderId:t.selectOrderData.orderId?t.selectOrderData.orderId.id:0},on:{submitFail:t.submitFail}}),a("orderSend",{ref:"send",attrs:{orderId:t.orderId,status:t.status,pay_type:t.pay_type},on:{submitFail:t.send}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:2==t.active,expression:"active == 2"}],staticClass:"table-code"},[a("div",{staticClass:"left-top"},[a("div",{staticClass:"title"},[a("div",{staticClass:"item",class:{active:1==t.active},on:{click:function(e){t.active=1}}},[t._v("\n 订单列表\n ")]),a("div",{staticClass:"item",class:{active:2==t.active},on:{click:function(e){t.active=2}}},[t._v("\n 桌码管理\n ")])]),1==t.active?a("div",{staticClass:"sx",on:{click:function(e){t.filterModal=!t.filterModal}}},[t._v("\n "+t._s(t.filterModal?"关闭":"筛选")+"\n "),t.filterModal?t._e():a("Icon",{staticClass:"ios-funnel-outline",attrs:{color:"#666",type:"ios-funnel-outline"}})],1):t._e()]),a("div",{staticClass:"section-wrapper"},t._l(t.codeList,(function(e){return a("div",{key:e.id,staticClass:"section"},[a("div",{staticClass:"head"},[t._v(t._s(e.name)+"(桌码分类)")]),a("div",{staticClass:"body"},[a("ul",{staticClass:"list"},t._l(e.tableQrcode,(function(e){return a("li",{key:e.id,staticClass:"item",class:{active:e.is_use}},[a("div",{staticClass:"code"},[t._v(t._s(e.table_number))]),e.is_use?[a("div",[t._v("\n "+t._s(e.eat_number)+"人就餐("+t._s(e.seat_num)+"人桌)\n ")]),a("div",{staticClass:"time"},[t._v(t._s(e.order_time)+" 下单")])]:a("div",[t._v("空桌("+t._s(e.seat_num)+"人桌)")])],2)})),0)])])})),0)]),a("Modal",{attrs:{"footer-hide":"",title:"订单改价"},on:{"on-cancel":t.cancelPrice},model:{value:t.modal2,callback:function(e){t.modal2=e},expression:"modal2"}},[a("Form",{attrs:{"label-width":100,model:t.formItem}},[a("FormItem",{attrs:{label:"订单改价:"}},[a("div",{staticClass:"acea-row"},[a("div",{staticClass:"inputNum"},[a("InputNumber",{attrs:{max:9999999,min:0},on:{"on-change":t.tapPrice},model:{value:t.formItem.price,callback:function(e){t.$set(t.formItem,"price",e)},expression:"formItem.price"}}),t._v("\n 元\n ")],1),a("div",{staticClass:"inputNum discount"},[a("InputNumber",{attrs:{max:100,min:0},on:{"on-change":t.tapDiscount},model:{value:t.discountPrice,callback:function(e){t.discountPrice=e},expression:"discountPrice"}}),t._v("\n %\n ")],1)])]),a("FormItem",{attrs:{label:"改价后金额:"}},[a("div",{staticClass:"changePrice"},[t._v("\n ¥"),a("span",{staticClass:"price"},[t._v(t._s(t.formItem.price||0))])])]),a("div",{staticClass:"acea-row row-center-wrapper"},[a("Button",{staticClass:"buttonPrice",attrs:{type:"primary"},on:{click:t.onSubmit2}},[t._v("确认改价")])],1)],1)],1),a("Modal",{attrs:{"footer-hide":"",title:"备注"},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[a("Input",{staticStyle:{width:"100%"},attrs:{rows:5,maxlength:"200",placeholder:"订单备注","show-word-limit":"",type:"textarea"}}),a("Button",{staticClass:"mt20",attrs:{long:"",type:"primary"}},[t._v("提交")])],1),a("storeList",{ref:"store",attrs:{storeInfo:t.storeInfos},on:{getStoreId:t.getStoreId,getUserInfo:t.getUserInfo}}),a("recharge",{ref:"recharge",attrs:{userInfo:t.userInfo},on:{getSuccess:t.getSuccess}}),a("Modal",{staticClass:"modalPay",attrs:{"footer-hide":"",width:"430px"},on:{"on-cancel":t.modalPayCancel},model:{value:t.modalPay,callback:function(e){t.modalPay=e},expression:"modalPay"}},[a("div",{staticClass:"payPage"},[a("div",{staticClass:"header acea-row row-center-wrapper"},[a("div",{staticClass:"picture"},[a("img",{attrs:{src:r("ad18")}})]),a("div",{staticClass:"text"},[t._v("应收金额(元)")])]),a("div",{staticClass:"money"},[t._v("\n ¥"),a("span",{staticClass:"num"},[t._v(t._s(t.selectOrderData.payPrice?t.selectOrderData.payPrice:0))])]),a("Input",{ref:"focusNum",staticStyle:{"margin-top":"16px"},attrs:{placeholder:"请点击输入框聚焦扫码或输入编码号",size:"large",type:"url"},on:{input:t.inputSaoMa},model:{value:t.payNum,callback:function(e){t.payNum=e},expression:"payNum"}}),a("div",{staticClass:"process"},[a("div",{staticClass:"picture"},[a("img",{attrs:{src:r("fbde")}})]),a("div",{staticClass:"list acea-row row-between-wrapper"},[a("div",{staticClass:"item one"},[a("div",{staticClass:"name"},[t._v("\n "+t._s("yue"==t.createOrder.pay_type?"出示付款码":"打开付款码")+"\n ")]),a("div",[t._v("\n "+t._s("yue"==t.createOrder.pay_type?"用户打开个人中心":"微信/支付宝付款码")+"\n ")])]),a("div",{staticClass:"item two"},[a("div",{staticClass:"name"},[t._v("\n "+t._s("yue"==t.createOrder.pay_type?"扫描付款码":"贴合付款盒子")+"\n ")]),a("div",[t._v("\n "+t._s("yue"==t.createOrder.pay_type?"扫码枪":"等待完成支付")+"\n ")])]),a("div",{staticClass:"item three"},[a("div",{staticClass:"name"},[t._v("确认收款")]),a("div",[t._v("收银台确认")])])])])],1)]),a("Modal",{staticClass:"cash",attrs:{"footer-hide":"",width:"770px"},on:{"on-cancel":t.cancel},model:{value:t.modalCash,callback:function(e){t.modalCash=e},expression:"modalCash"}},[a("div",{staticClass:"cashPage acea-row"},[a("div",{staticClass:"left"},[a("div",{staticClass:"picture"},[a("img",{attrs:{src:r("ad18")}})]),a("div",{staticClass:"text"},[t._v("应收金额(元)")]),a("div",{staticClass:"money"},[t._v("\n ¥"),a("span",{staticClass:"num"},[t._v(t._s(t.selectOrderData.payPrice||0))])])]),a("div",{staticClass:"right"},[a("div",{staticClass:"rightCon"},[a("div",{staticClass:"top acea-row row-between-wrapper"},[a("div",[t._v("实际收款(元)")]),a("div",{staticClass:"num"},[t._v(t._s(t.collection))])]),a("div",{staticClass:"center acea-row row-between-wrapper"},[a("div",[t._v("需找零(元)")]),this.$computes.Sub(t.collection,t.selectOrderData.payPrice?t.selectOrderData.payPrice:0)>0?a("div",{staticClass:"num"},[t._v("\n "+t._s(this.$computes.Sub(t.collection,t.selectOrderData.payPrice?t.selectOrderData.payPrice:0))+"\n ")]):a("div",{staticClass:"num"},[t._v("0")])]),a("div",{staticClass:"bottom acea-row"},[t._l(t.numList,(function(e,r){return a("div",{key:r,staticClass:"item acea-row row-center-wrapper",class:"."==e?"spot":"",on:{click:function(r){return t.numTap(e)}}},[t._v("\n "+t._s(e)+"\n ")])})),a("div",{staticClass:"item acea-row row-center-wrapper",on:{click:t.delNum}},[a("Icon",{attrs:{type:"ios-backspace"}})],1)],2)]),a("Button",{attrs:{type:"primary"},on:{click:t.cashBnt}},[t._v("确认")])],1)])]),a("Modal",{attrs:{"class-name":"vertical-center-modal","footer-hide":"",title:"优惠明细",width:"400"},model:{value:t.discount,callback:function(e){t.discount=e},expression:"discount"}},[a("div",{staticClass:"discountCon"},[a("div",{staticClass:"item acea-row row-between-wrapper"},[a("div",[t._v("订单原价")]),a("div",[t._v("¥"+t._s(t.selectOrderData.sumPrice||t.selectOrderData.orderId&&t.selectOrderData.orderId.total_price||0))])]),a("div",{staticClass:"item acea-row row-between-wrapper"},[a("div",[t._v("会员优惠金额:")]),a("div",[t._v("¥"+t._s(t.selectOrderData.vipPrice||t.selectOrderData.orderId&&t.selectOrderData.orderId.vip_true_price||0))])]),a("div",{staticClass:"item acea-row row-between-wrapper"},[a("div",[t._v("积分抵扣:")]),a("div",[t._v("¥"+t._s(t.selectOrderData.usedIntegral||t.selectOrderData.orderId&&t.selectOrderData.orderId.deduction_price||0))])]),t._l(t.selectOrderData.promotionsDetail,(function(e,r){return a("div",{key:r,staticClass:"item acea-row row-between-wrapper"},[a("div",[t._v(t._s(e.title)+":")]),a("div",[t._v("¥"+t._s(e.promotions_price||0))])])}))],2)]),a("Modal",{attrs:{title:"退款处理","class-name":"refund-modal"},model:{value:t.refundVisible,callback:function(e){t.refundVisible=e},expression:"refundVisible"}},[a("Form",{attrs:{model:t.refundData,"label-width":90}},[a("FormItem",{attrs:{label:"退款单号:"}},[a("Input",{attrs:{disabled:""},model:{value:t.refundData.order_id,callback:function(e){t.$set(t.refundData,"order_id",e)},expression:"refundData.order_id"}})],1),a("FormItem",{attrs:{label:"退款金额:",required:""}},[a("InputNumber",{attrs:{max:9999999999},on:{"on-change":t.numberChange},model:{value:t.refundData.refund_price,callback:function(e){t.$set(t.refundData,"refund_price",e)},expression:"refundData.refund_price"}})],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary",size:"large",long:""},on:{click:t.orderRefund}},[t._v("提交")])],1)],1)],1)},s=[],i=r("b89c"),o=r("5671"),n=r("d487"),c=r("9568"),d=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"order-user"},[r("div",{staticClass:"sel-user-group"},[t._l(t.selectData.userList,(function(e){return[!t.selectData.oid||t.selectData.orderId&&t.selectData.orderId.uid==e.uid?r("div",{key:e.id,staticClass:"sel-user",on:{click:function(r){return t.userChange(e)}}},[!t.selectData.oid&&t.selectData.userList.length>1?r("i",{class:["iconfont",e.uid==t.selectData.uid?"iconxuanzhong6":"icondayuanjiao"]}):t._e(),r("div",{staticClass:"avatar"},[r("img",{attrs:{src:e.userInfo.avatar||t.defaultAvatar,alt:"头像"}})]),r("div",{staticClass:"item-right"},[r("div",{staticClass:"user"},[r("div",[t._v(t._s(e.userInfo.nickname||"-"))])]),r("div",{staticClass:"money"},[r("div",[e.userInfo.phone?r("span",{staticClass:"pr20"},[t._v(t._s(e.userInfo.phone))]):t._e(),t._v("余额\n "),r("span",{staticClass:"num"},[t._v(t._s(e.userInfo.now_money||0)),r("a",{staticClass:"btn",on:{click:function(r){return t.rechargeBnt(e.userInfo)}}},[t._v("充值")])])]),r("div",[t._v("\n 积分 "),r("span",{staticClass:"num"},[t._v(t._s(e.userInfo.integral||0))])])])])]):t._e()]}))],2),r("div",{staticClass:"cart-num"},[r("div",{staticClass:"cart-num-left"},[r("span",[t._v("共")]),r("span",{staticClass:"num"},[t._v(t._s(t.total_num))]),r("span",[t._v("件商品")])]),r("div",{staticClass:"reduce"},[t._v("\n 优惠:"+t._s(t.$computes.Sub(t.selectData.sumPrice||t.selectData.orderId&&t.selectData.orderId.total_price||0,t.selectData.payPrice||t.selectData.orderId&&t.selectData.orderId.pay_price||0)||0)),r("a",{staticClass:"btn",on:{click:t.discountCon}},[t._v("明细")])]),r("div",{staticClass:"actual"},[t._v("\n 实付:"),r("span",{staticClass:"money"},[t._v("¥"+t._s(t.selectData.payPrice||t.selectData.orderId&&t.selectData.orderId.pay_price||0))])])]),r("div",{staticClass:"goods-list"},[r("Table",{attrs:{columns:t.columns,data:t.tableList,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"info",fn:function(e){var a=e.row;return[r("div",{staticClass:"tabBox"},[r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:a.productInfo.attrInfo?a.productInfo.attrInfo.image:a.productInfo.image,expression:"\n row.productInfo.attrInfo\n ? row.productInfo.attrInfo.image\n : row.productInfo.image\n "}]})]),r("span",{staticClass:"tabBox_tit line2"},[a.is_gift?r("span",{staticClass:"is-gift"},[t._v("赠品")]):t._e(),t._v("\n "+t._s(a.productInfo.store_name)+"\n "),a.productInfo.attrInfo?r("span",[t._v("\n |\n "+t._s(a.productInfo.attrInfo?a.productInfo.attrInfo.suk:"")+"\n ")]):t._e()])])]}},{key:"sum_true_price",fn:function(e){var a=e.row;return[r("div",{staticClass:"tabBox"},[t._v(t._s(a.sum_price*a.cart_num||0))])]}},{key:"action",fn:function(e){var a=e.row;return[r("Button",{staticClass:"sub",attrs:{disabled:1==a.cart_num,shape:"circle"},on:{click:function(e){return t.calculate(a,0)}}},[r("Icon",{attrs:{custom:"iconfont iconjian",size:"12"}})],1),r("InputNumber",{attrs:{min:1},model:{value:a.cart_num,callback:function(e){t.$set(a,"cart_num",e)},expression:"row.cart_num"}}),r("Button",{staticClass:"add",attrs:{disabled:a.cart_num==a.trueStock,shape:"circle"},on:{click:function(e){return t.calculate(a,1)}}},[r("Icon",{attrs:{custom:"iconfont iconjia",size:"12"}})],1)]}}])})],1)])},l=[];function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(r,!0).forEach((function(e){m(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h=[{title:"商品信息",slot:"info",minWidth:200},{title:"单价",key:"sum_price",width:150},{title:"数量",key:"cart_num",width:150},{title:"总金额",slot:"sum_true_price",width:150},{title:"操作",slot:"action",width:150}],p={name:"userOrder",props:["selectData"],data:function(){return{columns:[],tableList:[],loading:!1,defaultAvatar:r("653d"),give_integral_img:r("29ba"),give_coupon_img:r("16f5")}},computed:{total_num:function(){return this.tableList.reduce((function(t,e){var r=e.cart_num;return t+r}),0)}},watch:{"selectData.orderId":{handler:function(t){var e=this,r="action";t?(t.id&&(r="sum_true_price"),t._info&&(this.tableList=[],Array.isArray(t._info)?t._info.forEach((function(t){e.tableList.push(t.cart[0])})):Object.values(t._info).forEach((function(t){e.tableList.push(t.cart_info)})))):this.tableList=[],this.columns=h.filter((function(t){return!t.slot||"info"==t.slot||t.slot==r}))},immediate:!0}},methods:{rechargeBnt:function(t){this.$emit("rechargeBnt",t)},getRefundData:function(){this.$emit("getRefundData")},remarks:function(){this.$emit("remarks")},point:function(){var t=this;this.delfromData={title:"立即打印订单",info:"您确认打印此订单吗?",url:"/order/print/".concat(this.selectData.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(e){t.$Message.success(e.msg)})).catch((function(e){t.$Message.error(e.msg)}))},orderSend:function(){this.$emit("orderSend")},userChange:function(t){this.$emit("userChange",t.uid)},calculate:function(t,e){this.$emit("calculate",f({},t,{isAdd:e}))},discountCon:function(){this.$emit("discountCon")}}},v=p,_=(r("5ca3"),r("2877")),g=Object(_["a"])(v,d,l,!1,null,"14d6df4e",null),y=g.exports,I=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"detail"},[r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("用户信息")]),t.orderDatalist.userInfo?r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("用户昵称:")]),r("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.userInfo.uid?t.orderDatalist.userInfo.nickname:"游客")+"\n ")])]),r("li",{staticClass:"item"},[r("div",[t._v("绑定电话:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.userInfo.phone||"暂无"))])])]):t._e()]),r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("订单信息")]),t.orderDatalist.orderInfo?r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("订单编号:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.order_id))])]),r("li",{staticClass:"item"},[r("div",[t._v("创建时间:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo._add_time))])]),r("li",{staticClass:"item"},[r("div",[t._v("商品总数:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.total_num))])]),r("li",{staticClass:"item"},[r("div",[t._v("商品总价:")]),r("div",{staticClass:"value"},[t._v("¥"+t._s(t.orderDatalist.orderInfo.total_price))])]),r("li",{staticClass:"item"},[r("div",[t._v("优惠券金额:")]),r("div",{staticClass:"value"},[t._v("¥"+t._s(t.orderDatalist.orderInfo.coupon_price))])]),r("li",{staticClass:"item"},[r("div",[t._v("积分抵扣:")]),r("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.deduction_price||0)+"\n ")])]),parseFloat(t.orderDatalist.orderInfo.use_integral)?r("li",{staticClass:"item"},[r("div",[t._v("使用积分:")]),r("div",{staticClass:"value"},[t._v("\n "+t._s(parseFloat(t.orderDatalist.orderInfo.use_integral))+"\n ")])]):t._e(),r("li",{staticClass:"item"},[r("div",[t._v("会员商品优惠:")]),r("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.vip_true_price||0)+"\n ")])]),0!=t.orderDatalist.orderInfo.first_order_price?r("li",{staticClass:"item"},[r("div",[t._v("新人首单优惠:")]),r("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.first_order_price)+"\n ")])]):t._e(),2===t.orderDatalist.orderInfo.shipping_type&&0===t.orderDatalist.orderInfo.refund_status&&1===t.orderDatalist.orderInfo.paid?r("li",{staticClass:"item"},[r("div",[t._v("门店名称:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo._store_name))])]):t._e(),2===t.orderDatalist.orderInfo.shipping_type&&0===t.orderDatalist.orderInfo.refund_status&&1===t.orderDatalist.orderInfo.paid?r("li",{staticClass:"item"},[r("div",[t._v("核销码:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.verify_code))])]):t._e(),r("li",{staticClass:"item"},[r("div",[t._v("推广人:")]),r("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.userInfo.spread_name)+"/ID:"+t._s(t.orderDatalist.userInfo.spread_uid)+"\n ")])]),r("li",{staticClass:"item"},[r("div",[t._v("支付时间:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo._pay_time))])]),r("li",{staticClass:"item"},[r("div",[t._v("支付方式:")]),r("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo._status._payType)+"\n ")])]),t.orderDatalist.orderInfo.store_order_sn?r("li",{staticClass:"item"},[r("div",[t._v("原订单号:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.store_order_sn))])]):t._e()]):t._e()]),t.orderDatalist.orderInfo&&t.orderDatalist.orderInfo.promotions_detail.length?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("活动信息")]),r("ul",{staticClass:"list"},t._l(t.orderDatalist.orderInfo.promotions_detail,(function(e,a){return r("li",{key:a,staticClass:"item"},[r("div",[t._v(t._s(e.title)+":")]),r("div",{staticClass:"value"},[t._v("¥"+t._s(e.promotions_price))])])})),0)]):t._e(),t.orderDatalist.orderInfo&&t.orderDatalist.orderInfo.custom_form.length?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("自定义留言")]),r("ul",{staticClass:"list"},t._l(t.orderDatalist.orderInfo.custom_form,(function(e,a){return r("li",{directives:[{name:"show",rawName:"v-show",value:e.value&&-1==["uploadPicture","dateranges"].indexOf(e.name)||e.value.length&&-1!=["uploadPicture","dateranges"].indexOf(e.name),expression:"(item.value && ['uploadPicture','dateranges'].indexOf(item.name) == -1) || (item.value.length && ['uploadPicture','dateranges'].indexOf(item.name) != -1)"}],key:a,staticClass:"item"},[r("div",{staticClass:"txtVal"},[t._v(t._s(e.titleConfig.value)+":")]),"dateranges"===e.name?r("div",{staticClass:"value"},[t._v(t._s(e.value[0]+"/"+e.value[1]))]):"uploadPicture"===e.name?r("div",{staticClass:"value"},t._l(e.value,(function(t,e){return r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e,staticClass:"image"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"img"}]})])})),0):r("div",{staticClass:"value"},[t._v(t._s(e.value||"-"))])])})),0)]):t._e(),t.orderDatalist.orderInfo&&t.orderDatalist.orderInfo.mark?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("买家留言")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item mark"},[r("div",[t._v("备注:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.mark||"-"))])])])]):t._e(),t.orderDatalist.orderInfo&&t.orderDatalist.orderInfo.remark?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("订单备注")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item mark"},[r("div",[t._v("备注:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.remark||"-"))])])])]):t._e(),t.orderDatalist.orderInfo&&"express"===t.orderDatalist.orderInfo.delivery_type?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("物流信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("快递公司:")]),r("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.delivery_name||"-")+"\n ")])]),r("li",{staticClass:"item"},[r("div",[t._v("快递单号:")]),r("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.delivery_id)+"\n ")])])])]):t._e(),t.orderDatalist.orderInfo&&"send"===t.orderDatalist.orderInfo.delivery_type?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("配送信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("送货人姓名:")]),r("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.delivery_name||"-")+"\n ")])]),r("li",{staticClass:"item"},[r("div",[t._v("送货人电话:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.delivery_id))])])])]):t._e()])},b=[],C={name:"orderDetails",props:{orderDatalist:{type:Object}},methods:{}},D=C,O=(r("d1e7"),Object(_["a"])(D,I,b,!1,null,"d254da9c",null)),w=O.exports,A=r("6dc2"),k=r("22f89"),x=r("a464"),P=r("a123"),S=(r("94b5"),r("f8b7"));function M(t){return L(t)||T(t)||N()}function N(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function T(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function L(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function F(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(r,!0).forEach((function(e){B(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function B(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var G={components:{recharge:i["a"],storeList:o["a"],orderList:n["a"],goodsList:c["a"],userOrder:y,orderDetails:w,orderRemark:k["a"],orderRecord:A["a"],filterModal:x["a"],orderSend:P["a"]},data:function(){return{orderId:0,orderListData:[],tabs:["商品信息","订单详情","订单记录"],sle:0,filterModal:!1,userFrom:{keyword:"",page:1,limit:9},orderData:{type:"10",status:"",time:"",staff_id:"",serial_number:"",page:1,limit:10},selectOrderData:{},orderInfoData:{},count:0,status:0,pay_type:"",canSend:!0,tengxun_map_key:"",open_erp:null,active:1,modal2:!1,modal:!1,userInfo:{},storeInfos:{},storeList:[],goodFrom:{store_name:"",field_key:"all",cate_id:"",page:1,limit:12,uid:0,staff_id:0},codeList:[],uid:0,staff_id:0,cart_ids:"",table_id:0,payNum:"",createOrder:{remarks:"",change_price:0,cart_id:[],userCode:"",is_price:0,auth_code:""},modalPay:!1,priceInfo:{},orderSystem:{loadingMsg:null,timer:null},modalCash:!1,collectionArray:[],collection:0,numList:["7","8","9","4","5","6","1","2","3","0","."],integral:!1,formItem:{price:0},discountPrice:100,discount:!1,isOrderCreate:0,codeNum:"",refundVisible:!1,refundData:{order_id:0,refund_price:0}}},computed:{isCashierCartList:function(){var t=this.uid,e=this.staff_id,r=this.cart_ids,a=this.selectOrderData.oid;return{uid:t,staff_id:e,cart_ids:r,oid:a}}},watch:{count:function(t){t?this.table_id=this.orderListData[0].id:this.selectOrderData={}},table_id:function(t){var e=this.orderListData.find((function(e){var r=e.id;return r==t}));this.selectOrderData={},this.uid=0,e&&(this.selectOrderData=F({},e),this.getTableUidAll())},uid:function(t){t&&1==this.selectOrderData.status?this.getCartList():this.cart_ids=""},cart_ids:function(t){t?this.cashierCompute():this.formItem.price=this.unchangedPrice=0},integral:function(){this.cashierCompute()},isCashierCartList:function(t,e){var r=t.uid,a=t.staff_id,s=t.cart_ids,i=t.oid,o=!0;for(var n in t)if(Object.hasOwnProperty.call(t,n)&&t[n]!=e[n]){o=!1;break}o||r&&a&&s&&!i&&this.cashierCartList()},"selectOrderData.oid":function(t){t&&this.getTableOrderInfo()},active:function(t){2==t&&this.getCodeList(),this.timer&&clearTimeout(this.timer)}},created:function(){this.getOrderList(),this.getErpConfig()},methods:{numberChange:function(t){var e=this;this.$nextTick((function(){var r=Number(t).toString(),a=r.indexOf(".");-1===a||2>=r.length-a-1?e.refundData.refund_price=Number(r):e.refundData.refund_price=Number(Number(r).toFixed(2))}))},jsToJava:function(){try{window.Jsbridge.invoke("openCacheBox",JSON.stringify({"p1-key":"p1-value"}),this.myFunction())}catch(t){}},myFunction:function(){},payOffline:function(){var t=this;Object(S["Q"])(this.selectOrderData.oid).then((function(){t.$Message.success("支付成功"),t.selectOrderData.orderId.paid=1;var e=!0,r=!1,a=void 0;try{for(var s,i=t.orderListData[Symbol.iterator]();!(e=(s=i.next()).done);e=!0){var o=s.value;if(o.id==t.selectOrderData.id){o.orderId.paid=1;break}}}catch(n){r=!0,a=n}finally{try{e||null==i.return||i.return()}finally{if(r)throw a}}})).catch((function(e){t.$Message.error(e.msg)}))},getTableOrderInfo:function(){var t=this;Object(S["H"])(this.selectOrderData.oid).then((function(e){t.selectOrderData=F({},t.selectOrderData,{orderId:e.data,is_cashier_yue_pay_verify:e.data.is_cashier_yue_pay_verify}),t.refundData.order_id=e.data.order_id,t.refundData.refund_price=+e.data.pay_price}))},confirm:function(){if("yue"==this.payType){if(!this.createOrder.userCode&&this.selectOrderData.is_cashier_yue_pay_verify)return this.$Message.error("请扫描个人中心二维码");this.isOrderCreate?this.getCashierPay("yue"):this.orderCreate()}else if(""==this.payType){if(!this.createOrder.auth_code)return this.$Message.error("请扫描您的付款码");this.isOrderCreate?this.getCashierPay(""):this.orderCreate()}},getCashierPay:function(t){var e=this,r={payType:t,userCode:this.payNum,auth_code:this.payNum};if("cash"==t&&parseFloat(this.selectOrderData.payPrice)>parseFloat(this.collection))return this.$Message.error("您付款金额不足");Object(S["o"])(this.selectOrderData.orderId.order_id,r).then((function(r){if(e.payNum="","SUCCESS"==r.data.status){e.isOrderCreate=0,e.$Message.success("支付成功"),e.modalCash=!1,e.modalPay=!1,e.selectOrderData.orderId.paid=1;var a=!0,s=!1,i=void 0;try{for(var o,n=e.orderListData[Symbol.iterator]();!(a=(o=n.next()).done);a=!0){var c=o.value;if(c.id==e.selectOrderData.id){c.orderId.paid=1;break}}}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}"cash"==t&&e.jsToJava()}else if("PAY_ING"==r.data.status){var d=e.$Message.loading({content:"等待支付中...",duration:0});e.orderSystem.loadingMsg=d,e.orderId=r.data.order_id,e.checkOrderTime(d)}else e.isOrderCreate=1,e.orderId=r.data.order_id,e.$Message.error(r.data.message)})).catch((function(t){e.payNum="",e.$Message.error(t.msg)}))},orderCreate:function(){var t=this;if("cash"==this.payType&&parseFloat(this.selectOrderData.payPrice)>parseFloat(this.collection))return this.$Message.error("您付款金额不足");this.createOrder.new=1,this.createOrder.collate_code_id=this.table_id,this.createOrder.cart_id=this.cart_ids.split(","),Object(S["k"])(this.uid,this.createOrder).then((function(e){window.localStorage;if(t.payNum="","yue"==t.payType)if(t.modalPay=!1,t.payNum="",t.createOrder.userCode="","ORDER_CREATE"==e.data.status)t.isOrderCreate=1,t.orderId=e.data.order_id,t.$Message.success(e.data.message);else if("SUCCESS"==e.data.status){t.isOrderCreate=0,t.$Message.success("支付成功"),t.payTypeModal=!1,t.modalPay=!1,t.selectOrderData=F({},t.selectOrderData,{oid:e.data.oid});var r=!0,a=!1,s=void 0;try{for(var i,o=t.orderListData[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var n=i.value;if(n.id==t.selectOrderData.id){n.status=2,n.oid=e.data.oid,"[object Object]"!=Object.prototype.toString.call(n.orderId)&&(n.orderId={}),n.orderId=F({},n.orderId,{paid:1});break}}}catch(b){a=!0,s=b}finally{try{r||null==o.return||o.return()}finally{if(a)throw s}}}else t.isOrderCreate=1,t.orderId=e.data.order_id,t.$Message.error(e.data.message);if("cash"==t.payType&&"SUCCESS"==e.data.status){t.$Message.success("支付成功"),t.selectOrderData=F({},t.selectOrderData,{oid:e.data.oid});var c=!0,d=!1,l=void 0;try{for(var u,f=t.orderListData[Symbol.iterator]();!(c=(u=f.next()).done);c=!0){var m=u.value;if(m.id==t.selectOrderData.id){m.status=2,m.oid=e.data.oid,"[object Object]"!=Object.prototype.toString.call(m.orderId)&&(m.orderId={}),m.orderId=F({},m.orderId,{paid:1});break}}}catch(b){d=!0,l=b}finally{try{c||null==f.return||f.return()}finally{if(d)throw l}}t.modalCash=!1,t.payTypeModal=!1,t.jsToJava()}if(""==t.payType)if(t.payNum="",t.createOrder.auth_code="","ORDER_CREATE"==e.data.status)t.isOrderCreate=1,t.orderId=e.data.order_id,t.$Message.success(e.data.message);else if("PAY_ING"==e.data.status){var h=t.$Message.loading({content:"等待支付中...",duration:0});t.orderId=e.data.order_id,t.checkOrderTime(h)}else if("SUCCESS"==e.data.status){t.$Message.success("支付成功"),t.selectOrderData=F({},t.selectOrderData,{oid:e.data.oid});var p=!0,v=!1,_=void 0;try{for(var g,y=t.orderListData[Symbol.iterator]();!(p=(g=y.next()).done);p=!0){var I=g.value;if(I.id==t.selectOrderData.id){I.status=2,I.oid=e.data.oid,"[object Object]"!=Object.prototype.toString.call(I.orderId)&&(I.orderId={}),I.orderId=F({},I.orderId,{paid:1});break}}}catch(b){v=!0,_=b}finally{try{p||null==y.return||y.return()}finally{if(v)throw _}}t.modalPay=!1,t.clear()}else t.isOrderCreate=1,t.orderId=e.data.order_id,t.$Message.error(e.data.message)})).catch((function(e){t.payNum="",t.$Message.error(e.msg)}))},numTap:function(t){!1===this.defaultcalc&&(this.collection="",this.defaultcalc=!0);var e=String(this.collection).indexOf(".")+1,r=String(this.collection).length-e;(0===e||r<2)&&(this.collectionArray.join("")<=9999999&&this.collectionArray.push(t),this.collection=this.collectionArray.join("")>99999999?99999999:this.collectionArray.join(""))},getSwithUser:function(t){var e=this;Object(S["eb"])(t).then((function(t){})).catch((function(t){e.$Message.error(t.msg)}))},discountCon:function(){this.discount=!0},staffPlace:function(){var t=this;Object(S["db"])({tableId:this.table_id}).then((function(t){})).catch((function(e){t.$Message.error(e.msg)}))},calculate:function(t){var e=this;Object(S["t"])({productId:t.product_id,cartNum:1,uniqueId:t.product_attr_unique||0,tableId:this.table_id,isAdd:t.isAdd}).then((function(t){e.getCartList()})).catch((function(t){e.$Message.error(t.msg)}))},cancelTable:function(){var t=this;this.$Modal.confirm({title:"取消该桌码订单",content:"<p>确定要取消该桌码订单吗?</p><p>取消该桌码订单后将无法恢复,请谨慎操作!</p>",onOk:function(){Object(S["b"])({tableId:t.selectOrderData.id,qrcode_id:t.selectOrderData.qrcode_id}).then((function(e){t.$Message.success("取消该桌码订单成功");for(var r=0;r<t.orderListData.length;r++)if(t.orderListData[r].id==t.selectOrderData.id){t.orderListData[r+1]?t.table_id=t.orderListData[r+1].id:t.orderListData[r-1]?t.table_id=t.orderListData[r-1].id:t.table_id=0,t.orderListData.splice(r,1);break}}))}})},onSubmit2:function(){if(!(this.formItem.price>=0&&null!=this.formItem.price))return this.$Message.error("价格不能为空");this.selectOrderData.payPrice=this.formItem.price,this.$Message.success("改价成功"),this.createOrder.is_price=1,this.createOrder.change_price=this.formItem.price,this.getSwithUser({change_price:this.formItem.price}),this.cancelPrice(),this.modal2=!1},tapDiscount:function(){this.formItem.price=this.$computes.Mul(this.unchangedPrice||0,this.discountPrice/100||0).toFixed(2)||0},tapPrice:function(){this.formItem.price=Number(this.formItem.price.toFixed(2));var t=this.$computes.Div(this.formItem.price||0,this.unchangedPrice||0);this.discountPrice=Number((100*t).toFixed(2))||0},cancelPrice:function(){this.formItem.price=this.priceInfo.payPrice||0,this.tapPrice()},changePrice:function(){this.modal2=!0,this.formItem.price=this.selectOrderData.payPrice||0},cartCompute:function(){var t=this;if(this.cartList.length){var e=[];this.cartList.forEach((function(t){t.cart.forEach((function(t){e.push(t.id)}))})),this.createOrder.cart_id=e;var r={integral:this.integral,coupon:this.coupon,coupon_id:this.couponId,cart_id:e};Object(S["i"])(this.userInfo.uid,r).then((function(e){t.priceInfo=e.data,t.unchangedPrice=t.priceInfo.payPrice||0,t.formItem.price=t.priceInfo.payPrice||0,t.tapPrice()})).catch((function(e){t.$Message.error(e.msg),t.coupon=!1}))}else this.priceInfo={}},integralTap:function(){this.selectOrderData.uid?(this.integral=!this.integral,this.integral&&(this.createOrder.is_price=0)):this.$Message.warning("请先选择用户再使用积分")},delNum:function(){this.collectionArray.pop(),this.collection=this.collectionArray.length?this.collectionArray.join(""):0},cashBnt:function(){var t=this;this.cashBntLoading||(this.cashBntLoading=!0,this.isOrderCreate?this.getCashierPay("cash"):this.orderCreate(),setTimeout((function(){t.cashBntLoading=!1}),1e3))},cancel:function(){this.collection=0,this.collectionArray=[]},keyboard:function(){var t=this;function e(e){t.collectionArray.pop(),t.collection=t.collectionArray.length?t.collectionArray.join(""):0}function r(e){!1===t.defaultcalc&&(t.collection="",t.defaultcalc=!0);var r=String(t.collection).indexOf(".")+1,a=String(t.collection).length-r;(0===r||a<2)&&(t.collectionArray.join("")<=9999999&&t.collectionArray.push(e),t.collection=t.collectionArray.join("")>99999999?99999999:t.collectionArray.join(""))}document.onkeydown=function(a){var s=a||window.event,i=s.keyCode;switch(t.modalCash&&(a.stopPropagation(),a.preventDefault()),i){case 96:case 48:r(0);break;case 97:case 49:r(1);break;case 98:case 50:r(2);break;case 99:case 51:r(3);break;case 100:case 52:r(4);break;case 101:case 53:r(5);break;case 102:case 54:r(6);break;case 103:case 55:r(7);break;case 104:case 56:r(8);break;case 105:case 57:r(9);break;case 110:r(".");break;case 190:r(".");break;case 8:e();break}}},inputSaoMa:function(t){var e=this,r=t;if(""===r)return!1;clearTimeout(this.endTimeout),this.endTimeout=null,this.endTimeout=setTimeout((function(){e.codeNum===r&&(clearTimeout(e.endTimeout),r&&e.codeInfo({bar_code:r}))}),500)},modalPayCancel:function(){this.$Message.destroy(),this.orderSystem.timer&&(clearInterval(this.orderSystem.timer),this.orderSystem.timer=null)},codeInfo:function(t){var e=this;t.uid=this.uid,t.staff_id=this.storeInfos.id,Object(S["h"])(t).then((function(t){e.codeNum="";var r=t.data;if(r.hasOwnProperty("userInfo"))if(e.userInfo)e.$Modal.confirm({title:"切换用户",content:"<p>确定要切换用户吗?</p>",onOk:function(){e.userInfo=t.data.userInfo;var r=window.localStorage;r.setItem("cashierUser",JSON.stringify(t.data.userInfo)),e.getCartList()},onCancel:function(){}});else{e.userInfo=t.data.userInfo;var a=window.localStorage;a.setItem("cashierUser",JSON.stringify(t.data.userInfo))}e.goodList(),e.getCartList()})).catch((function(t){e.codeNum="",e.$Message.error(t.msg)}))},payPrice:function(t){var e=this;if(this.payType=t,this.selectOrderData.oid&&(this.isOrderCreate=!0,this.selectOrderData.payPrice=Number(this.selectOrderData.pay_price)||0),""==t||"yue"==t)if(this.createOrder.userCode="",this.createOrder.auth_code="",this.payNum="",""==t||this.selectOrderData.is_cashier_yue_pay_verify){this.modalPay=!0;var r=this;this.$nextTick((function(){e.$refs.focusNum.focus(),document.onkeydown=function(t){13==t.which&&(r.payNum&&(r.createOrder.userCode=r.payNum,r.createOrder.auth_code=r.payNum,r.confirm()),r.codeNum&&r.codeInfo({bar_code:r.codeNum}))}}))}else this.confirm();else"cash"==t&&(this.modalCash=!0,this.selectOrderData.oid&&(this.isOrderCreate=!0,this.selectOrderData.payPrice=Number(this.selectOrderData.pay_price)||0),this.collection=this.selectOrderData.payPrice||0,this.keyboard());if(this.createOrder.integral=this.integral,this.createOrder.coupon=this.coupon,this.createOrder.coupon_id=this.couponId,this.coupon&&!this.couponId)return this.$Message.error("请选择有效优惠券");this.createOrder.pay_type=t,this.createOrder.staff_id=this.storeInfos.id},userChange:function(t){this.uid=t,this.selectOrderData=F({},this.selectOrderData,{uid:t})},cashierCompute:function(){var t=this;Object(S["i"])(this.uid,{new:1,coupon_id:0,coupon:!1,integral:this.integral,cart_id:this.cart_ids.split(",")}).then((function(e){t.selectOrderData=F({},t.selectOrderData,{},e.data),t.formItem.price=t.unchangedPrice=t.selectOrderData.payPrice}))},cashierCartList:function(){var t=this;Object(S["e"])(this.uid,this.staff_id,{new:1,cart_ids:this.cart_ids}).then((function(e){var r=e.data.valid,a=[];r.length&&(a=r),t.selectOrderData=F({},t.selectOrderData,{orderId:{_info:a}})}))},getCartList:function(){var t=this;Object(S["v"])({table_id:this.table_id,uid:this.uid}).then((function(e){t.cart_ids=e.msg}))},getTableUidAll:function(){var t=this;Object(S["I"])({table_id:this.table_id}).then((function(e){var r=e.data;r.length&&(t.uid=r[0].uid),t.selectOrderData=F({},t.selectOrderData,{userList:r,uid:t.uid})}))},getCodeList:function(){var t=this;Object(S["w"])().then((function(e){t.codeList=e.data.filter((function(t){return t.tableQrcode.length})),t.timer=setTimeout(t.getCodeList,6e4)}))},rechargeBnt:function(t){this.userInfo=t,this.$refs.recharge.modal=!0},getSuccess:function(t){var e=this.$computes.Add(this.userInfo.now_money,t);this.userInfo.now_money=e;var r=window.localStorage;r.setItem("cashierUser",JSON.stringify(this.userInfo))},storeTap:function(){this.$refs.store.modals=!0,this.$refs.store.cancel()},getUserInfo:function(t){this.staff_id=t.users.id,this.storeInfos=t.users,this.storeList=t.storeList,this.goodFrom.staff_id=t.users.id,sessionStorage.setItem("staffInfo",JSON.stringify(t.users)),this.userInfo},getStoreId:function(t){var e=this;this.storeList.forEach((function(r){r.id==t.id&&(e.storeInfos=r,e.staff_id=r.id)}))},orderSend:function(){var t=this;this.$store.commit("store/order/setSplitOrder",this.selectOrderData.total_num),this.$refs.send.modals=!0,this.orderId=this.selectOrderData.id,this.status=this.selectOrderData._status,this.pay_type=this.selectOrderData.pay_type,this.$refs.send.getList(),this.$refs.send.getDeliveryList(),this.$nextTick((function(e){t.$refs.send.getCartInfo(t.selectOrderData._status,t.selectOrderData.id)}))},addPage:function(){this.orderListData.length<this.count&&this.orderData.page++,this.getOrderList()},searchList:function(t){var e="";switch(this.filterModal=!1,t.status){case 0:e=1;break;case 3:e=2;break;case 4:e=3;break}this.orderData=F({},this.orderData,{},t,{status:e}),this.orderData.type="",this.sle=0,this.search()},point:function(){var t=this;this.delfromData={title:"立即打印订单",info:"您确认打印此订单吗?",url:"/order/print/".concat(this.selectOrderData.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(e){t.$Message.success(e.msg)})).catch((function(e){t.$Message.error(e.msg)}))},search:function(){this.orderData.page=1,this.orderListData=[],this.getOrderList()},remarks:function(){this.$refs.remarks.modals=!0,this.$refs.remarks.formValidate.remark=this.selectOrderData.orderId.remark},send:function(){this.canSend=!1,this.search()},submitFail:function(){},getRefundData:function(){var t=this;2===this.selectOrderData.refund_type?(this.delfromData={title:"是否立即退货",url:"/refund/agree/".concat(this.selectOrderData.id),method:"get"},this.$modalSure(this.delfromData).then((function(e){t.$Message.success(e.msg)})).catch((function(e){t.$Message.error(e.msg)}))):this.refundVisible=!0},getOrderInfo:function(t){var e=this;t&&Object(S["A"])(t).then((function(t){e.orderInfoData=t.data})).catch((function(t){e.$Message.error(t.msg)}))},selectOrder:function(t){this.sle=0,this.table_id=t.id},tabClick:function(t){switch(t){case 1:this.getOrderInfo(this.selectOrderData.oid)}this.sle=t},getOrderList:function(){var t=this;Object(S["G"])(this.orderData).then((function(e){t.count=e.data.count;var r=e.data.data.map((function(t){var e=t.qrcode,r=e.category,a=e.table_number,s=[];return Array.isArray(t.cartList)||Object.keys(t.cartList).forEach((function(e){s.push({cart_info:t.cartList[e]})})),t.color="#f5222d",t.pink_name="".concat(r.name).concat(a),t._infoData=s,t.pay_price=t.sum_price,t.total_num=t.cart_num,t}));t.orderListData=[].concat(M(t.orderListData),M(r))})).catch((function(e){t.$Message.error(e.msg)}))},getErpConfig:function(){var t=this;Object(S["u"])().then((function(e){t.open_erp=e.data.open_erp,t.tengxun_map_key=e.data.tengxun_map_key})).catch((function(e){t.$Message.error(e.msg)}))},orderRefund:function(){var t=this;Object(S["N"])(this.selectOrderData.oid,this.refundData).then((function(e){t.refundVisible=!1,t.$Message.success(e.msg)})).catch((function(e){t.$Message.error(e.msg)}))}}},E=G,z=(r("7a15"),Object(_["a"])(E,a,s,!1,null,"79c5bbeb",null));e["default"]=z.exports},"29ba":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAAH4YWdbAAAABG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,r){},"5ca3":function(t,e,r){"use strict";var a=r("7482"),s=r.n(a);s.a},7406:function(t,e,r){},7482:function(t,e,r){},"7a15":function(t,e,r){"use strict";var a=r("4bfd"),s=r.n(a);s.a},a123:function(t,e,r){"use strict";var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"订单发送货",closable:!1,width:"1000"},on:{"on-visible-change":t.changeModal},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[t.modals?r("Form",{ref:"formItem",attrs:{model:t.formItem,"label-width":100},nativeOn:{submit:function(t){t.preventDefault()}}},[r("FormItem",{attrs:{label:"选择类型:"}},[r("RadioGroup",{on:{"on-change":t.changeRadio},model:{value:t.formItem.type,callback:function(e){t.$set(t.formItem,"type",e)},expression:"formItem.type"}},[t.productType?t._e():r("Radio",{attrs:{label:"1"}},[t._v("发货")]),t.productType?t._e():r("Radio",{attrs:{label:"2"}},[t._v("送货")]),r("Radio",{attrs:{label:"3"}},[t._v("无需配送")])],1)],1),1==t.formItem.type?r("FormItem",{directives:[{name:"show",rawName:"v-show",value:t.export_open,expression:"export_open"}],attrs:{label:"发货类型:"}},[r("RadioGroup",{on:{"on-change":t.changeExpress},model:{value:t.formItem.express_record_type,callback:function(e){t.$set(t.formItem,"express_record_type",e)},expression:"formItem.express_record_type"}},[r("Radio",{attrs:{label:"1"}},[t._v("手动填写")]),r("Radio",{attrs:{label:"2"}},[t._v("电子面单打印")])],1)],1):t._e(),r("div",[1==t.formItem.type?r("FormItem",{attrs:{label:"快递公司:"}},[r("Select",{staticStyle:{width:"80%"},attrs:{filterable:"",placeholder:"请选择快递公司"},on:{"on-change":t.expressChange},model:{value:t.formItem.delivery_name,callback:function(e){t.$set(t.formItem,"delivery_name",e)},expression:"formItem.delivery_name"}},t._l(t.express,(function(e,a){return r("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.value)+"\n ")])})),1)],1):t._e(),"1"===t.formItem.express_record_type&&1==t.formItem.type?r("FormItem",{attrs:{label:"快递单号:"}},[r("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入快递单号"},model:{value:t.formItem.delivery_id,callback:function(e){t.$set(t.formItem,"delivery_id",e)},expression:"formItem.delivery_id"}}),"顺丰速运"==t.formItem.delivery_name?r("div",{staticClass:"trips"},[r("p",[t._v("顺丰请输入单号 :收件人或寄件人手机号后四位,")]),r("p",[t._v("例如:SF000000000000:3941")])]):t._e()],1):t._e(),"2"===t.formItem.express_record_type?[r("FormItem",{staticClass:"express_temp_id",attrs:{label:"电子面单:"}},[r("Select",{staticStyle:{width:"80%"},attrs:{placeholder:"请选择电子面单"},on:{"on-change":t.expressTempChange},model:{value:t.formItem.express_temp_id,callback:function(e){t.$set(t.formItem,"express_temp_id",e)},expression:"formItem.express_temp_id"}},t._l(t.expressTemp,(function(e,a){return r("Option",{key:a,attrs:{value:e.temp_id}},[t._v(t._s(e.title)+"\n ")])})),1),t.formItem.express_temp_id?r("Button",{attrs:{type:"text"},on:{click:t.preview}},[t._v("预览")]):t._e()],1),r("FormItem",{attrs:{label:"寄件人姓名:"}},[r("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人姓名"},model:{value:t.formItem.to_name,callback:function(e){t.$set(t.formItem,"to_name",e)},expression:"formItem.to_name"}})],1),r("FormItem",{attrs:{label:"寄件人电话:"}},[r("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人电话"},model:{value:t.formItem.to_tel,callback:function(e){t.$set(t.formItem,"to_tel",e)},expression:"formItem.to_tel"}})],1),r("FormItem",{attrs:{label:"寄件人地址:"}},[r("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人地址"},model:{value:t.formItem.to_addr,callback:function(e){t.$set(t.formItem,"to_addr",e)},expression:"formItem.to_addr"}})],1)]:t._e()],2),r("div",{directives:[{name:"show",rawName:"v-show",value:"2"===t.formItem.type,expression:"formItem.type === '2'"}]},[r("FormItem",{attrs:{label:"送货人:"}},[r("Select",{staticStyle:{width:"80%"},attrs:{placeholder:"请选择送货人"},on:{"on-change":t.shDeliveryChange},model:{value:t.formItem.sh_delivery,callback:function(e){t.$set(t.formItem,"sh_delivery",e)},expression:"formItem.sh_delivery"}},t._l(t.deliveryList,(function(e,a){return r("Option",{key:a,attrs:{value:e.id}},[t._v("\n "+t._s(e.wx_name)+"("+t._s(e.phone)+")\n ")])})),1)],1)],1),r("div",{directives:[{name:"show",rawName:"v-show",value:"3"===t.formItem.type,expression:"formItem.type === '3'"}]},[r("FormItem",{attrs:{label:"备注:"}},[r("Input",{staticStyle:{width:"80%"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"备注"},model:{value:t.formItem.fictitious_content,callback:function(e){t.$set(t.formItem,"fictitious_content",e)},expression:"formItem.fictitious_content"}})],1)],1),t.splitOrder>1&&"3"!==t.formItem.type?r("div",[r("FormItem",{attrs:{label:"分单发货:"}},[r("i-switch",{attrs:{size:"large",disabled:8===t.orderStatus},on:{"on-change":t.changeSplitStatus},model:{value:t.splitSwitch,callback:function(e){t.splitSwitch=e},expression:"splitSwitch"}},[r("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),r("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])]),r("div",{staticClass:"trips"},[r("p",[t._v("\n 可选择表格中的商品单独发货,发货后会生成新的订单且不能撤回,请谨慎操作!\n ")])]),t.splitSwitch&&t.manyFormValidate.length?r("Table",{attrs:{data:t.manyFormValidate,columns:t.header},on:{"on-selection-change":t.selectOne},scopedSlots:t._u([{key:"image",fn:function(e){var a=e.row;e.index;return[r("div",{staticClass:"product-data"},[r("img",{staticClass:"image",attrs:{src:a.cart_info.productInfo.image}}),r("div",{staticClass:"name line2"},[t._v("\n "+t._s(a.cart_info.productInfo.store_name)+"\n ")])])]}},{key:"value",fn:function(e){var a=e.row;e.index;return[r("div",[t._v(t._s(a.cart_info.productInfo.attrInfo.suk))])]}},{key:"sellPrice",fn:function(e){var a=e.row;e.index;return[r("div",[t._v(t._s(a.cart_info.productInfo.attrInfo?a.cart_info.productInfo.attrInfo.price:a.cart_info.productInfo.price)+"\n ")])]}},{key:"price",fn:function(e){var a=e.row;e.index;return[r("div",[t._v(t._s(a.cart_info.truePrice))])]}}],null,!1,409803649)}):t._e()],1)],1):t._e()],1):t._e(),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("Button",{on:{click:t.cancel}},[t._v("取消")]),r("Button",{attrs:{type:"primary"},on:{click:t.putSend}},[t._v("提交")])],1),r("div",{directives:[{name:"viewer",rawName:"v-viewer"},{name:"show",rawName:"v-show",value:t.temp,expression:"temp"}],ref:"viewer"},[r("img",{staticStyle:{display:"none"},attrs:{src:t.temp.pic}})])],1)},s=[],i=r("a34a"),o=r.n(i),n=r("2f62"),c=r("f8b7");function d(t,e,r,a,s,i,o){try{var n=t[i](o),c=n.value}catch(d){return void r(d)}n.done?e(c):Promise.resolve(c).then(a,s)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(a,s){var i=t.apply(e,r);function o(t){d(i,a,s,o,n,"next",t)}function n(t){d(i,a,s,o,n,"throw",t)}o(void 0)}))}}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(r,!0).forEach((function(e){m(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h={name:"orderSend",props:{orderId:Number,status:Number,pay_type:String},data:function(){var t=this;return{productType:0,orderStatus:0,splitSwitch:!0,formItem:{type:"1",express_record_type:"1",delivery_name:"",delivery_id:"",express_temp_id:"",to_name:"",to_tel:"",to_addr:"",sh_delivery:"",fictitious_content:""},modals:!1,express:[],expressTemp:[],deliveryList:[],temp:{},export_open:!0,manyFormValidate:[],header:[{type:"selection",width:60,align:"center"},{title:"商品信息",slot:"image",align:"center",width:200},{title:"规格",slot:"value",align:"center",minWidth:120},{title:"商品售价",slot:"sellPrice",align:"center",minWidth:100},{title:"商品优惠价",slot:"price",align:"center",minWidth:100},{title:"总数",key:"cart_num",align:"center",minWidth:80},{title:"待发数量",key:"surplus_num",align:"center",width:180,render:function(e,r){return e("div",[e("InputNumber",{props:{min:1,max:r.row.numShow,value:r.row.surplus_num||1},on:{"on-change":function(e){r.row.surplus_num=e||1,t.manyFormValidate[r.index]=r.row,t.selectData.forEach((function(e,a){e.cart_id===r.row.cart_id&&t.selectData.splice(a,1,r.row)}))}}})])}}],selectData:[]}},computed:f({},Object(n["e"])("store/order",["splitOrder"])),methods:{selectOne:function(t){this.selectData=t},changeModal:function(t){t||this.cancel()},changeSplitStatus:function(t){var e=this;t&&Object(c["cb"])(this.orderId).then((function(t){var r=t.data;r.forEach((function(t){t.numShow=t.surplus_num})),e.manyFormValidate=r}))},changeRadio:function(t){switch(this.$refs.formItem.resetFields(),t){case"1":this.formItem.delivery_name="",this.formItem.delivery_id="",this.formItem.express_temp_id="",this.formItem.express_record_type="1",this.expressTemp=[];break;case"2":this.formItem.sh_delivery="";break;case"3":this.formItem.fictitious_content="";break;default:break}},changeExpress:function(t){switch(t){case"2":this.formItem.delivery_name="",this.formItem.express_temp_id="",this.expressTemp=[],this.getList(2);break;case"1":this.formItem.delivery_name="",this.formItem.delivery_id="",this.getList(1);break;default:break}},reset:function(){this.formItem={type:"1",express_record_type:"1",delivery_name:"",delivery_id:"",express_temp_id:"",expressTemp:[],to_name:"",to_tel:"",to_addr:"",sh_delivery:"",fictitious_content:""}},getList:function(t){var e=this,r=2===t?1:"";Object(c["x"])(r).then(function(){var t=l(o.a.mark((function t(r){return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.express=r.data,e.getSheetInfo();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))},putSend:function(t){var e=this,r={id:this.orderId,datas:this.formItem};if("1"===this.formItem.type&&"2"===this.formItem.express_record_type){if(""===this.formItem.delivery_name)return this.$Message.error("快递公司不能为空");if(""===this.formItem.express_temp_id)return this.$Message.error("电子面单不能为空");if(""===this.formItem.to_name)return this.$Message.error("寄件人姓名不能为空");if(""===this.formItem.to_tel)return this.$Message.error("寄件人电话不能为空");if(!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.formItem.to_tel))return this.$Message.error("请输入正确的手机号码");if(""===this.formItem.to_addr)return this.$Message.error("寄件人地址不能为空")}if("1"===this.formItem.type&&"1"===this.formItem.express_record_type){if(""===this.formItem.delivery_name)return this.$Message.error("快递公司不能为空");if(""===this.formItem.delivery_id)return this.$Message.error("快递单号不能为空")}if("2"===this.formItem.type&&""===this.formItem.sh_delivery)return this.$Message.error("送货人不能为空");this.splitSwitch&&(r.datas.cart_ids=[],this.selectData.forEach((function(t){r.datas.cart_ids.push({cart_id:t.cart_id,cart_num:t.surplus_num})}))),Object(c["W"])(r).then((function(t){e.modals=!1,e.$Message.success(t.msg),e.$emit("submitFail"),e.reset(),e.splitSwitch=!1})).catch((function(t){e.$Message.error(t.msg)}))},cancel:function(t){this.modals=!1,this.orderStatus=0,this.splitSwitch=!1,this.selectData=[],this.reset()},expressChange:function(t){var e=this,r=this.express.find((function(e){return e.value===t}));void 0!==r&&(this.formItem.delivery_code=r.code,"2"===this.formItem.express_record_type&&(this.expressTemp=[],this.formItem.express_temp_id="",Object(c["M"])({com:this.formItem.delivery_code}).then((function(t){e.expressTemp=t.data,t.data.length||e.$Message.error("请配置你所选快递公司的电子面单")})).catch((function(t){e.$Message.error(t.msg)}))))},getCartInfo:function(t,e){var r=this;this.$set(this,"orderStatus",t),this.$set(this,"splitSwitch",8===t),Object(c["cb"])(this.orderId).then((function(t){var e=t.data;e.forEach((function(t){t.numShow=t.surplus_num})),r.manyFormValidate=e,r.productType=e[0].product_type,3==r.productType&&(r.formItem.type="3",r.formItem.fictitious_content="")}))},getDeliveryList:function(){var t=this;Object(c["L"])().then((function(e){t.deliveryList=e.data.list})).catch((function(e){t.$Message.error(e.msg)}))},getSheetInfo:function(){var t=this;Object(c["O"])().then((function(e){var r=e.data;for(var a in r)r.hasOwnProperty(a)&&(t.formItem[a]=r[a]);t.export_open=void 0===r.export_open||r.export_open,t.export_open||(t.formItem.express_record_type="1"),t.formItem.to_addr=r.to_add})).catch((function(e){t.$Message.error(e.msg)}))},shDeliveryChange:function(t){if(t){var e=this.deliveryList.find((function(e){return e.id===t}));this.formItem.sh_delivery_name=e.wx_name,this.formItem.sh_delivery_id=e.phone,this.formItem.sh_delivery_uid=e.uid}},expressTempChange:function(t){this.temp=this.expressTemp.find((function(e){return t===e.temp_id})),void 0===this.temp&&(this.temp={})},preview:function(){this.$refs.viewer.$viewer.show()}}},p=h,v=(r("1206"),r("2877")),_=Object(v["a"])(p,a,s,!1,null,"5f854f97",null);e["a"]=_.exports},d1e7:function(t,e,r){"use strict";var a=r("1cef"),s=r.n(a);s.a}}]);
|