(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/clerk/detail/detail"],{"0500":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("2f62");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(){n.e("components/page-component/app-clerk-historys/app-clerk-historys").then(function(){return resolve(n("34d5"))}.bind(null,n)).catch(n.oe)},d=function(){n.e("components/basic-component/app-order/app-form-data").then(function(){return resolve(n("fbd6"))}.bind(null,n)).catch(n.oe)},u={name:"detail",components:{appClerkHistorys:c,appFormData:d},data:function(){return{haveForm:!0,detail:{start_time:"",end_time:""},card_id:null,checkPay:!1,id:null,isShow:!1}},computed:a({},(0,i.mapState)({clerkImg:function(t){return t.mallConfig.__wxapp_img.clerk},mall:function(t){return t.mallConfig.mall}})),onLoad:function(e){this.$commonLoad.onload(e),this.$showLoading({text:"加载中..."}),e.id>0?(this.id=e.id,t.setNavigationBarTitle({title:"订单详情"})):e.card_id>0&&(this.card_id=e.card_id,t.setNavigationBarTitle({title:"卡券详情"}))},onShow:function(){this.id>0?this.getDetail():this.card_id>0&&this.getCardDetail()},methods:{showForm:function(t){console.log(t),this.haveForm=!(!t||!t.length)},toClerk:function(e){t.navigateTo({url:"/pages/order/clerk/clerk?id="+e})},toClerkCard:function(e){t.navigateTo({url:"/pages/card/clerk/clerk?cardId="+e})},getDetail:function(){var e=this;e.$request({url:e.$api.clerk.detail,data:{order_id:this.id}}).then((function(n){e.$hideLoading(),0==n.code?e.detail=n.data.order:t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){e.$hideLoading()}))},getCardDetail:function(){var e=this;e.$request({url:e.$api.clerk.card_detail,data:{cardId:this.card_id}}).then((function(n){e.$hideLoading(),0==n.code?e.detail=n.data.card:t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){e.$hideLoading()}))},clerkAffirmPay:function(){var e=this;e.$request({url:e.$api.order.clerk_affirm_pay,data:{id:e.id,action_type:1}}).then((function(n){e.$hideLoading(),0==n.code?(e.checkPay=!e.checkPay,e.getDetail()):t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){e.$hideLoading()}))}}};e.default=u}).call(this,n("543d")["default"])},"130e":function(t,e,n){"use strict";n.r(e);var i=n("6da7"),r=n("f9b3");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("574c");var o,c=n("f0c5"),d=Object(c["a"])(r["default"],i["b"],i["c"],!1,null,"3177ab62",null,!1,i["a"],o);e["default"]=d.exports},"171b":function(t,e,n){"use strict";(function(t){n("2d0a");i(n("66fd"));var e=i(n("130e"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"574c":function(t,e,n){"use strict";var i=n("9b1b"),r=n.n(i);r.a},"6da7":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.isShow=!0},t.e1=function(e){t.checkPay=!t.checkPay},t.e2=function(e){t.checkPay=!t.checkPay})},a=[]},"9b1b":function(t,e,n){},f9b3:function(t,e,n){"use strict";n.r(e);var i=n("0500"),r=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a}},[["171b","common/runtime","common/vendor"]]]);