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
32 KiB

3 years ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["package-packageorder-pages-orderinfo-orderinfo"],{"04a2":function(t,e,i){var a=i("f5aa");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("1cfa0cde",a,!0,{sourceMap:!1,shadowMode:!1})},"21ca":function(t,e,i){"use strict";i.r(e);var a=i("5f57"),n=i("46fd");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("b8b6");var s=i("f0c5"),r=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"075ca78e",null,!1,a["a"],void 0);e["default"]=r.exports},3182:function(t,e,i){var a=i("7e30");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("8d30254e",a,!0,{sourceMap:!1,shadowMode:!1})},"32d7":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("e9c4"),i("14d9"),i("acd8"),i("d3b7"),i("159b"),i("d81d"),i("b64b");var n=a(i("b85c")),o=i("21db"),s=getApp(),r=uni.requireNativePlugin("Sunmi-Print-Inner"),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:100,total:0,paid_total:0,contact:null,mobile:"",paramedic_id:31,price:"0",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:"",room_name:"",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:"",paramedic_level_name:"",avatar_url:null,age:"",status_name:null},factorjson:[{fee:"0.00",price:"0.00",factor_id:1,factor_name:"",fee_percent:"0",used_for_fee:1,factor_item_id:2,factor_item_name:"0"}]},orderItems:[],chklength:0,checkAll:!1,printOrderList:[{name:"客户联",checked:!0},{name:"护士长联",checked:!1},{name:"留置联",checked:!1}]}},onReady:function(){null!=r&&r.connect((function(t){"hello"==t.connect&&console.log("打印机成功连接")}))},onLoad:function(t){this.windowHeight=s.globalData.winHeight,this.windowWidth=s.globalData.winWidth,this.loadInfo(t.id)},methods:{toback:function(t,e,i){var a=this;uni.showModal({title:"提示",content:"确认退款?",confirmText:"确认",confirmColor:"#000",cancelColor:"#eee",success:function(n){n.confirm?o.request({customLoading:!0,api:"manager/refund-for-order/"+a.order.id,data:{id:a.order.id,money:e,payment:i,recharge_id:t},method:"POST",utilSuccess:function(e){o.alert("退款成功"),a.loadInfo(t)},utilFail:function(t){o.alert(t)}}):n.cancel}})},loadInfo:function(t){var e=this;o.getOrderInfo(t,(function(t){e.order=t.data;var i,a=(0,n.default)(t.data.order_items);try{for(a.s();!(i=a.n()).done;){var o=i.value;o.checked=!1}}catch(s){a.e(s)}finally{a.f()}e.orderItems=t.data.order_items}),(function(t){}))},tohome:function(){uni.navigateTo({url:"../../../../pages/index/index"})},openPop:function(){this.$refs.popup.open()},closePop:function(){this.$refs.popup.close()},bindChangePrint:function(t){var e=t.currentTarget.dataset.index,i=this.printOrderList;i[e].checked=!i[e].checked,this.printOrderList=i},bindAction:function(t){var e=t.currentTarget.dataset.type,i=t.currentTarget.dataset.id;switch(e){case"toPay":this.toPay(i);break;case"doCancel":this.doCancel(i);break;case"toAssign":this.toAssign(i);break;case"toChangeCarer":this.toChangeCarer(i);break;case"toZhongBuget":this.toZhongBuget(i);break;case"toBuget":this.toBuget(i);break;case"doEdit":this.toEdit(i);break;case"toRegain":this.toRegain(i);break}},toRegain:function(t){var e=this;uni.showModal({title:"提示",content:"确认恢复为待决算",confirmText:"确认",confirmColor:"#000",cancelColor:"#eee",success:function(i){i.confirm?o.request({customLoading:!0,api:"mana