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

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["package-packageorder-pages-finishorder-finishorder"],{"08bb":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},1304:function(t,e,i){"use strict";i.r(e);var a=i("08bb"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},2748:function(t,e,i){"use strict";var a=i("7607"),n=i.n(a);n.a},3471:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=(0,a.default)(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,r=!0,c=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return r=t.done,t},e:function(t){c=!0,s=t},f:function(){try{r||null==i["return"]||i["return"]()}finally{if(c)throw s}}}},i("01a2"),i("e39c"),i("bf0f"),i("844d"),i("18f7"),i("de6c"),i("7a76"),i("c9b5");var a=function(t){return t&&t.__esModule?t:{default:t}}(i("5d6b"))},"499d":function(t,e,i){"use strict";var a=i("514a"),n=i.n(a);n.a},"4f4f":function(t,e,i){"use strict";var a=i("7192"),n=i.n(a);n.a},"514a":function(t,e,i){var a=i("c19e");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("11bfa8b2",a,!0,{sourceMap:!1,shadowMode:!1})},"59be":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"orderinfo",props:{info:{type:Object}},data:function(){return{}}};e.default=a},6146:function(t,e,i){"use strict";i.r(e);var a=i("9525"),n=i("b915");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("499d");var s=i("828b"),r=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"2d8e718e",null,!1,a["a"],void 0);e["default"]=r.exports},7192:function(t,e,i){var a=i("8f3c");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("23d72763",a,!0,{sourceMap:!1,shadowMode:!1})},7607:function(t,e,i){var a=i("85aa");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("41aa8d9c",a,!0,{sourceMap:!1,shadowMode:!1})},"85aa":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,"uni-view[data-v-56df567b]{display:flex;flex-direction:column}.orderLine[data-v-56df567b]{flex-direction:row;margin-top:%?16?%;align-items:center}.orderTxt[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?28?%;color:#333;line-height:%?36?%}.iconback[data-v-56df567b]{width:%?40?%;height:%?40?%}.navTab[data-v-56df567b]{background:#fafafa;box-shadow:0 1px 0 0 #e6e6e6;flex-direction:row;justify-content:space-around;top:%?140?%;left:0;position:fixed;z-index:999;width:%?750?%}.tabItem[data-v-56df567b]{align-items:center;position:relative}.orderGe[data-v-56df567b]{color:#d8d8d8;margin-left:%?16?%;margin-right:%?16?%;font-size:%?28?%}.tabTxt[data-v-56df567b]{font-size:%?28?%;color:#666;text-align:left;height:%?70?%;line-height:%?70?%}.tabItemOn[data-v-56df567b]{color:#0dc99e}.tabItemOnLine[data-v-56df567b]{background:#0dc99e;height:%?4?%;width:%?100?%;position:absolute;bottom:%?-2?%;left:0}.orderBox[data-v-56df567b]{padding-top:%?16?%;padding-bottom:%?16?%;padding-left:%?30?%;padding-right:%?30?%;background:#fff;margin-top:%?20?%}.orderHeader[data-v-56df567b]{flex-direction:row;justify-content:space-between;padding-bottom:%?16?%;border-bottom:%?1?% solid #e4e4e4;align-items:center}.orderBody[data-v-56df567b]{border-bottom:%?1?% solid #e4e4e4;padding-bottom:%?16?%}.orderStatus[data-v-56df567b]{font-family:PingFangSC-Regular;font-size:%?28?%;color:#fd8c30;text-align:left;line-height:%?40?%}.orderNo[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?24?%;color:#999;line-height:%?24?%}.orderTag[data-v-56df567b]{background:rgba(13,201,158,.1);border-radius:2px;width:%?100?%;padding:%?4?% %?10?%;margin-right:%?10?%}.orderTagTxt[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?20?%;text-align:center}.tag1[data-v-56df567b]{color:#0dc99e}.tag2[data-v-56df567b]{color:#4a90e2}.tag3[data-v-56df567b]{color:#fd8c30}.tagBox2[data-v-56df567b]{background:rgba(60,145,245,.1)}.tagBox3[data-v-56df567b]{background:rgba(253,140,48,.1)}.orderPrice[data-v-56df567b]{flex-direction:row;margin-top:%?16?%;border-bottom:%?1?% solid #e4e4e4;padding-bottom:%?16?%}.priceBox[data-v-56df567b]{margin-right:%?30?%;flex-direction:row;align-items:center}.priceTitle[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?24?%;color:#999;line-height:%?28?%}.priceInfo[data-v-56df567b]{font-family:Roboto-Medium;font-size:%?24?%;color:#333;text-align:left;line-height:%?40?%}.orderFooter[data-v-56df567b]{margin-top:%?16?%;padding-bottom:%?16?%;flex-direction:row;justify-content:flex-end}.btn[data-v-56df567b]{border-radius:%?27?%;width:%?108?%;margin-left:%?20?%}.btnCancel[data-v-56df567b]{background:#fff;border:%?1?% solid #0dc99e;align-items:center}.btnTxt[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?24?%;text-align:center;height:%?54?%;line-height:%?54?%}.btnCancelTxt[data-v-56df567b]{color:#0dc99e}.btnConfirm[data-v-56df567b]{background:#0dc99e;border:%?1?% solid #0dc99e;align-items:center}.btnConfirmTxt[data-v-56df567b]{color:#fff}.icon[data-v-56df567b]{color:#52d5a6;margin-right:%?12?%;font-size:%?28?%}.navRight[data-v-56df567b]{flex-direction:row}",""]),t.exports=e},"8f3c":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,".icon-home[data-v-2198d501]{padding-left:%?55?%;font-size:%?42?%}.nav[data-v-2198d501]{height:%?160?%;background-image:linear-gradient(130deg,#52d5a6,#43c9cf);display:flex;align-items:center;padding:%?0?% %?30?%;padding-top:%?48?%;position:fixed;box-sizing:border-box;top:%?0?%;left:0;width:100%;overflow:hidden;z-index:9999;justify-content:space-between}.nav .navLeft[data-v-2198d501]{display:flex}.nav .navTitle[data-v-2198d501]{font-family:SourceHanSansCN-Medium;font-size:%?36?%;color:#fff;letter-spacing:%?0.37?%;line-height:%?50?%;margin-left:%?40?%;font-weight:600}.nav .navLeft .icon-fanhui[data-v-2198d501]{color:#fff;font-size:%?45?%}.navRight[data-v-2198d501]{display:flex;align-items:center}",""]),t.exports=e},9525:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={topnav:i("bd9e").default,orderinfo:i("9c45").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("topnav",{attrs:{title:t.pageTitle},on:{tohome:function(e){arguments[0]=e=t.$handleEvent(e),t.tohome.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"content"},[i("orderinfo",{attrs:{info:t.order}}),i("v-uni-view",{staticClass:"pageTitle"},[t._v("请选择结算到的日期")]),i("v-uni-view",{staticClass:"listBox",staticStyle:{"margin-top":"30rpx"}},[i("v-uni-picker",{attrs:{mode:"date",value:t.to_date,start:t.startDate,end:t.endDate},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindDateChange.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"listBoxItem"},[i("v-uni-view",{staticClass:"listBoxItemLeft"},[i("v-uni-view",{staticClass:"vred"},[t._v("*")]),t._v("日期")],1),i("v-uni-view",{staticClass:"listBoxItemRight"},[""==t.to_date?i("v-uni-text",{staticClass:"novalue"},[t._v("请选择")]):i("v-uni-text",[t._v(t._s(t.to_date))]),i("v-uni-text",{staticClass:"iconfont icon-Icons_ToolBar_ArrowRight"})],1)],1)],1)],1),t.orderItems.length>0?i("v-uni-view",{staticClass:"orderitembox"},[i("v-uni-view",{staticClass:"pageTitle",staticStyle:{position:"sticky",top:"160rpx","padding-top":"30rpx","padding-bottom":"30rpx","background-color":"#F2F2F2","margin-top":"0rpx"}},[i("v-uni-text",[t._v("子订单")])],1),i("v-uni-view",{staticClass:"l-orderitem listBox",staticStyle:{position:"sticky",top:"254rpx","margin-bottom":"0rpx","margin-top":"0rpx"}},[i("v-uni-view",{staticClass:"listBoxItem"},[i("v-uni-view",{staticClass:"listBoxItemLeft",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindAllItemCheck.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont icon-check3",class:t.checkAll?"icon-check3-on":""}),i("v-uni-text",{staticClass:"tdate"},[t._v("合计 "+t._s(t.chklength)+"/"+t._s(null==t.orderItems?0:t.orderItems.length))])],1),i("v-uni-view",{staticClass:"listBoxItemRight"},[100!=t.order.status?i("v-uni-view",{staticClass:"l-btn l-btnConfirm ",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindAllItemEdit.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:" l-btnTxt l-btnConfirmTxt"},[t._v("编辑")])],1):t._e()],1)],1)],1),i("v-uni-view",{staticClass:"l-orderitem listBox",staticStyle:{"margin-top":"0rpx"}},[t._l(t.orderItems,(function(e,a){return[i("v-uni-view",{staticClass:"listBoxItem"},[i("v-uni-view",{staticClass:"listBoxItemLeft",attrs:{"data-index":a},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindItemCheck.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont icon-check3",class:e.checked?"icon-check3-on":""}),i("v-uni-text",{staticClass:"tdate"},[t._v(t._s(e.service_date))]),i("v-uni-text",{staticClass:"tname"},[t._v(t._s(null==e.paramedic?"":e.paramedic.name))]),i("v-uni-text",{staticClass:"ttag"},[t._v(t._s(e.patient_quantity>1?"1对多":"1对1"))]),i("v-uni-text",{staticClass:"tamt"},[t._v(t._s(null==e.total?"0":"¥"+e.total))])],1),i("v-uni-view",{staticClass:"listBoxItemRight",attrs:{"data-item":e},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindItemEdit.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"tstatus tstatuson"},[t._v(t._s(e.paid_status))]),100!=t.order.status?i("v-uni-text",{staticClass:"iconfont icon-edit",staticStyle:{"margin-left":"40rpx"}}):t._e()],1)],1),i("v-uni-view",{staticClass:"listBoxline"})]}))],2)],1):t._e(),t.torechargetotal>0?i("v-uni-view",[i("v-uni-view",{staticClass:"pageTitle"},[t._v("请选择收款方式")]),i("v-uni-view",{staticClass:"payList",staticStyle:{"margin-top":"30rpx"}},[i("v-uni-view",{staticClass:"l-box"},[t._l(t.paylist,(function(e,a){return[i("v-uni-view",{staticClass:"l-box-info",attrs:{"data-index":a},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tochange.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"l-box-info-left",attrs:{"data-index":a}},[i("v-uni-view",{staticClass:"l-box-info-left-logo"},[i("v-uni-image",{staticClass:"icon_logo",attrs:{src:e.img}})],1),i("v-uni-view",{staticClass:"l-box-info-left-rinfo"},[i("v-uni-view",{staticClass:"l-box-info-left-title"},[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"l-box-info-left-ftitle"},[t._v(t._s(e.comment))])],1)],1),i("v-uni-view",{staticClass:"l-box-info-right"},[e.chekced?i("v-uni-text",{staticClass:"iconfont icon-check icon-check-in"}):i("v-uni-text",{staticClass:"iconfont icon-check"})],1)],1)]}))],2)],1),i("v-uni-view",{staticClass:"payBox"},[i("v-uni-view",{staticClass:"listBox mp-20"},[i("v-uni-view",{staticClass:"listBoxItem"},[i("v-uni-view",{staticClass:"listBoxItemLeft"},[i("v-uni-view",{staticClass:"vred"}),t._v("备注")],1),i("v-uni-view",{staticClass:"listBoxItemRight"},[i("v-uni-input",{staticClass:"listBoxItemInput",attrs:{type:"text","placeholder-class":"listBoxItemInputPlaceholder",placeholder:"请输入"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.bindChangeComment.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPay.apply(void 0,arguments)}}})],1)],1)],1)],1)],1):t._e()],1),0==t.torefundtotal?i("v-uni-view",[t.torechargetotal>0?i("v-uni-view",{staticClass:"bottom"},[i("v-uni-view",{staticClass:"bottomLeft"},[i("v-uni-text",{staticClass:"priceTitle"},[t._v("收款金额:")]),i("v-uni-text",{staticClass:"priceInfo"},[t._v("¥"+t._s(t.torechargetotal))])],1),i("v-uni-view",{staticClass:"bottomRight"},[i("v-uni-view",{staticClass:"btnSubmit btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPay.apply(void 0,arguments)}}},[t._v("确认收款")])],1)],1):0==t.torechargetotal&&t.isCanfinish?i("v-uni-view",{staticClass:"bottom"},[i("v-uni-view",{staticClass:"bottomLeft"}),i("v-uni-view",{staticClass:"bottomRight",staticStyle:{flex:"1"}},[i("v-uni-view",{staticClass:"btnSubmit btn",staticStyle:{width:"100%"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindBudget.apply(void 0,arguments)}}},[t._v("确认结算")])],1)],1):i("v-uni-view",{staticClass:"bottom"},[i("v-uni-view",{staticClass:"bottomLeft"}),i("v-uni-view",{staticClass:"bottomRight",staticStyle:{flex:"1"}},[i("v-uni-view",{staticClass:"btnCancel btn",staticStyle:{width:"100%"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindBack.apply(void 0,arguments)}}},[t._v("返回")])],1)],1)],1):i("v-uni-view",[t.torefundtotal>0?i("v-uni-view",{staticClass:"bottom"},[i("v-uni-view",{staticClass:"bottomLeft"},[i("v-uni-text",{staticClass:"priceTitle"},[t._v("退款金额:")]),i("v-uni-text",{staticClass:"priceInfo"},[t._v("¥"+t._s(t.torefundtotal))])],1),i("v-uni-view",{staticClass:"bottomRight"},[i("v-uni-view",{staticClass:"btnSubmit btn",staticStyle:{"background-color":"#ED4242"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindRefund.apply(void 0,arguments)}}},[t._v("确认退款")])],1)],1):t._e()],1)],1)},o=[]},"9c45":function(t,e,i){"use strict";i.r(e);var a=i("ecd4"),n=i("e00a");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("2748");var s=i("828b"),r=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"56df567b",null,!1,a["a"],void 0);e["default"]=r.exports},b915:function(t,e,i){"use strict";i.r(e);var a=i("b987"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},b987: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("8f30"),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=e.value;s.chekced=!1}}catch(r){o.e(r)}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 s.alert("请输入金额"),!1;this.closePop()},bindPay:function(t){var e=this;if(0==this.totalPrice||s.isNull(this.totalPrice))return s.alert("请输入金额"),!1;if(s.isNull(e.payType))return s.alert("请选择收款方式"),!1;switch(e.payType){case"weixin":uni.scanCode({onlyFromCamera:!0,success:function(t){console.log("条码类型:"+t.scanType),console.log("条码内容:"+t.result),s.scanPay(e.id,e.totalPrice,t.result,e.payType,(function(t){uni.showModal({title:"扫码成功,需看用户是否支付",success:function(){e.processAfterPay(t,e.id)}})}),(function(t){s.alert("收款失败:"+t)}))}});break;case"alipay":uni.scanCode({onlyFromCamera:!0,success:function(t){console.log("条码类型:"+t.scanType),console.log("条码内容:"+t.result),s.scanPay(e.id,e.totalPrice,t.result,e.payType,(function(t){uni.showModal({title:"扫码成功,需看用户是否支付",success:function(){e.processAfterPay(t,e.id)}})}),(function(t){s.alert("收款失败:"+t)}))}});break;case"cash":case"pos":uni.showModal({title:"提示",content:"确认收款¥["+e.totalPrice+"],收款方式["+("cash"==e.payType?"现金":"刷卡")+"]",confirmText:"确认",confirmColor:"#000",cancelColor:"#eee",success:function(t){t.confirm&&e.doReceivedMoney(e.id)}});break}},doReceivedMoney:function(t){var e=this;s.request({bindThis:e,method:"POST",customLoading:!1,api:"manager/recharge-for-order/"+t,data:{payment:e.payType,money:e.totalPrice,remark:e.comment},utilSuccess:function(i){console.log("3提交成功返回"),console.log(i),uni.showModal({title:"收款成功",success:function(){e.processAfterPay(i,t)}})},utilFail:function(t){console.log("4提交失败"+t),s.alert(t)}})},bindChangeMoney:function(t){this.totalPrice=t.detail.value},processAfterPay:function(t,e){this.loadInfo(e,"afterPay")},loadMoneyArr:function(t){for(var e=[],i=1;i<=6;i++){var a=!1;3==i&&(a=!0,this.totalPrice=i*t),e.push({amt:i*t,checked:a})}this.moneyArr=e},bindChangeComment:function(t){this.comment=t.detail.value},bindBudget:function(){var t=this;uni.showModal({title:"提示",content:"确认结算?",confirmText:"确认",confirmColor:"#000",cancelColor:"#eee",success:function(e){e.confirm&&t.checkoutorder(t.id,!1,t.to_date)}})},checkoutorder:function(t,e,i){var a=this;s.request({bindThis:a,method:"POST",customLoading:!1,api:"manager/checkout-order/"+t,data:{to_date:i,just_check:e},utilSuccess:function(t){a.isCanfinish=!0,e?(console.log(t),a.torechargetotal=t.to_recharge_total,a.totalPrice=t.to_recharge_total,a.torefundtotal=t.to_refund_total,a.refund=t):uni.showModal({title:"结算成功",success:function(){uni.navigateTo({url:"../orderinfo/orderinfo?id="+a.id})}})},utilFail:function(t){console.log("4提交失败"+t),s.alert(t),a.isCanfinish=!1}})},bindRefund:function(){var t=this;uni.showModal({title:"提示",content:"确认退款?",confirmText:"确认",confirmColor:"#000",cancelColor:"#eee",success:function(e){e.confirm&&t.doRefund(t.id)}})},doRefund:function(t){var e=this;s.request({bindThis:e,method:"POST",customLoading:!1,api:"manager/refund-for-order/"+t,data:{money:e.refund.to_refund_total,payment:e.refund.refund_payment,recharge_id:e.refund.refund_recharge_id,remark:e.comment},utilSuccess:function(i){uni.showModal({title:"退款成功",success:function(){e.loadInfo(t,"afterPay")}})},utilFail:function(t){console.log("4提交失败"+t),s.alert(t)}})},bindAllItemCheck:function(t){this.checkAll=!this.checkAll;var e,i=this.orderItems,a=(0,n.default)(i);try{for(a.s();!(e=a.n()).done;){var o=e.value;this.checkAll?o.checked=!0:o.checked=!1}}catch(s){a.e(s)}finally{a.f()}this.orderItems=i,this.chklength=this.checkAll?this.orderItems.length:0},bindItemCheck:function(t){var e=t.currentTarget.dataset.index;this.orderItems[e].checked=!this.orderItems[e].checked;var i,a=0,o=(0,n.default)(this.orderItems);try{for(o.s();!(i=o.n()).done;){var s=i.value;s.checked&&a++}}catch(r){o.e(r)}finally{o.f()}a==this.orderItems.length?this.checkAll=!0:this.checkAll=!1,this.chklength=a},bindAllItemEdit:function(t){var e,i=[],a=(0,n.default)(this.orderItems);try{for(a.s();!(e=a.n()).done;){var o=e.value;o.checked&&i.push({id:o.id,service_date:o.service_date})}}catch(r){a.e(r)}finally{a.f()}if(0==i.length)return s.alert("请选择需要修改的子订单"),!1;uni.navigateTo({url:"../suborderedit/suborderedit?page=fin&from=select&d="+JSON.stringify(i)+"&oid="+this.order.id})},bindItemEdit:function(t){var e=t.currentTarget.dataset.item,i=[{id:e.id,service_date:e.service_date}];uni.navigateTo({url:"../suborderedit/suborderedit?page=fin&from=single&d="+JSON.stringify(i)+"&oid="+this.order.id+"&id="+e.id})}}};e.default=c},bd9e:function(t,e,i){"use strict";i.r(e);var a=i("d6ee"),n=i("1304");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("4f4f");var s=i("828b"),r=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"2198d501",null,!1,a["a"],void 0);e["default"]=r.exports},c19e:function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,"uni-page-body[data-v-2d8e718e]{padding-top:%?140?%;padding-bottom:%?100?%}.l-orderitem[data-v-2d8e718e]{margin-top:%?30?%}.icon-check3[data-v-2d8e718e]{color:#ccc;font-size:%?32?%;margin-right:%?8?%}.icon-check3-on[data-v-2d8e718e]{color:#0dc99e}.icon-edit[data-v-2d8e718e]{color:#999;font-size:%?32?%}.tdate[data-v-2d8e718e],\n.tamt[data-v-2d8e718e]{margin-left:%?20?%;font-size:%?28?%;color:#999}.tname[data-v-2d8e718e]{margin-left:%?10?%;font-size:%?28?%}.ttag[data-v-2d8e718e]{margin-left:%?20?%;font-size:%?20?%;height:%?28?%;width:%?54?%;line-height:%?28?%;color:#4a90e2;letter-spacing:0;background:rgba(60,145,245,.1);text-align:center}.tstatus[data-v-2d8e718e]{font-size:%?28?%;margin-left:%?30?%}.l-box-info-left[data-v-2d8e718e]{display:flex;justify-content:space-between}.btnOther[data-v-2d8e718e]{background-color:#0cb790;height:%?200?%;width:100%;color:#fff;box-sizing:border-box;border-radius:%?8?%;display:flex;font-size:%?28?%;align-items:center;justify-content:center;margin-left:%?20?%}.btnOther-on[data-v-2d8e718e]{background-color:orange}.bottom[data-v-2d8e718e]{background:#fff;box-shadow:0 %?-2?% %?12?% 0 rgba(0,0,0,.16),inset 0 %?1?% 0 0 #e4e4e4;width:100%;height:%?100?%;position:fixed;bottom:0;left:0;display:flex;justify-content:space-between}.bottom .bottomLeft[data-v-2d8e718e]{display:flex;align-items:center}.bottom .bottomRight[data-v-2d8e718e]{display:flex}.btn[data-v-2d8e718e]{width:%?220?%;line-height:%?100?%;text-align:center;line-height:%?100?%;font-family:SourceHanSansCN-Medium;font-size:%?32?%;letter-spacing:0}.btnCancel[data-v-2d8e718e]{color:#666;background:#f0f0f0}.btnSubmit[data-v-2d8e718e]{color:#fff;background:#0dc99e}.priceTitle[data-v-2d8e718e]{font-family:SourceHanSansCN-Normal;font-size:%?24?%;color:#999;letter-spacing:0;line-height:%?28?%;margin-left:%?32?%}.priceInfo[data-v-2d8e718e]{font-family:SourceHanSansCN-Normal;font-size:%?30?%;color:orange;margin-left:%?10?%;letter-spacing:0;line-height:%?28?%;font-weight:700}.icon_logo[data-v-2d8e718e]{width:%?80?%;height:%?80?%;margin-right:%?24?%}.moneyBox[data-v-2d8e718e]{display:flex;justify-content:space-between;padding:%?20?% %?30?%;background-color:#fff}.moneyBoxLeft[data-v-2d8e718e]{display:flex;flex-direction:row;flex-wrap:wrap;width:80%}.moneyBoxRight[data-v-2d8e718e]{flex:1}.moneyItem[data-v-2d8e718e]{height:%?90?%;width:31.3%;font-size:%?28?%;display:flex;justify-content:center;border:%?1?% solid #333;margin-right:1%;margin-left:1%;color:#333;margin-bottom:%?20?%;border-radius:%?8?%;box-sizing:border-box;line-height:%?90?%}.moneyItemOn[data-v-2d8e718e]{border-color:orange;color:orange}",""]),t.exports=e},d6ee:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"nav"},[i("v-uni-view",{staticClass:"navLeft"},[i("v-uni-view",{staticClass:"back",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toback.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont icon-fanhui"})],1),i("v-uni-view",{staticClass:"navTitle"},[t._v(t._s(t.title))])],1),i("v-uni-view",{staticClass:"navRight"},[t._t("default"),"home"==t.hasHome?i("v-uni-text",{staticClass:"iconfont icon-home iconTop",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tohome.apply(void 0,arguments)}}}):t._e()],2)],1)],1)},n=[]},e00a:function(t,e,i){"use strict";i.r(e);var a=i("59be"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},ecd4:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"orderBox"},[i("v-uni-view",{staticClass:"orderHeader"},[i("v-uni-text",{staticClass:"orderNo"},[t._v("订单编号:"+t._s(t.info.serial))]),i("v-uni-text",{staticClass:"orderStatus"},[t._v(t._s(t.info.status_name))])],1),i("v-uni-view",{staticClass:"orderBody"},[i("v-uni-view",{staticClass:"orderLine"},[i("v-uni-text",{staticClass:"iconfont iconLocation icon"},[t._v("")]),i("v-uni-text",{staticClass:"orderTxt"},[t._v(t._s(t.info.project.name))]),i("v-uni-text",{staticClass:"orderGe"},[t._v("|")]),i("v-uni-text",{staticClass:"orderTxt"},[t._v(t._s(t.info.bed.building_name)+"-"+t._s(t.info.bed.area_name)+"-"+t._s(t.info.bed.room_name)+"-"+t._s(t.info.bed.name+"床"))])],1),i("v-uni-view",{staticClass:"orderLine"},[i("v-uni-text",{staticClass:"iconfont iconLocation icon"},[t._v("")]),i("v-uni-text",{staticClass:"orderTxt"},[t._v(t._s(t.info.patient.name))]),i("v-uni-text",{staticClass:"orderGe"},[t._v("|")]),i("v-uni-text",{staticClass:"orderTxt"},[t._v(t._s(null==t.info.patient.sex?"男":t.info.patient.sex))]),i("v-uni-text",{staticClass:"orderGe"},[t._v("|")]),i("v-uni-text",{staticClass:"orderTxt"},[t._v(t._s(t.info.mobile))])],1),i("v-uni-view",{staticClass:"orderLine"},[i("v-uni-text",{staticClass:"iconfont iconLocation icon"},[t._v("")]),i("v-uni-text",{staticClass:"orderTxt"},[t._v(t._s(t.info.from_date)+" "+t._s(t.info.to_date)+" 共预约"+t._s(t.info.days)+"天")])],1),i("v-uni-view",{staticClass:"orderLine",staticStyle:{"padding-left":"43rpx"}},[t._l(t.info.factorjson,(function(e,a){return[i("v-uni-view",{staticClass:"orderTag tagBox1"},[i("v-uni-text",{staticClass:"orderTagTxt tag1"},[t._v(t._s(e.factor_item_name))])],1)]})),null!=t.info.product_item?i("v-uni-view",{staticClass:"orderTag tagBox2"},[i("v-uni-text",{staticClass:"orderTagTxt tag2"},[t._v(t._s(t.info.product_item.name))])],1):t._e(),null!=t.info.paramedic_level?i("v-uni-view",{staticClass:"orderTag tagBox3"},[i("v-uni-text",{staticClass:"orderTagTxt tag3"},[t._v(t._s(t.info.paramedic_level.name))])],1):t._e()],2)],1),i("v-uni-view",{staticClass:"orderPrice"},[i("v-uni-view",{staticClass:"priceBox"},[i("v-uni-text",{staticClass:"priceTitle"},[t._v("合计:")]),i("v-uni-text",{staticClass:"priceInfo"},[t._v("¥"+t._s(t.info.total))])],1),i("v-uni-view",{staticClass:"priceBox"},[i("v-uni-text",{staticClass:"priceTitle"},[t._v("已扣:")]),i("v-uni-text",{staticClass:"priceInfo"},[t._v("¥"+t._s(t.info.paid_total))])],1),i("v-uni-view",{staticClass:"priceBox"},[i("v-uni-text",{staticClass:"priceTitle"},[t._v("余额:")]),i("v-uni-text",{staticClass:"priceInfo"},[t._v("¥"+t._s(t.info.customer.balance))])],1),t.info.paramedic?i("v-uni-view",{staticClass:"priceBox"},[i("v-uni-text",{staticClass:"priceTitle"},[t._v("护工:")]),i("v-uni-text",{staticClass:"priceInfo"},[t._v(t._s(t.info.paramedic?t.info.paramedic.name:""))])],1):t._e()],1)],1)],1)},n=[]}}]);