|
@@ -22,30 +22,12 @@
|
|
|
<template v-if="advanced">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="品牌">
|
|
|
- <a-select
|
|
|
- placeholder="请选择"
|
|
|
- id="productChangeRecordList-productBrandSn"
|
|
|
- allowClear
|
|
|
- v-model="queryParam.productBrandSn"
|
|
|
- :showSearch="true"
|
|
|
- option-filter-prop="children"
|
|
|
- :filter-option="filterOption">
|
|
|
- <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
|
|
|
- </a-select>
|
|
|
+ <ProductBrand id="productChangeRecordList-productBrandSn" placeholder="请选择产品品牌" v-model="queryParam.productBrandSn"></ProductBrand>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="产品分类">
|
|
|
- <a-cascader
|
|
|
- @change="changeProductType"
|
|
|
- expand-trigger="hover"
|
|
|
- change-on-select
|
|
|
- :options="productTypeList"
|
|
|
- :fieldNames="{ label: 'productTypeName', value: 'id', children: 'children' }"
|
|
|
- id="productInfoList-productType"
|
|
|
- placeholder="请选择产品分类"
|
|
|
- allowClear
|
|
|
- v-model="productType" />
|
|
|
+ <ProductType id="productChangeRecordList-productType" placeholder="请选择产品分类" :isDealer="false" @change="changeProductType" v-model="productType"></ProductType>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</template>
|
|
@@ -119,13 +101,13 @@ import moment from 'moment'
|
|
|
import getDate from '@/libs/getDate.js'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
-import { productBrandQuery } from '@/api/productBrand'
|
|
|
-import { productTypeQuery } from '@/api/productType'
|
|
|
+import ProductBrand from '@/views/common/productBrand.js'
|
|
|
+import ProductType from '@/views/common/productType.js'
|
|
|
import { productPriceChangeList, getCurrentDealer } from '@/api/product'
|
|
|
// import { downloadExcel } from '@/libs/JGPrint.js'
|
|
|
export default {
|
|
|
name: 'ProductPriceChangeList',
|
|
|
- components: { STable, VSelect, rangeDate },
|
|
|
+ components: { STable, VSelect, rangeDate, ProductBrand, ProductType },
|
|
|
mixins: [commonMixin],
|
|
|
data () {
|
|
|
return {
|
|
@@ -168,9 +150,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
columns: [],
|
|
|
- total: 0,
|
|
|
- productBrandList: [], // 品牌下拉数据
|
|
|
- productTypeList: [] // 分类下拉数据
|
|
|
+ total: 0
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -293,34 +273,13 @@ export default {
|
|
|
// downloadExcel(res, '价格变更记录')
|
|
|
// })
|
|
|
},
|
|
|
- // 产品品牌 列表
|
|
|
- getProductBrand () {
|
|
|
- productBrandQuery({}).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- this.productBrandList = res.data
|
|
|
- } else {
|
|
|
- this.productBrandList = []
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
// 产品分类 列表
|
|
|
- getProductType () {
|
|
|
- productTypeQuery({}).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- this.productTypeList = res.data
|
|
|
- } else {
|
|
|
- this.productTypeList = []
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
pageInit () {
|
|
|
const _this = this
|
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
|
_this.setTableH()
|
|
|
})
|
|
|
this.getColumns()
|
|
|
- this.getProductBrand()
|
|
|
- this.getProductType()
|
|
|
},
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|