(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6159273a"],{"1b28":function(t,e,r){"use strict";r("2a8f")},"2a8f":function(t,e,r){},"4ab4":function(t,e,r){},"5a8e":function(t,e,r){"use strict";r("e41e")},af0e:function(t,e,r){"use strict";r("4ab4")},c0cb:function(t,e,r){"use strict";r.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"order"},[e("div",{staticClass:"order-content"},[e("div",{staticClass:"con-toptitle"},[t._m(0),e("div",{staticClass:"block"},[e("el-date-picker",{attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(e){return t.loadData(!0)}},model:{value:t.orderinput.value1,callback:function(e){t.$set(t.orderinput,"value1",e)},expression:"orderinput.value1"}})],1)]),e("div",{staticClass:"con-search"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.orderinput.order,expression:"orderinput.order"}],attrs:{type:"text",placeholder:"请输入用户名称、用户电话、订单号码、地址查询订单"},domProps:{value:t.orderinput.order},on:{input:function(e){e.target.composing||t.$set(t.orderinput,"order",e.target.value)}}}),e("div",{staticClass:"ser-icon",on:{click:function(e){return t.loadData(!0)}}},[e("i",{staticClass:"iconfont icon-sousuo"})])]),e("div",{directives:[{name:"loadmore",rawName:"v-loadmore",value:t.loadData,expression:"loadData"}],staticClass:"con-orders"},t._l(t.orderlist,(function(r,s){return e("div",{key:s,class:["orders-for",{hanglistgl:t.listid==s}],on:{click:function(e){return t.getOrderDetail(s)}}},[e("div",{staticClass:"orders-top"},[e("h5",[t._v("订单号:"+t._s(r.order_no))]),e("p",[t._v(t._s(r.created_at))])]),e("div",{staticClass:"orders-bot"},[e("div",{staticClass:"bot-left"},[e("div",{staticStyle:{display:"flex"}},[e("p",[t._v("会员:"+t._s(r.nickname))]),e("p",{staticStyle:{"margin-left":"20px !important"}},[t._v(" 手机号:"+t._s(r.binding)+" ")])]),e("div",{staticStyle:{display:"flex"}},[e("p",[t._v("支付方式:"+t._s(t.payType[r.pay_type]))]),e("p",{staticStyle:{"margin-left":"20px !important"}},[t._v(" 支付状态:"+t._s(t.payStatus[r.is_pay])+" ")])])]),e("div",{staticClass:"bot-right"},[e("h5",[t._v("¥"+t._s(r.pay_price))])])])])})),0)]),e("div",{staticClass:"order-right"},[e("div",{staticClass:"right-choice"},[e("p",{class:["cho-shops",{active:1==t.num}],on:{click:function(e){return t.select(1)}}},[t._v(" 订单商品 ")]),e("p",{class:["cho-text",{active:2==t.num}],on:{click:function(e){return t.select(2)}}},[t._v(" 订单备注 ")]),e("el-dropdown",{staticClass:"print-order",on:{command:t.printOrder}},[e("span",{staticClass:"el-dropdown-link"},[t._v(" 打印"),e("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{attrs:{command:1}},[t._v("订单打印")]),e("el-dropdown-item",{attrs:{command:2}},[t._v("小票打印")])],1)],1)],1),e("div",{staticClass:"flex1"},[e(t.showcom,{tag:"component",attrs:{data:"order",consumption_list:t.orderDetail,marks:t.marks}})],1),"ShopsList"==t.showcom&&t.orderDetail.length>0&&t.showRefund?e("div",{staticClass:"refund",on:{click:function(e){return t.refundOrder()}}},[e("h5",[t._v("全部退款")])]):t._e()]),e("OrderPrintModal",{attrs:{visible:t.showprint,order:t.orderInfo},on:{closeShowprint:t.closeShowprint}})],1)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"title-text"},[e("p",[t._v("订单列表")])])}],a=(r("14d9"),r("3b3a")),o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ordermarks"},[e("h5",[t._v("备注:")]),e("div",{staticClass:"markstext"},[e("p",[t._v(t._s(t.marks))])])])},n=[],d={name:"Ordermarks",props:["marks"],data(){return{}},mounted(){},methods:{}},l=d,c=(r("5a8e"),r("2877")),p=Object(c["a"])(l,o,n,!1,null,null,null),u=p.exports,h=(r("e9f5"),r("ab43"),function(){var t=this,e=t._self._c;return t.order?e("div",[e("a-modal",{attrs:{title:"订单打印","mask-closable":!1,"destroy-on-close":!0,visible:t.visible,footer:null,width:850},on:{cancel:function(e){return t.$emit("closeShowprint")}}},[e("div",{staticStyle:{color:"black","line-height":"30px"},attrs:{id:"print"}},[e("a-row",[e("a-col",{attrs:{span:8}},[t._v(" 订单号:"+t._s(t.order.order_no)+" ")]),e("a-col",{attrs:{span:8}},[t._v(" 客户电话:"+t._s(t.order.mobile)+" ")]),e("a-col",{attrs:{span:8}},[t._v(" 下单时间:"+t._s(t.order.created_at)+" ")])],1),e("a-row",[e("a-col",{attrs:{span:8}},[t._v(" 客户: "+t._s(t.order.nickname))]),e("a-col",{attrs:{span:16}},[t._v(" 客户地址:"+t._s(t.order.address)+" ")])],1),e("table",{staticClass:"goods_table",attrs:{cellpadding:"5",cellspacing:"5",width:"100%"}},[e("thead",[e("tr",t._l(t.tHead,(function(r,s){return e("td",{key:s,staticStyle:{background:"#ccc"}},[t._v(t._s(r))])})),0)]),e("tbody",t._l(t.order.goods_list,(function(r,s){return e("tr",{key:s},[e("td",[t._v(t._s(s+1))]),e("td",[t._v(t._s(r.name))]),e("td",[t._v(t._s(r.attr_list.map(t=>t.attr_name).join(",")))]),e("td",[t._v(t._s(r.batch_price_tips))]),e("td",[t._v(t._s(r.unit))]),e("td",[t._v(t._s(r.num))]),e("td",[t._v(t._s(r.total_price))])])})),0),e("tfoot",[e("tr",[e("td",{attrs:{colspan:"6"}},[t._v("合计金额:")]),e("td",[t._v(t._s(t.order.pay_price))])])])])],1),e("div",{staticStyle:{"text-align":"center"}},[e("a-button",{directives:[{name:"print",rawName:"v-print",value:"#print",expression:"'#print'"}],attrs:{type:"primary"}},[t._v("确认打印")]),e("a-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"danger"},on:{click:function(e){return t.$emit("closeShowprint")}}},[t._v("取消打印")])],1)])],1):t._e()}),m=[],v=(r("8ded"),{components:{},props:{order:{type:Object,default:""},visible:{type:Boolean,default:!1}},data(){return{tHead:["序","产品名称","规格","条码","单位","数量","金额"]}},computed:{},watch:{},created(){},mounted(){},updated(){},methods:{printBut(){this.$print(this.$refs.print)}}}),_=v,f=(r("af0e"),Object(c["a"])(_,h,m,!1,null,"0ecb60b2",null)),w=f.exports,g=r("3191"),y={components:{ShopsList:a["a"],OrderMarks:u,OrderPrintModal:w},name:"AntdDiyAdminOrder",data(){return{payType:{1:"微信支付",3:"余额支付",4:"支付宝支付",6:"现金支付"},payStatus:{0:"未支付",1:"已支付"},listid:-1,showRefund:!1,showcom:"ShopsList",orderlist:[],orderDetail:[],orderInfo:null,showprint:!1,pickerOptions:{disabledDate(t){return t.getTime()>Date.now()},shortcuts:[{text:"今天",onClick(t){t.$emit("pick",new Date)}},{text:"昨天",onClick(t){const e=new Date;e.setTime(e.getTime()-864e5),t.$emit("pick",e)}},{text:"一周前",onClick(t){const e=new Date;e.setTime(e.getTime()-6048e5),t.$emit("pick",e)}}]},num:1,orderinput:{order:"",value1:[],shopname:""},page:1,loadmore:!0,marks:""}},mounted(){},methods:{closeShowprint(){this.showprint=!1},async printOrder(t){if(1==t)this.showprint=!0;else{await Object(g["l"])({order_id:this.orderlist[this.listid].id})}},select(t){this.num=t,1==t?this.showcom="ShopsList":2==t&&(this.showcom="OrderMarks")},async loadData(t){if(t){let{page:t,loadmore:e,orderlist:r}=this.$options.data();this.page=t,this.loadmore=e,this.orderlist=r}if(!this.loadmore)return this.$message.warning("已经到底了。。。");let e={pageSize:6,pageNo:this.page,order_no:this.orderinput.order,dateStart:this.orderinput.value1[0]||"",dateEnd:this.orderinput.value1[1]||""};const r=await Object(g["c"])(e);this.orderlist.push(...r.data.data),this.loadmore=this.orderlist.length