|
@@ -23,7 +23,7 @@
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="产品品牌">
|
|
<a-form-item label="产品品牌">
|
|
<a-select
|
|
<a-select
|
|
- placeholder="请选择"
|
|
|
|
|
|
+ placeholder="请选择产品品牌"
|
|
id="productInfoList-productBrandSn"
|
|
id="productInfoList-productBrandSn"
|
|
allowClear
|
|
allowClear
|
|
v-model="queryParam.productBrandSn"
|
|
v-model="queryParam.productBrandSn"
|
|
@@ -39,6 +39,7 @@
|
|
<a-cascader
|
|
<a-cascader
|
|
@change="changeProductType"
|
|
@change="changeProductType"
|
|
change-on-select
|
|
change-on-select
|
|
|
|
+ v-model="productType"
|
|
:options="productTypeList"
|
|
:options="productTypeList"
|
|
:fieldNames="{ label: 'productTypeName', value: 'productTypeSn', children: 'children' }"
|
|
:fieldNames="{ label: 'productTypeName', value: 'productTypeSn', children: 'children' }"
|
|
id="productInfoList-productType"
|
|
id="productInfoList-productType"
|
|
@@ -103,8 +104,20 @@
|
|
</template>
|
|
</template>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
<template slot="action" slot-scope="text, record">
|
|
<template slot="action" slot-scope="text, record">
|
|
- <a-button size="small" v-if="$hasPermissions('B_product_dealerProduct_edit')" type="link" @click="handleEdit(record)" id="productInfoList-edit-btn">编辑</a-button>
|
|
|
|
- <a-button v-if="$hasPermissions('B_product_dealerProduct_detail')" size="small" type="link" @click="handleDetail(record)" id="productInfoList-detail-btn">详情</a-button>
|
|
|
|
|
|
+ <a-button
|
|
|
|
+ size="small"
|
|
|
|
+ v-if="$hasPermissions('B_product_dealerProduct_edit')"
|
|
|
|
+ type="primary"
|
|
|
|
+ class="button-info"
|
|
|
|
+ @click="handleEdit(record)"
|
|
|
|
+ id="productInfoList-edit-btn">编辑</a-button>
|
|
|
|
+ <a-button
|
|
|
|
+ v-if="$hasPermissions('B_product_dealerProduct_detail')"
|
|
|
|
+ size="small"
|
|
|
|
+ type="primary"
|
|
|
|
+ class="button-success"
|
|
|
|
+ @click="handleDetail(record)"
|
|
|
|
+ id="productInfoList-detail-btn">详情</a-button>
|
|
</template>
|
|
</template>
|
|
</s-table>
|
|
</s-table>
|
|
<!-- 产品详情 -->
|
|
<!-- 产品详情 -->
|
|
@@ -124,10 +137,12 @@ export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
|
|
+ productType: [],
|
|
queryParam: { // 查询条件
|
|
queryParam: { // 查询条件
|
|
code: '', // 产品编码
|
|
code: '', // 产品编码
|
|
name: '', // 产品名称
|
|
name: '', // 产品名称
|
|
origCode: '', // 原厂编码
|
|
origCode: '', // 原厂编码
|
|
|
|
+ sysFlag: '0',
|
|
productBrandSn: undefined, // 产品品牌
|
|
productBrandSn: undefined, // 产品品牌
|
|
productTypeSn1: '', // 产品一级分类
|
|
productTypeSn1: '', // 产品一级分类
|
|
productTypeSn2: '', // 产品二级分类
|
|
productTypeSn2: '', // 产品二级分类
|
|
@@ -146,7 +161,7 @@ export default {
|
|
{ title: '终端价', dataIndex: 'terminalPrice', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '终端价', dataIndex: 'terminalPrice', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center' },
|
|
{ title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center' },
|
|
{ title: '状态', scopedSlots: { customRender: 'enabledFlag' }, width: 140, align: 'center' },
|
|
{ title: '状态', scopedSlots: { customRender: 'enabledFlag' }, width: 140, align: 'center' },
|
|
- { title: '操作', scopedSlots: { customRender: 'action' }, width: 130, align: 'center', fixed: 'right' }
|
|
|
|
|
|
+ { title: '操作', scopedSlots: { customRender: 'action' }, width: 200, align: 'center', fixed: 'right' }
|
|
],
|
|
],
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
@@ -182,6 +197,7 @@ export default {
|
|
this.queryParam.productTypeSn2 = ''
|
|
this.queryParam.productTypeSn2 = ''
|
|
this.queryParam.productTypeSn3 = ''
|
|
this.queryParam.productTypeSn3 = ''
|
|
this.queryParam.enabledFlag = undefined
|
|
this.queryParam.enabledFlag = undefined
|
|
|
|
+ this.productType = []
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
// 新增/编辑
|
|
// 新增/编辑
|
|
@@ -197,6 +213,7 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
filterOption (input, option) {
|
|
filterOption (input, option) {
|
|
|
|
+ console.log(option.componentOptions.children[0].text, 'option')
|
|
return (
|
|
return (
|
|
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
)
|
|
)
|
|
@@ -269,7 +286,7 @@ export default {
|
|
},
|
|
},
|
|
// 产品品牌 列表
|
|
// 产品品牌 列表
|
|
getProductBrand () {
|
|
getProductBrand () {
|
|
- dealerProductBrandQuery({}).then(res => {
|
|
|
|
|
|
+ dealerProductBrandQuery({ 'sysFlag': '0' }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.productBrandList = res.data
|
|
this.productBrandList = res.data
|
|
} else {
|
|
} else {
|
|
@@ -279,7 +296,7 @@ export default {
|
|
},
|
|
},
|
|
// 产品分类 列表
|
|
// 产品分类 列表
|
|
getProductType () {
|
|
getProductType () {
|
|
- dealerProductTypeList({}).then(res => {
|
|
|
|
|
|
+ dealerProductTypeList({ 'sysFlag': '0' }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.productTypeList = res.data
|
|
this.productTypeList = res.data
|
|
} else {
|
|
} else {
|