shish 2 luni în urmă
părinte
comite
d907656376
2 a modificat fișierele cu 42 adăugiri și 46 ștergeri
  1. 21 23
      hdApp/src/pagesPurchase/ghsProduct.vue
  2. 21 23
      mallApp/src/pages/item/item.vue

+ 21 - 23
hdApp/src/pagesPurchase/ghsProduct.vue

@@ -681,29 +681,27 @@ export default {
 				}
                 
 				// 请求后端接口,获取限购花材信息
-				let newList = list.map(item => {
-					return {
-						id: item.id,
-						bigCount: item.bigCount,
-						//smallCount: item.smallCount
-					}
-				})
-				getLimitBuyInfo({ghsId: this.options.id, list: newList}).then(res => {
-					const limitBuyInfo = Array.isArray(res.data) ? res.data : []
-					const warnList = limitBuyInfo.filter(item => item.specialPrice === false && item.reachLimitBuyNum === true)
-					if(warnList.length > 0){
-						this.limitBuyWarnList = warnList
-						this.cartItemShow = true
-						this.$msg("有花材超出限购")
-						return
-					}
-					this.limitBuyWarnList = []
-					this.setSelectInfoByType({ type: this.pageType, info: list});
-					this.setLimitBuyInfoByType({ type: this.pageType, info: limitBuyInfo });
-					this.pageTo({url: '/admin/billing/affirmGhs?id='+this.options.id, type: 1})
-				}).catch(() => {
-					this.$msg("限购信息获取失败,请稍后重试")
-				})
+				// let newList = list.map(item => {
+				// 	return {
+				// 		id: item.id,
+				// 		bigCount: item.bigCount,
+				// 		//smallCount: item.smallCount
+				// 	}
+				// })
+				// getLimitBuyInfo({ghsId: this.options.id, list: newList}).then(res => {
+				// 	const limitBuyInfo = Array.isArray(res.data) ? res.data : []
+				// 	const warnList = limitBuyInfo.filter(item => item.specialPrice === false && item.reachLimitBuyNum === true)
+				// 	if(warnList.length > 0){
+				// 		this.limitBuyWarnList = warnList
+				// 		this.cartItemShow = true
+				// 		this.$msg("有花材超出限购")
+				// 		return
+				// 	}
+				// 	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.$msg("请选择花材");
 			}

+ 21 - 23
mallApp/src/pages/item/item.vue

@@ -513,29 +513,27 @@ export default {
 					this.$msg("缺少店铺信息")
 					return
 				}
-				let newList = list.map(item => {
-					return {
-						id: item.id,
-						bigCount: item.bigCount
-					}
-				})
-				getLimitBuyInfo({ ghsId, list: newList }).then(res => {
-					const limitBuyInfo = Array.isArray(res.data) ? res.data : []
-					const warnList = limitBuyInfo.filter(item => item.specialPrice === false && item.reachLimitBuyNum === true)
-					if (warnList.length > 0) {
-						this.limitBuyWarnList = warnList
-						this.cartItemShow = true
-						this.$msg("有花材超出限购")
-						return
-					}
-					this.limitBuyWarnList = []
-					this.setSelectInfoByType({ type: this.pageType, info: list });
-					this.setLimitBuyInfoByType({ type: this.pageType, info: limitBuyInfo });
-					let account = this.option.account ? this.option.account : 0
-					this.pageTo({url: '/pages/billing/affirmGhs?account='+account+'&hdId='+this.hdId,type:1})
-				}).catch(() => {
-					this.$msg("限购信息获取失败,请稍后重试")
-				})
+				// let newList = list.map(item => {
+				// 	return {
+				// 		id: item.id,
+				// 		bigCount: item.bigCount
+				// 	}
+				// })
+				// getLimitBuyInfo({ ghsId, list: newList }).then(res => {
+				// 	const limitBuyInfo = Array.isArray(res.data) ? res.data : []
+				// 	const warnList = limitBuyInfo.filter(item => item.specialPrice === false && item.reachLimitBuyNum === true)
+				// 	if (warnList.length > 0) {
+				// 		this.limitBuyWarnList = warnList
+				// 		this.cartItemShow = true
+				// 		this.$msg("有花材超出限购")
+				// 		return
+				// 	}
+				// 	this.limitBuyWarnList = []
+				// 	this.setLimitBuyInfoByType({ type: this.pageType, info: limitBuyInfo });
+				// })
+				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("请选择花材");
 			}