|
@@ -56,7 +56,7 @@
|
|
|
<tbody>
|
|
<tbody>
|
|
|
<tr v-if="hasProperties" class="tr-properties">
|
|
<tr v-if="hasProperties" class="tr-properties">
|
|
|
<td v-for="pro in properties" class="td-properties" style="vertical-align:middle;" v-bind="selectedProduct">
|
|
<td v-for="pro in properties" class="td-properties" style="vertical-align:middle;" v-bind="selectedProduct">
|
|
|
- <span class="sl-selected" @click="selectProperty(pro.propertyId)" v-if="!isDel(pro.propertyId)">
|
|
|
|
|
|
|
+ <span class="sl-selected" @click="selectProperty(pro, pro.propertyId)" v-if="!isDel(pro.propertyId)">
|
|
|
<a class="text-num" v-text="selectedProduct['a' + pro.propertyId].value" style="color: #5078CB"></a>
|
|
<a class="text-num" v-text="selectedProduct['a' + pro.propertyId].value" style="color: #5078CB"></a>
|
|
|
<span><i class="fa fa-close"></i></span>
|
|
<span><i class="fa fa-close"></i></span>
|
|
|
</span>
|
|
</span>
|
|
@@ -141,15 +141,17 @@
|
|
|
},
|
|
},
|
|
|
selectBrand (item) {
|
|
selectBrand (item) {
|
|
|
this.selectedBrand = item
|
|
this.selectedBrand = item
|
|
|
- this.$emit('loadCmpGoodsByBrandEvent', item.id)
|
|
|
|
|
|
|
+ console.log(this.JSONObj)
|
|
|
|
|
+ this.$emit('loadCmpGoodsByBrandEvent', item.id, JSON.stringify(this.JSONObj))
|
|
|
},
|
|
},
|
|
|
delBrand () {
|
|
delBrand () {
|
|
|
this.selectedBrand = {}
|
|
this.selectedBrand = {}
|
|
|
- this.$emit('loadCmpGoodsByBrandEvent', null)
|
|
|
|
|
|
|
+ this.$emit('loadCmpGoodsByBrandEvent', null, JSON.stringify(this.JSONObj))
|
|
|
},
|
|
},
|
|
|
- selectProperty (propertyId) {
|
|
|
|
|
|
|
+ selectProperty (item, propertyId) {
|
|
|
this.selectedProduct['a' + propertyId] = ''
|
|
this.selectedProduct['a' + propertyId] = ''
|
|
|
- this.$emit('loadCmpGoodsByTypeEvent', null)
|
|
|
|
|
|
|
+ delete this.JSONObj[propertyId]
|
|
|
|
|
+ this.$emit('loadCmpGoodsByTypeEvent', JSON.stringify(this.JSONObj), this.selectedBrand.id)
|
|
|
this.hasProperties = this.isempty(this.selectedProduct)
|
|
this.hasProperties = this.isempty(this.selectedProduct)
|
|
|
this.list_exp_flag = true
|
|
this.list_exp_flag = true
|
|
|
this.list_exp_flag = false
|
|
this.list_exp_flag = false
|
|
@@ -169,8 +171,7 @@
|
|
|
this.hasProperties = true
|
|
this.hasProperties = true
|
|
|
this.selectedProduct['a' + propertyId] = item
|
|
this.selectedProduct['a' + propertyId] = item
|
|
|
this.JSONObj[propertyId] = item.value
|
|
this.JSONObj[propertyId] = item.value
|
|
|
- this.$emit('loadCmpGoodsByTypeEvent', JSON.stringify(this.JSONObj))
|
|
|
|
|
- this.list_exp_flag = false
|
|
|
|
|
|
|
+ this.$emit('loadCmpGoodsByTypeEvent', JSON.stringify(this.JSONObj), this.selectedBrand.id)
|
|
|
},
|
|
},
|
|
|
use_exp_list: function (pro, index) {
|
|
use_exp_list: function (pro, index) {
|
|
|
this.selectedProperties = pro
|
|
this.selectedProperties = pro
|