require('../../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/crm/salesTarget/setPerfGoal/setPerfGoal"],{"17bf":function(e,t,a){"use strict";a.r(t);var r=a("724c"),i=a.n(r);for(var s in r)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return r[e]}))}(s);t["default"]=i.a},"20f8":function(e,t,a){},"419c":function(e,t,a){"use strict";a.r(t);var r=a("70f6"),i=a("17bf");for(var s in i)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(s);a("a866");var u=a("f0c5"),n=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"5464df1c",null,!1,r["a"],void 0);t["default"]=n.exports},"70f6":function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var r=function(){var e=this.$createElement,t=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:t}})},i=[]},"724c":function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a("76dd"),i=a("0c59"),s={data:function(){return{BASE_IMG_URL:i.BASE_IMG_URL,year:"",yearid:"",status:"",type:"",ids:"",list:[],january:"",february:"",march:"",april:"",may:"",june:"",july:"",august:"",september:"",october:"",november:"",december:"",yeartarget:""}},onLoad:function(e){this.type=e.type,this.year=e.year,this.status=e.status,this.yearid=e.yearid},onShow:function(){this.list=e.getStorageSync("member"),this.getDefault()},methods:{changeMoney:function(e){var t=Number(this.january)+Number(this.february)+Number(this.march)+Number(this.april)+Number(this.may)+Number(this.june)+Number(this.july)+Number(this.august)+Number(this.september)+Number(this.october)+Number(this.november)+Number(this.december);this.yeartarget=t},handleParams:function(){var e=[];this.list.forEach((function(t){e.push(t.id)}));var t={year:this.yearid,status:this.status,type:this.type,achievements:{january:this.january,february:this.february,march:this.march,april:this.april,may:this.may,june:this.june,july:this.july,august:this.august,september:this.september,october:this.october,november:this.november,december:this.december,yeartarget:this.yeartarget},ids:e.join(",")};return t},getDefault:function(){var e=this,t=[];this.list.forEach((function(e){t.push(e.id)}));var a={year:this.yearid,status:this.status,type:this.type,ids:t.join(",")};(0,r.netGetDefaultMoney)(a).then((function(t){t=t.data,t&&(e.january=t.january,e.february=t.february,e.march=t.march,e.april=t.april,e.may=t.may,e.june=t.june,e.july=t.july,e.august=t.august,e.september=t.september,e.october=t.october,e.november=t.november,e.december=t.december,e.yeartarget=t.yeartarget)}))},handelMoney:function(e){var t=e.detail.value,a=(Number(t)/12).toFixed(2);this.january=a,this.february=a,this.march=a,this.april=a,this.may=a,this.june=a,this.july=a,this.august=a,this.september=a,this.october=a,this.november=a,this.december=a},sureSave:function(){var t=this.handleParams();(0,r.netSetTargetMoney)(t).then((function(t){e.showToast({title:t.msg,icon:"none"}),e.setStorageSync("isSave",!0),setTimeout((function(){e.navigateBack({delta:1})}),2e3)}))}}};t.default=s}).call(this,a("543d")["default"])},"9cbc":function(e,t,a){"use strict";(function(e,t){var r=a("4ea4");a("8886");r(a("66fd"));var i=r(a("419c"));e.__webpack_require_UNI_MP_PLUGIN__=a,t(i.default)}).call(this,a("bc2e")["default"],a("543d")["createPage"])},a866:function(e,t,a){"use strict";var r=a("20f8"),i=a.n(r);i.a}},[["9cbc","common/runtime","common/vendor"]]]);