Commit d7b2c5ea authored by dragondean@qq.com's avatar dragondean@qq.com

价格列表增加属性筛选

parent a310f2f1
...@@ -9,7 +9,12 @@ ...@@ -9,7 +9,12 @@
<el-form-item :label="$t('商品类型')" prop="typeId" v-if="!$route.query.product_id"> <el-form-item :label="$t('商品类型')" prop="typeId" v-if="!$route.query.product_id">
<el-select v-model="queryParams.typeId" :placeholder="$t('选择商品类型')" clearable> <el-select v-model="queryParams.typeId" :placeholder="$t('选择商品类型')" clearable>
<el-option v-for="type in typeList" :key="type.id" :label="type.titleZh" :value="type.id"/> <el-option v-for="type in typeList" :key="type.id" :label="$l(type, 'titleZh')" :value="type.id"/>
</el-select>
</el-form-item>
<el-form-item :label="$t('商品属性')" prop="typeId" v-if="!$route.query.product_id">
<el-select v-model="queryParams.attrId" :placeholder="$t('选择商品类型')" clearable>
<el-option v-for="attr in attrList" :key="attr.id" :label="$l(attr, 'attrName')" :value="attr.id"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('运输方式')" prop="transportType" v-if="!transportType"> <el-form-item :label="$t('运输方式')" prop="transportType" v-if="!transportType">
...@@ -562,7 +567,6 @@ export default { ...@@ -562,7 +567,6 @@ export default {
this.$set(this.queryParams, 'transportType', +this.transportType) this.$set(this.queryParams, 'transportType', +this.transportType)
} }
} }
this.getAttrList();
} }
}, },
watch:{ watch:{
...@@ -622,6 +626,8 @@ export default { ...@@ -622,6 +626,8 @@ export default {
this.getChannelList() this.getChannelList()
this.getTypeList() this.getTypeList()
this.getAttrList();
//获取货币列表 //获取货币列表
this.requestCurrencyList(); this.requestCurrencyList();
//获取单位列表 //获取单位列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment