瀏覽代碼

bug修改

twt 2 周之前
父節點
當前提交
1a424ebd05

+ 10 - 2
pages/shop/confirm.vue

@@ -108,7 +108,7 @@
 		onLoad(opt) {
 			this.shopID=opt.shopID;
 			this.shopName=opt.shopName;
-			this.goodsnum=opt.itemQty;
+			this.goodsnum=Number(opt.itemQty) ;
 			if(opt.shareId){
 				this.shareId=opt.shareId
 			}
@@ -289,16 +289,24 @@
 				})
 			},
 			calculation(type){
+				console.log(type)
+				console.log(this.goodsnum)
 				if(type==1){
 					if(this.goodsnum>1){
 						this.goodsnum--
 						this.jsMoney()
 					}
 				}else{
-					if(this.goodsInfo.oneQty>this.goodsnum){
+					if(this.goodsInfo.oneQty){
+						if(this.goodsInfo.oneQty>this.goodsnum){
+							this.goodsnum++
+							this.jsMoney()
+						}
+					}else{
 						this.goodsnum++
 						this.jsMoney()
 					}
+					
 				}
 			},
 			jsMoney(){

+ 10 - 0
pages/shop/goodsDetail.vue

@@ -449,6 +449,16 @@
 					});
 					return false;
 				}
