1 |
- webpackJsonp([123],{RfEw:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("VvnH"),s=a("PJh5"),o=a.n(s),n={name:"remberOne",components:{Mtextarea:r.a},data:function(){return{data:{work_id:0,process:[]},process:{recorder_id:this.$userInfo().id,recorder:this.$userInfo().name,remark:"",point:0,img_url:this.$userInfo().img_url,time:o()().format("YYYY-MM-DD HH:mm")},send_loading:!1}},methods:{data_verify:function(){var e=this;e.$validator.validateAll().then(function(t){t?e.send():e.$notify({type:"danger",message:e.$validator.errors.items[0].msg})})},send:function(){var e=this;if(!this.process.remark)return e.$toast("请输入内容"),!1;e.send_loading=!0,e.$toast.loading({message:"正在处理"});var t=[],a=JSON.parse(localStorage.getItem("task_process_array"));for(var r in t.push(this.process),a)t.push(a[r]);e.data.process=t,this.$axiosUser("post","/api/pro/integral/work",e.data).then(function(t){1==t.data.code?(e.send_loading=!1,e.$toast.clear(),e.$toast.success(t.data.msg),setTimeout(function(){e.$route_back()},500)):e.$toast(t.data.msg)}).catch(function(t){e.send_loading=!1,e.$toast.clear()})}},created:function(){this.$route.query.work_id&&(this.data.work_id=this.$route.query.work_id)}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("van-nav-bar",{attrs:{title:"任务记录","left-text":"返回","left-arrow":""},on:{"click-left":e.$route_back}}),e._v(" "),a("div",{staticClass:"body_com has_header"},[a("scroller",[a("van-cell-group",[a("van-cell",[a("Mtextarea",{attrs:{placeholder:"请认真填写做这件事的关键过程",text_max:100},model:{value:e.process.remark,callback:function(t){e.$set(e.process,"remark",t)},expression:"process.remark"}})],1)],1),e._v(" "),a("div",{staticStyle:{padding:"0.32rem"}},[a("van-button",{attrs:{size:"large",type:"info"},on:{click:e.data_verify}},[e._v("完成")])],1)],1)],1)],1)},staticRenderFns:[]};var c=a("VU/8")(n,i,!1,function(e){a("eZ/F")},"data-v-4f95f6d7",null);t.default=c.exports},"eZ/F":function(e,t){}});
|