|
@@ -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)
|