(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/command/finish"],{123:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(124));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},124:function(e,n,t){"use strict";t.r(n);var o=t(125),r=t(127);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);t(129);var u,a=t(32),s=Object(a["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],u);s.options.__file="pages/command/finish.vue",n["default"]=s.exports},125:function(e,n,t){"use strict";t.r(n);var o=t(126);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},126:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return o}));try{o={uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-input/u-input")]).then(t.bind(null,200))},uImage:function(){return t.e("uview-ui/components/u-image/u-image").then(t.bind(null,179))},uCalendar:function(){return t.e("uview-ui/components/u-calendar/u-calendar").then(t.bind(null,250))},uUpload:function(){return t.e("uview-ui/components/u-upload/u-upload").then(t.bind(null,257))},uNumberBox:function(){return t.e("uview-ui/components/u-number-box/u-number-box").then(t.bind(null,264))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.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 e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.show=!0})},i=!1,u=[];r._withStripped=!0},127:function(e,n,t){"use strict";t.r(n);var o=t(128),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},128:function(e,n,t){"use strict";(function(e,o){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t(43)),u=r(t(45)),a=t(65),s=function(){t.e("components/userPrivacy/userPrivacy").then(function(){return resolve(t(271))}.bind(null,t)).catch(t.oe)},c={components:{UserPrivacy:s},data:function(){return{customStyle:{marginTop:"24rpx",fontSize:"32rpx",paddingLeft:"24rpx",background:"#f7f7f7",borderRadius:"8rpx"},customTestStyle:{"box-sizing":"border-box",marginTop:"24rpx",fontSize:"32rpx",padding:"32rpx 24rpx",background:"#f7f7f7",borderRadius:"8rpx"},show:!1,form:{id:"",complain_date:"",deal_file_ids:[],deal_idea:"",deal_evaluation:100},formData:{dir:"file_account",file_type:"file"},header:{Authorization:e.getStorageSync("token")},action:a.prodUrl+"/base/resource/upload",showUploadList:!1,lists:[],isButtonDisabled:!1}},onLoad:function(e){var n=this;this.form.id=e.id,this.$refs.privacy.getPrivacySettingFn(),o.onNeedPrivacyAuthorization((function(e,t){console.log("触发本次事件的接口是："+t.referrer),n.$refs.privacy.getPrivacySettingFn(),e({event:"disagree"})}))},onReady:function(){this.lists=this.$refs.uUpload.lists},methods:{previewImage:function(n){var t=this.lists.map((function(e){return e.url})),o=t[n];e.previewImage({current:o,urls:t})},change:function(e){console.log(e),this.form.complain_date=e.result},valChange:function(e){this.form.deal_evaluation=e.value},deleteImage:function(e){this.show=!0,this.confirmDel(e)},confirmDel:function(e){this.show=!1,this.lists.splice(e,1)},save:function(){return!this.isButtonDisabled&&(this.form.complain_date?this.form.deal_idea?(this.form.deal_file_ids=this.lists.map((function(e){return e.response.data.id})),console.log(this.form),this.isButtonDisabled=!0,void this.doCompleteFn()):(this.$u.toast("请填写完成意见！"),!1):(this.$u.toast("请选择完成日期！"),!1))},doCompleteFn:function(){var e=this;return(0,u.default)(i.default.mark((function n(){var t;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return setTimeout((function(){e.isButtonDisabled=!1}),500),n.next=3,e.$u.api.doComplete(e.form);case 3:t=n.sent,"success"===t.status&&(e.$u.toast(t.message),setTimeout((function(){e.$u.route({type:"navigateBack",url:"/pages/throughTrain/throughTrainDetails"})}),1500));case 5:case"end":return n.stop()}}),n)})))()}}};n.default=c}).call(this,t(2)["default"],t(1)["default"])},129:function(e,n,t){"use strict";t.r(n);var o=t(130),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},130:function(e,n,t){}},[[123,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/command/finish.js.map