浏览代码

Merge remote-tracking branch 'remotes/origin/developer' into developerB

zhengjinyi 3 年之前
父节点
当前提交
dee1044d40

+ 2 - 2
components/cm-module/orderDetails/transfeRecord.vue

@@ -34,8 +34,8 @@
 			return{
 				isOpen:false,
 				transfeData:{
-					bankBranch:'中国银行深圳竹子林支行',
-					bankNumber:'6217 8520 0001 3869 139',
+					bankBranch:'华夏银行深圳分行营业部',
+					bankNumber:'6230 2100 9221 2400',
 					accountName:'周倩如'
 				},
 			}

+ 126 - 19
pages/seller/order/create-order.vue

@@ -5,8 +5,21 @@
 		<!-- 商品 -->
 		<seller-goodsList ref='goods' v-if="isRequest" :goodsData="goodsData" @handleGoodList="handChangeInputGoodsList"></seller-goodsList>
 		<!-- 返佣订单 -->
-		<view class="Rebate" @click="RebateChang" v-if="goodsData.length==1 && secondflag">
-			<text class="rebate-title">返佣订单</text>
+		<view class="order-return" v-if="goodsData.length==1 && secondflag">
+			<view class="order-return-main" @click="handleRebateFlag">
+				<view class="label">是否返佣</view>
+				<view class="label-right">
+					<text class="text-l">{{ rebateFeeText }}</text>
+					<text class="iconfont icon-xiayibu"></text>
+				</view>
+			</view>
+			<view class="order-return-input" v-if="confirmParam.payInfo.rebateFlag === 2">
+				<input class="input" v-model="rebateFee" type="number" placeholder="请输入返佣服务费" maxlength="20">
+			</view>
+		</view>
+		<!-- 返佣订单 -->
+		<view class="Rebate" @click="handleSecondFlag" v-if="!secondflag">
+			<text class="rebate-title">二手返佣订单</text>
 			<text class="iconfont" :class="rebatecheck?'icon-yixuanze':'icon-weixuanze'" ></text>
 		</view>
 		<!-- 发票信息 -->
@@ -211,10 +224,13 @@
 						postage: 0,				// 运费金额
 						postageFlag: 0,			// 运费类型
 						userBeans: 0,			// 抵扣采美豆数量
+						rebateFee:0, 			// 返佣服务费
 						rebateFlag:0			// 是否返佣订单
 					},
 					unionId:uni.getStorageSync('unionId'),// 用户unionId
 				}, 	
+				rebateFee:'',
+				rebateFeeText:'否',
 				productIds:'',			  //商品ID,
 				confirmType:1,			  
 				submitState:'',  		  // 提交状态
