Pārlūkot izejas kodu

feat: 采购需求选择PBOM增加物品编码列显示

liujt 1 nedēļu atpakaļ
vecāks
revīzija
14ae90d4ca
1 mainītis faili ar 9 papildinājumiem un 1 dzēšanām
  1. 9 1
      src/BIZComponents/cBom-list.vue

+ 9 - 1
src/BIZComponents/cBom-list.vue

@@ -168,6 +168,13 @@
             showOverflowTooltip: true,
             showOverflowTooltip: true,
             minWidth: 110
             minWidth: 110
           },
           },
+          {
+            prop: 'categoryCode',
+            label: '物品编码',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 110
+          },
           {
           {
             prop: 'name',
             prop: 'name',
             label: '名称',
             label: '名称',
@@ -227,7 +234,8 @@
         this.loading = true;
         this.loading = true;
         this.datasource = await getCBomAPI({
         this.datasource = await getCBomAPI({
           categoryId: this.currentRow?.id,
           categoryId: this.currentRow?.id,
-          bomType: 1
+          bomType: 1,
+          isLatestVersion: true
           // produceType: 2
           // produceType: 2
         });
         });
         this.oldDatasource = this.datasource;
         this.oldDatasource = this.datasource;