| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649 | 
							- <template>
 
- 	<view class="content">
 
- 		<view class="cont">
 
- 			<view class="other-info" v-if="order!=null">
 
- 				<view class="title">付款详情</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">订单类型:</text>
 
- 						<text class="text">{{$getDictLabelName(inquiryTypeOptions,order.inquiryType)}}</text>
 
- 						<text class="text">-{{$getDictLabelName(orderTypeOptions,order.orderType)}}</text>
 
- 					</view>
 
- 					<view class="status red" v-if="order.status==1">
 
- 						{{$getDictLabelName(orderStatusOptions,order.status)}}
 
- 					</view>
 
- 					<view class="status red" v-if="order.status==2">
 
- 						{{$getDictLabelName(orderStatusOptions,order.status)}}
 
- 					</view>
 
- 					<view class="status green" v-if="order.status==3">
 
- 						{{$getDictLabelName(orderStatusOptions,order.status)}}
 
- 					</view>
 
- 					<view class="status green" v-if="order.status==4">
 
- 						{{$getDictLabelName(orderStatusOptions,order.status)}}
 
- 					</view>
 
- 					<view class="status gray" v-if="order.status<0">
 
- 						{{$getDictLabelName(orderStatusOptions,order.status)}}
 
- 					</view>
 
- 				</view>
 
- 				 
 
- 			</view>
 
- 			<view class="doc-box" v-if="doctor!=null">
 
- 				<view class="title">医生详情</view>
 
- 				<view class="doc-name-box">
 
- 					<view class="doc-name">
 
- 						{{doctor.doctorName}}
 
- 					</view>
 
- 					<view class="doc-star">
 
- 						<u-rate activeColor="#ffc603" count="5" readonly v-model="doctor.pingStar"></u-rate>
 
- 					</view>
 
- 				</view>
 
- 				<view class="doc-dept-box">
 
- 					{{department.deptName}}|{{doctor.position}}
 
- 				</view>
 
- 				<view class="doc-his-box">
 
- 					{{hospital.hospitalName}}
 
- 				</view>
 
- 				<view class="doc-spec-box">
 
- 					<view class="left">
 
- 						<view class="title">擅长:</view>
 
- 						<view class="spec">{{doctor.speciality}}</view>
 
- 					</view>
 
- 					<view class="right">
 
- 						<view class="btn" @click="navTo('/pages/doctor/doctorDetails?doctorId='+doctor.doctorId)" >详情</view>
 
- 					</view>
 
- 				</view>
 
- 			</view>
 
- 			<view class="other-info" v-if="patient!=null&&order.inquiryType==1">
 
- 				<view class="title">咨询内容</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">患者信息:</text>
 
- 						<text class="text">{{patient.patientName}} {{patient.sex==1?"男":"女"}} {{patient.age}}岁</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">病情描述:</text>
 
