Browse Source

区分车队仓储财务模块查看审批流传id 问题

阿伏兔 4 years ago
parent
commit
c18583a945
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/views/finance/contrast/index.vue

+ 7 - 3
src/views/finance/contrast/index.vue

@@ -1594,10 +1594,14 @@ export default {
     addOrUpdateHandle() {
       this.addOrUpdateVisible = true;
       this.addOrUpdateVisib = false;
-      let id = "448";
-      let actId = "110";
+      let id = null;
+      if (this.queryParams.fId) {
+        id = this.queryParams.fId
+      } else {
+        id = this.queryParams.id
+      }
       this.$nextTick(() => {
-        this.$refs.addOrUpdate.init(this.queryParams.fId, this.contrastId);
+        this.$refs.addOrUpdate.init(id, this.contrastId);
       });
     },
     // 撤销对账