(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-60aa5611"],{"18a1":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"content"},[a("div",{staticClass:"goodsCard acea-row"},[a("div",{staticClass:"conter"},[a("div",{staticClass:"cart-wrap"},[a("div",{staticClass:"cart"},[a("Input",{attrs:{search:"","enter-button":"搜索",placeholder:"搜索用户/店员手机号或ID",size:"large"},on:{"on-search":t.searchData},model:{value:t.lodgeFrom.keyword,callback:function(e){t.$set(t.lodgeFrom,"keyword",e)},expression:"lodgeFrom.keyword"}})],1),a("div",{staticClass:"pending-user-wrap"},[t.tableHang.length?a("div",{staticClass:"pending-user",on:{scroll:t.addPage}},t._l(t.tableHang,(function(e,s){return a("div",{key:s,staticClass:"list",class:t.selIndex===s?"bor":"",on:{click:function(a){return t.selectUser(s,e)}}},[a("div",{staticClass:"item row-between"},[a("div",{staticClass:"left_content acea-row"},[a("div",{staticClass:"avatar"},[a("img",{attrs:{src:e.avatar?e.avatar:t.defaultAvatar,alt:"头像"}})]),a("div",{staticClass:"user"},[a("div",{staticClass:"name"},[t._v(t._s(e.nickname||"游客"))]),a("div",{staticClass:"order-price"},[t._v("\n 订单金额:\n "),a("span",{staticClass:"price-num"},[t._v("¥"+t._s(e.price))])])])]),a("div",{staticClass:"right_content"},[a("div",{staticClass:"time"},[t._v(t._s(e._add_time))]),a("div",{staticClass:"acea-row row-right"},[a("span",{staticClass:"tidan",attrs:{type:"text"},on:{click:function(a){return a.stopPropagation(),t.billHang(e,s)}}},[t._v("提单")]),a("span",{staticClass:"shanchu",attrs:{type:"text"},on:{click:function(a){return a.stopPropagation(),t.hangDel(e,s)}}},[t._v("删除")])])])])])})),0):a("div",{staticClass:"no-order"},[a("img",{attrs:{src:s("66c9"),alt:""}}),a("span",{staticClass:"trip"},[t._v("噢~目前暂无挂单")])])]),a("div",{staticClass:"footer"},[a("Button",{on:{click:t.openSettle}},[t._v("结账¥"+t._s(t.userData.price))])],1)]),t.tableHang.length?a("div",{staticClass:"btn-group-vertical"},[a("Button",{on:{click:t.integralTap}},[t._v("积分")]),a("Button",{on:{click:t.changePrice}},[t._v("改价")]),a("Button",{on:{click:t.remarks}},[t._v("备注")])],1):t._e()]),a("div",{staticClass:"goods-wrapper"},[t.cartList.length?a("div",{staticClass:"goods"},[a("div",{staticClass:"sel-user"},[a("div",{staticClass:"avatar"},[a("img",{attrs:{src:t.userData.avatar||s("653d"),alt:"头像"}})]),a("div",{staticClass:"item-right"},[a("div",{staticClass:"user"},[a("div",[t._v(t._s(t.userData.nickname||"游客"))])]),t.userData.uid?a("div",{staticClass:"money"},[a("div",[a("span",{staticClass:"pr20"},[t._v(t._s(t.userInfo.phone||"暂无手机号"))]),t._v("余额 "),a("span",{staticClass:"num"},[t._v(t._s(t.userInfo.now_money||0))])]),a("div",[t._v("\n 积分 "),a("span",{staticClass:"num"},[t._v(t._s(t.userInfo.integral||0))])])]):t._e()])]),a("div",{staticClass:"cart-num"},[a("div",{staticClass:"cart-num-left"},[a("span",[t._v("共")]),a("span",{staticClass:"num"},[t._v(t._s(t.cartSum))]),a("span",[t._v("件商品")])]),a("div",[a("span",{staticClass:"text"},[t._v("实付:")]),a("span",{staticClass:"money"},[a("span",{staticClass:"rmb"},[t._v("¥")]),t._v(t._s(t.priceInfo.payPrice?t.priceInfo.payPrice:0))])])]),a("div",{staticClass:"goods-list"},[a("goodsList",{attrs:{cartList:t.cartList}}),a("div",{staticClass:"discount-con"},[a("div",{staticClass:"item acea-row"},[a("div",[t._v("会员优惠金额:")]),a("div",[t._v("¥"+t._s(t.priceInfo.vipPrice||0))])]),a("div",{staticClass:"item acea-row"},[a("div",[t._v("优惠券金额:")]),a("div",[t._v("¥"+t._s(t.priceInfo.couponPrice||0))])]),a("div",{staticClass:"item acea-row"},[a("div",[t._v("积分抵扣:")]),a("div",[t._v("¥"+t._s(t.priceInfo.deductionPrice||0))])]),t._l(t.priceInfo.promotionsDetail,(function(e,s){return a("div",{key:s,staticClass:"item acea-row"},[a("div",[t._v(t._s(e.title)+":")]),a("div",[t._v(t._s(e.promotions_price||0))])])}))],2)],1)]):a("div",{staticClass:"no-order"},[a("img",{attrs:{src:s("0493"),alt:""}}),a("span",{staticClass:"trip"},[t._v("噢~目前暂无挂单记录")])])])]),a("footer",[a("div",{staticClass:"footer"},[t.cartList.length?a("div",{staticClass:"pay acea-row row-between-wrapper"},[a("div",{staticClass:"bnt",on:{click:function(e){return t.payPrice("cash")}}},[t._v("现金收款")]),a("div",{staticClass:"bnt",on:{click:function(e){return t.payPrice("")}}},[t._v("微信/支付宝")]),t.userInfo.uid&&t.userInfo.now_money>=(t.priceInfo.payPrice||0)?a("div",{staticClass:"bnt on",on:{click:function(e){return t.payPrice("yue")}}},[t._v("\n 余额收款\n ")]):a("div",{staticClass:"bnt on bntUid"},[t._v("余额收款")])]):a("div",{staticClass:"pay noCart acea-row row-between-wrapper"},[a("div",{staticClass:"bnt"},[t._v("现金收款")]),a("div",{staticClass:"bnt"},[t._v("微信/支付宝")]),a("div",{staticClass:"bnt on"},[t._v("余额收款")])])]),a("div",{staticClass:"right"},[t.cartList.length?a("div",{staticClass:"rightCon"},[a("div",{staticClass:"item",class:t.integral?"on":"",on:{click:t.integralTap}},[t._v("\n 积分\n ")]),a("div",{staticClass:"item",on:{click:t.changePrice}},[t._v("改价")]),a("div",{staticClass:"item",on:{click:t.remarks}},[t._v("备注")])]):a("div",{staticClass:"noCart"},[a("div",{staticClass:"item"},[t._v("积分")]),a("div",{staticClass:"item"},[t._v("改价")])])])]),a("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:"用户列表","mask-closable":!1,width:"900"},model:{value:t.modalUser,callback:function(e){t.modalUser=e},expression:"modalUser"}},[t.modalUser?a("userList",{ref:"users",on:{getUserId:t.getUserId}}):t._e()],1),a("recharge",{ref:"recharge",attrs:{userInfo:t.userInfo},on:{getSuccess:t.getSuccess}}),t.userInfo&&t.cartList.length?a("couponList",{ref:"coupon",attrs:{uid:t.userInfo.uid,cartList:t.cartList},on:{getCouponId:t.getCouponId}}):t._e(),a("storeList",{ref:"store",attrs:{uid:t.userInfo?t.userInfo.uid:0},on:{getStoreId:t.getStoreId,getUserInfo:t.getUserInfo}}),a("Modal",{attrs:{title:"备注","class-name":"remarks-modal"},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[a("Input",{attrs:{rows:5,maxlength:"200",placeholder:"订单备注","show-word-limit":"",type:"textarea"},model:{value:t.createOrder.remarks,callback:function(e){t.$set(t.createOrder,"remarks",e)},expression:"createOrder.remarks"}}),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary",size:"large",long:""},on:{click:t.onSubmit}},[t._v("提交")])],1)],1),a("Modal",{attrs:{title:"订单改价","class-name":"change-price-modal"},on:{"on-cancel":t.cancelPrice},model:{value:t.modal2,callback:function(e){t.modal2=e},expression:"modal2"}},[a("Form",{attrs:{model:t.formItem}},[a("FormItem",[a("div",{staticClass:"acea-row"},[a("div",{staticClass:"input-number"},[a("InputNumber",{attrs:{max:9999999,min:0},on:{"on-change":t.tapPrice},model:{value:t.formItem.price,callback:function(e){t.$set(t.formItem,"price",e)},expression:"formItem.price"}}),a("div",{staticClass:"input-suffix"},[t._v("元")])],1),a("div",{staticClass:"input-number discount"},[a("InputNumber",{attrs:{min:0,max:100},on:{"on-change":t.tapDiscount},model:{value:t.discountPrice,callback:function(e){t.discountPrice=e},expression:"discountPrice"}}),a("div",{staticClass:"input-suffix"},[t._v("%")])],1)])]),a("FormItem",{attrs:{label:"改价后金额:"}},[a("div",{staticClass:"changePrice"},[t._v("\n ¥"),a("span",{staticClass:"price"},[t._v(t._s(t.formItem.price||0))])])])],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary",size:"large",long:""},on:{click:t.onSubmit2}},[t._v("确定")])],1)],1),a("Modal",{staticClass:"modalPay",attrs:{"footer-hide":"",width:"430px"},on:{"on-cancel":t.modalPayCancel},model:{value:t.modalPay,callback:function(e){t.modalPay=e},expression:"modalPay"}},[a("div",{staticClass:"payPage"},[a("div",{staticClass:"header acea-row row-center-wrapper"},[a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:s("ad18")}})]),a("div",{staticClass:"text"},[t._v("应收金额(元)")])]),a("div",{staticClass:"money"},[t._v("\n ¥"),a("span",{staticClass:"num"},[t._v(t._s(t.priceInfo.payPrice?t.priceInfo.payPrice:0))])]),a("Input",{ref:"focusNum",staticStyle:{"margin-top":"16px"},attrs:{size:"large",type:"url",placeholder:"请点击输入框聚焦扫码或输入编码号"},on:{input:t.inputSaoMa},model:{value:t.payNum,callback:function(e){t.payNum=e},expression:"payNum"}}),a("div",{staticClass:"process"},[a("div",{staticClass:"pictrue"},["yue"==t.createOrder.pay_type?a("img",{attrs:{src:s("fbde")}}):a("img",{attrs:{src:s("1a3d")}})]),a("div",{staticClass:"list acea-row row-between-wrapper"},[a("div",{staticClass:"item one"},[a("div",{staticClass:"name"},[t._v("\n "+t._s("yue"==t.createOrder.pay_type?"出示付款码":"扫描收银码")+"\n ")]),a("div",[t._v("\n "+t._s("yue"==t.createOrder.pay_type?"用户打开个人中心":"引导用户扫描")+"\n ")])]),a("div",{staticClass:"item two"},[a("div",{staticClass:"name"},[t._v("\n "+t._s("yue"==t.createOrder.pay_type?"扫描付款码":"完成支付")+"\n ")]),a("div",[t._v("\n "+t._s("yue"==t.createOrder.pay_type?"扫码枪":"用户线上支付")+"\n ")])]),a("div",{staticClass:"item three"},[a("div",{staticClass:"name"},[t._v("确认收款")]),a("div",[t._v("收银台点击确认")])])])])],1)]),a("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"}},[a("div",{staticClass:"cashPage acea-row"},[a("div",{staticClass:"left"},[a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:s("ad18")}})]),a("div",{staticClass:"text"},[t._v("应收金额(元)")]),a("div",{staticClass:"money"},[t._v("\n ¥"),a("span",{staticClass:"num"},[t._v(t._s(t.priceInfo.payPrice?t.priceInfo.payPrice:0))])])]),a("div",{staticClass:"right"},[a("div",{staticClass:"rightCon"},[a("div",{staticClass:"top acea-row row-between-wrapper"},[a("div",[t._v("实际收款(元)")]),a("div",{staticClass:"num"},[t._v(t._s(t.collection))])]),a("div",{staticClass:"center acea-row row-between-wrapper"},[a("div",[t._v("需找零(元)")]),this.$computes.Sub(t.collection,t.priceInfo.payPrice?t.priceInfo.payPrice:0)>0?a("div",{staticClass:"num"},[t._v("\n "+t._s(this.$computes.Sub(t.collection,t.priceInfo.payPrice?t.priceInfo.payPrice:0))+"\n ")]):a("div",{staticClass:"num"},[t._v("0")])]),a("div",{staticClass:"bottom acea-row"},[t._l(t.numList,(function(e,s){return a("div",{key:s,staticClass:"item acea-row row-center-wrapper",class:"."==e?"spot":"",on:{click:function(s){return t.numTap(e)}}},[t._v("\n "+t._s(e)+"\n ")])})),a("div",{staticClass:"item acea-row row-center-wrapper",on:{click:t.delNum}},[a("Icon",{attrs:{type:"ios-backspace"}})],1)],2)]),a("Button",{attrs:{type:"primary"},on:{click:t.cashBnt}},[t._v("确认")])],1)])]),a("settleDrawer",{attrs:{list:t.payList,type:t.payTape,money:t.priceInfo.payPrice,collection:t.collection},on:{payPrice:t.payPrice,numTap:t.numTap,delNum:t.delNum,cashBnt:t.cashBnt},model:{value:t.settleVisible,callback:function(e){t.settleVisible=e},expression:"settleVisible"}})],1)},i=[],r=s("bff0"),c=s("5671"),n=s("e449"),o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:"商品规格","mask-closable":!1,width:"600"},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[s("div",{staticClass:"productAttr"},[s("div",{staticClass:"acea-row"},[s("div",{staticClass:"pictrue"},[s("img",{attrs:{src:t.attr.productSelect.image}})]),s("div",{staticClass:"text"},[s("div",{staticClass:"name line1"},[t._v(t._s(t.attr.productSelect.store_name))]),s("div",{staticClass:"info"},[t._v("库存 "+t._s(t.attr.productSelect.stock))]),s("div",{staticClass:"money"},[t._v("¥"),s("span",{staticClass:"num"},[t._v(t._s(t.attr.productSelect.price))])]),s("div",{staticClass:"attr"},t._l(t.attr.productAttr,(function(e,a){return s("div",{key:a,staticClass:"list"},[s("div",{staticClass:"title"},[t._v(t._s(e.attr_name))]),s("div",{staticClass:"listn acea-row"},t._l(e.attr_value,(function(i,r){return s("div",{key:r,staticClass:"item acea-row row-center-wrapper",class:e.index===i.attr?"on":"",on:{click:function(e){return t.tapAttr(a,r)}}},[t._v(t._s(i.attr))])})),0)])})),0)])]),s("button",{staticClass:"bnt acea-row row-center-wrapper",attrs:{type:"primary",disabled:t.disabled},on:{click:t.goCat}},[t._v("确定")])])])],1)},l=[],d={name:"productAttr",props:{attr:{type:Object,default:function(){}},isCart:{type:Number,value:0},disabled:{type:Boolean,value:!1}},data:function(){return{modals:!1}},created:function(){},methods:{goCat:function(){this.$emit("goCat",this.isCart)},tapAttr:function(t,e){var s=this;s.$emit("attrVal",{indexw:t,indexn:e}),this.$set(this.attr.productAttr[t],"index",this.attr.productAttr[t].attr_values[e]);var a=s.getCheckedValue().join(",");s.$emit("ChangeAttr",a)},getCheckedValue:function(){for(var t=this.attr.productAttr,e=[],s=0;s
删除该挂单后将无法恢复,请谨慎操作!
",onOk:function(){Object(_["s"])({id:t.id}).then((function(t){if(s.tableHang.splice(e,1),s.totalHang=s.totalHang-1,s.$Message.success(t.msg),s.tableHang.length){var a=e-1>0?e:0;s.selectUser(a,s.tableHang[a])}else s.selIndex=0,s.userData={},s.cartList=[],s.priceInfo={}})).catch((function(t){s.$Message.error(t.msg)}))},onCancel:function(){}})},hangDataTap:function(t,e){this.activeHangon=t,this.checkOut=0;var s=e.tourist_uid,a={uid:e.uid};e.uid?this.userInfoData(a):this.setUp(s)},hangList:function(){var t=this;this.loading=!0;var e=this.storeInfos.id;Object(_["z"])(e,this.lodgeFrom).then((function(e){t.loading=!1,t.tableHang=t.tableHang.concat(e.data.list),t.totalHang=e.data.count,1===t.lodgeFrom.page&&t.tableHang.length&&t.selectUser(0,t.tableHang[0])})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},searchData:function(){this.lodgeFrom.page=1,this.tableHang=[],this.hangList()},addPage:function(t){(!t||t.target.scrollHeight-t.target.scrollTop-t.target.clientHeight<=0&&this.tableHang.length确定要删除该购物车吗?
删除该购物车后将无法恢复,请谨慎操作!
",onOk:function(){Object(_["d"])(i.userInfo.uid,t).then((function(t){i.$Message.success("删除成功"),e?(i.clear(),i.invalidList=[],i.hangDataList()):a?i.invalidList.splice(s,1):(i.cartList.splice(s,1),i.cartList.length?i.cartCompute():(i.hangDataList(),i.clear()))})).catch((function(t){i.$Message.error(t.msg)}))},onCancel:function(){}})},delAll:function(){var t=[];this.cartList.forEach((function(e){t.push(e.id)})),this.invalidList.forEach((function(e){t.push(e.id)})),this.del({ids:t},1)},delCart:function(t,e,s){var a=[];a.push(t.id),this.del({ids:a},0,e,s)},cartAttr:function(t){this.disabled=!1,this.$refs.attrs.modals=!0,this.isCart=1,this.cartInfo.cart_id=t.id,this.cartInfo.product_id=t.product_id,this.goodsInfo(t.product_id)},joinCart:function(t){var e=this,s=this;if(t){var a=s.productValue[this.attrValue];if(s.attr.productAttr.length&&void 0===a)return this.$Message.warning("产品库存不足,请选择其它")}var i=this.userInfo.uid,r={productId:this.productId,cartNum:1,uniqueId:t&&void 0!==this.attr.productSelect?this.attr.productSelect.unique:"",staff_id:this.storeInfos.id,tourist_uid:this.userInfo.touristId};Object(_["c"])(i,r).then((function(t){e.$refs.attrs.modals=!1,e.$Message.success("添加购物车成功"),e.getCartList(),e.hangDataList(),e.disabled=!0})).catch((function(t){e.$Message.error(t.msg)}))},cartChange:function(t){var e=this,s=t.uid,a={number:t.cart_num,id:t.id};Object(_["f"])(s,a).then((function(t){e.cartCompute()})).catch((function(t){e.$Message.error(t.msg)}))},calculate:function(t,e){var s=this;"reduce"===e&&t.cart_num>1?t.cart_num--:"add"===e&&t.cart_num确定要切换用户吗?
",onOk:function(){e.userInfo=t.data.userInfo;var s=window.localStorage;s.setItem("cashierUser",JSON.stringify(t.data.userInfo)),e.getCartList()},onCancel:function(){}});else{e.userInfo=t.data.userInfo;var a=window.localStorage;a.setItem("cashierUser",JSON.stringify(t.data.userInfo))}e.getCartList()})).catch((function(t){e.codeNum="",e.$Message.error(t.msg)}))},keyboard:function(){var t=this;function e(e){t.collectionArray.pop(),t.collection=t.collectionArray.length?t.collectionArray.join(""):0}function s(e){!1===t.defaultcalc&&(t.collection="",t.defaultcalc=!0);var s=String(t.collection).indexOf(".")+1,a=String(t.collection).length-s;console.log(s,a),(0===s||a<2)&&(t.collectionArray.join("")<=9999999&&t.collectionArray.push(e),t.collection=t.collectionArray.join("")>99999999?99999999:t.collectionArray.join(""))}document.onkeydown=function(a){var i=a||window.event,r=i.keyCode;switch(t.modalCash&&(a.stopPropagation(),a.preventDefault()),r){case 96:case 48:s(0);break;case 97:case 49:s(1);break;case 98:case 50:s(2);break;case 99:case 51:s(3);break;case 100:case 52:s(4);break;case 101:case 53:s(5);break;case 102:case 54:s(6);break;case 103:case 55:s(7);break;case 104:case 56:s(8);break;case 105:case 57:s(9);break;case 110:s(".");break;case 190:s(".");break;case 8:e();break}}},openSettle:function(){this.settleVisible=!0}}},b=y,w=(s("f108"),Object(h["a"])(b,a,i,!1,null,"0c026e8b",null));e["default"]=w.exports},"30c5":function(t,e,s){"use strict";var a=s("e88c"),i=s.n(a);i.a},"3dec":function(t,e,s){"use strict";var a=s("ea19"),i=s.n(a);i.a},9568:function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"table"},[s("div",{staticClass:"header"},t._l(t.header,(function(e,a){return s("div",{key:a,class:e.class},[t._v("\n "+t._s(e.name)+"\n ")])})),0),t._l(t.cartList,(function(e,a){return s("div",{key:a,staticClass:"list"},[t._l(e.promotions,(function(e,a){return s("div",{key:a,staticClass:"activity"},[s("div",{staticClass:"activity-type"},[t._v("\n "+t._s(e.title)+"\n ")]),s("div",{staticClass:"desc"},[t._v("\n "+t._s(e.desc)+"\n ")])])})),t._l(e.cart,(function(e,a){return s("div",{key:a+"l",staticClass:"item"},[e.is_gift?t._e():s("div",{staticClass:"goods"},[s("div",{staticClass:"img"},[e.productInfo.attrInfo?s("img",{attrs:{src:e.productInfo.attrInfo.image,alt:""}}):s("img",{attrs:{src:e.productInfo.image}})]),s("div",{staticClass:"name line2"},[t._v(t._s(e.productInfo.store_name))])]),e.is_gift?t._e():s("div",{staticClass:"o_price alc"},[t._v(t._s(e.sum_price))]),e.is_gift?t._e():s("div",{staticClass:"num alc"},[t._v(t._s(e.cart_num))]),e.is_gift?s("div",{staticClass:"give-goods"},[s("div",{staticClass:"img"},[e.productInfo.attrInfo?s("img",{attrs:{src:e.productInfo.attrInfo.image,alt:""}}):s("img",{attrs:{src:e.productInfo.image}})]),s("div",{staticClass:"name line1"},[t._v(t._s(e.productInfo.store_name))]),s("div",{staticClass:"give"},[t._v("赠品")]),s("div",{staticClass:"num"},[t._v("x"+t._s(e.cart_num))])]):s("div",{staticClass:"price alc"},[t._v(t._s(e.sum_price*e.cart_num))])])}))],2)}))],2)},i=[],r={name:"index",props:["cartList"],data:function(){return{header:[{name:"商品",class:"goods",width:15},{name:"单价",class:"o_price"},{name:"数量",class:"num",width:15},{name:"金额",class:"price",width:15}]}}},c=r,n=(s("30c5"),s("2877")),o=Object(n["a"])(c,a,i,!1,null,"8995bdbc",null);e["a"]=o.exports},bac1:function(t,e,s){},e88c:function(t,e,s){},ea19:function(t,e,s){},f108:function(t,e,s){"use strict";var a=s("bac1"),i=s.n(a);i.a}}]);