|
@@ -77,7 +77,7 @@ Page({
|
|
|
}],
|
|
}],
|
|
|
"content": {
|
|
"content": {
|
|
|
"sat_orderclueid": 0,
|
|
"sat_orderclueid": 0,
|
|
|
- "enterprisename":"",
|
|
|
|
|
|
|
+ "enterprisename": "",
|
|
|
"name": "",
|
|
"name": "",
|
|
|
"phonenumber": "",
|
|
"phonenumber": "",
|
|
|
"province": "",
|
|
"province": "",
|
|
@@ -86,15 +86,14 @@ Page({
|
|
|
"address": "",
|
|
"address": "",
|
|
|
"notes": "",
|
|
"notes": "",
|
|
|
"cluesource": "",
|
|
"cluesource": "",
|
|
|
- "sat_orderclueid":0,//活动id,当活动id大于0是默认业务员创建
|
|
|
|
|
- "isprivate":1//0表示公海,1表示私域
|
|
|
|
|
|
|
+ "sat_orderclueid": 0, //活动id,当活动id大于0是默认业务员创建
|
|
|
|
|
+ "isprivate": 1 //0表示公海,1表示私域
|
|
|
},
|
|
},
|
|
|
disabled: true
|
|
disabled: true
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
- if (options.sat_orderclueid) {
|
|
|
|
|
- this.data.form.sat_orderclueid = options.sat_orderclueid
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (options.sat_orderclueid) this.data.content.sat_orderclueid = options.sat_orderclueid;
|
|
|
|
|
+ if (options.sa_customersid) this.data.content.sa_customersid = options.sa_customersid; //关联客户ID
|
|
|
if (options.rowData) {
|
|
if (options.rowData) {
|
|
|
// wx.setNavigationBarTitle({
|
|
// wx.setNavigationBarTitle({
|
|
|
// title: 'title',
|
|
// title: 'title',
|
|
@@ -111,8 +110,9 @@ Page({
|
|
|
}
|
|
}
|
|
|
return v
|
|
return v
|
|
|
}),
|
|
}),
|
|
|
- 'form[0].value':data.enterprisename_customer,
|
|
|
|
|
- 'content.sat_orderclueid':data.sat_orderclueid
|
|
|
|
|
|
|
+ 'form[0].value': data.enterprisename_customer,
|
|
|
|
|
+ 'content.sat_orderclueid': data.sat_orderclueid,
|
|
|
|
|
+ 'content.sa_customersid': data.sa_customersid
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -121,15 +121,13 @@ Page({
|
|
|
...this.data.content,
|
|
...this.data.content,
|
|
|
...this.selectComponent("#Form").submit()
|
|
...this.selectComponent("#Form").submit()
|
|
|
};
|
|
};
|
|
|
- content.sat_orderclueid = this.data.content.sat_orderclueid
|
|
|
|
|
if (content.province.length > 0) {
|
|
if (content.province.length > 0) {
|
|
|
content.city = content.province[1]
|
|
content.city = content.province[1]
|
|
|
content.county = content.province[2]
|
|
content.county = content.province[2]
|
|
|
content.province = content.province[0]
|
|
content.province = content.province[0]
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
_Http.basic({
|
|
_Http.basic({
|
|
|
- "id":"20221205162402",
|
|
|
|
|
|
|
+ "id": "20221205162402",
|
|
|
content
|
|
content
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
console.log("添加线索", res)
|
|
console.log("添加线索", res)
|
|
@@ -141,11 +139,12 @@ Page({
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
wx.navigateBack();
|
|
wx.navigateBack();
|
|
|
getCurrentPages().forEach(v => {
|
|
getCurrentPages().forEach(v => {
|
|
|
- console.log(v,'路径');
|
|
|
|
|
- if(v.__route__=='packageA/saleClue/detail'){
|
|
|
|
|
|
|
+ if (v.__route__ == 'packageA/saleClue/detail') {
|
|
|
v.getDetail();
|
|
v.getDetail();
|
|
|
- }else if(v.__route__=='packageA/saleClue/index'){
|
|
|
|
|
|
|
+ } else if (v.__route__ == 'packageA/saleClue/index') {
|
|
|
v.getList(true);
|
|
v.getList(true);
|
|
|
|
|
+ } else if (['packageA/setclient/detail', 'packageA/publicCustomer/detail'].includes(v.__route__)) {
|
|
|
|
|
+ v.selectComponent("#Clue").getList(this.data.content.sa_customersid, true)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}, 300)
|
|
}, 300)
|