UNPKG

beehole-store-server

Version:

www.bee-hole.com

1 lines 14.6 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2e548b40","chunk-57e2d66e"],{1998:function(e,t,r){"use strict";r("769d")},"1b6c":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return i}));var n=r("5530"),o=r("bf0f");function a(e,t){return function(){return Object(o["b"])(e,Object(n["a"])({},t))}}function i(e,t){return Object(o["b"])(e,Object(n["a"])({},t))}},2909:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r("6b75");function o(e){if(Array.isArray(e))return Object(n["a"])(e)}r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("a630");function a(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var i=r("06c5");function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e){return o(e)||a(e)||Object(i["a"])(e)||u()}},"3be3":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",[[t("div",{staticStyle:{"margin-bottom":"10px",height:"20px"},attrs:{bordered:!1}},[t("a-breadcrumb",{staticStyle:{"margin-top":"5px","margin-left":"5px"}},[t("a-breadcrumb-item",{staticStyle:{color:"#000"}},[e._v(e._s(e.localeI18nFnText("src.views.member.grade.view_title")))]),t("a-breadcrumb-item",[t("a",{staticStyle:{color:"#000"},attrs:{href:"javascript:;"},on:{click:e.goBack}},[e._v(e._s(e.gradeName))])]),t("a-breadcrumb-item",[t("a",{staticStyle:{color:"#000"},attrs:{href:"javascript:;"}},[e._v(e._s(e.localeI18nFnText("src.views.member.group.view_title.add_bind_member")))])])],1)],1),t("a-card",{staticStyle:{"margin-bottom":"10px",height:"60px"},attrs:{bordered:!1}},[t("a-input",{staticStyle:{"margin-bottom":"5px","margin-left":"16px",width:"30%","margin-top":"15px"},attrs:{placeholder:e.$t("src.views.member.group.search_placeholder")},model:{value:e.bindSK,callback:function(t){e.bindSK=t},expression:"bindSK"}}),t("a-button",{staticClass:"editable-add-btn",staticStyle:{"margin-top":"5px"}},[e._v(" "+e._s(e.localeI18nFnText("src.views.member.group.search"))+" ")])],1),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t("div",{staticStyle:{"margin-left":"12px","font-size":"18px","margin-bottom":"10px","margin-top":"10px"}},[e._v(e._s(e.localeI18nFnText("src.views.member.group.view_title.add_bind_member")))]),t("a-table",{attrs:{bordered:"","data-source":e.bindSL,columns:e.unbindColumns},scopedSlots:e._u([{key:"name",fn:function(r,n){return[t("editable-cell",{attrs:{text:r},on:{change:function(t){return e.onCellChange(n.key,"name",t)}}})]}},{key:"operation",fn:function(r,n){return[e.bindSL.length?t("a-popconfirm",{attrs:{title:e.$t("src.views.member.group.table.operation.are_you_sure")},on:{confirm:function(){return e.onBind(n.member_id)}}},[t("a-button",{attrs:{type:"primary"}},[e._v(" "+e._s(e.localeI18nFnText("src.views.member.group.table.operation.bind"))+" ")])],1):e._e()]}}])})],1)]],2)},o=[],a=r("5530"),i=r("2909"),u=(r("a9e3"),r("7db0"),r("d3b7"),r("25f0"),r("4de4"),r("caad"),r("2532"),r("5880")),d=r("f3ba"),c=r("1b6c"),b={name:"BindMember",data:function(){return{bindSK:"",bind_visible:!1,unBoundSource:[],unbindColumns:[{title:Object(c["a"])("src.views.member.group.table.id"),dataIndex:"member_id"},{title:Object(c["a"])("src.views.member.group.table.nickname"),dataIndex:"nick"},{title:Object(c["a"])("src.views.member.group.table.email"),dataIndex:"email"},{title:Object(c["a"])("src.views.member.group.table.operation"),dataIndex:"operation",scopedSlots:{customRender:"operation"}}]}},props:{callback:{type:Function,required:!0},gradeId:{type:Number,required:!0},gradeName:{type:String,required:!0},consAmt:{type:Number,required:!0},totOrd:{type:Number,required:!0}},methods:{localeI18nFnText:c["b"],bindMemberOk:function(){this.bind_visible=!1},unBoundMemberList:function(){var e=this;this.shopId&&Object(d["C"])({GradeId:this.gradeId,ShopId:this.shopId,ConsAmt:this.consAmt,TotOrd:this.totOrd}).then((function(t){e.unBoundSource=t}))},onCellChange:function(e,t,r){var n=Object(i["a"])(this.unBoundSource),o=n.find((function(t){return t.key===e}));o&&(o[t]=r,this.unBoundSource=n)},onBind:function(e){var t=this,r={GradeId:this.gradeId,MemberId:e,IsAuto:0};Object(d["f"])(r).then((function(e){t.$message.success(t.$t("src.views.member.group.success").toString())}));var n=Object(i["a"])(this.unBoundSource);this.unBoundSource=n.filter((function(t){return t.member_id!==e}))},goBack:function(){this.callback()}},computed:Object(a["a"])(Object(a["a"])({},Object(u["mapGetters"])(["shopId"])),{},{bindSL:function(){var e=this;return this.unBoundSource&&this.unBoundSource.length?this.unBoundSource.filter((function(t){return t.member_id.toString().includes(e.bindSK)||t.nick.toString().includes(e.bindSK)||t.email.toString().includes(e.bindSK)})):[]}}),created:function(){this.bind_visible=!0,this.unBoundMemberList()}},s=b,m=r("2877"),l=Object(m["a"])(s,n,o,!1,null,"8b22ecf8",null);t["default"]=l.exports},"507b":function(e,t,r){"use strict";r("6cc8")},6862:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",[e.bind_visible?t("div",[t("div",{staticStyle:{"margin-bottom":"10px",height:"20px"},attrs:{bordered:!1}},[t("a-breadcrumb",{staticStyle:{"margin-top":"5px","margin-left":"5px"}},[t("a-breadcrumb-item",[t("a",{attrs:{href:"javascript:;"},on:{click:e.goBack}},[e._v(e._s(e.localeI18nFnText("src.views.member.grade.view_title")))])]),t("a-breadcrumb-item",{staticStyle:{color:"#000"}},[e._v(e._s(e.gradeName))]),t("a-breadcrumb-item",{staticStyle:{color:"#000"}},[e._v(e._s(e.localeI18nFnText("src.views.member.grade.member_list")))])],1)],1),t("a-card",{staticStyle:{"margin-bottom":"10px",height:"60px"},attrs:{bordered:!1}},[t("a-input",{staticStyle:{"margin-bottom":"5px","margin-left":"16px",width:"30%","margin-top":"15px"},attrs:{placeholder:e.$t("src.views.member.group.search_placeholder")},model:{value:e.searchKeyword,callback:function(t){e.searchKeyword=t},expression:"searchKeyword"}}),t("a-button",{staticClass:"editable-add-btn",staticStyle:{"margin-top":"5px"}},[e._v(" "+e._s(e.localeI18nFnText("src.views.member.group.search"))+" ")])],1),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t("a-button",{staticClass:"editable-add-btn",staticStyle:{"margin-top":"15px","margin-left":"12px"},on:{click:e.addGrade}},[e._v(" "+e._s(e.localeI18nFnText("src.views.member.group.view_title.add_bind_member"))+" ")]),t("a-table",{staticStyle:{"margin-top":"5px"},attrs:{bordered:"","data-source":e.searchList,columns:e.columns},scopedSlots:e._u([{key:"name",fn:function(r,n){return[t("editable-cell",{attrs:{text:r},on:{change:function(t){return e.onCellChange(n.key,"name",t)}}})]}},{key:"IsAuto",fn:function(t,r){return[e._v(" "+e._s(1===r.IsAuto?e.localeI18nFnText("src.views.member.system.yes"):e.localeI18nFnText("src.views.member.system.no"))+" ")]}},{key:"operation",fn:function(r,n){return[e.searchList.length?t("a-popconfirm",{attrs:{title:e.$t("src.views.member.group.table.operation.are_you_sure")},on:{confirm:function(){return e.onDelete(n.member_id)}}},[t("a-button",{attrs:{type:"primary"}},[e._v(" "+e._s(e.localeI18nFnText("src.views.member.group.table.operation.unbind"))+" ")])],1):e._e()]}}],null,!1,528124083)})],1)],1):e._e(),!1===e.bind_visible?t("bind-member",{attrs:{gradeId:e.gradeId,gradeName:e.gradeName,callback:e.changeFlag,consAmt:e.consAmt,totOrd:e.totOrd}}):e._e()],1)},o=[],a=r("5530"),i=r("2909"),u=(r("a9e3"),r("7db0"),r("d3b7"),r("25f0"),r("4de4"),r("caad"),r("2532"),r("f3ba")),d=r("5880"),c=r("3be3"),b=r("645b"),s=r("1b6c"),m={name:"GradeMemberList",components:{Template:b["default"],BindMember:c["default"]},data:function(){return{bind_visible:!0,searchKeyword:"",boundSource:[],columns:[{title:Object(s["a"])("src.views.member.group.table.id"),dataIndex:"member_id"},{title:Object(s["a"])("src.views.member.group.table.nickname"),dataIndex:"nick"},{title:Object(s["a"])("src.views.member.group.table.email"),dataIndex:"email"},{title:Object(s["a"])("src.view.member.grade.member.auto_bind"),dataIndex:"IsAuto",key:"IsAuto",scopedSlots:{customRender:"IsAuto"}},{title:Object(s["a"])("src.views.member.group.table.operation"),dataIndex:"operation",scopedSlots:{customRender:"operation"}}]}},props:{callback:{type:Function,required:!0},gradeId:{type:Number,required:!0},gradeName:{type:String,required:!0},consAmt:{type:Number,required:!0},totOrd:{type:Number,required:!0}},created:function(){this.getBoundMemberList()},activated:function(){this.getBoundMemberList()},methods:{localeI18nFnText:s["b"],localeI18nFnHtml:s["a"],addGrade:function(){this.bind_visible=!1},goBack:function(){this.callback()},getBoundMemberList:function(){var e=this;this.shopId&&Object(u["s"])({GradeId:this.gradeId}).then((function(t){e.boundSource=t}))},onCellChange:function(e,t,r){var n=Object(i["a"])(this.boundSource),o=n.find((function(t){return t.key===e}));o&&(o[t]=r,this.boundSource=n)},changeFlag:function(){this.getBoundMemberList(),this.bind_visible=!0},onDelete:function(e){var t=this,r={GradeId:this.gradeId,MemberId:e};Object(u["F"])(r).then((function(e){t.$message.success(t.$t("src.views.member.group.success").toString())}));var n=Object(i["a"])(this.boundSource);this.boundSource=n.filter((function(t){return t.member_id!==e}))}},computed:Object(a["a"])(Object(a["a"])({},Object(d["mapGetters"])(["shopId"])),{},{searchList:function(){var e=this;return this.boundSource&&this.boundSource.length?this.boundSource.filter((function(t){return t.member_id.toString().includes(e.searchKeyword)||t.nick.toString().includes(e.searchKeyword)||t.email.toString().includes(e.searchKeyword)})):[]}})},l=m,p=(r("507b"),r("1998"),r("2877")),f=Object(p["a"])(l,n,o,!1,null,"47fa51e8",null);t["default"]=f.exports},"6cc8":function(e,t,r){},"769d":function(e,t,r){},f3ba:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"h",(function(){return a})),r.d(t,"m",(function(){return i})),r.d(t,"H",(function(){return u})),r.d(t,"o",(function(){return d})),r.d(t,"b",(function(){return c})),r.d(t,"i",(function(){return b})),r.d(t,"I",(function(){return s})),r.d(t,"z",(function(){return m})),r.d(t,"j",(function(){return l})),r.d(t,"d",(function(){return p})),r.d(t,"x",(function(){return f})),r.d(t,"g",(function(){return _})),r.d(t,"G",(function(){return g})),r.d(t,"f",(function(){return h})),r.d(t,"F",(function(){return v})),r.d(t,"e",(function(){return y})),r.d(t,"E",(function(){return O})),r.d(t,"c",(function(){return j})),r.d(t,"y",(function(){return S})),r.d(t,"n",(function(){return x})),r.d(t,"p",(function(){return I})),r.d(t,"A",(function(){return w})),r.d(t,"w",(function(){return k})),r.d(t,"r",(function(){return B})),r.d(t,"t",(function(){return F})),r.d(t,"s",(function(){return C})),r.d(t,"C",(function(){return T})),r.d(t,"k",(function(){return A})),r.d(t,"B",(function(){return K})),r.d(t,"l",(function(){return L})),r.d(t,"D",(function(){return M})),r.d(t,"v",(function(){return N})),r.d(t,"u",(function(){return q})),r.d(t,"q",(function(){return G})),r.d(t,"J",(function(){return $}));var n=r("b775");function o(e){return Object(n["b"])({url:"/member_group/add",method:"post",data:e})}function a(e){return Object(n["b"])({url:"/member_group/delete",method:"post",data:e})}function i(e){return Object(n["b"])({url:"/member_group/list",method:"post",data:e})}function u(e){return Object(n["b"])({url:"/member_group/update",method:"post",data:e})}function d(e){return Object(n["b"])({url:"/member_grade/list",method:"post",data:e})}function c(e){return Object(n["b"])({url:"/member_grade/add",method:"post",data:e})}function b(e){return Object(n["b"])({url:"/member_grade/delete",method:"post",data:e})}function s(e){return Object(n["b"])({url:"/member_grade/update",method:"post",data:e})}function m(e){return Object(n["b"])({url:"/member_tag/list",method:"post",data:e})}function l(e){return Object(n["b"])({url:"/member_tag/delete",method:"post",data:e})}function p(e){return Object(n["b"])({url:"/member_tag/add",method:"post",data:e})}function f(e){return Object(n["b"])({url:"/member/remark/list",method:"post",data:e})}function _(e){return Object(n["b"])({url:"/member_tag/bind",method:"post",data:e})}function g(e){return Object(n["b"])({url:"/member_tag/unbound",method:"post",data:e})}function h(e){return Object(n["b"])({url:"/member_grade/bind",method:"post",data:e})}function v(e){return Object(n["b"])({url:"/member_grade/unbind",method:"post",data:e})}function y(e){return Object(n["b"])({url:"/member_group_relation/add",method:"post",data:e})}function O(e){return Object(n["b"])({url:"/member_group_relation/delete",method:"post",data:e})}function j(e){return Object(n["b"])({url:"/member/remark/add",method:"post",data:e})}function S(e){return Object(n["b"])({url:"/member/remark_list",method:"post",data:e})}function x(e){return Object(n["b"])({url:"/member_group/get_list_by_shop_id",method:"post",data:e})}function I(e){return Object(n["b"])({url:"/member_grade/get_list_by_shop_id",method:"post",data:e})}function w(e){return Object(n["b"])({url:"/member_tag/list/shop",method:"post",data:e})}function k(e){return Object(n["b"])({url:"/member/get_member_by_tag_id_and_shop_id",method:"post",data:e})}function B(e){return Object(n["b"])({url:"/member/get_member_by_group_id_and_shop_id",method:"post",data:e})}function F(e){return Object(n["b"])({url:"/member/get_member_by_level_id_and_shop_id",method:"post",data:e})}function C(e){return Object(n["b"])({url:"/member_grade/get_member_list_by_grade_id",method:"post",data:e})}function T(e){return Object(n["b"])({url:"/member_grade/get_unbind_member_list_by_grade_id",method:"post",data:e})}function A(e){return Object(n["b"])({url:"/member_group_relation/get_list_by_group_id",method:"post",data:e})}function K(e){return Object(n["b"])({url:"/member_group_relation/get_list_by_group_id_not_bind",method:"post",data:e})}function L(e){return Object(n["b"])({url:"/member_tag/bound/list/tag",method:"post",data:e})}function M(e){return Object(n["b"])({url:"/member_tag/unbound/list/tag",method:"post",data:e})}function N(e){return Object(n["b"])({url:"/member_tag/bound/list/tag/member",method:"post",data:e})}function q(e){return Object(n["b"])({url:"/member_grade/get_member_list_by_grade_id_with_bind",method:"post",data:e})}function G(e){return Object(n["b"])({url:"/member_group/get_member_group_user_list",method:"post",data:e})}function $(e){return Object(n["b"])({url:"/member_tag/update/name",method:"post",data:e})}}}]);