12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_managedata/changeVip"],{403:function(t,e,n){"use strict";(function(t,e){var o=n(4);n(26);o(n(25));var s=o(n(404));t.__webpack_require_UNI_MP_PLUGIN__=n,e(s.default)}).call(this,n(1)["default"],n(2)["createPage"])},404:function(t,e,n){"use strict";n.r(e);var o=n(405),s=n(407);for(var i in s)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(i);n(409);var r,c=n(34),u=Object(c["default"])(s["default"],o["render"],o["staticRenderFns"],!1,null,"6fba3476",null,!1,o["components"],r);u.options.__file="pages_managedata/changeVip.vue",e["default"]=u.exports},405:function(t,e,n){"use strict";n.r(e);var o=n(406);n.d(e,"render",(function(){return o["render"]})),n.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(e,"components",(function(){return o["components"]}))},406:function(t,e,n){"use strict";var o;n.r(e),n.d(e,"render",(function(){return s})),n.d(e,"staticRenderFns",(function(){return r})),n.d(e,"recyclableRender",(function(){return i})),n.d(e,"components",(function(){return o}));try{o={uPicker:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-picker/u-picker")]).then(n.bind(null,729))},uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(n.bind(null,561))},uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,505))},uTag:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-tag/u-tag")]).then(n.bind(null,543))},uSearch:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-search/u-search")]).then(n.bind(null,666))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var s=function(){var t=this,e=t.$createElement,n=(t._self._c,t.tagsuserlist.length),o=t.projectlist.length,s=t.columnsa.length;t._isMounted||(t.e0=function(e){t.show=!t.show},t.e1=function(e){t.showb=!t.showb},t.e2=function(e){t.showvip=!t.showvip},t.e3=function(e){t.showproject=!t.showproject},t.e4=function(e){t.showproject=!t.showproject},t.e5=function(e){t.showPop=!t.showPop},t.e6=function(e){t.triggereds=!1},t.e7=function(e){t.triggereds=!1}),t.$mp.data=Object.assign({},{$root:{g0:n,g1:o,g2:s}})},i=!1,r=[];s._withStripped=!0},407:function(t,e,n){"use strict";n.r(e);var o=n(408),s=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=s.a},408:function(t,e,n){"use strict";(function(t){var o=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=o(n(11)),i=n(274);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,s.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={data:function(){return{list:[{name:"更换全部会员归属",text:"一键更换全部会员归属"},{name:"更换部分会员归属",text:"通过筛选,定位会员更换归属"}],active:0,show:!1,columns:[],columnsa:[],columnsb:[],border:!1,groupList:[],showa:!1,showb:!1,userid:0,username:"",usertag:"",tagsid:[],showvip:!1,groupid:0,tagsuser:"",tagsuserlist:[],showproject:!1,projectuser:"",projectlist:[],user:[],usertagsid:[],showPop:!1,tagkeywords:"",tagpageNum:1,tagpageSize:10,triggereds:!1,statusA:"loadmore",isEnableds:!0,pagetag:[],ids:[],projectid:[]}},onLoad:function(t){this.groupid=t.id,console.log(t)},mounted:function(){this.user=t.getStorageSync("companyUserInfo")?JSON.parse(t.getStorageSync("companyUserInfo")):{}},methods:{getproject:function(){var e=this,n={companyUserId:this.groupid,tagIds:this.tagsid};(0,i.getprojectChange)(n).then((function(n){200==n.code?e.projectlist=n.data.map((function(t){return c(c({},t),{},{checked:!1})})):t.showToast({title:n.msg,icon:"none",duration:1e3})}))},resetPop:function(){this.tagkeywords="",this.usertag="",this.projectuser="",this.ids=[],this.projectid=[],this.tagpageNum=1,this.gettaglist()},getcompanyTag:function(t){this.tagkeywords=t,this.tagpageNum=1,this.gettaglist()},confirmPop:function(){this.showPop=!1,this.usertag=this.columnsa.filter((function(t){return t.checked})).map((function(t){return t.tag})).join(","),this.tagsid=this.columnsa.filter((function(t){return t.checked})).map((function(t){return t.tagId})),this.projectid=[],this.projectuser="",this.ids=[],this.tagsuser=""},chooseTag:function(t){this.columnsa[t].checked=!this.columnsa[t].checked},getTagpage:function(e){"last"==e?this.tagpageNum>=2?(this.tagpageNum--,this.gettaglist()):t.showToast({title:"已经是第一页",icon:"none",duration:1e3}):this.tagpageNum<this.pagetag.pages?(this.tagpageNum++,this.gettaglist()):t.showToast({title:"已经是最后一页",icon:"none",duration:1e3})},pullDownRefreshs:function(){var e=this;this.triggereds=!0,setTimeout((function(){e.triggereds=!1,t.stopPullDownRefresh(),e.tagpageNum=1,e.gettaglist("refresh")}),1e3)},closePop:function(){this.showPop=!this.showPop,console.log(123)},checkboxClick:function(t){this.tagsuserlist[t].checked=!this.tagsuserlist[t].checked},checkproClick:function(t){this.projectlist[t].checked=!this.projectlist[t].checked},getprojectid:function(){this.projectid=this.projectlist.filter((function(t){return t.checked})).map((function(t){return t.dictValue})),this.projectuser=this.projectlist.filter((function(t){return t.checked})).map((function(t){return t.dictLabel})).join(","),this.showproject=!this.showproject,this.ids=[],this.tagsuser=""},getuserid:function(){this.tagsuser=this.tagsuserlist.filter((function(t){return t.checked})).map((function(t){return t.userName})).join(","),this.ids=this.tagsuserlist.filter((function(t){return t.checked})).map((function(t){return{projectId:t.projectId,userId:t.userId}})),console.log(this.ids),this.showvip=!this.showvip},close:function(){this.showvip=!this.showvip},open:function(){},changeproject:function(){this.showproject=!this.showproject,this.projectlist=[],this.getproject()},changelabelvip:function(){this.showvip=!this.showvip,this.tagsuserlist=[],this.gettagUserlist()},gettagUserlist:function(){var t=this,e={tagIds:this.tagsid,projectIds:this.projectid,companyUserId:this.groupid};(0,i.gettagsUser)(e).then((function(e){200==e.code&&(t.tagsuserlist=e.data.map((function(t){return c(c({},t),{},{checked:!1})})),console.log(t.tagsuserlist))}))},changeall:function(){var e={from:this.groupid,to:this.userid,type:this.active,ids:this.ids,tagList:this.tagsid,project:this.projectid};(0,i.changevipUserAll)(e).then((function(e){200==e.code?t.showToast({icon:"none",title:"更换会员归属成功"}):t.showToast({icon:"none",title:e.msg})}))},sure:function(){0==this.active?""==this.userid?t.showToast({icon:"none",title:"请选择接收销售"}):this.changeall():0==this.ids.length&&0==this.projectid.length&&0==this.tagsid.length?t.showToast({icon:"none",title:"请选择标签或者项目"}):""==this.userid?t.showToast({icon:"none",title:"请选择接收销售"}):this.changeall()},receiveC:function(t){this.username=t.value[0].nickName,this.userid=t.value[0].userId,this.showb=!this.showb},receiveA:function(t){this.username=t.value[0].nickName,this.userid=t.value[0].userId,this.show=!this.show},change:function(t){this.active=t,this.username=""},selsome:function(){console.log(12),this.show=!0,this.getgrouplist()},changelabel:function(){this.showPop=!0,this.gettaglist()},changeuser:function(){this.showb=!0,this.getgrouplist()},gettaglist:function(e){var n=this;t.showLoading({title:"加载中..."});var o={pageNum:this.tagpageNum,pageSize:this.tagpageSize,keyword:this.tagkeywords,companyUserId:this.groupid};(0,i.getallTags)(o).then((function(e){if(200==e.code){t.hideLoading();var o=e.data.list.map((function(t){return c(c({},t),{},{checked:!1})}));n.columnsa=o,e.data.isLastPage?n.statusA="nomore":n.statusA="loadmore",n.pagetag=e.data,n.changetag=n.columnsa}else t.hideLoading(),t.showToast({icon:"none",title:e.msg})}))},getgrouplist:function(){var e=this;(0,i.getgroupList)().then((function(n){200==n.code?(e.columns=[n.data],e.columnsb=[n.data],console.log(e.columns)):t.showToast({icon:"none",title:n.msg})}))}}};e.default=u}).call(this,n(2)["default"])},409:function(t,e,n){"use strict";n.r(e);var o=n(410),s=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=s.a},410:function(t,e,n){}},[[403,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/pages_managedata/changeVip.js.map
|