|
|
@@ -1,15 +1,24 @@
|
|
|
const _Http = getApp().globalData.http;
|
|
|
Component({
|
|
|
properties: {
|
|
|
- sa_projectid: {type:String},
|
|
|
- disabled: {type:Boolean},
|
|
|
- isInsert: {type:Boolean}
|
|
|
+ sa_projectid: {
|
|
|
+ type: String
|
|
|
+ },
|
|
|
+ disabled: {
|
|
|
+ type: Boolean
|
|
|
+ },
|
|
|
+ isInsert: {
|
|
|
+ type: Boolean
|
|
|
+ }
|
|
|
},
|
|
|
data: {
|
|
|
typeShow: false,
|
|
|
typeList: [{
|
|
|
- name: '项目协议',
|
|
|
+ name: '经销项目协议',
|
|
|
route: 'type2'
|
|
|
+ }, {
|
|
|
+ name: '直销项目协议',
|
|
|
+ route: 'type3'
|
|
|
}, {
|
|
|
name: '居间协议',
|
|
|
route: 'type4'
|
|
|
@@ -80,11 +89,12 @@ Component({
|
|
|
typeSelect({
|
|
|
detail
|
|
|
}) {
|
|
|
- let type = 'type4';
|
|
|
+ // let type = 'type4';
|
|
|
let page = getCurrentPages()[getCurrentPages().length - 1];
|
|
|
- if (detail.name != '居间协议') type = page.selectComponent("#Tags").data.systemtag.some(v => v == '直销') ? 'type3' : 'type2';
|
|
|
+ // if (detail.name != '居间协议') type = page.selectComponent("#Tags").data.systemtag.some(v => v == '直销') ? 'type3' : 'type2';
|
|
|
+ console.log(detail)
|
|
|
wx.navigateTo({
|
|
|
- url: `/packageA/contract/add/${type}/index?project=${JSON.stringify(page.data.detail)}`,
|
|
|
+ url: `/packageA/contract/add/${detail.route}/index?project=${JSON.stringify(page.data.detail)}`,
|
|
|
})
|
|
|
this.typeCancel();
|
|
|
},
|