2022-10-28 15:37:07 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<view class="app">
|
2022-11-03 17:26:15 +08:00
|
|
|
|
<view class="OrderStatus" v-if="orderStatus=='REFUNDED'||orderStatus=='CANCEL'">
|
|
|
|
|
|
订单已关闭
|
|
|
|
|
|
</view>
|
2022-10-28 15:37:07 +08:00
|
|
|
|
<view class="content">
|
|
|
|
|
|
<view class="name">
|
|
|
|
|
|
服务商家
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="details">
|
|
|
|
|
|
<view class="detailslist">
|
2022-11-03 17:26:15 +08:00
|
|
|
|
<image :src="baseurl+nursestationlist.stationPictureUrl" mode=""></image>
|
2022-10-28 15:37:07 +08:00
|
|
|
|
<view class="model">
|
|
|
|
|
|
<view class="top">
|
2022-11-03 17:26:15 +08:00
|
|
|
|
<view>{{nursestationlist.nurseStationName}}</view>
|
2022-10-28 15:37:07 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="bottom">
|
2022-11-03 17:26:15 +08:00
|
|
|
|
<view>{{nursestationlist.address}}</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="callme" @tap="gophone()">
|
|
|
|
|
|
<u-icon class='icon' name="phone-fill" color="#ffffff" size="30"></u-icon>
|
|
|
|
|
|
<view class="text">联系我们</view>
|
2022-10-28 15:37:07 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2022-11-03 17:26:15 +08:00
|
|
|
|
<view class="content">
|
2022-10-28 15:37:07 +08:00
|
|
|
|
<view class="name">
|
|
|
|
|
|
服务项目
|
|
|
|
|
|
</view>
|
2022-11-01 13:49:13 +08:00
|
|
|
|
<view class="drug">·{{orderlist.nurseItemName}} </view>
|
2022-10-28 15:37:07 +08:00
|
|
|
|
</view>
|
2022-11-03 17:26:15 +08:00
|
|
|
|
<view class="content">服务信息
|
|
|
|
|
|
<view class="contacts">·联系人:{{userinfo.patientName}}</view>
|
|
|
|
|
|
<view class="contacts">·电话:{{userinfo.phone}}</view>
|
|
|
|
|
|
<view class="contacts">·地址:{{userinfo.serviceAddress}}</view>
|
|
|
|
|
|
<view class="contacts">·时间:{{userinfo.serviceDate}}</view>
|
2022-10-28 15:37:07 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="Package">套餐信息:
|
2022-11-01 13:49:13 +08:00
|
|
|
|
<span>¥{{orderlist.nurseItemPrice}}</span>
|
2022-10-28 15:37:07 +08:00
|
|
|
|
<view class="detail">
|
2022-11-01 13:49:13 +08:00
|
|
|
|
·{{orderlist.nurseItemName}}
|
2022-10-28 15:37:07 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2022-11-01 13:49:13 +08:00
|
|
|
|
<view class="Consumablespackage" v-if='orderlist.itemConsumableList'>耗材包详情:
|
|
|
|
|
|
<span>¥{{orderlist.itemConsumableList[0].consumablePrice}}</span>
|
2022-11-03 17:26:15 +08:00
|
|
|
|
<view class="detail">
|
2022-11-01 13:49:13 +08:00
|
|
|
|
·{{orderlist.itemConsumableList[0].consumableDetail}}
|
2022-10-28 15:37:07 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="remarks">
|
|
|
|
|
|
<view>备注:</view>
|
2022-11-03 17:26:15 +08:00
|
|
|
|
<input placeholder="" v-model='userinfo.remark'>
|
2022-10-28 15:37:07 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="evaluate">
|
2022-11-03 17:26:15 +08:00
|
|
|
|
<view class="cancelorder" @tap="cancelorderment()"
|
|
|
|
|
|
v-if="orderStatus=='PAY'||orderStatus=='WAIT_DISPATCH'||orderStatus=='NOT_FINISH'">取消订单</view>
|
|
|
|
|
|
<!-- <view class="cancelorder " style="background: #4C7BC9;">评价</view> -->
|
2022-10-28 15:37:07 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2022-11-01 13:49:13 +08:00
|
|
|
|
import baseurl from '@/api/baseurl.js'
|
|
|
|
|
|
import {
|
|
|
|
|
|
getOrderPatientInfo,
|
|
|
|
|
|
getAppStationItemInfo,
|
|
|
|
|
|
introductionList,
|
|
|
|
|
|
cancellationOrder
|
|
|
|
|
|
} from '@/api/ServiceDetails/ServiceDetails.js'
|
2022-10-28 15:37:07 +08:00
|
|
|
|
export default {
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2022-11-03 17:26:15 +08:00
|
|
|
|
baseurl: '',
|
|
|
|
|
|
userinfo: [], //被护理人
|
|
|
|
|
|
orderlist: [], //获取耗材包详情
|
|
|
|
|
|
nursestationlist: [], // 护理站信息列表
|
|
|
|
|
|
stationId: '',
|
|
|
|
|
|
stationItemId: '',
|
|
|
|
|
|
stationItemPriceId: '',
|
|
|
|
|
|
orderNo: '',
|
|
|
|
|
|
orderStatus: '',
|
2022-10-28 15:37:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2022-11-03 17:26:15 +08:00
|
|
|
|
onLoad(options) {
|
|
|
|
|
|
this.stationId = options.stationId
|
|
|
|
|
|
this.stationItemId = options.stationItemId
|
|
|
|
|
|
this.stationItemPriceId = options.stationItemPriceId
|
|
|
|
|
|
this.orderStatus = options.orderStatus
|
|
|
|
|
|
this.orderNo = options.orderNo
|
|
|
|
|
|
this.baseurl = baseurl
|
2022-11-01 13:49:13 +08:00
|
|
|
|
this.getinfo()
|
|
|
|
|
|
this.getlist()
|
2022-11-03 17:26:15 +08:00
|
|
|
|
this.getPatientInfo()
|
2022-11-01 13:49:13 +08:00
|
|
|
|
},
|
2022-10-28 15:37:07 +08:00
|
|
|
|
methods: {
|
2022-11-03 17:26:15 +08:00
|
|
|
|
gophone() {
|
|
|
|
|
|
var that = this
|
|
|
|
|
|
uni.getSystemInfo({
|
|
|
|
|
|
success: function(res) {
|
|
|
|
|
|
console.log(res)
|
|
|
|
|
|
if (res.platform == 'ios') {
|
|
|
|
|
|
uni.makePhoneCall({
|
|
|
|
|
|
phoneNumber: that.nursestationlist.phone //仅为示例
|
|
|
|
|
|
});
|
|
|
|
|
|
} else {
|
|
|
|
|
|
uni.showActionSheet({
|
|
|
|
|
|
itemList: ['呼叫', ],
|
|
|
|
|
|
success: function(res) {
|
|
|
|
|
|
if (res.tapIndex + 1 == 1) {
|
|
|
|
|
|
uni.makePhoneCall({
|
|
|
|
|
|
phoneNumber: that.nursestationlist.phone //仅为示例
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
fail: function(res) {}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
//被护理人信息
|
2022-11-01 13:49:13 +08:00
|
|
|
|
getinfo() {
|
|
|
|
|
|
getOrderPatientInfo(this.orderNo).then(res => {
|
2022-11-03 17:26:15 +08:00
|
|
|
|
this.userinfo = res.data;
|
2022-11-01 13:49:13 +08:00
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
// 护理站信息列表
|
|
|
|
|
|
getlist() {
|
2022-11-03 17:26:15 +08:00
|
|
|
|
introductionList(this.stationId).then(res => {
|
2022-11-01 13:49:13 +08:00
|
|
|
|
this.nursestationlist = res[0];
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
//获取耗材包详情
|
2022-11-03 17:26:15 +08:00
|
|
|
|
getPatientInfo() {
|
2022-11-01 13:49:13 +08:00
|
|
|
|
getAppStationItemInfo(this.stationId, this.stationItemId, this.stationItemPriceId).then(res => {
|
|
|
|
|
|
this.orderlist = res.data
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2022-11-03 17:26:15 +08:00
|
|
|
|
cancelorderment() {
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
url: `/pages/cancelorder/cancelorder?nurseItemPrice=${this.orderlist.nurseItemPrice}&appointmentOrderId=${this.userinfo.appointmentOrderId}`
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2022-10-28 15:37:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
2022-11-03 17:26:15 +08:00
|
|
|
|
@import './ServiceDetails.scss';
|
2022-10-28 15:37:07 +08:00
|
|
|
|
</style>
|