+				if(this.info.oneQty){
+					if(this.goodsnum>this.info.oneQty){
+						uni.showToast({
+							title: '超过限购数量',
+							icon: 'none',
+							duration: 3000
+						});
+						return false;
+					}
+				}
 				var that=this;
 				uni.setStorage({
 					key: 'goodsDetail',

+ 63 - 19
pages/subPack/refund.vue

@@ -18,21 +18,14 @@
 	 </view>
 
 	 <view class="goodsBox">
-	 	 <view class="goodsline flex" >
-	 		 <view class="goodsLeft">退款原因 <span class="xinghao">*</span></view>
-	 		 <view class="goodRight ckLine" @click="reasonS">
-				 <span v-if="!refundReasonTxt">请至少选择一项</span>
-				 <span style="color: #222222;" v-if="refundReasonTxt">{{refundReasonTxt}}</span>
-				 <image src="../../static/timg/icon_arrow_right.png" mode="" class="jtIcon"></image>
-			 </view>
-	 	 </view>
+	 	
 		 <view class="goodsline flex" v-if="type==1">
 		 		 <view class="goodsLeft">退款份数</view>
 		 		 <view class="goodRight" >
 					 <view class="numJsbox">
 					 	<view class="numJj" @click="calculation(1)">-</view>
 					 	<view class="goodsnum">
-					 	 <input type="number" value="" v-model="goodsnum" class="goodsnumInput"/>
+					 	 <input @blur="goodsnumBlur" type="number" value="" v-model="goodsnum" class="goodsnumInput"/>
 					 	</view>
 					 	<view class="numJj" @click="calculation(2)">+</view>
 					 </view>
@@ -75,10 +68,18 @@
 					
 				 </view>
 		 </view>
+		 <view class="goodsline flex" >
+		 	 		 <view class="goodsLeft">退款原因 <span class="xinghao">*</span></view>
+		 	 		 <view class="goodRight ckLine" @click="reasonS">
+		 				 <span v-if="!refundReasonTxt">请至少选择一项</span>
+		 				 <span style="color: #222222;" v-if="refundReasonTxt">{{refundReasonTxt}}</span>
+		 				 <image src="../../static/timg/icon_arrow_right.png" mode="" class="jtIcon"></image>
+		 			 </view>
+		 </view>
 	 	<view class="tkSm" style="padding-top: 8rpx;">退款说明</view>
 		<view>
 			<textarea class="tktextarea" v-model="content" name="" placeholder="请输入退款说明" id="" cols="30" rows="10"></textarea>
-		    <view class="textareaNum">{{textareaNum}}/500</view>
+		    <view class="textareaNum">{{content.length}}/500</view>
 		</view>
 		<!-- 图片 -->
 		<view class="secondView" v-if="type==2">
@@ -101,7 +102,7 @@
  
 <view  class="gaodu"></view>
  <view class="bottomBox">
-	 <view class="bottomMS">申请退款后不可取消,钱款预期1-3个自然日</view>
+	 <view class="bottomMS">申请退款后不可取消,钱款预期1-3个自然日到账</view>
 	 <view class="bottom">
 	 	 <view class="bleft">
 	 		 <span>退款金额</span>
@@ -208,10 +209,18 @@
 					 sheetID: this.id,
 				}, 'GET').then(res => {
 				     this.sheetQRCodeList=res.data
-					 this.totalPrice= this.sheetQRCodeList[0].itemRealMoney
+					 //this.totalPrice= this.sheetQRCodeList[0].itemRealMoney
+					/* var Price=0
+					 this.sheetQRCodeList.forEach((item,index)=>{					
+					 	Price+=item.itemRealMoney
+					 								
+					 })
+					 this.totalPrice= Price */
 					 this.maxNum=this.sheetQRCodeList.length
+					 this.goodsnum=this.maxNum
 					 this.couponCodeArr=[]
 					 this.couponCodeArr.push( this.sheetQRCodeList[0].id)
+					 this.queryPrice(this.goodsnum)
 				})
 			},
 			sheetRefundReason(){
@@ -246,6 +255,7 @@
 			  if(this.index==1){
 			  	this.goodsType=2
 			  }
+			  this.refundReasonTxt=''
 			},
 			reasonS(){
 				if(this.type==1){
@@ -267,10 +277,42 @@
 			qdTkclose(){
 				this.reasonShow=false;
 			},
+			queryPrice(num){
+				uni.showLoading({
+					title: '加载中'
+				})
+				this.$http('openOrderManagement/querySheetRefundCode', {
+					count:num,sheetID:this.id
+				},'GET').then(res => {
+					uni.hideLoading();
+					if(res.code==0){
+						this.totalPrice=res.data.total
+					}else{
+						uni.showToast({
+							title: res.msg,
+							icon: 'none',
+							duration: 3000
+						});
+				    }
+				})
+			},
+			goodsnumBlur(){
+				if(this.goodsnum>this.maxNum){
+					uni.showToast({
+						title: '超过退款份数',
+						icon: 'none',
+						duration: 3000
+					});
+					this.goodsnum=this.maxNum
+					
+				}
+				this.queryPrice(this.goodsnum)
+			},
 			calculation(type){
 				if(type==1){
 					if(this.goodsnum>1){
 						this.goodsnum--
+						this.queryPrice(this.goodsnum)
 						var Price=0
 						this.couponCodeArr=[]
 						 this.sheetQRCodeList.forEach((item,index)=>{
@@ -279,11 +321,12 @@
 								 this.couponCodeArr.push(item.id)
 							 }
 						 })
-						 this.totalPrice=Price
+						// this.totalPrice=Price
 					}
 				}else{
 					if(this.goodsnum<this.maxNum){
 						this.goodsnum++
+						this.queryPrice(this.goodsnum)
 						var Price=0
 						this.couponCodeArr=[]
 						 this.sheetQRCodeList.forEach((item,index)=>{
@@ -292,7 +335,7 @@
 								 this.couponCodeArr.push(item.id)
 							 }
 						 })
-						 this.totalPrice=Price
+						 //this.totalPrice=Price
 					}
 						
 				}
@@ -349,7 +392,7 @@
 				var that=this;
 				uni.showModal({
 				    title: '申请退款',
-				    content: '退款申请一旦提交。将不能撤销,是否确认继',
+				    content: '退款申请一旦提交。将不能撤销,是否确认继续退款?',
 					confirmText:'确认',
 					cancelText:'取消',
 				    success: function (res) {
@@ -555,12 +598,13 @@
 }
 .reasonContLine{
 	display: flex;justify-content: space-between;
-		padding: 15rpx 0;
+		padding: 20rpx 0;
 }
 .reasonContLineTitle{
 	font-weight: 500;
 	font-size: 28rpx;
 	color: #222222;
+	padding-bottom: 15rpx;
 }
 .reasonContLineTxt{
 	font-weight: 400;
@@ -620,12 +664,12 @@
 	padding-bottom: 18rpx;
 }
 .tkSm{
-	font-size: 26rpx;
+	font-size: 28rpx;
 	color: #222222;
 	padding-top: 18rpx;
 }
 .tktextarea{
-	font-size: 26rpx;
+	font-size: 28rpx;
 	background: #F7F7F7;
 	border-radius: 14rpx;
 	margin-top: 20rpx;
@@ -758,7 +802,7 @@ margin-top: 10rpx;
 	line-height: 38rpx;
 }
 .goodsBox{
-	padding:18rpx 24rpx;font-size: 26rpx;
+	padding:18rpx 24rpx;font-size: 28rpx;
 color: #222222;background: #FFFFFF;margin-top: 20rpx;
 border-radius: 16rpx;
 }

+ 12 - 5
pages/subPack/refundDetail.vue

@@ -66,7 +66,7 @@
 		 <view class="goodsline flex" v-if="data.openSheetRefund.couponCount!=1">
 		 		 <view class="goodsLeft">退款券号</view>
 		 		 <view class="goodRight" style="display: flex;" @click="codeFn">
-		 				<span>共份券号</span>
+		 				<span>共{{data.openSheetRefund.couponCount}}份券号</span>
 		 				<image src="../../static/img2/hjt.png" mode="" class="jtIcon"></image>
 		 		 </view>
 		 </view>
@@ -98,7 +98,7 @@
 		 </view>
 		 <view class="goodsline flex" >
 		 		 <view class="goodsLeft">退款说明</view>
-		 		 <view class="goodRight" >{{data.openSheetRefund.content}}</view>
+		 		 <view class="goodRight" style="width: 400rpx;">{{data.openSheetRefund.content}}</view>
 		 </view>
 		 <view class="goodsline flex" >
 		 		 <view class="goodsLeft">退款凭证</view>
@@ -128,8 +128,8 @@
  			 <image @click="qdTkclose" class="chahao" src="../../static/img2/chahao.png" mode=""></image>
  		 </view>
  		 <view class="codeLineBox">
- 			<view class="codeLine" v-for="(v,i) in 3">
-				<span style="padding-right: 10rpx;">102899992200992</span>
+ 			<view class="codeLine" v-for="(v,i) in data.openSheetRefund.couponCode.split(',')">
+				<span style="padding-right: 10rpx;">{{v}}</span>
 				<image src="../../static/img2/copy.png" mode="" class="copyIcon"></image>
 					
 			</view>
@@ -207,7 +207,14 @@
 			}
 			
 			
-		}
+		},
+		onPullDownRefresh() {
+		
+			this.getData()
+			setTimeout(function() {
+				uni.stopPullDownRefresh();
+			}, 1000);
+		},
 	}
 </script>
 

+ 84 - 34
pages/user/myOrder/activityOrderDetail.vue

@@ -145,13 +145,13 @@
 						</view>
 					</view>
 				</view> -->
-				<view class="newCodeBox" v-if="quanMaList.length>0">
+				<view class="newCodeBox" v-if="sheetQRCodeList1.length>0">
 					<view class="newQrcode">
 						<swiper class="swiper" style="height: 400rpx;" circular :current='swiperIndex' :autoplay="false" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#EC0F0A">
-							<swiper-item v-for="(item,index) in quanMaList" style="height: 400rpx;">
+							<swiper-item v-for="(item,index) in sheetQRCodeList1" style="height: 400rpx;">
 								<view class="swiper-item">
 									
