Ver Fonte

有超出限购且不是特价花材时要拦截

shizhongqi há 2 meses atrás
pai
commit
133b989c00

+ 4 - 2
hdApp/src/pagesPurchase/ghsProduct.vue

@@ -702,13 +702,15 @@ export default {
 						}
 						this.limitBuyWarnList = []
 						this.setLimitBuyInfoByType({ type: this.pageType, info: limitBuyInfo });
+						this.setSelectInfoByType({ type: this.pageType, info: list });
+						this.pageTo({url: '/admin/billing/affirmGhs?id='+this.options.id,type: 2})
 					})
 				} else {
 					this.limitBuyWarnList = []
 					this.setLimitBuyInfoByType({ type: this.pageType, info: [] });
+					this.setSelectInfoByType({ type: this.pageType, info: list });
+					this.pageTo({url: '/admin/billing/affirmGhs?id='+this.options.id,type: 2})
 				}
-				this.setSelectInfoByType({ type: this.pageType, info: list });
-				this.pageTo({url: '/admin/billing/affirmGhs?id='+this.options.id,type: 2})
 			} else {
 				this.$msg("请选择花材");
 			}

+ 5 - 3
mallApp/src/pages/item/item.vue

@@ -513,6 +513,7 @@ export default {
 					this.$msg("缺少店铺信息")
 					return
 				}
+				let account = this.option.account ? this.option.account : 0
 				let newList = list
 					.filter(item => Number(item.limitBuy) > 0)
 					.map(item => {
@@ -533,14 +534,15 @@ export default {
 						}
 						this.limitBuyWarnList = []
 						this.setLimitBuyInfoByType({ type: this.pageType, info: limitBuyInfo });
+						this.setSelectInfoByType({ type: this.pageType, info: list });
+						this.pageTo({url: '/pages/billing/affirmGhs?account='+account+'&hdId='+this.hdId,type:2})
 					})
 				} else {
 					this.limitBuyWarnList = []
 					this.setLimitBuyInfoByType({ type: this.pageType, info: [] });
+					this.setSelectInfoByType({ type: this.pageType, info: list });
+					this.pageTo({url: '/pages/billing/affirmGhs?account='+account+'&hdId='+this.hdId,type:2})
 				}
-				this.setSelectInfoByType({ type: this.pageType, info: list });
-				let account = this.option.account ? this.option.account : 0
-				this.pageTo({url: '/pages/billing/affirmGhs?account='+account+'&hdId='+this.hdId,type:2})
 			} else {
 				this.$msg("请选择花材");
 			}