You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
30 KiB
1 lines
30 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-823555c4"],{"90e7":function(t,e,n){"use strict";n.d(e,"u",(function(){return o})),n.d(e,"i",(function(){return a})),n.d(e,"wb",(function(){return i})),n.d(e,"vb",(function(){return c})),n.d(e,"X",(function(){return u})),n.d(e,"c",(function(){return s})),n.d(e,"ab",(function(){return l})),n.d(e,"P",(function(){return f})),n.d(e,"kb",(function(){return d})),n.d(e,"H",(function(){return h})),n.d(e,"jb",(function(){return m})),n.d(e,"p",(function(){return p})),n.d(e,"n",(function(){return g})),n.d(e,"o",(function(){return b})),n.d(e,"q",(function(){return v})),n.d(e,"r",(function(){return y})),n.d(e,"S",(function(){return w})),n.d(e,"T",(function(){return O})),n.d(e,"Q",(function(){return j})),n.d(e,"R",(function(){return _})),n.d(e,"I",(function(){return k})),n.d(e,"B",(function(){return x})),n.d(e,"F",(function(){return L})),n.d(e,"E",(function(){return E})),n.d(e,"w",(function(){return F})),n.d(e,"G",(function(){return C})),n.d(e,"y",(function(){return P})),n.d(e,"D",(function(){return S})),n.d(e,"x",(function(){return T})),n.d(e,"v",(function(){return V})),n.d(e,"h",(function(){return M})),n.d(e,"d",(function(){return $})),n.d(e,"e",(function(){return G})),n.d(e,"xb",(function(){return D})),n.d(e,"yb",(function(){return N})),n.d(e,"zb",(function(){return W})),n.d(e,"Z",(function(){return z})),n.d(e,"lb",(function(){return I})),n.d(e,"J",(function(){return B})),n.d(e,"nb",(function(){return R})),n.d(e,"mb",(function(){return K})),n.d(e,"ob",(function(){return U})),n.d(e,"pb",(function(){return A})),n.d(e,"qb",(function(){return J})),n.d(e,"rb",(function(){return Y})),n.d(e,"Ab",(function(){return q})),n.d(e,"Bb",(function(){return H})),n.d(e,"K",(function(){return Q})),n.d(e,"f",(function(){return X})),n.d(e,"Cb",(function(){return Z})),n.d(e,"bb",(function(){return tt})),n.d(e,"cb",(function(){return et})),n.d(e,"C",(function(){return nt})),n.d(e,"z",(function(){return rt})),n.d(e,"Y",(function(){return ot})),n.d(e,"db",(function(){return at})),n.d(e,"eb",(function(){return it})),n.d(e,"fb",(function(){return ct})),n.d(e,"A",(function(){return ut})),n.d(e,"L",(function(){return st})),n.d(e,"O",(function(){return lt})),n.d(e,"M",(function(){return ft})),n.d(e,"N",(function(){return dt})),n.d(e,"g",(function(){return ht})),n.d(e,"t",(function(){return mt})),n.d(e,"s",(function(){return pt})),n.d(e,"U",(function(){return gt})),n.d(e,"gb",(function(){return bt})),n.d(e,"ib",(function(){return vt})),n.d(e,"b",(function(){return yt})),n.d(e,"hb",(function(){return wt})),n.d(e,"l",(function(){return Ot})),n.d(e,"a",(function(){return jt})),n.d(e,"k",(function(){return _t})),n.d(e,"j",(function(){return kt})),n.d(e,"sb",(function(){return xt})),n.d(e,"tb",(function(){return Lt})),n.d(e,"ub",(function(){return Et})),n.d(e,"m",(function(){return Ft})),n.d(e,"V",(function(){return Ct})),n.d(e,"W",(function(){return Pt}));var r=n("b6bd");function o(t){return Object(r.a)({url:"setting/config/header_basics",method:"get",params:t})}function a(t,e){return Object(r.a)({url:e,method:"get",params:t})}function i(t){return Object(r.a)({url:t.url,method:"get",params:t.data})}function c(){return Object(r.a)({url:"notify/sms/temp/create",method:"get"})}function u(){return Object(r.a)({url:"serve/info",method:"get"})}function s(t){return Object(r.a)({url:"serve/captcha",method:"post",data:t})}function l(t){return Object(r.a)({url:"serve/meal_list",method:"get",params:t})}function f(t){return Object(r.a)({url:"serve/pay_meal",method:"post",data:t})}function d(){return Object(r.a)({url:"merchant/store",method:"GET"})}function h(){return Object(r.a)({url:"merchant/store/address",method:"GET"})}function m(t){return Object(r.a)({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function p(t){return Object(r.a)({url:"freight/express",method:"get",params:t})}function g(){return Object(r.a)({url:"/freight/express/create",method:"get"})}function b(t){return Object(r.a)({url:"freight/express/".concat(t,"/edit"),method:"get"})}function v(t){return Object(r.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function y(){return Object(r.a)({url:"freight/express/sync_express",method:"get"})}function w(t){return Object(r.a)({url:"setting/role",method:"GET",params:t})}function O(t){return Object(r.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function j(t){return Object(r.a)({url:"setting/role/".concat(t.id),method:"post",data:t})}function _(t){return Object(r.a)({url:"setting/role/".concat(t,"/edit"),method:"get"})}function k(){return Object(r.a)({url:"setting/role/create",method:"get"})}function x(t){return Object(r.a)({url:"app/wechat/kefu",method:"get",params:t})}function L(t){return Object(r.a)({url:"app/wechat/kefu/create",method:"get",params:t})}function E(){return Object(r.a)({url:"app/wechat/kefu/add",method:"get"})}function F(t){return Object(r.a)({url:"app/wechat/kefu",method:"post",data:t})}function C(t){return Object(r.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.account_status),method:"PUT"})}function P(t){return Object(r.a)({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function S(t,e){return Object(r.a)({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function T(t){return Object(r.a)({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function V(){return Object(r.a)({url:"notify/sms/is_login",method:"GET"})}function M(t){return Object(r.a)({url:"setting/city/list/".concat(t),method:"get"})}function $(t){return Object(r.a)({url:"setting/city/add/".concat(t),method:"get"})}function G(t){return Object(r.a)({url:"setting/city/".concat(t,"/edit"),method:"get"})}function D(t){return Object(r.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function N(t){return Object(r.a)({url:"setting/shipping_templates/city_list",method:"get"})}function W(t,e){return Object(r.a)({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function z(t){return Object(r.a)({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function I(){return Object(r.a)({url:"merchant/store/get_header",method:"get"})}function B(t){return Object(r.a)({url:"merchant/store",method:"get",params:t})}function R(t,e){return Object(r.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function K(t){return Object(r.a)({url:"merchant/store/get_info/".concat(t),method:"get"})}function U(t){return Object(r.a)({url:"merchant/store_staff",method:"get",params:t})}function A(){return Object(r.a)({url:"merchant/store_staff/create",method:"get"})}function J(t){return Object(r.a)({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function Y(t,e){return Object(r.a)({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function q(t){return Object(r.a)({url:"merchant/verify_order",method:"get",params:t})}function H(t){return Object(r.a)({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function Q(){return Object(r.a)({url:"merchant/store_list",method:"get"})}function X(){return Object(r.a)({url:"setting/city/clean_cache",method:"get"})}function Z(t){return Object(r.a)({url:"app/wechat/speechcraft",method:"get",params:t})}function tt(t){return Object(r.a)({url:"app/wechat/speechcraft/create",method:"get",params:t})}function et(t){return Object(r.a)({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function nt(t){return Object(r.a)({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function rt(t){return Object(r.a)({url:"app/feedback",method:"get",params:t})}function ot(t){return Object(r.a)({url:"serve/sms/sign",method:"PUT",data:t})}function at(){return Object(r.a)({url:"app/wechat/speechcraftcate",method:"get"})}function it(){return Object(r.a)({url:"app/wechat/speechcraftcate/create",method:"get"})}function ct(t){return Object(r.a)({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function ut(t){return Object(r.a)({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function st(t){return Object(r.a)({url:"setting/system_out/index",method:"get",params:t})}function lt(t,e){return Object(r.a)({url:"setting/system_out/set_status/".concat(t,"/").concat(e),method:"put"})}function ft(t){return Object(r.a)({url:"setting/system_out/save",method:"post",params:t})}function dt(t,e){return Object(r.a)({url:"setting/system_out/update/".concat(t),method:"post",params:e})}function ht(t){return Object(r.a)({url:"city",method:"get",params:t})}function mt(t){return Object(r.a)({url:"setting/config/edit_new_build/"+t,method:"get"})}function pt(){return Object(r.a)({url:"/setting/config/image",method:"get"})}function gt(t){return Object(r.a)({url:"setting/config/save_basics",method:"post",data:t})}function bt(t){return Object(r.a)({url:"/setting/config/storage",method:"get",params:t})}function vt(t){return Object(r.a)({url:"/setting/config/storage/synch/".concat(t),method:"put"})}function yt(t){return Object(r.a)({url:"/setting/config/storage/create/".concat(t),method:"get"})}function wt(t){return Object(r.a)({url:"/setting/config/storage/status/".concat(t),method:"put"})}function Ot(t){return Object(r.a)({url:"/setting/config/storage/domain/".concat(t),method:"get"})}function jt(t){return Object(r.a)({url:"/setting/config/storage/form/".concat(t),method:"get"})}function _t(t){return Object(r.a)({url:"/order/delivery_order/list",method:"get",params:t})}function kt(t){return Object(r.a)({url:"/order/delivery_order/cancelForm/".concat(t),method:"get"})}function xt(t,e){return Object(r.a)({url:"/system/form/save/".concat(t),method:"post",data:e})}function Lt(t,e){return Object(r.a)({url:"/system/form/info/".concat(t),method:"get",params:e})}function Et(t){return Object(r.a)({url:"/system/form/index",method:"get",params:t})}function Ft(t,e){return Object(r.a)({url:"system/form/update_name/"+t,method:"post",data:e})}function Ct(t){return Object(r.a)({url:"setting/config/storage/save_type/".concat(t),method:"get"})}function Pt(t){return Object(r.a)({url:"/file/scan/upload",method:"post",headers:{"content-type":"multipart/form-data;"},data:t})}},b131:function(t,e,n){"use strict";n("bff8")},b90a:function(t,e,n){"use strict";n.r(e);var r=n("2f62"),o=n("c276"),a=n("d708"),i=n("90e7");function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),c=new T(r||[]);return o(i,"_invoke",{value:F(t,n,c)}),i}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var m="suspendedStart",p="suspendedYield",g="executing",b="completed",v={};function y(){}function w(){}function O(){}var j={};f(j,i,(function(){return this}));var _=Object.getPrototypeOf,k=_&&_(_(V([])));k&&k!==n&&r.call(k,i)&&(j=k);var x=O.prototype=y.prototype=Object.create(j);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var s=h(t[o],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==c(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return n("throw",t,i,u)}))}u(s.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function F(e,n,r){var o=m;return function(a,i){if(o===g)throw Error("Generator is already running");if(o===b){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var u=C(c,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var s=h(e,n,r);if("normal"===s.type){if(o=r.done?b:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=b,r.method="throw",r.arg=s.arg)}}}function C(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=h(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function V(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(c(e)+" is not iterable")}return w.prototype=O,o(x,"constructor",{value:O,configurable:!0}),o(O,"constructor",{value:w,configurable:!0}),w.displayName=f(O,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,f(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(E.prototype),f(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(d(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),f(x,l,"Generator"),f(x,i,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=V,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:V(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function s(t,e,n,r,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function l(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){s(a,r,o,i,c,"next",t)}function c(t){s(a,r,o,i,c,"throw",t)}i(void 0)}))}}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m={name:"index",filters:{typeFilter:function(t){return{wechat:"微信用户",routine:"小程序用户"}[t]}},computed:d(d(d({},Object(r.e)("admin/layout",["isMobile"])),Object(r.e)("admin/userLevel",["categoryId"])),{},{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),data:function(){return{isChat:!0,formValidate3:{page:1,limit:15},total3:0,loading3:!1,modals3:!1,tableList3:[],columns3:[{title:"用户名称",key:"nickname",width:200},{title:"客服头像",slot:"headimgurl"},{title:"操作",slot:"action"}],formValidate5:{page:1,limit:15,uid:0,to_uid:0,id:0},total5:0,loading5:!1,tableList5:[],columns5:[{title:"用户名称",key:"nickname",width:200},{title:"用户头像",slot:"avatar"},{title:"发送消息",key:"msn",width:250},{title:"发送时间",key:"add_time"}],FromData:null,formValidate:{page:1,limit:15,data:"",type:"",nickname:""},tableList2:[],modals:!1,total:0,tableFrom:{page:1,limit:15},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},loading:!1,tableList:[],columns1:[{title:"ID",key:"id",width:80},{title:"微信用户名称",key:"nickname",minWidth:120},{title:"客服头像",slot:"avatar",minWidth:60},{title:"客服名称",key:"wx_name",minWidth:120},{title:"企微员工",slot:"workMember",minWidth:120},{title:"账号状态",slot:"account_status",minWidth:120},{title:"添加时间",key:"add_time",minWidth:130},{title:"操作",slot:"action",fixed:"right",width:200}],columns4:[{type:"selection",width:60,align:"center"},{title:"ID",key:"uid",width:80},{title:"微信用户名称",key:"nickname",minWidth:160},{title:"客服头像",slot:"headimgurl",minWidth:60},{title:"用户类型",slot:"user_type",width:100},{title:"性别",slot:"sex",minWidth:60},{title:"地区",slot:"country",minWidth:120},{title:"是否关注公众号",slot:"subscribe",minWidth:120}],loading2:!1,total2:0,addFrom:{uids:[]},selections:[],rows:{},rowRecord:{}}},created:function(){this.getList()},methods:{goChat:function(t){var e=this;Object(i.C)(t.id).then((function(t){var n="";if(t.data.token){var r=e.getExpiresTime(t.data.exp_time);o.a.cookies.setKefu("token",t.data.token,r),o.a.cookies.setKefu("uuid",t.data.kefuInfo.uid,r),o.a.cookies.setKefu("expires_time",t.data.exp_time,r),o.a.cookies.setKefu("kefuInfo",t.data.kefuInfo,r),n=e.$store.state.admin.layout.isMobile?window.location.protocol+"//"+window.location.host+"".concat(a.a.routePreKF,"/mobile_list"):window.location.protocol+"//"+window.location.host+"".concat(a.a.routePreKF,"/pc_list"),window.open(n,"_blank")}})).catch((function(t){e.$Message.error(t.msg)}))},getExpiresTime:function(t){var e=Math.round(new Date/1e3);return parseFloat(parseFloat(parseFloat((t-e)/60)/60)/24)},cancel:function(){this.formValidate={page:1,limit:10,data:"",type:"",nickname:""}},handleReachBottom:function(){var t=this;return new Promise((function(e){t.formValidate.page=t.formValidate.page+1,setTimeout((function(){Object(i.F)(t.formValidate).then(function(){var e=l(u().mark((function e(n){var r,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=n.data).list.length>0)for(o=0;o<r.list.length;o++)t.tableList2.push(r.list[o]);t.total2=r.count,t.loading2=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading2=!1,t.$Message.error(e.msg)})),e()}),2e3)}))},look:function(t){this.isChat=!1,this.rowRecord=t,this.getChatlist()},getChatlist:function(){var t=this;this.loading5=!0,this.formValidate5.uid=this.rows.uid,this.formValidate5.to_uid=this.rowRecord.uid,this.formValidate5.id=this.rows.id,Object(i.x)(this.formValidate5).then(function(){var e=l(u().mark((function e(n){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,t.tableList5=r.list,t.total5=r.count,t.loading5=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading5=!1,t.$Message.error(e.msg)}))},pageChange5:function(t){this.formValidate5.page=t,this.getChatlist()},submitFail:function(){this.getList()},record:function(t){this.rows=t,this.modals3=!0,this.isChat=!0,this.getListRecord()},getListRecord:function(){var t=this;this.loading3=!0,Object(i.D)(this.formValidate3,this.rows.id).then(function(){var e=l(u().mark((function e(n){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,t.tableList3=r.list?r.list:[],t.total3=r.count,t.loading3=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading3=!1,t.$Message.error(e.msg)}))},pageChange3:function(t){this.formValidate3.page=t,this.getListRecord()},edit:function(t){var e=this;this.$modalForm(Object(i.y)(t.id)).then((function(){return e.getList()}))},add:function(){var t=this;this.$modalForm(Object(i.E)()).then((function(){return t.getList()}))},onSelectTab:function(t){this.selections=t;var e=[];this.selections.map((function(t){e.push(t.uid)})),this.addFrom.uids=e},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal[0]?this.timeVal.join("-"):"",this.formValidate.page=1,this.getListService()},selectChange:function(t){this.formValidate.data=t,this.timeVal=[],this.formValidate.page=1,this.getListService()},getListService:function(){var t=this;this.loading2=!0,Object(i.F)(this.formValidate).then(function(){var e=l(u().mark((function e(n){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,t.tableList2=r.list,t.total2=r.count,t.tableList2.map((function(t){t._isChecked=!1})),t.loading2=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading2=!1,t.$Message.error(e.msg)}))},pageChange2:function(t){this.formValidate.page=t,this.getListService(),this.addFrom.uids=[]},userSearchs:function(){this.formValidate.page=1,this.getListService()},del:function(t,e,n){var r=this,o={title:e,num:n,url:"app/wechat/kefu/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(o).then((function(t){r.$Message.success(t.msg),r.tableList.splice(n,1),r.tableList.length||(r.tableFrom.page=1==r.tableFrom.page?1:r.tableFrom.page-1),r.getList()})).catch((function(t){r.$Message.error(t.msg)}))},getList:function(){var t=this;this.loading=!0,Object(i.B)(this.tableFrom).then(function(){var e=l(u().mark((function e(n){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,t.tableList=r.list,t.total=n.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},onchangeIsShow:function(t){var e=this,n={id:t.id,account_status:t.account_status};Object(i.G)(n).then(function(){var t=l(u().mark((function t(n){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(n.msg),e.getList();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},putRemark:function(){var t=this;if(0===this.addFrom.uids.length)return this.$Message.warning("请选择要添加的客服");Object(i.w)(this.addFrom).then(function(){var e=l(u().mark((function e(n){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$Message.success(n.msg),t.modals=!1,t.getList();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))}}},p=(n("b131"),n("2877")),g=Object(p.a)(m,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Row",{staticClass:"mb20",attrs:{type:"flex"}},[e("Col",{attrs:{span:"24"}},[e("Button",{directives:[{name:"auth",rawName:"v-auth",value:["setting-store_service-add"],expression:"['setting-store_service-add']"}],staticClass:"mr10",attrs:{type:"primary"},on:{click:t.add}},[t._v("添加客服")])],1)],1),e("Table",{attrs:{columns:t.columns1,data:t.tableList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"avatar",fn:function(t){var n=t.row;return[e("viewer",[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.avatar,expression:"row.avatar"}]})])])]}},{key:"workMember",fn:function(n){var r=n.row;return[e("span",[t._v(t._s(r.workMember.name))])]}},{key:"account_status",fn:function(n){var r=n.row;return[e("i-switch",{attrs:{value:r.account_status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(r)}},model:{value:r.account_status,callback:function(e){t.$set(r,"account_status",e)},expression:"row.account_status"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])]}},{key:"stop_time",fn:function(n){var r=n.row;return[e("span",[t._v(" "+t._s(t._f("formatDate")(r.stop_time)))])]}},{key:"action",fn:function(n){var r=n.row,o=n.index;return[e("a",{on:{click:function(e){return t.edit(r)}}},[t._v("编辑")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.del(r,"删除客服",o)}}},[t._v("删除")]),r.account_status&&r.status?e("Divider",{attrs:{type:"vertical"}}):t._e(),r.account_status&&r.status?e("a",{on:{click:function(e){return t.goChat(r)}}},[t._v("进入工作台")]):t._e()]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.tableFrom.limit},on:{"on-change":t.pageChange}})],1)],1),e("Modal",{attrs:{"footer-hide":"",scrollable:"",closable:"",title:"聊天记录",width:"700"},model:{value:t.modals3,callback:function(e){t.modals3=e},expression:"modals3"}},[t.isChat?e("div",{staticClass:"modelBox"},[e("Table",{attrs:{loading:t.loading3,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果",columns:t.columns3,data:t.tableList3},scopedSlots:t._u([{key:"headimgurl",fn:function(t){var n=t.row;return[e("viewer",[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.headimgurl,expression:"row.headimgurl"}]})])])]}},{key:"action",fn:function(n){var r=n.row;return[e("a",{on:{click:function(e){return t.look(r)}}},[t._v("查看对话")])]}}],null,!1,1938306419)}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total3,"show-elevator":"","show-total":"","page-size":t.formValidate3.limit},on:{"on-change":t.pageChange3}})],1)],1):t._e(),t.isChat?t._e():e("div",[e("Button",{attrs:{type:"primary"},on:{click:function(e){t.isChat=!0}}},[t._v("返回聊天记录")]),e("Table",{staticClass:"mt20",attrs:{loading:t.loading5,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果",columns:t.columns5,data:t.tableList5},scopedSlots:t._u([{key:"avatar",fn:function(t){var n=t.row;return[e("viewer",[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.avatar,expression:"row.avatar"}]})])])]}},{key:"action",fn:function(n){var r=n.row;return[e("a",{on:{click:function(e){return t.look(r)}}},[t._v("查看对话")])]}}],null,!1,2124827650)}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total5,"show-elevator":"","show-total":"","page-size":t.formValidate5.limit},on:{"on-change":t.pageChange5}})],1)],1)])],1)}),[],!1,null,"52513e90",null);e.default=g.exports},bff8:function(t,e,n){}}]); |