浏览代码

新建时传递sys_enterpriseid

xiaohaizhao 9 月之前
父节点
当前提交
d9b8aaa3f3
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      packageA/borrow/index.js

+ 5 - 2
packageA/borrow/index.js

@@ -19,6 +19,7 @@ Page({
             sort: []
         },
         createShow: false,
+        sys_enterpriseid: 0,
         types: [{
             name: "按借用合同借用"
         }, {
@@ -72,7 +73,6 @@ Page({
     }) {
         this.onCancel();
         if (detail.name == '按借用合同借用') {
-
             let usertype = wx.getStorageSync('userMsg').usertype,
                 that = this;
             if (usertype == 1) {
@@ -107,6 +107,7 @@ Page({
                             }
                         })}&radio=false`,
                         success() {
+                            that.data.sys_enterpriseid = item.sys_enterpriseid;
                             getApp().globalData.handleSelect = that.handleCreated.bind(this);
                         }
                     })
@@ -192,6 +193,7 @@ Page({
 
     },
     handleCreated(e) {
+        let that = this;
         wx.showModal({
             title: '提示',
             content: `是否确认选择“${e.item.title}”创建借用单`,
@@ -202,7 +204,8 @@ Page({
                     "id": 20230116092702,
                     "content": {
                         "sa_contractid": e.id[0],
-                        "sa_orderid": 0
+                        "sa_orderid": 0,
+                        "sys_enterpriseid": that.data.sys_enterpriseid
                     }
                 }).then(res => {
                     console.log("按套", res)