Browse Source

提交修改

new23.10.9
风继续吹 6 months 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");
export default {
onLaunch(options) {
uni.$on('sendStayTime', (data) => {
this.getTimeChecks(data)
})

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

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

onHide() {},

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() {
const tabbarList = [{


+ 2
- 2
manifest.json View File

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


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

@@ -7,6 +7,9 @@
<div class="items" @tap="showTemplate = true">{{ showBeText }}
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon>
</div>
<div class="items" @tap="showTemplates = true">{{ showBeTexts }}
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon>
</div>
</view>
<view class="info">
<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"
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>
</template>

@@ -151,9 +158,22 @@
screenShow: false, // 时间筛选弹窗
showTimeText: '近一周', // 展示文字
showBeText: '全部业务', //
showBeTexts: '未成交', //
templateList: [], // 销讲业务
templateLists: [
{
templateName: '未成交',
id: 0,
},
{
templateName: '已成交',
id: 1
},
], // 销讲业务
showTemplate: false, // 展示选择销讲业务弹窗
showTemplates: false, // 展示选择销讲业务弹窗
marketingBusiness: '', // 选择的业务id
deliveryStatus: 0, // 默认未成交
};
},
onPageScroll(e) {
@@ -182,6 +202,18 @@
this.showBeText = e[0].label
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,
houseId: this.buildingID,
marketingBusiness: this.marketingBusiness,
deliveryStatus: this.deliveryStatus,
}
this.$u.post("/matchKeywords/findmatchdata", parames).then(data => {
// this.numlist.push({
// name:"有效接待",
// num:data.total
// })
data.list.forEach((item, index) => {
this.numlist.push({
name: item.name,


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

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

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


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

@@ -142,12 +142,7 @@
</view>
<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>

@@ -373,7 +368,8 @@
{{index+1}}.{{item}}
</view>
</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>
@@ -619,6 +615,26 @@
mode="single-column" :list="effectiveitems" @cancel="effectiveIndexCancel" @confirm="effectiveIndexConfirm">
</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">
<view class="show-visit-content">
@@ -761,6 +777,19 @@

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

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

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

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

this.getMarketingBusiness()
},

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

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

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

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


// 获取销讲业务
getMarketingBusiness() {
this.$u.get('/customer/marketingBusiness', {
houseId: this.buildingID,
status: 0,
templateStatus: this.templateStatus
}).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.gituserlist()
this.getMarketingBusiness()
}).catch(e => {
uni.showToast({
title: e.data.message,
@@ -1111,7 +1160,7 @@
item.speaker = this.roleindexrow + 1
}
})
this.$u.post("/corpus/batchUpdateRole", {
corpusId: this.luyinList.id,
transferContent: JSON.stringify(this.dialogList),
@@ -1789,7 +1838,8 @@
translateHtmlContent: this.messagelisy,
}
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.$u.post("/corpus/addCorrectWord", parames).then(data => {
this.thewrongword = "";


Loading…
Cancel
Save