-										<tki-qrcode cid="qrcode1" ref="qrcode" :val="item" :size="300" :unit="unit"
+										<tki-qrcode cid="qrcode1" ref="qrcode" :val="item.qrCode" :size="300" :unit="unit"
 											:pdground="pdground" :icon="icon" :iconSize="iconsize" :lv="lv" :onval="onval"
 											:loadMake="loadMake" :usingComponents="true" @result="qrR" />
 									
@@ -162,22 +162,15 @@
 						</swiper>
 					</view>
 					<view class="newQrcodeTs"  @click="qmshowFn">
-						待使用<span>{{quanMaList.length?quanMaList.length:0}}</span>份券码
-						<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
+						待使用<span>{{orderData.unWriteoff}}</span>份券码
+						<image src="../../../static/img2/jt1.png" mode="" class="jtImg1 dsyjt"></image>
 					</view>
 				</view>
 				
 			</view>
 
 		</view>
-
-		
-		<!-- 实付款 -->
-		<view class="money">
-			<view class="informationNum">实付款:</view>
-			<view class="informationNum" style="color: #EC0F0A;font-weight: bold;">¥{{orderData.data.payType==1?orderData.data.realMoney:0}}</view>
-		</view>
-		<view style="padding-left: 24rpx;padding-right: 24rpx;" >
+		<view style="padding-left: 24rpx;padding-right: 24rpx;" v-if="orderData.writeoff!=0||orderData.refund!=0">
 			<view class="ysyBox">
 				<view class="ysyLeft" style="font-weight: 500;color: #222222;">已使用({{orderData.writeoff}})·退款({{orderData.refund}})</view>
 				<view class="ysyRgiht" @click="sheetQRCode">
@@ -187,6 +180,14 @@
 			</view>
 		</view>
 
+		
+		<!-- 实付款 -->
+		<view class="money">
+			<view class="informationNum">实付款:</view>
+			<view class="informationNum" style="color: #EC0F0A;font-weight: bold;">¥{{orderData.data.payType==1?orderData.data.realMoney:0}}</view>
+		</view>
+		
+
 		<!-- 订单信息 -->
 		<view class="information">
 			<!-- <view class="detailedTitle">订单信息</view> -->
@@ -212,7 +213,7 @@
 				<view class="informationNum">{{orderData.data.createTime}}</view>
 			</view>
 			
-			<view class="informationLine">
+			<view class="informationLine NoBorder">
 				<view class="informationTxt">订单单号:</view>
 				<view class="informationNum">{{orderData.data.code}}<span class="codeCopy"
 						@click="copy(orderData.data.code)">复制</span></view>
@@ -234,7 +235,7 @@
 				<view class="informationNum" v-if="orderData.data.payType==1">在线支付</view>
 				<view class="informationNum" v-if="orderData.data.payType==2">-</view>
 			</view>
-			<view class="informationLine">
+			<view class="informationLine NoBorder">
 				<view class="informationTxt">支付时间:</view>
 				<view class="informationNum">{{orderData.data.payTime?orderData.data.payTime:'-'}}</view>
 			</view>
@@ -255,7 +256,7 @@
 				<view class="informationTxt">核销时间:</view>
 				<view class="informationNum">{{orderData.data.writeoffTime?orderData.data.writeoffTime:'-'}} {{orderData.data.writeoffName}}</view>
 			</view>
-			<view class="informationLine">
+			<view class="informationLine NoBorder">
 				<view class="informationTxt">核销门店:</view>
 				<view class="informationNum">{{orderData.data.writeoffShopName?orderData.data.writeoffShopName:'-'}}</view>
 			</view>
@@ -270,7 +271,11 @@
 			<view class="defer"  @click="pay">立即支付</view>
 		</view>
 		<view class="bottom" v-if="orderData.data.sheetState == 2||orderData.data.sheetState == 5">
-		   <view class="cancel" @click="cancelOrder" v-if="orderData.data.payState==2">退款</view>
+			<view v-if="orderData.data.payState==2">
+				
+				 <view class="cancel" v-if="orderData.unWriteoff>0" @click="cancelOrder" >退款</view>
+			</view>
+		  
 		   <view class="cancel" @click="cancelBespeak" v-else>取消订单</view>
 		</view>
 
@@ -398,16 +403,16 @@
 	<view class="tkContBox">
 		<view class="tkTop">
 			<view style="width: 22rpx;"></view>
-			<view class="tkTitle">券码信息({{quanMaList.length?quanMaList.length:0}})</view>
+			<view class="tkTitle">券码信息({{orderData.unWriteoff}})</view>
 			<image @click="qmHide" src="../../../static/img2/chahao.png" mode="" class="chahaoIMg"></image>
 		</view>
 		<view class="tkLineBox">
-			<view class="tkLine" v-for="(item,index) in quanMaList">
+			<view class="tkLine" v-for="(item,index) in sheetQRCodeList1">
 				<view class="tkLineLeft">
 					<span style="color: #9A9A9A;">券码</span>
-					<span style="color: #222222;padding-left: 66rpx;">{{item}}</span>
+					<span style="color: #222222;padding-left: 66rpx;">{{item.qrCode}}</span>
 				</view>
-				<view class="tkLineRight" style="color: #576B95;" @click="copy(item)">复制</view>
+				<view class="tkLineRight" style="color: #576B95;" @click="copy(item.qrCode)">复制</view>
 			</view>
 		</view>
 	</view>
@@ -437,9 +442,15 @@
 						<span>退款详情</span>
 						<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
 					</view>
