Browse Source

提交修改

new23.10.9
风继续吹 1 year ago
parent
commit
5b243fd5e2
5 changed files with 148 additions and 23 deletions
  1. +34
    -4
      App.vue
  2. +2
    -2
      manifest.json
  3. +33
    -4
      pages/center/Piabodata/Userinsightinto.vue
  4. +16
    -0
      pages/index/consumer/index.vue
  5. +63
    -13
      pages/mine/details2.vue

+ 34
- 4
App.vue View File

@@ -5,6 +5,10 @@
var config = require("./config"); var config = require("./config");
export default { export default {
onLaunch(options) { onLaunch(options) {
uni.$on('sendStayTime', (data) => {
this.getTimeChecks(data)
})

this.setTabbarItems() // 设置tabbar this.setTabbarItems() // 设置tabbar
// 获取用户信息 // 获取用户信息
uni.getSystemInfo({ uni.getSystemInfo({
@@ -27,11 +31,11 @@
bulidIngObj: uni.getStorageSync('buildingID'), bulidIngObj: uni.getStorageSync('buildingID'),
}; };
}, },
onLoad() { onLoad() {
this.setTabbarItems() this.setTabbarItems()
}, },
methods: { methods: {


// 设置底部导航栏 // 设置底部导航栏
@@ -152,8 +156,7 @@
serviceId: "test", serviceId: "test",
recordId: data.id recordId: data.id
}, },
success: (data) => {
}
success: (data) => {}
}) })
}, },
// 时分秒转换为秒 // 时分秒转换为秒
@@ -342,10 +345,37 @@
if (typeof token.token != "string") { if (typeof token.token != "string") {
return return
} else {} } else {}
// 中途杀死进程退出小程序后重新进入需要重新提交
if (uni.getStorageSync('StayTimeDetails2-star') && uni.getStorageSync(
'StayTimeDetails2-end') && uni.getStorageSync('StayTimeDetails2-watch')) {
this.getTimeChecks(uni.getStorageSync('StayTimeDetails2-watch'))
}
}, },


onHide() {},


