Преглед изворни кода

Merge branch 'master' of git.echepei.com:zhujiawei/Warehouse_management_ui into master

qukaidi пре 4 година
родитељ
комит
d55e8e5b33
1 измењених фајлова са 7 додато и 3 уклоњено
  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);
       });
     },
     // 撤销对账