lilei 4 months ago
parent
commit
0e1919a9f9
2 changed files with 3 additions and 3 deletions
  1. 1 1
      pagesB/procureOrder/creatOrder.vue
  2. 2 2
      pagesB/shopiing/productDetail.vue

+ 1 - 1
pagesB/procureOrder/creatOrder.vue

@@ -431,7 +431,7 @@
 						// 有抵扣金额,且没有促销活动
 						if(item.shopProductSubsidy&&!item.shopPromoProduct){
 							// 抵扣金额是否小于售价
-							const isXPrice = item.shopProductSubsidy.subsidyAmount<=item.price
+							const isXPrice = item.shopProductSubsidy.subsidyAmount<item.price
 							this.subsidyAmount += isXPrice ? (item.shopProductSubsidy.subsidyAmount||0) * item.qty : 0
 						}
 						// 如果是返券类型

+ 2 - 2
pagesB/shopiing/productDetail.vue

@@ -355,7 +355,7 @@
 			// 抵扣余额支付是否可用,有【余额支付权限】且该产品有抵扣金额
 			hasBalancePay(){
 				// 抵扣金额是否小于售价
-				const isXPrice = this.detail&&this.detail.shopProductSubsidy&&this.detail.shopProductSubsidy.subsidyAmount<=this.detail.price
+				const isXPrice = this.detail&&this.detail.shopProductSubsidy&&this.detail.shopProductSubsidy.subsidyAmount<this.detail.price
 				// 是否有促销活动
 				const hasProm = this.detail&&!this.detail.shopPromoProduct
 				return this.$store.state.vuex_showBalanceAuth&&hasProm&&isXPrice
@@ -480,7 +480,7 @@
 							res.data.priceStr = Number(bprice).toFixed(2).toString().split('.')
 							res.data.price = bprice
 							// 可抵扣金额是否可用,有余额支付权限,且没有促销活动,且有抵扣金额,且抵扣金额小于等于抵扣余额
-							const kdk = res.data.shopProductSubsidy&&res.data.shopProductSubsidy.subsidyAmount>0&&this.storeAccount&&res.data.shopProductSubsidy.subsidyAmount<=this.storeAccount.giveBalance
+							const kdk = res.data.shopProductSubsidy&&res.data.shopProductSubsidy.subsidyAmount>0&&this.storeAccount&&res.data.shopProductSubsidy.subsidyAmount<this.storeAccount.giveBalance
 							this.hasKdk = kdk&&!this.detail.shopPromoProduct&&this.showBalanceAuth
 						}
 					}