(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/command/commandDetails"],{107:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var a=r(t(108));e.__webpack_require_UNI_MP_PLUGIN__=t,n(a.default)}).call(this,t(1)["default"],t(2)["createPage"])},108:function(e,n,t){"use strict";t.r(n);var r=t(109),a=t(111);for(var i in a)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(i);t(113);var u,o=t(32),s=Object(o["default"])(a["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],u);s.options.__file="pages/command/commandDetails.vue",n["default"]=s.exports},109:function(e,n,t){"use strict";t.r(n);var r=t(110);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},110:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return a})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return r}));try{r={uDivider:function(){return t.e("uview-ui/components/u-divider/u-divider").then(t.bind(null,236))},uTag:function(){return t.e("uview-ui/components/u-tag/u-tag").then(t.bind(null,229))},uImage:function(){return t.e("uview-ui/components/u-image/u-image").then(t.bind(null,179))}}}catch(o){if(-1===o.message.indexOf("Cannot find module")||-1===o.message.indexOf(".vue"))throw o;console.error(o.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var a=function(){var e=this,n=e.$createElement,t=(e._self._c,"3"==e.type?e.relevant_document_urls.length:null),r="3"==e.type?e.relevant_document_urls.length:null;e.$mp.data=Object.assign({},{$root:{g0:t,g1:r}})},i=!1,u=[];a._withStripped=!0},111:function(e,n,t){"use strict";t.r(n);var r=t(112),a=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=a.a},112:function(e,n,t){"use strict";(function(e){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=r(t(43)),i=r(t(45)),u={data:function(){return{form:{id:""},type:"",detail:{},relevant_document_urls:[],buttonPermission:!1,admin:!1,department:""}},onLoad:function(e){this.form.id=e.id,console.log(this.userDepartment,"userRoles",this.userRoles);var n=this.userRoles,t=n.filter((function(e){return"admin"==e.name}));t.length>0?this.admin=!0:this.admin=!1,this.department=this.userDepartment},onShow:function(){this.commandDetailsFn()},methods:{previewImage:function(n){var t=this.relevant_document_urls.map((function(e){return e.url})),r=t[n];e.previewImage({current:r,urls:t})},goPage:function(e){switch(e){case"application":this.$u.route("/pages/command/application",{id:this.form.id,type:"1"});break;case"finish":this.$u.route("/pages/command/finish",{id:this.form.id});break;case"audit":this.$u.route("/pages/command/application",{id:this.form.id,type:"2"});break;default:console.log("Unknown fruit");break}},commandDetailsFn:function(){var e=this;return(0,i.default)(a.default.mark((function n(){var t;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$u.api.commandDetails(e.form);case 2:t=n.sent,"success"===t.status&&(e.type=t.data.deal_status,e.detail=t.data,e.relevant_document_urls=t.data.deal_file);case 4:case"end":return n.stop()}}),n)})))()}}};n.default=u}).call(this,t(2)["default"])},113:function(e,n,t){"use strict";t.r(n);var r=t(114),a=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=a.a},114:function(e,n,t){}},[[107,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/command/commandDetails.js.map