Commit b5634f0f by 杨北旺

玻璃参数处理

1 parent 5132e9f2
...@@ -26,6 +26,7 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -26,6 +26,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
// request_merchant.baseURL = 'http://rop-merchant.test.glsx.com.cn' // request_merchant.baseURL = 'http://rop-merchant.test.glsx.com.cn'
// request.baseURL = 'http://192.168.1.78:8064' // request.baseURL = 'http://192.168.1.78:8064'
// request_brand.baseURL = 'http://192.168.1.78:8064' // request_brand.baseURL = 'http://192.168.1.78:8064'
// globalState.session.token = 'scrm-base-bb848580-e5e2-48d2-8fcc-2cf3d8bbc3bd-rop'
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
......
...@@ -882,6 +882,23 @@ export default { ...@@ -882,6 +882,23 @@ export default {
this.$set(this.productList[this.vailIndex], 'disabled', true) this.$set(this.productList[this.vailIndex], 'disabled', true)
this.$set(this.productList[this.vailIndex].groupAttributeList[this.vail_sale_price_index], 'disabled', true) this.$set(this.productList[this.vailIndex].groupAttributeList[this.vail_sale_price_index], 'disabled', true)
this.errGlassName = '车辆价格超过50万,无法购买' this.errGlassName = '车辆价格超过50万,无法购买'
if(this.tempAttributeList.length&&this.packageCodeList.length){
if( this.packageCodeList.indexOf(this.vailGlassCode)!=-1){
let arr1 = []
let arr2 = []
this.tempAttributeList.forEach(ele=>{
if(ele.packageCode!=this.vailGlassCode){
arr1.push(ele)
}
})
this.packageCodeList.forEach(ele=>{
if(ele!=this.vailGlassCode){
arr2.push(ele)
}
})
this.handleProductArrParam(arr1, arr2)
}
}
} else { } else {
this.errGlassName = '' this.errGlassName = ''
if (this.vailIndex !=undefined) this.$set(this.productList[this.vailIndex], 'disabled', false) if (this.vailIndex !=undefined) this.$set(this.productList[this.vailIndex], 'disabled', false)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!