crm_second_opening_mini/pagesA/crm/salesTarget/departmentTarget.js

11 lines
5.0 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/departmentTarget"],{"0010":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return i}));var i={uEmpty:function(){return n.e("uview-ui/components/u-empty/u-empty").then(n.bind(null,"38b8"))}},r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.list,(function(t,n){var i=e.__get_orig(t),r=String(n),c=e.checkBoxChecked.includes(String(t.id));return{$orig:i,m0:r,g0:c}}))),i=e.list.length;e.$mp.data=Object.assign({},{$root:{l0:n,g1:i}})},c=[]},"1b54":function(e,t,n){"use strict";var i=n("c99d"),r=n.n(i);r.a},"9c2e":function(e,t,n){"use strict";n.r(t);var i=n("dae7"),r=n.n(i);for(var c in i)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(c);t["default"]=r.a},"9dd4":function(e,t,n){"use strict";n.r(t);var i=n("0010"),r=n("9c2e");for(var c in r)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(c);n("1b54");var o=n("f0c5"),a=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"617421f7",null,!1,i["a"],void 0);t["default"]=a.exports},c99d:function(e,t,n){},dae7:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("76dd"),r=n("0c59");function c(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,c=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw c}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var a={props:{optionsTime:{type:Array,default:[]}},data:function(){return{BASE_IMG_URL:r.BASE_IMG_URL,optionsMoney:[{text:"成交金额",value:1},{text:"回款金额",value:2}],valueTime:0,valueMoney:0,list:[],checkBoxChecked:[],checkList:[],rules:"",info:null,isAll:!0}},onShow:function(){},created:function(){var e=this;this.optionsTime.forEach((function(t,n){t.selected&&(e.valueTime=n,console.log(e.valueTime,"1"))})),this.getList()},methods:{allChoose:function(e){var t=e.detail.value;if("all"==t[0]){this.allChecked=!0;var n,i=c(this.checkboxData);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=String(r.value);this.checkedArr.includes(o)||this.checkedArr.push(o)}}catch(a){i.e(a)}finally{i.f()}}else this.allChecked=!1,this.checkedArr=[]},changeTime:function(e){this.valueTime=e.detail.value,this.getList()},changeMoney:function(e){this.valueMoney=e.detail.value,this.getList()},getList:function(){var e=this,t={year:this.optionsTime[this.valueTime].name,status:this.optionsMoney[this.valueMoney].value};(0,i.netGetTealList)(t).then((function(t){e.isAll=!0,e.checkBoxChecked=[],e.checkList=[],e.list=t.data}))},changeChecked:function(e){if(-1!=this.checkBoxChecked.indexOf(String(e))){var t=this.checkBoxChecked.indexOf(String(e));this.checkBoxChecked.splice(t,1)}else this.checkBoxChecked.push(String(e));this.checkBoxChecked.length==this.list.length&&(this.isAll=!1),this.handleSelect()},handleSelect:function(){var e=this,t=[];this.checkBoxChecked.forEach((function(n){e.list.forEach((function(e){n==e.id&&t.push(e)}))})),this.checkList=t},selectAllmember:function(){var e=[];this.list.forEach((function(t){e.push(String(t.id))})),this.checkBoxChecked=e,this.isAll=!1,this.handleSelect(
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pagesA/crm/salesTarget/departmentTarget-create-component',
{
'pagesA/crm/salesTarget/departmentTarget-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("9dd4"))
})
},
[['pagesA/crm/salesTarget/departmentTarget-create-component']]
]);