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
16 KiB
1 lines
16 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7ecddda0"],{"47ad":function(t,e,n){},8404:function(t,e,n){"use strict";n.r(e);var r=n("2f62"),o=n("90e7");function u(t){return(u="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 c(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 a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={name:"setting_staff",components:{},computed:a(a(a({},Object(r.e)("admin/layout",["isMobile"])),Object(r.e)("admin/userLevel",["categoryId"])),{},{labelWidth:function(){return this.isMobile?void 0:85},labelPosition:function(){return this.isMobile?"top":"right"}}),data:function(){return{grid:{xl:10,lg:10,md:12,sm:24,xs:24},artFrom:{page:1,limit:15,store_id:0},loading:!1,columns:[{title:"ID",key:"id",width:80,sortable:!0},{title:"微信名称",key:"nickname",minWidth:100},{title:"头像",slot:"avatar",minWidth:100},{title:"核销员名称",key:"staff_name",minWidth:100},{title:"所属提货点",key:"name",minWidth:100},{title:"添加时间",key:"add_time",minWidth:100},{title:"状态",slot:"status",minWidth:100},{title:"操作",slot:"action",minWidth:120}],storeLists:[],storeSelectList:[],total:0}},mounted:function(){this.getList(),this.storeList()},methods:{storeList:function(){var t=this;Object(o.K)().then((function(e){t.storeSelectList=e.data}))},getList:function(){var t=this,e=this;e.loading=!0,Object(o.ob)(e.artFrom).then((function(t){e.loading=!1,e.storeLists=t.data.list,e.total=t.data.count})).catch((function(e){t.$Message.error(e.msg)}))},userSearchs:function(){this.artFrom.page=1,this.getList()},pageChange:function(t){this.artFrom.page=t,this.getList()},del:function(t,e,n){var r=this,o={title:e,num:n,url:"merchant/store_staff/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(o).then((function(t){r.$Message.success(t.msg),r.storeLists.splice(n,1)})).catch((function(t){r.$Message.error(t.msg)}))},add:function(){var t=this;this.$modalForm(Object(o.pb)(0)).then((function(){return t.getList()}))},onchangeIsShow:function(t,e){var n=this;Object(o.rb)(t,e).then((function(t){n.$Message.success(t.msg),n.getList()}))},edit:function(t){var e=this;this.$modalForm(Object(o.qb)(t)).then((function(){return e.getList()}))}}},d=(n("f955"),n("2877")),f=Object(d.a)(s,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Form",{ref:"artFrom",attrs:{model:t.artFrom,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("Row",{attrs:{type:"flex",gutter:24}},[e("Col",t._b({staticClass:"mr"},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"提货点名称:","label-for":"store_name"}},[e("Select",{attrs:{"element-id":"store_id",clearable:""},on:{"on-change":t.userSearchs},model:{value:t.artFrom.store_id,callback:function(e){t.$set(t.artFrom,"store_id",e)},expression:"artFrom.store_id"}},t._l(t.storeSelectList,(function(n){return e("Option",{key:n.id,attrs:{value:n.id}},[t._v(t._s(n.name))])})),1)],1)],1)],1)],1),e("Row",{attrs:{type:"flex"}},[e("Col",t._b({},"Col",t.grid,!1),[e("Button",{directives:[{name:"auth",rawName:"v-auth",value:["merchant-store_staff-create"],expression:"['merchant-store_staff-create']"}],attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v("添加核销员")])],1)],1),e("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.storeLists,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:"status",fn:function(n){var r=n.row;return[e("i-switch",{attrs:{value:r.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(r.id,r.status)}},model:{value:r.status,callback:function(e){t.$set(r,"status",e)},expression:"row.status"}},[t._v(">\n "),e("span",{attrs:{slot:"open"},slot:"open"},[t._v("显示")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("隐藏")])])]}},{key:"action",fn:function(n){var r=n.row,o=n.index;return[e("a",{on:{click:function(e){return t.edit(r.id)}}},[t._v("编辑")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.del(r,"删除核销员",o)}}},[t._v("删除")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,current:t.artFrom.page,"show-elevator":"","show-total":"","page-size":t.artFrom.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,"088225ea",null);e.default=f.exports},"90e7":function(t,e,n){"use strict";n.d(e,"u",(function(){return o})),n.d(e,"i",(function(){return u})),n.d(e,"wb",(function(){return c})),n.d(e,"vb",(function(){return a})),n.d(e,"X",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"ab",(function(){return d})),n.d(e,"P",(function(){return f})),n.d(e,"kb",(function(){return l})),n.d(e,"H",(function(){return m})),n.d(e,"jb",(function(){return h})),n.d(e,"p",(function(){return b})),n.d(e,"n",(function(){return g})),n.d(e,"o",(function(){return p})),n.d(e,"q",(function(){return O})),n.d(e,"r",(function(){return j})),n.d(e,"S",(function(){return v})),n.d(e,"T",(function(){return y})),n.d(e,"Q",(function(){return _})),n.d(e,"R",(function(){return w})),n.d(e,"I",(function(){return k})),n.d(e,"B",(function(){return x})),n.d(e,"F",(function(){return S})),n.d(e,"E",(function(){return P})),n.d(e,"w",(function(){return F})),n.d(e,"G",(function(){return L})),n.d(e,"y",(function(){return T})),n.d(e,"D",(function(){return C})),n.d(e,"x",(function(){return E})),n.d(e,"v",(function(){return W})),n.d(e,"h",(function(){return D})),n.d(e,"d",(function(){return $})),n.d(e,"e",(function(){return G})),n.d(e,"xb",(function(){return M})),n.d(e,"yb",(function(){return z})),n.d(e,"zb",(function(){return I})),n.d(e,"Z",(function(){return U})),n.d(e,"lb",(function(){return B})),n.d(e,"J",(function(){return N})),n.d(e,"nb",(function(){return q})),n.d(e,"mb",(function(){return J})),n.d(e,"ob",(function(){return R})),n.d(e,"pb",(function(){return A})),n.d(e,"qb",(function(){return K})),n.d(e,"rb",(function(){return H})),n.d(e,"Ab",(function(){return Q})),n.d(e,"Bb",(function(){return V})),n.d(e,"K",(function(){return X})),n.d(e,"f",(function(){return Y})),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 ut})),n.d(e,"eb",(function(){return ct})),n.d(e,"fb",(function(){return at})),n.d(e,"A",(function(){return it})),n.d(e,"L",(function(){return st})),n.d(e,"O",(function(){return dt})),n.d(e,"M",(function(){return ft})),n.d(e,"N",(function(){return lt})),n.d(e,"g",(function(){return mt})),n.d(e,"t",(function(){return ht})),n.d(e,"s",(function(){return bt})),n.d(e,"U",(function(){return gt})),n.d(e,"gb",(function(){return pt})),n.d(e,"ib",(function(){return Ot})),n.d(e,"b",(function(){return jt})),n.d(e,"hb",(function(){return vt})),n.d(e,"l",(function(){return yt})),n.d(e,"a",(function(){return _t})),n.d(e,"k",(function(){return wt})),n.d(e,"j",(function(){return kt})),n.d(e,"sb",(function(){return xt})),n.d(e,"tb",(function(){return St})),n.d(e,"ub",(function(){return Pt})),n.d(e,"m",(function(){return Ft})),n.d(e,"V",(function(){return Lt})),n.d(e,"W",(function(){return Tt}));var r=n("b6bd");function o(t){return Object(r.a)({url:"setting/config/header_basics",method:"get",params:t})}function u(t,e){return Object(r.a)({url:e,method:"get",params:t})}function c(t){return Object(r.a)({url:t.url,method:"get",params:t.data})}function a(){return Object(r.a)({url:"notify/sms/temp/create",method:"get"})}function i(){return Object(r.a)({url:"serve/info",method:"get"})}function s(t){return Object(r.a)({url:"serve/captcha",method:"post",data:t})}function d(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 l(){return Object(r.a)({url:"merchant/store",method:"GET"})}function m(){return Object(r.a)({url:"merchant/store/address",method:"GET"})}function h(t){return Object(r.a)({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function b(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 p(t){return Object(r.a)({url:"freight/express/".concat(t,"/edit"),method:"get"})}function O(t){return Object(r.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function j(){return Object(r.a)({url:"freight/express/sync_express",method:"get"})}function v(t){return Object(r.a)({url:"setting/role",method:"GET",params:t})}function y(t){return Object(r.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function _(t){return Object(r.a)({url:"setting/role/".concat(t.id),method:"post",data:t})}function w(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 S(t){return Object(r.a)({url:"app/wechat/kefu/create",method:"get",params:t})}function P(){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 L(t){return Object(r.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.account_status),method:"PUT"})}function T(t){return Object(r.a)({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function C(t,e){return Object(r.a)({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function E(t){return Object(r.a)({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function W(){return Object(r.a)({url:"notify/sms/is_login",method:"GET"})}function D(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 M(t){return Object(r.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function z(t){return Object(r.a)({url:"setting/shipping_templates/city_list",method:"get"})}function I(t,e){return Object(r.a)({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function U(t){return Object(r.a)({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function B(){return Object(r.a)({url:"merchant/store/get_header",method:"get"})}function N(t){return Object(r.a)({url:"merchant/store",method:"get",params:t})}function q(t,e){return Object(r.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function J(t){return Object(r.a)({url:"merchant/store/get_info/".concat(t),method:"get"})}function R(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 K(t){return Object(r.a)({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function H(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 V(t){return Object(r.a)({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function X(){return Object(r.a)({url:"merchant/store_list",method:"get"})}function Y(){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 ut(){return Object(r.a)({url:"app/wechat/speechcraftcate",method:"get"})}function ct(){return Object(r.a)({url:"app/wechat/speechcraftcate/create",method:"get"})}function at(t){return Object(r.a)({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function it(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 dt(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 lt(t,e){return Object(r.a)({url:"setting/system_out/update/".concat(t),method:"post",params:e})}function mt(t){return Object(r.a)({url:"city",method:"get",params:t})}function ht(t){return Object(r.a)({url:"setting/config/edit_new_build/"+t,method:"get"})}function bt(){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 pt(t){return Object(r.a)({url:"/setting/config/storage",method:"get",params:t})}function Ot(t){return Object(r.a)({url:"/setting/config/storage/synch/".concat(t),method:"put"})}function jt(t){return Object(r.a)({url:"/setting/config/storage/create/".concat(t),method:"get"})}function vt(t){return Object(r.a)({url:"/setting/config/storage/status/".concat(t),method:"put"})}function yt(t){return Object(r.a)({url:"/setting/config/storage/domain/".concat(t),method:"get"})}function _t(t){return Object(r.a)({url:"/setting/config/storage/form/".concat(t),method:"get"})}function wt(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 St(t,e){return Object(r.a)({url:"/system/form/info/".concat(t),method:"get",params:e})}function Pt(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 Lt(t){return Object(r.a)({url:"setting/config/storage/save_type/".concat(t),method:"get"})}function Tt(t){return Object(r.a)({url:"/file/scan/upload",method:"post",headers:{"content-type":"multipart/form-data;"},data:t})}},f955:function(t,e,n){"use strict";n("47ad")}}]); |