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
26 KiB
1 line
26 KiB
|
1 week ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["package-packageorder-pages-budgetorder-budgetorder"],{"02c0":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("3471"));i("c223"),i("aa9c");var o=i("e0a6"),s=getApp(),r={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/pos.png",type:"pos"},{name:"线下",comment:"请选择线下收款方式",chekced:!1,img:"/static/resources/cash.png",type:"offline"}],offlinePaylist:[{name:"线下POS收款",comment:"推荐POS机刷卡",chekced:!1,img:"/static/resources/pay/offline_pos.svg",type:"offline_pos"},{name:"线下二维码收款",comment:"线下二维码收款",chekced:!1,img:"/static/resources/pay/offline_qrcode.svg",type:"offline_qrcode"},{name:"转账",comment:"银行卡转账收款",chekced:!1,img:"/static/resources/pay/transfer.svg",type:"transfer"},{name:"现金",comment:"线下现金收款",chekced:!1,img:"/static/resources/pay/offline_cash.svg",type:"offline_cash"}],payType:"weixin",offlinePayType:"",id:"",moneyArr:[],comment:"",selectOtherAmt:!1,showPopAmt:!1,focusAmtSet:!1,to_date:"",torechargetotal:0,isCanfinish:!1}},onLoad:function(t){this.id=t.id,this.windowHeight=s.globalData.winHeight,this.windowWidth=s.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 i=this;o.getOrderInfo(t,(function(a){i.order=a.data,i.loadMoneyArr(i.order.price),"afterPay"!=e&&(i.to_date=i.$moment().format("yyyy-MM-DD")),i.checkoutOrderitems(t,!0,i.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,i=e.getFullYear(),a=e.getMonth()+1,n=e.getDate();return"start"===t?i=i:"end"===t&&(i+=2),a=a>9?a:"0"+a,n=n>9?n:"0"+n,"".concat(i,"-").concat(a,"-").concat(n)},openPop:function(){this.$refs.popup.open(),this.focusAmtSet=!0},closePop:function(){this.$refs.popup.close()},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(r){o.e(r)}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(f){o.e(f)}finally{o.f()}if(a[i].chekced=!0,this.paylist=a,this.payType=a[i].type,"offline"!=this.payType){this.offlinePayType="";var r,c=this.offlinePaylist
|