-					<view class="tkSeeD" @click="goSh(item)" v-if="item.writeoffState==3">
-						<span>申请售后</span>
-						<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
+					<view v-if="item.writeoffState==3">
+						<view class="tkSeeD" @click="refundDetail(item)" v-if="item.refundState==4||item.refundState==2||item.refundState==1||item.refundState==3">
+							<span>退款详情</span>
+							<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
+						</view>
+						<view class="tkSeeD" @click="goSh(item)" v-if="item.refundState==0">
+							<span>申请售后</span>
+							<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
+						</view>
 					</view>
 				</view>
 				<view class="tkRow">
@@ -456,8 +467,8 @@
 					<view style="color: #222222;">{{item.writeoffTime?item.writeoffTime:''}}</view>
 				</view>
 				<view class="tkRow">
-					<view class="tlRowLeft">券      号</view>
-					<view style="color: #222222;">{{item.qrCode}}</view>
+					<view class="tlRowLeft">券&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</view>
+					<view style="color: #222222;" class="{'xiahuaxian':item.writeoffState==3}">{{item.qrCode}}</view>
 				</view>
 			</view>
 			<nodata v-if="sheetQRCodeList.length==0"></nodata>
@@ -548,6 +559,8 @@
 				syShow:false,
 				sheetQRCodeList:'',
 				xsShow:false,
+				sheetQRCodeList1:'',
+				shItem:'',
 			}
 		},
 		//0拼团取消1拼团失败 2拼团中3拼团成功4自动成团 groupState