methods: { methods: {
// 纪录当前停留时间details2页面
getTimeChecks(data) {
console.log('sendStayTime', data)
let [a, b] = [uni.getStorageSync('StayTimeDetails2-star'), uni.getStorageSync(
'StayTimeDetails2-end')]
let time = (Number(b) - Number(a)) / 1000 / 60
this.$u.post('/customer/getCheckTheTime', {
cusId: data, //接待id
standingTime: time //停留时间
}).then(res => {
uni.removeStorageSync('StayTimeDetails2-star')
uni.removeStorageSync('StayTimeDetails2-end')
uni.removeStorageSync('StayTimeDetails2-watch')
}).catch(() => {
uni.removeStorageSync('StayTimeDetails2-star')
uni.removeStorageSync('StayTimeDetails2-end')
uni.removeStorageSync('StayTimeDetails2-watch')
})
},
// 设置底部导航栏 // 设置底部导航栏
setTabbarItems() { setTabbarItems() {
const tabbarList = [{ const tabbarList = [{


+ 2
- 2
manifest.json View File

@@ -1,5 +1,5 @@
{ {
"name" : "AI销讲助手",
"name" : "云筑数智助手",
"appid" : "__UNI__7A1611D", "appid" : "__UNI__7A1611D",
"description" : "AI销讲助手", "description" : "AI销讲助手",
"versionName" : "1.1.0", "versionName" : "1.1.0",
@@ -72,7 +72,7 @@
}, },
"quickapp" : {}, "quickapp" : {},
"mp-weixin" : { "mp-weixin" : {
"appid" : "wx83fec12ec03d9349",
"appid" : "wx3c3f25187e6b6176",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,
"es6" : true, "es6" : true,


+ 33
- 4
pages/center/Piabodata/Userinsightinto.vue View File

@@ -7,6 +7,9 @@
<div class="items" @tap="showTemplate = true">{{ showBeText }} <div class="items" @tap="showTemplate = true">{{ showBeText }}
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon> <u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon>
</div> </div>
<div class="items" @tap="showTemplates = true">{{ showBeTexts }}
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon>
</div>
</view> </view>
<view class="info"> <view class="info">
<view class="item" @click="goTo(1)"> <view class="item" @click="goTo(1)">
@@ -121,6 +124,10 @@
<u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplate" <u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplate"
mode="single-column" :list="templateList" @cancel="templateCancel" @confirm="templateConfirm"></u-select> mode="single-column" :list="templateList" @cancel="templateCancel" @confirm="templateConfirm"></u-select>


<!-- 销讲业务 -->
<u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplates"
mode="single-column" :list="templateLists" @cancel="templateCancels" @confirm="templateConfirms"></u-select>

</view> </view>
</template> </template>


@@ -151,9 +158,22 @@
screenShow: false, // 时间筛选弹窗 screenShow: false, // 时间筛选弹窗
showTimeText: '近一周', // 展示文字 showTimeText: '近一周', // 展示文字
showBeText: '全部业务', // showBeText: '全部业务', //
showBeTexts: '未成交', //
templateList: [], // 销讲业务 templateList: [], // 销讲业务
templateLists: [
{
templateName: '未成交',
id: 0,
},
{
templateName: '已成交',
id: 1
},
], // 销讲业务
showTemplate: false, // 展示选择销讲业务弹窗 showTemplate: false, // 展示选择销讲业务弹窗
showTemplates: false, // 展示选择销讲业务弹窗
marketingBusiness: '', // 选择的业务id marketingBusiness: '', // 选择的业务id
deliveryStatus: 0, // 默认未成交
}; };
}, },
onPageScroll(e) { onPageScroll(e) {
@@ -182,6 +202,18 @@
this.showBeText = e[0].label this.showBeText = e[0].label
this.gitinit() this.gitinit()
}, },
// 销讲业务方法
templateCancels() {
this.showTemplates = false;
},

// 确认选择销讲业务
templateConfirms(e) {
this.showTemplates = false;
this.deliveryStatus = e[0].value
this.showBeTexts = e[0].label
this.gitinit()
},




// 获取销讲业务 // 获取销讲业务
@@ -247,12 +279,9 @@
statDateEnd: this.timeobj.statDateEnd, statDateEnd: this.timeobj.statDateEnd,
houseId: this.buildingID, houseId: this.buildingID,
marketingBusiness: this.marketingBusiness, marketingBusiness: this.marketingBusiness,
deliveryStatus: this.deliveryStatus,
} }
this.$u.post("/matchKeywords/findmatchdata", parames).then(data => { this.$u.post("/matchKeywords/findmatchdata", parames).then(data => {
// this.numlist.push({
// name:"有效接待",
// num:data.total
// })
data.list.forEach((item, index) => { data.list.forEach((item, index) => {
this.numlist.push({ this.numlist.push({
name: item.name, name: item.name,


+ 16
- 0
pages/index/consumer/index.vue View File

@@ -82,6 +82,7 @@
</view> </view>
<view class="content-sec-lab"> <view class="content-sec-lab">
<view class="content-sec-lab1">负责顾问:{{ item.agentName || "--" }}</view> <view class="content-sec-lab1">负责顾问:{{ item.agentName || "--" }}</view>
<view class="content-sec-lab1" style="width: 44%">成交状态:{{ item.deliveryStatus | deliveryStatusText }}</view>
</view> </view>
<view class="content-sec-lab"> <view class="content-sec-lab">
<view class="content-sec-lab1"> <view class="content-sec-lab1">
@@ -1278,6 +1279,21 @@
}, },


filters: { filters: {
deliveryStatusText(level) {
let str = '';
switch (Number(level)) {
case 0:
str = "未成交"
break;
case 1:
str = "已成交"
break;
default:
str = '-'
break;
}
return str
},
// 筛选等级展示文字 // 筛选等级展示文字
levelText(level) { levelText(level) {
let str = ''; let str = '';


+ 63
- 13
pages/mine/details2.vue View File

@@ -142,12 +142,7 @@
</view> </view>
<view class="more-btn"> <view class="more-btn">


<view v-if="permissions.xgxjyw" class="btn-item"
@click.stop="showTemplate = !showTemplate; Thetapeidisshow=false">
<!-- <image class="icon" v-if="userlistobj.validInvalidName"
src="https://static.quhouse.com/868b0eba0f7c44eca63e3b4fa782f14d.png" mode=""></image>
<image class="icon" v-else src="https://static.quhouse.com/480e572bf43c48558ad9febe5426f439.png"
mode=""></image> -->
<view v-if="permissions.xgxjyw" class="btn-item" @click.stop="changeTemplate">
更换销讲业务 更换销讲业务
</view> </view>


@@ -373,7 +368,8 @@
{{index+1}}.{{item}} {{index+1}}.{{item}}
</view> </view>
</template> </template>
<view v-if="prohibitedlist.guwen.length == 0 && prohibitedlist.kehu.length == 0" style="width: 100%;text-align: center;margin-top: 60rpx;">
<view v-if="prohibitedlist.guwen.length == 0 && prohibitedlist.kehu.length == 0"
style="width: 100%;text-align: center;margin-top: 60rpx;">
暂无数据 暂无数据
</view> </view>
</view> </view>
@@ -619,6 +615,26 @@
mode="single-column" :list="effectiveitems" @cancel="effectiveIndexCancel" @confirm="effectiveIndexConfirm"> mode="single-column" :list="effectiveitems" @cancel="effectiveIndexCancel" @confirm="effectiveIndexConfirm">
</u-select> </u-select>


<u-popup v-model="showTemplateStatus" mode="center" border-radius="16" width="600rpx">
<view class="show-visit-content">
<view class="visit-title">
更换销讲业务
</view>
<view style="padding: 20rpx;">
<u-radio-group v-model="templateStatus">
<u-radio v-for="(item, index) in templateListType" :key="index" :name="item.value">
{{item.name}}
</u-radio>
</u-radio-group>
</view>

<view class="visit-btns">
<view class="btn-item" @tap="showTemplateStatus = false;">取消</view>
<view class="btn-item" @tap="radioGroupChange" style="border-left: none;">确认</view>
</view>
</view>
</u-popup>

<!-- 本次属于客户第几次到访 --> <!-- 本次属于客户第几次到访 -->
<u-popup v-model="showVisit" mode="center" border-radius="16" width="600rpx"> <u-popup v-model="showVisit" mode="center" border-radius="16" width="600rpx">
<view class="show-visit-content"> <view class="show-visit-content">
@@ -761,6 +777,19 @@


eventParams: '', // 触发的事件 eventParams: '', // 触发的事件
consultant: '', // 顾问身份id字符串 consultant: '', // 顾问身份id字符串

templateStatus: 0, // 模板类型0 首访模板 1复访模板

showTemplateStatus: false, // 模板类型
templateListType: [{
name: '首访模板',
value: 0,
},
{
name: '复访模板',
value: 1
},
],
}; };
}, },
computed: { computed: {
@@ -773,6 +802,7 @@
}, },


onLoad(options) { onLoad(options) {
uni.setStorageSync('StayTimeDetails2-star', new Date().getTime())
this.LOADING = true this.LOADING = true
this.status = options.status; this.status = options.status;
this.customerId = options.customerId; this.customerId = options.customerId;
@@ -829,8 +859,6 @@
if (this.stateisshow == 2) { if (this.stateisshow == 2) {
var info = this.itemobj; var info = this.itemobj;
}!this.isPageHide && this.init(info); }!this.isPageHide && this.init(info);

this.getMarketingBusiness()
}, },


onHide() { onHide() {
@@ -838,6 +866,9 @@
}, },


onUnload() { onUnload() {
uni.setStorageSync('StayTimeDetails2-end', new Date().getTime())
uni.setStorageSync('StayTimeDetails2-watch', this.customerId)
uni.$emit('sendStayTime', this.customerId)
uni.$off('DETAILS2INIT') uni.$off('DETAILS2INIT')
uni.$off('newobjStatus') uni.$off('newobjStatus')
// uni.$off('consumerDetail') // uni.$off('consumerDetail')
@@ -848,6 +879,18 @@
}, },


methods: { methods: {
// 更换销讲业务
changeTemplate() {
this.Thetapeidisshow = false;
this.showTemplateStatus = true;
},

// 选择销讲业务模板类型
radioGroupChange() {
this.templateList = []
this.getMarketingBusiness()
this.showTemplateStatus = false;
},
// 客户第几次到访 - // 客户第几次到访 -
reduce() { reduce() {
if (this.visitParams.visitRecordNum == 1) { if (this.visitParams.visitRecordNum == 1) {
@@ -905,13 +948,20 @@
this.effectiveindex = e[0].value this.effectiveindex = e[0].value
}, },



// 获取销讲业务 // 获取销讲业务
getMarketingBusiness() { getMarketingBusiness() {
this.$u.get('/customer/marketingBusiness', { this.$u.get('/customer/marketingBusiness', {
houseId: this.buildingID, houseId: this.buildingID,
status: 0, status: 0,
templateStatus: this.templateStatus
}).then(res => { }).then(res => {
this.templateList = res
console.log(res)
if (res) {
this.templateList = res
this.showTemplate = true;
}
this.$forceUpdate()
}) })
}, },


@@ -1025,7 +1075,6 @@
}) })
this.init(this.infos); this.init(this.infos);
this.gituserlist() this.gituserlist()
this.getMarketingBusiness()
}).catch(e => { }).catch(e => {
uni.showToast({ uni.showToast({
title: e.data.message, title: e.data.message,
@@ -1111,7 +1160,7 @@
item.speaker = this.roleindexrow + 1 item.speaker = this.roleindexrow + 1
} }
}) })
this.$u.post("/corpus/batchUpdateRole", { this.$u.post("/corpus/batchUpdateRole", {
corpusId: this.luyinList.id, corpusId: this.luyinList.id,
transferContent: JSON.stringify(this.dialogList), transferContent: JSON.stringify(this.dialogList),
@@ -1789,7 +1838,8 @@
translateHtmlContent: this.messagelisy, translateHtmlContent: this.messagelisy,
} }
this.isshow2 = false; this.isshow2 = false;
this.dialogList[this.argtextindex2].onebest = this.textItself.replace(this.thewrongword, this.reswrongword)
this.dialogList[this.argtextindex2].onebest = this.textItself.replace(this.thewrongword,
this.reswrongword)
this.cancelBeast() this.cancelBeast()
this.$u.post("/corpus/addCorrectWord", parames).then(data => { this.$u.post("/corpus/addCorrectWord", parames).then(data => {
this.thewrongword = ""; this.thewrongword = "";


Loading…
Cancel
Save