|
|
@@ -8,8 +8,22 @@
|
|
|
<el-input clearable class="filter-item" style="width: 200px;" placeholder="商品简称"
|
|
|
v-model="listQuery.productShortForm"></el-input>
|
|
|
|
|
|
- <treeselect class="filter-item" default-expand-all v-model="listQuery.categoryId" :options="categoryOptions"
|
|
|
- :normalizer="normalizer" placeholder="商品类别" style="width: 200px" />
|
|
|
+ <!-- <treeselect class="filter-item" default-expand-all v-model="listQuery.categoryId" :options="categoryOptions"
|
|
|
+ :normalizer="normalizer" placeholder="商品类别" style="width: 200px" /> -->
|
|
|
+ <el-cascader
|
|
|
+ clearable
|
|
|
+ class="filter-item"
|
|
|
+ placeholder="商品类别"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model="listQuery.categoryId"
|
|
|
+ :options="categoryOptions"
|
|
|
+ :props="{
|
|
|
+ label: 'categoryName',
|
|
|
+ value: 'id',
|
|
|
+ emitPath: false,
|
|
|
+ checkStrictly: true
|
|
|
+ }"
|
|
|
+ />
|
|
|
<el-select class="filter-item" style="width: 200px" v-model="listQuery.brandId" filterable placeholder="品牌">
|
|
|
<el-option v-for="item in brandOptions" :key="item.value" :label="item.label" :value="item.value">
|
|
|
</el-option>
|
|
|
@@ -86,8 +100,20 @@
|
|
|
|
|
|
|
|
|
<el-form-item label="商品类别" prop="categoryId">
|
|
|
- <treeselect default-expand-all v-model="dataForm.categoryId" :options="categoryOptions"
|
|
|
- :normalizer="normalizer" placeholder="请选择商品类别" />
|
|
|
+ <el-cascader
|
|
|
+ placeholder="请选择商品类别"
|
|
|
+ style="width: 100%;"
|
|
|
+ v-model="dataForm.categoryId"
|
|
|
+ :options="categoryOptions"
|
|
|
+ :props="{
|
|
|
+ label: 'categoryName',
|
|
|
+ value: 'id',
|
|
|
+ emitPath: false,
|
|
|
+ checkStrictly: true
|
|
|
+ }"
|
|
|
+ />
|
|
|
+ <!-- <treeselect default-expand-all v-model="dataForm.categoryId" :options="categoryOptions"
|
|
|
+ :normalizer="normalizer" placeholder="请选择商品类别" /> -->
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="品牌" prop="brandId">
|
|
|
@@ -176,8 +202,8 @@
|
|
|
<el-date-picker style="width: 100%;" v-model="dataForm.productDate" type="date"
|
|
|
placeholder="选择日期" value-format="yyyy-MM-dd"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="陈华年份">
|
|
|
- <el-input v-model="dataForm.teaAgingYear" placeholder="输入陈华年份"></el-input>
|
|
|
+ <el-form-item label="陈化年份">
|
|
|
+ <el-input v-model="dataForm.teaAgingYear" placeholder="请输入陈化年份"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="溯源信息" prop="teaFiles">
|
|
|
<el-upload :limit="1" :action="fileImgUrl" :file-list="dataForm.files" :on-success="handleFileSuccess"
|