@@ -475,13 +491,19 @@
 				console.log('优惠券金额',this.couponAmount)
 			},
 			orderSubmitMit(){//提交订单
-				console.log('secondflag',this.secondflag)
-				if(this.secondflag){
-					this.modal = true
-					this.contentModalText = '请仔细确认订单是否为返佣订单后再提交订单'
-				}else{
-					this.SellerCreateOrderSubmit()
+				if(this.confirmParam.addressId == ''){
+					this.$util.msg('请先添加收货地址~',2000)
+					return
 				}
+				if(this.confirmParam.payInfo.rebateFlag ===2){
+					if(this.rebateFee == 0){
+						this.$util.msg('请输入返佣服务费',2000)
+						return
+					}
+					this.confirmParam.payInfo.rebateFee = Number(this.rebateFee).toFixed(2)
+				}
+				this.modal = true
+				this.contentModalText = '请仔细确认订单是否为返佣订单后再提交订单'
 			},
 			handleClick(e){
 				//确认提交
@@ -493,10 +515,7 @@
 			SellerCreateOrderSubmit(){
 				//提交订单
 				if(this.isSubLoading){ return }
-				if(this.confirmParam.addressId == ''){
-					this.$util.msg('请先添加收货地址~',2000)
-					return
-				}
+				
 				this.confirmParam.orderInfo = this.goodsData.map(el => {
 					let productInfo = []
 					el.cartList.forEach(item => {
@@ -540,11 +559,28 @@
 					this.$util.msg(error.msg,2000)
 				})
 			},
-			RebateChang(){//  返佣订单勾选
-				this.rebatecheck = !this.rebatecheck
-				if(this.rebatecheck){
-					this.ischecked = false
-					this.confirmParam.payInfo.rebateFlag=1
+			handleRebateFlag(){// 普通订单返佣
+				let self = this
+				uni.showActionSheet({
+					itemList: ['返佣订单', '普通订单,存在返佣服务费','否'],
+					success: (e) => {
+						switch(e.tapIndex){
+							case 0:
+								self.confirmParam.payInfo.rebateFlag = 1
+								self.rebateFeeText = '返佣订单'
+								break
+							case 1:
+								self.confirmParam.payInfo.rebateFlag = 2
+								self.rebateFeeText = '普通订单,存在返佣服务费'
+								break
+							case 2:
+								self.confirmParam.payInfo.rebateFlag = 0
+								self.rebateFeeText = '否'
+								break
+						}
+					}
+				})
+				if(this.confirmParam.payInfo.rebateFlag ===1){
 					this.confirmParam.payInfo.balancePayFlag = 0
 					this.couponAmount = 0
 					this.confirmParam.clubCouponId = 0
@@ -560,7 +596,6 @@
 				}else{
 					this.confirmParam.orderSeen = 1
 					this.$refs.clubVisible.orderVisibleText = '可见'
-					this.confirmParam.payInfo.rebateFlag=0
 					if(this.couponList.length>0){
 						this.confirmParam.clubCouponId = this.couponList[0].clubCouponId 
 						this.$refs.coupon.coupon.couponAmount = this.couponAmount = this.couponList[0].couponAmount
@@ -569,7 +604,27 @@
 					this.orderShouldPayFee = this.allPrice + parseInt(this.freightData.postage) - this.couponAmount
 				}
 			},
-			
+			handleSecondFlag(){// 二手订单勾选返佣
+				this.rebatecheck = !this.rebatecheck
+				if(this.rebatecheck){
+					this.ischecked = false
+					this.confirmParam.payInfo.rebateFlag=1
+					this.confirmParam.payInfo.balancePayFlag = 0
+					this.confirmParam.clubCouponId = 0
+					this.confirmParam.orderSeen = 2
+					this.$refs.clubVisible.orderVisibleText = '不可见'
+					this.$refs.clubVisible.current = 1
+					this.orderShouldPayFee = this.allPrice + parseInt(this.freightData.postage)
+					this.$refs.freight.infoData(this.freightData)
+					this.$refs.freight.freightData  = this.freightData
+					this.handleFreightData = this.freightData
+				}else{
+					this.confirmParam.orderSeen = 1
+					this.$refs.clubVisible.orderVisibleText = '可见'
+					this.confirmParam.payInfo.rebateFlag=0
+					this.orderShouldPayFee = this.allPrice + parseInt(this.freightData.postage)
+				}
+			},
 			handFreightAlertShow(){//显示邮费弹窗
 				this.isfreightTip = true
 			},
@@ -802,6 +857,58 @@
 			}
 		}
 	}
+	.order-return{
+		width: 100%;
+		height: auto;
+		box-sizing: border-box;
+		padding: 0 24rpx;
+		background: #FFFFFF;
+		float: left;
+		margin: 24rpx 0;
+		.order-return-main{
+			width:100%;
+			height: 86rpx;
+			line-height: 86rpx;
+			.label{
+				float: left;
+				font-weight: bold;
+				color: #333333;
+				font-size: $font-size-28;
+			}
+			.label-right{
+				float: right;
+				color: #2A81FF;
+				.text-l{
+					font-size: 28rpx;
+					font-weight: bold;
+					margin-right: 20rpx;
+				}
+				.icon-xiayibu{
+					line-height: 88rpx;
+					color: #999999;
+					font-weight: normal;
+				}
+			}
+			
+		}
+		.order-return-input{
+			width: 100%;
+			height: 86rpx;
+			padding-bottom: 20rpx;
+			box-sizing: border-box;
+			.input{
+				width: 100%;
+				height: 66rpx;
+				font-size: $font-size-26;
+				border: 1px solid #e1e1e1;
+				line-height: 66rpx;
+				color: #333333;
+				border-radius: 4rpx;
+				box-sizing: border-box;
+				padding: 0 20rpx;
+			}
+		}
+	}
 	.Rebate{
 		width: 702rpx;
 		height: auto;

+ 1 - 0
pages/seller/order/order-historylist.vue

@@ -211,6 +211,7 @@
 								<order-button
 									ref="orderButton"
 									:status="order.status"
+									:order = "order"
 									:rechargeGoods="order.rechargeGoods"
 									:orderId="order.orderId"
 									:userId="order.userId"

+ 3 - 3
pages/user/order/order-payment.vue

@@ -16,7 +16,7 @@
 				<view class="pay-bring-wrapper clearfix">
 					<view class="pay-bring-content">
 						<view class="text-v title">转账信息</view>
-						<view class="text-v">开户行:中国银行深圳竹子林支行</view>
+						<view class="text-v">开户行:华夏银行深圳分行营业部</view>
 						<view class="text-v">银行卡号:{{bankNumber}}</view>
 						<view class="text-v">户名:周倩如</view>
 						<view class="text-v">订单标识:{{payOrderId}} <text class="clipboard" @click.stop="clipboard(payOrderId)">复制</text></view>
@@ -41,7 +41,7 @@
 				<view class="pay-bring-wrapper clearfix">
 					<view class="pay-bring-content">
 						<view class="text-v title">转账信息</view>
-						<view class="text-v">开户行:中国银行深圳竹子林支行</view>
+						<view class="text-v">开户行:华夏银行深圳分行营业部</view>
 						<view class="text-v">银行卡号:{{bankNumber}}</view>
 						<view class="text-v">户名:周倩如</view>
 						<view class="text-v">订单标识:{{payOrderId}} <text class="clipboard" @click.stop="clipboard(payOrderId)">复制</text></view>
@@ -138,7 +138,7 @@
 				shopOrderId:0,
 				payableAmount:0,
 				emptyWrapperH: '',
-				bankNumber:'6217 8520 0001 3869 139',
+				bankNumber:'6230 2100 9221 2400',
 				payOrderId:'',
 				B2BpayFlag:1,
 				nvabarData: {		//顶部自定义导航

+ 2 - 2
pages/user/order/order-payunder.vue

@@ -14,7 +14,7 @@
 			<view class="pay-bring-wrapper clearfix">
 				<view class="pay-bring-content">
 					<view class="text-v title">转账信息</view>
-					<view class="text-v">开户行:中国银行深圳竹子林支行</view>
+					<view class="text-v">开户行:华夏银行深圳分行营业部</view>
 					<view class="text-v">银行卡号:{{bankNumber}}</view>
 					<view class="text-v">户名:周倩如</view>
 					<view class="text-v">订单标识:{{payOrderId}} <text class="clipboard" @click.stop="clipboard(payOrderId)">复制</text></view>
@@ -34,7 +34,7 @@
 				orderId:'',
 				payableAmount:0,
 				emptyWrapperH: '',
-				bankNumber:'6217 8520 0001 3869 139',
+				bankNumber:'6230 2100 9221 2400',
 				payOrderId:'',
 				isIphoneX:this.$store.state.isIphoneX,
 				CustomBar:this.CustomBar,// 顶部导航栏高度