|
|
@@ -36,8 +36,8 @@
|
|
|
<!-- 左边部分 -->
|
|
|
<DkTable slot="left" ref="leftTable" :data="leftData" :height="tableHeight" :page-flag="false"
|
|
|
:page-total-flag="false" :choose-flag="false" :show-setting-flag="false"
|
|
|
- @current-change="currentChangeEvent($event)" primaryKey="seriesId">
|
|
|
- <DkTableColumn field="seriesName" />
|
|
|
+ @current-change="currentChangeEvent($event)" primaryKey="brandId">
|
|
|
+ <DkTableColumn field="brandName" :title="this.$t('brandIds')" />
|
|
|
</DkTable>
|
|
|
|
|
|
<!-- 右边部分 -->
|
|
|
@@ -78,7 +78,7 @@ export default {
|
|
|
leftData: [],
|
|
|
tableData: [],
|
|
|
brandList: [],
|
|
|
- seriesId:null,
|
|
|
+ brandId:null,
|
|
|
split: 0.15,
|
|
|
minSplit: 0.15,
|
|
|
searchContent:
|
|
|
@@ -89,16 +89,16 @@ export default {
|
|
|
{
|
|
|
itemCode: 'skuModel',
|
|
|
},
|
|
|
- {
|
|
|
- itemCode: 'brandIds',
|
|
|
- valueFormat: {
|
|
|
- code: 'goodsBrandList',
|
|
|
- data: [],
|
|
|
- valueKey: 'brandId',
|
|
|
- labelKey: 'brandName'
|
|
|
- },
|
|
|
- valueKind: 'M-CHOICE'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // itemCode: 'brandIds',
|
|
|
+ // valueFormat: {
|
|
|
+ // code: 'goodsBrandList',
|
|
|
+ // data: [],
|
|
|
+ // valueKey: 'brandId',
|
|
|
+ // labelKey: 'brandName'
|
|
|
+ // },
|
|
|
+ // valueKind: 'M-CHOICE'
|
|
|
+ // },
|
|
|
self.$config.flgValidSearch
|
|
|
],
|
|
|
}
|
|
|
@@ -112,7 +112,7 @@ export default {
|
|
|
*/
|
|
|
initData(){
|
|
|
// 查询商品系列数据
|
|
|
- this.getSeriesData();
|
|
|
+ // this.getSeriesData();
|
|
|
// 查询品牌信息
|
|
|
this.getGoodsBrand();
|
|
|
},
|
|
|
@@ -125,6 +125,7 @@ export default {
|
|
|
getGoodsBrand(){
|
|
|
this.excute(this.$service.goodsBrandService, this.$service.goodsBrandService.selectByCond, {}).then(res => {
|
|
|
if (res.code === this.$config.SUCCESS_CODE) {
|
|
|
+ this.leftData = res.data.list;
|
|
|
let list = this.searchContent.filter(it => it.valueFormat.code == 'goodsBrandList')
|
|
|
if (list.length > 0) {
|
|
|
list[0].valueFormat.data = res.data.list
|
|
|
@@ -148,7 +149,7 @@ export default {
|
|
|
* @date : 2024/4/9 9:10
|
|
|
*/
|
|
|
setSearchParams(params){
|
|
|
- params.seriesId = this.seriesId;
|
|
|
+ params.brandId = this.brandId;
|
|
|
return params;
|
|
|
},
|
|
|
|
|
|
@@ -157,13 +158,13 @@ export default {
|
|
|
* @author : 宋扬
|
|
|
* @date : 2024/4/7 15:10
|
|
|
*/
|
|
|
- getSeriesData(){
|
|
|
- return this.excute(this.$service.goodsSeriesService, this.$service.goodsSeriesService.getGoodsSeriesList, {}).then(res => {
|
|
|
- if (res.code === this.$config.SUCCESS_CODE) {
|
|
|
- this.leftData = res.data;
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+ // getSeriesData(){
|
|
|
+ // return this.excute(this.$service.goodsSeriesService, this.$service.goodsSeriesService.getGoodsSeriesList, {}).then(res => {
|
|
|
+ // if (res.code === this.$config.SUCCESS_CODE) {
|
|
|
+ // this.leftData = res.data;
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // },
|
|
|
|
|
|
/**
|
|
|
* @desc : 右侧列表行变化事件
|
|
|
@@ -172,7 +173,7 @@ export default {
|
|
|
*/
|
|
|
currentChangeEvent({row}){
|
|
|
if (row != null){
|
|
|
- this.seriesId = row.seriesId;
|
|
|
+ this.brandId = row.brandId;
|
|
|
//调用查询事件
|
|
|
this.searchData();
|
|
|
}
|