chunk-2c3543f0.2ba53335.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2c3543f0"],{"0b65":function(t,e,n){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,n=new Date;n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[n,e])}},{text:"昨天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.$emit("pick",[n,e])}},{text:"最近7天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近30天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:"本月",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[n,e])}},{text:"本年",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[n,e])}}]}},"4afe":function(t,e,n){},5405:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-card",[n("div",{staticClass:"div-count"},[n("div",{staticClass:"Nav"},[n("div",{staticClass:"trees-coadd"},[n("div",{staticClass:"scollhide"},[n("div",{staticClass:"trees"},[n("el-tree",{ref:"tree",attrs:{data:t.treeData2,"node-key":"region_id","highlight-current":!0,"expand-on-click-node":!1,"default-expanded-keys":[t.expandedId],props:t.defaultProps,"current-node-key":t.treeId},on:{"node-click":t.appendBtn},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.node,r=e.data;return n("div",{staticClass:"custom-tree-node"},[n("div",[n("span",{staticClass:"line1 node-label"},[t._v(t._s(a.label))])]),t._v(" "),n("span",[n("el-dropdown",{on:{command:function(e){return t.clickMenu(r,e)}}},[n("span",{staticClass:"add el-icon-more"}),t._v(" "),n("template",{slot:"dropdown"},[n("el-dropdown-menu",[n("el-dropdown-item",{attrs:{command:"1"}},[t._v("新增")]),t._v(" "),r.region_id?n("el-dropdown-item",{attrs:{command:"2"}},[t._v("编辑")]):t._e(),t._v(" "),r.region_id?n("el-dropdown-item",{attrs:{command:"3"}},[t._v("删除")]):t._e()],1)],1)],2)],1)])}}])})],1)])])]),t._v(" "),n("div",{staticClass:"colLeft"},[n("div",{staticClass:"col-pad"},[n("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small","label-width":"80px",inline:!0}},[n("el-form-item",{attrs:{label:"选择时间:"}},[n("el-date-picker",{staticStyle:{width:"230px"},attrs:{type:"daterange","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"yyyy/MM/dd","value-format":"yyyy/MM/dd",clearable:"","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"账号状态:",prop:"status"}},[n("el-select",{staticClass:"miniWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[n("el-option",{attrs:{label:"正常",value:"1"}}),t._v(" "),n("el-option",{attrs:{label:"停用",value:"0"}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"关键字:",prop:"keyword"}},[n("el-input",{staticClass:"miniWidth",attrs:{placeholder:"请输入账号/呢称",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),n("div",{staticClass:"col-pad divBox"},[n("div",{staticClass:"mb20"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.add}},[t._v("添加管理员")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[n("el-table-column",{attrs:{prop:"admin_id",label:"ID","min-width":"60"}}),t._v(" "),n("el-table-column",{attrs:{prop:"real_name",label:"管理员姓名","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"rule_name",label:"身份","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"region_name",label:"商户分组","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"account",label:"账号","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"phone",label:"手机号","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"status",label:"帐号状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"正常","inactive-text":"停用"},on:{change:function(n){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(n){t.$set(e.row,"status",n)},expression:"scope.row.status"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"180",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onPassword(e.row.admin_id)}}},[t._v("修改密码")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.edit(e.row.admin_id)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleDelete(e.row.admin_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)])])])},r=[],o=(n("c5f6"),n("75fc")),i=n("90e7"),c=n("8492"),u=n("0b65"),s={name:"SystemRole",data:function(){return{pickerOptions:u["a"],tableData:{data:[],total:0},listLoading:!0,tableFrom:{page:1,limit:20,keyword:"",status:"",date:"",region_id:""},timeVal:[],treeId:0,treeData:[],treeData2:[],defaultProps:{children:"children",label:"name"},expandedId:""}},mounted:function(){this.getCategory(),this.getList()},methods:{getCategory:function(){var t=this,e={name:"全部",region_id:""};Object(c["L"])({status:1}).then((function(n){t.treeData2=JSON.parse(JSON.stringify(Object(o["a"])(n.data))),t.treeData=n.data,t.treeData.unshift(e),t.treeData2=Object(o["a"])(t.treeData)})).catch((function(e){t.$message.error(e.message)}))},clickMenu:function(t,e){1==e?this.onAdd(t.region_id):2==e?this.onEdit(t.region_id):3==e&&this.onDelete(t.region_id)},onAdd:function(t){var e=this;this.treeId=t;var n={};Number(t)>0&&(n.formData={pid:t}),this.$modalForm(Object(c["I"])(),n).then((function(t){t.message;e.getCategory()}))},onEdit:function(t){var e=this;this.$modalForm(Object(c["K"])(t)).then((function(){e.expandedId=t,e.getCategory()}))},onDelete:function(t){var e=this;this.$modalSure().then((function(){Object(c["J"])(t).then((function(t){var n=t.message;e.$message.success(n),e.getCategory()})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},onchangeIsShow:function(t){var e=this;Object(i["i"])(t.admin_id,t.status).then((function(t){var n=t.message;e.$message.success(n),e.getList()})).catch((function(t){var n=t.message;e.$message.error(n)}))},appendBtn:function(t){this.treeId=t.region_id,this.tableFrom.region_id=t.region_id,this.tableFrom.page=1,this.getList()},searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=this.timeVal?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList()},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(i["f"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.tableData.data=[],e.tableData.total=0,e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},add:function(){var t=this;this.$modalForm(Object(i["d"])()).then((function(){return t.getList()}))},edit:function(t){var e=this;this.$modalForm(Object(i["j"])(t)).then((function(){return e.getList()}))},onPassword:function(t){this.$modalForm(Object(i["h"])(t))},handleDelete:function(t,e){var n=this;this.$modalSure("删除该管理员").then((function(){Object(i["e"])(t).then((function(t){var e=t.message;n.$message.success(e),n.getList()})).catch((function(t){var e=t.message;n.$message.error(e)}))}))}}},l=s,d=(n("a3e8"),n("2877")),m=Object(d["a"])(l,a,r,!1,null,"58913291",null);e["default"]=m.exports},8492:function(t,e,n){"use strict";n.d(e,"T",(function(){return r})),n.d(e,"R",(function(){return o})),n.d(e,"U",(function(){return i})),n.d(e,"S",(function(){return c})),n.d(e,"P",(function(){return u})),n.d(e,"H",(function(){return s})),n.d(e,"F",(function(){return l})),n.d(e,"ab",(function(){return d})),n.d(e,"G",(function(){return m})),n.d(e,"X",(function(){return f})),n.d(e,"W",(function(){return g})),n.d(e,"g",(function(){return h})),n.d(e,"e",(function(){return p})),n.d(e,"h",(function(){return b})),n.d(e,"f",(function(){return v})),n.d(e,"C",(function(){return y})),n.d(e,"bb",(function(){return w})),n.d(e,"eb",(function(){return _})),n.d(e,"db",(function(){return k})),n.d(e,"cb",(function(){return D})),n.d(e,"Q",(function(){return F})),n.d(e,"q",(function(){return C})),n.d(e,"d",(function(){return x})),n.d(e,"p",(function(){return $})),n.d(e,"r",(function(){return L})),n.d(e,"i",(function(){return O})),n.d(e,"n",(function(){return j})),n.d(e,"o",(function(){return T})),n.d(e,"l",(function(){return S})),n.d(e,"mb",(function(){return z})),n.d(e,"O",(function(){return I})),n.d(e,"E",(function(){return M})),n.d(e,"ib",(function(){return V})),n.d(e,"kb",(function(){return J})),n.d(e,"hb",(function(){return N})),n.d(e,"lb",(function(){return Y})),n.d(e,"jb",(function(){return E})),n.d(e,"Z",(function(){return P})),n.d(e,"Y",(function(){return B})),n.d(e,"m",(function(){return R})),n.d(e,"k",(function(){return A})),n.d(e,"j",(function(){return W})),n.d(e,"c",(function(){return K})),n.d(e,"a",(function(){return q})),n.d(e,"b",(function(){return G})),n.d(e,"fb",(function(){return H})),n.d(e,"gb",(function(){return Q})),n.d(e,"s",(function(){return U})),n.d(e,"w",(function(){return X})),n.d(e,"v",(function(){return Z})),n.d(e,"x",(function(){return tt})),n.d(e,"z",(function(){return et})),n.d(e,"B",(function(){return nt})),n.d(e,"A",(function(){return at})),n.d(e,"y",(function(){return rt})),n.d(e,"u",(function(){return ot})),n.d(e,"t",(function(){return it})),n.d(e,"V",(function(){return ct})),n.d(e,"L",(function(){return ut})),n.d(e,"I",(function(){return st})),n.d(e,"K",(function(){return lt})),n.d(e,"J",(function(){return dt})),n.d(e,"N",(function(){return mt})),n.d(e,"M",(function(){return ft})),n.d(e,"D",(function(){return gt}));var a=n("0c6d");function r(t){return a["a"].get("merchant/menu/lst",t)}function o(){return a["a"].get("merchant/menu/create/form")}function i(t){return a["a"].get("merchant/menu/update/form/".concat(t))}function c(t){return a["a"].delete("merchant/menu/delete/".concat(t))}function u(t){return a["a"].get("system/merchant/lst",t)}function s(t){return a["a"].get("system/merchant/detail/".concat(t))}function l(t){return a["a"].post("system/merchant/create",t)}function d(t,e){return a["a"].post("system/merchant/update/".concat(t),e)}function m(t){return a["a"].get("system/merchant/delete/".concat(t,"/form"))}function f(t,e){return a["a"].post("system/merchant/status/".concat(t),{status:e})}function g(t){return a["a"].get("system/merchant/password/form/".concat(t))}function h(t){return a["a"].get("system/merchant/category/lst",t)}function p(){return a["a"].get("system/merchant/category/form")}function b(t){return a["a"].get("system/merchant/category/form/".concat(t))}function v(t){return a["a"].delete("system/merchant/category/".concat(t))}function y(t,e){return a["a"].get("merchant/order/lst/".concat(t),e)}function w(t){return a["a"].get("merchant/order/mark/".concat(t,"/form"))}function _(t,e){return a["a"].get("merchant/order/refund/lst/".concat(t),e)}function k(t){return a["a"].get("merchant/order/refund/mark/".concat(t,"/form"))}function D(t,e){return a["a"].post("merchant/order/reconciliation/create/".concat(t),e)}function F(t){return a["a"].post("system/merchant/login/".concat(t))}function C(t){return a["a"].get("merchant/intention/lst",t)}function x(t){return a["a"].get("merchant/intention/mark/".concat(t,"/form"))}function $(t){return a["a"].delete("merchant/intention/delete/".concat(t))}function L(t){return a["a"].get("merchant/intention/status/".concat(t,"/form"))}function O(t){return a["a"].get("system/merchant/changecopy/".concat(t,"/form"))}function j(){return a["a"].get("agreement/sys_intention_agree")}function T(t){return a["a"].post("agreement/sys_intention_agree",t)}function S(t){return a["a"].get("agreement/".concat(t))}function z(t,e){return a["a"].post("agreement/".concat(t),e)}function I(t,e){return a["a"].post("system/merchant/close/".concat(t),{status:e})}function M(){return a["a"].get("system/merchant/count")}function V(t){return a["a"].post("merchant/type/create",t)}function J(t){return a["a"].get("merchant/type/lst",t)}function N(){return a["a"].get("merchant/mer_auth")}function Y(t,e){return a["a"].post("merchant/type/update/".concat(t),e)}function E(t){return a["a"].delete("merchant/type/delete/".concat(t))}function P(t){return a["a"].get("merchant/type/mark/".concat(t))}function B(t){return a["a"].get("/merchant/type/detail/".concat(t))}function R(){return a["a"].get("merchant/type/options")}function A(){return a["a"].get("system/merchant/category/options")}function W(t){return a["a"].get("system/applyments/lst",t)}function K(t,e){return a["a"].post("system/applyments/status/".concat(t),e)}function q(t){return a["a"].get("system/applyments/detail/".concat(t))}function G(t){return a["a"].get("profitsharing/lst",t)}function H(t){return a["a"].post("profitsharing/again/".concat(t))}function Q(t){return a["a"].get("system/applyments/mark/".concat(t,"/form"))}function U(t){return a["a"].get("profitsharing/export",t)}function X(t){return a["a"].get("margin/lst",t)}function Z(t){return a["a"].get("margin/make_up",t)}function tt(t){return a["a"].get("margin/local/".concat(t,"/form"))}function et(t){return a["a"].get("margin/refund/lst",t)}function nt(t){return a["a"].get("margin/refund/status/".concat(t,"/form"))}function at(t){return a["a"].get("margin/refund/mark/".concat(t,"/form"))}function rt(t){return a["a"].get("margin/refund/show/".concat(t))}function ot(t,e){return a["a"].get("margin/list/".concat(t),e)}function it(t){return a["a"].get("margin/set/".concat(t,"/form"))}function ct(t,e){return a["a"].get("system/merchant/get_operate_list/".concat(t),e)}function ut(t){return a["a"].get("system/merchant/region/lst",t)}function st(t){return a["a"].get("system/merchant/region/create/form",t)}function lt(t,e){return a["a"].get("system/merchant/region/update/".concat(t,"/form"),e)}function dt(t){return a["a"].delete("system/merchant/region/delete/".concat(t))}function mt(t,e){return a["a"].post("system/merchant/region/status/".concat(t),{status:e})}function ft(){return a["a"].get("system/merchant/region/options")}function gt(t){return a["a"].get("system/merchant/care_ficti/form/".concat(t))}},a3e8:function(t,e,n){"use strict";n("4afe")}}]);