|
@@ -39,7 +39,8 @@
|
|
|
:fieldNames="{ label: 'productTypeName', value: 'id', children: 'children' }"
|
|
|
id="productInfoList-productType"
|
|
|
placeholder="请选择产品分类"
|
|
|
- allowClear />
|
|
|
+ allowClear
|
|
|
+ v-model="productType" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
@@ -177,27 +178,28 @@ export default {
|
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
|
tableHeight: 0,
|
|
|
queryParam: { // 查询条件
|
|
|
- // name: '', // 产品名称
|
|
|
- // queryWord: '', // 产品编码/原厂编码
|
|
|
- // productBrandSn: undefined, // 产品品牌
|
|
|
- // productTypeSn1: '', // 产品一级分类
|
|
|
- // productTypeSn2: '', // 产品二级分类
|
|
|
- // productTypeSn3: '', // 产品三级分类
|
|
|
- // state: undefined, // 产品状态
|
|
|
- // pricingState: undefined // 定价状态
|
|
|
+ name: '', // 产品名称
|
|
|
+ queryWord: '', // 产品编码/原厂编码
|
|
|
+ productBrandSn: undefined, // 产品品牌
|
|
|
+ productTypeSn1: '', // 产品一级分类
|
|
|
+ productTypeSn2: '', // 产品二级分类
|
|
|
+ productTypeSn3: '', // 产品三级分类
|
|
|
+ state: undefined, // 产品状态
|
|
|
+ pricingState: undefined // 定价状态
|
|
|
},
|
|
|
+ productType: [],
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
|
- { title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center' },
|
|
|
+ { title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品名称', dataIndex: 'name', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品编码', dataIndex: 'code', width: 220, align: 'center' },
|
|
|
+ { title: '产品编码', dataIndex: 'code', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '原厂编码', dataIndex: 'origCode', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '品牌', dataIndex: 'productBrandName', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品分类', scopedSlots: { customRender: 'productType' }, width: 200, align: 'center' },
|
|
|
{ slots: { title: 'arrowFalgTitle' }, scopedSlots: { customRender: 'arrowFalg' }, width: 100, align: 'center' },
|
|
|
- { title: '最近修改时间', dataIndex: 'updateDate', width: 160, align: 'center' },
|
|
|
- { title: '产品状态', dataIndex: 'stateDictValue', width: 140, align: 'center' },
|
|
|
+ { title: '最近修改时间', dataIndex: 'updateDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品状态', dataIndex: 'stateDictValue', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '定价状态', scopedSlots: { customRender: 'pricingState' }, width: 140, align: 'center' },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 250, align: 'center', fixed: 'right' }
|
|
|
],
|
|
@@ -319,6 +321,7 @@ export default {
|
|
|
this.queryParam.productTypeSn3 = ''
|
|
|
this.queryParam.state = undefined
|
|
|
this.queryParam.pricingState = undefined
|
|
|
+ this.productType = []
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
// 新增/编辑
|