Explorar el Código

移除经销商ID 后端取默认

xiaohaizhao hace 2 años
padre
commit
2f0074575c
Se han modificado 2 ficheros con 2 adiciones y 9 borrados
  1. 1 5
      pages/bankAccount/index.js
  2. 1 4
      pages/bankAccount/update.js

+ 1 - 5
pages/bankAccount/index.js

@@ -3,7 +3,6 @@ Page({
   data: {
     "content": {
       nocache: true,
-      sys_enterpriseid: "",
       pageNumber: 1,
       pageTotal: 1,
       "where": {
@@ -13,9 +12,6 @@ Page({
     }
   },
   onLoad(options) {
-    this.setData({
-      "content.sys_enterpriseid": options.id
-    })
     this.getList(true);
   },
   /* 获取产品 */
@@ -48,7 +44,7 @@ Page({
   }) {
     if (getApp().globalData.handleSelect) return getApp().globalData.handleSelect(detail);
     wx.navigateTo({
-      url: `/pages/bankAccount/update?item=${JSON.stringify(detail)}&id=${detail.sys_enterpriseid}`,
+      url: `/pages/bankAccount/update?item=${JSON.stringify(detail)}`,
     })
   },
   /* 开始搜索 */

+ 1 - 4
pages/bankAccount/update.js

@@ -1,6 +1,5 @@
 const _Http = getApp().globalData.http;
-let sys_enterpriseid = null,
-  sys_enterprise_bankid = 0;
+let sys_enterprise_bankid = 0;
 
 Page({
   data: {
@@ -50,7 +49,6 @@ Page({
     isDelete: false, //是否允许删除
   },
   onLoad(options) {
-    sys_enterpriseid = options.id
     if (options.item) {
       let item = JSON.parse(options.item);
       sys_enterprise_bankid = item.sys_enterprise_bankid;
@@ -66,7 +64,6 @@ Page({
   },
   submit() {
     let content = this.selectComponent("#Form").submit();
-    content.sys_enterpriseid = sys_enterpriseid;
     content.sys_enterprise_bankid = sys_enterprise_bankid;
     content.isdefault = 0;
     _Http.basic({