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.
1 line
20 KiB
1 line
20 KiB
3 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d4d0a456"],{"0493":function(t,e,n){t.exports=n.p+"view_cashier/img/no-record.2e1e1105.png"},"16b2":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Drawer",{ref:"drawer",attrs:{value:t.visible,width:"800","class-name":"settle-drawer"},on:{"on-close":t.close,"on-visible-change":t.visibleChange}},[n("div",{attrs:{slot:"header"},slot:"header"},[n("div",{staticClass:"title"},[t._v("选择支付方式")]),n("div",{staticClass:"btn-group"},[n("ButtonGroup",{attrs:{shape:"circle"}},[t._l(t.list,(function(e){return[e.status?n("Button",{key:e.label,attrs:{type:e.value===t.type?"primary":"default"},on:{click:function(n){return t.typeChange(e.value)}}},[t._v(t._s(e.label))]):t._e()]}))],2)],1)]),n("div",{staticClass:"drawer-body"},[n("div",{staticClass:"receivable"},[n("div",{staticClass:"title"},[n("span",{staticClass:"inner"},[t._v("应收金额(元)")])]),n("div",{staticClass:"money"},[t._v("\n ¥"),n("span",{staticClass:"number"},[t._v(t._s(t.money))])])]),"cash"===t.type?n("div",{staticClass:"counter"},[n("div",{staticClass:"received"},[t._v(t._s(t.collection))]),n("div",{staticClass:"balance"},[t._v("\n 需找零(元):"),n("span",{staticClass:"money"},[t._v("¥"+t._s(t.money>t.collection?0:this.$computes.Sub(t.collection,t.money||0)))])]),n("div",{staticClass:"keypad"},[n("div",{staticClass:"left"},t._l(t.numList,(function(e){return n("Button",{key:e,on:{click:function(n){return t.numTap(e)}}},[t._v(t._s(e))])})),1),n("div",{staticClass:"right"},[n("Button",{on:{click:t.delNum}},[n("Icon",{attrs:{type:"ios-backspace-outline"}})],1),n("Button",{on:{click:function(e){return t.delNum(-1)}}},[t._v("C")]),n("Button",{staticClass:"enter",on:{click:t.cashBnt}},[t._v("确认")])],1)])]):!t.type||t.verify?n("div",{staticClass:"payment-code"},[n("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"}}),n("div",{staticClass:"tips-wrap",class:{balance:"yue"===t.type}})],1):t._e()]),n("div",{staticClass:"drawer-footer"},[n("Button",{on:{click:t.close}},[t._v("取消收款")]),"yue"!==t.type||t.verify?t._e():n("Button",{attrs:{type:"primary"},on:{click:t.cashBnt}},[t._v("扣除余额")])],1)])},a=[],o={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)}}},c=o,i=(n("ba8a"),n("2877")),u=Object(i["a"])(c,r,a,!1,null,"46df39cb",null);e["a"]=u.exports},"1a3d":function(t,e,n){t.exports=n.p+"view_cashier/img/process2.f9f8c6c6.png"},"5e36":function(t,e,n){},"66c9":function(t,e,n){t.exports=n.p+"view_cashier/img/no-order.1faafc6c.png"},"6b58":function(t,e,n){"use strict";var r=n("e9aa"),a=n.n(r);a.a},ba8a:function(t,e,n){"use strict";var r=n("c651"),a=n.n(r);a.a},bde5:function(t,e,n){t.exports=n.p+"view_cashier/img/no-cup.596a2a07.png"},bff0:function(t,e,n){"use strict";n.r(e);var r=f
|