|
@@ -72,23 +72,62 @@ Page({
|
|
|
}) {
|
|
|
this.onCancel();
|
|
|
if (detail.name == '按借用合同借用') {
|
|
|
- wx.navigateTo({
|
|
|
- url: `/select/contract/index?params=${JSON.stringify({
|
|
|
- "id": 20230114092502,
|
|
|
- "content": {
|
|
|
- nocache: true,
|
|
|
- "pageNumber": 1,
|
|
|
- "pageTotal": 1,
|
|
|
- "total": null,
|
|
|
- "pageSize": 20,
|
|
|
- typemx:"合同借用",
|
|
|
- "where": {
|
|
|
- "condition": ""
|
|
|
+
|
|
|
+ let usertype = wx.getStorageSync('userMsg').usertype;
|
|
|
+ if (usertype == 1) {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/select/agent/index?params=${JSON.stringify({
|
|
|
+ "id": 20220920083901,
|
|
|
+ "content": {
|
|
|
+ nocache:true,
|
|
|
+ "where": {
|
|
|
+ "condition": "",
|
|
|
+ "type":9,
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })}&radio=true`,
|
|
|
+ })
|
|
|
+ getApp().globalData.handleSelect = function ({
|
|
|
+ item
|
|
|
+ }) {
|
|
|
+ console.log(item)
|
|
|
+ wx.redirectTo({
|
|
|
+ url: `/select/contract/index?params=${JSON.stringify({
|
|
|
+ "id": 20230114092502,
|
|
|
+ "content": {
|
|
|
+ nocache: true,
|
|
|
+ "pageNumber": 1,
|
|
|
+ "sys_enterpriseid":item.sys_enterpriseid,
|
|
|
+ "pageTotal": 1,
|
|
|
+ "total": null,
|
|
|
+ "pageSize": 20,
|
|
|
+ "where": {
|
|
|
+ "condition": ""
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })}&radio=false`
|
|
|
+ })
|
|
|
+ getApp().globalData.handleSelect = this.handleCreated.bind(this);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/select/contract/index?params=${JSON.stringify({
|
|
|
+ "id": 20230114092502,
|
|
|
+ "content": {
|
|
|
+ nocache: true,
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageTotal": 1,
|
|
|
+ "total": null,
|
|
|
+ "pageSize": 20,
|
|
|
+ typemx:"合同借用",
|
|
|
+ "where": {
|
|
|
+ "condition": ""
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- })}&radio=false`
|
|
|
- })
|
|
|
- getApp().globalData.handleSelect = this.handleCreated.bind(this);
|
|
|
+ })}&radio=false`
|
|
|
+ })
|
|
|
+ getApp().globalData.handleSelect = this.handleCreated.bind(this);
|
|
|
+ }
|
|
|
} else {
|
|
|
if (this.data.userrole == '业务员') {
|
|
|
wx.navigateTo({
|