Browse Source

1.更换门店,
2.申请退款

guo 3 years ago
parent
commit
c8ab808e57

+ 43 - 10
pages/order/orderDetail.vue

@@ -48,7 +48,7 @@
 							:pdground="pdground" :icon="icon" :iconSize="iconsize" :lv="lv" :onval="onval"
 							:loadMake="loadMake" :usingComponents="true" @result="qrR" />
 					</view>
-					<view style="color: #333333; font-size: 26rpx; font-weight: bold; text-align: center;">36582496825
+					<view style="color: #333333; font-size: 26rpx; font-weight: bold; text-align: center;">{{orderData.ServiceCode}}
 					</view>
 				</view>
 
@@ -379,9 +379,26 @@
 		},
 		methods: {
 			changeStore(){
-					uni.navigateTo({
-						url: '../changeStore/changeStore?id'+this.id
-					})
+				this.haveChangeStore();
+			},
+			haveChangeStore(){
+				uni.showLoading({
+					title: '加载中'
+				});
+				
+				this.$http('worldKeepCar/orderChangeShop/queryIfConChangeShop', {
+					sheetId: this.id,
+					
+				}, 'GET').then(res => {
+					uni.hideLoading();
+					
+					if (res.code == 0) {
+						uni.navigateTo({
+							url: '../changeStore/changeStore?id'+this.id
+						})
+					}
+					
+				})
 			},
 			showMa(){
 				this.isShowMa = !this.isShowMa
@@ -514,12 +531,28 @@
 			},
 			refundMoney(){
 				console.log('退款');
-				uni.navigateTo({
-<<<<<<< HEAD
-					url:'../refundMoney/refundMoney?sheetId='+this.id +'&maxMoney=' + this.orderData.PayMoney
-=======
-					url:'../refundMoney/refundMoney?id='+this.id
->>>>>>> 22e6aaaee76a8b173ef79e423f41fb1bcfbd9808
+				
+				// 是否可以退款
+				this.haveRefundMoney();
+			},
+			haveRefundMoney(){
+				uni.showLoading({
+					title: '加载中'
+				});
+				
+				this.$http('worldKeepCar/orderRefund/queryIfConRefund', {
+					sheetId: this.id,
+					
+				}, 'GET').then(res => {
+					uni.hideLoading();
+					
+					if (res.code == 0) {
+						uni.navigateTo({
+							url:'../refundMoney/refundMoney?sheetId='+this.id +'&maxMoney=' + this.orderData.PayMoney
+						
+						})
+					}
+					
 				})
 			},
 			orderPay() {

File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/order/orderDetail.js.map


File diff suppressed because it is too large
+ 648 - 2
unpackage/dist/dev/mp-weixin/pages/order/orderDetail.js