{"version":3,"sources":["webpack:///./src/webapp/consumer_manage/consumers-difference/index.vue?81b9","webpack:///./src/webapp/consumer_manage/consumers-difference/apis.js","webpack:///src/webapp/consumer_manage/consumers-difference/index.vue","webpack:///./src/webapp/consumer_manage/consumers-difference/index.vue?9512","webpack:///./src/webapp/consumer_manage/consumers-difference/index.vue","webpack:///./src/webapp/consumer_manage/consumers-difference/index.vue?4287","webpack:///./src/apis/regExp.js","webpack:///./src/apis/index.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","on","onReback","_v","_m","_b","ref","onSearch","table","isShow","$event","staticStyle","_s","checkedName","model","value","callback","$$v","checkList","expression","_l","it","key","label","slot","onCancel","length","onSure","staticRenderFns","partnerId","window","global","$tools","auth","getCurrentUserInfo","Server","Api","getCheckDuplicates","opt","cb","err","$http","get","path","apiMps","params","clearAllNull","then","data","error","getCanMerginCustomers","postMerginCustomers","o","post","h","self","hasclear","page","total","setSize","loadingTimeOut","cols","prop","bind","props","fixed","fuc","row","imgs","avatar","headimgurl","filter","item","index","map","marginLeft","onloadError","width","minWidth","type","nickname","corp_full_name","corp_name","mobile","split","replace","join","wx_username","from_type","gmt_create","moment","format","i","btn","no","hide","click","$apis","id","selections","Object","assign","btns","currentPage","created","$axios","$message","warning","mounted","$refs","$search","methods","$router","go","size","$nextTick","$startLoading","pageIndex","pageSize","$stopLoading","Number","employeeId","employeeName","success","e","target","getAttribute","includes","src","location","origin","Date","now","component","email","apiCrmOS","apiCrmUs","constructor","http","axios","allError","isadd","res","response","headers","resData","msg","errors","message","obj","Array","forEach","push","String","trim","regExp","stack"],"mappings":"8HAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,2BAA2B,CAACF,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,YAAY,CAACG,MAAM,CAAC,KAAO,OAAO,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SAAUF,GAChJ,OAAOA,EAAK4E,WACX9D,KAAK,OAAW,gBAQ3BnD,EAAOQ,KAAOA,EACCR","file":"js/consumer-difference.7678662b.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mod-consumer-difference\"},[_c('div',{staticClass:\"header-content\"},[_c('el-button',{attrs:{\"type\":\"text\",\"icon\":\"el-icon-arrow-left\"},on:{\"click\":_vm.onReback}},[_vm._v(\"返回\")]),_c('span',{staticClass:\"title-hr\"},[_vm._v(\"|\")]),_c('h5',{staticClass:\"page-title\"},[_vm._v(\"用户查重\")])],1),_vm._m(0),_c('jw-table',_vm._b({ref:\"table\",on:{\"search\":_vm.onSearch}},'jw-table',_vm.table,false)),_c('el-dialog',{attrs:{\"title\":\"合并提示\",\"visible\":_vm.isShow,\"width\":\"600px\"},on:{\"update:visible\":function($event){_vm.isShow=$event}}},[_c('p',{staticStyle:{\"margin-bottom\":\"10px\"}},[_vm._v(\"有如下用户的微信昵称与用户【\"+_vm._s(_vm.checkedName)+\"】相同,可勾选合并用户,未勾选则视为不合并\")]),_c('el-checkbox-group',{model:{value:(_vm.checkList),callback:function ($$v) {_vm.checkList=$$v},expression:\"checkList\"}},_vm._l((_vm.selections),function(it){return _c('el-checkbox',{key:it.value,attrs:{\"label\":it.value}},[_vm._v(_vm._s(it.label))])}),1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.onCancel}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"disabled\":!_vm.checkList.length},on:{\"click\":_vm.onSure}},[_vm._v(\"确 定\")])],1)],1)],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"header-tips\"},[_c('i',{staticClass:\"el-icon-warning\",staticStyle:{\"margin-right\":\"4px\"}}),_vm._v(\"提示:系统将根据「微信昵称」字段进行查重;有关联企微的用户之间,无法执行合并操作。\")])}]\n\nexport { render, staticRenderFns }","import Api from '@/apis/index.js'\nconst { partnerId } = window.global.$tools.auth.getCurrentUserInfo()\n\nexport default class Server extends Api {\n getCheckDuplicates (opt, cb, err) {\n this.$http.get(`${Api.path.apiMps}/partner/${partnerId}/visitor-user-management/check-duplicate`, { params: Api.clearAllNull(opt) }).then(({ data }) => {\n cb(data)\n }, this.error(err))\n }\n\n getCanMerginCustomers (params, cb, err) {\n this.$http.get(`${Api.path.apiMps}/partner/${partnerId}/visitor-user-management/check-duplicate/merge`, { params }).then(({ data }) => {\n cb(data)\n }, this.error(err))\n }\n\n postMerginCustomers (o, cb, err) {\n this.$http.post(`${Api.path.apiMps}/partner/${partnerId}/visitor-user-management/check-duplicate/merge`, o).then(({ data }) => {\n cb(data)\n }, this.error(err))\n }\n}\n","\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=4ef80e84\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=4ef80e84&prod&lang=less\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=4ef80e84&prod&lang=less\"","export default {\n email: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/\n}\n","import regExp from './regExp'\nimport axios from 'axios'\nconst path = {\n apiMps: '/saas-ability-mps/v1',\n apiCrmOS: '/paas-ability-os/v1/',\n apiCrmUs: '/paas-ability-us/v1/'\n}\n\nclass Server {\n constructor (http = axios, allError = window.global.$message.warning) {\n this.$http = http\n this.error = function (err, isadd, cb) {\n return function (res) {\n const { response } = res\n if (!(response && response.headers && response.headers['x-response-by'] && response.headers['x-response-by'] === 'gateway')) {\n if (err) {\n err(res.data)\n }\n if (isadd || !err) {\n const resData = res.response.data\n const msg = resData.errors && resData.errors.map(function (item) {\n return item.message || item.msg\n }).join(',')\n allError(msg || resData.message || resData.msg || '系统异常,请稍后再试!')\n }\n }\n cb && cb()\n }\n }\n }\n // 提供方法清空所有为空的字段\n static clearAllNull (obj) {\n let o\n if (obj instanceof Array) {\n o = []\n obj.forEach(function (item) {\n o.push(Server.clearAllNull(item))\n })\n } else if (obj instanceof Object) {\n o = Object.assign({}, obj)\n for (const key in o) {\n if (!o[key] && o[key] !== 0) {\n delete o[key]\n } else {\n o[key] = Server.clearAllNull(o[key])\n }\n }\n }\n return o || obj\n }\n // 提供方法清空一层为空的obj字段\n static clearNull (obj) {\n const o = Object.assign({}, obj)\n for (const key in o) {\n if (!o[key] && o[key] !== 0) {\n delete o[key]\n }\n }\n return o\n }\n static clearTrim (obj) {\n const o = Object.assign({}, obj)\n for (const key in o) {\n if (!o[key] && o[key] !== 0) {\n delete o[key]\n } else if (typeof (o[key]) === 'string' || o[key] instanceof String) {\n o[key] = o[key].trim()\n }\n }\n return o\n }\n // 验证集合\n static regExp (type) {\n return regExp[type]\n }\n\n static $message (self, response) {\n if (!(response && response.headers && response.headers['x-response-by'] && response.headers['x-response-by'] === 'gateway')) {\n self.$message({\n type: 'error',\n message: (response && response.data && (response.data.msg || response.data.message || (response.data.errors && response.data.errors.map(function (item) {\n return item.message\n }).join(',')))) || '网络异常,请稍后再试'\n })\n } else if (!response.headers) {\n self.$message(response && response.stack)\n }\n }\n}\n\nServer.path = path\nexport default Server\n"],"sourceRoot":""}