|
@@ -28,8 +28,8 @@
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
- <a-form-item label="产品类别">
|
|
|
|
- <a-cascader @change="changeProductType" change-on-select :options="productTypeList" :fieldNames="{ label: 'productTypeName', value: 'id', children: 'children' }" id="productInfoList-productType" placeholder="请选择产品类别" allowClear />
|
|
|
|
|
|
+ <a-form-item label="产品分类">
|
|
|
|
+ <a-cascader @change="changeProductType" change-on-select :options="productTypeList" :fieldNames="{ label: 'productTypeName', value: 'id', children: 'children' }" id="productInfoList-productType" placeholder="请选择产品分类" allowClear />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
@@ -75,14 +75,14 @@
|
|
:columns="columns"
|
|
:columns="columns"
|
|
:data="loadData"
|
|
:data="loadData"
|
|
bordered>
|
|
bordered>
|
|
- <!-- 产品类别 -->
|
|
|
|
|
|
+ <!-- 产品分类 -->
|
|
<!-- 自定义表头 -->
|
|
<!-- 自定义表头 -->
|
|
<template slot="productTypeCustomTitle">
|
|
<template slot="productTypeCustomTitle">
|
|
<a-tooltip placement="top">
|
|
<a-tooltip placement="top">
|
|
<template slot="title">
|
|
<template slot="title">
|
|
<span>列表中只显示第三级分类的名称,鼠标移动至文字上,查看上级分类。“>”为分隔符</span>
|
|
<span>列表中只显示第三级分类的名称,鼠标移动至文字上,查看上级分类。“>”为分隔符</span>
|
|
</template>
|
|
</template>
|
|
- 产品类别<a-icon type="question-circle" :style="{ color: '#ed1c24', marginLeft: '10px' }" />
|
|
|
|
|
|
+ 产品分类<a-icon type="question-circle" :style="{ color: '#ed1c24', marginLeft: '10px' }" />
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
</template>
|
|
</template>
|
|
<template slot="productType" slot-scope="text, record">
|
|
<template slot="productType" slot-scope="text, record">
|
|
@@ -131,9 +131,9 @@ export default {
|
|
productName: '', // 产品名称
|
|
productName: '', // 产品名称
|
|
origCode: '', // 原厂编码
|
|
origCode: '', // 原厂编码
|
|
productBrandSn: undefined, // 产品品牌
|
|
productBrandSn: undefined, // 产品品牌
|
|
- productTypeSn1: '', // 产品一级类别
|
|
|
|
- productTypeSn2: '', // 产品二级类别
|
|
|
|
- productTypeSn3: '', // 产品三级类别
|
|
|
|
|
|
+ productTypeSn1: '', // 产品一级分类
|
|
|
|
+ productTypeSn2: '', // 产品二级分类
|
|
|
|
+ productTypeSn3: '', // 产品三级分类
|
|
enabledFlag: undefined, // 状态
|
|
enabledFlag: undefined, // 状态
|
|
beginDate: '', // 创建时间 开始时间
|
|
beginDate: '', // 创建时间 开始时间
|
|
endDate: '', // 创建时间 结束时间
|
|
endDate: '', // 创建时间 结束时间
|
|
@@ -173,7 +173,7 @@ export default {
|
|
openModal: false, // 查看客户详情 弹框
|
|
openModal: false, // 查看客户详情 弹框
|
|
itemId: '', // 当前产品id
|
|
itemId: '', // 当前产品id
|
|
productBrandList: [], // 品牌下拉数据
|
|
productBrandList: [], // 品牌下拉数据
|
|
- productTypeList: [], // 类别下拉数据
|
|
|
|
|
|
+ productTypeList: [], // 分类下拉数据
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -227,7 +227,7 @@ export default {
|
|
this.itemId = ''
|
|
this.itemId = ''
|
|
this.openModal = false
|
|
this.openModal = false
|
|
},
|
|
},
|
|
- // 产品类别 change
|
|
|
|
|
|
+ // 产品分类 change
|
|
changeProductType(val, opt){
|
|
changeProductType(val, opt){
|
|
this.queryParam.productTypeSn1 = val[0] ? val[0] : ''
|
|
this.queryParam.productTypeSn1 = val[0] ? val[0] : ''
|
|
this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
|
|
this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
|
|
@@ -293,7 +293,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 产品类别 列表
|
|
|
|
|
|
+ // 产品分类 列表
|
|
getProductType(){
|
|
getProductType(){
|
|
dealerProductTypeQuery({}).then(res => {
|
|
dealerProductTypeQuery({}).then(res => {
|
|
if(res.status == 200){
|
|
if(res.status == 200){
|