crm_second_opening_mini/pagesA/crm/salesTarget/companyTarget.js

11 lines
3.6 KiB
JavaScript
Raw Permalink Normal View History

2023-03-13 01:13:08 +00:00
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/crm/salesTarget/companyTarget"],{"0481":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;this._self._c},i=[]},"15f3":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"),n={props:{optionsTime:{type:Array,default:[]}},data:function(){return{BASE_IMG_URL:i.BASE_IMG_URL,optionsMoney:[{text:"成交金额",value:1},{text:"回款金额",value:2}],valueTime:0,valueMoney:0,list:[],checkBoxChecked:[],checkList:[],january:"",february:"",march:"",april:"",may:"",june:"",july:"",august:"",september:"",october:"",november:"",december:"",yeartarget:""}},onShow:function(){},created:function(){var e=this;this.optionsTime.forEach((function(t,a){t.selected&&(e.valueTime=a)})),this.getList()},methods:{changeMoneyType:function(e){this.valueTime=e.detail.value,this.getList()},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},getList:function(){var e=this,t={year:this.optionsTime[this.valueTime].name,status:this.optionsMoney[this.valueMoney].value};(0,r.netGetGongsiList)(t).then((function(t){t=t.data,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},handleParams:function(){var e=this.optionsTime[this.valueTime].id,t=(this.optionsTime[this.valueTime].name,this.optionsMoney[this.valueMoney].value),a={year:e,status:t,type:1,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:1};return a},sureSave:function(){var t=this.handleParams();(0,r.netSetTargetMoney)(t).then((function(t){e.showToast({title:t.msg,icon:"none"}),setTimeout((function(){e.navigateBack({delta:1})}),2e3)}))}}};t.default=n}).call(this,a("543d")["default"])},"296e":function(e,t,a){"use strict";a.r(t);var r=a("15f3"),i=a.n(r);for(var n in r)["default"].indexOf(n)<0&&function(e){a.d(t,e,(function(){return r[e]}))}(n);t["default"]=i.a},4813:function(e,t,a){"use strict";a.r(t);var r=a("0481"),i=a("296e");for(var n in i)["default"].indexOf(n)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(n);a("e926");var u=a("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"76d2f410",null,!1,r["a"],void 0);t["default"]=s.exports},a6c1:function(e,t,a){},e926:function(e,t,a){"use strict";var r=a("a6c1"),i=a.n(r);i.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pagesA/crm/salesTarget/companyTarget-create-component',
{
'pagesA/crm/salesTarget/companyTarget-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("4813"))
})
},
[['pagesA/crm/salesTarget/companyTarget-create-component']]
]);