require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/order_cancellation/index"],{4663:function(t,e,i){},"573a":function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("f076");n(i("3240"));var a=n(i("dcc7"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"58f8":function(t,e,i){"use strict";var n=i("4663"),a=i.n(n);a.a},"9f0e":function(t,e,i){"use strict";i.r(e);var n=i("b5ff"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},b5ff:function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i("6af6"),o=n(i("89cc")),r=i("5088"),d=i("8f59"),u={mixins:[o.default],data:function(){return{iShidden:!1,verify_code:"",isWeixin:"",orderInfo:{},tabOn:1,auth:1}},computed:(0,d.mapGetters)(["isLogin"]),onLoad:function(t){if(this.checkKefuAuth("kefu-order-writeoff-submit")){t.scene&&(t=this.$util.getUrlParams(decodeURIComponent(t.scene)));var e=t,i=e.auth,n=e.code;this.auth=i||1,this.verify_code=n||""}},onShow:function(){this.isLogin?3==this.auth&&this.codeChange():(0,r.toLogin)()},methods:{goOrderDetails:function(e,i){if("integral"==i)t.navigateTo({url:"/pages/points_mall/integral_order_details?order_id="+e});else{if(!this.checkKefuAuth("kefu-order-writeoff-submit"))return;t.navigateTo({url:"/pages/admin/orderDetail/index?id="+e+"&goname=look"})}},codeChange:function(){var e=this;if(this.checkKefuAuth("kefu-order-writeoff-submit")){var i=this;if(!this.verify_code)return i.$util.Tips({title:"请输入核销码"});if(!/^[0-9]*$/.test(this.verify_code))return i.$util.Tips({title:"请输入正确的核销码"});i.$util.Tips({title:"查询中"}),setTimeout((function(){(0,a.orderVerific)(e.verify_code,e.auth).then((function(n){var a=n.data.auth;i.orderInfo=n.data,n.data.is_order_code?n.data.product_type?t.navigateTo({url:"/pages/admin/writeOffCard/index?id="+n.data.data[0].id}):2==n.data.data[0].status?t.navigateTo({url:"/pages/admin/offOrderResult/index?id="+n.data.data[0].order_id}):t.navigateTo({url:"/pages/admin/distribution/scanning/detail/index?auth="+a+"&id="+n.data.data[0].id+"&let="+n.data.data.length+"&code="+e.verify_code}):n.data.product_type||(n.data.data.length?t.navigateTo({url:"/pages/admin/distribution/scanning/index?auth="+a+"&code="+e.verify_code}):t.navigateTo({url:"/pages/admin/offOrderResult/index"}))})).catch((function(t){return i.verify_code="",i.$util.Tips({title:t})}))}),800)}},scanCode:function(){if(this.checkKefuAuth("kefu-order-writeoff-submit")){var e=this;t.scanCode({success:function(t){var i=decodeURIComponent(t.path);e.verify_code=i.split("code=")[1],e.codeChange()}})}},confirm:function(){if(this.checkKefuAuth("kefu-order-writeoff-submit")){var t=this;(0,a.orderVerific)(this.verify_code,1).then((function(e){t.verify_code="",t.iShidden=!1,t.$util.Tips({title:e.msg})})).catch((function(e){t.$util.Tips({title:e})}))}},cancel:function(){this.iShidden=!1},onTab:function(t){this.tabOn=t}}};e.default=u}).call(this,i("df3c")["default"])},c34d:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},a=[]},dcc7:function(t,e,i){"use strict";i.r(e);var n=i("c34d"),a=i("9f0e");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("58f8");var r=i("828b"),d=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=d.exports}},[["573a","common/runtime","common/vendor"]]]);