shish 3 år sedan
förälder
incheckning
c98b7fed65
1 ändrade filer med 25 tillägg och 3 borttagningar
  1. 25 3
      ghsApp/src/pagesOrder/refund.vue

+ 25 - 3
ghsApp/src/pagesOrder/refund.vue

@@ -60,10 +60,17 @@
 				<text v-else style="color:red;">此单线下付款,提交后钱不会原路退回,请线下转账给客户</text>
 				<text v-else style="color:red;">此单线下付款,提交后钱不会原路退回,请线下转账给客户</text>
 			</block>
 			</block>
 		</view>
 		</view>
-		<view class="flex-center btn-box" style="margin-bottom:50upx;margin-top:20upx;padding-bottom:40upx;">
+		<view class="flex-center btn-box" style="margin-bottom:50upx;margin-top:20upx;padding-bottom:10upx;">
 			<view class="flex-center btn" @tap="cancelRefund">取消</view>
 			<view class="flex-center btn" @tap="cancelRefund">取消</view>
 			<view class="flex-center btn active" @tap="confirmRefund" style="margin-left: 80upx">确定</view>
 			<view class="flex-center btn active" @tap="confirmRefund" style="margin-left: 80upx">确定</view>
 		</view>
 		</view>
+
+		<view style="font-size:32upx;z-index:9999;color:red;text-align:center;font-weight:bold;margin-bottom:30upx;" 
+		v-if="!$util.isEmpty(unClear)" @click="goClear(unClear)">
+			<text>已有一个待结账单 ¥{{unClear.actPrice?parseFloat(unClear.actPrice):0}}</text>
+			<text style="font-weight:bold;margin-left:15upx;">查看</text>
+		</view>
+
 	</view>
 	</view>
 </template>
 </template>
 <script>
 <script>
@@ -71,6 +78,7 @@ import stepStatus from "./components/stepStatus";
 import TuiListCell from "@/components/plugin/list-cell";
 import TuiListCell from "@/components/plugin/list-cell";
 import { getDetail,refund } from "@/api/order/index";
 import { getDetail,refund } from "@/api/order/index";
 import { ORDER_STATUS } from "@/utils/declare";
 import { ORDER_STATUS } from "@/utils/declare";
+import { getUnClear } from "@/api/clear"
 export default {
 export default {
 	name: "orderDetail",
 	name: "orderDetail",
 	components: {
 	components: {
@@ -85,7 +93,8 @@ export default {
 			refundType:1,
 			refundType:1,
 			remark:'',
 			remark:'',
 			orderInfo:{},
 			orderInfo:{},
-			couldRefundPrice:0
+			couldRefundPrice:0,
+			unClear:[]
 		};
 		};
 	},
 	},
 	onShow() {
 	onShow() {
@@ -176,7 +185,20 @@ export default {
 			this.product = res.data.product.map(ele=>{
 			this.product = res.data.product.map(ele=>{
 				return {...ele,refundCount:null}
 				return {...ele,refundCount:null}
 			})
 			})
-		}
+
+			let customId = res.data.customId ? res.data.customId : 0
+			if(Number(customId)>0){
+				getUnClear({customId:customId}).then(res=>{
+					if(res.code == 1){
+						this.unClear = res.data.info
+					}
+				})
+			}
+
+		},
+		goClear(item){
+			this.$util.pageTo({url:'/admin/clear/customInfo?id='+item.id})
+		},
 	}
 	}
 };
 };
 </script>
 </script>