|
|
@@ -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("请选择花材");
|
|
|
}
|