徐总多门店
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/收银台/cashier/dist/view_cashier/js/chunk-3c7f2e58.f074d57c.js

1 lines
39 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3c7f2e58"],{"16b2":function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Drawer",{ref:"drawer",attrs:{value:t.visible,width:"800","class-name":"settle-drawer"},on:{"on-close":t.close,"on-visible-change":t.visibleChange}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"title"},[t._v("选择支付方式")]),a("div",{staticClass:"btn-group"},[a("ButtonGroup",{attrs:{shape:"circle"}},[t._l(t.list,(function(e){return[e.status?a("Button",{key:e.label,attrs:{type:e.value===t.type?"primary":"default"},on:{click:function(a){return t.typeChange(e.value)}}},[t._v(t._s(e.label))]):t._e()]}))],2)],1)]),a("div",{staticClass:"drawer-body"},[a("div",{staticClass:"receivable"},[a("div",{staticClass:"title"},[a("span",{staticClass:"inner"},[t._v("应收金额(元)")])]),a("div",{staticClass:"money"},[t._v("\n ¥"),a("span",{staticClass:"number"},[t._v(t._s(t.money))])])]),"cash"===t.type?a("div",{staticClass:"counter"},[a("div",{staticClass:"received"},[t._v(t._s(t.collection))]),a("div",{staticClass:"balance"},[t._v("\n 需找零(元):"),a("span",{staticClass:"money"},[t._v("¥"+t._s(t.money>t.collection?0:this.$computes.Sub(t.collection,t.money||0)))])]),a("div",{staticClass:"keypad"},[a("div",{staticClass:"left"},t._l(t.numList,(function(e){return a("Button",{key:e,on:{click:function(a){return t.numTap(e)}}},[t._v(t._s(e))])})),1),a("div",{staticClass:"right"},[a("Button",{on:{click:t.delNum}},[a("Icon",{attrs:{type:"ios-backspace-outline"}})],1),a("Button",{on:{click:function(e){return t.delNum(-1)}}},[t._v("C")]),a("Button",{staticClass:"enter",on:{click:t.cashBnt}},[t._v("确认")])],1)])]):!t.type||t.verify?a("div",{staticClass:"payment-code"},[a("Input",{key:t.type,ref:"input",attrs:{placeholder:"请点击输入框聚焦扫码或输入编码号"},on:{"on-enter":t.cashBnt},model:{value:t.payNum,callback:function(e){t.payNum="string"===typeof e?e.trim():e},expression:"payNum"}}),a("div",{staticClass:"tips-wrap",class:{balance:"yue"===t.type}})],1):t._e()]),a("div",{staticClass:"drawer-footer"},[a("Button",{on:{click:t.close}},[t._v("取消收款")]),"yue"!==t.type||t.verify?t._e():a("Button",{attrs:{type:"primary"},on:{click:t.cashBnt}},[t._v("扣除余额")])],1)])},i=[],r={model:{prop:"visible",event:"close"},props:{visible:{type:Boolean,default:!1},money:{type:[Number,String],default:0},collection:{type:[Number,String],default:0},zIndex:{type:[Number,String],default:9999},type:{type:String,default:""},verify:{type:Boolean,default:!1},list:{type:Array,default:function(){return[]}}},data:function(){return{numList:["1","2","3","4","5","6","7","8","9","0","00","."],payNum:""}},watch:{type:function(t){var e=this;this.$nextTick((function(){(!t||"yue"===t&&e.verify)&&e.$refs.input.focus()}))},zIndex:function(t){var e=this.$refs.drawer.$el;e.querySelector(".ivu-drawer-mask").style.zIndex=t,e.querySelector(".ivu-drawer-wrap").style.zIndex=t}},methods:{close:function(){this.$emit("close",!1)},visibleChange:function(t){var e=this;this.$nextTick((function(){t&&(!e.type||"yue"===e.type&&e.verify)&&e.$refs.input.focus()}))},typeChange:function(t){this.payNum="",this.$emit("payPrice",t)},numTap:function(t){this.$emit("numTap",t)},delNum:function(t){this.$emit("delNum",t)},cashBnt:function(){(this.payNum||"cash"===this.type||"yue"===this.type&&!this.verify)&&this.$emit("cashBnt",this.payNum)}}},n=r,c=(a("ba8a"),a("2877")),o=Object(c["a"])(n,s,i,!1,null,"46df39cb",null);e["a"]=o.exports},"16b6":function(t,e,a){},"1a3d":function(t,e,a){t.exports=a.p+"view_cashier/img/process2.f9f8c6c6.png"},"1c52":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));var s=a("b6bd");function i(){return Object(s["a"])({url:"store/recharge_info",method:"get"})}},"2f73":function(t,e,a){},"300b":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"order"},[s("div",{staticClass:"left"},[t._m(0),s("div",{staticClass:"order-box"},[s("div",{staticClass:"search"},[s("Input",{attrs:{search:"","enter-button":"搜索",placeholder:"搜索手机号/ID",size:"large"},on:{"on-search":t.search},model:{value:t.userFrom.keyword,callback:function(e){t.$set(t.userFrom,"keyword",e)},expression:"userFrom.keyword"}})],1),t.userList.length?s("userList",{attrs:{userList:t.userList,total:t.total},on:{selectUser:t.selectUser,addPage:t.addPage}}):s("div",{staticClass:"no-order"},[s("img",{attrs:{src:a("66c9"),alt:""}}),s("span",{staticClass:"trip"},[t._v("噢~目前暂无用户")])])],1)]),t.total?s("div",{staticClass:"order-data"},[s("div",{staticClass:"header"},[t._l(t.tabs,(function(e,a){return s("div",{directives:[{name:"show",rawName:"v-show",value:!a||!t.selectUserData.delete_time,expression:"!index || !selectUserData.delete_time"}],key:a,staticClass:"item",class:{sel:t.sle==a,"neighbor-left":t.sle-a==1,"neighbor-right":a-t.sle==1},on:{click:function(e){return t.selectTab(a)}}},[s("div",{staticClass:"item-wrap"},[t._v("\n "+t._s(e)+"\n ")])])})),s("div",{staticClass:"box",class:{"neighbor-right":t.selectUserData.delete_time||2==t.sle}})],2),s("div",{staticClass:"content",class:{"border-radius":t.sle}},[0===t.sle?s("div",{staticClass:"detail"},[s("div",{staticClass:"user"},[s("div",[s("img",{staticClass:"img",attrs:{src:t.selectUserInfo.avatar,alt:""}})]),s("div",{staticClass:"user-content"},[s("div",{staticClass:"name-wrap"},[s("div",{staticClass:"name"},[t._v(t._s(t.selectUserInfo.nickname))]),t.selectUserInfo.vip_name?s("div",{staticClass:"tag"},[t._v("\n "+t._s(t.selectUserInfo.vip_name)+"\n ")]):t._e(),t.selectUserData.delete_time?s("div",[t._v("(已注销)")]):t._e()]),s("div",{staticClass:"phone-wrap"},[t.selectUserInfo.phone?s("div",{staticClass:"phone"},[t._v("\n "+t._s(t.selectUserInfo.phone)+"\n ")]):t._e(),s("div",[t._v("\n 余额"),s("span",{staticClass:"num"},[t._v(t._s(t.selectUserInfo.now_money))])]),s("div",[t._v("\n 积分"),s("span",{staticClass:"num"},[t._v(t._s(t.selectUserInfo.integral))])]),t.selectUserInfo.is_money_level?s("div",[t._v("\n 付费会员到期:\n "),s("span",{staticClass:"time"},[t._v(t._s(t.selectUserInfo.is_ever_level?"永久会员":t.selectUserInfo.overdue_time||"已过期"))])]):t._e()])])]),s("Tabs",{attrs:{animated:!1},on:{click:t.tabClick},model:{value:t.tabActive,callback:function(e){t.tabActive=e},expression:"tabActive"}},[s("TabPane",{attrs:{label:"存酒记录",name:"order"}},[s("Table",{attrs:{columns:t.columns1,data:t.datalist}}),s("Page",{staticStyle:{"margin-top":"20px"},attrs:{total:t.total1,size:"small","show-total":""},on:{"on-change":t.pageChange1}})],1),s("TabPane",{attrs:{label:"操作记录",name:"integral"}},[s("Table",{attrs:{columns:t.columns2,data:t.czdatalist}}),s("Page",{staticStyle:{"margin-top":"20px"},attrs:{total:t.total1,size:"small","show-total":""},on:{"on-change":t.pageChange2}})],1)],1)],1):t._e(),1===t.sle?s("div",{staticClass:"member"},[s("Input",{ref:"input",staticClass:"input",attrs:{maxlength:20,"element-id":"name","enter-button":"",placeholder:"搜索商品名称/ID/唯一码或点击聚焦扫码",search:"",size:"large"},on:{"on-search":t.orderSearch},model:{value:t.store_name,callback:function(e){t.store_name=e},expression:"store_name"}},[s("Select",{staticStyle:{width:"90px"},attrs:{slot:"prepend"},slot:"prepend",model:{value:t.field_key,callback:function(e){t.field_key=e},expression:"field_key"}},[s("Option",{attrs:{value:"all"}},[t._v("全部")]),s("Option",{attrs:{value:"store_name"}},[t._v("商品名称")]),s("Option",{attrs:{value:"id"}},[t._v("ID")]),s("Option",{attrs:{value:"bar_code"}},[t._v("唯一码")])],1)],1),s("Row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:120}},[s("Col",{attrs:{span:"10"}},[s("Form",{attrs:{model:t.formItem,"label-width":80}},[s("FormItem",{attrs:{label:"酒水名称"}},[s("Input",{attrs:{placeholder:"酒水名称"},model:{value:t.formItem.product_name,callback:function(e){t.$set(t.formItem,"product_name",e)},expression:"formItem.product_name"}})],1),s("FormItem",{attrs:{label:"存酒数量"}},[s("InputNumber",{attrs:{min:0,"controls-outside":""},on:{"on-change":t.onchange},model:{value:t.formItem.num,callback:function(e){t.$set(t.formItem,"num",e)},expression:"formItem.num"}})],1),s("FormItem",{attrs:{label:"到期日期"}},[s("Row",[s("DatePicker",{attrs:{format:"yyyy-MM-dd",type:"date",placeholder:"日期"},model:{value:t.formItem.out_time,callback:function(e){t.$set(t.formItem,"out_time",e)},expression:"formItem.out_time"}})],1)],1),s("FormItem",{attrs:{label:"桌台号"}},[s("Input",{attrs:{placeholder:"桌台号"},model:{value:t.formItem.table_id,callback:function(e){t.$set(t.formItem,"table_id",e)},expression:"formItem.table_id"}})],1),s("FormItem",[s("Button",{staticStyle:{width:"150px"},attrs:{type:"primary"},on:{click:t.cunqujiu}},[t._v("存酒")])],1)],1)],1),s("Col",{attrs:{span:"14"}},[s("Table",{attrs:{columns:t.columns,data:t.datalist},scopedSlots:t._u([{key:"action",fn:function(e){var a=e.row,i=e.index;return[s("Button",{staticStyle:{"margin-right":"5px"},attrs:{type:"primary",size:"small"},on:{click:function(e){return t.cxbianji(i,a,1)}}},[t._v("重新编辑")])]}}],null,!1,4196163663)}),s("Page",{staticStyle:{"margin-top":"20px"},attrs:{total:t.total1,size:"small","show-total":""},on:{"on-change":t.pageChange1}})],1)],1)],1):t._e(),2===t.sle?s("div",{staticClass:"member"},[s("Input",{ref:"input",staticClass:"input",attrs:{maxlength:20,"element-id":"name","enter-button":"",placeholder:"搜索商品名称/ID/唯一码或点击聚焦扫码",search:"",size:"large"},on:{"on-search":t.orderSearch},model:{value:t.store_name,callback:function(e){t.store_name=e},expression:"store_name"}},[s("Select",{staticStyle:{width:"90px"},attrs:{slot:"prepend"},slot:"prepend",model:{value:t.field_key,callback:function(e){t.field_key=e},expression:"field_key"}},[s("Option",{attrs:{value:"all"}},[t._v("全部")]),s("Option",{attrs:{value:"store_name"}},[t._v("商品名称")]),s("Option",{attrs:{value:"id"}},[t._v("ID")]),s("Option",{attrs:{value:"bar_code"}},[t._v("唯一码")])],1)],1),s("Row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:120}},[s("Col",{attrs:{span:"10"}},[s("Form",{attrs:{model:t.formItem,"label-width":80}},[s("FormItem",{attrs:{label:"酒水名称"}},[s("Input",{attrs:{placeholder:"酒水名称"},model:{value:t.formItem.product_name,callback:function(e){t.$set(t.formItem,"product_name",e)},expression:"formItem.product_name"}})],1),s("FormItem",{attrs:{label:"取酒码"}},[s("Input",{attrs:{placeholder:"取酒码"},model:{value:t.formItem.code,callback:function(e){t.$set(t.formItem,"code",e)},expression:"formItem.code"}})],1),s("FormItem",{attrs:{label:"桌台号"}},[s("Input",{attrs:{placeholder:"桌台号"},model:{value:t.formItem.table_id,callback:function(e){t.$set(t.formItem,"table_id",e)},expression:"formItem.table_id"}})],1),s("FormItem",{attrs:{label:"取酒数量"}},[s("InputNumber",{attrs:{min:1,max:t.formItem.num,"controls-outside":""},model:{value:t.formItem.num,callback:function(e){t.$set(t.formItem,"num",e)},expression:"formItem.num"}})],1),s("FormItem",{attrs:{label:"到期日期"}},[s("Row",[s("DatePicker",{attrs:{format:"yyyy-MM-dd",type:"date",placeholder:"到期日期"},model:{value:t.formItem.out_time,callback:function(e){t.$set(t.formItem,"out_time",e)},expression:"formItem.out_time"}})],1)],1),s("FormItem",[s("Button",{staticStyle:{width:"150px"},attrs:{type:"primary"},on:{click:t.cunqujiu1}},[t._v(t._s(t.qujiu))])],1)],1)],1),s("Col",{attrs:{span:"14"}},[s("Table",{attrs:{columns:t.columns,data:t.datalist},scopedSlots:t._u([{key:"action",fn:function(e){var a=e.row,i=e.index;return[s("Button",{staticStyle:{"margin-right":"5px"},attrs:{type:"primary",size:"small"},on:{click:function(e){return t.cxbianji(i,a,2)}}},[t._v("取酒")]),s("Button",{staticStyle:{"margin-right":"5px"},attrs:{type:"primary",size:"small"},on:{click:function(e){return t.cxbianji(i,a,3)}}},[t._v("续期")])]}}],null,!1,3342793250)}),s("Page",{staticStyle:{"margin-top":"20px"},attrs:{total:t.total1,size:"small","show-total":""},on:{"on-change":t.pageChange1}})],1)],1)],1):t._e()])]):t._e(),s("Modal",{staticClass:"modalPay",attrs:{"footer-hide":"",width:"450px"},on:{"on-cancel":t.yuePayClear},model:{value:t.modalPay,callback:function(e){t.modalPay=e},expression:"modalPay"}},[s("div",{staticClass:"payPage"},[s("div",{staticClass:"header acea-row row-center-wrapper"},[s("div",{staticClass:"pictrue"},[s("img",{attrs:{src:a("ad18")}})]),s("div",{staticClass:"text"},[t._v("应收金额(元)")])]),s("div",{staticClass:"money"},[t._v("\n ¥"),s("span",{staticClass:"num"},[t._v(t._s(t.rechargeData.price))])]),s("Input",{ref:"rechargeNum",staticStyle:{"margin-top":"16px"},attrs:{size:"large",type:"url",placeholder:"请点击输入框聚焦扫码或输入编码号"},model:{value:t.rechargeData.auth_code,callback:function(e){t.$set(t.rechargeData,"auth_code",e)},expression:"rechargeData.auth_code"}}),s("div",{staticClass:"process"},[s("div",{staticClass:"pictrue"},[s("img",{attrs:{src:a("1a3d")}})]),s("div",{staticClass:"list acea-row row-between-wrapper"},[s("div",{staticClass:"item one"},[s("div",{staticClass:"name"},[t._v("出示付款码")]),s("div",[t._v("支付宝/微信")])]),s("div",{staticClass:"item two"},[s("div",{staticClass:"name"},[t._v("扫描付款码")]),s("div",[t._v("扫码枪")])]),s("div",{staticClass:"item three"},[s("div",{staticClass:"name"},[t._v("确认收款")]),s("div",[t._v("收银台点击确认")])])])]),s("Button",{staticClass:"bnt",attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确认")])],1)]),s("Modal",{staticClass:"cash",attrs:{"footer-hide":"",width:"770px"},on:{"on-cancel":t.cancel},model:{value:t.modalCash,callback:function(e){t.modalCash=e},expression:"modalCash"}},[s("div",{staticClass:"cashPage acea-row"},[s("div",{staticClass:"left"},[s("div",{staticClass:"picture"},[s("img",{attrs:{src:a("ad18")}})]),s("div",{staticClass:"text"},[t._v("应收金额(元)")]),s("div",{staticClass:"money"},[t._v("\n ¥"),s("span",{staticClass:"num"},[t._v(t._s(t.rechargeData.price||0))])])]),s("div",{staticClass:"right"},[s("div",{staticClass:"rightCon"},[s("div",{staticClass:"top acea-row row-between-wrapper"},[s("div",[t._v("实际收款(元)")]),s("div",{staticClass:"num"},[t._v(t._s(t.collection))])]),s("div",{staticClass:"center acea-row row-between-wrapper"},[s("div",[t._v("需找零(元)")]),t.$computes.Sub(t.collection,t.rechargeData.price||0)>0?s("div",{staticClass:"num"},[t._v("\n "+t._s(t.$computes.Sub(t.collection,t.rechargeData.price||0))+"\n ")]):s("div",{staticClass:"num"},[t._v("0")])]),s("div",{staticClass:"bottom acea-row"},[t._l(t.numList,(function(e,a){return s("div",{key:a,staticClass:"item acea-row row-center-wrapper",class:"."==e?"spot":"",on:{click:function(a){return t.numTap(e)}}},[t._v("\n "+t._s(e)+"\n ")])})),s("div",{staticClass:"item acea-row row-center-wrapper",on:{click:t.delNum}},[s("Icon",{attrs:{type:"ios-backspace"}})],1)],2)]),s("Button",{attrs:{type:"primary"},on:{click:t.cashBnt}},[t._v("确认")])],1)])]),s("settleDrawer",{attrs:{list:t.payList,type:t.payType,money:t.rechargeData.price,collection:t.collection},on:{payPrice:t.onPayPrice,numTap:t.numTap,delNum:t.delNum,cashBnt:t.cashBnt},model:{value:t.settleVisible,callback:function(e){t.settleVisible=e},expression:"settleVisible"}})],1)},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"left-top"},[a("div",{staticClass:"title"},[t._v("用户列表")])])}],r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"user-info"},[a("div",{staticClass:"section"},[a("div",{staticClass:"section-head"},[t._v("用户信息")]),a("div",{staticClass:"section-body"},[a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("用户ID:")]),a("div",{staticClass:"value"},[t._v(t._s(t.userInfo.uid))])]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("真实姓名:")]),a("div",{staticClass:"value"},[t._v(t._s(t.userInfo.real_name||"-"))])]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("手机号码:")]),a("div",{staticClass:"value"},[t._v(t._s(t.userInfo.phone||"-"))])]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("生日:")]),a("div",{staticClass:"value"},[t._v(t._s(t.userInfo.birthday||"-"))])]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("性别:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.userInfo.sex?1==t.userInfo.sex?"男":"女":"保密")+"\n ")])]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("身份证号:")]),a("div",{staticClass:"value"},[t._v(t._s(t.userInfo.card_id||"-"))])]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("用户地址:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(""+t.userInfo.provincials+t.userInfo.addres||"-")+"\n ")])])])]),a("div",{staticClass:"section"},[a("div",{staticClass:"section-head"},[t._v("用户概况")]),a("div",{staticClass:"section-body"},[a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("推广资格:")]),a("div",{staticClass:"value"},[t._v(t._s(t.userInfo.spread_open?"启用":"禁用"))])]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("用户状态:")]),a("div",{staticClass:"value"},[t._v(t._s(t.userInfo.status?"开启":"锁定"))])]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("用户等级:")]),a("div",{staticClass:"value"},[t._v(t._s(t.userInfo.vip_name||"-"))])]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("用户标签:")]),a("div",{staticClass:"value"},[t._v(t._s(t.userInfo.label_list||"-"))])]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("用户分组:")]),a("div",{staticClass:"value"},[t._v(t._s(t.userInfo.group?t.userInfo.group.group_name:"无"))])]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("推广人:")]),a("div",{staticClass:"value"},[t._v(t._s(t.userInfo.spread_uid_nickname||"无"))])]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("注册时间:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.$moment(1e3*t.userInfo.add_time).format("YYYY-MM-DD H:mm:ss"))+"\n ")])]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("登录时间:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.$moment(1e3*t.userInfo.last_time).format("YYYY-MM-DD H:mm:ss"))+"\n ")])])])]),a("div",{staticClass:"section"},[a("div",{staticClass:"section-head"},[t._v("用户备注")]),a("div",{staticClass:"section-body"},[a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("备注:")]),a("div",{staticClass:"value"},[t._v(t._s(t.userInfo.mark||"-"))])])])])])},n=[],c={name:"userInfo",props:{userInfo:{type:Object,default:function(){return{}}}}},o=c,l=(a("3e1c"),a("2877")),u=Object(l["a"])(o,r,n,!1,null,"fbfd80e2",null),d=u.exports,m=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"table-wrapper"},[a("Table",{attrs:{columns:t.$data[t.type].columns,data:t.$data[t.type].data},scopedSlots:t._u([{key:"coupon_price",fn:function(e){var s=e.row;return[1==s.coupon_type?a("span",[t._v(t._s(s.coupon_price)+"元")]):t._e(),2==s.coupon_type?a("span",[t._v(t._s(parseFloat(s.coupon_price)/10)+"折("+t._s(s.coupon_price.toString().split(".")[0])+"%)")]):t._e()]}},{key:"product",fn:function(e){var s=e.row;return[a("div",{staticClass:"product"},[a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"image"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:s.image,expression:"row.image"}]})]),a("div",{staticClass:"title"},[t._v(t._s(s.store_name))])])]}}])})],1),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.$data[t.type].total,current:t.$data[t.type].page,"page-size":t.limit,"show-total":""},on:{"on-change":t.pageChange}})],1)])},h=[],p=a("c24f"),v={props:{userInfo:{type:Object,default:function(){return{}}},type:{type:String,default:""}},data:function(){return{order:{columns:[{title:"订单ID",key:"order_id",minWidth:160},{title:"收货人",key:"real_name",minWidth:100},{title:"商品数量",key:"total_num",minWidth:90},{title:"商品总价",key:"total_price",minWidth:110},{title:"实付金额",key:"pay_price",minWidth:120},{title:"交易完成时间",key:"pay_time",minWidth:120}],data:[],total:0,page:1},integral:{columns:[{title:"来源/用途",key:"title",minWidth:120},{title:"积分变化",key:"number",minWidth:120},{title:"变化后积分",key:"balance",minWidth:120},{title:"日期",key:"add_time",minWidth:120},{title:"备注",key:"mark",minWidth:120}],data:[],total:0,page:1},coupon:{columns:[{title:"优惠券名称",key:"coupon_title",minWidth:120},{title:"面值",slot:"coupon_price",minWidth:120},{title:"有效期(天)",key:"coupon_time",minWidth:120},{title:"兑换时间",key:"_add_time",minWidth:120}],data:[],total:0,page:1},balance_change:{columns:[{title:"动作",key:"title",minWidth:120},{title:"变动金额",key:"number",minWidth:120},{title:"变动后",key:"balance",minWidth:120},{title:"创建时间",key:"add_time",minWidth:120},{title:"备注",key:"mark",minWidth:120}],data:[],total:0,page:1},visit:{columns:[{title:"商品信息",slot:"product",width:500},{title:"价格",key:"product_price",render:function(t,e){return t("div","¥".concat(e.row.product_price))}},{title:"浏览时间",key:"add_time"}],data:[],total:0,page:1},spread_change:{columns:[{title:"推荐人ID",key:"spread_uid",minWidth:120},{title:"推荐人",key:"nickname",minWidth:120,render:function(t,e){return t("div",[t("img",{style:{borderRadius:"50%",marginRight:"10px",verticalAlign:"middle"},attrs:{with:38,height:38},directives:[{name:"lazy",value:e.row.avatar},{name:"viewer"}]}),t("span",{style:{verticalAlign:"middle"}},e.row.nickname)])}},{title:"变更方式",key:"type",minWidth:120},{title:"变更时间",key:"spread_time",minWidth:120}],data:[],total:0,page:1},limit:10}},watch:{userInfo:{handler:function(t){var e=this;t.uid&&(Object.keys(this.$data).forEach((function(t){e[t].page&&(e[t].page=1)})),this.getUserOneInfo())},immediate:!0}},methods:{getUserOneInfo:function(){var t=this;Object(p["l"])(this.userInfo.uid,{type:this.type,page:this[this.type].page,limit:this.limit}).then((function(e){var a=e.data,s=a.count,i=a.list;t[t.type].data=i,t[t.type].total=s}))},pageChange:function(t){this[this.type].page=t,this.getUserOneInfo()}}},f=v,_=(a("f42b"),Object(l["a"])(f,m,h,!1,null,"3a9694cb",null)),g=_.exports,y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pending-user",on:{scroll:t.userListApi}},t._l(t.userList,(function(e,s){return a("div",{key:s,staticClass:"list",class:t.selIndex===s?"bor":"",on:{click:function(a){return t.selectUser(e,s)}}},[a("div",{staticClass:"item"},[a("div",{staticClass:"avatar"},[a("img",{attrs:{src:e.avatar,alt:"头像"}})]),a("div",{staticClass:"item-right"},[a("div",{staticClass:"user"},[a("div",{staticClass:"inner"},[a("div",{staticClass:"name"},[t._v(t._s(e.nickname||"游客"))]),a("div",[t._v("(ID:"+t._s(e.uid)+")")]),a("div",{staticClass:"phone"},[t._v("手机号:"+t._s(e.phone||"暂无"))])])]),a("div",{staticClass:"money"},[a("div",[t._v("\n 积分:"),a("span",{staticClass:"num"},[t._v(t._s(e.integral))])]),a("div",{staticClass:"now-money"},[t._v("\n 余额:"),a("span",{staticClass:"num"},[t._v(t._s(e.now_money))])])])])])])})),0)},b=[],C={name:"orderList",props:{userList:{type:Array},total:{type:Number}},data:function(){return{selIndex:0}},methods:{userListApi:function(t){(!t||t.target.scrollHeight-t.target.scrollTop-t.target.clientHeight<=0&&this.userList.length<this.total)&&this.$emit("addPage")},selectUser:function(t,e){this.selIndex=e,this.$emit("selectUser",t)}}},k=C,I=(a("3d4e"),Object(l["a"])(k,y,b,!1,null,"fa1926d6",null)),w=I.exports,O=a("9568"),j=a("ea47"),D=a("bd57"),x=a("6dc2"),$=a("16b2"),P=a("1c52");a("94b5");function S(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function U(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?S(a,!0).forEach((function(e){T(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):S(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function T(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var L={components:{userList:w,goodsList:O["a"],userOrder:j["a"],orderDetails:D["a"],orderRecord:x["a"],userInfo:d,userTable:g,settleDrawer:$["a"]},data:function(){return{rowsub:{},subtype:"",qujiu:"取酒",czdatalist:[],columns2:[{title:"操作日期",key:"create"},{title:"操作内容",key:"content"}],columns1:[{title:"酒水名称",key:"product_name"},{title:"现有数量",key:"now_num"},{title:"到期时间",key:"out_time"}],columns:[{title:"酒水名称",key:"product_name"},{title:"桌台号",key:"table_id"},{title:"取酒码",key:"code"},{title:"现有数量",key:"now_num"},{title:"到期时间",key:"out_time"},{title:"操作",slot:"action",width:150,align:"center"}],datalist:[],formItem:{product_name:"",product_num:0,table_id:"",num:1,product_id:0,out_time:""},store_name:"",field_key:"",userList:[],tabs:["会员信息","存酒","取酒"],sle:0,rechargeList:[],searchData:{type:0,status:0,time:0,people:0},rechargeData:{uid:0,price:0,rechar_id:0,merber_id:0,pay_type:3,auth_code:""},payPrice:1,payNum:0,total:0,modalPay:!1,userFrom:{keyword:"",page:1,limit:15,field_key:"all"},selectUserData:{},selectUserInfo:{},menus:[{name:"存酒记录",value:"order",component:"userTable"},{name:"操作记录",value:"integral",component:"userTable"}],tabActive:"order",memberCard:[],rechargeType:1,modalCash:!1,collectionArray:[],collection:0,numList:["7","8","9","4","5","6","1","2","3","0","."],isOrderCreate:0,settleVisible:!1,payType:"",payList:[{label:"微信/支付宝",value:"",status:!0},{label:"现金收款",value:"cash",status:!0}],total1:0,usermoren:""}},computed:{memberCheck:function(){var t=this,e=this.memberCard.find((function(e){return e.id==t.rechargeData.merber_id}));return e||{}},balanceCheck:function(){var t=this,e=this.rechargeList.find((function(e){return e.id==t.rechargeData.rechar_id}));return e||{}}},watch:{"selectUserData.uid":function(t){t&&(this.readUserInfo(),this.getMemberCard())},total:function(t){t?this.getRechargeData():(this.selectUserInfo=this.selectUserData={},this.sle=0,this.rechargeType=1,this.payPrice=1)},payPrice:function(t){var e=this;this.$nextTick((function(){"number"==typeof t&&parseFloat(t)!=parseInt(t)&&t.toString().length-(t.toString().indexOf(".")+1)>2&&(e.payPrice=Number(t.toFixed(2)))}))}},created:function(){this.userListApi()},beforeDestroy:function(){clearInterval(this.timer)},mounted:function(){console.log(12399,this.usermoren)},methods:{onchange:function(t){console.log(t)},getlog:function(t){var e=this,a=this.selectUserData.uid;a||(a=this.usermoren),console.log("用户ID",a),console.log("page",t),Object(p["e"])(a,{page:t,limit:10}).then((function(t){console.log(123,t),e.czdatalist=t.data.list}))},tabClick:function(){console.log("点击列表栏目")},listpage:function(t,e){var a=this,s=this.selectUserData.uid;s||(s=this.usermoren),console.log(998,s),Object(p["b"])(s,{page:t,limit:"10",keyword:e}).then((function(t){console.log(123,t),a.datalist=t.data.list,a.total1=t.data.count,console.log(77,a.total1)}))},pageChange2:function(t){this.getlog(t)},pageChange1:function(t){this.listpage(t,"")},pageChange:function(t){console.log(123,t)},cxbianji:function(t,e,a){this.qujiu="2"==a?"取酒":"续期",this.formItem.product_name=e.product_name,this.formItem.num=e.num,this.formItem.table_id=e.table_id,this.formItem.code=e.code,this.formItem.out_time=e.out_time,this.rowsub=e,this.subtype=a},cunqujiu1:function(){var t=this;if("3"!=this.subtype||""!=this.formItem.out_time){var e={id:this.rowsub.id,num:this.formItem.num,type:this.subtype,date:this.formItem.out_time,code:this.formItem.code,table_id:this.formItem.table_id};console.log(445454,e),Object(p["d"])(this.selectUserData.uid,e).then((function(e){console.log(123,e),t.$Message.success(e.msg),t.listpage(1,"")})).catch((function(e){t.$Message.error(e.msg)}))}else this.$Message.error("请选择日期")},cunqujiu:function(){var t=this;Object(p["c"])(this.selectUserData.uid,this.formItem).then((function(e){console.log(4444,e),t.$Message.success(e.msg),t.listpage(1,"")})).catch((function(e){console.log(123,e),t.$Message.error(e.msg)}))},orderSearch:function(){var t=this,e={store_name:this.store_name,page:1,field_key:this.field_key,limit:30,cunqu:1};Object(p["g"])(e).then((function(e){console.log("res",e),t.formItem.product_name=e.data.product_name,200==e.status?t.$Message.success(e.msg):t.$Message.error(e.msg)}))},jsToJava:function(){try{window.Jsbridge.invoke("openCacheBox",JSON.stringify({"p1-key":"p1-value"}),this.myFunction())}catch(t){}},keyboard:function(){var t=this;function e(e){t.collectionArray.pop(),t.collection=t.collectionArray.length?t.collectionArray.join(""):0}function a(e){!1===t.defaultcalc&&(t.collection="",t.defaultcalc=!0);var a=String(t.collection).indexOf(".")+1,s=String(t.collection).length-a;(0===a||s<2)&&(t.collectionArray.join("")<=9999999&&t.collectionArray.push(e),t.collection=t.collectionArray.join("")>99999999?99999999:t.collectionArray.join(""))}document.onkeydown=function(s){var i=s||window.event,r=i.keyCode;switch(t.modalCash&&(s.stopPropagation(),s.preventDefault()),r){case 96:case 48:a(0);break;case 97:case 49:a(1);break;case 98:case 50:a(2);break;case 99:case 51:a(3);break;case 100:case 52:a(4);break;case 101:case 53:a(5);break;case 102:case 54:a(6);break;case 103:case 55:a(7);break;case 104:case 56:a(8);break;case 105:case 57:a(9);break;case 110:a(".");break;case 190:a(".");break;case 8:e();break}}},cashBnt:function(t){var e=this;this.cashBntLoading||(this.cashBntLoading=!0,this.payType?this.rechargeData.pay_type=4:(this.rechargeData.pay_type=3,this.rechargeData.auth_code=t),this.confirm(),setTimeout((function(){e.cashBntLoading=!1}),1e3))},delNum:function(){this.collectionArray.pop(),this.collection=this.collectionArray.length?this.collectionArray.join(""):0},numTap:function(t){!1===this.defaultcalc&&(this.collection="",this.defaultcalc=!0);var e=String(this.collection).indexOf(".")+1,a=String(this.collection).length-e;(0===e||a<2)&&(this.collectionArray.join("")<=9999999&&this.collectionArray.push(t),this.collection=this.collectionArray.join("")>99999999?99999999:this.collectionArray.join(""))},cancel:function(){this.collection=0,this.collectionArray=[]},memberRecharge:function(){var t=this,e=U({},this.rechargeData);if(delete e.rechar_id,4==this.rechargeData.pay_type&&this.rechargeData.price>Number(this.collection))return this.$Message.error("您付款金额不足");Object(p["n"])(e).then((function(e){var a=e.data,s=a.status,i=a.data;switch(s){case"SUCCESS":t.$Message.success("支付成功"),t.settleVisible=!1,t.search(),t.payPrice=1,4==t.rechargeData.pay_type?t.jsToJava():t.rechargeData.auth_code="";break;case"PAY_ING":var r=t.$Message.loading({content:"等待支付中...",duration:0});t.checkOrderTime(i.order_id,r);break;default:t.$Message.warning("支付失败");break}})).catch((function(e){t.$Message.warning(e.msg)}))},getMemberCard:function(){var t=this,e=this.selectUserData,a=e.is_money_level,s=e.overdue_time;Object(p["j"])({is_money_level:a,overdue_time:s}).then((function(e){t.memberCard=e.data}))},readUserInfo:function(){var t=this;Object(p["p"])(this.selectUserData.uid).then((function(e){t.selectUserInfo=e.data.ps_info}))},addPage:function(){this.userList.length<this.total&&this.userFrom.page++,this.userListApi()},search:function(){this.userList=[],this.userFrom.page=1,this.userListApi()},userListApi:function(){var t=this;this.loading=!0,Object(p["x"])(this.userFrom).then((function(e){t.usermoren=e.data.list[0].uid,t.getlog(1),t.listpage(1,""),t.loading=!1,t.total=e.data.count,1===t.userFrom.page&&(t.selectUserData=e.data.list.length?e.data.list[0]:{},t.rechargeData.uid=e.data.list.length?e.data.list[0].uid:""),console.log("this.rechargeData.uid",t.rechargeData.uid),t.userList=t.userList.concat(e.data.list);var a=window.localStorage.getItem("cashierUser");if(a&&(a=JSON.parse(a),"[object Object]"===Object.prototype.toString.call(a))){var s=!0,i=!1,r=void 0;try{for(var n,c=t.userList[Symbol.iterator]();!(s=(n=c.next()).done);s=!0){var o=n.value;if(a.uid===o.uid){a.now_money=o.now_money,window.localStorage.setItem("cashierUser",JSON.stringify(a));break}}}catch(l){i=!0,r=l}finally{try{s||null==c.return||c.return()}finally{if(i)throw r}}}})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},keyupEvent:function(t){if(t){var e=/^\D*([0-9]\d*\.?\d{0,2})?.*$/,a=t.toString().replace(e,"$1");this.payPrice=Number(a)}else this.payPrice=""},selectTab:function(t){this.listpage(1,""),this.getlog(1,""),this.sle=t,1==t?this.memberCard.length&&(this.rechargeData.merber_id=this.memberCard[0].id):2==t&&(this.rechargeType=1,this.rechargeList.length&&(this.rechargeData.rechar_id=this.rechargeList[0].id))},clear:function(){this.payPrice=0,this.sel=0},yuePayClear:function(){this.$Message.destroy(),this.timer&&(clearInterval(this.timer),this.timer=null)},getRechargeData:function(){var t=this;Object(P["a"])().then((function(e){t.rechargeList=e.data.recharge_quota}))},confirm:function(){var t=this;if(1==this.sle)return this.memberRecharge();var e=U({},this.rechargeData);2==this.rechargeType&&delete e.rechar_id,Object(p["z"])(e).then((function(e){t.payNum="";var a=e.data.status,s=e.data.data.order_id;switch(a){case"SUCCESS":t.$Message.success("支付成功"),t.settleVisible=!1,t.search(),t.payPrice=1,t.$emit("getSuccess",t.totalPrice),4==t.rechargeData.pay_type?t.jsToJava():t.rechargeData.auth_code="";break;case"PAY_ING":var i=t.$Message.loading({content:"等待支付中...",duration:0});t.checkOrderTime(s,i);break;default:t.$Message.warning("支付失败");break}})).catch((function(e){t.payNum="",t.rechargeData.auth_code="",t.$Message.error(e.msg)}))},checkOrderTime:function(t,e){var a=this,s=1,i=this.timer=setInterval((function(){a.checkOrder(t,i,e),s++,s>=60&&(clearInterval(i),e(),a.$Message.success("支付失败"))}),1e3)},checkOrder:function(t,e,a){var s=this;Object(p["h"])(2==this.sle?1:2,{order_id:t}).then((function(t){1==t.data.status&&(a(),s.$Message.success("支付成功"),s.$emit("getSuccess",s.totalPrice),s.settleVisible=!1,s.modalPay=!1,s.modal=!1,clearInterval(e),s.readUserInfo())})).catch((function(t){a(),s.$Message.error(t.msg)}))},selectUser:function(t){this.selectUserData=t,this.rechargeData.uid=t.uid,this.sle=0,this.rechargeData.rechar_id=0,this.payPrice=1,this.listpage(1,""),this.getlog(1,"")},recharge:function(t){if(!this.selectUserData.uid)return this.$Message.error("请先选择会员");if(1==this.sle)this.rechargeData.price=Number(this.memberCheck.pre_price);else if(1==this.rechargeType)this.rechargeData.price=this.balanceCheck.price;else{if(!this.payPrice)return this.$Message.error("请先输入金额");this.rechargeData.price=this.payPrice}this.collection=this.rechargeData.price,this.settleVisible=!0},onPayPrice:function(t){this.payType=t,this.rechargeData.auth_code=""}}},N=L,M=(a("bd93"),Object(l["a"])(N,s,i,!1,null,"1d9f67aa",null));e["default"]=M.exports},"3d4e":function(t,e,a){"use strict";var s=a("16b6"),i=a.n(s);i.a},"3e1c":function(t,e,a){"use strict";var s=a("a312"),i=a.n(s);i.a},"4afc":function(t,e,a){},a312:function(t,e,a){},ad18:function(t,e,a){t.exports=a.p+"view_cashier/img/gold.67ecfa42.png"},ba8a:function(t,e,a){"use strict";var s=a("c651"),i=a.n(s);i.a},bd93:function(t,e,a){"use strict";var s=a("2f73"),i=a.n(s);i.a},c24f:function(t,e,a){"use strict";a.d(e,"C",(function(){return i})),a.d(e,"s",(function(){return r})),a.d(e,"v",(function(){return n})),a.d(e,"w",(function(){return c})),a.d(e,"a",(function(){return o})),a.d(e,"B",(function(){return l})),a.d(e,"u",(function(){return u})),a.d(e,"x",(function(){return d})),a.d(e,"f",(function(){return m})),a.d(e,"F",(function(){return h})),a.d(e,"k",(function(){return p})),a.d(e,"o",(function(){return v})),a.d(e,"c",(function(){return f})),a.d(e,"b",(function(){return _})),a.d(e,"d",(function(){return g})),a.d(e,"e",(function(){return y})),a.d(e,"g",(function(){return b})),a.d(e,"i",(function(){return C})),a.d(e,"m",(function(){return k})),a.d(e,"A",(function(){return I})),a.d(e,"y",(function(){return w})),a.d(e,"E",(function(){return O})),a.d(e,"z",(function(){return j})),a.d(e,"D",(function(){return D})),a.d(e,"q",(function(){return x})),a.d(e,"t",(function(){return $})),a.d(e,"h",(function(){return P})),a.d(e,"r",(function(){return S})),a.d(e,"p",(function(){return U})),a.d(e,"l",(function(){return T})),a.d(e,"j",(function(){return L})),a.d(e,"n",(function(){return N}));var s=a("b6bd");function i(){return Object(s["a"])({url:"user/user_label_cate",method:"get"})}function r(t){return s["a"].post("store_discounts/getList",t,{noAuth:!0})}function n(){return Object(s["a"])({url:"user/user_label_cate/create",method:"get"})}function c(t){return Object(s["a"])({url:"user/user_label_cate/".concat(t,"/edit"),method:"get"})}function o(t){return Object(s["a"])({url:"user/user_label",method:"get",params:t})}function l(){return Object(s["a"])({url:"user/user_label/create",method:"get"})}function u(t){return Object(s["a"])({url:"user/user_label/".concat(t,"/edit"),method:"get"})}function d(t){return Object(s["a"])({url:"user/get_list",method:"get",params:t})}function m(t){return Object(s["a"])({url:"user/cashier_list",method:"get",params:t})}function h(t){return Object(s["a"])({url:"user/search",method:"get",params:t})}function p(t){return Object(s["a"])({url:"user/label/".concat(t),method:"get"})}function v(t,e){return Object(s["a"])({url:"user/label/".concat(t),method:"post",data:e})}function f(t,e){return Object(s["a"])({url:"cart/drinkset/".concat(t),method:"post",data:e})}function _(t,e){return Object(s["a"])({url:"cart/drinklist/".concat(t),method:"post",data:e})}function g(t,e){return Object(s["a"])({url:"cart/drinkxiugai/".concat(t),method:"post",data:e})}function y(t,e){return Object(s["a"])({url:"cart/getlog/".concat(t),method:"post",data:e})}function b(t){return Object(s["a"])({url:"product/get_list",method:"get",params:t})}function C(t){return Object(s["a"])({url:"user/info/".concat(t),method:"get"})}function k(t){return Object(s["a"])({url:"user/record/".concat(t.id),method:"get",params:t.datas})}function I(t){return Object(s["a"])({url:"user/set_label",method:"post",data:t})}function w(){return Object(s["a"])({url:"store/recharge_info",method:"get"})}function O(){return Object(s["a"])({url:"user/member/ship",method:"get"})}function j(t){return Object(s["a"])({url:"store/recharge",method:"post",data:t})}function D(t){return Object(s["a"])({url:"/user/member",method:"post",data:t})}function x(t){return Object(s["a"])({url:"staff/binding/user",method:"post",data:t})}function $(t){return Object(s["a"])({url:"updatePwd",method:"PUT",data:t})}function P(t,e){return Object(s["a"])({url:"check_order_status/".concat(t),method:"post",data:e})}function S(){return Object(s["a"])({url:"user/cashier_info ",method:"get"})}function U(t){return Object(s["a"])({url:"user/read/".concat(t),method:"get"})}function T(t,e){return Object(s["a"])({url:"user/one_info/".concat(t),method:"get",params:e})}function L(t){return Object(s["a"])({url:"user/member_card",method:"get",params:t})}function N(t){return Object(s["a"])({url:"user/mer_recharge",method:"post",data:t})}},c651:function(t,e,a){},f42b:function(t,e,a){"use strict";var s=a("4afc"),i=a.n(s);i.a}}]);