Browse Source

no message

codeMan 2 years ago
parent
commit
f424bf6b81
3 changed files with 21 additions and 13 deletions
  1. 0 1
      packageA/invoice/update.js
  2. 8 0
      pages/tabbar/home/index.js
  3. 13 12
      select/agent/index.js

+ 0 - 1
packageA/invoice/update.js

@@ -24,7 +24,6 @@ Page({
                         },
                     },
                 },
-                interrupt: true,
                 query: '&radio=true',
                 value: "",
                 placeholder: "选择开票抬头信息",

+ 8 - 0
pages/tabbar/home/index.js

@@ -97,6 +97,14 @@ Page({
 				icon: "icon-shujuchaxun"
 			})
 			/* ------------------------------- */
+			gridList.push({
+				name: "打款凭证",
+				path: "/packageA/remitVoucher/index",
+				color: "#F29C37",
+				bColor: "#FCF6EF",
+				icon: "icon-shujuchaxun"
+			})
+			/* ------------------------------- */
 			this.setData({
 				gridList
 			})

+ 13 - 12
select/agent/index.js

@@ -10,20 +10,20 @@ Page({
     showName: "enterprisename"
   },
   onLoad(options) {
-    if (options.item) {
-      let item = JSON.parse(options.item);
-      this.setData({
-        item,
-        params: item.params
-      });
+    if (options.params) {
+        let params = JSON.parse(options.params);
+        if (!params.content.pageNumber || !params.content.pageTotal) {
+            params.content.pageNumber = 1;
+            params.content.pageTotal = 1;
+        }
+        this.setData({
+            params
+        });
     }
-    if (options.params) this.setData({
-      params: JSON.parse(options.params)
-    });
     this.setData({
-      radio: options.radio ? true : false,
-      idname: options.idname || this.data.idname,
-      showName: options.showName || this.data.showName,
+        radio: options.radio ? true : false,
+        idname: options.idname || this.data.idname,
+        showName: options.showName || this.data.showName,
     });
     this.getList()
   },
@@ -81,6 +81,7 @@ Page({
           return data ? data[this.data.showName] : ""
         }), result]
       }
+      console.log(obj);
     getApp().globalData.handleSelect && getApp().globalData.handleSelect(obj)
   },
   /* 开始搜索 */