Commit 1b220794 by 李伟康

Merge branch 'SAAS+V4.44.1' into SAAS+V4.45

2 parents 055c6fb0 31c7db49
Showing 328 changed files with 1206 additions and 322 deletions
...@@ -2,20 +2,20 @@ ...@@ -2,20 +2,20 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-07 17:09:53 * @Date: 2024-04-07 17:09:53
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-18 17:59:32 * @LastEditTime: 2024-08-30 17:28:05
* @FilePath: \gl_tape\App.vue * @FilePath: \gl_tape\App.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
<script> <script>
var wv const PATH = ['/pages/common/caseDetail']
import { mapState } from 'vuex' import { mapState } from 'vuex'
export default { export default {
computed: { computed: {
...mapState('audio', ['isEnd', 'isStart']) ...mapState('audio', ['isEnd', 'isStart'])
}, },
onLoad() {},
onLaunch: async function () { onLaunch: async function () {
// this.init()
this.setAPPVersion() this.setAPPVersion()
setTimeout(() => { setTimeout(() => {
plus.screen.unlockOrientation() //解除锁定屏幕方向 plus.screen.unlockOrientation() //解除锁定屏幕方向
...@@ -26,6 +26,46 @@ export default { ...@@ -26,6 +26,46 @@ export default {
}) })
}, },
methods: { methods: {
init() {
uni.addInterceptor('navigateTo', {
//监听跳转
invoke(e) {
console.log('******** invoke-navigateTo ********', e.url.split('?').shift())
if (PATH.includes(e.url.split('?').shift())) {
console.log(888)
}
}
})
//2
uni.addInterceptor('redirectTo', {
//监听关闭本页面跳转
invoke(e) {
console.log('******** redirectTo ********', e.url)
}
})
uni.addInterceptor('switchTab', {
//监听tabBar跳转
invoke(e) {
console.log('******** switchTab ********', e.url)
}
})
//4
uni.addInterceptor('navigateBack', {
//监听返回
invoke(e) {
console.log('******** navigateBack ********', e)
}
})
},
setAPPVersion() { setAPPVersion() {
let version = plus.runtime.version let version = plus.runtime.version
let storageVersion = uni.$storage.get('storageVersion') let storageVersion = uni.$storage.get('storageVersion')
...@@ -60,6 +100,7 @@ export default { ...@@ -60,6 +100,7 @@ export default {
body { body {
// overflow: hidden; // overflow: hidden;
} }
page { page {
font-size: 28rpx; font-size: 28rpx;
height: 100%; height: 100%;
...@@ -121,6 +162,7 @@ button::after { ...@@ -121,6 +162,7 @@ button::after {
.button-hover { .button-hover {
transform: translate(1rpx, 1rpx); transform: translate(1rpx, 1rpx);
} }
.webview-container { .webview-container {
position: absolute; position: absolute;
width: 100rpx; width: 100rpx;
......
import http from "../request/http"; import http from '../request/http'
import environment from "@/env"; import environment from '@/env'
module.exports = { module.exports = {
/**获取APP更新 */ /**获取APP更新 */
getAPPVersion (data) { getAPPVersion(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.recepiton.findVersion', method: 'dj.api.smartcarlife.recepiton.findVersion',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
// 查询接待素材 // 查询接待素材
findSoureList (data) { findSoureList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.soure.findSoureList", method: 'dj.api.smartcarlife.recepiton.soure.findSoureList',
projectName: "boutique", projectName: 'boutique',
...data ...data
}); })
}, },
// 查询门店支付配置 // 查询门店支付配置
findPayInfo (data) { findPayInfo(data) {
return http.post({ return http.post({
method: method: 'dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId',
"dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId", projectName: 'boutique',
projectName: "boutique", ...data
...data, })
});
}, },
// 接待客户信息保存 // 接待客户信息保存
saveRecCustomer (data) { saveRecCustomer(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.customer.saveRecCustomer", method: 'dj.api.smartcarlife.recepiton.customer.saveRecCustomer',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
getToken (data) { getToken(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.customer.oss.getToken", method: 'dj.api.smartcarlife.recepiton.customer.oss.getToken',
projectName: "boutique", projectName: 'boutique'
}); })
}, },
// 历史订单列表 // 历史订单列表
getQuotationList (data) { getQuotationList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page", method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
/** 获取门店主营车品牌 */ /** 获取门店主营车品牌 */
getMerchantCarBrandList (merchantIdList) { getMerchantCarBrandList(merchantIdList) {
return http.post({ return http.post(
method: 'merchants.api.open.merchant.info', {
projectName: 'merchants', method: 'merchants.api.open.merchant.info',
merchantIdList, projectName: 'merchants',
merchantInfoSwitch: { merchantIdList,
brandFlag: true merchantInfoSwitch: {
} brandFlag: true
}, false, 'merchant') }
},
false,
'merchant'
)
}, },
/** /**
* 车型 * 车型
* *
*/ */
getCarBrandsList (data) { getCarBrandsList(data) {
return http.post( return http.post(
{ {
method: "scrm.api.carlife.common.getCarSeriesList", method: 'scrm.api.carlife.common.getCarSeriesList',
...data, ...data
}, },
false, false,
"scrm" 'scrm'
); )
}, },
/** /**
* 推荐人 * 推荐人
*/ */
getEmployeeList (data) { getEmployeeList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.employee.getByMerchantId", method: 'dj.api.smartcarlife.employee.getByMerchantId',
projectName: "boutique", projectName: 'boutique',
sceneList: [0], sceneList: [0],
...data, ...data
}); })
}, },
/** 查询接待记录列表 */ /** 查询接待记录列表 */
getReceptionList (data) { getReceptionList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.reception.customer.page", method: 'dj.api.smartcarlife.reception.customer.page',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
/** 接待统计 */ /** 接待统计 */
getReceptionStatistics (data) { getReceptionStatistics(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.reception.customer.statistics", method: 'dj.api.smartcarlife.reception.customer.statistics',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
},
/** 埋点进入 */
addRecord(data) {
return http.post({
method: 'dj.api.customer.dynamic.record.add',
projectName: 'boutique',
...data
})
},
/** 埋点离开 */
leaveRecord(data) {
return http.post({
method: 'dj.api.customer.dynamic.record.leave',
projectName: 'boutique',
...data
})
}, },
/**创建小程序码 */ /**创建小程序码 */
createQrcode (data) { createQrcode(data) {
const envVersion = { const envVersion = {
0: 'develop', 0: 'develop',
1: 'develop', 1: 'develop',
...@@ -112,10 +131,15 @@ module.exports = { ...@@ -112,10 +131,15 @@ module.exports = {
3: 'release', 3: 'release',
4: 'trial' 4: 'trial'
}[environment.index] }[environment.index]
data.projectName = "wechat" data.projectName = 'wechat'
return http.fetch("scrm.api.wechat.miniprogram.createQrcode", { return http.fetch(
envVersion, 'scrm.api.wechat.miniprogram.createQrcode',
...data {
}, true, 'scrm'); envVersion,
}, ...data
}; },
true,
'scrm'
)
}
}
import http from "../request/http";
import environment from "@/env";
module.exports = {
/**查询当前门店是否有客户档案权限 */
haveCustomerAccess (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.findPermissionsMerchantList',
projectName: "boutique",
...data,
});
},
/**查询当前门店客户档案列表 */
getCustomerFileList (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.customerInfoPage',
projectName: "boutique",
...data,
});
},
/* 删除客户档案*/
delCustomerFile (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.deleteVisitsInfo',
projectName: "boutique",
...data,
});
},
/** 根据业务查询接待场景 */
findAllSence (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.findAllSence',
projectName: "boutique",
...data,
});
},
/**根据业务查询客户标签 */
findCustomerTags (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.findSenceTag',
projectName: "boutique",
...data,
});
},
/**
* 查询客户档案详情
*/
findVisitsInfo (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.findVisitsInfo',
projectName: "boutique",
...data,
});
},
/*
* 保存客户档案
*/
saveVisitsInfo (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.saveVisitsInfo',
projectName: "boutique",
...data,
});
},
/**
* 更新客户档案
*/
updateVisitsInfo (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.updateVisitsInfo',
projectName: "boutique",
...data,
});
},
/**查询客户档案列表 */
getCustomerInfoList (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.customerInfoList',
projectName: "boutique",
...data,
});
},
/**接待客户素材
*
*/
getMaterialResponsePage (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.getMaterialResponsePage',
projectName: "boutique",
...data,
});
},
/**素材详情 查询素材详情 */
getMaterialDetail (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.getMaterialById',
projectName: "boutique",
...data,
});
},
}
\ No newline at end of file \ No newline at end of file
...@@ -2,9 +2,11 @@ import commonApi from "./common"; ...@@ -2,9 +2,11 @@ import commonApi from "./common";
import systemApi from "./systemApi"; import systemApi from "./systemApi";
import userApi from "./userApi"; import userApi from "./userApi";
import boutiqueApi from "./boutique"; import boutiqueApi from "./boutique";
import customerApi from "./customerApi";
module.exports = { module.exports = {
commonApi, commonApi,
systemApi, systemApi,
userApi, userApi,
boutiqueApi, boutiqueApi,
customerApi
}; };
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1310rpx 1028rpx;} .sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1310rpx 1044rpx;}
.icon-addr { width: 32rpx; height: 32rpx; background-position: -1240rpx -557rpx;} .icon-addr { width: 32rpx; height: 32rpx; background-position: -1165rpx -617rpx;}
.icon-aito { width: 320rpx; height: 36rpx; background-position: -830rpx -617rpx;} .icon-aito { width: 320rpx; height: 36rpx; background-position: -830rpx -617rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1165rpx -617rpx;} .icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1212rpx -617rpx;}
.icon-avatar { width: 96rpx; height: 96rpx; background-position: -635rpx -726rpx;} .icon-avatar { width: 96rpx; height: 96rpx; background-position: -635rpx -726rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -333rpx -853rpx;} .icon-back { width: 128rpx; height: 50rpx; background-position: -333rpx -853rpx;}
.icon-bao { width: 196rpx; height: 220rpx; background-position: -830rpx -382rpx;} .icon-bao { width: 196rpx; height: 220rpx; background-position: -830rpx -382rpx;}
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
.icon-boutique-config-1 { width: 44rpx; height: 44rpx; background-position: -476rpx -853rpx;} .icon-boutique-config-1 { width: 44rpx; height: 44rpx; background-position: -476rpx -853rpx;}
.icon-boutique-config-2 { width: 44rpx; height: 44rpx; background-position: -535rpx -853rpx;} .icon-boutique-config-2 { width: 44rpx; height: 44rpx; background-position: -535rpx -853rpx;}
.icon-byd { width: 184rpx; height: 36rpx; background-position: -1041rpx -557rpx;} .icon-byd { width: 184rpx; height: 36rpx; background-position: -1041rpx -557rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1212rpx -617rpx;} .icon-change-account { width: 32rpx; height: 32rpx; background-position: -1259rpx -617rpx;}
.icon-clone { width: 24rpx; height: 24rpx; background-position: -1285rpx -668rpx;} .icon-clone { width: 24rpx; height: 24rpx; background-position: -781rpx -509rpx;}
.icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;} .icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;}
.icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -415rpx 0rpx;} .icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -415rpx 0rpx;}
.icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -830rpx -668rpx;} .icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -830rpx -668rpx;}
...@@ -20,22 +20,22 @@ ...@@ -20,22 +20,22 @@
.icon-face-error { width: 96rpx; height: 96rpx; background-position: -857rpx -726rpx;} .icon-face-error { width: 96rpx; height: 96rpx; background-position: -857rpx -726rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -968rpx -726rpx;} .icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -968rpx -726rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -1079rpx -726rpx;} .icon-face-success { width: 96rpx; height: 96rpx; background-position: -1079rpx -726rpx;}
.icon-feedback { width: 64rpx; height: 64rpx; background-position: -1216rpx -469rpx;} .icon-feedback { width: 64rpx; height: 64rpx; background-position: -1216rpx -477rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: -830rpx -191rpx;} .icon-first-nav { width: 464rpx; height: 176rpx; background-position: -830rpx -191rpx;}
.icon-home-active { width: 112rpx; height: 112rpx; background-position: -127rpx -726rpx;} .icon-home-active { width: 112rpx; height: 112rpx; background-position: -127rpx -726rpx;}
.icon-home { width: 112rpx; height: 112rpx; background-position: -254rpx -726rpx;} .icon-home { width: 112rpx; height: 112rpx; background-position: -254rpx -726rpx;}
.icon-icon-arrow { width: 32rpx; height: 32rpx; background-position: -1259rpx -617rpx;} .icon-icon-arrow { width: 32rpx; height: 32rpx; background-position: -1160rpx -668rpx;}
.icon-icon-close { width: 72rpx; height: 72rpx; background-position: -1216rpx -382rpx;} .icon-icon-close { width: 72rpx; height: 72rpx; background-position: -285rpx -964rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1050rpx -668rpx;} .icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1207rpx -668rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1097rpx -668rpx;} .icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1254rpx -668rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1144rpx -668rpx;} .icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -781rpx -415rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -503rpx -415rpx;} .icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -503rpx -415rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1191rpx -668rpx;} .icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -781rpx -462rpx;}
.icon-invisible { width: 40rpx; height: 40rpx; background-position: -885rpx -668rpx;} .icon-invisible { width: 40rpx; height: 40rpx; background-position: -885rpx -668rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1238rpx -668rpx;} .icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -594rpx -853rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -781rpx -415rpx;} .icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -641rpx -853rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -781rpx -462rpx;} .icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -688rpx -853rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -594rpx -853rpx;} .icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -735rpx -853rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -1041rpx -382rpx;} .icon-logo { width: 160rpx; height: 160rpx; background-position: -1041rpx -382rpx;}
.icon-no-insurance-data { width: 488rpx; height: 296rpx; background-position: 0rpx -415rpx;} .icon-no-insurance-data { width: 488rpx; height: 296rpx; background-position: 0rpx -415rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -646rpx -415rpx;} .icon-pen-active { width: 120rpx; height: 120rpx; background-position: -646rpx -415rpx;}
...@@ -44,15 +44,22 @@ ...@@ -44,15 +44,22 @@
.icon-qw { width: 48rpx; height: 48rpx; background-position: -765rpx -558rpx;} .icon-qw { width: 48rpx; height: 48rpx; background-position: -765rpx -558rpx;}
.icon-record-active { width: 112rpx; height: 112rpx; background-position: -381rpx -726rpx;} .icon-record-active { width: 112rpx; height: 112rpx; background-position: -381rpx -726rpx;}
.icon-record { width: 112rpx; height: 112rpx; background-position: -508rpx -726rpx;} .icon-record { width: 112rpx; height: 112rpx; background-position: -508rpx -726rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -641rpx -853rpx;} .icon-scan { width: 32rpx; height: 32rpx; background-position: -782rpx -853rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: 0rpx -853rpx;} .icon-scene-0 { width: 96rpx; height: 96rpx; background-position: 0rpx -853rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -111rpx -853rpx;} .icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -111rpx -853rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -940rpx -668rpx;} .icon-search { width: 40rpx; height: 40rpx; background-position: -940rpx -668rpx;}
.icon-second-nav { width: 480rpx; height: 176rpx; background-position: -830rpx 0rpx;} .icon-second-nav { width: 480rpx; height: 176rpx; background-position: -830rpx 0rpx;}
.icon-setting { width: 64rpx; height: 64rpx; background-position: 0rpx -964rpx;} .icon-setting { width: 64rpx; height: 64rpx; background-position: -372rpx -964rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -222rpx -853rpx;} .icon-store { width: 96rpx; height: 96rpx; background-position: -222rpx -853rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -79rpx -964rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -154rpx -964rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -229rpx -964rpx;}
.icon-total { width: 32rpx; height: 32rpx; background-position: -688rpx -853rpx;}
.icon-visible { width: 40rpx; height: 40rpx; background-position: -995rpx -668rpx;}
\ No newline at end of file \ No newline at end of file
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -451rpx -964rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -526rpx -964rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -601rpx -964rpx;}
.icon-total { width: 32rpx; height: 32rpx; background-position: -829rpx -853rpx;}
.icon-visible { width: 40rpx; height: 40rpx; background-position: -995rpx -668rpx;}
.icon-customer-add { width: 80rpx; height: 80rpx; background-position: -1216rpx -382rpx;}
.icon-detail-start { width: 80rpx; height: 80rpx; background-position: 0rpx -964rpx;}
.icon-mask-del { width: 80rpx; height: 80rpx; background-position: -95rpx -964rpx;}
.icon-mask-edit { width: 80rpx; height: 80rpx; background-position: -190rpx -964rpx;}
.icon-pause { width: 40rpx; height: 40rpx; background-position: -1050rpx -668rpx;}
.icon-play { width: 40rpx; height: 40rpx; background-position: -1105rpx -668rpx;}
.icon-tag-checked { width: 60rpx; height: 32rpx; background-position: -1240rpx -557rpx;}
\ No newline at end of file \ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type