@@ -605,7 +618,17 @@
 				})
 			},
 			qmshowFn(){
-				this.qmShow=true
+				uni.showLoading({
+					title: '加载中'
+				})
+				this.$http('openOrderManagement/sheetQRCodeList', {
+					 type:1,		
+					 sheetID: this.id,
+				}, 'GET').then(res => {
+				   uni.hideLoading();
+				   this.qmShow=true;
+				   this.sheetQRCodeList1=res.data
+				})
 			},
 			qmHide(){
 				this.qmShow=false
@@ -619,12 +642,18 @@
 				//this.getTuiKuanData()
 			},
 			cancelOrder(){
-				//this.isShowTui=true;
-				uni.navigateTo({
-					url:'../../subPack/refund?type=1&id='+this.id
-				})
+				if(this.orderData.data.sheetState == 5){
+					this.isShowTui=true;
+				}else{
+					uni.navigateTo({
+						url:'../../subPack/refund?type=1&id='+this.id
+					})
+				}
+				
+				
 			},
 			goSh(item){
+				this.shItem=item
 				var that=this
 				uni.setStorage({
 					key: 'shData',
@@ -922,7 +951,7 @@
 
 			call() {
 				uni.makePhoneCall({
-					phoneNumber: this.orderData.shopInfo.mobilePhone
+					phoneNumber:this.shItem.mobilePhone// this.orderData.shopInfo.mobilePhone
 				});
 			},
 
@@ -968,6 +997,13 @@
 					console.log('可用券码--',this.quanMaList);
 				
 				})
+				this.$http('openOrderManagement/sheetQRCodeList', {
+					 type:1,		
+					 sheetID: this.id,
+				}, 'GET').then(res => {
+				 
+				   this.sheetQRCodeList1=res.data
+				})
 			},
 			getData2() {
 				uni.showLoading({
@@ -1248,14 +1284,14 @@ color: #764D49;font-size: 26rpx;padding-top:20rpx;
 			font-weight: 500;
 			font-size: 30rpx;
 			color: #EC0F0A;
-			line-height: 42rpx;
+			line-height: 100rpx;
 		}
 	
 		.orderState {
 			display: flex;
 			justify-content: center;
 			align-items: center;
-			padding-top: 40rpx;
+		
 		}
 
 	/* .SheetState {
@@ -1990,6 +2026,8 @@ color: #764D49;font-size: 26rpx;padding-top:20rpx;
 		background: #FFFFFF;
 		border-radius: 16rpx;
 		margin: 0 33rpx;
+		height: 380rpx;
+		overflow: scroll;
 	}
 	.tkLine{
 		display: flex;justify-content: space-between;
@@ -1998,6 +2036,9 @@ color: #764D49;font-size: 26rpx;padding-top:20rpx;
 		border-bottom: 1px solid #EEEEEE;
 		
 	}
+	.tkLine:last-child {
+	  border:none;
+	}
 	.tklineBox2{
 		padding:0 24rpx;
 		height: 55vh;
@@ -2080,4 +2121,13 @@ color: #764D49;font-size: 26rpx;padding-top:20rpx;
 	.zkRefund .jtImg1{
 		margin-left: 6rpx;margin-top: 6rpx;
 	}
+	.dsyjt{
+		margin-left: 10rpx;margin-top: 2rpx;
+	}
+	.NoBorder{
+		border: none;
+	}
+	.xiahuaxian{
+		text-decoration: line-through;
+	}
 </style>

+ 78 - 33
pages/user/myOrder/mallOrderDetail.vue

@@ -59,7 +59,7 @@
 		<!-- 订单内容 -->
 		<view class="information">
 			<view class="detailedTitle">订单内容</view>
-			<view v-if="orderData.openSheetDetail.length>0" v-for="(item,index) in orderData.openSheetDetail" :key="index">
+			<view style="padding-bottom: 15rpx;" v-if="orderData.openSheetDetail.length>0" v-for="(item,index) in orderData.openSheetDetail" :key="index">
 				
 					<view class="goodsName">{{item.itemName}}</view>
 					<view class="informationLine2">
@@ -105,13 +105,13 @@
 					
 					
 				</view> -->
-				<view class="newCodeBox" v-if="quanMaList.length>0">
+				<view class="newCodeBox" v-if="sheetQRCodeList1.length>0">
 					<view class="newQrcode">
 						<swiper class="swiper" style="height: 400rpx;" circular :current='swiperIndex' :autoplay="false" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#EC0F0A">
-							<swiper-item v-for="(item,index) in quanMaList" style="height: 400rpx;">
+							<swiper-item v-for="(item,index) in sheetQRCodeList1" style="height: 400rpx;">
 								<view class="swiper-item">
 									
-										<tki-qrcode cid="qrcode1" ref="qrcode" :val="item" :size="300" :unit="unit"
+										<tki-qrcode cid="qrcode1" ref="qrcode" :val="item.qrCode" :size="300" :unit="unit"
 											:pdground="pdground" :icon="icon" :iconSize="iconsize" :lv="lv" :onval="onval"
 											:loadMake="loadMake" :usingComponents="true" @result="qrR" />
 									
@@ -122,13 +122,22 @@
 						</swiper>
 					</view>
 					<view class="newQrcodeTs"  @click="qmshowFn">
-						待使用<span>{{quanMaList.length?quanMaList.length:0}}</span>份券码
-						<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
+						待使用<span>{{orderData.unWriteoff}}</span>份券码
+						<image src="../../../static/img2/jt1.png" mode="" class="jtImg1 dsyjt"></image>
 					</view>
 				</view>
 			</view>
 
 		</view>
+		<view style="padding-left: 24rpx;padding-right: 24rpx;" v-if="orderData.writeoff!=0||orderData.refund!=0">
+			<view class="ysyBox">
+				<view class="ysyLeft" style="font-weight: 500;color: #222222;">已使用({{orderData.writeoff}})·退款({{orderData.refund}})</view>
+				<view class="ysyRgiht" @click="sheetQRCode">
+					<span style="color: #9A9A9A;padding-right: 16rpx;">查看详情</span> 
+					<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
+				</view>
+			</view>
+		</view>
 
 		<!-- 套餐内容 -->
 		<view class="information" v-if="SheetType==3">
@@ -170,15 +179,7 @@
 			</view>
 
 		</view>
-		<view style="padding-left: 24rpx;padding-right: 24rpx;" >
-			<view class="ysyBox">
-				<view class="ysyLeft" style="font-weight: 500;color: #222222;">已使用({{orderData.writeoff}})·退款({{orderData.refund}})</view>
-				<view class="ysyRgiht" @click="sheetQRCode">
-					<span style="color: #9A9A9A;padding-right: 16rpx;">查看详情</span> 
-					<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
-				</view>
-			</view>
-		</view>
+		
 		
 
 		<!-- 实付款 -->
@@ -199,7 +200,7 @@
 		<!-- 	<view class="detailedTitle">订单信息</view> -->
 			<view class="informationLine">
 				<view class="informationTxt">订单单号:</view>
-				<view class="informationNum">
+				<view class="informationNum" style="    display: flex;">
 				<image src="../../../static/img2/copy.png" mode="" @click="copy(orderData.data.code)" class="copyIcon"></image>
 				{{orderData.data.code}}
 			<!-- 	<span class="codeCopy" @click="copy(orderData.data.code)">复制</span> -->
@@ -214,7 +215,7 @@
 				<view class="informationNum">{{orderData.data.createTime}}</view>
 			</view>
 
-			<view class="informationLine">
+			<view class="informationLine NoBorder">
 				<view class="informationTxt">订单备注:</view>
 				<view class="informationNum" style="width: 510rpx;">{{orderData.data.comment?orderData.data.comment:''}}</view>
 			</view>
@@ -234,7 +235,7 @@
 				<view class="informationNum" v-if="orderData.data.payType==1">在线支付</view>
 				<view class="informationNum" v-if="orderData.data.payType==2">线下支付</view>
 			</view>
-			<view class="informationLine">
+			<view class="informationLine NoBorder">
 				<view class="informationTxt">支付时间:</view>
 				<view class="informationNum">{{orderData.data.payTime?orderData.data.payTime:'-'}}</view>
 			</view>
@@ -255,7 +256,7 @@
 				<view class="informationTxt">核销时间:</view>
 				<view class="informationNum">{{orderData.data.writeoffTime?orderData.data.writeoffTime:'-'}} {{orderData.data.writeoffName}}</view>
 			</view>
-			<view class="informationLine">
+			<view class="informationLine NoBorder">
 				<view class="informationTxt">核销门店:</view>
 				<view class="informationNum">{{orderData.data.writeoffShopName?orderData.data.writeoffShopName:'-'}}</view>
 			</view>
@@ -374,16 +375,16 @@
 	<view class="tkContBox">
 		<view class="tkTop">
 			<view style="width: 22rpx;"></view>
-			<view class="tkTitle">券码信息({{quanMaList.length?quanMaList.length:0}})</view>
+			<view class="tkTitle">券码信息({{orderData.unWriteoff}})</view>
 			<image @click="qmHide" src="../../../static/img2/chahao.png" mode="" class="chahaoIMg"></image>
 		</view>
 		<view class="tkLineBox">
-			<view class="tkLine" v-for="(item,index) in quanMaList">
+			<view class="tkLine" v-for="(item,index) in sheetQRCodeList1">
 				<view class="tkLineLeft">
 					<span style="color: #9A9A9A;">券码</span>
-					<span style="color: #222222;padding-left: 66rpx;">{{item}}</span>
+					<span style="color: #222222;padding-left: 66rpx;">{{item.qrCode}}</span>
 				</view>
-				<view class="tkLineRight" style="color: #576B95;" @click="copy(item)">复制</view>
+				<view class="tkLineRight" style="color: #576B95;" @click="copy(item.qrCode)">复制</view>
 			</view>
 		</view>
 	</view>
@@ -413,10 +414,18 @@
 						<span>退款详情</span>
 						<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
 					</view>
-					<view class="tkSeeD" @click="goSh(item)" v-if="item.writeoffState==3">
-						<span>申请售后</span>
-						<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
+					<view v-if="item.writeoffState==3">
+						<view class="tkSeeD" @click="refundDetail(item)" v-if="item.refundState==4||item.refundState==2||item.refundState==1||item.refundState==3">
+							<span>退款详情</span>
+							<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
+						</view>
+						<view class="tkSeeD" @click="goSh(item)" v-if="item.refundState==0">
+							<span>申请售后</span>
+							<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
+						</view>
 					</view>
+					
+					
 				</view>
 				<view class="tkRow">
 					<view class="tlRowLeft" v-if="item.writeoffState==3">使用份数</view>
@@ -432,8 +441,8 @@
 					<view style="color: #222222;">{{item.writeoffTime?item.writeoffTime:''}}</view>
 				</view>
 				<view class="tkRow">
-					<view class="tlRowLeft">券      号</view>
-					<view style="color: #222222;">{{item.qrCode}}</view>
+					<view class="tlRowLeft">券&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</view>
+					<view style="color: #222222;" :class="{'xiahuaxian':item.writeoffState==3}">{{item.qrCode}}</view>
 				</view>
 			</view>
 			<nodata v-if="sheetQRCodeList.length==0"></nodata>
@@ -516,7 +525,9 @@
 				qmShow:false,
 				syShow:false,
 				sheetQRCodeList:'',
+				sheetQRCodeList1:'',
 				xsShow:false,
+				shItem:'',
 			}
 		},
 		onLoad(opt) {
@@ -575,7 +586,18 @@
 				})
 			},
 			qmshowFn(){
-				this.qmShow=true
+				uni.showLoading({
+					title: '加载中'
+				})
+				this.$http('openOrderManagement/sheetQRCodeList', {
+					 type:1,		
+					 sheetID: this.id,
+				}, 'GET').then(res => {
+				   uni.hideLoading();
+				   this.qmShow=true;
+				   this.sheetQRCodeList1=res.data
+				})
+				//this.qmShow=true
 			},
 			qmHide(){
 				this.qmShow=false
@@ -595,6 +617,7 @@
 				})
 			},
 			goSh(item){
+				this.shItem=item
 				var that=this
 				uni.setStorage({
 					key: 'shData',
@@ -613,7 +636,7 @@
 			},
 			refundDetail(item){
 				uni.navigateTo({
-					url:'../../subPack/refundDetail?id='+item.id
+					url:'../../subPack/refundDetail?id='+item.refundSheetID
 				})
 			},
 			xsHide(){
@@ -877,8 +900,9 @@
 			},
 
 			call() {
+				//this.shItem
 				uni.makePhoneCall({
-					phoneNumber: this.orderData.shopInfo.mobilePhone
+					phoneNumber:this.shItem.mobilePhone// this.orderData.shopInfo.mobilePhone
 				});
 			},
 
@@ -922,6 +946,13 @@
 						 }
 					}); 
 				})
+				this.$http('openOrderManagement/sheetQRCodeList', {
+					 type:1,		
+					 sheetID: this.id,
+				}, 'GET').then(res => {
+				 
+				   this.sheetQRCodeList1=res.data
+				})
 			},
 			
 			goback() {
@@ -1005,14 +1036,14 @@
 		font-weight: 500;
 		font-size: 30rpx;
 		color: #EC0F0A;
-		line-height: 42rpx;
+		line-height: 100rpx;
 	}
 
 	.orderState {
 		display: flex;
 		justify-content: center;
 		align-items: center;
-		padding-top: 40rpx;
+		
 	}
 
 	/* .SheetState {
@@ -1702,6 +1733,8 @@
 	background: #FFFFFF;
 	border-radius: 16rpx;
 	margin: 0 33rpx;
+	height: 380rpx;
+	overflow: scroll;
 }
 .tkLine{
 	display: flex;justify-content: space-between;
@@ -1710,6 +1743,9 @@
 	border-bottom: 1px solid #EEEEEE;
 	
 }
+.tkLine:last-child {
+  border:none;
+}
 .tklineBox2{
 	padding:0 24rpx;
 	height: 55vh;
@@ -1792,4 +1828,13 @@
 .zkRefund .jtImg1{
 	margin-left: 6rpx;margin-top: 6rpx;
 }
+.dsyjt{
+	margin-left: 10rpx;margin-top: 2rpx;
+}
+.NoBorder{
+	border: none;
+}
+.xiahuaxian{
+	text-decoration: line-through;
+}
 </style>

+ 6 - 5
pages/user/myOrder/myOrder.vue

@@ -58,10 +58,10 @@
 			</view>
 			
 			<view v-if="tabIndex==6" class="afterSales">
-				<view class="afterSalesLine" v-for="(item,index) in RefundList">
+				<view class="afterSalesLine" v-for="(item,index) in RefundList"  @click="goReDetail(item)">
 					<view class="afterSalesLineTop">
 						<view class="" style="display: flex;">
-							<view class="afterSalesShop">{{item.WriteoffShopName?item.WriteoffShopName:''}}</view>
+							<view class="afterSalesShop">{{item.WriteoffShopName?item.WriteoffShopName:'暂无门店'}}</view>
 							<image class="afterSalesLineJt" src="/static/img2/jt1.png" mode=""></image>
 						</view>
 						<view class="afterSalesLineState">退款</view>
@@ -70,7 +70,7 @@
 						<image src="../../../static/timg/noimg.png" class="afterSalesLineImg" mode=""></image>
 					    <view class="shCont">
 							<view class="shCOntName">{{item.ItemName}}</view>
-							<view class="shContMS">共 {{item.CouponCount}}件商品</view>
+							<view class="shContMS">共 {{item.CouponCount}} 件商品</view>
 							<view class="shContMS">退款:¥{{item.Money}}</view>
 						</view>
 					</view>
@@ -84,7 +84,7 @@
 						<span style="padding-left: 24rpx;" >请查看详情</span>
 					</view>
 					<view class="tkBottom">
-						<view class="tkBottomBtn" @click="goReDetail(item)">查看详情</view>
+						<view class="tkBottomBtn">查看详情</view>
 					</view>
 					
 				</view>
@@ -692,6 +692,7 @@
 .afterSalesLineJt{
 	width: 10rpx;height: 20rpx;
 	margin-top: 12rpx;
+	margin-left: 10rpx;
 }
 .afterSales{
 	padding: 0 24rpx;
@@ -745,7 +746,7 @@
 	color: #222222;
 	width: 137rpx;
 	height: 56rpx;
-	line-height: 56rpx;
+	line-height: 58rpx;
 	font-size: 24rpx;
 	color: #222222;
 	border-radius: 8rpx;

+ 74 - 34
pages/user/myOrder/paintOrderDetail.vue

@@ -60,7 +60,7 @@
 		<view class="information">
 			<view class="detailedTitle detailedTitle2">订单内容</view>
 			
-			<view v-if="orderData.openSheetDetail.length>0" v-for="(item,index) in orderData.openSheetDetail" :key="index">
+			<view style="padding-bottom: 15rpx;" v-if="orderData.openSheetDetail.length>0" v-for="(item,index) in orderData.openSheetDetail" :key="index">
 				<view class="informationLine2">
 					<view class="goodsName">{{item.itemName}}</view>
 					<view class="salePrice"><span class="informationNum">¥</span>{{item.salePrice}}</view>
@@ -102,13 +102,13 @@
 					</view> 
 					
 				</view> -->
-				<view class="newCodeBox" v-if="quanMaList.length>0" >
+				<view class="newCodeBox" v-if="sheetQRCodeList1.length>0" >
 					<view class="newQrcode" >
 						<swiper class="swiper" style="height: 400rpx;" circular :current='swiperIndex' :autoplay="false" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#EC0F0A">
-							<swiper-item v-for="(item,index) in quanMaList" style="height: 400rpx;">
+							<swiper-item v-for="(item,index) in sheetQRCodeList1" style="height: 400rpx;">
 								<view class="swiper-item">
 									
-										<tki-qrcode cid="qrcode1" ref="qrcode" :val="item" :size="300" :unit="unit"
+										<tki-qrcode cid="qrcode1" ref="qrcode" :val="item.qrCode" :size="300" :unit="unit"
 											:pdground="pdground" :icon="icon" :iconSize="iconsize" :lv="lv" :onval="onval"
 											:loadMake="loadMake" :usingComponents="true" @result="qrR" />
 									
@@ -119,13 +119,22 @@
 						</swiper>
 					</view>
 					<view class="newQrcodeTs"  @click="qmshowFn">
-						待使用<span>{{quanMaList.length?quanMaList.length:0}}</span>份券码
-						<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
+						待使用<span>{{orderData.unWriteoff}}</span>份券码
+						<image src="../../../static/img2/jt1.png" mode="" class="jtImg1 dsyjt"></image>
 					</view>
 				</view>
 			</view>
 
 		</view>
+		<view style="padding-left: 24rpx;padding-right: 24rpx;" v-if="orderData.writeoff!=0||orderData.refund!=0">
+			<view class="ysyBox">
+				<view class="ysyLeft" style="font-weight: 500;color: #222222;">已使用({{orderData.writeoff}})·退款({{orderData.refund}})</view>
+				<view class="ysyRgiht" @click="sheetQRCode">
+					<span style="color: #9A9A9A;padding-right: 16rpx;">查看详情</span> 
+					<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
+				</view>
+			</view>
+		</view>
 
 		
 		<!-- 实付款 -->
@@ -133,15 +142,7 @@
 			<view class="informationNum">实付款:</view>
 			<view class="informationNum" style="color: #EC0F0A;font-weight: bold;">¥{{orderData.data.realMoney}}</view>
 		</view>
-        <view style="padding-left: 24rpx;padding-right: 24rpx;" >
-        	<view class="ysyBox">
-        		<view class="ysyLeft" style="font-weight: 500;color: #222222;">已使用({{orderData.writeoff}})·退款({{orderData.refund}})</view>
-        		<view class="ysyRgiht" @click="sheetQRCode">
-        			<span style="color: #9A9A9A;padding-right: 16rpx;">查看详情</span> 
-        			<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
-        		</view>
-        	</view>
-        </view>
+      
 		<!-- 订单信息 -->
 		<view class="information">
 			<!-- <view class="detailedTitle">订单信息</view> -->
@@ -181,7 +182,7 @@
 				<view class="informationNum">{{orderData.data.createTime}}</view>
 			</view>
 
-			<view class="informationLine">
+			<view class="informationLine NoBorder">
 				<view class="informationTxt">订单类型:</view>
 				<view class="informationNum" style="width: 480rpx;">钣喷</view>
 			</view>
@@ -201,7 +202,7 @@
 				<view class="informationNum" v-if="orderData.data.payType==1">在线支付</view>
 				<view class="informationNum" v-if="orderData.data.payType==2">线下支付</view>
 			</view>
-			<view class="informationLine">
+			<view class="informationLine NoBorder">
 				<view class="informationTxt">支付时间:</view>
 				<view class="informationNum">{{orderData.data.payTime?orderData.data.payTime:'-'}}</view>
 			</view>
@@ -222,7 +223,7 @@
 				<view class="informationTxt">核销时间:</view>
 				<view class="informationNum">{{orderData.data.writeoffTime?orderData.data.writeoffTime:'-'}} {{orderData.data.writeoffName}}</view>
 			</view>
-			<view class="informationLine">
+			<view class="informationLine NoBorder">
 				<view class="informationTxt">核销门店:</view>
 				<view class="informationNum">{{orderData.data.writeoffShopName?orderData.data.writeoffShopName:'-'}}</view>
 			</view>
@@ -342,16 +343,16 @@
 	<view class="tkContBox">
 		<view class="tkTop">
 			<view style="width: 22rpx;"></view>
-			<view class="tkTitle">券码信息({{quanMaList.length?quanMaList.length:0}})</view>
+			<view class="tkTitle">券码信息({{orderData.unWriteoff}})</view>
 			<image @click="qmHide" src="../../../static/img2/chahao.png" mode="" class="chahaoIMg"></image>
 		</view>
 		<view class="tkLineBox">
-			<view class="tkLine" v-for="(item,index) in quanMaList">
+			<view class="tkLine" v-for="(item,index) in sheetQRCodeList1">
 				<view class="tkLineLeft">
 					<span style="color: #9A9A9A;">券码</span>
-					<span style="color: #222222;padding-left: 66rpx;">{{item}}</span>
+					<span style="color: #222222;padding-left: 66rpx;">{{item.qrCode}}</span>
 				</view>
-				<view class="tkLineRight" style="color: #576B95;" @click="copy(item)">复制</view>
+				<view class="tkLineRight" style="color: #576B95;" @click="copy(item.qrCode)">复制</view>
 			</view>
 		</view>
 	</view>
@@ -381,9 +382,15 @@
 						<span>退款详情</span>
 						<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
 					</view>
-					<view class="tkSeeD" @click="goSh(item)" v-if="item.writeoffState==3">
-						<span>申请售后</span>
-						<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
+					<view v-if="item.writeoffState==3">
+						<view class="tkSeeD" @click="refundDetail(item)" v-if="item.refundState==4||item.refundState==2||item.refundState==1||item.refundState==3">
+							<span>退款详情</span>
+							<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
+						</view>
+						<view class="tkSeeD" @click="goSh(item)" v-if="item.refundState==0">
+							<span>申请售后</span>
+							<image src="../../../static/img2/jt1.png" mode="" class="jtImg1"></image>
+						</view>
 					</view>
 				</view>
 				<view class="tkRow">
@@ -400,8 +407,8 @@
 					<view style="color: #222222;">{{item.writeoffTime?item.writeoffTime:''}}</view>
 				</view>
 				<view class="tkRow">
-					<view class="tlRowLeft">券      号</view>
-					<view style="color: #222222;">{{item.qrCode}}</view>
+					<view class="tlRowLeft">券&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</view>
+					<view style="color: #222222;" class="{'xiahuaxian':item.writeoffState==3}">{{item.qrCode}}</view>
 				</view>
 			</view>
 			<nodata v-if="sheetQRCodeList.length==0"></nodata>
@@ -481,13 +488,14 @@
 				tuicauseList: [],
 				tuikuanContent: '',
 				swiperIndex:0,
-				sx:'',
 				sxNum:'',
 				sx:'',
 				qmShow:false,
 				syShow:false,
 				sheetQRCodeList:[],
 				xsShow:false,
+				sheetQRCodeList1:'',
+				shItem:'',
 			}
 		},
 		onLoad(opt) {
@@ -544,7 +552,17 @@
 				})
 			},
 			qmshowFn(){
-				this.qmShow=true
+				uni.showLoading({
+					title: '加载中'
+				})
+				this.$http('openOrderManagement/sheetQRCodeList', {
+					 type:1,		
+					 sheetID: this.id,
+				}, 'GET').then(res => {
+				   uni.hideLoading();
+				   this.qmShow=true;
+				   this.sheetQRCodeList1=res.data
+				})
 			},
 			qmHide(){
 				this.qmShow=false
@@ -564,6 +582,7 @@
 				})
 			},
 			goSh(item){
+				this.shItem=item
 				var that=this
 				uni.setStorage({
 					key: 'shData',
@@ -593,9 +612,9 @@
 				this.getData();
 				//this.getTuiKuanData()
 			},
-			cancelOrder(){
+			/* cancelOrder(){
 				this.isShowTui=true;
-			},
+			}, */
 			goTui(){
 				var that=this;
 				uni.showLoading({
@@ -847,7 +866,7 @@
 
 			call() {
 				uni.makePhoneCall({
-					phoneNumber: this.orderData.shopInfo.mobilePhone
+					phoneNumber:this.shItem.mobilePhone// this.orderData.shopInfo.mobilePhone
 				});
 			},
 
@@ -884,6 +903,13 @@
 					console.log('可用券码--',this.quanMaList);
 					
 				})
+				this.$http('openOrderManagement/sheetQRCodeList', {
+					 type:1,		
+					 sheetID: this.id,
+				}, 'GET').then(res => {
+				 
+				   this.sheetQRCodeList1=res.data
+				})
 			},
 			
 			goback() {
@@ -966,14 +992,14 @@
 			font-weight: 500;
 			font-size: 30rpx;
 			color: #EC0F0A;
-			line-height: 42rpx;
+			line-height: 100rpx;
 		}
 	
 		.orderState {
 			display: flex;
 			justify-content: center;
 			align-items: center;
-			padding-top: 40rpx;
+			
 		}
 
 	/* .SheetState {
@@ -1669,6 +1695,8 @@
 	background: #FFFFFF;
 	border-radius: 16rpx;
 	margin: 0 33rpx;
+	height: 380rpx;
+	overflow: scroll;
 }
 .tkLine{
 	display: flex;justify-content: space-between;
@@ -1677,6 +1705,9 @@
 	border-bottom: 1px solid #EEEEEE;
 	
 }
+.tkLine:last-child {
+  border:none;
+}
 .tklineBox2{
 	padding:0 24rpx;
 	height: 55vh;
@@ -1762,4 +1793,13 @@
 .detailedTitle2{
 	padding: 23rpx 0;
 }
+.dsyjt{
+	margin-left: 10rpx;margin-top: 2rpx;
+}
+.NoBorder{
+	border: none;
+}
+.xiahuaxian{
+	text-decoration: line-through;
+}
 </style>