Przeglądaj źródła

fix(采购管理): 修复生成合同按钮显示条件并添加创建人列

liujt 3 miesięcy temu
rodzic
commit
50c53eab85
1 zmienionych plików z 12 dodań i 2 usunięć
  1. 12 2
      src/views/purchasingManage/inquiryManage/index.vue

+ 12 - 2
src/views/purchasingManage/inquiryManage/index.vue

@@ -97,7 +97,7 @@
               v-if="
                 [2].includes(row.status) &&
                 ((isAddContract == 1 && row.genContractNum == 0) ||
-                  isAddContract == 0)
+                  isAddContract == 0) && row.createUserId == userInfo.id
               "
             >
               生成合同
@@ -309,6 +309,13 @@
             showOverflowTooltip: true,
             minWidth: 180
           },
+          {
+            prop: 'createUserName',
+            label: '创建人',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 180
+          },
           {
             prop: 'status',
             label: '状态',
@@ -338,11 +345,14 @@
             fixed: 'right'
           }
         ],
-        cacheKeyUrl: 'eos-151ba34e-inquiryManage'
+        cacheKeyUrl: 'eos-151ba34e-inquiryManage',
+        userInfo: {}
       };
     },
     computed: {},
     created() {
+      this.userInfo = this.$store.getters.user.info;
+      console.log('userInfo~~~', userInfo);
       this.getTreeData();
       //是否可以重复生成合同//0否 1是
       parameterGetByCode({