xiaohaizhao 10 месяцев назад
Родитель
Сommit
87943af6ec
2 измененных файлов с 6 добавлено и 6 удалено
  1. 3 3
      packageA/finishforecast/detail.js
  2. 3 3
      packageA/invoiceforecast/detail.js

+ 3 - 3
packageA/finishforecast/detail.js

@@ -21,7 +21,7 @@ Page({
         }],
         "content": {
             "type": 1,
-            "dataid": 0,
+            "dataid": wx.getStorageSync('userMsg').departmentid,
             "baseonproject": 1,
             "title": ""
         },
@@ -86,7 +86,7 @@ Page({
         if (detail) this.setData({
             active: null,
             "content.type": 1,
-            "content.dataid": 0,
+            "content.dataid": wx.getStorageSync('userMsg').departmentid,
         });
         this.selectComponent("#organization").initDepAndUser();
         this.getRests();
@@ -113,7 +113,7 @@ Page({
             this.selectComponent("#organization").initDepAndUser()
             this.setData({
                 active: null,
-                'content.dataid': 0,
+                "content.dataid": wx.getStorageSync('userMsg').departmentid,
                 'content.type': 1,
                 isonlydep: false
             })

+ 3 - 3
packageA/invoiceforecast/detail.js

@@ -14,7 +14,7 @@ Page({
         active: null,
         "content": {
             "type": 1,
-            "dataid": 0,
+            "dataid": wx.getStorageSync('userMsg').departmentid,
             "baseonproject": 0,
             "title": ""
         },
@@ -86,7 +86,7 @@ Page({
         if (detail) this.setData({
             active: null,
             "content.type": 1,
-            "content.dataid": 0,
+            "content.dataid": wx.getStorageSync('userMsg').departmentid,
         });
         this.selectComponent("#organization").initDepAndUser();
         this.getRests();
@@ -112,7 +112,7 @@ Page({
             this.selectComponent("#organization").initDepAndUser()
             this.setData({
                 active: null,
-                'content.dataid': 0,
+                "content.dataid": wx.getStorageSync('userMsg').departmentid,
                 'content.type': 1,
                 isonlydep: false
             })