webpackJsonp([108],{"3XKl":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});e("1O2T");var n=e("sXqm"),o=(e("NjV0"),e("dq/I")),i=(e("LlGJ"),e("Wtz3")),r=e("mrPP"),s=e("EUN7"),d=e("vLgD"),l=e("7+uW");l.a.use(i.a),l.a.use(o.a),l.a.use(n.a);var c={name:"performance",components:{Mtextarea:r.a,EmployeeSelectorCell:s.a},data:function(){return{data:{package_id:0,point:0,remark:""},employee_id:0,month:""}},methods:{get_data:function(){var t=this;t.$toast.loading({message:"正在加载"}),Object(d.a)({url:"/api/integral/performance/info",method:"get",params:{employee_id:this.employee_id,month:this.month}}).then(function(a){t.$toast.clear(),t.data.point=a.data.data.base_point,t.data.package_id=a.data.data.id}).catch(function(t){})},send:function(){var t=this;return""==this.data.point?(this.$toast("请输入积分"),!1):""==this.data.remark?(this.$toast("请填写意见"),!1):(t.send_loading=!0,t.$toast.loading({message:"正在处理"}),void Object(d.a)({url:"/api/integral/performance",method:"put",data:t.data}).then(function(a){1==a.data.code?(t.send_loading=!1,t.$toast.clear(),t.$toast.success(a.data.msg),t.$keep_alive_update("efficiency_detail_update",t.data),setTimeout(function(){t.$route_back()},500)):t.$toast.fail(a.data.msg)}).catch(function(a){t.send_loading=!1,t.$toast.clear()}))}},created:function(){this.$route.query.employee_id&&(this.employee_id=this.$route.query.employee_id,this.month=this.$route.query.month),this.get_data()}},u={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("van-nav-bar",{attrs:{title:"绩效审批","left-text":"返回","left-arrow":""},on:{"click-left":t.$route_back}}),t._v(" "),e("div",{staticClass:"body_com has_header"},[e("scroller",[e("van-cell-group",[e("div",{staticClass:"red",attrs:{slot:"title"},slot:"title"},[t._v("绩效与工资挂钩,建议在月绩效评审会最终确认后提交此项分值")]),t._v(" "),e("van-field",{attrs:{label:"积分",placeholder:"请输入积分",required:""},model:{value:t.data.point,callback:function(a){t.$set(t.data,"point",a)},expression:"data.point"}})],1),t._v(" "),e("van-cell-group",[e("van-cell",[e("Mtextarea",{attrs:{text_max:100,placeholder:"填写意见(必填)"},model:{value:t.data.remark,callback:function(a){t.$set(t.data,"remark",a)},expression:"data.remark"}})],1)],1),t._v(" "),e("div",{staticStyle:{padding:"0.32rem"}},[e("van-button",{attrs:{size:"large",type:"info"},on:{click:t.send}},[t._v("提交")])],1)],1)],1)],1)},staticRenderFns:[]};var m=e("VU/8")(c,u,!1,function(t){e("tCvQ")},"data-v-0fb7c1e0",null);a.default=m.exports},tCvQ:function(t,a){}});