From 0019a35d5e99e23cd04a5b3d16ae2708d64f029f Mon Sep 17 00:00:00 2001
From: douzhuo <17611323298@163.com>
Date: Thu, 23 Feb 2023 16:15:43 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E6=8E=A5=E5=BE=85=E7=BB=93=E6=9D=9F?=
=?UTF-8?q?=E5=89=8D=E9=9D=A2=E6=8E=A5=E5=BE=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
env/sh.js | 2 +-
pages/center/Piabodata/Userinsightinto.vue | 2 +-
pages/center/consumer/edit.vue | 19 +++---
pages/mine/calibration.vue | 1 -
pages/mine/reception/addreception.vue | 69 ++++++++++++++++------
5 files changed, 62 insertions(+), 31 deletions(-)
diff --git a/env/sh.js b/env/sh.js
index b5c9332..0f2c196 100644
--- a/env/sh.js
+++ b/env/sh.js
@@ -1,5 +1,5 @@
const ENV_PATH = {
- baseUrl: 'http://192.168.31.149:9090/api', // 胜浩
+ baseUrl: 'http://192.168.31.86:9090/api', // 胜浩
}
module.exports = ENV_PATH
\ No newline at end of file
diff --git a/pages/center/Piabodata/Userinsightinto.vue b/pages/center/Piabodata/Userinsightinto.vue
index eff184e..bf0bc10 100644
--- a/pages/center/Piabodata/Userinsightinto.vue
+++ b/pages/center/Piabodata/Userinsightinto.vue
@@ -387,7 +387,7 @@
.boxtittab {
width: 100%;
flex-direction: column;
- border: none;
+ border: none;
.tabbox {
width: 100%;
}
diff --git a/pages/center/consumer/edit.vue b/pages/center/consumer/edit.vue
index ae14b53..50d7c9d 100644
--- a/pages/center/consumer/edit.vue
+++ b/pages/center/consumer/edit.vue
@@ -40,8 +40,8 @@
联系电话
-
+
@@ -96,7 +96,8 @@
-
+
{{item.name}}
@@ -198,7 +199,7 @@
this.getdetail()
this.getFromSource()
},
-
+
methods: {
// 获取客户来源
getFromSource() {
@@ -271,7 +272,7 @@
} else {
if (this.form.isShow == 1 && this.form.phone.length == 11) {
this.form.showPhone = this.form.phone.substr(0, 3) + '****' + this.form.phone.substr(7)
-
+
} else {
this.form.showPhone = this.form.phone
}
@@ -301,7 +302,7 @@
item1.children.map(item => {
if (item.isInterval == 0) {
item.label = item.name + item.unit + '-' + item.endName + item
- .unit;
+ .unit;
} else {
item.label = item.name
}
@@ -313,7 +314,7 @@
// return
})
},
-
+
// 输入框获取焦点
callPhoneFocus() {
if (this.form.isShow == 1 && this.form.showPhone == this.form.showPhones) {
@@ -321,7 +322,7 @@
this.$forceUpdate()
}
},
-
+
// 输入框失去焦点
callPhoneBlur() {
if (this.form.isShow == 1 && this.form.showPhone == '') {
@@ -340,7 +341,7 @@
})
return
}
-
+
if (this.form.showPhones != this.form.showPhone) {
this.form.phone = this.form.showPhone
}
diff --git a/pages/mine/calibration.vue b/pages/mine/calibration.vue
index ac77ba8..173e7d9 100644
--- a/pages/mine/calibration.vue
+++ b/pages/mine/calibration.vue
@@ -83,7 +83,6 @@
projectId: uni.getStorageSync('buildingID').id,
}
let str = []
- let indexs = 0; //
try {
this.allList.forEach(item => {
if (item.mustSelected == 0) {
diff --git a/pages/mine/reception/addreception.vue b/pages/mine/reception/addreception.vue
index 9d090a8..8ea2ef6 100644
--- a/pages/mine/reception/addreception.vue
+++ b/pages/mine/reception/addreception.vue
@@ -80,7 +80,8 @@
-
+ 、
+
@@ -100,6 +101,11 @@
+
+
+
@@ -125,6 +131,7 @@
projectId: '',
replaceReception: 0,
marketingBusiness: '', // 销讲业务默认为第一个
+ endRecordFlag: 1, // 0:结束,1:一起接待
},
showSourceName: '', // 展示文字
shifoinfo: 0, // 高级权限 项目是否能指派顾问
@@ -141,8 +148,12 @@
fdFlag: null,
isPass: false, // 当前顾问是否正在接待
fromBack: false, // 从选择顾问页面跳回
-
-
+
+ beyoundConfirmText: '结束', // 多接待间隔确定文字
+ beyoundCancelText: '一起接待', // 多接待间隔确定文字
+ beyondContent: '', // 文字描述内容
+ showBeyound: false, // 展示多接待间隔超时提示窗
+
templateList: [], // 销讲业务
showTemplate: false, // 展示选择销讲业务弹窗
templateName: '', // 销讲业务类型文字
@@ -172,12 +183,23 @@
onShow() {
this.parames.projectId = uni.getStorageSync('buildingID').id;
- console.log(this.$u)
this.init()
this.getFreeList();
this.getFromSource();
},
methods: {
+ // 确认的方法(结束)
+ beyoundConfirm() {
+ this.parames.endRecordFlag = 0
+ this.saveAddreception()
+ },
+
+ // 取消的方法(取消)
+ beyoundCancel() {
+ this.parames.endRecordFlag = 1
+ this.saveAddreception()
+ },
+
// 获取销讲业务
getMarketingBusiness() {
this.$u.get('/customer/marketingBusiness', {
@@ -202,7 +224,6 @@
'Access-Token': uni.getStorageSync('weapp_session_login_data').token
},
success: (data) => {
- console.log(data)
if (data.data.code == 10000) {
this.list = data.data.data
}
@@ -229,13 +250,23 @@
this.parames.replaceReception = 1;
this.baochunfun()
},
- btnSave() {
- if (this.isBand) return
- this.save()
- },
save() {
+ this.$u.get('/customer/findByAgentIdNotEnd', {
+ agentId: this.parames.agentId
+ }).then(res => {
+ console.log(res, 'asdaskljdalksjdlksajdksl')
+ if (res > 0) {
+ this.beyondContent = `【${this.text}】正在接待客户,是否要结束现有的接待?`
+ this.showBeyound = true
+ } else {
+ this.saveAddreception()
+ }
+ })
+ },
+ // 新增接待
+ saveAddreception() {
// 校验当前登录人是否是顾问
let obj = this.freeList.find(item => {
return item.agentId == this.userInfo.accountId
@@ -273,7 +304,8 @@
this.$u.post("customer/daitiReception", {
phone: that.parames.phone,
projectId: that.parames.projectId,
- agentId: that.parames.agentId
+ agentId: that.parames.agentId,
+ endRecordFlag: that.parames.endRecordFlag
}).then(res => {
if (res.unchecked == 0) {
that.baochunfun()
@@ -284,7 +316,6 @@
that.baochunfun()
this.tap = false;
} else {
- console.log("zo")
if (res.assign == null && res.replacement == null) {
that.baochunfun()
this.tap = false;
@@ -299,7 +330,6 @@
this.isBand = false
} else {
that.daitiReceptionobj = res;
- console.log(that.daitiReceptionobj)
that.content = "此客户的顾问为【" + res.owner.name + "】,确认让【" + res.replacement.name +
"】代接待吗?"
that.confirmtext = res.replacement.name + "代接待", //确认文字
@@ -314,7 +344,9 @@
that.show = true;
this.isBand = false
})
+
},
+
baochunfun() {
const {
dataCode
@@ -393,7 +425,7 @@
Buildingselection() {
this.Showhiddenunits = true;
},
-
+
showTemplateSelect() {
this.showTemplate = true;
},
@@ -401,12 +433,11 @@
this.Showhiddenunits = false;
},
confirm(e) {
- console.log(e)
this.showSourceName = e[0].label;
this.parames.sourceId = e[0].value;
this.Showhiddenunits = false;
},
-
+
// 销讲业务方法
templateCancel() {
this.showTemplate = false;
@@ -416,7 +447,7 @@
this.templateName = e[0].label;
this.parames.marketingBusiness = e[0].value;
},
-
+
init() {
uni.request({
url: config.service.getSelfAssignedByHouseId + "?houseId=" + this.parames.projectId,
@@ -453,8 +484,8 @@
this.parames.agentId = item.agentId;
}
}
- })
- })
+ })
+ })
},
}
};
@@ -501,7 +532,7 @@
min-height: 100vh;
display: flex;
flex-direction: column;
-
+
.cented-boxs {
flex-grow: 1;
}