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
24 KiB
1 line
24 KiB
|
5 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["package-packageorder-pages-budgetorder-budgetorder"],{"02c0":function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("3471"));a("c223"),a("aa9c");var o=a("e0a6"),r=getApp(),s={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,to_date:"",torechargetotal:0,isCanfinish:!1}},onLoad:function(t){this.id=t.id,this.windowHeight=r.globalData.winHeight,this.windowWidth=r.globalData.winWidth,this.loadInfo(this.id,"init")},computed:{startDate:function(){return this.getDate("start")},endDate:function(){return this.getDate("end")}},methods:{tohome:function(){uni.navigateTo({url:"../../../../pages/index/index"})},bindBack:function(){uni.navigateBack({})},loadInfo:function(t,e){var a=this;o.getOrderInfo(t,(function(i){a.order=i.data,a.loadMoneyArr(a.order.price),"afterPay"!=e&&(a.to_date=a.$moment().format("yyyy-MM-DD")),a.checkoutOrderitems(t,!0,a.to_date)}),(function(){}))},bindDateChange:function(t){this.to_date=t.target.value,this.checkoutOrderitems(this.id,!0,t.target.value)},getDate:function(t){var e=new Date,a=e.getFullYear(),i=e.getMonth()+1,n=e.getDate();return"start"===t?a=a:"end"===t&&(a+=2),i=i>9?i:"0"+i,n=n>9?n:"0"+n,"".concat(a,"-").concat(i,"-").concat(n)},openPop:function(){this.$refs.popup.open(),this.focusAmtSet=!0},closePop:function(){this.$refs.popup.close()},bindClickMoney:function(t){var e,a=t.currentTarget.dataset.index,i=this.moneyArr,o=(0,n.default)(i);try{for(o.s();!(e=o.n()).done;){var r=e.value;r.checked=!1}}catch(s){o.e(s)}finally{o.f()}i[a].checked=!0,console.log(i[a]),this.moneyArr=i,this.totalPrice=i[a].amt,this.selectOtherAmt=!1,this.closePop()},tochange:function(t){var e,a=t.currentTarget.dataset.index,i=this.paylist,o=(0,n.default)(i);try{for(o.s();!(e=o.n()).done;){var r=e.value;r.chekced=!1}}catch(s){o.e(s)}finally{o.f()}i[a].chekced=!0,this.paylist=i,this.payType=i[a].type},bindinputotheramt:function(){var t,e=this.moneyArr,a=(0,n.default)(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;i.checked=!1}}catch(o){a.e(o)}finally{a.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("请选择收款方式")
|