徐总多门店
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.
jiuhaoshenghuo/public/view_cashier/js/chunk-f3dc4144.4aa8cf8f.js

1 line
11 KiB

3 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f3dc4144"],{"0c3a":function(t,e,r){"use strict";var a=r("dc74"),n=r.n(a);n.a},"4eb8":function(t,e,r){},5671:function(t,e,r){"use strict";var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:"店员列表","mask-closable":!1,width:"900"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[a("Row",[a("Col",[a("Input",{staticStyle:{width:"500px"},attrs:{placeholder:"搜索店员名称/ID","element-id":"nickname",search:"","enter-button":"搜索"},on:{"on-search":t.storeSearch},model:{value:t.userFrom.keyword,callback:function(e){t.$set(t.userFrom,"keyword",e)},expression:"userFrom.keyword"}})],1)],1),t.dataList.length?a("div",{staticClass:"store-people",on:{scroll:t.getList}},[a("div",{staticClass:"store-list"},t._l(t.dataList,(function(e,r){return a("div",{key:r,staticClass:"item",class:t.id===e.id?"on":"",on:{click:function(r){return t.selectStore(e)}}},[a("div",{staticClass:"avatar"},[a("img",{attrs:{src:e.avatar,alt:""}})]),a("div",{staticClass:"msg"},[a("div",{staticClass:"msg-top"},[a("span",{staticClass:"name"},[t._v(t._s(e.staff_name))]),a("span",{staticClass:"id"},[t._v("(id:"+t._s(e.id)+")")])]),a("div",{staticClass:"msg-btn"},[t._v("\n 手机号:"+t._s(e.phone)+"\n ")])])])})),0)]):a("div",{staticClass:"no-cump"},[a("img",{attrs:{src:r("7b15"),alt:""}}),a("span",{staticClass:"trip"},[t._v("sorry~目前暂无店员")])])],1)],1)},n=[],s=r("c24f"),i={name:"userList",props:{storeInfo:{type:Object,default:function(){}}},data:function(){return{id:0,modals:!1,total:0,userFrom:{keyword:"",page:1,limit:12},loading:!1,dataList:[],currentid:"",search:!1}},created:function(){this.getList()},watch:{storeInfo:function(t,e){this.id=t.id}},methods:{selectStore:function(t){this.modals=!1,this.$emit("getStoreId",t)},getList:function(t,e){var r=this;this.loading=!0,(!t||t.target.scrollHeight-t.target.scrollTop-t.target.clientHeight<=0&&this.dataList.length<this.total)&&Object(s["b"])(this.userFrom).then((function(e){r.loading=!1,r.total=e.data.count;var a=e.data.staffList,n=e.data.staffInfo;r.dataList=a,!r.search&&t||(r.$emit("getUserInfo",{users:n,storeList:a}),r.search=!1)})).catch((function(t){r.loading=!1,r.$Message.error(t.msg)}))},storeSearch:function(){this.userFrom.page=1,this.search=!0,this.getList()},cancel:function(){this.currentid=""},pageChange:function(t){this.userFrom.page=t,this.getList()}}},c=i,o=(r("8f75"),r("2877")),u=Object(o["a"])(c,a,n,!1,null,"a8ef8336",null);e["a"]=u.exports},"653d":function(t,e,r){t.exports=r.p+"view_cashier/img/tourist.908b01d3.png"},"7b15":function(t,e,r){t.exports=r.p+"view_cashier/img/no-staff.f767c215.png"},"8f75":function(t,e,r){"use strict";var a=r("4eb8"),n=r.n(a);n.a},ad18:function(t,e,r){t.exports=r.p+"view_cashier/img/gold.67ecfa42.png"},b89c:function(t,e,r){"use strict";var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("Modal",{attrs:{value:t.visible,title:"充值",width:"768","class-name":"recharge-modal"},on:{"on-cancel":t.clear}},[t.userInfo?r("div",{staticClass:"infoData"},[r("div",{staticClass:"pictrue"},[r("img",{attrs:{src:t.userInfo.avatar}})]),r("div",{staticClass:"info"},[r("div",{staticClass:"name"},[t._v(t._s(t.userInfo.nickname)),t.userInfo.vip_name?r("span",[t._v(t._s(t.userInfo.vip_name))]):t._e()]),r("div",{staticClass:"attr"},[t.userInfo.phone?r("div",{staticClass:"item phone"},[t._v(t._s(t.userInfo.phone))]):t._e(),r("div",{staticClass:"item"},[t._v("余额"),r("span",{staticClass:"num"},[t._v(t._s(t.userInfo.now_money))])]),r("div",{staticClass:"item"},[t._v("积分"),r("span",{staticClass:"num"},[t._v(t._s(t.userInfo.integral))])]),t.userInfo.is_money_level?r("div",{staticClass:"item"},[t._v("付费会员到期:"),r("span",{staticClass:"time"},[t._v(t._s(t.userInfo.is_ever_level?"永久会员":t.userInfo.overdue_time||"已过期"))])]):t._e()])])]):t._e(),r("Form",{attrs:{"label-width":90}},[r("FormIt