1.14 MB | W: | H:

1.2 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
<template>
<view :class="['customer-box',{'is-show':showCustomerBox}]">
<view class="customer-title">客户档案的记录</view>
<scroll-view
scroll-y
class="scroll-box"
>
<template v-if="loading">
<view class="loading flex">
<uni-icons
type="refreshempty"
:size="46"
color="#3773F8"
class="icon"
></uni-icons>
</view>
</template>
<template v-else>
<template v-if="searchList.length">
<template v-for="(i,index) in searchList">
<view
class="item flex"
:key="index"
hover-class="active"
@click="$emit('choose',i)"
>
{{ `${showType == 'tel'?i.ownerPhone:i.ownerName}`}}
</view>
</template>
</template>
<template v-else>
<view class="nothing flex">
<view class="icon"></view>
未匹配到客户信息
</view>
</template>
</template>
</scroll-view>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'CustomerAutocomplete',
props: {
searchValue: String,
showType: String,
show: Boolean
},
data () {
return {
loading: true,
searchList: []
}
},
watch: {
showCustomerBox: {
immediate: true,
handler (newval) {
if (newval) this.getCustomerInfoList(this.searchValue, this.showType)
}
}
},
computed: {
showCustomerBox () {
return this.show && this.haveCustomerAccess && this.searchValue
},
haveCustomerAccess () {
return this.$store.state.user.haveCustomerAccess
}
},
mounted () {
},
methods: {
async getCustomerInfoList (val, type) {
try {
this.loading = true
const { shopMerchantId, sceneType } = uni.$storage.get("userInfo"),
params = {
merchantId: shopMerchantId,
bussinessScene: sceneType == 0 ? 1 : 2 // 1.延保 2.轻改
}
if (type == 'tel') params.ownerPhone = val
else params.ownerName = val
this.searchList = await uni.$api.customerApi.getCustomerInfoList(params)
this.loading = false
} catch (error) {
this.loading = false
}
}
}
}
</script>
<style scoped lang='scss'>
.customer-box {
position: absolute;
left: 0;
top: 88rpx;
width: 100%;
height: 352rpx;
background: #ffffff;
border-radius: 16rpx;
z-index: -1;
opacity: 0;
.customer-title {
font-size: 24rpx;
color: #999999;
line-height: 40rpx;
padding: 16rpx 24rpx 8rpx;
}
.scroll-box {
height: calc(100% - 64rpx);
.loading {
width: 100%;
height: 100%;
justify-content: center;
.icon {
animation: rotate-loading 1s linear infinite;
}
}
.nothing {
width: 100%;
height: 100%;
font-size: 24rpx;
color: #c7ccd7;
flex-direction: column;
.icon {
margin-top: 52rpx;
width: 96rpx;
height: 96rpx;
background-image: url('@/assets/images/common/nothing.webp');
background-size: 100%;
}
}
.item {
width: 100%;
height: 48rpx;
font-size: 28rpx;
color: #333333;
line-height: 40rpx;
padding-left: 24rpx;
margin-bottom: 8rpx;
}
.active {
background: #ecf1ff;
}
@keyframes rotate-loading {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
}
}
.is-show {
z-index: 1;
opacity: 1;
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<MessageBox
ref="customerTagstVisible"
position="bottom"
:isFooter="false"
title="请选择客户标签"
:maxHeight="1000"
@close="$emit('close')"
>
<view class="select-views">
<template v-for="(i,index) in list">
<view
class="select-group"
:key="index"
>
<view class="select-title">{{ i.labelName }}</view>
<view class="select-box">
<view
class="select-item"
:class="{ checked: checkedItem(item) }"
@click="handleSelect(item)"
v-for="(item, ind) in i.nextList"
:key="ind"
>
<view class="sprite-icon icon-tag-checked"></view>
{{ item.labelName }}
</view>
</view>
</view>
</template>
</view>
<view class="footer-btns">
<view
class="btn cancel"
@click="close"
>取消</view>
<view
class="btn"
@click="choose"
>确定</view>
</view>
</MessageBox>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'CustomerTags',
props: {
chooseList: Array
},
data () {
return {
list: [],
component_chooseList: [],
}
},
watch: {
watchStatus: {
immediate: true,
handler (newval) {
this.close()
}
},
chooseList: {
immediate: true,
handler (newval) {
this.component_chooseList = JSON.parse(JSON.stringify(newval))
}
}
},
computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
},
mounted () {
},
methods: {
open () {
this.$refs.customerTagstVisible.open()
const userInfo = uni.$storage.get("userInfo"),
{ sceneType } = userInfo;
uni.$api.customerApi
.findCustomerTags({
scene: sceneType,
})
.then((res) => {
this.list = res || []
})
},
handleSelect (item) {
let { component_chooseList } = this,
index = component_chooseList.findIndex(e => e.labelId == item.labelId)
if (index == -1) component_chooseList.push(item)
else component_chooseList.splice(index, 1)
this.component_chooseList = component_chooseList
this.$forceUpdate()
},
close () {
this.$refs?.customerTagstVisible?.close()
},
checkedItem (item) {
let { component_chooseList } = this
return component_chooseList.findIndex(e => e.labelId == item.labelId) != -1
},
choose () {
this.$emit('select', this.component_chooseList)
this.close();
}
}
}
</script>
<style scoped lang='scss'>
.select-views {
overflow-y: scroll;
max-height: 50vh;
position: relative;
padding-bottom: 128rpx;
.select-group {
margin: 32rpx 0;
.select-title {
font-size: 28rpx;
color: #999999;
margin-bottom: 10rpx;
}
.select-box {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20rpx;
.select-item {
text-align: center;
height: 68rpx;
line-height: 68rpx;
opacity: 1;
border: 2rpx solid #dce0e6;
color: #292d33;
font-size: 28rpx;
border-radius: 8rpx;
position: relative;
.sprite-icon {
display: none;
position: absolute;
right: -2rpx;
top: -2rpx;
}
}
.checked {
border: 2rpx solid #2c66f7;
background: #ecf1ff;
color: #2c66f7;
.sprite-icon {
display: block;
}
}
}
}
}
.footer-btns {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 176rpx;
background: #ffffff;
box-sizing: border-box;
padding-top: 32rpx;
display: flex;
justify-content: center;
gap: 0 34rpx;
.btn {
width: 718rpx;
height: 80rpx;
background-image: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
border-radius: 48rpx;
display: flex;
justify-content: center;
align-items: center;
font-weight: 500;
font-size: 32rpx;
color: #ffffff;
}
.cancel {
background: #dae9ff;
color: #2c66f7;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="bg">
<view class="top">
<view
class="top-one"
:style="randomize"
></view>
</view>
<view class="bottom">
<view
class="bottom-one"
:style="randomize"
></view>
<view
class="bottom-two"
:style="randomize"
></view>
<view
class="bottom-three"
:style="randomize"
></view>
</view>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: '',
data () {
return {
dateKey: null,
}
},
computed:{
randomize () {
let { dateKey } = this;
const maxX = uni.getSystemInfoSync().windowWidth - 300,
maxY = uni.getSystemInfoSync().windowHeight - 100,
x = Math.floor(Math.random() * maxX),
y = Math.floor(Math.random() * maxY);
return `transform:translate(${x}px,${y}px);${dateKey};`;
},
},
mounted () {
setInterval(() => {
this.dateKey = Date.now();
}, 5e3);
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.bg {
position: absolute;
z-index: -2;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
background-image: linear-gradient(180deg, #f2f6ff 0%, #f7f9ff 100%);
overflow: hidden;
.top {
position: absolute;
top: 0;
left: 0;
width: 100%;
&-one {
position: absolute;
top: -1600rpx;
right: 128rpx;
width: 2012rpx;
height: 2012rpx;
opacity: 0.3;
background: #fff;
box-shadow: inset 2rpx 2rpx 0 2rpx #ffffff80;
border-radius: 50% / 25%;
transition: all 2s;
z-index: 2;
&::before {
position: absolute;
width: 856.56rpx;
height: 153.54rpx;
right: 150rpx;
top: 0;
opacity: 0.6;
background: #ebfdff;
filter: blur(36rpx);
content: '';
}
}
&::before {
position: absolute;
content: '';
right: 0;
top: 0;
width: 890.36rpx;
height: 174.84rpx;
opacity: 0.2;
background: #3582ee;
filter: blur(100rpx);
}
&::after {
width: 274.32rpx;
height: 410.02rpx;
opacity: 0.16;
background-image: linear-gradient(125deg, #65b8f7 36%, #3582ee 79%);
filter: blur(74rpx);
position: absolute;
content: '';
right: 0;
top: 24rpx;
}
}
.bottom {
position: absolute;
width: 1291.3rpx;
height: 316rpx;
left: 0;
bottom: 0;
z-index: 2;
&::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
opacity: 0.11;
background: #3582ee;
filter: blur(100rpx);
}
&::after {
width: 1484.32rpx;
height: 160.02rpx;
opacity: 0.12;
background-image: linear-gradient(125deg, #65b8f8 36%, #3582ee 79%);
filter: blur(74rpx);
position: absolute;
left: 480rpx;
bottom: 0;
content: '';
}
&-one {
position: absolute;
left: 0;
bottom: 44rpx;
width: 643.02rpx;
height: 258.78rpx;
opacity: 0.4;
background: #ebfffd;
filter: blur(36rpx);
transition: all 2s;
}
&-two {
position: absolute;
width: 450rpx;
height: 450rpx;
opacity: 0.24;
background: #ffffff;
box-shadow: inset 2rpx 2rpx 0 2rpx #ffffff80;
border: 100%;
left: -225rpx;
bottom: -225rpx;
border-radius: 100%;
transition: all 2s;
}
&-three {
width: 762.7rpx;
height: 210.92rpx;
opacity: 0.16;
box-shadow: inset 2rpx 2rpx 0 2rpx #ffffff80;
background-color: fff;
position: fixed;
left: 0;
top: 0;
border-radius: 50%;
transition: all 2s;
z-index: 2;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="left-side">
<view class="user-info flex">
<view class="user-avatar sprite-icon icon-avatar"></view>
<view class="user-name">{{ userInfo.name }}</view>
</view>
<view :class="['left-tabs', {'three':tabs.length == 3}]">
<template v-for="(i, index) in tabs">
<view
:class="['tab-item', { tabActive: tabIndex == index }]"
:key="index"
@click="changeIndex(index)"
>
<view class="icon-box">
<view :class="[
'sprite-icon',
`icon-${i.icon}${tabIndex == index ? '-active' : ''}`,
]"></view>
</view>
{{ i.label }}
</view>
</template>
</view>
<view class="left-footer">
<view
class="btn"
@click="$refs.kfRef.open()"
>
<view class="sprite-icon icon-feedback"></view>
</view>
<view
class="btn"
@click="$refs.settingRef.open()"
>
<view class="sprite-icon icon-setting"></view>
</view>
</view>
<!-- 客服弹框 -->
<kf-box ref="kfRef" />
<!-- 设置弹框 -->
<setting-box
ref="settingRef"
@stopAudio="$emit('stopAudio')"
/>
</view>
</template>
<script type='text/ecmascript-6'>
import KfBox from "./KfBox";
import SettingBox from "./SettingBox";
export default {
components: { KfBox, SettingBox },
props:{
tabIndex:Number,
userInfo:Object
},
name: '',
data () {
return {
tabs: [
{
label: "首页",
icon: "home",
},
{
label: "接待记录",
icon: "record",
},
],
}
},
watch:{
userInfo (n) {
if(n.shopMerchantId) this.haveCustomerAccess(n.shopMerchantId)
}
},
mounted () {
},
methods: {
changeIndex (index) {
if (this.tabIndex == index) return;
this.$emit('update:tabIndex',index)
this.$emit("changeTab", index)
},
async haveCustomerAccess (merchantId) {
const res = await uni.$api.customerApi.haveCustomerAccess({
merchantId
})
if (res && this.tabs.length == 2) this.tabs.push({
label: "客户档案",
icon: "customer-file",
})
this.$store.state.user.haveCustomerAccess = res
}
}
}
</script>
<style scoped lang='scss'>
.left-side {
display: flex;
flex-direction: column;
position: relative;
.left-tabs {
width: 240rpx;
height: 1080rpx;
display: flex;
flex-direction: column;
justify-content: center;
// align-items: center;
box-sizing: border-box;
padding: 16rpx 0;
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
margin: auto;
box-sizing: border-box;
padding-left: 32rpx;
&::after {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-image: url('@/assets/images/home/left.webp');
background-size: 100% 100%;
content: '';
z-index: -1;
}
.tab-item {
width: 112rpx;
font-size: 28rpx;
color: #8a98b5;
text-align: center;
padding-bottom: 96rpx;
.icon-box {
width: 112rpx;
height: 112rpx;
display: flex;
justify-content: center;
align-items: center;
border-radius: 100%;
}
}
.tabActive {
color: #3773f8;
.icon-box {
animation: arc-move 0.15s forwards;
}
}
@keyframes arc-move {
from {
transform: scale(0.1) rotate(0);
}
to {
transform: scale(1) rotate(360deg);
}
}
}
.three {
.tab-item {
padding-bottom: 64rpx;
}
}
.user-info {
width: 240rpx;
box-sizing: border-box;
padding-top: 92rpx;
flex-direction: column;
text-align: center;
position: relative;
z-index: 2;
.account-change {
width: 136rpx;
height: 32rpx;
background: #ffffff66;
border-radius: 16rpx;
font-size: 20rpx;
color: #9e9e9e;
justify-content: center;
margin-top: 10rpx;
}
}
.user-avatar {
width: 100rpx;
height: 100rpx;
border: 2rpx solid #ffffff;
box-shadow: 0 4rpx 8rpx 0 #0000001a;
border-radius: 100%;
}
.user-name {
font-weight: 500;
font-size: 28rpx;
color: #292d33;
margin-top: 16rpx;
padding: 0 24rpx;
}
.user-position {
font-size: 20rpx;
color: #9b9b9e;
margin-top: 8rpx;
}
.left-footer {
margin-top: auto;
padding: 0 0 80rpx 0;
}
.btn {
display: flex;
align-items: center;
margin: 48rpx auto 0;
box-sizing: border-box;
padding-left: 60rpx;
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -412,13 +412,24 @@ export default { ...@@ -412,13 +412,24 @@ export default {
.record-box { .record-box {
box-sizing: border-box; box-sizing: border-box;
height: 100%; height: 100%;
opacity: 1;
position: relative;
animation: show-box 0.15s forwards;
@keyframes show-box {
0% {
left: 100%;
}
100% {
left: 0;
}
}
.record-content { .record-content {
padding: 96rpx 0; padding: 96rpx 0;
.data-container { .data-container {
background: #ffffff; background: #ffffff;
border-radius: 48rpx; border-radius: 48rpx;
margin-top: 48rpx; margin-top: 48rpx;
height: calc(100vh - 440rpx); height: 1112rpx;
margin-right: 66rpx; margin-right: 66rpx;
box-shadow: inset 0 0 16rpx 0 #ffffff; box-shadow: inset 0 0 16rpx 0 #ffffff;
border: 2rpx solid #fff; border: 2rpx solid #fff;
...@@ -472,10 +483,10 @@ export default { ...@@ -472,10 +483,10 @@ export default {
position: relative; position: relative;
z-index: 4; z-index: 4;
} }
.type-1{ .type-1 {
height: calc(100% - 128rpx); height: calc(100% - 128rpx);
margin-top: -48rpx; margin-top: -48rpx;
.list{ .list {
padding-top: 48rpx; padding-top: 48rpx;
} }
} }
......
<template> <template>
<view <view
class="container" class="container"
@click="handleTouchStart" @click="handleTouchStart"
> >
<view :class="['home', { show: !id }]"> <view :class="['home', { show: !id }]">
<view class="left-side"> <home-animation></home-animation>
<view class="user-info flex"> <left-side
<view class="user-avatar sprite-icon icon-avatar"></view> :userInfo="userInfo"
<view class="user-name">{{ userInfo.name }}</view> :tabIndex.sync="tabIndex"
</view> @changeTab="$emit('changeTab', $event)"
<view class="left-tabs"> @stopAudio="stopAudio"
<template v-for="(i, index) in tabs"> />
<view
:class="['tab-item', { tabActive: tabIndex == index }]"
:key="index"
@click="changeIndex(index)"
>
<view class="icon-box">
<view :class="[
'sprite-icon',
`icon-${i.icon}${tabIndex == index ? '-active' : ''}`,
]"></view>
</view>
{{ i.label }}
</view>
</template>
</view>
<view class="left-footer">
<view
class="btn"
@click="$refs.kfRef.open()"
>
<view class="sprite-icon icon-feedback"></view>
</view>
<view
class="btn"
@click="$refs.settingRef.open()"
>
<view class="sprite-icon icon-setting"></view>
</view>
</view>
</view>
<view class="right-side"> <view class="right-side">
<template v-if="tabIndex == 0"> <template v-if="tabIndex == 0">
<view class="right-content"> <view class="right-content">
...@@ -51,6 +24,7 @@ ...@@ -51,6 +24,7 @@
<image <image
class="start-btn" class="start-btn"
src="../../assets/images/home/start.gif" src="../../assets/images/home/start.gif"
alt="开始接待"
/> />
<image <image
class="start-border" class="start-border"
...@@ -63,7 +37,10 @@ ...@@ -63,7 +37,10 @@
</view> </view>
</template> </template>
<template v-else> <template v-else>
<record-list :userInfo="userInfo" /> <component
:is="componentName"
:userInfo="userInfo"
/>
</template> </template>
<view class="store-addr"> <view class="store-addr">
<view class="icon-addr sprite-icon icon-addr"></view> <view class="icon-addr sprite-icon icon-addr"></view>
...@@ -119,13 +96,6 @@ ...@@ -119,13 +96,6 @@
</MessageBox> </MessageBox>
<!-- 升级弹框 --> <!-- 升级弹框 -->
<update-box /> <update-box />
<!-- 客服弹框 -->
<kf-box ref="kfRef" />
<!-- 设置弹框 -->
<setting-box
ref="settingRef"
@stopAudio="stopAudio"
/>
<slot name="content" /> <slot name="content" />
<web-view <web-view
@message="handlerMessage" @message="handlerMessage"
...@@ -135,14 +105,16 @@ ...@@ -135,14 +105,16 @@
</view> </view>
</template> </template>
<script> <script>
import KfBox from "./components/KfBox";
import SettingBox from "./components/SettingBox";
import RecordList from "./components/RecordList.vue"; import RecordList from "./components/RecordList.vue";
import myClick from "@/mixin/click"; import myClick from "@/mixin/click";
import uploader from "@/mixin/uploader.js"; import uploader from "@/mixin/uploader.js";
import HomeAnimation from './components/HomeAnimation.vue';
import CustomerFile from './components/CustomerFile.vue';
import LeftSide from './components/LeftSide.vue';
export default { export default {
mixins: [myClick, uploader], mixins: [myClick, uploader],
components: { KfBox, SettingBox, RecordList }, components: { RecordList, HomeAnimation, CustomerFile, LeftSide },
props: { props: {
id: [String, Number], id: [String, Number],
finishDoneText: String, finishDoneText: String,
...@@ -154,17 +126,7 @@ export default { ...@@ -154,17 +126,7 @@ export default {
data () { data () {
return { return {
userInfo: {}, userInfo: {},
tabs: [ tabIndex: 0
{
label: "首页",
icon: "home",
},
{
label: "接待记录",
icon: "record",
},
],
tabIndex: 0,
}; };
}, },
mounted () { mounted () {
...@@ -178,29 +140,19 @@ export default { ...@@ -178,29 +140,19 @@ export default {
finishRef () { finishRef () {
return this.$refs.finish; return this.$refs.finish;
}, },
componentName () {
if (this.tabIndex == 0) return 'HomeSlot'
else if (this.tabIndex == 1) return 'RecordList'
else return 'CustomerFile'
},
}, },
methods: { methods: {
changeIndex (index) {
if (this.tabIndex == index) return;
this.tabIndex = index;
this.$emit("changeTab", index);
},
}, },
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.container { .container {
position: relative; position: relative;
&::after {
content: '';
position: absolute;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
background-image: url('@/assets/images/common/home-bg.webp');
background-size: 100vw 100vh;
}
.home, .home,
.detail { .detail {
position: fixed; position: fixed;
...@@ -230,118 +182,6 @@ export default { ...@@ -230,118 +182,6 @@ export default {
left: 0; left: 0;
} }
} }
.left-side {
display: flex;
flex-direction: column;
position: relative;
.left-tabs {
width: 240rpx;
height: 1080rpx;
display: flex;
flex-direction: column;
justify-content: center;
// align-items: center;
box-sizing: border-box;
padding: 16rpx 0;
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
margin: auto;
box-sizing: border-box;
padding-left: 32rpx;
&::after {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-image: url('@/assets/images/home/left.webp');
background-size: 100% 100%;
content: '';
z-index: -1;
}
.tab-item {
width: 112rpx;
font-size: 28rpx;
color: #8a98b5;
text-align: center;
padding-bottom: 96rpx;
.icon-box {
width: 104rpx;
height: 104rpx;
display: flex;
justify-content: center;
align-items: center;
border-radius: 100%;
margin-bottom: 8rpx;
}
}
.tabActive {
color: #3773f8;
.icon-box {
animation: arc-move 0.15s forwards;
}
}
@keyframes arc-move {
from {
transform: scale(0.1) rotate(0);
}
to {
transform: scale(1) rotate(360deg);
}
}
}
.user-info {
width: 240rpx;
box-sizing: border-box;
padding-top: 92rpx;
flex-direction: column;
text-align: center;
position: relative;
z-index: 2;
.account-change {
width: 136rpx;
height: 32rpx;
background: #ffffff66;
border-radius: 16rpx;
font-size: 20rpx;
color: #9e9e9e;
justify-content: center;
margin-top: 10rpx;
}
}
.user-avatar {
width: 100rpx;
height: 100rpx;
border: 2rpx solid #ffffff;
box-shadow: 0 4rpx 8rpx 0 #0000001a;
border-radius: 100%;
}
.user-name {
font-weight: 500;
font-size: 28rpx;
color: #292d33;
margin-top: 16rpx;
padding: 0 24rpx;
}
.user-position {
font-size: 20rpx;
color: #9b9b9e;
margin-top: 8rpx;
}
.left-footer {
margin-top: auto;
padding: 0 0 80rpx 0;
}
.btn {
display: flex;
align-items: center;
margin: 48rpx auto 0;
box-sizing: border-box;
padding-left: 60rpx;
}
}
.right-side { .right-side {
flex: 1; flex: 1;
...@@ -350,32 +190,15 @@ export default { ...@@ -350,32 +190,15 @@ export default {
padding-top: 92rpx; padding-top: 92rpx;
height: 100vh; height: 100vh;
box-sizing: border-box; box-sizing: border-box;
position: relative;
animation: show-box 0.15s forwards;
} }
@keyframes moveAround { @keyframes show-box {
0%, 0% {
100% { left: 100%;
top: 0;
left: 0;
transform: translateX(0);
}
10%,
90% {
/* 调整这些百分比以适应长边移动 */
top: 0;
left: calc(100% - 20px);
transform: translateX(calc(100% - 20px));
}
50% {
top: calc(100% - 20px);
left: calc(100% - 20px);
transform: translateY(calc(100% - 20px)) translateX(calc(100% - 20px));
} }
40%, 100% {
60% {
/* 调整这些百分比以适应短边移动 */
top: calc(100% - 20px);
left: 0; left: 0;
transform: translateY(calc(100% - 20px)) translateX(0);
} }
} }
.start { .start {
...@@ -401,21 +224,6 @@ export default { ...@@ -401,21 +224,6 @@ export default {
position: relative; position: relative;
} }
.hover-class {
transform: scale(0.98);
.icon-start {
animation: rotate-icon 1.2s linear;
}
}
@keyframes rotate-icon {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
.module-list { .module-list {
height: calc(100% - 336rpx); height: calc(100% - 336rpx);
} }
......
...@@ -35,6 +35,12 @@ ...@@ -35,6 +35,12 @@
@blur="resetFocusIndex" @blur="resetFocusIndex"
:data-key="i.key" :data-key="i.key"
/> />
<customer-autocomplete
:showType="i.inputType"
:searchValue="customerInfo[i.key]"
:show="focusIndex == index"
@choose="chooseCustomer"
/>
<template v-if="i.unit"> <template v-if="i.unit">
<view class="unit">{{i.unit}}</view> <view class="unit">{{i.unit}}</view>
</template> </template>
...@@ -75,8 +81,9 @@ ...@@ -75,8 +81,9 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import CarBrands from '@/components/CarBrands.vue' import CarBrands from '@/components/CarBrands.vue'
import InsuranceTable from './components/InsuranceTable.vue' import InsuranceTable from './components/InsuranceTable.vue'
import CustomerAutocomplete from '@/components/CustomerAutocomplete.vue'
export default { export default {
components: { CarBrands, InsuranceTable }, components: { CarBrands, InsuranceTable, CustomerAutocomplete },
props: { props: {
penSwitch: Boolean, penSwitch: Boolean,
show: Boolean, show: Boolean,
...@@ -178,6 +185,15 @@ export default { ...@@ -178,6 +185,15 @@ export default {
} }
} }
}, },
chooseCustomer (e) {
this.customerInfo = {
...this.customerInfo,
phoneNumber: e.ownerPhone,
customerName: e.ownerName,
carModel: e.brandModel
}
this.inputCustomer()
}
} }
} }
</script> </script>
......
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
position: relative; position: relative;
width: 100%; width: 100%;
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 36rpx;
color: #292d33; color: #292d33;
text-align: center; text-align: center;
.icon-back { .icon-back {
......
<template>
<MessageBox
ref="receptionSceneVisible"
position="bottom"
:isFooter="false"
title="请选择接待场景"
:maxHeight="1000"
@close="$emit('close')"
>
<view class="select-box">
<view
class="select-item"
:class="{ checked: id == item.id }"
@click="handleSelect(item)"
v-for="(item, index) in list"
:key="index"
>
{{ item.receptionSceneName }}
</view>
</view>
</MessageBox>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'ReceptionSence',
props: {
customerInfo:Object
},
data () {
return {
list:[],
id:''
}
},
watch: {
watchStatus: {
immediate: true,
handler (newval) {
this.close()
}
},
watchCustomerInfo: {
immediate: true,
handler (newval) {
console.log(newval)
this.id = newval.receptionScene
}
},
},
computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
watchCustomerInfo() {
return this.customerInfo
},
},
mounted () {
},
methods: {
open () {
this.$refs.receptionSceneVisible.open()
const userInfo = uni.$storage.get("userInfo"),
{ sceneType } = userInfo;
/**获取接待场景 */
uni.$api.customerApi
.findAllSence({
scene: sceneType,
})
.then((res) => {
this.list = res || []
}).catch(err =>{
this.list = []
})
},
handleSelect (item) {
this.close();
this.id = item.id
this.$emit('select', item)
},
close () {
this.$refs?.receptionSceneVisible?.close()
}
}
}
</script>
<style scoped lang='scss'>
.select-box {
margin: 40rpx 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20rpx;
overflow-y: scroll;
max-height: 50vh;
padding-bottom: 60rpx;
.select-item {
text-align: center;
height: 68rpx;
line-height: 68rpx;
opacity: 1;
border: 2rpx solid #dce0e6;
color: #292d33;
font-size: 28rpx;
border-radius: 8rpx;
&.checked {
border: 2rpx solid #292d33;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!