Kaynağa Gözat

问题修改

changhaoning 1 yıl önce
ebeveyn
işleme
ca0b9d3cbe
2 değiştirilmiş dosya ile 25 ekleme ve 24 silme
  1. 1 1
      src/view/mst/customer/index.vue
  2. 24 23
      src/view/mst/goods/index.vue

+ 1 - 1
src/view/mst/customer/index.vue

@@ -8,7 +8,7 @@
         <BaseIndexButton ref="search" name="search"></BaseIndexButton>
         <BaseIndexButton ref="clear" name="clear"></BaseIndexButton>
         <BaseIndexButton ref="edit" name="edit"></BaseIndexButton>
-        <BaseIndexButton ref="check" name="check" :isMustChooseFlag="false"></BaseIndexButton>
+        <BaseIndexButton ref="check" name="check"></BaseIndexButton>
       </template>
       <template #right>
         <BaseIndexButton ref="add" name="add"></BaseIndexButton>

+ 24 - 23
src/view/mst/goods/index.vue

@@ -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();
       }