chunk-607a4e48.7294023e.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-607a4e48"],{"250f":function(t,e,r){},"45e3":function(t,e,r){"use strict";var a=r("ef38"),n=r.n(a);n.a},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("45e3"),r("2877")),u=Object(o["a"])(c,a,n,!1,null,"4add8b6a",null);e["a"]=u.exports},"653d":function(t,e,r){t.exports=r.p+"view_cashier/img/tourist.908b01d3.png"},"696c":function(t,e,r){"use strict";var a=r("250f"),n=r.n(a);n.a},"7b15":function(t,e,r){t.exports=r.p+"view_cashier/img/no-staff.f767c215.png"},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("FormItem",{attrs:{label:"充值方式:"}},[r("RadioGroup",{attrs:{type:"button","button-style":"solid"},on:{"on-change":t.changeTabs},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},[r("Radio",{attrs:{label:0}},[t._v("充值套餐")]),r("Radio",{attrs:{label:1}},[t._v("自定义充值")])],1)],1),0==t.currentTab?r("FormItem",[r("RadioGroup",{staticClass:"radio-border-group",model:{value:t.activeId,callback:function(e){t.activeId=e},expression:"activeId"}},t._l(t.moneyList,(function(e){return r("Radio",{key:e.id,attrs:{label:e.id,border:""}},[r("div",{staticClass:"money"},[t._v("¥"),r("span",{staticClass:"num"},[t._v(t._s(e.price))])]),r("div",[t._v("额外赠送:¥ "+t._s(e.give_money))])])})),1)],1):t._e(),1==t.currentTab?r("FormItem",[r("InputNumber",{attrs:{min:1,max:9999999,placeholder:"0.00"},model:{value:t.payPrice,callback:function(e){t.payPrice=e},expression:"payPrice"}})],1):t._e()],1),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("Button",{attrs:{type:"primary",size:"large",long:""},on:{click:t.save}},[t._v("提交")])],1)],1)},n=[],s=r("c24f"),i={name:"recharge",model:{prop:"visible",event:"close"},props:{visible:{type:Boolean,default:!1},userInfo:{type:Object,default:function(){}}},data:function(){return{modal:!1,timer:null,currentTab:0,moneyList:[],active:0,activeId:0,modalPay:!1,payNum:"",payPrice:1,rechargeData:{uid:0,price:"",rechar_id:0,pay_type:3,auth_code:""},givePrice:0,totalPrice:0}},watch:{modal:function(t){if(t){var e=this;document.onkeydown=function(t){13==t.which&&e.payNum&&(e.rechargeData.auth_code=e.payNum,e.confirm())}}}},created:function(){this.getList()},methods:{clear:function(){this.payPrice=0,this.currentTab=0,this.$emit("close",!1)},yuePayClear:function(){this.$Message.destroy(),this.timer&&(clearInterval(this.timer),this.timer=null)},inputSaoMa:function(t){},changeTabs:function(t){0==t&&(this.active=0,this.moneyList.length&&(this.activeId=this.moneyList[0].id))},getList:function(){var t=this;Object(s["s"])().then((function(e){t.moneyList=e.data.recharge_quota,t.moneyList.length&&(t.activeId=t.moneyList[0].id)}))},activeMoney:function(t,e){this.active=t},save:function(){var t=this;if(1==this.currentTab)this.rechargeData.rechar_id=0,this.givePrice=0,this.rechargeData.price=this.payPrice;else{var e=this.moneyList.find((function(e){return e.id==t.activeId}));e&&(this.rechargeData.price=e.price,this.rechargeData.rechar_id=e.id,this.givePrice=e.give_money)}this.totalPrice=this.$computes.Add(this.rechargeData.price,this.givePrice),this.$emit("recharge",this.rechargeData)},confirm:function(){var t=this;this.rechargeData.uid=this.userInfo.uid,Object(s["t"])(this.rechargeData).then((function(e){t.payNum="";var r=e.data.status,a=e.data.data.order_id;switch(r){case"SUCCESS":t.$Message.success("支付成功"),t.modalPay=!1,t.modal=!1,t.$emit("getSuccess",t.totalPrice);break;case"PAY_ING":var n=t.$Message.loading({content:"等待支付中...",duration:0});t.checkOrderTime(a,n);break;default:t.$Message.warning("支付失败");break}})).catch((function(e){t.payNum="",t.$Message.error(e.msg)}))},checkOrderTime:function(t,e){var r=this,a=1,n=this.timer=setInterval((function(){r.checkOrder(t,n,e),a++,a>=60&&(clearInterval(n),e(),r.$Message.success("支付失败"))}),1e3)},checkOrder:function(t,e,r){var a=this;Object(s["c"])(1,{order_id:t}).then((function(t){1==t.data.status&&(r(),a.$Message.success("支付成功"),a.$emit("getSuccess",a.totalPrice),a.modalPay=!1,a.modal=!1,clearInterval(e))})).catch((function(t){r(),a.$Message.error(t.msg)}))}}},c=i,o=(r("696c"),r("2877")),u=Object(o["a"])(c,a,n,!1,null,"07a35832",null);e["a"]=u.exports},c24f:function(t,e,r){"use strict";r.d(e,"w",(function(){return n})),r.d(e,"p",(function(){return s})),r.d(e,"q",(function(){return i})),r.d(e,"a",(function(){return c})),r.d(e,"v",(function(){return o})),r.d(e,"o",(function(){return u})),r.d(e,"r",(function(){return l})),r.d(e,"b",(function(){return d})),r.d(e,"z",(function(){return f})),r.d(e,"f",(function(){return h})),r.d(e,"j",(function(){return m})),r.d(e,"d",(function(){return g})),r.d(e,"h",(function(){return p})),r.d(e,"u",(function(){return v})),r.d(e,"s",(function(){return b})),r.d(e,"y",(function(){return _})),r.d(e,"t",(function(){return y})),r.d(e,"x",(function(){return O})),r.d(e,"l",(function(){return I})),r.d(e,"n",(function(){return j})),r.d(e,"c",(function(){return C})),r.d(e,"m",(function(){return k})),r.d(e,"k",(function(){return w})),r.d(e,"g",(function(){return L})),r.d(e,"e",(function(){return P})),r.d(e,"i",(function(){return $}));var a=r("b6bd");function n(){return Object(a["a"])({url:"user/user_label_cate",method:"get"})}function s(){return Object(a["a"])({url:"user/user_label_cate/create",method:"get"})}function i(t){return Object(a["a"])({url:"user/user_label_cate/".concat(t,"/edit"),method:"get"})}function c(t){return Object(a["a"])({url:"user/user_label",method:"get",params:t})}function o(){return Object(a["a"])({url:"user/user_label/create",method:"get"})}function u(t){return Object(a["a"])({url:"user/user_label/".concat(t,"/edit"),method:"get"})}function l(t){return Object(a["a"])({url:"user/get_list",method:"get",params:t})}function d(t){return Object(a["a"])({url:"user/cashier_list",method:"get",params:t})}function f(t){return Object(a["a"])({url:"user/search",method:"get",params:t})}function h(t){return Object(a["a"])({url:"user/label/".concat(t),method:"get"})}function m(t,e){return Object(a["a"])({url:"user/label/".concat(t),method:"post",data:e})}function g(t){return Object(a["a"])({url:"user/info/".concat(t),method:"get"})}function p(t){return Object(a["a"])({url:"user/record/".concat(t.id),method:"get",params:t.datas})}function v(t){return Object(a["a"])({url:"user/set_label",method:"post",data:t})}function b(){return Object(a["a"])({url:"store/recharge_info",method:"get"})}function _(){return Object(a["a"])({url:"user/member/ship",method:"get"})}function y(t){return Object(a["a"])({url:"store/recharge",method:"post",data:t})}function O(t){return Object(a["a"])({url:"/user/member",method:"post",data:t})}function I(t){return Object(a["a"])({url:"staff/binding/user",method:"post",data:t})}function j(t){return Object(a["a"])({url:"updatePwd",method:"PUT",data:t})}function C(t,e){return Object(a["a"])({url:"check_order_status/".concat(t),method:"post",data:e})}function k(){return Object(a["a"])({url:"user/cashier_info ",method:"get"})}function w(t){return Object(a["a"])({url:"user/read/".concat(t),method:"get"})}function L(t,e){return Object(a["a"])({url:"user/one_info/".concat(t),method:"get",params:e})}function P(t){return Object(a["a"])({url:"user/member_card",method:"get",params:t})}function $(t){return Object(a["a"])({url:"user/mer_recharge",method:"post",data:t})}},ef38:function(t,e,r){},fbde:function(t,e,r){t.exports=r.p+"view_cashier/img/process1.617f1e82.png"}}]);