|
|
@@ -9,6 +9,7 @@ Page({
|
|
|
repetitionList: [],
|
|
|
isSubmit: false,
|
|
|
oldcontactsid: 0,
|
|
|
+ sys_phonebookid: 0,
|
|
|
form: [{
|
|
|
label: "客户(企业)",
|
|
|
error: false,
|
|
|
@@ -298,8 +299,8 @@ Page({
|
|
|
}) => {
|
|
|
if (confirm) {
|
|
|
form[index].value = item.name;
|
|
|
- console.log(item)
|
|
|
- that.data.oldcontactsid = item.contactsid
|
|
|
+ that.data.oldcontactsid = item.contactsid;
|
|
|
+ that.data.sys_phonebookid = item.sys_phonebookid;
|
|
|
if (item.phonenumber.indexOf('-') !== -1) {
|
|
|
form[index + 1].value = "1";
|
|
|
form[index + 2] = {
|
|
|
@@ -606,7 +607,8 @@ Page({
|
|
|
"name": data.name,
|
|
|
"telephone": "",
|
|
|
"phonenumber": data.isTelephone == 0 ? data.phonenumber || '' : data.telephone1.join("-") || '',
|
|
|
- oldcontactsid: this.data.oldcontactsid
|
|
|
+ oldcontactsid: this.data.oldcontactsid,
|
|
|
+ sys_phonebookid: this.data.sys_phonebookid || 0,
|
|
|
}
|
|
|
_Http.basic({
|
|
|
"id": 20221012163902,
|
|
|
@@ -620,7 +622,7 @@ Page({
|
|
|
})
|
|
|
console.log("新建客户", res)
|
|
|
if (res.msg != '成功') return wx.showToast({
|
|
|
- title: res.data,
|
|
|
+ title: res.msg,
|
|
|
icon: "none"
|
|
|
})
|
|
|
wx.showToast({
|