|
@@ -11,7 +11,7 @@
|
|
|
@close="onClose">
|
|
|
<div class="drawer__panel">
|
|
|
<div class="flex-between">
|
|
|
- <el-select v-model="sa_brandid" placeholder="选择品牌" size="small" clearable class="inline-24" @change="brandChange">
|
|
|
+ <el-select v-model="sa_brandid" placeholder="选择品牌" size="small" clearable class="inline-24" @change="brandChange" :disabled="querySa_brandid > 0">
|
|
|
<el-option
|
|
|
v-for="item in options.brands"
|
|
|
:key="item.sa_brandid"
|
|
@@ -95,7 +95,7 @@ import uploadAllData from '@/components/uploadAllData/index'
|
|
|
|
|
|
export default {
|
|
|
name: "index",
|
|
|
- props:["data","tradefield","discountrate","params","title","tablecolsAdd","sa_projectid"],
|
|
|
+ props:["data","tradefield","discountrate","params","title","tablecolsAdd","sa_projectid","querySa_brandid"],
|
|
|
components:{tableTemp,uploadAllData},
|
|
|
data(){
|
|
|
return {
|
|
@@ -124,7 +124,9 @@ export default {
|
|
|
this.$store.dispatch('optiontypeselect','itemmaterial').then(res=>{
|
|
|
this.options.itemmaterials = res.data
|
|
|
})
|
|
|
+ this.querySa_brandid !== '' ?this.sa_brandid = this.querySa_brandid : this.sa_brandid = ''
|
|
|
this.queryBrands()
|
|
|
+ this.queryClass()
|
|
|
this.listData()
|
|
|
},
|
|
|
/*可添加商品*/
|