|
|
@@ -194,6 +194,43 @@ Page({
|
|
|
getGroup() {
|
|
|
this.selectComponent("#Group").getList();
|
|
|
},
|
|
|
+ /* 处理新增联系人 */
|
|
|
+ handleSelectContacts(contactsids) {
|
|
|
+ let that = this;
|
|
|
+ wx.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '是否确认添加联系人',
|
|
|
+ complete: ({
|
|
|
+ confirm
|
|
|
+ }) => {
|
|
|
+ if (confirm) {
|
|
|
+ _Http.basic({
|
|
|
+ "id": 20221111131104,
|
|
|
+ "content": {
|
|
|
+ "sa_project_contactsid": 0,
|
|
|
+ contactsids,
|
|
|
+ "sa_projectid": that.data.sa_projectid,
|
|
|
+ "remarks": ""
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log("项目添加联系人", res)
|
|
|
+ if (res.msg != '成功') return wx.showToast({
|
|
|
+ title: res.data,
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ wx.showToast({
|
|
|
+ title: '添加成功',
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ setTimeout(() => {
|
|
|
+ wx.navigateBack();
|
|
|
+ that.partialRenewal(true);
|
|
|
+ }, 300)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//局部数据更新 tabs
|
|
|
partialRenewal(init = false) {
|
|
|
const id = this.data.detail.sa_projectid;
|