Răsfoiți Sursa

fix: 采购申请审批供应商不显示问题

liujt 5 zile în urmă
părinte
comite
e39070dfd3

+ 22 - 1
src/views/bpm/handleTask/components/materialPlan/detailDialog.vue

@@ -113,6 +113,11 @@
   import { getById } from '@/api/bpm/components/materialPlan/index';
   import { getFile } from '@/api/system/file';
   import timeDialog from './timeDialog';
+  import {
+    getBomPageCategoryId,
+    contactList,
+    getBomGetById
+  } from '@/api/bpm/components/bomApprover';
 
   export default {
     components: {
@@ -129,6 +134,7 @@
       return {
         visible: false,
         title: '采购配料计划',
+        gysList: [],
 
         // 表格列配置
         columns: [
@@ -287,7 +293,10 @@
             label: '供应商',
             slot: 'supplierName',
             action: 'supplierName',
-            align: 'center'
+            align: 'center',
+            formatter: (row) => {
+              return this.gysList.find((item) => item.id === row.supplierId)?.name || '-';
+            }
           },
 
           {
@@ -317,9 +326,21 @@
       };
     },
     created() {
+      this.getContactList();
       this.getDetailData(this.businessId);
     },
     methods: {
+      getContactList() {
+        let param = {
+          pageNum: 1,
+          type: 2,
+          size: -1,
+          status: 1
+        };
+        contactList(param).then((res) => {
+          this.gysList = res.list;
+        });
+      },
       downloadFile(file) {
         getFile({ objectName: file.storePath }, file.name);
       },