webpackJsonp([97],{CY5w:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});a("PEgo");var i=a("HNZ3"),r=(a("WJbf"),a("OhwO")),n=a("7+uW"),s=a("2q/B");n.a.use(i.a).use(r.a);var o={components:{Uploader:s.a},name:"accomplishTask",data:function(){return{id:0,files:[],accept:"image/jpeg,image/png,image/jpg",remark:""}},created:function(){this.$route.query.id&&(this.id=this.$route.query.id)},methods:{sava:function(){var e=this;this.$axiosUser("post","/api/pro/sm/rectify",{rectify_id:this.id,remark:this.remark,files:this.files.toString()}).then(function(t){setTimeout(function(){e.$toast("已提交"),e.$route_back()},500)})},beforeRead:function(e){var t=/^image\/(jpeg|png|jpg)$/.test(e.type);return t||this.$toast("上传图片只能是 jpeg|png|jpg 格式!"),t}}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{height:"100%"}},[a("van-nav-bar",{attrs:{title:"完成任务","left-text":"返回","left-arrow":""},on:{"click-left":e.$route_back}}),e._v(" "),a("div",{staticClass:"planText"},[a("van-cell-group",{staticStyle:{"margin-top":"0rem"}},[a("van-field",{attrs:{label:"备注",rows:"3",type:"textarea",autosize:"",maxlength:"500",placeholder:"请填写完成备注(选填)","show-word-limit":""},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}}),e._v(" "),a("van-cell",[a("Uploader",{attrs:{"max-count":3,beforeRead:e.beforeRead,accept:e.accept},model:{value:e.files,callback:function(t){e.files=t},expression:"files"}})],1)],1),e._v(" "),a("div",{staticStyle:{padding:"0.32rem"}},[a("van-button",{attrs:{type:"info",block:""},on:{click:e.sava}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var l=a("VU/8")(o,c,!1,function(e){a("Q5aq")},"data-v-689790b8",null);t.default=l.exports},Q5aq:function(e,t){}});