(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/cancel-audit/cancel-audit"],{237:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var r=o(t(238));n.__webpack_require_UNI_MP_PLUGIN__=t,e(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},238:function(n,e,t){"use strict";t.r(e);var o=t(239),r=t(241);for(var c in r)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(c);t(243),t(245);var a,i=t(32),d=Object(i["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"1e8c05f4",null,!1,o["components"],a);d.options.__file="pages/cancel-audit/cancel-audit.vue",e["default"]=d.exports},239:function(n,e,t){"use strict";t.r(e);var o=t(240);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},240:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return a})),t.d(e,"recyclableRender",(function(){return c})),t.d(e,"components",(function(){return o}));try{o={uPopup:function(){return t.e("node-modules/uview-ui/components/u-popup/u-popup").then(t.bind(null,481))}}}catch(i){if(-1===i.message.indexOf("Cannot find module")||-1===i.message.indexOf(".vue"))throw i;console.error(i.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var r=function(){var n=this,e=n.$createElement,t=(n._self._c,n.goods?n._f("totalPrice")(n.goods):null),o=n.goods?n._f("totalNum")(n.goods):null,r=n.goods?n._f("totalPrice")(n.goods):null;n._isMounted||(n.e0=function(e){n.isReject=!0},n.e1=function(e){n.isReject=!1,n.remark=""}),n.$mp.data=Object.assign({},{$root:{f0:t,f1:o,f2:r}})},c=!1,a=[];r._withStripped=!0},241:function(n,e,t){"use strict";t.r(e);var o=t(242),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=r.a},242:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;t(63);var o=t(71),r=t(64),c={data:function(){return{isReject:!1,remark:"",orderCancel:"",orderInfo:"",address:"",goods:"",cancelId:","}},onLoad:function(n){this.cancelId=n.id,n.order_no&&this.getOrder(n.order_no)},methods:{copy:function(e){(0,r.handleClipboard)(e,event,(function(){n.showToast({icon:"none",title:"复制成功"})}),(function(){n.showToast({icon:"none",title:"复制失败"})}))},getOrder:function(e){var t=this;(0,o.orderQuery)({order_no:e}).then((function(e){200==e.code?(t.orderInfo=e.data,t.orderCancel=e.data.order_cancel,t.address=e.data.address,t.goods=e.data.goods):n.showModal({content:e.data||"获取订单详情失败",showCancel:!1})}))},skipDetail:function(){n.navigateTo({url:"../order-info/order-info?order_no="+this.orderInfo.order_no})},cancelAudit:function(e){var t=this;if(n.showLoading({title:"处理中..."}),3==e&&!this.remark)return n.showToast({title:"请输入驳回原因",icon:"none"}),!1;(0,o.cancelAudit)({id:this.cancelId,remark:this.remark,type:e}).then((function(o){n.hideLoading(),200==o.code?(t.isReject=!1,n.showModal({content:"已".concat(3==e?"驳回":"通过","用户申请"),showCancel:!1,success:function(e){e.confirm&&n.navigateBack()}})):n.showModal({content:o.data||"".concat(3==e?"驳回":"通过","用户申请失败"),showCancel:!1})}))},operaCancel:function(e){var t=this;if(2==e)return n.showModal({content:"你确定要通过该申请么？",success:function(n){n.confirm&&t.cancelAudit(2)}}),!1;this.cancelAudit(3)}}};e.default=c}).call(this,t(2)["default"])},243:function(n,e,t){"use strict";t.r(e);var o=t(244),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=r.a},244:function(n,e,t){},245:function(n,e,t){"use strict";t.r(e);var o=t(246),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=r.a},246:function(n,e,t){}},[[237,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/cancel-audit/cancel-audit.js.map