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 years ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-pay-pay"],{"0dd0":function(t,e,i){"use strict";var a=i("432e"),n=i.n(a);n.a},"1f1a":function(t,e,i){"use strict";i.r(e);var a=i("7cf5"),n=i("4a0e");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("0dd0");var s=i("f0c5"),c=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"b95e9d5c",null,!1,a["a"],void 0);e["default"]=c.exports},2645:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("14d9");var n=a(i("b85c")),o=i("21db"),s=getApp(),c={data:function(){return{pageTitle:"收银台",windowHeight:720,windowWidth:720,order:{id:731,serial:"",customer_id:16,manager_id:null,bed_id:778,patient_id:793,project_id:1,product_id:1,product_item_id:1,product_paramedic_level_id:1,from_date:"",to_date:"",status:0,total:150,paid_total:0,contact:null,mobile:"13912797667",paramedic_id:31,price:"150.00",patient_quantity:null,created_at:"",updated_at:"",balance:"0.00",status_name:"",days:0,product_item:{id:1,name:"一对一"},paramedic_level:{id:8,name:"普通护工",laravel_through_key:1},project:{id:1,name:"武进中医院",logo_url:null,banners_url:null},bed:{id:778,name:"1",room_name:"101",area_name:"一楼(十九病区)",building_name:"内科楼"},customer:{id:16,name:null,balance:"0.00"},patient:{id:793,name:"",sex:null,age:null,mobile:null},paramedic:{id:31,name:"",mobile:"15850579275",paramedic_level_name:"普通护工",avatar_url:null,age:"",status_name:null},factorjson:[{fee:"0.00",price:"0.00",factor_id:1,factor_name:"所在科室",fee_percent:"25.00",used_for_fee:1,factor_item_id:2,factor_item_name:"骨科"}]},totalPrice:0,paylist:[{name:"微信支付",comment:"推荐微信用户使用",chekced:!0,img:"/static/resources/weixin.png",type:"weixin"},{name:"支付宝支付",comment:"推荐支付宝用户使用",chekced:!1,img:"/static/resources/alipay.png",type:"alipay"},{name:"刷卡支付",comment:"推荐刷卡用户使用",chekced:!1,img:"/static/resources/pos.png",type:"pos"},{name:"现金支付",comment:"推荐现金",chekced:!1,img:"/static/resources/cash.png",type:"cash"}],payType:"weixin",id:"",moneyArr:[],comment:"",selectOtherAmt:!1,showPopAmt:!1,focusAmtSet:!1}},onLoad:function(t){var e=this;this.id=t.id,o.getOrderInfo(this.id,(function(t){console.log(t),e.order=t.data,e.loadMoneyArr(e.order.price)}),(function(){})),this.windowHeight=s.globalData.winHeight,this.windowWidth=s.globalData.winWidth},methods:{tohome:function(){uni.navigateTo({url:"../index/index"})},openPop:function(){this.$refs.popup.open()},bindPopChange:function(){this.focusAmtSet=!0},closePop:function(){this.$refs.popup.close(),this.focusAmtSet=!1},bindClickMoney:function(t){var e,i=t.currentTarget.dataset.index,a=this.moneyArr,o=(0,n.default)(a);try{for(o.s();!(e=o.n()).done;){var s=e.value;s.checked=!1}}catch(c){o.e(c)}finally{o.f()}a[i].checked=!0,console.log(a[i]),this.moneyArr=a,this.totalPrice=a[i].amt,this.selectOtherAmt=!1,this.closePop()},tochange:function(t){var e,i=t.currentTarget.dataset.index,a=this.paylist,o=(0,n.default)(a);try{for(o.s();!(e=o.n()).done;){var s=e.value;s.chekced=!1}}catch(c){o.e(c)}finally{o.f()}a[i].chekced=!0,this.paylist=a,this.payType=a[i].type},bindinputotheramt:function(){var t,e=this.moneyArr,i=(0,n.default)(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;a.checked=!1}}catch(o){i.e(o)}finally{i.f()}this.moneyArr=e,this.totalPrice=0,this.selectOtherAmt=!0,this.openPop()},bindPopOk:function(){if(0==this.totalPrice)return o.alert("请输入金额"),!1;this.closePop()},bindPay:function(t){var e=this;if(0==this.totalPrice||o.isNull(this.totalPrice))return o.alert("请输入金额"),!1;if(o.isNull(e.payType))return o.alert("请选择收款方式"),!1;switch(e.payType){case"weixin":uni.scanCode({onlyFromCamera:!0,success:function(t){console.log("条码类型:"+t.scanType),console.log("条码内容:"+t.result),o.scanPay(e.id,e.totalPrice,t.result,e.payType,(function(t){uni.showModal({title:"收款成功",success:function(){e.proces
|