1 line
3.6 KiB
JavaScript
1 line
3.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3559c906"],{5391:function(t,e,n){var i=n("d915");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("499e").default;o("37f764ce",i,!0,{sourceMap:!1,shadowMode:!1})},"6a94":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{background:"#fff"}},[n("c-title",{attrs:{hide:!1,text:"核销"}}),t.isReady&&!t.info.worker_name?n("div",{staticClass:"main"},[n("p",[t._v(t._s(t.appointmentLang.project)+"名称: "+t._s(t.info.project_title))]),n("p",[t._v("已预约次数: "+t._s(t.info.used_count)+"次")]),n("p",[t._v(t._s(t.appointmentLang.project)+"总次数: "+t._s(t.info.total_count)+"次")]),n("p",[t._v("顾客姓名: "+t._s(t.info.realname))]),n("p",[t._v("顾客电话: "+t._s(t.info.mobile))])]):t._e(),t.isReady&&t.info.worker_name?n("div",{staticClass:"main"},[n("p",[t._v(t._s(t.appointmentLang.project)+"名称: "+t._s(t.info.project_title))]),n("p",[t._v("门店名称: "+t._s(t.info.store_name))]),n("p",[t._v(t._s(t.appointmentLang.worker)+"姓名: "+t._s(t.info.worker_name))]),n("p",[t._v("已预约次数: "+t._s(t.info.used_count)+"次")]),n("p",[t._v(t._s(t.appointmentLang.project)+"总次数: "+t._s(t.info.total_count)+"次")]),n("p",[t._v("顾客姓名: "+t._s(t.info.customer_name))]),n("p",[t._v("顾客电话: "+t._s(t.info.customer_tel))]),n("p",[t._v("开始时间: "+t._s(t.info.begin_time))]),n("p",[t._v("结束时间: "+t._s(t.info.end_time))])]):t._e(),n("div",{staticStyle:{padding:"1.5rem 0"}},[n("p",{staticClass:"btn",on:{click:t.Sure}},[t._v("确认核销")])])],1)},o=[],s=(n("e7e5"),n("d399")),a=(n("14d9"),n("6968")),r={data:function(){return{isReady:!1,service_id:0,url:"",json:{},sureUrl:"",info:{},clicktag:0}},activated:function(){this.isReady=!1,this.service_id=this.$route.params.service_id,"pro"===this.$route.query.tag?(this.url="plugin.appointment.frontend.appointment-order.close-service-info",this.sureUrl="plugin.appointment.frontend.appointment-order.close-service",this.json={order_id:this.service_id}):(this.url="plugin.appointment.frontend.appointment-service.close-service-info",this.sureUrl="plugin.appointment.frontend.appointment-service.close-service",this.json={service_id:this.service_id}),this.getData()},computed:{appointmentLang:function(){return this.$store.state.shopLanguage.appointment?this.$store.state.shopLanguage.appointment:{worker:"技师",project:"项目",service:"服务"}}},methods:{getData:function(){var t=this;$http.get(this.url,this.json,"加载中").then((function(e){t.isReady=!0,1===e.result?t.info=e.data:Object(s["a"])(e.msg)})).catch((function(t){}))},Sure:function(){var t=this,e=this;0===this.clicktag&&(this.clicktag=1,$http.get(this.sureUrl,this.json,"加载中").then((function(n){t.clicktag=0,1===n.result?e.$dialog.alert({message:n.msg}).then((function(){"pro"===e.$route.query.tag?e.$router.push(t.fun.getUrl("ClientProject")):e.$router.push(t.fun.getUrl("ClientAppointment"))})).catch((function(){})):Object(s["a"])(n.msg)})).catch((function(e){t.clicktag=0})))}},components:{cTitle:a["a"]}},c=r,p=(n("aca4"),n("2877")),u=Object(p["a"])(c,i,o,!1,null,"d07a039a",null);e["default"]=u.exports},aca4:function(t,e,n){"use strict";n("5391")},d915:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".main[data-v-d07a039a]{text-align:left;margin:1rem 2rem 0 2rem}.main p[data-v-d07a039a]{font-size:16px;padding:.5rem 0}.btn[data-v-d07a039a]{background:#f49f19;color:#fff;width:10rem;height:2rem;line-height:2rem;border-radius:10px;margin:0 auto}",""]),t.exports=e}}]); |