- 						<text class="text">{{patient.title}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">患病时间:</text>
 
- 						<text class="text">{{patient.duration}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">就诊情况:</text>
 
- 						<text class="text">{{patient.isVisit}}</text>
 
- 					</view>
 
- 				</view>
 
- 			</view>
 
- 			<view class="other-info" v-if="patient!=null&&order.inquiryType==2">
 
- 				<view class="title">咨询内容</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">患者信息:</text>
 
- 						<text class="text">{{patient.patientName}} {{patient.sex==1?"男":"女"}} {{patient.age}}岁</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">身高(CM):</text>
 
- 						<text class="text">{{patient.height}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">体重(KG):</text>
 
- 						<text class="text">{{patient.weight}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">联系电话:</text>
 
- 						<text class="text">{{patient.mobile}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">学习进度:</text>
 
- 						<text class="text">{{patient.study}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">期望会诊方式:</text>
 
- 						<text class="text">{{patient.usage}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">病情描述:</text>
 
- 						<text class="text">{{patient.title}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">正在服用药品:</text>
 
- 						<text class="text">{{patient.drugs}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">本次患病时间:</text>
 
- 						<text class="text">{{patient.duration}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">是否就诊过:</text>
 
- 						<text class="text">{{patient.isVisit}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">舌苔照片:</text>
 
- 					</view>
 
- 					 
 
- 				</view>
 
- 				<view>
 
- 					<u-album :urls="tongueImages"></u-album>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">面部照片:</text>
 
- 					</view>
 
- 					 
 
- 				</view>
 
- 				<view>
 
- 					<u-album :urls="faceImages"></u-album>
 
- 				</view>
 
- 			 
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">检测报告或患处照片:</text>
 
- 					</view>
 
- 					 
 
- 				</view>
 
- 				<view>
 
- 					<u-album :urls="reportImages"></u-album>
 
- 				</view>
 
- 			</view>
 
- 			<view class="other-info" v-if="patient!=null&&order.inquiryType==3">
 
- 				<view class="title">咨询内容</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">患者信息:</text>
 
- 						<text class="text">{{patient.patientName}} {{patient.sex==1?"男":"女"}} {{patient.age}}岁</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">病情描述:</text>
 
- 						<text class="text">{{patient.title}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">正在服用药品:</text>
 
- 						<text class="text">{{patient.drugs}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">本次患病时间:</text>
 
- 						<text class="text">{{patient.duration}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">是否就诊过:</text>
 
- 						<text class="text">{{patient.isVisit}}</text>
 
- 					</view>
 
- 				</view>
 
- 				 
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">检测报告或患处照片:</text>
 
- 					</view>
 
- 					 
 
- 				</view>
 
- 				
 
- 				<view>
 
- 					<u-album :urls="reportImages"></u-album>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">舌苔照片:</text>
 
- 					</view>
 
- 					 
 
- 				</view>
 
- 				<view>
 
- 					<u-album :urls="tongueImages"></u-album>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">面部照片:</text>
 
- 					</view>
 
- 					 
 
- 				</view>
 
- 				<view>
 
- 					<u-album :urls="faceImages"></u-album>
 
- 				</view>
 
- 			</view>
 
- 			<view class="other-info" v-if="report!=null&&order.status>=3"  >
 
- 				<view class="title">体检信息</view>
 
- 				<view class="item"  v-for="(item) in forms">
 
- 					<view class="left">
 
- 						<text class="label">{{item.title}}:</text>
 
- 						<text class="text">
 
- 							<u-tag  size="mini" plain type="success" style="margin-right: 5rpx;margin-bottom: 5rpx;" v-for="(tag,i) in item.option" :key="i" :text="tag"></u-tag>
 
- 						</text>
 
- 					</view>
 
- 				</view>
 
- 			</view>
 
- 			<view class="other-info" v-if="order!=null">
 
- 				<view class="title">订单信息</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">订单号码:</text>
 
- 						<text class="text">{{order.orderSn}}</text>
 
- 					</view>
 
- 					<view class="item-btn" @click="copyOrderSn">复制</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">下单时间:</text>
 
- 						<text class="text">{{order.createTime}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">订单金额:</text>
 
- 						<text class="text">{{order.money.toFixed(2)}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">优惠金额:</text>
 
- 						<text class="text">{{order.discountMoney.toFixed(2)}}</text>
 
- 					</view>
 
- 				</view>
 
- 				<view class="item">
 
- 					<view class="left">
 
- 						<text class="label">支付金额:</text>
 
- 						<text class="text">{{order.payMoney.toFixed(2)}}</text>
 
- 					</view>
 
- 				</view>
 
- 			</view>
 
- 		</view>
 
- 		<view class="btn-box" v-if="order!=null">
 
- 			<view class="btn" v-if="report!=null&&order.status>=3" @click="navTo('/pages_order/inquiryOrderReport?orderId='+order.orderId)"  >查看报告</view>
 
- 		</view>
 
- 	</view>
 
- </template>
 
-  
 
- <script  >
 
- 	import store from "@/store";
 
- 	import {getCompanyUserInquiryOrderById,cancel} from '@/api/inquiryOrder.js'
 
- 	import {getDictByKey} from '@/api/common.js'
 
- 	import {navigateToDesignatedConversation,setConversation} from "@/pages_im/util/imCommon";
 
- 	import IMSDK, {SessionType} from "openim-uniapp-polyfill";
 
- 	export default {
 
- 		data() {
 
- 			return {
 
- 				report:null,
 
- 				patient:null,
 
- 				hospital:null,
 
- 				department:null,
 
- 				doctor:null,
 
- 				order:null,
 
- 				orderId:null,
 
- 				orderStatusOptions:[],
 
- 				orderTypeOptions:[],
 
- 				inquiryTypeOptions:[],
 
- 				reportImages: [],
 
- 				tongueImages:[],
 
- 				faceImages:[],
 
- 				forms:[],
 
- 			}
 
- 		},
 
- 		 
 
- 		onLoad(options) {
 
- 			this.orderId=options.orderId;
 
- 			this.getDictByKey("sys_inquiry_order_type");
 
- 			this.getDictByKey("sys_inquiry_type");
 
- 			this.getDictByKey("sys_inquiry_status");
 
- 		},
 
- 		onShow() {
 
- 			this.getCompanyUserInquiryOrderById();
 
- 		},
 
- 		methods: {
 
- 			cancel(){
 
- 				var that=this;
 
- 				uni.showModal({
 
- 					title:"提示",
 
- 					content:"确认取消订单吗?",
 
- 					showCancel:true,
 
- 					cancelText:'取消',
 
- 					confirmText:'确定',
 
- 					success:res=>{
 
- 						if(res.confirm){
 
- 							// 用户点击确定
 
- 							var data={orderId:this.orderId}
 
- 							cancel(data).then(
 
- 								res => {
 
- 									if(res.code==200){
 
- 										that.getMyInquiryOrderById()
 
- 										uni.showToast({
 
- 										 	icon:'success',
 
- 										 	title: "操作成功",
 
- 										});
 
- 									}else{
 
- 										uni.showToast({
 
- 											icon:'none',
 
- 											title: res.msg,
 
- 										});
 
- 									}
 
- 								},
 
- 								rej => {}
 
- 							);
 
- 														
 
- 						}else{
 
- 							// 否则点击了取消  
 
- 						}
 
- 					}
 
- 				})
 
- 			},
 
- 			ping(){
 
- 				uni.navigateTo({
 
- 					url: "/pages_order/pingOrder?orderId="+this.orderId+"&doctorId="+this.order.doctorId
 
- 				})
 
- 			},
 
- 			pay(){
 
- 				uni.navigateTo({
 
- 					url: "/pages_order/inquiryPay?orderId="+this.orderId
 
- 				})
 
- 			},
 
- 			toIM(){
 
- 				var that=this;
 
- 				var userId=uni.getStorageSync('userId');
 
- 				var did='D' + this.order.doctorId;
 
- 				var conversationID=`si_D${this.order.doctorId}_U${userId}`;
 
- 				var ex={imType:1,orderId:this.order.orderId,orderType:this.order.orderType,followId:"",type:"startInquiry"}
 
- 				this.$store.commit("timStore/setType","startInquiry");
 
- 				this.$store.commit("timStore/setOrderType",this.order.orderType);
 
- 				this.$store.commit("timStore/setOrderId",this.order.orderId);
 
- 				this.$store.commit("timStore/setFollowId", 0);
 
- 				this.$store.commit("timStore/setImType", 1);
 
- 				this.$store.commit("timStore/setConversationID", conversationID);
 
- 				navigateToDesignatedConversation(did,SessionType.Single,false).then((res) => {
 
- 					// setConversation(conversationID,JSON.stringify(ex)).then(() => {
 
- 						
 
- 					// }).catch(() => {});
 
- 				}).catch(() => uni.$u.toast("操作失败") );
 
- 			},
 
- 			navTo(url){
 
- 				uni.navigateTo({
 
- 					url: url
 
- 				})
 
- 			},
 
- 			copyOrderSn() {
 
- 				uni.setClipboardData({
 
- 					data: this.order.orderSn,
 
- 					success: function () {
 
- 						uni.showToast({
 
- 							title:'复制成功',
 
- 							icon:'none'
 
- 						})
 
- 					}
 
- 				})
 
- 			},
 
- 			getCompanyUserInquiryOrderById(){
 
- 				var that=this;
 
- 				var data={orderId:this.orderId}
 
- 				getCompanyUserInquiryOrderById(data).then(
 
- 					res => {
 
- 						if(res.code==200){
 
- 							this.order=res.data.order;
 
- 							this.report=res.data.report;
 
- 							this.patient=JSON.parse(res.data.order.patientJson);
 
- 							if(this.report!=null&&this.report.formJson!=null){
 
- 							 	this.forms=JSON.parse(this.report.formJson)
 
- 							}
 
- 							if(that.patient.reportImages!=null){
 
- 								that.reportImages=that.patient.reportImages.split(",");
 
- 							}
 
- 							if(that.patient.tongueImages!=null){
 
- 								that.tongueImages=that.patient.tongueImages.split(",");
 
- 							}
 
- 							if(that.patient.faceImages!=null){
 
- 								that.faceImages=that.patient.faceImages.split(",");
 
- 							}
 
- 							
 
- 							this.doctor=res.data.doctor;
 
- 							this.department=res.data.department;
 
- 							this.hospital=res.data.hospital;
 
- 						}
 
- 					},
 
- 					err => {
 
- 					}
 
- 				);
 
- 				
 
- 			},
 
- 			getDictByKey(key){
 
- 				var data={key:key}
 
- 				getDictByKey(data).then(
 
- 					res => {
 
- 						if(res.code==200){
 
- 							if(key=="sys_inquiry_order_type"){
 
- 								this.orderTypeOptions=res.data;
 
- 							}
 
- 							if(key=="sys_inquiry_type"){
 
- 								this.inquiryTypeOptions=res.data;
 
- 							}
 
- 							if(key=="sys_inquiry_status"){
 
- 								this.orderStatusOptions=res.data;
 
- 							}
 
- 						}
 
- 					},
 
- 					err => {
 
- 					}
 
- 				);
 
- 				
 
- 			},
 
- 			navTo(url){
 
- 				uni.navigateTo({
 
- 					url: url
 
- 				})
 
- 			} 
 
- 		}
 
- 	}
 
- </script>
 
- <style lang="scss">
 
- 	page{
 
- 		background: #f6f6f6;
 
- 	}
 
- </style>
 
- <style scoped lang="scss">
 
- 	.content{
 
- 		position: relative;
 
- 		.cont{
 
- 			position: relative;
 
- 			padding: 0rpx 20rpx 120rpx;
 
- 			z-index: 999;
 
- 			width: 100%;
 
- 			display: flex;
 
- 			flex-direction: column;
 
- 		}
 
- 		.doc-box{
 
- 			margin: 20rpx 0rpx 0rpx;
 
- 			padding: 0rpx 30rpx;
 
- 			background-color: #fff;
 
- 			border-radius: 20upx;
 
- 			.title{
 
- 				height: 80upx;
 
- 				line-height: 80upx;
 
- 				font-size: 30upx;
 
- 				color: #000;
 
- 				font-weight: bold;
 
- 				border-bottom: 2upx solid #eeeeee;
 
- 			}
 
- 			.doc-name-box{
 
- 				margin-top: 15rpx;
 
- 				display: flex;
 
- 				align-items: center;
 
- 				justify-content: flex-start;
 
- 				.doc-name{
 
- 					font-size: 38rpx;
 
- 					font-weight: bold;
 
- 				}
 
- 				.doc-star{
 
- 					margin-left: 10rpx;
 
- 				}
 
- 				
 
- 				
 
- 			}
 
- 			.doc-dept-box{
 
- 				display: flex;
 
- 				align-items: center;
 
- 				justify-content: flex-start;
 
- 				margin-top: 15rpx;
 
- 				font-size: 28upx;
 
- 				font-family: PingFang SC;
 
- 				color: #2d2b36;
 
- 				 
 
- 			}
 
- 			.doc-his-box{
 
- 				display: flex;
 
- 				align-items: center;
 
- 				justify-content: flex-start;
 
- 				margin-top: 15rpx;
 
- 				font-size: 28upx;
 
- 				font-family: PingFang SC;
 
- 				color: #9a9a9c;
 
- 				 
 
- 			}
 
- 			.doc-spec-box{
 
- 				display: flex;
 
- 				align-items: center;
 
- 				justify-content: space-between;
 
- 				.left{
 
- 					display: flex;
 
- 					align-items: center;
 
- 					justify-content: flex-start;
 
- 					.title{
 
- 						font-size: 28upx;
 
- 						font-family: PingFang SC;
 
- 						color: #9a9a9c;
 
- 					}
 
- 					.spec{
 
- 						margin-left: 10rpx;
 
- 						font-size: 28upx;
 
- 						font-family: PingFang SC;
 
- 						color: #9a9a9c;
 
- 					}
 
- 				}
 
- 				.right{
 
- 					.btn{
 
- 						font-size: 28upx;
 
- 						font-family: PingFang SC;
 
- 						color: #2583EB;
 
- 					}
 
- 				}
 
- 				
 
- 			}
 
- 		}
 
- 		 
 
- 		.other-info{
 
- 			margin-top: 20upx;
 
- 			background-color: #fff;
 
- 			border-radius: 20upx;
 
- 			padding: 0 30upx;
 
- 			.title{
 
- 				height: 80upx;
 
- 				line-height: 80upx;
 
- 				font-size: 30upx;
 
- 				color: #000;
 
- 				font-weight: bold;
 
- 				border-bottom: 2upx solid #eeeeee;
 
- 			}
 
- 			.item{
 
- 				min-height: 80upx;
 
- 				display: flex;
 
- 				align-items: center;
 
- 				justify-content: space-between;
 
- 				&:last-child{
 
- 					border-bottom: none;
 
- 				}
 
- 				.left{
 
- 					flex: 1;
 
- 					display: flex;
 
- 					align-items: center;
 
- 					.label{
 
- 						min-width: 140rpx;
 
- 						font-size: 28upx;
 
- 						color: #000;
 
- 					}
 
- 					.text{
 
- 						font-size: 28upx;
 
- 						color: #1b1b1b;
 
- 					}
 
- 				}
 
- 				.status{
 
- 					font-size: 28upx;
 
- 					font-family: PingFang SC;
 
- 					font-weight: bold;
 
- 				}
 
- 				.red{
 
- 					color: #db5053;
 
- 				}
 
- 				.green{
 
- 					color: #2583EB;
 
- 				}
 
- 				.gray{
 
- 					color: #9c9c9c;
 
- 				}
 
- 				.item-btn{
 
- 					max-width: 200rpx;
 
- 					padding: 0rpx 15rpx;
 
- 					height: 48upx;
 
- 					border-radius: 24upx;
 
- 					line-height: 48upx;
 
- 					font-size: 24upx;
 
- 					color: #000;
 
- 					border: 1upx solid #d8d8d8;
 
- 					display: flex;
 
- 					align-items: center;
 
- 					justify-content: center;
 
- 				}
 
- 			}
 
- 		}
 
- 		.btn-box{
 
- 		 	height: 100rpx;
 
- 		 	z-index: 9999;
 
- 		 	width: 100%;
 
- 		 	padding: 0rpx 30upx;
 
- 		 	position: fixed;
 
- 		 	bottom: 0;
 
- 		 	left: 0;
 
- 		 	box-sizing: border-box;
 
- 		 	background-color: #ffffff;
 
- 		 	display: flex;
 
- 		 	align-items: center;
 
- 		 	justify-content: flex-end;
 
- 		 	.btn{
 
- 				padding: 15rpx 30rpx;
 
- 				margin-left: 10rpx;
 
- 		 		text-align: center;
 
- 		 		font-size: 28upx;
 
- 		 		font-family: PingFang SC;
 
- 		 		color: #FFFFFF;
 
- 		 		background: #2583EB;
 
- 		 		border-radius: 45upx;
 
- 		 	}
 
- 		 }
 
- 	}
 
- </style>
 
 
  |