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
29 KiB
1 line
29 KiB
|
5 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["package-packageorder-pages-finishorder-finishorder"],{"03e9":function(t,e,i){"use strict";var a=i("950a"),n=i.n(a);n.a},"0922":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"topnav",props:{title:{type:String,default:""},hasHome:{type:String,default:"home"}},data:function(){return{}},methods:{toback:function(){uni.navigateBack({delta:0})},tohome:function(){this.$emit("tohome")}}};e.default=a},"0c72":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c223"),i("aa9c"),i("d4b5");var n=a(i("3471")),o=a(i("39d8")),s=i("e0a6"),r=getApp(),c={data:function(){var t;return t={pageTitle:"订单结算",windowHeight:720,windowWidth:720,isCanfinish:!0,orderItems:[],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,torefundtotal:0,refund:{}},(0,o.default)(t,"isCanfinish",!1),(0,o.default)(t,"chklength",0),(0,o.default)(t,"checkAll",!1),t},onLoad:function(t){this.id=t.id,this.windowHeight=r.globalData.winHeight,this.windowWidth=r.globalData.winWidth,this.loadInfo(this.id,"init")},onShow:function(t){},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;s.getOrderInfo(t,(function(a){i.order=a.data,i.orderItems=a.data.order_items,i.loadMoneyArr(i.order.price),"afterPay"!=e&&(i.to_date=i.$moment().format("yyyy-MM-DD")),i.checkoutorder(t,!0,i.to_date)}),(function(){}))},bindDateChange:function(t){this.to_date=t.target.value,this.checkoutorder(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
|