Commit 665cb3be by 前端

Merge branch 'SAAS+V5.0.0-1014' into 'master'

上线合并

See merge request !31
2 parents 6e85274c 5bc354e1
Showing 117 changed files with 3630 additions and 362 deletions
...@@ -345,5 +345,14 @@ module.exports = { ...@@ -345,5 +345,14 @@ module.exports = {
projectName: 'boutique', projectName: 'boutique',
...data ...data
}) })
},
/** 退款中拦截 */
refundApplyRecordIsExist(data) {
return http.post({
method: 'dj.api.smartcarlife.refundApplyRecord.isExist',
projectName: 'boutique',
...data
})
} }
} }
// ${pathEnum.evaluation}
import { gscPost } from '../request/signHttp'
module.exports = {
/** 评估单列表 */
evalOrderList(data) {
return gscPost(
`/evalOrder/page`,
{
...data
},
{ returnAll: true }
)
},
/** 评估单详情 */
evalOrderDetail(data) {
return gscPost(
`/evalOrder/detail`,
{
...data
},
{ returnAll: true }
)
},
/** 评估单创建 */
evalOrderCreate(data) {
return gscPost(
`/evalOrder/create`,
{
...data
},
{ returnAll: true, duplicatePrevention: true }
)
},
/** 评估单分页状态数量 */
evalOrderPageCount(data) {
return gscPost(
`/evalOrder/pageCount`,
{
...data
},
{ returnAll: true }
)
},
/** 评估单更新 */
evalOrderUpdate(data) {
return gscPost(
`/evalOrder/edit`,
{
...data
},
{ returnAll: true, duplicatePrevention: true }
)
},
/** 评估单重新报价 */
evalOrderOwnerReQuote(data) {
return gscPost(
`/evalOrder/ownerReQuote`,
{
...data
},
{ returnAll: true }
)
},
/** 签订买卖合同 */
evalOrderSignContract(data) {
return gscPost(
`/evalOrder/signingSaleContract`,
{
...data
},
{ returnAll: true }
)
},
/** 评估单取消合同 */
evalOrderCancelContract(data) {
return gscPost(
`/evalOrder/cancelSaleContract`,
{
...data
},
{ returnAll: true }
)
},
/** 评估单重新提交 */
evalOrderConfirmVehicleDelivery(data) {
return gscPost(
`/confirmVehicleDelivery/reSubmit`,
{
...data
},
{ returnAll: true }
)
},
/** 确认交车 */
confirmDelivery(data) {
return gscPost(
`/confirmVehicleDelivery/confirmVehicleDelivery`,
{
...data
},
{ returnAll: true }
)
},
/** 支付定金 */
payDepositApplication(data) {
return gscPost(
`/applyPayment/payDepositApplication`,
{
...data
},
{ returnAll: true }
)
},
/** 发起代保管协议签署 */
signAgreement(data) {
return gscPost(
`/applyPayment/payFinal`,
{
...data
},
{ returnAll: true }
)
},
/** 检查代保管协议签署状态 */
checkSignAgreement(data) {
return gscPost(
`/applyPayment/checkSignAgreement`,
{
...data
},
{ returnAll: true }
)
},
/** 检查车辆是否存在重复评估单 */
checkRepeat(data) {
return gscPost(
`/evalOrder/checkRepeat`,
{
...data
},
{ returnAll: true }
)
},
/** 车辆ocr识别 */
vinOcr(data) {
return gscPost(
`/evalOrder/vinOcr`,
{
...data
},
{ returnAll: true }
)
},
/** 行驶证ocr识别 */
carLicenseOcr(data) {
return gscPost(
`/evalOrder/carLicenseOcr`,
{
...data
},
{ returnAll: true }
)
},
/** 获取合同详情 */
getContractDetail(data) {
return gscPost(
`/evalElectronicContract/getDetail`,
{
...data
},
{ returnAll: true }
)
},
/** 获取保管人列表 */
getCustodyAgreementList(data) {
return gscPost(
`/custodyAgreement/custodyAgreementList`,
{
...data
},
{ returnAll: true }
)
},
/** 新增保管人 */
addCustodyAgreement(data) {
return gscPost(
`/custodyAgreement/addCustodyAgreement`,
{
...data
},
{ returnAll: true }
)
},
/** 发送代保管人协议 */
sendCustodyAgreement(data) {
return gscPost(
`/custodyAgreement/sendCustodyAgreement`,
{
...data
},
{ returnAll: true }
)
},
/** 销售协议预览 */
salesAgreementPreview(data) {
return gscPost(
`/evalOrder/salesAgreementPreview`,
{
...data
},
{ returnAll: true }
)
},
/** 线上合同预览 */
viewOnlineContract(data) {
return gscPost(
`/evalOrder/viewOnlineContract`,
{
...data
},
{ returnAll: true }
)
},
/** 评估单简单详情 */
evalOrderSimpleDetail(data) {
return gscPost(
`/evalOrder/simpleDetail`,
{
...data
},
{ returnAll: true }
)
},
/**省市区 */
apiRegion(data) {
const queryString = Object.keys(data)
.map(key => `${encodeURIComponent(key)}=${encodeURIComponent(data[key])}`)
.join('&')
return gscPost(`/evalOrder/apiRegion/search${queryString ? '?' + queryString : ''}`, { ...data }, { returnAll: true })
}
}
...@@ -2,12 +2,15 @@ import commonApi from './common' ...@@ -2,12 +2,15 @@ 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 evaluationApi from './evaluation'
import customerApi from './customerApi' import customerApi from './customerApi'
import pointApi from './point' import pointApi from './point'
import receptionApi from './receptionApi' import receptionApi from './receptionApi'
import sceneMarketApi from './sceneMarketApi' import sceneMarketApi from './sceneMarketApi'
import interceptionApi from './interceptionApi' import interceptionApi from './interceptionApi'
import popupApi from './popupApi' import popupApi from './popupApi'
import usedCarApi from './usedCar'
module.exports = { module.exports = {
commonApi, commonApi,
systemApi, systemApi,
...@@ -18,5 +21,7 @@ module.exports = { ...@@ -18,5 +21,7 @@ module.exports = {
receptionApi, receptionApi,
sceneMarketApi, sceneMarketApi,
interceptionApi, interceptionApi,
popupApi popupApi,
evaluationApi,
usedCarApi
} }
import http from '../request/http' import http from '../request/http'
import { gscPost } from '../request/signHttp'
module.exports = { module.exports = {
/** 查询该店员工日报是否开启 */ /** 查询该店员工日报是否开启 */
...@@ -27,5 +28,22 @@ module.exports = { ...@@ -27,5 +28,22 @@ module.exports = {
...data ...data
}) })
}, },
/**
* 二手车查询员工昨天是否新入职或调店
*/
checkUsedCarStaffIsNew (data) {
return http.post({
method: 'dj.api.smartcarlife.secondHandCar.staffDailyReport.popup.need',
projectName: 'boutique',
...data
})
},
/**
* 查询员工是否需要填写二手车日报
*/
checkUsedCarStaffDailyReportValid (data) {
return gscPost('/carDailyReport/yesterday/check', {
...data
})
},
} }
import { gscPost } from '../request/signHttp'
module.exports = {
/** 二手车驻店日报列表 */
getCarDailyReportList (data) {
return gscPost('/carDailyReport/list', {
...data
})
},
/**
* 新增二手车驻店日报
*/
addCarDailyReport (data) {
return gscPost('/carDailyReport/add', {
...data
})
},
/**
* 二手车驻店日报详情
*/
getCarDailyReportDetail (data) {
return gscPost('/carDailyReport/detail', {
...data
})
},
/**
* 修改二手车驻店日报
*/
editCarDailyReport (data) {
return gscPost('/carDailyReport/edit', {
...data
})
},
}
...@@ -37,10 +37,10 @@ class Request { ...@@ -37,10 +37,10 @@ class Request {
success (res) { success (res) {
if (res.networkType == "none") { if (res.networkType == "none") {
uni.hideLoading(); uni.hideLoading();
// uni.showToast({ uni.showToast({
// title: '网络异常', title: '网络异常',
// icon: "error", icon: "none",
// }); });
reject("网络异常"); reject("网络异常");
return; return;
} }
......
import { Request } from 'glsk-toolkit'
module.exports = {
gscPost: (url, data, _config = {}) => {
return new Promise((resolve, reject) => {
uni.getNetworkType({
success (res) {
if (['none'].includes(res.networkType)) {
uni.hideLoading();
uni.showToast({
title: '网络异常',
icon: "none",
});
return;
}
if (!uni.$signHttp) uni.$signHttp = new Request(uni.signHttpConfig)
resolve(uni.$signHttp.post(url, data, _config))
}
})
})
}
}
No preview for this file type
...@@ -40,6 +40,13 @@ ...@@ -40,6 +40,13 @@
.flex { .flex {
display: flex; display: flex;
} }
.flex-col {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
-webkit-flex-direction: column;
flex-direction: column;
}
.justify-between { .justify-between {
-webkit-box-pack: justify; -webkit-box-pack: justify;
-ms-flex-pack: justify; -ms-flex-pack: justify;
...@@ -75,3 +82,152 @@ ...@@ -75,3 +82,152 @@
-webkit-flex-wrap: wrap; -webkit-flex-wrap: wrap;
flex-wrap: wrap; flex-wrap: wrap;
} }
.fs-14 {
font-size: toRpx(14);
}
.fs-32 {
font-size: toRpx(32);
}
.fs-26 {
font-size: toRpx(26);
}
.fs-34 {
font-size: toRpx(34);
}
.fw-5 {
font-weight: 500;
}
.fw-7 {
font-weight: 700;
}
.fs-13 {
font-size: toRpx(13);
}
.mr-16 {
margin-right: toRpx(16);
}
.mr-12 {
margin-right: toRpx(12);
}
.mr-24 {
margin-right: toRpx(24);
}
.mr-8 {
margin-right: toRpx(8);
}
.ml-4 {
margin-left: toRpx(4);
}
.ml-8 {
margin-left: toRpx(8);
}
.ml-12 {
margin-left: toRpx(12);
}
.ml-16 {
margin-left: toRpx(16);
}
.ml-20 {
margin-left: toRpx(20);
}
.ml-24 {
margin-left: toRpx(24);
}
.ml-32 {
margin-left: toRpx(32);
}
.ml-48 {
margin-left: toRpx(48);
}
.mt-8 {
margin-top: toRpx(8);
}
.mt-12 {
margin-top: toRpx(12);
}
.mt-24 {
margin-top: toRpx(24);
}
.mt-28 {
margin-top: toRpx(28);
}
.mt-32 {
margin-top: toRpx(32);
}
.mt-20 {
margin-top: toRpx(20);
}
.mb-12 {
margin-bottom: toRpx(12);
}
.mb-16 {
margin-bottom: toRpx(16);
}
.mb-20 {
margin-bottom: toRpx(20);
}
.mb-24 {
margin-bottom: toRpx(24);
}
.mb-30 {
margin-bottom: toRpx(30);
}
.mb-32 {
margin-bottom: toRpx(32);
}
.mb-40 {
margin-bottom: toRpx(40);
}
.mb-48 {
margin-bottom: toRpx(48);
}
.my-16 {
margin: toRpx(16) 0;
}
.py-8 {
padding: toRpx(8) 0;
}
.py-16 {
padding: toRpx(16) 0;
}
.pt-32 {
padding-top: toRpx(32) !important;
}
.px-48 {
padding: 0 toRpx(48);
}
.py-40 {
padding: toRpx(40) 0;
}
.px-16 {
padding: 0 toRpx(16);
}
.px-20 {
padding: 0 toRpx(20);
}
.px-32 {
padding: 0 toRpx(32);
}
.px-50 {
padding: 0 toRpx(50);
}
.pt-6 {
padding-top: toRpx(6);
}
.pt-8 {
padding-top: toRpx(8);
}
.pt-16 {
padding-top: toRpx(16);
}
.pt-20 {
padding-top: toRpx(20);
}
.pt-12 {
padding-top: toRpx(12);
}
.flex-1 {
flex: 1;
}
No preview for this file type

2.65 MB | W: | H:

2.79 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
animation animation
class="center-popup" class="center-popup"
> >
<view class="box"> <view :class="['box',{line:isLine}]">
<view class="title flex"> <view class="title flex">
<view class="text">{{title}}</view> <view class="text">{{title}}</view>
<view <view
...@@ -35,9 +35,11 @@ ...@@ -35,9 +35,11 @@
:class="['sprite-icon',i.icon]" :class="['sprite-icon',i.icon]"
:style="{zoom: i.zoom || 1}" :style="{zoom: i.zoom || 1}"
></view> ></view>
<view class="item-text">
<view class="item-title">{{i.title}}</view> <view class="item-title">{{i.title}}</view>
<text class="item-describe">{{i.describe}}</text> <text class="item-describe">{{i.describe}}</text>
</view> </view>
</view>
</template> </template>
</view> </view>
...@@ -52,7 +54,8 @@ export default { ...@@ -52,7 +54,8 @@ export default {
list: Array, list: Array,
title: String, title: String,
tag: String, tag: String,
id: [Number, String] id: [Number, String],
isLine: Boolean
}, },
data () { data () {
return { return {
...@@ -84,14 +87,16 @@ export default { ...@@ -84,14 +87,16 @@ export default {
} }
.box { .box {
width: toRpx(1400); width: toRpx(1400);
height: toRpx(928); // height: toRpx(928);
max-height: 80vh;
min-height: 32vh;
background: #ffffff; background: #ffffff;
border-radius: toRpx(48); border-radius: toRpx(48);
.title { .title {
width: 100%; width: 100%;
height: toRpx(160); height: toRpx(160);
background: url('@/assets/images/boutique/customer-type-bg.webp') no-repeat; background: url('@/assets/images/boutique/customer-type-bg.webp') no-repeat;
background-size: 100%; background-size: 100% 100%;
position: relative; position: relative;
.text { .text {
font-weight: 500; font-weight: 500;
...@@ -112,11 +117,13 @@ export default { ...@@ -112,11 +117,13 @@ export default {
.content { .content {
padding: toRpx(16) toRpx(80) toRpx(72); padding: toRpx(16) toRpx(80) toRpx(72);
width: 100%; width: 100%;
height: calc(100% - #{toRpx(160)}); height: toRpx(768);
// height: calc(100% - #{toRpx(160)});
gap: 0 toRpx(64); gap: 0 toRpx(64);
.item { .item {
width: calc(50% - #{toRpx(32)}); width: calc(50% - #{toRpx(32)});
height: 100%; height: 100%;
background: #ffffff; background: #ffffff;
box-shadow: 0 toRpx(12) toRpx(24) 0 #2c66f726; box-shadow: 0 toRpx(12) toRpx(24) 0 #2c66f726;
border-radius: toRpx(48); border-radius: toRpx(48);
...@@ -126,6 +133,9 @@ export default { ...@@ -126,6 +133,9 @@ export default {
justify-content: center; justify-content: center;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
&-text {
text-align: center;
}
.tag { .tag {
position: absolute; position: absolute;
width: toRpx(192); width: toRpx(192);
...@@ -138,23 +148,6 @@ export default { ...@@ -138,23 +148,6 @@ export default {
font-size: toRpx(28); font-size: toRpx(28);
justify-content: center; justify-content: center;
} }
// &::before,
// &::after {
// content: '';
// position: absolute;
// left: 0;
// width: 100%;
// background: #edf5ff;
// filter: blur(toRpx(40));
// }
// &::before {
// top: 0;
// height: toRpx(62);
// }
// &::after {
// bottom: 0;
// height: toRpx(126);
// }
&-title { &-title {
font-weight: 500; font-weight: 500;
font-size: toRpx(40); font-size: toRpx(40);
...@@ -164,7 +157,6 @@ export default { ...@@ -164,7 +157,6 @@ export default {
&-describe { &-describe {
font-size: toRpx(32); font-size: toRpx(32);
color: #808291; color: #808291;
text-align: center;
} }
&:first-child { &:first-child {
&::before, &::before,
...@@ -175,4 +167,40 @@ export default { ...@@ -175,4 +167,40 @@ export default {
} }
} }
} }
.line {
height: auto;
.content {
flex-wrap: wrap;
gap: 40rpx;
padding: 16rpx 64rpx 64rpx;
height: auto;
.item {
width: 100%;
flex-direction: row;
height: 192rpx;
justify-content: flex-start;
border-radius: 24rpx;
.tag {
right: 0;
left: inherit;
border-radius: 0 0 0 32rpx;
}
&-text {
text-align: left;
}
&-title {
font-size: 36rpx;
text-align: left;
padding: 0 0 12rpx 0;
}
&-describe {
font-size: 28rpx;
color: #999ea8;
}
.sprite-icon {
margin: 0 32rpx 0 40rpx;
}
}
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<template> <template>
<view class="entrance-box">
<template v-if="entranceList.length">
<view class="entrance-container"> <view class="entrance-container">
<view class="entrance-list"> <view class="entrance-list">
<view <view
...@@ -12,14 +14,31 @@ ...@@ -12,14 +14,31 @@
</view> </view>
</view> </view>
</view> </view>
</template>
<template v-else>
<view class="developing flex">
<image
class="developing-icon"
src="../assets/images/common/developing.webp"
/>
功能开发中
</view>
</template>
</view>
</template> </template>
<script> <script>
export default { export default {
name: 'Entrance', name: 'Entrance',
data() { data () {
return { return {
entranceList: [
}
},
computed: {
entranceList () {
let { sceneType } = uni.$storage.get('userInfo'),
entranceList = [
{ {
icon: 'daily-report', icon: 'daily-report',
label: '驻店日报', label: '驻店日报',
...@@ -39,12 +58,25 @@ export default { ...@@ -39,12 +58,25 @@ export default {
icon: 'order-management', icon: 'order-management',
label: '工单列表', label: '工单列表',
name: 'OrderManagement' name: 'OrderManagement'
},
{
icon: 'evaluation-management',
label: '评估单管理',
name: 'EvaluationFormList'
} }
] ]
if (sceneType == 0) return []
else if (sceneType === 7) {
return entranceList.filter(e => ['DailyReport', 'EvaluationFormList'].includes(e.name));
}
if (sceneType === 1) {
return entranceList.filter(e => e.name !== 'EvaluationFormList');
}
} }
}, },
methods: { methods: {
handleClick(item) { handleClick (item) {
// 这里可以根据实际需求进行跳转或功能处理 // 这里可以根据实际需求进行跳转或功能处理
this.$emit('entranceClick', item) this.$emit('entranceClick', item)
} }
...@@ -68,19 +100,25 @@ export default { ...@@ -68,19 +100,25 @@ export default {
} }
.entrance-item { .entrance-item {
width: toRpx(120); min-width: toRpx(120);
// height: 144rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: toRpx(30); font-size: toRpx(28);
.sprite-icon { color: #333;
background-color: #fff;
border-radius: toRpx(14);
}
.entrance-name { .entrance-name {
margin-top: toRpx(22); margin-top: toRpx(8);
}
}
.developing {
height: 100%;
flex-direction: column;
color: #999999;
font-size: toRpx(20);
&-icon {
width: toRpx(344);
height: toRpx(208);
} }
} }
</style> </style>
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
title="选择场景" title="选择场景"
tag="当前场景" tag="当前场景"
:id="userInfo.sceneType" :id="userInfo.sceneType"
isLine
/> />
</view> </view>
</template> </template>
...@@ -100,33 +101,6 @@ export default { ...@@ -100,33 +101,6 @@ export default {
name: '', name: '',
data () { data () {
return { return {
tabs: [
{
label: "首页",
icon: "home",
name: 'HomeSlot'
},
{
label: "接待中心",
icon: "record",
name: 'ReceptionCenter',
eventCode: 'app_reception_center'
},
{
label: "学习中心",
icon: "study",
isTrack: true,
name: 'StudyCenter',
eventCode: 'app_study_center',
hidden: true
},
{
label: "场景集市",
icon: "scene",
name: 'SceneMarket',
eventCode: 'app_scene_market'
}
],
messageData: { messageData: {
classCountList: [], classCountList: [],
recordDetailList: [], recordDetailList: [],
...@@ -146,6 +120,7 @@ export default { ...@@ -146,6 +120,7 @@ export default {
userInfo (n) { userInfo (n) {
if (n.shopMerchantId) this.haveCustomerAccess(n) if (n.shopMerchantId) this.haveCustomerAccess(n)
}, },
// trackId (n) { // trackId (n) {
// if (!n) { // if (!n) {
// clearInterval(this.trackInterval) // clearInterval(this.trackInterval)
...@@ -162,20 +137,27 @@ export default { ...@@ -162,20 +137,27 @@ export default {
title: '轻改', title: '轻改',
describe: '太阳膜升级转化', describe: '太阳膜升级转化',
icon: 'icon-scene-1', icon: 'icon-scene-1',
zoom: 2.91, zoom: 1.1669,
}, },
0: { 0: {
title: '会员权益/升级', title: '会员权益/升级',
describe: '权益延保', describe: '权益延保',
icon: 'icon-scene-0', icon: 'icon-scene-0',
zoom: 2.91, zoom: 1.1669,
},
7: {
title: '二手车',
describe: '二手车业务',
icon: 'icon-scene-7',
zoom: 1.1669,
} }
} }
let { openSceneArr } = uni.$storage.get("userInfo") let { openSceneArr } = uni.$storage.get("userInfo")
let result = [] let result = []
if (openSceneArr && openSceneArr.length) { if (openSceneArr && openSceneArr.length) {
openSceneArr.map(e => { openSceneArr.map(e => {
if (e == 1 || e == 0) { if (e == 1 || e == 0 || e == 7) {
result.push({ result.push({
...sceneTypeObject[e], ...sceneTypeObject[e],
id: e id: e
...@@ -184,6 +166,38 @@ export default { ...@@ -184,6 +166,38 @@ export default {
}) })
} }
return result return result
},
tabs () {
const tabs = [
{
label: "首页",
icon: "home",
name: 'HomeSlot'
},
{
label: "接待中心",
icon: "record",
name: 'ReceptionCenter',
eventCode: 'app_reception_center'
},
{
label: "学习中心",
icon: "study",
isTrack: true,
name: 'StudyCenter',
eventCode: 'app_study_center',
hidden: true
},
{
label: "场景集市",
icon: "scene",
name: 'SceneMarket',
eventCode: 'app_scene_market'
}
]
let { sceneType } = uni.$storage.get("userInfo")
if(sceneType == 7) tabs[1].hidden = true
return tabs
} }
}, },
created () { created () {
...@@ -329,7 +343,7 @@ export default { ...@@ -329,7 +343,7 @@ export default {
businessTypeList = [0, 2] businessTypeList = [0, 2]
} else if (sceneType == 1) { } else if (sceneType == 1) {
businessTypeList = [1] businessTypeList = [1]
} } else businessTypeList = [4]
const res = await uni.$api.commonApi.getUnreadRecord({ const res = await uni.$api.commonApi.getUnreadRecord({
// businessType: sceneType, // businessType: sceneType,
businessTypeList, businessTypeList,
...@@ -408,7 +422,8 @@ export default { ...@@ -408,7 +422,8 @@ export default {
uni.$storage.set('userInfo', userInfo) uni.$storage.set('userInfo', userInfo)
let url = { let url = {
1: '/pages/boutique/index', 1: '/pages/boutique/index',
0: '/pages/equity/index' 0: '/pages/equity/index',
7: '/pages/usedCar/index'
}[userInfo.sceneType] }[userInfo.sceneType]
uni.reLaunch({ uni.reLaunch({
url url
...@@ -421,9 +436,9 @@ export default { ...@@ -421,9 +436,9 @@ export default {
}) })
}, },
// 学习中心权限获取 // 学习中心权限获取
getStudyCenterPermission() { getStudyCenterPermission () {
const res = uni.$storage.get('studyCenterPermission') const res = uni.$storage.get('studyCenterPermission')
const {directSaleAuth, hmzxAuth, authorizedBusinessList} = res // 当驻店人员为非直营,且非鸿蒙智行延保业务驻店人员情况下。隐藏左侧【学习中心】图标 const { directSaleAuth, hmzxAuth, authorizedBusinessList } = res // 当驻店人员为非直营,且非鸿蒙智行延保业务驻店人员情况下。隐藏左侧【学习中心】图标
const isYb = authorizedBusinessList && authorizedBusinessList.includes(1) // 1.延保 2.轻改 3.权益 const isYb = authorizedBusinessList && authorizedBusinessList.includes(1) // 1.延保 2.轻改 3.权益
if (directSaleAuth || (hmzxAuth && isYb)) { if (directSaleAuth || (hmzxAuth && isYb)) {
this.tabs[2].hidden = false this.tabs[2].hidden = false
......
...@@ -17,14 +17,16 @@ ...@@ -17,14 +17,16 @@
class="tips-box" class="tips-box"
:style="tipsObject.style" :style="tipsObject.style"
@click.stop="closeTips" @click.stop="closeTips"
>{{tipsObject.text}}</view> >{{ tipsObject.text }}</view>
<view class="right-side"> <view class="right-side">
<view :class="['app-content-box right-content',{'show-content-box':tabIndex == 0}]"> <view :class="['app-content-box right-content', { 'show-content-box': tabIndex == 0 }]">
<view <view
class="start" class="start"
@click="start" @click="start"
> >
<template v-if="sceneType != 7">
<view class="sprite-icon icon-start-text"></view> <view class="sprite-icon icon-start-text"></view>
</template>
</view> </view>
<view class="right-content-box flex"> <view class="right-content-box flex">
<view class="content-left"> <view class="content-left">
...@@ -37,24 +39,14 @@ ...@@ -37,24 +39,14 @@
:stopAutoPlay="previewOff" :stopAutoPlay="previewOff"
:imgKey="bannerKey" :imgKey="bannerKey"
:loadComplete="loadComplete" :loadComplete="loadComplete"
:noDataObject="swiperNoDataObject"
></swiper-component> ></swiper-component>
</view> </view>
</view> </view>
<view class="tool-box box-class"> <view class="tool-box box-class">
<view class="common-title">展业工具</view> <view class="common-title">展业工具</view>
<view class="content-box"> <view class="content-box">
<template v-if="sceneType == 1">
<Entrance @entranceClick="entranceClick"></Entrance> <Entrance @entranceClick="entranceClick"></Entrance>
</template>
<template v-else>
<view class="developing flex">
<image
class="developing-icon"
src="../../assets/images/common/developing.webp"
/>
功能开发中
</view>
</template>
</view> </view>
</view> </view>
</view> </view>
...@@ -68,9 +60,8 @@ ...@@ -68,9 +60,8 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view :class="['app-content-box right-content',{'show-content-box':tabIndex == 99}]"> <view :class="['app-content-box right-content', { 'show-content-box': tabIndex == 99 }]">
<component <component
:is="'Point'" :is="'Point'"
ref="pointRef" ref="pointRef"
...@@ -113,7 +104,7 @@ ...@@ -113,7 +104,7 @@
<!-- 未点击开始接待,弹窗 --> <!-- 未点击开始接待,弹窗 -->
<MessageBox <MessageBox
ref="previewRef" ref="previewRef"
@confirm="previewHandler('preview',true)" @confirm="previewHandler('preview', true)"
:popupW="704" :popupW="704"
content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」" content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText="预览素材" confirmBtnText="预览素材"
...@@ -191,7 +182,8 @@ import StudyCenter from './components/StudyCenter.vue' ...@@ -191,7 +182,8 @@ import StudyCenter from './components/StudyCenter.vue'
import SwiperComponent from '../SwiperComponent.vue' import SwiperComponent from '../SwiperComponent.vue'
import MessageIndex from './components/Message/index.vue' import MessageIndex from './components/Message/index.vue'
import permision from '@/js_sdk/wa-permission/permission.js' import permision from '@/js_sdk/wa-permission/permission.js'
import Entrance from '@/components/Entrance.vue'; import Entrance from '@/components/Entrance.vue'
import mediaResourceManager from '@/utils/mediaResourceManager/mediaResourceManager'
import { interceptionMixin } from '@/mixin/index' import { interceptionMixin } from '@/mixin/index'
export default { export default {
mixins: [recorder, uploader, timeout, versionCheck, merge, interceptionMixin], mixins: [recorder, uploader, timeout, versionCheck, merge, interceptionMixin],
...@@ -209,6 +201,11 @@ export default { ...@@ -209,6 +201,11 @@ export default {
}, },
bannerKey: String, bannerKey: String,
loadComplete: Boolean, loadComplete: Boolean,
swiperNoDataObject: Object,
checkRecordAudio: {
type: Boolean,
default: true
}
}, },
data () { data () {
return { return {
...@@ -223,13 +220,13 @@ export default { ...@@ -223,13 +220,13 @@ export default {
showBeisen: false, showBeisen: false,
tipsObject: {}, tipsObject: {},
autoplay: true, autoplay: true,
previewOff: false, previewOff: false
} }
}, },
mounted () { mounted () {
const userInfo = uni.$storage.get('userInfo') || {} const userInfo = uni.$storage.get('userInfo') || {}
this.userInfo = userInfo this.userInfo = userInfo
permision.requestAndroidPermission('android.permission.RECORD_AUDIO') // 进入界面时检查权限 if (this.checkRecordAudio) permision.requestAndroidPermission('android.permission.RECORD_AUDIO') // 进入界面时检查权限
}, },
provide () { provide () {
return { return {
...@@ -296,15 +293,15 @@ export default { ...@@ -296,15 +293,15 @@ export default {
this.pointComponentName = name this.pointComponentName = name
}, },
handleOperation (val, data) { handleOperation (val, data) {
const { type } = val; const { type } = val
// 提取公共的webview设置逻辑 // 提取公共的webview设置逻辑
const setWebviewStyle = () => { const setWebviewStyle = () => {
//修改UA为PC端 //修改UA为PC端
// plus.navigator.setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0') // plus.navigator.setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0')
const setWebviewStyleWithRetry = () => { const setWebviewStyleWithRetry = () => {
const currentWebview = this.$parent.$scope.$getAppWebview(); const currentWebview = this.$parent.$scope.$getAppWebview()
const wv = currentWebview.children()[1]; const wv = currentWebview.children()[1]
if (wv) { if (wv) {
wv.setStyle({ wv.setStyle({
...@@ -312,56 +309,56 @@ export default { ...@@ -312,56 +309,56 @@ export default {
top: '3%', top: '3%',
height: '97%', height: '97%',
width: '92%' width: '92%'
}); })
return true; // 成功设置样式 return true // 成功设置样式
} else { } else {
return false; // 未找到wv return false // 未找到wv
}
} }
};
const retrySetWebviewStyle = () => { const retrySetWebviewStyle = () => {
if (!setWebviewStyleWithRetry()) { if (!setWebviewStyleWithRetry()) {
// 如果未成功,继续重试 // 如果未成功,继续重试
setTimeout(retrySetWebviewStyle, 50); setTimeout(retrySetWebviewStyle, 50)
}
} }
};
setTimeout(retrySetWebviewStyle, 100); setTimeout(retrySetWebviewStyle, 100)
}; }
// 处理课程详情 // 处理课程详情
const handleCourseDetail = () => { const handleCourseDetail = () => {
const COURSE_ID = val.data.courseId; const COURSE_ID = val.data.courseId
const baseUrl = 'https://cloud.italent.cn/PageHome/Index'; const baseUrl = 'https://cloud.italent.cn/PageHome/Index'
const params = { const params = {
product: 'Learning', product: 'Learning',
keyName: 'Nusion', keyName: 'Nusion',
pageCode: 'LearningCourseTraineeDetailPage', pageCode: 'LearningCourseTraineeDetailPage',
appCode: 'Learning', appCode: 'Learning',
id: COURSE_ID id: COURSE_ID
}; }
const queryString = Object.entries(params) const queryString = Object.entries(params)
.map(([key, value]) => `${key}=${value}`) .map(([key, value]) => `${key}=${value}`)
.join('&'); .join('&')
const tokenUrl = uni.$storage.get('beisenToken') const tokenUrl = uni.$storage.get('beisenToken')
const url = encodeURIComponent(`${baseUrl}?${queryString}#/viewDynamic?1=1`); const url = encodeURIComponent(`${baseUrl}?${queryString}#/viewDynamic?1=1`)
this.jumpUrl = `${tokenUrl}&return_url=${url}`; this.jumpUrl = `${tokenUrl}&return_url=${url}`
}; }
// 根据操作类型执行相应逻辑 // 根据操作类型执行相应逻辑
switch (type) { switch (type) {
case 'openCourse': case 'openCourse':
this.showBeisen = true; this.showBeisen = true
setWebviewStyle(); setWebviewStyle()
break; break
case 'courseDetail': case 'courseDetail':
handleCourseDetail(); handleCourseDetail()
this.showBeisen = true; this.showBeisen = true
setWebviewStyle(); setWebviewStyle()
this.getStudyCenterRead(val.data.id) this.getStudyCenterRead(val.data.id)
break; break
} }
}, },
// 学习中心修改阅读状态,打开后才修改 // 学习中心修改阅读状态,打开后才修改
...@@ -391,6 +388,8 @@ export default { ...@@ -391,6 +388,8 @@ export default {
this.$emit(name) this.$emit(name)
}, },
start () { start () {
const { sceneType } = this
if (sceneType == 7) return //二手车无接待功能
uni.$track.add({ uni.$track.add({
eventCode: 'app_reception_begins' eventCode: 'app_reception_begins'
}) })
...@@ -401,10 +400,25 @@ export default { ...@@ -401,10 +400,25 @@ export default {
this.checkVersion() this.checkVersion()
}, },
async entranceClick (item) { async entranceClick (item) {
const noInterceptPage = ['DailyReport'] // 清除评估单的图片视频资源缓存
if (!noInterceptPage.includes(item.name) && (await this.checkDailyReport() || await this.inspectionOfProhibitionBill())) return
const noInterceptPage = ['DailyReport'],
{ sceneType } = this
if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport(sceneType != 7)))) return
if (sceneType != 7 && await this.inspectionOfProhibitionBill()) return
if (item.name === 'EvaluationFormList') {
mediaResourceManager.cleanupExpired()
uni.navigateTo({ uni.navigateTo({
url: `/pages/boutique/tool/index?componentName=${item.name}` url: `/pages/evaluationForm/index`
})
return
}
let pageName = {
1: 'boutique',
7: 'usedCar'
}[this.sceneType]
uni.navigateTo({
url: `/pages/${pageName}/tool/index?componentName=${item.name}`
}) })
} }
} }
...@@ -568,16 +582,6 @@ export default { ...@@ -568,16 +582,6 @@ export default {
.message-box { .message-box {
height: 100%; height: 100%;
} }
.developing {
height: 100%;
flex-direction: column;
color: #999999;
font-size: toRpx(20);
&-icon {
width: toRpx(344);
height: toRpx(208);
}
}
} }
.content-left, .content-left,
.content-right { .content-right {
...@@ -592,6 +596,7 @@ export default { ...@@ -592,6 +596,7 @@ export default {
.tool-box { .tool-box {
height: calc(100% - #{toRpx(712)}); height: calc(100% - #{toRpx(712)});
.content-box { .content-box {
width: calc(100% - #{toRpx(96)});
margin: 0 toRpx(48); margin: 0 toRpx(48);
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="popup-content" :class="[`popup-${type}`]"> <view class="popup-content" :class="[`popup-${type}`]">
<view class="popup-icon"> <view class="popup-icon">
<image <image
:src="require(`../../../../assets/images/common/${type}-notice.png`)" :src="require(`@/assets/images/common/${type}-notice.png`)"
mode="aspectFit" mode="aspectFit"
class="icon-image" class="icon-image"
/> />
......
<template>
<view class="employee-list">
<template v-for="(i, index) in list">
<view :key="index" @click="choose(i)" :class="['item flex', { active: currentId ? i.id == currentId : i.id == data[params.idKey] }]">
<view class="sprite-icon icon-tag-checked"></view>
{{ i.name + ' | ' + i.phone }}
</view>
</template>
</view>
</template>
<script type="text/ecmascript-6">
import popupmixin from './popupmixin'
export default {
mixins: [popupmixin],
name: 'AgreementList',
inject: ['userInfo'],
data () {
return {
}
},
mounted () {
},
methods: {
async getList (searchValue, search) {
const { userInfo, params } = this
const res = await uni.$api.evaluationApi.getCustodyAgreementList()
if(res.data.code == 0) {
this.updateParams(params, res.data.data || [])
}
},
initData (data) {
this.list = data
this.$emit('onComplete')
},
handleSearch (searchValue) {
this.list = []
this.getList(searchValue, true)
},
choose (i) {
console.log('choose', i)
let { params: { idKey }, data } = this,
value = {
userId: data.deliveryUserId,
deliveryUserId: data.userId
}[idKey]
if ((idKey == 'userId' || idKey == 'deliveryUserId') && value == i.uuid) return uni.showToast({
title: '销售顾问/录单员与交付专员不能选取同一人',
icon: 'none',
mask: true
})
this.currentId = i.id
this.$emit('choose', i)
}
}
}
</script>
<style scoped lang="scss">
.employee-list {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: toRpx(32);
margin: 0 toRpx(48);
.item {
justify-content: center;
height: toRpx(72);
border-radius: toRpx(8);
border: toRpx(2) solid #dce0e6;
box-sizing: border-box;
position: relative;
color: #333333;
font-size: toRpx(32);
.sprite-icon {
display: none;
position: absolute;
top: 0;
right: 0;
}
}
.active {
border-color: #2c66f7;
background: #ecf1ff;
color: #2c66f7;
.sprite-icon {
display: block;
}
}
}
</style>
<template> <template>
<view class="date-list"> <view class="date-list">
<picker-view <picker-view class="picker picker_max" :value="dateValues" indicator-class="indicator" @change="changeDate">
class="picker picker_max"
:value="dateValues"
indicator-class="indicator"
@change="changeDate"
>
<picker-view-column> <picker-view-column>
<template v-for="(item,index) in days"> <template v-for="(item, index) in days">
<view <view class="view" :key="index">{{ item }}</view>
class="view"
:key="index"
>{{item}}</view>
</template> </template>
</picker-view-column> </picker-view-column>
</picker-view> </picker-view>
<picker-view <picker-view class="picker" :value="hourValues" indicator-class="indicator" @change="changeHour">
class="picker"
:value="hourValues"
indicator-class="indicator"
@change="changeHour"
>
<picker-view-column> <picker-view-column>
<template v-for="(item,index) in hours"> <template v-for="(item, index) in hours">
<view <view class="view" :key="index">{{ item }}</view>
class="view"
:key="index"
>{{item}}</view>
</template> </template>
</picker-view-column> </picker-view-column>
</picker-view> </picker-view>
<picker-view <picker-view class="picker" :value="minuteValues" indicator-class="indicator" @change="changeMinutes">
class="picker"
:value="minuteValues"
indicator-class="indicator"
@change="changeMinutes"
>
<picker-view-column> <picker-view-column>
<template v-for="(item,index) in minutes"> <template v-for="(item, index) in minutes">
<view <view class="view" :key="index">{{ item }}</view>
class="view"
:key="index"
>{{item}}</view>
</template> </template>
</picker-view-column> </picker-view-column>
</picker-view> </picker-view>
</view> </view>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
import dayjs from 'dayjs' import dayjs from 'dayjs'
export default { export default {
name: 'DateTime', name: 'DateTime',
...@@ -208,7 +184,7 @@ export default { ...@@ -208,7 +184,7 @@ export default {
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang="scss">
.date-list { .date-list {
height: 100%; height: 100%;
display: grid; display: grid;
...@@ -224,7 +200,7 @@ export default { ...@@ -224,7 +200,7 @@ export default {
height: toRpx(72); height: toRpx(72);
} }
} }
/deep/.indicator{ /deep/.indicator {
height: toRpx(72); height: toRpx(72);
} }
} }
......
<template>
<view class="date-list">
<picker-view class="picker picker_max" :value="dateValues" indicator-class="indicator" @change="changeDate">
<picker-view-column>
<template v-for="(item, index) in days">
<view class="view" :key="index">{{ item }}</view>
</template>
</picker-view-column>
</picker-view>
<picker-view class="picker" :value="hourValues" indicator-class="indicator" @change="changeHour">
<picker-view-column>
<template v-for="(item, index) in hours">
<view class="view" :key="index">{{ item }}</view>
</template>
</picker-view-column>
</picker-view>
<picker-view class="picker" :value="minuteValues" indicator-class="indicator" @change="changeMinutes">
<picker-view-column>
<template v-for="(item, index) in minutes">
<view class="view" :key="index">{{ item }}</view>
</template>
</picker-view-column>
</picker-view>
</view>
</template>
<script type="text/ecmascript-6">
import dayjs from 'dayjs'
export default {
name: 'DateTimeChange',
inject: ['userInfo'],
data () {
return {
hours: [],
days: [],
minutes: [],
dateValues: [],
hourValues: [],
minuteValues: [],
loading: true,
currentDate: '',
currentHour: '',
currentMinute: ''
}
},
props: {
// 开始时间,格式:YYYY/MM/DD
startTime: {
type: String,
default: '2019/01/01'
},
// 结束时间,格式:YYYY/MM/DD
endTime: {
type: String,
default: '2029/01/01'
},
// 默认选中的时间,格式:YYYY/MM/DD HH:mm:ss
defaultTime: {
type: String,
default: ''
}
},
mounted () {
this.initDate()
},
methods: {
initDate () {
console.log('initDate')
this.dateValues = []
this.hourValues = []
this.minuteValues = []
this.getDateList(this.startTime, this.endTime)
},
getDateList (starDay, endDay) {
const arr = [];
const dates = [];
// 设置两个日期UTC时间
const db = new Date(starDay);
const de = new Date(endDay);
// 获取两个日期GTM时间
const s = db.getTime() - 24 * 60 * 60 * 1000;
const d = de.getTime() - 24 * 60 * 60 * 1000;
console.log(db,de)
// 获取到两个日期之间的每一天的毫秒数
for (let i = s; i <= d;) {
i = i + 24 * 60 * 60 * 1000;
arr.push(parseInt(String(i)));
}
// 获取每一天的时间 YY-MM-DD
for (const j in arr) {
const time = new Date(arr[j]);
const year = time.getFullYear();
const mouth = time.getMonth() + 1 >= 10 ? time.getMonth() + 1 : '0' + (time.getMonth() + 1);
const day = time.getDate() >= 10 ? time.getDate() : '0' + time.getDate();
const YYMMDD = year + '/' + mouth + '/' + day;
dates.push(YYMMDD);
}
this.getHourList(dates)
},
getHourList (days) {
const hours = [], today = new Date();
for (let hour = 0; hour < today.getHours() + 1; hour++) {
hours.push(hour.toString().padStart(2, '0'));
}
this.getMinuteList(days, hours)
},
getMinuteList (days, hours) {
const minutes = [];
const today = new Date()
for (let minute = 0; minute < today.getMinutes() + 1; minute++) {
minutes.push(minute.toString().padStart(2, '0'));
}
this.hours = hours
this.days = days
this.minutes = minutes
// 设置默认时间
if (this.defaultTime) {
// 如果有传入默认时间,则使用传入的时间
const defaultDate = this.defaultTime.split(' ')[0]
const defaultTime = this.defaultTime.split(' ')[1]
const defaultHour = defaultTime.split(':')[0]
const defaultMinute = defaultTime.split(':')[1]
this.currentDate = defaultDate
this.currentHour = defaultHour
this.currentMinute = defaultMinute
// 设置选中索引
this.dateValues = [days.indexOf(defaultDate) || 0]
this.hourValues = [hours.indexOf(defaultHour) || 0]
this.minuteValues = [minutes.indexOf(defaultMinute) || 0]
} else {
// 否则使用当前时间
const HOUR_STR = today.getHours().toString().padStart(2, '0')
const MINUTE_STR = today.getMinutes().toString().padStart(2, '0')
const TODAY_STR = dayjs().format('YYYY/MM/DD')
this.currentDate = TODAY_STR
this.currentHour = HOUR_STR
this.currentMinute = MINUTE_STR
// 设置选中索引
const todayIndex = days.indexOf(TODAY_STR)
const hourIndex = hours.indexOf(HOUR_STR)
const minuteIndex = minutes.indexOf(MINUTE_STR)
this.dateValues = [todayIndex >= 0 ? todayIndex : 0]
this.hourValues = [hourIndex >= 0 ? hourIndex : 0]
this.minuteValues = [minuteIndex >= 0 ? minuteIndex : 0]
}
this.loading = false
setTimeout(() => {
this.minuteValues = this.minuteValues
this.loading = false
}, 100)
this.$emit('onComplete')
},
changeDate (e) {
const { days } = this
const { value } = e.detail
const index = value[0]
this.currentDate = days[index]
// 选择过去时间需要重新初始化时分
const today = dayjs().format('YYYY/MM/DD')
const timeType = this.currentDate != today ? 1 : 0
this.getAllTimeOrPartTime(timeType)
},
changeHour (e) {
const { hours, days, dateValues } = this
const { value } = e.detail
const index = value[0]
this.currentHour = hours[index]
// 处理当前天切换别的小时,别的分不能选后面分到60的问题
// const dayIndex = dateValues[0]
// this.currentDate = days[dayIndex]
const today = dayjs().format('YYYY/MM/DD')
const timeType = this.currentDate != today ? 1 : 0
this.getAllTimeOrPartTimeMinute(timeType)
},
changeMinutes (e) {
const { minutes } = this
const { value } = e.detail
const index = value[0]
this.currentMinute = minutes[index]
},
getAllTimeOrPartTime (type) {
const today = new Date()
const hours = [], minutes = [], hour_len = type == 1 ? 24 : today.getHours() + 1, minute_len = type == 1 ? 60 : today.getMinutes() + 1;
for (let hour = 0; hour < hour_len; hour++) {
hours.push(hour.toString().padStart(2, '0'));
}
for (let minute = 0; minute < minute_len; minute++) {
minutes.push(minute.toString().padStart(2, '0'));
}
this.hours = hours
this.minutes = minutes
},
getAllTimeOrPartTimeMinute (type) {
const today = new Date()
const currentHour = today.getHours()
const timeType = this.currentHour != currentHour ? 1 : 0
const minutes = [], minute_len = type == 1 || timeType == 1 ? 60 : today.getMinutes() + 1;
for (let minute = 0; minute < minute_len; minute++) {
minutes.push(minute.toString().padStart(2, '0'));
}
this.minutes = minutes
},
getResult () {
let str = ''
str = this.currentDate + ' ' + this.currentHour + ':' + this.currentMinute + ":00"
const result = dayjs(str).format('YYYY/MM/DD HH:mm:ss')
return result
}
}
}
</script>
<style scoped lang="scss">
.date-list {
height: 100%;
display: grid;
grid-template-columns: repeat(3, 1fr);
.picker {
height: 100%;
text-align: center;
.view {
display: flex;
align-items: center;
justify-content: center;
font-size: toRpx(32);
height: toRpx(72);
}
}
/deep/.indicator {
height: toRpx(72);
}
}
</style>
<template> <template>
<view class="employee-list"> <view class="employee-list">
<template v-for="(i, index) in list"> <template v-for="(i, index) in list">
<view <view :key="index" @click="choose(i)" :class="['item flex', { active: currentId ? i.uuid == currentId : i.uuid == data[params.idKey] }]">
:key="index"
@click="choose(i)"
:class="['item flex',{active: currentId ? i.uuid == currentId : i.uuid == data[params.idKey]}]"
>
<view class="sprite-icon icon-tag-checked"></view> <view class="sprite-icon icon-tag-checked"></view>
{{i.staffName}} {{ i.staffName }}
</view> </view>
</template> </template>
</view> </view>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
import popupmixin from './popupmixin' import popupmixin from './popupmixin'
export default { export default {
mixins: [popupmixin], mixins: [popupmixin],
...@@ -27,10 +23,12 @@ export default { ...@@ -27,10 +23,12 @@ export default {
}, },
methods: { methods: {
async getList (searchValue, search) { async getList (searchValue, search) {
const { userInfo, params } = this, const { userInfo, params } = this,
{ cacheData } = params { cacheData } = params
this.currentId = '' this.currentId = ''
if (!search && cacheData && cacheData.length) { if (!search && cacheData && cacheData.length) {
console.log('getList', params,data)
this.initData(cacheData) this.initData(cacheData)
return return
} }
...@@ -51,6 +49,7 @@ export default { ...@@ -51,6 +49,7 @@ export default {
this.getList(searchValue, true) this.getList(searchValue, true)
}, },
choose (i) { choose (i) {
console.log('choose', i)
let { params: { idKey }, data } = this, let { params: { idKey }, data } = this,
value = { value = {
userId: data.deliveryUserId, userId: data.deliveryUserId,
...@@ -68,7 +67,7 @@ export default { ...@@ -68,7 +67,7 @@ export default {
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang="scss">
.employee-list { .employee-list {
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
......
...@@ -83,7 +83,7 @@ const componentConfig = { ...@@ -83,7 +83,7 @@ const componentConfig = {
placeholder: '请输入名称', placeholder: '请输入名称',
idKey: 'goodsId', idKey: 'goodsId',
nullTips: '请勾选商品', nullTips: '请勾选商品',
goodsType: [1],//前档 goodsType: [1], //前档
cacheData: [], cacheData: [],
loadComplete: false, loadComplete: false,
searchValue: '', searchValue: '',
...@@ -119,7 +119,7 @@ const componentConfig = { ...@@ -119,7 +119,7 @@ const componentConfig = {
placeholder: '请输入名称', placeholder: '请输入名称',
idKey: 'goodsId', idKey: 'goodsId',
nullTips: '请勾选商品', nullTips: '请勾选商品',
goodsType: [4],// 后档 goodsType: [4], // 后档
cacheData: [], cacheData: [],
loadComplete: false, loadComplete: false,
searchValue: '', searchValue: '',
...@@ -131,7 +131,7 @@ const componentConfig = { ...@@ -131,7 +131,7 @@ const componentConfig = {
placeholder: '请输入名称', placeholder: '请输入名称',
idKey: 'goodsId', idKey: 'goodsId',
nullTips: '请勾选商品', nullTips: '请勾选商品',
goodsType: [5, 6, 7],// 天窗 goodsType: [5, 6, 7], // 天窗
cacheData: [], cacheData: [],
loadComplete: false, loadComplete: false,
searchValue: '', searchValue: '',
...@@ -163,6 +163,22 @@ const componentConfig = { ...@@ -163,6 +163,22 @@ const componentConfig = {
title: '选择时间', title: '选择时间',
hideSearch: true, hideSearch: true,
loadComplete: false loadComplete: false
},
14: {
name: 'AgreementList',
title: '代保管人员',
placeholder: '请输入姓名',
idKey: 'id',
cacheData: [],
loadComplete: false,
hideSearch: true,
noData: false
},
15: {
name: 'DateTimeChange',
title: '选择时间',
hideSearch: true,
loadComplete: false
} }
} }
export default { componentConfig } export default { componentConfig }
<template> <template>
<view class="order-popup"> <view class="order-popup">
<popup <popup :position="position" :animation="animation" ref="popup" @onConfirm="confirm" @onCancel="cancel">
:position="position"
:animation="animation"
ref="popup"
@onConfirm="confirm"
@onCancel="cancel"
>
<view class="popup-title flex"> <view class="popup-title flex">
{{title}} {{ title }}
<view <view class="popup-close flex" @click="close">
class="popup-close flex" <uni-icons type="closeempty" size="16"></uni-icons>
@click="close"
>
<uni-icons
type="closeempty"
size="16"
></uni-icons>
</view> </view>
</view> </view>
<template v-if="!componentObject[popupType].hideSearch"> <template v-if="!componentObject[popupType].hideSearch">
<view class="popup-search"> <view class="popup-search">
<input <input class="input" type="text" :placeholder="componentObject[popupType].placeholder || '请输入'" placeholder-class="placeholder" v-model="componentObject[popupType].searchValue" confirm-type="search" @confirm="handleSearch" />
class="input" <view class="clear flex" @click="clear">
type="text" <uni-icons type="closeempty" size="16" v-if="componentObject[popupType].searchValue"></uni-icons>
:placeholder="componentObject[popupType].placeholder || '请输入'"
placeholder-class="placeholder"
v-model="componentObject[popupType].searchValue"
confirm-type="search"
@confirm="handleSearch"
>
<view
class="clear flex"
@click="clear"
>
<uni-icons
type="closeempty"
size="16"
v-if="componentObject[popupType].searchValue"
></uni-icons>
</view> </view>
</view> </view>
</template> </template>
<view :class="['popup-body',{ 'hide-search' :componentObject[popupType].hideSearch}]"> <view :class="['popup-body', { 'hide-search': componentObject[popupType].hideSearch }]">
<scroll-view <scroll-view scroll-y :class="['popup-scroll-view', { show: componentObject[popupType].loadComplete }]">
scroll-y <component :is="componentObject[popupType].name" :params.sync="componentObject[popupType]" :data="data" :dataKey="dataKey" :isDefeatOrder="isDefeatOrder" :defaultTime="defaultTime" :positionTypeList="positionTypeList" ref="componentRef" @choose="chooseContent = $event" @openSkuPopup="openSkuPopup" @onComplete="componentObject[popupType].loadComplete = true"></component>
:class="['popup-scroll-view',{show:componentObject[popupType].loadComplete}]"
>
<component
:is="componentObject[popupType].name"
:params.sync="componentObject[popupType]"
:data="data"
:dataKey="dataKey"
:isDefeatOrder="isDefeatOrder"
:positionTypeList="positionTypeList"
ref="componentRef"
@choose="chooseContent = $event"
@openSkuPopup="openSkuPopup"
@onComplete="componentObject[popupType].loadComplete = true"
></component>
<template v-if="componentObject[popupType].noData"> <template v-if="componentObject[popupType].noData">
<view class="nothing flex">暂无数据</view> <view class="nothing flex">暂无数据</view>
</template> </template>
</scroll-view> </scroll-view>
<image <image v-if="!componentObject[popupType].loadComplete" class="loading" src="../../assets/images/common/loadding.gif" />
v-if="!componentObject[popupType].loadComplete"
class="loading"
src="../../assets/images/common/loadding.gif"
/>
</view> </view>
</popup> </popup>
<sku-popup <sku-popup ref="skuPopupRef" @onConfirm="skuConfirm"></sku-popup>
ref="skuPopupRef"
@onConfirm="skuConfirm"
></sku-popup>
</view> </view>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
import Popup from '@/components/Popup.vue' import Popup from '@/components/Popup.vue'
import config from './config' import config from './config'
import EmployeeList from './components/EmployeeList.vue' import EmployeeList from './components/EmployeeList.vue'
...@@ -89,6 +41,8 @@ import PackageList from './components/PackageList.vue' ...@@ -89,6 +41,8 @@ import PackageList from './components/PackageList.vue'
import SkuGoodsList from './components/SkuGoodsList.vue' import SkuGoodsList from './components/SkuGoodsList.vue'
import SkuPopup from './components/SkuPopup.vue' import SkuPopup from './components/SkuPopup.vue'
import DateTime from './components/DateTime.vue' import DateTime from './components/DateTime.vue'
import DateTimeChange from './components/DateTimeChange.vue'
import AgreementList from './components/AgreementList.vue'
export default { export default {
components: { components: {
Popup, Popup,
...@@ -100,7 +54,9 @@ export default { ...@@ -100,7 +54,9 @@ export default {
PackageList, PackageList,
SkuGoodsList, SkuGoodsList,
SkuPopup, SkuPopup,
DateTime DateTime,
AgreementList,
DateTimeChange
}, },
name: '', name: '',
props: { props: {
...@@ -123,7 +79,8 @@ export default { ...@@ -123,7 +79,8 @@ export default {
isDefeatOrder: { isDefeatOrder: {
type: Boolean, type: Boolean,
default: false default: false
} },
defaultTime: String
}, },
provide () { provide () {
...@@ -213,7 +170,7 @@ export default { ...@@ -213,7 +170,7 @@ export default {
confirm () { confirm () {
try { try {
let { chooseContent, popupType, componentObject } = this let { chooseContent, popupType, componentObject } = this
if (popupType == 13) { if (popupType == 13 || popupType == 15) {
chooseContent = this.componentRef().getResult() chooseContent = this.componentRef().getResult()
} }
if (chooseContent) { if (chooseContent) {
...@@ -252,7 +209,7 @@ export default { ...@@ -252,7 +209,7 @@ export default {
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang="scss">
.popup-box { .popup-box {
border-radius: toRpx(32) toRpx(32) 0 0; border-radius: toRpx(32) toRpx(32) 0 0;
background: #ffffff; background: #ffffff;
......
...@@ -53,7 +53,14 @@ ...@@ -53,7 +53,14 @@
</template> </template>
<template v-else> <template v-else>
<view class="nothing flex"> <view class="nothing flex">
该场景尚未配置素材,请联系总部人员 <template v-if="noDataObject.icon">
<image
:src="noDataObject.icon"
class="icon"
:style="noDataObject.style"
/>
</template>
{{noDataObject.text || '该场景尚未配置素材,请联系总部人员'}}
</view> </view>
</template> </template>
</template> </template>
...@@ -107,7 +114,8 @@ export default { ...@@ -107,7 +114,8 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
loadComplete: Boolean loadComplete: Boolean,
noDataObject: Object
}, },
watch: { watch: {
moduleList: { moduleList: {
...@@ -258,7 +266,7 @@ export default { ...@@ -258,7 +266,7 @@ export default {
let { blockX, ismove } = this let { blockX, ismove } = this
let pageX = e.changedTouches[0].pageX let pageX = e.changedTouches[0].pageX
let nums = ismove - pageX let nums = ismove - pageX
if(nums == 0) return if (nums == 0) return
if (!(nums > 50 || blockX < -30) || !(nums < -50 || blockX > 30)) { if (!(nums > 50 || blockX < -30) || !(nums < -50 || blockX > 30)) {
this.viewX = -10 this.viewX = -10
setTimeout(() => { setTimeout(() => {
...@@ -290,7 +298,7 @@ export default { ...@@ -290,7 +298,7 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
justify-content: center; justify-content: center;
.gif{ .gif {
width: toRpx(64); width: toRpx(64);
height: toRpx(64); height: toRpx(64);
} }
...@@ -410,5 +418,10 @@ export default { ...@@ -410,5 +418,10 @@ export default {
justify-content: center; justify-content: center;
color: #999; color: #999;
font-size: toRpx(20); font-size: toRpx(20);
flex-direction: column;
.icon {
width: toRpx(344);
height: toRpx(236);
}
} }
</style> </style>
...@@ -49,7 +49,7 @@ const domain = { ...@@ -49,7 +49,7 @@ const domain = {
}[target[index]] }[target[index]]
const djDomain = { const djDomain = {
ip: 'http://192.168.2.59:8292', ip: 'https://dj.test.glsx.com.cn',
// ip: 'http://192.168.2.80:8558', // ip: 'http://192.168.2.80:8558',
dev: 'http://dj.dev.glsx.com.cn', dev: 'http://dj.dev.glsx.com.cn',
beta: 'https://dj.beta.glsx.com.cn', //预发布 appid: wx9f91c1ec493eb425 beta: 'https://dj.beta.glsx.com.cn', //预发布 appid: wx9f91c1ec493eb425
...@@ -58,6 +58,16 @@ const djDomain = { ...@@ -58,6 +58,16 @@ const djDomain = {
pet: 'https://cdptest.glsx.com.cn' //压测 appid: wx7ce755e425603084 pet: 'https://cdptest.glsx.com.cn' //压测 appid: wx7ce755e425603084
}[target[index]] }[target[index]]
const evaluationDomain = {
ip: 'http://192.168.1.221:5003',
// ip: 'http://192.168.2.80:8558',
dev: 'http://gsc.dev.glsx.com.cn',
beta: 'https://dj.beta.glsx.com.cn', //预发布 appid: wx9f91c1ec493eb425
uat: 'http://gsc.test.glsx.com.cn', //测试 appid: wxe10067a63c1856ac
prod: 'https://dj.glsx.com.cn',
pet: 'https://cdptest.glsx.com.cn' //压测 appid: wx7ce755e425603084
}[target[index]]
const merchantDomain = { const merchantDomain = {
ip: 'http://rop-merchant.dev.glsx.com.cn', ip: 'http://rop-merchant.dev.glsx.com.cn',
dev: 'http://rop-merchant.dev.glsx.com.cn', dev: 'http://rop-merchant.dev.glsx.com.cn',
...@@ -68,7 +78,7 @@ const merchantDomain = { ...@@ -68,7 +78,7 @@ const merchantDomain = {
}[target[index]] }[target[index]]
const djSecretKey = { const djSecretKey = {
ip: {}, ip: { appKey: '48e5e13229b82c1b4e6e8c96151f0637', secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b' },
dev: { dev: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637', appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b' secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
...@@ -91,6 +101,45 @@ const djSecretKey = { ...@@ -91,6 +101,45 @@ const djSecretKey = {
} }
}[target[index]] }[target[index]]
const signSecretKey = {
ip: {
appKey: 'App_PromoteBusiness',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b',
carBasrUrl: 'http://qcdidicb.glsx.com.cn/router',
pdfUrl: 'https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/testdev/8981c8ca-8b30-436e-bb17-82fb6a53a3c4%E4%BA%8C%E6%89%8B%E8%BD%A6%E8%BD%AC%E8%AE%A9%E5%8D%8F%E8%AE%AE.pdf'
},
dev: {
appKey: 'App_PromoteBusiness',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b',
carBasrUrl: 'http://qcdidicb.glsx.com.cn/router',
pdfUrl: 'https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/testdev/8981c8ca-8b30-436e-bb17-82fb6a53a3c4%E4%BA%8C%E6%89%8B%E8%BD%A6%E8%BD%AC%E8%AE%A9%E5%8D%8F%E8%AE%AE.pdf'
},
uat: {
appKey: 'App_PromoteBusiness',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b',
carBasrUrl: 'http://qcdidicb.glsx.com.cn/router',
pdfUrl: 'https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/testdev/8981c8ca-8b30-436e-bb17-82fb6a53a3c4%E4%BA%8C%E6%89%8B%E8%BD%A6%E8%BD%AC%E8%AE%A9%E5%8D%8F%E8%AE%AE.pdf'
},
beta: {
appKey: 'App_PromoteBusiness',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b',
carBasrUrl: 'http://didicb.glsx.com.cn/router',
pdfUrl: 'https://dj-oss-fastdfs-release.oss-cn-shenzhen.aliyuncs.com/release/3b7558fa-8b73-48ce-af40-7b853b0ea7de%E4%BA%8C%E6%89%8B%E8%BD%A6%E8%BD%AC%E8%AE%A9%E5%8D%8F%E8%AE%AE.pdf?wework_cfm_code=MvGt9rGpf0SNZt3fX0sBRZyHAe4qyfG0tz%2BFurp9RbBYoiLzPGcBycaKYEJM76NISOqT4SHJWZi8VU6YBosMk4ZDmdsk7bDma%2FQOkR8GLN7rZHtT3dOTFpQSKB3yR45vv%2BxKpsogpxQr7pO%2BtIwK6JWcEobZT%2FYnTEzlDwnhdbAt2emEro5iNhhuIIqDJiTM9pmgchS7G%2F77HbSGCNpq7oI%3D'
},
prod: {
appKey: 'App_PromoteBusiness',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b',
carBasrUrl: 'http://didicb.glsx.com.cn/router',
pdfUrl: 'https://dj-oss-fastdfs-release.oss-cn-shenzhen.aliyuncs.com/release/3b7558fa-8b73-48ce-af40-7b853b0ea7de%E4%BA%8C%E6%89%8B%E8%BD%A6%E8%BD%AC%E8%AE%A9%E5%8D%8F%E8%AE%AE.pdf?wework_cfm_code=MvGt9rGpf0SNZt3fX0sBRZyHAe4qyfG0tz%2BFurp9RbBYoiLzPGcBycaKYEJM76NISOqT4SHJWZi8VU6YBosMk4ZDmdsk7bDma%2FQOkR8GLN7rZHtT3dOTFpQSKB3yR45vv%2BxKpsogpxQr7pO%2BtIwK6JWcEobZT%2FYnTEzlDwnhdbAt2emEro5iNhhuIIqDJiTM9pmgchS7G%2F77HbSGCNpq7oI%3D'
},
pet: {
appKey: 'App_PromoteBusiness',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b',
carBasrUrl: 'http://qcdidicb.glsx.com.cn/router',
pdfUrl: 'https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/testdev/8981c8ca-8b30-436e-bb17-82fb6a53a3c4%E4%BA%8C%E6%89%8B%E8%BD%A6%E8%BD%AC%E8%AE%A9%E5%8D%8F%E8%AE%AE.pdf'
}
}[target[index]]
const pathEnum = { const pathEnum = {
sso: '/rop-scrm-sso/', sso: '/rop-scrm-sso/',
shopmall: '/rop-scrm-shopmall/', shopmall: '/rop-scrm-shopmall/',
...@@ -110,7 +159,8 @@ const pathEnum = { ...@@ -110,7 +159,8 @@ const pathEnum = {
boutique: '/rop-dj-car-boutique/', boutique: '/rop-dj-car-boutique/',
merchants: '/rop-merchants/', merchants: '/rop-merchants/',
pad: '/rop-dj-pad/', pad: '/rop-dj-pad/',
clue: '/rop-scrm-clue/' clue: '/rop-scrm-clue/',
evaluation: '/gsc-vcp-pad-facade'
} }
const CONFIG_ENV_MAP = { const CONFIG_ENV_MAP = {
1: 'develop', 1: 'develop',
...@@ -126,5 +176,7 @@ module.exports = { ...@@ -126,5 +176,7 @@ module.exports = {
env: CONFIG_ENV_MAP[index], env: CONFIG_ENV_MAP[index],
djDomain, djDomain,
merchantDomain, merchantDomain,
djSecretKey djSecretKey,
signSecretKey,
evaluationDomain
} }
...@@ -15,7 +15,14 @@ import logger from './utils/logger' ...@@ -15,7 +15,14 @@ import logger from './utils/logger'
import { Storage } from './utils/cache/index' import { Storage } from './utils/cache/index'
import api from './api/index' import api from './api/index'
import Track from './utils/Track' import Track from './utils/Track'
import { signSecretKey, pathEnum, domain, djDomain, evaluationDomain, merchantDomain } from './env'
const HOST = {
scrm: domain,
dj: djDomain,
eva: evaluationDomain,
merchant: merchantDomain,
ip: 'http://192.168.1.221:5003'
}
uni.$api = api uni.$api = api
// uni.$lock = false // uni.$lock = false
uni.$storage = new Storage() uni.$storage = new Storage()
...@@ -26,6 +33,65 @@ uni.$logger = logger ...@@ -26,6 +33,65 @@ uni.$logger = logger
uni.$dbTempRecord = new DBRecord() uni.$dbTempRecord = new DBRecord()
uni.$dbManager = new DBManager() uni.$dbManager = new DBManager()
uni.$track = new Track() uni.$track = new Track()
console.log('init.js', HOST['eva'])
uni.signHttpConfig = {
baseURL: `${HOST['eva']}${pathEnum.evaluation}`,
timeout: 300000,
appId: signSecretKey.appKey,
appSecret: signSecretKey.secret,
session: {
requiresSession: true,
sessionParamName: 'sessionId',
sessionId: _ => uni.$storage?.get('sessionId')
},
response: {
code_key: 'code',
code_success_value: '0',
data_key: 'data',
errId: 'code',
errId_logout_value: '21'
},
events: {
response: (responseData, config) => {
console.log('response事件触发', responseData, config)
},
timeout: 30000,
response: {
code_key: 'code',
code_success_value: '0',
data_key: 'data',
errId: 'errId',
errId_logout_value: '21'
},
request: (request, config) => {
console.log('request事件触发', request, config)
},
error: (error, config) => {
console.log('error事件触发', error, config)
if(error && error.errMsg == 'request:fail') {
return uni.showToast({
title: '网络异常',
icon: 'none',
})
}
uni.showToast({
title: error.msg || '业务异常',
icon: 'none',
})
},
logout: config => {
console.log('logout事件触发', config)
const pages = getCurrentPages(),
currentPage = pages[pages.length - 1]
uni.hideLoading()
if (currentPage.route != 'pages/common/login')
uni.reLaunch({
url: '/pages/common/login'
})
}
}
}
!(async _ => { !(async _ => {
await uni.$dbManager.init() await uni.$dbManager.init()
await uni.$dbTempRecord.init() await uni.$dbTempRecord.init()
......
...@@ -164,17 +164,17 @@ function requestAndroidPermission(permissionID) { ...@@ -164,17 +164,17 @@ function requestAndroidPermission(permissionID) {
var result = 0; var result = 0;
for (var i = 0; i < resultObj.granted.length; i++) { for (var i = 0; i < resultObj.granted.length; i++) {
var grantedPermission = resultObj.granted[i]; var grantedPermission = resultObj.granted[i];
uni.$logger.local.info('已获取的权限:' + grantedPermission); console.log('已获取的权限:' + grantedPermission);
result = 1 result = 1
} }
for (var i = 0; i < resultObj.deniedPresent.length; i++) { for (var i = 0; i < resultObj.deniedPresent.length; i++) {
var deniedPresentPermission = resultObj.deniedPresent[i]; var deniedPresentPermission = resultObj.deniedPresent[i];
uni.$logger.local.info('拒绝本次申请的权限:' + deniedPresentPermission); console.log('拒绝本次申请的权限:' + deniedPresentPermission);
result = 0 result = 0
} }
for (var i = 0; i < resultObj.deniedAlways.length; i++) { for (var i = 0; i < resultObj.deniedAlways.length; i++) {
var deniedAlwaysPermission = resultObj.deniedAlways[i]; var deniedAlwaysPermission = resultObj.deniedAlways[i];
uni.$logger.local.info('永久拒绝申请的权限:' + deniedAlwaysPermission); console.log('永久拒绝申请的权限:' + deniedAlwaysPermission);
result = -1 result = -1
} }
resolve(result); resolve(result);
...@@ -184,7 +184,7 @@ function requestAndroidPermission(permissionID) { ...@@ -184,7 +184,7 @@ function requestAndroidPermission(permissionID) {
// } // }
}, },
function(error) { function(error) {
uni.$logger.error('申请权限错误:' + error.code + " = " + error.message); console.log('申请权限错误:' + error.code + " = " + error.message);
resolve({ resolve({
code: error.code, code: error.code,
message: error.message message: error.message
......
...@@ -15,6 +15,8 @@ import MessageBox from './components/MessageBox/index' ...@@ -15,6 +15,8 @@ import MessageBox from './components/MessageBox/index'
import wnCanvas from './components/Canvas/wn-canvas' import wnCanvas from './components/Canvas/wn-canvas'
import UpdateBox from './components/UpdateBox' import UpdateBox from './components/UpdateBox'
import webView from './components/WebView' import webView from './components/WebView'
import uView from 'uview-ui'
Vue.use(uView)
Vue.use(webView) Vue.use(webView)
Vue.component('GlsxImage', GlsxImage) Vue.component('GlsxImage', GlsxImage)
Vue.component('MessageBox', MessageBox) Vue.component('MessageBox', MessageBox)
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"name" : "展业助手", "name" : "展业助手",
"appid" : "__UNI__D3BD3DF", "appid" : "__UNI__D3BD3DF",
"description" : "", "description" : "",
"versionName" : "2.13.0", "versionName" : "2.14.0",
"versionCode" : "2130", "versionCode" : "2140",
"transformPx" : false, "transformPx" : false,
"sassImplementationName" : "node-sass", "sassImplementationName" : "node-sass",
/* 5+App特有相关 */ /* 5+App特有相关 */
...@@ -55,7 +55,8 @@ ...@@ -55,7 +55,8 @@
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>" "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>"
], ],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"targetSdkVersion" : 30 "targetSdkVersion" : 30,
"minSdkVersion" : 21
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios" : { "ios" : {
......
...@@ -11,16 +11,22 @@ export default { ...@@ -11,16 +11,22 @@ export default {
}, },
mounted () { }, mounted () { },
methods: { methods: {
async checkDailyReport () { /**
*
* @param {是否需要检测企微打卡} checkWW
* @returns
*/
async checkDailyReport (checkWW = true) {
modalQueue = [] modalQueue = []
eventRequest = [] eventRequest = []
let { sceneType, isSuper, loginRole } = this.userInfo let { sceneType, isSuper, loginRole } = this.userInfo
if (!(isSuper || loginRole == 3 || loginRole == 5 || loginRole == 6)) { if (!(isSuper || loginRole == 3 || loginRole == 5 || loginRole == 6)) {
// 判断员工是否已打卡上班 // 判断员工是否已打卡上班
eventRequest.push(this.clockedIntoWork()) if (checkWW) eventRequest.push(this.clockedIntoWork())
let apiName = { let apiName = {
0: this.equityStaffDailyReport, 0: this.equityStaffDailyReport,
1: this.staffDailyReport 1: this.staffDailyReport,
7: this.usedCarDailyReport
} }
eventRequest.push(apiName[sceneType]()) eventRequest.push(apiName[sceneType]())
} }
...@@ -54,6 +60,9 @@ export default { ...@@ -54,6 +60,9 @@ export default {
}) })
} }
}, },
/**
* 轻改日报
*/
staffDailyReport () { staffDailyReport () {
let { userInfo } = this let { userInfo } = this
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
...@@ -82,7 +91,7 @@ export default { ...@@ -82,7 +91,7 @@ export default {
console.log(formattedDate) console.log(formattedDate)
const pages = getCurrentPages(), const pages = getCurrentPages(),
currentPage = pages[pages.length - 1] currentPage = pages[pages.length - 1]
if (currentPage.route == 'pages/boutique/tool/index') uni.$emit('jumpToDailyReport',formattedDate) if (currentPage.route == 'pages/boutique/tool/index') uni.$emit('jumpToDailyReport', formattedDate)
else uni.navigateTo({ else uni.navigateTo({
url: `/pages/boutique/tool/index?componentName=DailyReport&currentDate=${formattedDate}` url: `/pages/boutique/tool/index?componentName=DailyReport&currentDate=${formattedDate}`
}) })
...@@ -98,6 +107,51 @@ export default { ...@@ -98,6 +107,51 @@ export default {
}) })
}) })
}, },
/**
* 二手车日报
*/
usedCarDailyReport () {
let { userInfo } = this
return new Promise(async (resolve, reject) => {
const data = await uni.$api.interceptionApi.checkUsedCarStaffIsNew({
merchantId: userInfo.shopMerchantId,
yqMerchantId: userInfo.merchantId,
staffUuid: userInfo.uuid,
staffPhone: userInfo.phone,
sceneType: 7
})
if (!data) resolve(false) //检测是否新员工或调店 flase不检测日报 true检测日报
else {
const _data = await uni.$api.interceptionApi.checkUsedCarStaffDailyReportValid({
sellerMerchantId: userInfo.shopMerchantId,
}) //true 已填写 false 未填写
if (!_data) {
// 获取当前日期
let currentDate = new Date()
// 获取上一天的日期
let previousDate = new Date(currentDate)
previousDate.setDate(currentDate.getDate() - 1)
// toISOString 方法会丢失时区 导致与北京时间差八小时
let hour = previousDate.getHours() + 8
previousDate.setHours(hour)
// 格式化日期为"yyyy-mm-dd"
let formattedDate = previousDate.toISOString().split('T')[0]
this.addModalToQueue('日报提醒', '您有未填写的日报,请点击前往。', '前往填写', false, 2, res => {
if (res.confirm) {
const pages = getCurrentPages(),
currentPage = pages[pages.length - 1]
if (currentPage.route == 'pages/usedCar/tool/index') uni.$emit('jumpToDailyReport', formattedDate)
else uni.navigateTo({
url: `/pages/usedCar/tool/index?componentName=DailyReport&currentDate=${formattedDate}`
})
}
})
resolve(true)
} else resolve(false)
}
})
},
clockedIntoWork () { clockedIntoWork () {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.$api.interceptionApi uni.$api.interceptionApi
...@@ -124,6 +178,7 @@ export default { ...@@ -124,6 +178,7 @@ export default {
}) })
}) })
}, },
/**延保日报 */
equityStaffDailyReport () { }, equityStaffDailyReport () { },
addModalToQueue (title, content, confirmText, showCancel, priority, eventCallback) { addModalToQueue (title, content, confirmText, showCancel, priority, eventCallback) {
if (modalQueue.findIndex(val => val.content == content) < 0) if (modalQueue.findIndex(val => val.content == content) < 0)
......
// mediaResourceMixin.js - 提供预加载功能的mixin
import mediaResourceManager from '../utils/mediaResourceManager/mediaResourceManager.js'
export default {
methods: {
/**
* 预加载资源
* @param {string|string[]} urls - 资源URL或URL数组
* @param {number} maxConcurrent - 最大并发数
* @returns {Promise<Array<{url: string, success: boolean, result: any}>>}
*/
async preloadMediaResources(urls, maxConcurrent = 3) {
const urlList = Array.isArray(urls) ? urls : [urls]
return await mediaResourceManager.preloadResources(urlList, maxConcurrent)
},
/**
* 获取单个资源(支持优先级控制)
* @param {string} url - 资源URL
* @param {boolean} immediate - 是否立即获取(高优先级)
* @returns {Promise<string>} - 本地资源路径
*/
async getMediaResource(url, immediate = false) {
return await mediaResourceManager.getResource(url, immediate)
},
/**
* 检查资源是否已缓存
* @param {string} url - 资源URL
* @returns {boolean} - 是否已缓存
*/
hasMediaResourceCached(url) {
return mediaResourceManager.hasValidCache(url)
},
/**
* 清理过期的媒体资源缓存
* @returns {number} - 清理的资源数量
*/
cleanupExpiredMediaResources() {
return mediaResourceManager.cleanupExpired()
}
}
}
...@@ -7,10 +7,13 @@ ...@@ -7,10 +7,13 @@
"dayjs": "^1.11.11", "dayjs": "^1.11.11",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3", "eslint-plugin-prettier": "^5.1.3",
"glsk-toolkit": "1.0.4",
"hammerjs": "^2.0.8", "hammerjs": "^2.0.8",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"number-precision": "^1.6.0", "number-precision": "^1.6.0",
"pinyin.js": "^2.0.0",
"prettier": "^3.3.2", "prettier": "^3.3.2",
"uview-ui": "^2.0.38",
"webpack-spritesmith": "^1.1.0" "webpack-spritesmith": "^1.1.0"
} }
} }
{ {
"easycom": { "easycom": {
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
}, },
"pages": [ "pages": [
{ {
...@@ -189,6 +189,55 @@ ...@@ -189,6 +189,55 @@
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},
{
"path": "pages/evaluationForm/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/evaluationForm/addEvaluationFrom",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/usedCar/index",
"style": {
"navigationStyle": "custom",
"disableSwipeBack": true
}
},
{
"path": "pages/usedCar/tool/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/evaluationForm/signInfo",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/evaluationForm/confirmCar",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/evaluationForm/evaluationFormDetails",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/evaluationForm/components/pdfPreView",
"style": {
"navigationStyle": "custom"
}
} }
], ],
"globalStyle": { "globalStyle": {
......
...@@ -116,6 +116,7 @@ export default { ...@@ -116,6 +116,7 @@ export default {
return false; return false;
}, },
async onLoad () { async onLoad () {
uni.hideLoading()
await uni.$api.systemApi.getMockData(true) //获取APP配置信息 await uni.$api.systemApi.getMockData(true) //获取APP配置信息
this.init(); this.init();
this.requested = true this.requested = true
......
...@@ -104,7 +104,8 @@ module.exports = { ...@@ -104,7 +104,8 @@ module.exports = {
status: { status: {
12: { 12: {
text: '已退款', text: '已退款',
color: '#8F959E' color: '#F7A431',
background: '#FFF5E6'
}, },
11: { 11: {
text: '已失效', text: '已失效',
......
<template> <template>
<view <view class="popup-box" v-if="popupShow">
class="popup-box"
v-if="popupShow"
>
<view class="nav-bar"> <view class="nav-bar">
<view <view class="back" @click="back">
class="back" <uni-icons type="left" :size="20" color="#1a1a1a"></uni-icons>
@click="back"
>
<uni-icons
type="left"
:size="20"
color="#1a1a1a"
></uni-icons>
</view> </view>
<view class="title">{{ title }}</view> <view class="title">{{ title }}</view>
</view> </view>
<view :class="['popup-body',{'has-ai':AIUrl}]"> <view :class="['popup-body', { 'has-ai': AIUrl }]">
<video <video ref="videoPlayer" :src="detailUrl" controls v-if="sourceType == 2"></video>
ref="videoPlayer" <view class="img-detail" v-else>
:src="detailUrl" <image @click="back" :src="detailUrl" mode="heightFix" />
controls
v-if="sourceType == 2"
></video>
<view
class="img-detail"
v-else
>
<image
@click="back"
:src="detailUrl"
mode="heightFix"
/>
</view> </view>
</view> </view>
<view <view class="AI-window" v-if="AIUrl">
class="AI-window"
v-if="AIUrl"
>
<view class="AI-title flex">场景二拓</view> <view class="AI-title flex">场景二拓</view>
<web-view :src="AIUrl"></web-view> <web-view :src="AIUrl"></web-view>
</view> </view>
......
...@@ -191,7 +191,7 @@ var weekday = require('dayjs/plugin/weekday') ...@@ -191,7 +191,7 @@ var weekday = require('dayjs/plugin/weekday')
import dayjs from 'dayjs' import dayjs from 'dayjs'
dayjs.extend(weekday) dayjs.extend(weekday)
import GlCell from '@/components/Form/GlCell.vue' import GlCell from '@/components/Form/GlCell.vue'
import NoticePopup from './NoticePopup.vue' import NoticePopup from '@/components/NoticePopup.vue'
export default { export default {
components: { components: {
GlCell, GlCell,
......
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
</view> </view>
</view> </view>
<view class="flex align-center footer-box justify-center" v-if="isMake"> <view class="flex align-center footer-box justify-center" v-if="isMake && orderInfo.status !== 12">
<view class="edit btn flex-1" @click="repeal">撤销工单</view> <view class="edit btn flex-1" @click="repeal">撤销工单</view>
</view> </view>
<!-- <view class="flex align-center footer-box justify-center" v-if="orderInfo.constructionFlag == 'Y'"> <!-- <view class="flex align-center footer-box justify-center" v-if="orderInfo.constructionFlag == 'Y'">
...@@ -240,6 +240,23 @@ ...@@ -240,6 +240,23 @@
</view> </view>
</template> </template>
</PublishPopup> </PublishPopup>
<PublishPopup ref="IsExistTipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false">
<template #content>
<view>
<image class="tipsPopupBg" :src="bg" />
<view class="title">重要提示</view>
<view class="tipsConent">
<view>订单已发起退款,禁止撤销!</view>
<view>如需撤销请联系总部运营。</view>
</view>
</view>
</template>
<template #footer>
<view class="isExistTips-btn-box">
<view class="sure-btn btn flex-1" @click="closeIsExistTipsPopup">好的</view>
</view>
</template>
</PublishPopup>
<PublishPopup :key="popupKey" ref="warrantyPopup" popupClass="warrantyPopup" type="center" title="质保价格" :showClose="true" @confirm="confirmEdit"> <PublishPopup :key="popupKey" ref="warrantyPopup" popupClass="warrantyPopup" type="center" title="质保价格" :showClose="true" @confirm="confirmEdit">
<template #content> <template #content>
<view class="warranty-content"> <view class="warranty-content">
...@@ -592,25 +609,39 @@ export default { ...@@ -592,25 +609,39 @@ export default {
}, },
// 撤销该工单 // 撤销该工单
async repeal() { async repeal() {
this.$refs.tipsPopup const that = this
uni.$api.boutiqueApi
.refundApplyRecordIsExist({
orderCode: this.transmissionOfData.orderCode
})
.then(data => {
console.log(data)
if (data === 'Y') {
that.$refs.IsExistTipsPopup.open()
} else {
that.$refs.tipsPopup
.open() .open()
.then(() => { .then(() => {
let _this = this
uni.$api.boutiqueApi uni.$api.boutiqueApi
.revokeOrder({ .revokeOrder({
orderCode: this.transmissionOfData.orderCode orderCode: that.transmissionOfData.orderCode
}) })
.then(data => { .then(data => {
uni.showToast({ uni.showToast({
title: '操作成功', title: '操作成功',
icon: 'success' icon: 'success'
}) })
this.getDetail(this.transmissionOfData.orderCode) that.getDetail(that.transmissionOfData.orderCode)
}) })
}) })
.catch(() => { .catch(() => {
console.log('用户点击了取消或关闭') console.log('用户点击了取消或关闭')
}) })
}
})
},
closeIsExistTipsPopup() {
this.$refs.IsExistTipsPopup.closePopup()
}, },
customizeDate() { customizeDate() {
console.log(this.$refs.calendarPopup, 'this.$refs.calendarPopup') console.log(this.$refs.calendarPopup, 'this.$refs.calendarPopup')
...@@ -705,6 +736,30 @@ export default { ...@@ -705,6 +736,30 @@ export default {
color: #347bff; color: #347bff;
} }
} }
.isExistTips-btn-box {
display: flex;
justify-content: center;
position: absolute;
border-radius: 0 0 toRpx(42) toRpx(42);
bottom: toRpx(40);
width: 100%;
.btn {
height: toRpx(80);
border-radius: toRpx(48);
opacity: 1;
line-height: toRpx(80);
text-align: center;
color: rgba(26, 26, 26, 0.6);
font-size: toRpx(32);
font-weight: 500;
margin: auto toRpx(64);
}
.sure-btn {
color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
}
} }
::v-deep .warrantyPopup .uni-popup__wrapper { ::v-deep .warrantyPopup .uni-popup__wrapper {
width: 36%; width: 36%;
......
...@@ -69,7 +69,7 @@ import OrderManagement from './components/OrderManagement.vue' ...@@ -69,7 +69,7 @@ import OrderManagement from './components/OrderManagement.vue'
import ConfirmOrder from './components/ConfirmOrder.vue' import ConfirmOrder from './components/ConfirmOrder.vue'
import OrderDetail from './components/OrderDetail.vue' import OrderDetail from './components/OrderDetail.vue'
import UploadProofOfPayment from './components/UploadProofOfPayment.vue' import UploadProofOfPayment from './components/UploadProofOfPayment.vue'
import NoticePopup from './components/NoticePopup.vue' import NoticePopup from '@/components/NoticePopup.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { interceptionMixin } from '@/mixin/index' import { interceptionMixin } from '@/mixin/index'
...@@ -98,13 +98,17 @@ export default { ...@@ -98,13 +98,17 @@ export default {
}, },
onLoad (options) { onLoad (options) {
if (options.componentName) this.toolComponentName = options.componentName if (options.componentName) this.toolComponentName = options.componentName
if (options.currentDate) this.currentDate = options.currentDate if (options.currentDate) this.setCurrentDate(options.currentDate)
uni.$on('jumpToDailyReport', currentDate => { uni.$on('jumpToDailyReport', currentDate => {
this.toolComponentName = 'DailyReport' this.toolComponentName = 'DailyReport'
if (currentDate) this.currentDate = currentDate if (currentDate) this.setCurrentDate(currentDate)
}) })
}, },
methods: { methods: {
setCurrentDate (currentDate) {
this.currentDate = currentDate
this.currentMonth = dayjs(currentDate).format('YYYY-MM')
},
async entranceClick (item) { async entranceClick (item) {
const noInterceptPage = ['DailyReport'] const noInterceptPage = ['DailyReport']
if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()) || (await this.inspectionOfProhibitionBill()))) return if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()) || (await this.inspectionOfProhibitionBill()))) return
......
<template> <template>
<view class="box" :key="selectMerchantId"> <view
class="box"
:key="selectMerchantId"
>
<template v-if="flag"> <template v-if="flag">
<template v-if="loginUserInfoList.length"> <template v-if="loginUserInfoList.length">
<template v-for="(item, index) in loginUserInfoList"> <template v-for="(item, index) in loginUserInfoList">
<view :key="index" :class="['items', { active: item.active }]" @click="chooseAccount(item)"> <view
:key="index"
:class="['items', { active: item.active }]"
@click="chooseAccount(item)"
>
<view class="right"> <view class="right">
<view class="sprite-icon icon-store"></view> <view class="sprite-icon icon-store"></view>
</view> </view>
...@@ -33,7 +40,6 @@ export default { ...@@ -33,7 +40,6 @@ export default {
loginUserInfoList: [], loginUserInfoList: [],
copyLoginUserInfoList: [], copyLoginUserInfoList: [],
showSelect: false, showSelect: false,
openSceneArr: [],
flag: false, flag: false,
userInfo: {}, userInfo: {},
selectMerchantId: '' selectMerchantId: ''
...@@ -46,22 +52,22 @@ export default { ...@@ -46,22 +52,22 @@ export default {
init (userInfo) { init (userInfo) {
uni.$logger.info(`进入选择4s店页面!`) uni.$logger.info(`进入选择4s店页面!`)
this.userInfo = userInfo this.userInfo = userInfo
this.getSceneArr() this.getMerchantList()
// this.getSceneArr()
}, },
getSceneArr () { async getSceneArr (merchantId = '') {
let { userInfo } = this return new Promise(async resolve => {
// 超管开通全部场景 let { userInfo } = this,
if (userInfo?.isSuper) return this.getMerchantList() openSceneArr = []
// 获取4s店关联场景数据 // 获取4s店关联场景数据
uni.$api.userApi.getYqMerchantSceneConfigAPI({ const result = await uni.$api.userApi.getYqMerchantSceneConfigAPI({
yqMerchantId: userInfo?.subLoginUser?.merchantId, yqMerchantId: userInfo?.subLoginUser?.merchantId,
merchantId: userInfo?.shopMerchantId merchantId
}).then(result => { })
uni.hideLoading() result.map(val => {
this.openSceneArr = result.map(val => { if (val.sceneOpenFlag == 0) return val.scene }) || [] if (val.sceneOpenFlag == 0) openSceneArr.push(val.scene)
this.getMerchantList() })
}).catch(err => { resolve(openSceneArr)
this.getMerchantList()
}) })
}, },
getMerchantList () { getMerchantList () {
...@@ -84,10 +90,9 @@ export default { ...@@ -84,10 +90,9 @@ export default {
if (result && result.length == 1) this.chooseAccount(result[0]) if (result && result.length == 1) this.chooseAccount(result[0])
}).catch(err => { }).catch(err => {
uni.hideLoading() uni.hideLoading()
console.log(err)
}) })
}, },
chooseAccount (item) { async chooseAccount (item) {
uni.$logger.info(`选择4s店${item.merchantName}!`) uni.$logger.info(`选择4s店${item.merchantName}!`)
uni.showLoading({ uni.showLoading({
mask: true mask: true
...@@ -101,14 +106,15 @@ export default { ...@@ -101,14 +106,15 @@ export default {
} }
return i return i
}) })
let openSceneArr = await this.getSceneArr(item.merchantId)
this.loginUserInfoList = listArr this.loginUserInfoList = listArr
this.selectMerchantId = item.merchantId this.selectMerchantId = item.merchantId
this.jumpPage(item) this.jumpPage(item, openSceneArr)
}, },
async jumpPage (item) { async jumpPage (item, openSceneArr) {
let { openSceneArr } = this, let { merchantName: shopMerchantName, merchantId: shopMerchantId } = item,
{ merchantName: shopMerchantName, merchantId: shopMerchantId } = item,
{ userInfo } = this { userInfo } = this
const usedCarSceneType = 7
if (!openSceneArr?.length && !userInfo?.isSuper) { if (!openSceneArr?.length && !userInfo?.isSuper) {
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
...@@ -117,8 +123,11 @@ export default { ...@@ -117,8 +123,11 @@ export default {
}) })
return return
} }
this.$emit('chooseMerchant', { if (userInfo.isSuper) openSceneArr = [1, 0, usedCarSceneType] //超管默认开通全部场景
userInfo = {
...userInfo, ...userInfo,
openSceneArr,
shopMerchantName, shopMerchantName,
shopMerchantId, shopMerchantId,
default4SStoreInfo: { default4SStoreInfo: {
...@@ -133,7 +142,23 @@ export default { ...@@ -133,7 +142,23 @@ export default {
merchantId: shopMerchantId, merchantId: shopMerchantId,
merchantName: shopMerchantName merchantName: shopMerchantName
} }
}
if (openSceneArr.length == 1 && openSceneArr[0] == usedCarSceneType) {
const data = await uni.$api.userApi.selectMerchantScene({
merchantId: userInfo.shopMerchantId,
merchantName: userInfo.shopMerchantName,
sceneType: usedCarSceneType
}) })
uni.$logger.local.info(`商户只有二手车场景时自动跳转进入二手车首页!`)
if (data) userInfo.loginRoleOnSelectMerchant = data?.loginRoleOnSelectMerchant
userInfo.sceneType = usedCarSceneType
uni.$storage.set('userInfo', userInfo)
uni.reLaunch({
url: '/pages/usedCar/index'
})
return
}
this.$emit('chooseMerchant', userInfo)
uni.hideLoading() uni.hideLoading()
}, },
searchEvent (searchValue) { searchEvent (searchValue) {
......
...@@ -41,9 +41,14 @@ export default { ...@@ -41,9 +41,14 @@ export default {
sceneType: 0, sceneType: 0,
actived: false actived: false
}, },
{
sceneName: '二手车',
sceneDesc: '二手车业务',
sceneType: 7,
actived: false
},
], ],
userInfo: {}, userInfo: {},
openSceneArr: []
} }
}, },
mounted () { mounted () {
...@@ -51,34 +56,13 @@ export default { ...@@ -51,34 +56,13 @@ export default {
methods: { methods: {
init (userInfo) { init (userInfo) {
this.userInfo = userInfo this.userInfo = userInfo
this.getSceneArr()
uni.$logger.local.info(`进入选择场景页!`) uni.$logger.local.info(`进入选择场景页!`)
},
getSceneArr () {
this.openSceneArr = []
uni.showLoading({
mask: true
})
// 超管默认开通全部场景
let { userInfo } = this
if (userInfo?.isSuper) return
// 获取4s店关联场景数据
uni.$api.userApi.getYqMerchantSceneConfigAPI({
yqMerchantId: userInfo?.subLoginUser?.merchantId,
merchantId: userInfo?.shopMerchantId
}).then(result => {
uni.hideLoading()
result.map(val => {
if (val.sceneOpenFlag == 0) this.openSceneArr.push(val.scene)
})
}).catch(() => {
uni.hideLoading()
})
}, },
// 选择场景 // 选择场景
async selectScene ({ sceneType }, index) { async selectScene ({ sceneType }, index) {
uni.$logger.local.info(`选择场景${sceneType}!`) uni.$logger.local.info(`选择场景${sceneType}!`)
let { sceneList, openSceneArr, userInfo } = this let { sceneList, userInfo, userInfo: { openSceneArr } } = this
try { try {
if (!openSceneArr.includes(sceneType) && !userInfo?.isSuper) return uni.showToast({ if (!openSceneArr.includes(sceneType) && !userInfo?.isSuper) return uni.showToast({
title: '暂未开通此场景', title: '暂未开通此场景',
...@@ -88,7 +72,6 @@ export default { ...@@ -88,7 +72,6 @@ export default {
sceneList[index].actived = true sceneList[index].actived = true
this.sceneList = sceneList this.sceneList = sceneList
userInfo.sceneType = sceneType userInfo.sceneType = sceneType
userInfo.openSceneArr = openSceneArr
uni.showLoading({ uni.showLoading({
mask: true mask: true
}) })
...@@ -110,7 +93,6 @@ export default { ...@@ -110,7 +93,6 @@ export default {
title: typeof error == "string" ? error : error.toString(), title: typeof error == "string" ? error : error.toString(),
icon: 'none' icon: 'none'
}) })
console.log(error)
uni.$logger.local.error(`选择场景异常:merchantId:${userInfo?.shopMerchantId},merchantName:${userInfo?.shopMerchantName},sceneType:${sceneType},失败原因:${typeof error == "string" ? error : error.toString()}`) uni.$logger.local.error(`选择场景异常:merchantId:${userInfo?.shopMerchantId},merchantName:${userInfo?.shopMerchantName},sceneType:${sceneType},失败原因:${typeof error == "string" ? error : error.toString()}`)
} }
}, },
...@@ -133,7 +115,8 @@ export default { ...@@ -133,7 +115,8 @@ export default {
uni.$storage.set('userInfo', userInfo) uni.$storage.set('userInfo', userInfo)
let url = { let url = {
1: '/pages/boutique/index', 1: '/pages/boutique/index',
0: '/pages/equity/index' 0: '/pages/equity/index',
7: '/pages/usedCar/index'
}[userInfo.sceneType] }[userInfo.sceneType]
uni.reLaunch({ uni.reLaunch({
url url
......
...@@ -20,7 +20,8 @@ export default { ...@@ -20,7 +20,8 @@ export default {
if (res.code == 0) { if (res.code == 0) {
let url = { let url = {
1: '/pages/boutique/index', 1: '/pages/boutique/index',
0: '/pages/equity/index' 0: '/pages/equity/index',
7: '/pages/usedCar/index'
}[userInfo.sceneType] }[userInfo.sceneType]
uni.reLaunch({ uni.reLaunch({
url url
......
...@@ -96,6 +96,7 @@ ...@@ -96,6 +96,7 @@
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
const phoneRex = /^[1]([3-9])[0-9]{9}$/; const phoneRex = /^[1]([3-9])[0-9]{9}$/;
import { Request } from 'glsk-toolkit'
export default { export default {
data () { data () {
return { return {
...@@ -127,6 +128,7 @@ export default { ...@@ -127,6 +128,7 @@ export default {
} }
}, },
onLoad (options) { onLoad (options) {
uni.$signHttp = new Request(uni.signHttpConfig) //重新登录重置请求参数
if (options.mobile) this.mobile = options.mobile if (options.mobile) this.mobile = options.mobile
const noSignInUuid = uni.$storage.get('noSignInUuid') const noSignInUuid = uni.$storage.get('noSignInUuid')
if (noSignInUuid) this.autoLogin(noSignInUuid) if (noSignInUuid) this.autoLogin(noSignInUuid)
...@@ -275,7 +277,7 @@ export default { ...@@ -275,7 +277,7 @@ export default {
this[key] = numbers ? numbers.join('') : '' this[key] = numbers ? numbers.join('') : ''
this.dateKey[key] = Date.now() this.dateKey[key] = Date.now()
}, 0) }, 0)
} },
}, },
}; };
</script> </script>
......
...@@ -27,7 +27,11 @@ ...@@ -27,7 +27,11 @@
</view> </view>
<view class="item-info"> <view class="item-info">
<view class="item-info-label">考试成绩</view> <view class="item-info-label">考试成绩</view>
<view class="item-info-value">{{ (item.totalScore || item.totalScore === 0) ? item.totalScore : '待考核' }}</view> <!-- <view class="item-info-value">{{ (item.totalScore || item.totalScore === 0) ? item.totalScore : '待考核' }}</view> -->
<template v-if="item.status !== 5 && item.totalScore == null">待考核</template>
<template v-else-if="item.status !== 5 && item.totalScore != null">{{ item.totalScore }}分</template>
<template v-else-if="item.status === 5 && item.totalScore == null">无需考核</template>
<template v-else-if="item.status === 5 && item.totalScore != null">{{ item.totalScore }}分</template>
</view> </view>
<view class="item-info"> <view class="item-info">
<view class="item-info-label">课程时长</view> <view class="item-info-label">课程时长</view>
......
...@@ -74,7 +74,12 @@ ...@@ -74,7 +74,12 @@
</view> </view>
<view class="item-info"> <view class="item-info">
<view class="item-info-label">考试成绩</view> <view class="item-info-label">考试成绩</view>
<view class="item-info-value">{{ (item.totalScore || item.totalScore === 0) ? item.totalScore : '未考核' }}</view> <view class="item-info-value">
<template v-if="item.status !== 5 && item.totalScore == null">待考核</template>
<template v-else-if="item.status !== 5 && item.totalScore != null">{{ item.totalScore }}分</template>
<template v-else-if="item.status === 5 && item.totalScore == null">无需考核</template>
<template v-else-if="item.status === 5 && item.totalScore != null">{{ item.totalScore }}分</template>
</view>
</view> </view>
<view class="item-info"> <view class="item-info">
<view class="item-info-label">课程时长</view> <view class="item-info-label">课程时长</view>
......
...@@ -82,6 +82,7 @@ export default { ...@@ -82,6 +82,7 @@ export default {
return false return false
}, },
async onLoad () { async onLoad () {
uni.hideLoading()
const mockdata = await uni.$api.systemApi.getMockData(true) //获取APP配置信息 const mockdata = await uni.$api.systemApi.getMockData(true) //获取APP配置信息
if (this.channelType == 1 && mockdata.boutiqueDefaultCarBrandId) { if (this.channelType == 1 && mockdata.boutiqueDefaultCarBrandId) {
this.$store.state.user.boutiqueDefaultCarBrandId = mockdata.boutiqueDefaultCarBrandId //默认车辆品牌 this.$store.state.user.boutiqueDefaultCarBrandId = mockdata.boutiqueDefaultCarBrandId //默认车辆品牌
......
<template>
<div class="button-module flex">
<view class="common-btn" @click.stop="handleClick('details')">详情</view>
<view v-if="!subStatus && status != 100 && status != '-1'" class="common-btn ml-24" @click.stop="handleClick('edit')">编辑</view>
<view v-if="status == 20 && !subStatus" class="common-btn ml-24" @click.stop="handleClick('requote', 'app_evaluate_requote')">重新报价</view>
<view v-if="status == 20 && !subStatus" class="common-btn blue-btn ml-24" @click.stop="handleClick('sign', 'app_evaluate_sign')">客户签约</view>
<view v-if="status == 20 && subStatus == 1" class="common-btn gray-btn ml-24" @click.stop="handleClick('signing')">签约中</view>
<view v-if="status == 30 && !subStatus" class="common-btn ml-24" @click.stop="handleClick('cancelSign', 'app_evaluate_cancel_sign')">取消签约</view>
<view v-if="status == 30 && !subStatus && paymentType == 1" class="common-btn blue-btn ml-24" @click.stop="handleClick('payDeposit', 'app_evaluate_pay_deposit')">支付定金</view>
<view v-if="status == 30 && !subStatus && paymentType == 2" class="common-btn blue-btn ml-24" @click.stop="handleClick('payFull', 'app_evaluate_pay_full')">支付全款</view>
<view v-if="subStatus == 2 || subStatus == 3 || ((status == 30 || status == 40) && subStatus == 1)" class="common-btn gray-btn ml-24" @click.stop="handleClick('paying')">支付中</view>
<view v-if="status == 40 && !subStatus && paymentType == 1" class="common-btn blue-btn ml-24" @click.stop="handleClick('payFull', 'app_evaluate_pay_final')">支付尾款</view>
<view v-if="status == 50 && !subStatus" class="common-btn blue-btn ml-24" @click.stop="handleClick('confirmDelivery', 'app_evaluate_confirm_delivery')">确认交车</view>
<view v-if="status == '-1'" class="common-btn blue-btn ml-24" @click.stop="handleClick('reSubmit', 'app_evaluate_re_submit')">重新提交</view>
</div>
</template>
<script>
import { throttle } from 'lodash'
export default {
name: 'ButtonModule',
props: {
status: {
type: Number,
default: 10
},
subStatus: {
type: Number,
default: ''
},
paymentType: {
type: Number,
default: 1
}
},
data() {
return {
localUrl: this.src
}
},
methods: {
handleClick: throttle(function (buttonType, eventCode) {
this.$emit('button-click', {
type: buttonType
})
if (eventCode)
uni.$track.add({
eventCode
}) //点击埋点
}, 1000)
}
}
</script>
<style scoped lang="scss">
.button-module {
.common-btn {
border-radius: toRpx(64);
background: #e9effe;
color: #3b73ff;
font-size: toRpx(28);
font-weight: 400;
padding: toRpx(12) toRpx(40);
}
.blue-btn {
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
}
.gray-btn {
background: #f0f1f5;
color: #999ea8;
}
}
</style>
<!--针对弹窗穿透滚动,统一封装的popup-->
<template>
<page-meta :page-style="'overflow:' + (show ? 'hidden' : 'visible')"></page-meta>
<uni-popup :class="['customPopup', popupClass, noTitle ? 'noTitle' : '']" ref="publishPopup" :type="type" @change="change" :safe-area="safeArea" :is-mask-click="isMaskClick" :showClose="showClose">
<!-- 顶部标题栏插槽 -->
<slot name="header">
<view class="popup-top-box flex align-center" v-if="showTitle">
<view class="popup-top-box-title flex-1">{{ title }}</view>
<view style="font-size: 0">{{ otherText }}</view>
<view @click.stop="closePopup">
<view class="sprite-icon icon-evaluationClose"></view>
</view>
</view>
</slot>
<!-- 主要内容插槽 -->
<view class="content">
<slot name="content"></slot>
</view>
<!-- 底部插槽 插槽有内容就优先自定义内容-->
<slot name="footer">
<view class="footer-box flex justify-center" v-if="isShowFooter">
<view class="cancle-btn btn" v-if="isShowCancel" @click.stop="closePopup">{{ cancelText }}</view>
<view class="sure-btn btn" :class="{ 'single-btn': isShowCancel }" @click.stop="confirm">{{ confirmText }}</view>
</view>
</slot>
</uni-popup>
</template>
<script>
export default {
name: 'GeneralPopup',
props: {
type: {
type: String,
default: 'bottom'
},
isMaskClick: {
type: Boolean,
default: false
},
safeArea: {
type: Boolean,
default: true
},
popupClass: {
type: String,
default: ''
},
showClose: {
type: Boolean,
default: true
},
title: {
type: String,
default: ''
},
showTitle: {
type: Boolean,
default: true
},
isShowFooter: {
type: Boolean,
default: true
},
cancelText: {
type: String,
default: '取消'
},
confirmText: {
type: String,
default: '确定'
},
isShowCancel: {
type: Boolean,
default: true
},
autoClose: {
type: Boolean,
default: true
},
noTitle: {
type: Boolean,
default: false
},
otherText: {
type: String,
default: ''
}
},
data() {
return {
show: false
}
},
methods: {
open() {
return new Promise((resolve, reject) => {
this.resolve = resolve
this.reject = reject
this.$refs.publishPopup.open()
})
},
change(e) {
this.show = e.show
},
closePopup() {
this.$refs.publishPopup.close()
if (this.reject) {
this.reject(null)
}
this.$emit('close')
},
confirm() {
if (this.resolve) {
if (this.autoClose) {
this.$refs.publishPopup.close()
}
this.resolve()
}
this.$emit('confirm')
}
}
}
</script>
<style scoped lang="scss">
// 大弹窗
::v-deep .customPopup .uni-popup__wrapper.bottom {
overflow: hidden;
border-radius: toRpx(32) toRpx(32) 0 0;
.popup-top-box {
padding: 0 toRpx(48);
height: toRpx(112);
width: 100%;
background-color: #fff;
color: #333333;
font-size: toRpx(36);
.popup-top-box-title {
text-align: center;
}
.icon-close {
text-align: end;
}
}
.footer-box {
width: 100%;
height: toRpx(164);
background-color: #fff;
.btn {
width: toRpx(720);
}
}
}
//小弹窗
::v-deep .customPopup .uni-popup__wrapper.center {
width: toRpx(848);
border-radius: toRpx(36);
background-color: #fff !important;
padding: 0 0 toRpx(48);
overflow: hidden;
.content {
min-height: 32vh;
max-height: 80vh;
overflow-y: auto;
padding: 0 toRpx(64) toRpx(64);
box-sizing: border-box;
background-color: #fff;
.uni-input-placeholder {
color: #999999;
}
}
.popup-top-box {
color: #1a1a1a;
font-size: toRpx(40);
font-weight: 500;
text-align: center;
width: 100%;
height: toRpx(136);
padding: 0 toRpx(64);
box-sizing: border-box;
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
.popup-top-box-title {
text-align: center;
}
.icon-close {
text-align: end;
}
}
.footer-box {
width: 100%;
margin-top: toRpx(16);
padding: 0 toRpx(64);
border-radius: toRpx(42);
}
}
::v-deep .noTitle .uni-popup__wrapper.center {
padding: 0;
.content {
padding: 0;
}
.footer-box {
padding: 0 toRpx(64);
}
}
.justify-between {
-webkit-box-pack: justify;
-ms-flex-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
}
.align-center {
align-items: center;
}
.uniui-closeempty {
color: #1a1a1a;
font-size: toRpx(24);
font-weight: 600;
}
.single-btn {
width: 100%;
}
.btn {
width: toRpx(720);
height: toRpx(76);
border-radius: toRpx(48);
opacity: 1;
line-height: toRpx(80);
text-align: center;
color: rgba(26, 26, 26, 0.6);
font-size: toRpx(32);
font-weight: 500;
}
.cancle-btn {
background: #f0f1f5;
margin-right: toRpx(38);
}
.sure-btn {
color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
</style>
<template>
<view>
<MediaInfo :imageInfo="imageData" />
</view>
</template>
<script>
import MediaInfo from './MediaInfo'
export default {
name: 'imageInfo',
components: {
MediaInfo
},
props: {
imageData: {
type: Object,
default: () => ({})
}
},
data() {
return {}
}
}
</script>
<style scoped lang="scss"></style>
<template>
<view>
<!-- 车辆图片 -->
<view>
<view v-for="item in imageData.carImageList" :key="item.id" @click.stop="previewImage(item.url)" class="flex">
<view>{{ item.alt }}</view>
<MediaResource :src="item.url" media-type="image" class="car-image" />
</view>
</view>
<!-- 证件资料 -->
<!-- <view>
<view>
<view>左前45度</view>
<MediaResource v-for="item in mediaList" :key="item.id" :src="item.url" media-type="image" />
</view>
</view> -->
<!-- 车辆视频 -->
<view>
<view v-for="item in imageData.carVideoList" :key="item.id">
<view>{{ item.alt }}</view>
<MediaResource :src="item.url" media-type="video" />
</view>
</view>
</view>
</template>
<script>
import MediaResource from './MediaResource'
export default {
name: 'MediaInfo',
components: {
MediaResource
},
props: {
imageData: {
type: Object,
default: () => ({})
},
alt: {
type: String,
default: ''
}
},
data() {
return {}
},
methods: {
previewImage(url) {
console.log(url)
uni.previewImage({
urls: [url]
})
}
}
}
</script>
<style scoped lang="scss">
.car-image {
width: toRpx(360);
height: toRpx(260);
::v-deep uni-image {
width: 100%;
height: 100%;
}
}
</style>
<!-- MediaResource.vue -->
<template>
<div class="media-resource">
<image v-if="mediaType === 'image'" :src="localUrl" :alt="alt" v-bind="$attrs" @error="handleError" @load="handleLoad" />
<video v-else-if="mediaType === 'video'" :src="localUrl" :controls="controls" :autoplay="autoplay" :loop="loop" :muted="muted" v-bind="$attrs" @error="handleError" @loadeddata="handleLoad" />
<div v-if="loading" class="loading">
<div class="loading-spinner"></div>
<span>加载中...</span>
</div>
</div>
</template>
<script>
import mediaResourceManager from '@/utils/mediaResourceManager/mediaResourceManager.js'
export default {
name: 'MediaResource',
props: {
src: {
type: String,
required: true
},
mediaType: {
type: String,
default: 'image',
validator: value => ['image', 'video'].includes(value)
},
alt: {
type: String,
default: ''
},
controls: {
type: Boolean,
default: true
},
autoplay: {
type: Boolean,
default: false
},
loop: {
type: Boolean,
default: false
},
muted: {
type: Boolean,
default: false
},
// 高优先级加载
immediate: {
type: Boolean,
default: false
}
},
data() {
return {
localUrl: '',
loading: false
}
},
// 禁止自动继承属性,因为我们手动绑定 $attrs
inheritAttrs: false,
watch: {
src: {
handler(newSrc) {
console.log('src change', newSrc)
this.processResource(newSrc)
},
immediate: true
}
},
methods: {
async processResource(url) {
// 检查全局缓存中是否存在有效资源
const cached = mediaResourceManager.getCache(url)
if (cached) {
this.localUrl = cached.url
return
}
// 如果没有缓存,则下载资源
this.loading = true
try {
const localPath = await mediaResourceManager.getResource(url, this.immediate)
this.localUrl = localPath
} catch (error) {
console.error('资源获取失败:', error)
// 失败时回退到原始URL
this.localUrl = url
this.$emit('error', error)
} finally {
this.loading = false
}
},
handleError(event) {
this.loading = false
this.$emit('error', event)
},
handleLoad(event) {
this.loading = false
this.$emit('load', event)
}
}
}
</script>
<style scoped>
.loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 10px 15px;
border-radius: 4px;
display: flex;
align-items: center;
gap: 8px;
}
.loading-spinner {
width: 20px;
height: 20px;
border: 2px solid #ffffff;
border-top: 2px solid transparent;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<template>
<view class="container">
<!-- 主内容区域 - 使用scroll-view -->
<scroll-view class="scroll-view" scroll-y="true" :scroll-into-view="currentScrollId" @scroll="onScroll">
<view v-if="groupedItems && Object.keys(groupedItems).length > 0">
<view v-for="(groupItems, groupKey) in groupedItems" :key="groupKey" :id="`group-${groupKey}`">
<view class="group-header">
<text class="group-label">{{ groupKey }}</text>
</view>
<view class="items-box">
<view v-for="item in groupItems" :key="getItemKey(item)" v-if="item[itemNameField]" :class="['item', { active: isActiveItem(item) }]" @tap="onItemClick(item)">
{{ item[itemNameField] }}
</view>
</view>
</view>
</view>
<view v-else-if="items && items.length === 0" class="empty-state">
<text>暂无数据</text>
</view>
<view v-else class="loading-state">
<text>加载中...</text>
</view>
</scroll-view>
<!-- 字母索引列表 - 仅在启用快速滚动时显示 -->
<view v-if="enableFastScroll && groupKeys.length > 0" class="letter-index">
<view v-for="key in groupKeys" :key="key" class="letter-item" @tap="scrollToLetter(key)">
{{ key }}
</view>
</view>
</view>
</template>
<script>
export default {
name: 'SortByNameList',
props: {
items: {
type: Array,
default: () => []
},
activeValue: {
type: [String, Number],
default: ''
},
activeField: {
type: String,
default: 'id'
},
clickable: {
type: Boolean,
default: true
},
itemsPerRow: {
type: Number,
default: 3
},
itemSpacing: {
type: Number,
default: 32
},
itemKeyField: {
type: String,
default: 'id'
},
itemNameField: {
type: String,
default: 'name'
},
groupKeyField: {
type: String,
default: 'letter'
},
// 是否启用快速滚动功能
enableFastScroll: {
type: Boolean,
default: true
}
},
data() {
return {
currentScrollId: ''
}
},
computed: {
groupedItems() {
if (!this.items || this.items.length === 0) {
console.log('No items provided to SortByNameList')
return {}
}
console.log('Items received:', this.items)
console.log('Using groupKeyField:', this.groupKeyField)
const groups = {}
this.items.forEach(item => {
const groupKey = item[this.groupKeyField] || '#'
const key = String(groupKey).toUpperCase()
if (!groups[key]) {
groups[key] = []
}
groups[key].push(item)
})
const sortedGroups = {}
Object.keys(groups)
.sort()
.forEach(key => {
sortedGroups[key] = groups[key]
})
return sortedGroups
},
// 获取所有字母分组的键
groupKeys() {
if (!this.groupedItems) {
return []
}
return Object.keys(this.groupedItems)
}
},
methods: {
onItemClick(item) {
if (this.clickable) {
this.$emit('item-click', item)
}
},
getItemKey(item) {
return item[this.itemKeyField] || item[this.itemNameField]
},
isActiveItem(item) {
return item[this.activeField] === this.activeValue
},
// 滚动到指定字母分组
scrollToLetter(key) {
this.currentScrollId = `group-${key}`
// 强制更新DOM后清除currentScrollId,避免重复点击同一字母失效
this.$nextTick(() => {
setTimeout(() => {
this.currentScrollId = ''
}, 100)
})
},
// 监听滚动事件(可选,可用于高亮当前字母)
onScroll(e) {
// 这里可以根据滚动位置更新当前激活的字母索引
// 例如:计算当前可视区域的第一个分组字母,并高亮显示
}
}
}
</script>
<style scoped lang="scss">
.container {
position: relative;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.scroll-view {
height: 100%;
background-color: #ffffff;
}
.container-list {
background-color: #ffffff;
height: 100%;
overflow-y: auto;
}
.letter-index {
position: absolute;
right: toRpx(16);
top: 50%;
transform: translateY(-50%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 10;
background-color: rgba(255, 255, 255, 0.7);
border-radius: toRpx(10);
padding: toRpx(5) toRpx(2);
}
.letter-item {
width: toRpx(20);
height: toRpx(20);
line-height: toRpx(20);
text-align: center;
font-size: toRpx(26);
color: #333;
margin: toRpx(8) 0;
border-radius: toRpx(3);
&:active {
background-color: #347bff;
color: #fff;
}
}
.group-header {
display: flex;
align-items: center;
padding: toRpx(0) toRpx(48);
background-color: #f5f7fa;
height: toRpx(40);
.group-label {
font-size: toRpx(28);
font-weight: 400;
color: #888;
}
}
.items-box {
display: flex;
flex-wrap: wrap;
padding: toRpx(16) toRpx(48);
box-sizing: border-box;
margin: 0 -toRpx(16);
border-bottom: toRpx(1) solid #f0f2f5;
}
.item {
width: calc(33.333% - #{toRpx(32)});
margin: toRpx(16);
padding: toRpx(12) toRpx(24);
color: #333333;
font-size: toRpx(32);
font-weight: 400;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-radius: toRpx(8);
border: toRpx(2) solid #dce0e6;
text-align: center;
box-sizing: border-box;
&:active {
background-color: #f5f7fa;
}
&.active {
background: #dee7ff;
color: #347bff;
}
}
.empty-state {
padding: toRpx(60) toRpx(48);
text-align: center;
color: #999;
font-size: toRpx(32);
}
.loading-state {
padding: toRpx(60) toRpx(48);
text-align: center;
color: #666;
font-size: toRpx(32);
}
</style>
<template>
<view class="step-tab flex items-center justify-center">
<view v-for="(step, index) in steps" :key="step.key || index" class="flex">
<view v-if="index > 0" :class="['step-line', { active: index == currentStep }]"></view>
<view class="step-item" @click.stop="handleStepClick(index)">
<view :class="['step-label', { active: index == currentStep }]">
{{ step.label || '步骤' + (index + 1) }}
</view>
</view>
</view>
</view>
</template>
<script>
export default {
name: 'StepTab',
props: {
steps: {
type: Array,
default: () => [{ label: '步骤1' }, { label: '步骤2' }, { label: '步骤3' }]
},
currentStep: {
type: Number,
default: 0
},
clickable: {
type: Boolean,
default: true
},
isShowStepNumber: {
type: Boolean,
default: true
}
},
methods: {
handleStepClick(index) {
if (this.clickable) {
this.$emit('step-change', index)
}
}
}
}
</script>
<style scoped lang="scss">
.step-tab {
width: 100%;
padding: toRpx(20) 0;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: nowrap;
overflow-x: auto;
position: relative;
}
.step-item {
display: flex;
align-items: center;
justify-content: center;
position: relative;
height: toRpx(64);
padding: 0 toRpx(32);
border-radius: toRpx(12);
background: #f2f2f2;
z-index: 1;
transition: all 0.3s ease;
.step-label.active + & {
background: #dee7ff;
}
.step-label {
font-size: toRpx(28);
color: #666;
text-align: center;
transition: all 0.3s ease;
&.active {
color: #347bff;
font-size: toRpx(28);
font-weight: 400;
}
}
&:before {
content: '';
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 0;
}
}
.step-line {
height: toRpx(4);
width: toRpx(40);
background-color: #e6e6e6;
margin: 0 toRpx(40);
z-index: 1;
transition: all 0.3s ease;
align-self: center;
}
</style>
<template>
<view class="stepper-navigation" :class="direction">
<view class="stepper-container">
<view v-for="(step, index) in steps" :key="index" class="step-item">
<!-- 左侧点线区域 -->
<view class="step-left-area">
<view class="step-number-circle" :class="{ active: currentStep >= index + 1 }">
<!-- 激活状态下显示三个圆圈 -->
<view v-if="currentStep >= index + 1" class="circle-group">
<view class="circle circle-1"></view>
<view class="circle circle-2"></view>
<view class="circle circle-3"></view>
</view>
</view>
<!-- 连接线 - 动态适应距离 -->
<view v-if="index < steps.length - 1" class="dash-line-wrapper">
<view class="dash-line" :class="{ active: currentStep >= index + 2 }"></view>
</view>
</view>
<!-- 右侧名称和内容区域 -->
<view class="step-right-area">
<view class="step-name flex align-center justify-between" :class="{ active: currentStep >= index + 1 }">
<view>{{ step.roundNo ? `第${step.roundNo}轮报价` : index == steps.length - 1 ? '首次提交' : '编辑记录' }}</view>
<view class="step-time">{{ step.quoteTime || step.operateTime }}</view>
</view>
<!-- 可自定义添加其他内容 -->
<slot :step="step" :indexContent="index"></slot>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
name: 'StepperNavigation',
props: {
// 当前步骤,从1开始
currentStep: {
type: Number,
default: 1
},
// 步骤数据数组,每项可以包含name属性
steps: {
type: Array,
default: () => [{ name: '步骤1' }, { name: '步骤2' }, { name: '步骤3' }]
},
// 显示方向:'horizontal'(水平) 或 'vertical'(垂直)
direction: {
type: String,
default: 'horizontal',
validator: value => {
return ['horizontal', 'vertical'].includes(value)
}
}
}
}
</script>
<style scoped lang="scss">
// 基础样式
.stepper-navigation {
/* 基础样式 */
}
/* 步骤容器 */
.stepper-container {
padding: toRpx(32) 0;
}
/* 步骤项 */
.step-item {
display: flex;
margin-bottom: toRpx(16);
}
/* 左侧点线区域 */
.step-left-area {
display: flex;
flex-direction: column;
align-items: center;
margin-right: toRpx(16);
position: relative;
}
/* 步骤数字圆圈 */
.step-number-circle {
width: toRpx(40);
height: toRpx(40);
display: flex;
align-items: center;
justify-content: center;
position: relative;
flex-shrink: 0;
}
/* 不激活状态 - 一个圆圈 */
.step-number-circle::before {
content: '';
width: toRpx(20);
height: toRpx(20);
border-radius: 50%;
background: #8eb2fb;
position: absolute;
z-index: 0;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* 激活状态 - 三个圆圈组 */
.step-number-circle.active {
background: transparent;
}
.step-number-circle.active::before {
display: none;
}
/* 三个圆圈的样式 */
.circle-group {
position: relative;
width: toRpx(40);
height: toRpx(40);
display: flex;
align-items: center;
justify-content: center;
}
.circle {
position: absolute;
border-radius: 50%;
}
/* 三个圆圈的定位和大小 */
.circle-1 {
width: toRpx(14);
height: toRpx(14);
z-index: 3;
background: #ffffff;
border: 2rpx solid #4673ff;
}
.circle-2 {
width: toRpx(20);
height: toRpx(20);
z-index: 2;
background: #4673ff;
}
.circle-3 {
width: toRpx(36);
height: toRpx(36);
z-index: 1;
background: #d6e4ff;
}
/* 右侧名称和内容区域 */
.step-right-area {
display: flex;
flex-direction: column;
justify-content: center;
flex: 1;
}
.step-name {
color: #333333;
font-size: toRpx(32);
font-weight: 500;
word-wrap: break-word;
white-space: normal;
margin-bottom: toRpx(20);
}
.step-time {
color: #999999;
font-size: toRpx(28);
font-weight: 400;
}
/* 连接线容器 */
.dash-line-wrapper {
flex: 1;
display: flex;
align-items: center;
min-height: toRpx(48);
}
/* 连接线样式 */
.dash-line {
width: toRpx(4);
background: #d7e7fe;
flex: 1;
height: 100%;
}
.dash-line.active {
background: #4673ff;
}
/* 水平方向特定样式 */
.horizontal .stepper-container {
display: flex;
flex-wrap: wrap;
}
.horizontal .step-item {
flex-direction: column;
align-items: center;
margin-right: toRpx(32);
margin-bottom: toRpx(0);
}
.horizontal .step-left-area {
flex-direction: row;
margin-right: 0;
margin-bottom: toRpx(16);
}
.horizontal .step-right-area {
align-items: center;
}
.horizontal .dash-line-wrapper {
min-width: toRpx(64);
min-height: 0;
margin: 0 toRpx(16);
}
.horizontal .dash-line {
height: toRpx(4);
width: 100%;
}
</style>
<template>
<view class="type-tab">
<view class="type-box">
<view class="tab-item" :class="[tabClass(index)]" v-for="(i, index) in typeList" :key="index" @click.stop="tabClick(index, i)">
<view v-if="tabIndex == index && index == 0" class="sprite-icon tab-first-left icon-first-left"></view>
<view v-if="tabIndex == index && index == 0" class="sprite-icon tab-first-right icon-first-right"></view>
<view v-if="tabIndex == index && index != 0" class="sprite-icon tab-second-right icon-second-right"></view>
<view v-if="tabIndex == index && index != 0" class="sprite-icon tab-second-left icon-second-left"></view>
<view class="text flex justify-center align-center" :class="[tabIndex == index ? `active` : '']">
<view>{{ i[nameKey] }}</view>
<view v-if="isShowCount" class="count ml-8" :class="i.count > 99 ? 'count-red' : ''">{{ i.count > 99 ? '99+' : i.count }}</view>
</view>
</view>
</view>
</view>
</template>
<script type="text/ecmascript-6">
export default {
props: {
typeList: Array,
tabIndex: {
type: Number,
default: 0
},
nameKey: {
type: String,
default: 'tabName'
},
isShowCount: {
type: Boolean,
default: false
}
},
name: '',
data () {
return {
firstClass: Object.freeze(['first-nav', 'second-nav']),
}
},
computed: {
blockLeft () {
let { tabIndex } = this
return `${(tabIndex * 400) - (tabIndex == 0 ? 0 : 48)}rpx`
},
},
mounted () {
},
methods: {
tabClass (index) {
let className = ''
if (this.tabIndex == index) {
className = 'active '
if (index == 0) className += 'first-nav'
else className += 'second-nav'
}
return className
},
tabClick (index,i) {
this.$emit('update:tabIndex', index)
this.$emit('tabClick',index,i)
}
}
}
</script>
<style scoped lang="scss">
.type-tab {
position: relative;
.type-box {
position: relative;
display: flex;
width: 100%;
background-color: #eef4fe;
height: toRpx(96);
line-height: toRpx(128);
border-radius: toRpx(48) toRpx(48) 0 0;
overflow: hidden;
z-index: 0;
.tab-item {
text-align: center;
font-weight: 400;
font-size: toRpx(28);
color: #1f2133;
position: relative;
.text {
position: relative;
text-align: center;
height: toRpx(96);
padding: 0 toRpx(64);
.count {
font-size: toRpx(24);
}
.count-red {
font-size: toRpx(22);
}
}
.text.active {
position: relative;
}
.text.active::before {
content: '';
position: absolute;
top: 0;
left: toRpx(64);
right: toRpx(64);
height: 100%;
background-color: #fff;
z-index: -1;
}
.active {
position: relative;
font-weight: 700;
font-size: toRpx(32);
color: #2c66f7;
&::after {
content: '';
position: absolute;
bottom: toRpx(16);
left: 50%;
transform: translateX(-50%);
width: toRpx(48);
height: toRpx(8);
background-color: #2c66f7;
border-radius: toRpx(16);
}
}
.sprite-icon {
transition: left 0.15s;
}
.tab-first-left {
left: 0;
position: absolute;
}
.tab-first-right {
right: - toRpx(64);
position: absolute;
}
.tab-second-right {
right: - toRpx(64);
position: absolute;
}
.tab-second-left {
left: - toRpx(64);
position: absolute;
}
}
.tab-first-nav {
background: url('@/assets/spritesmith/first-nav.png') no-repeat;
background-size: 100% 100%;
background-position: center;
}
.tab-second-nav {
background: url('@/assets/spritesmith/second-nav.png') no-repeat;
background-size: 100% 100%;
}
}
}
</style>
<!-- evaluationCard.vue -->
<template>
<view class="card-box" v-if="carInfo.evalOrderNo">
<view class="flex align-center justify-between mb-24">
<view class="status-box">
<text class="label">工单编号</text>
<text class="value ml-12">{{ carInfo.evalOrderNo }}</text>
</view>
<view :class="['status', statusClass(carInfo.status)]">{{ statusMap[carInfo.status].name }}</view>
</view>
<view class="car-info-box flex align-start">
<image :src="carInfo.coverImage" alt="" />
<view class="ml-32 flex-1">
<view class="flex align-center car-type-name mb-16">
{{ carInfo.carSeriesName + ' ' + carInfo.carTypeName }}
<view class="common-label ml-20">{{ carInfo.previousOwnerName }} {{ carInfo.previousOwnerPhone }}</view>
</view>
<view class="flex mb-20">
<view class="car-number mr-12">{{ carInfo.licensePlate }}</view>
<view class="car-number mr-12">{{ carInfo.registrationDateStr }}</view>
<view class="car-number mr-12">{{ carInfo.mileageStr }}</view>
<view class="car-number mr-12">{{ carInfo.transferCountStr }}</view>
<view class="car-number">{{ vehicleCategoryMap[1] }}</view>
</view>
<view class="info-row flex mb-30">
<view class="info-item flex align-center">
<text class="common-label flex-shrink-0">销售顾问</text>
<view class="common-value text-ellipsis ml-16">{{ carInfo.sellerMerchantName }} | {{ carInfo.sellerName }}</view>
</view>
<view class="info-item flex align-center">
<text class="common-label flex-shrink-0">转化人员</text>
<view class="common-value text-ellipsis ml-16">{{ carInfo.conversionMerchantName }} | {{ carInfo.conversionName }}</view>
</view>
<view class="info-item flex align-center">
<text class="common-label flex-shrink-0">工单时间</text>
<view class="common-value text-ellipsis ml-16">{{ carInfo.evalOrderTime }}</view>
</view>
<view class="info-item flex align-center" v-if="(carInfo.status != 10 && carInfo.status != 20 && carInfo.status != -1) || (carInfo.previousStatus != 10 && carInfo.status == -1)">
<text class="common-label flex-shrink-0">签约时间</text>
<view class="common-value text-ellipsis ml-16">{{ carInfo.signingSaleDate }}</view>
</view>
</view>
<view class="flex justify-between align-center">
<view class="flex">
<text class="common-label">评估价格</text>
<view class="price ml-16" :class="{ 'text-blue': carInfo.evalPriceDisplay && carInfo.status != 10 }">
{{ carInfo.status == 10 || (carInfo.previousStatus == 10 && carInfo.status == -1) ? '评估中' : carInfo.evalPriceDisplay }}
<text v-if="carInfo.paymentType == 1 && carInfo.status != 10" class="text-gray ml-16">(定金: {{ carInfo.depositPrice }}元 | 尾款: {{ carInfo.finalPrice }}元)</text>
<text v-if="carInfo.paymentType == 2 && carInfo.status != 10" class="text-gray ml-16">(全款: {{ carInfo.evalPrice }}元 )</text>
</view>
</view>
<ButtonModule @button-click="$emit('button-click', { ...$event, ...carInfo })" :status="carInfo.status" :subStatus="carInfo.subStatus" :paymentType="carInfo.paymentType"></ButtonModule>
</view>
<view v-if="carInfo.status == -1">
<view class="text-ellipsis tips px-20 justify-between">
<view class="flex-1 flex align-center">
<view class="sprite-icon icon-study-tips"></view>
<view class="text-ellipsis">驳回原因:{{ carInfo.rejectReason || '-' }}</view>
</view>
<view class="flex-1 flex align-center" v-if="carInfo.previousStatus == 10 && carInfo.status == -1">
<view class="sprite-icon icon-feedbackIcon"></view>
<view class="text-ellipsis">驳回意见:{{ carInfo.rejectSuggestion || '-' }}</view>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import ButtonModule from './ButtonModule.vue'
import { statusMap, vehicleCategoryMap } from '../evaluationFormMap.js'
export default {
components: {
ButtonModule
},
props: {
carInfo: {
type: Object,
default: () => {}
}
},
data() {
return {
statusMap,
vehicleCategoryMap
}
},
methods: {
statusClass(status) {
return status > 0 ? `status-${status}` : 'status-0'
}
}
}
</script>
<style scoped lang="scss">
.card-box {
border-radius: toRpx(24);
padding: toRpx(24) toRpx(40);
background: #ffffff;
box-shadow: 0 toRpx(6) toRpx(24) 0 #2a61eb1a;
margin: 0 toRpx(50);
&:first-child {
margin-top: toRpx(40);
}
&:last-child {
margin-bottom: toRpx(40);
}
.status-box {
.label {
color: #999ea8;
font-size: toRpx(24);
font-weight: 400;
}
.value {
color: #666666;
font-size: toRpx(24);
font-weight: 400;
}
}
.status {
border-radius: toRpx(4);
background: #fef4e8;
padding: 0 toRpx(20);
font-size: toRpx(24);
font-weight: 500;
height: toRpx(44);
line-height: toRpx(44);
}
// 状态颜色
.status-10 {
color: #f59619;
background: #fef4e8;
}
.status-20 {
color: #6a56f0;
background: #f0eefd;
}
.status-30 {
color: #2cca74;
background: #e9f9f1;
}
.status-40 {
color: #5842eb;
background: #eeecfd;
}
.status-50 {
color: #5842eb;
background: #eeecfd;
}
.status-100 {
color: #2cca74;
background: #e9f9f1;
}
// 驳回
.status-0 {
color: #eb4e4e;
background: #fdeded;
}
.car-info-box {
uni-image {
width: toRpx(240);
height: toRpx(180);
border-radius: toRpx(12);
}
.car-type-name {
color: #292d33;
font-size: toRpx(30);
font-weight: 500;
}
.car-number {
color: #9398a3;
font-size: toRpx(22);
border-radius: toRpx(4);
opacity: 1;
border: toRpx(2) solid #e8ecf0;
padding: toRpx(6) toRpx(12);
}
.common-label {
color: #999ea8;
font-size: toRpx(24);
font-weight: 400;
}
.common-value {
color: #666666;
font-size: toRpx(24);
font-weight: 400;
}
.text-ellipsis {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
word-break: break-all;
flex: 1;
}
.info-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: toRpx(16) toRpx(24);
.info-item {
min-width: 0;
}
.flex-shrink-0 {
flex-shrink: 0;
}
}
.price {
color: #666666;
font-size: toRpx(32);
font-weight: 400;
}
.text-blue {
color: #3b73ff;
font-size: toRpx(32);
font-weight: 700;
}
.text-gray {
color: #999ea8;
font-size: toRpx(24);
font-weight: 400;
}
.tips {
display: flex;
align-items: center;
justify-content: center;
font-size: toRpx(28);
width: 100%;
height: toRpx(56);
border-radius: toRpx(16);
opacity: 1;
background: #fef5ea;
margin-top: toRpx(16);
color: #ff9d0a;
&-text {
margin-top: toRpx(4);
}
.icon-study-tips {
margin-right: toRpx(8);
}
.icon-feedbackIcon {
margin-right: toRpx(8);
}
.waitinputorder-btn {
width: toRpx(136);
height: toRpx(50);
border-radius: toRpx(48);
opacity: 1;
background: #ffffff;
color: #4673ff;
font-size: toRpx(24);
font-weight: 500;
text-align: center;
line-height: toRpx(50);
}
}
}
}
</style>
<template>
<view class="material-detail">
<view class="nav-bar">
<view class="back" @click.stop="back">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
{{ title }}
</view>
<web-view v-if="fileUrltype === 'html'" :src="url"></web-view>
<view v-else-if="fileUrltype !== 'pdf'">
<lk-preview-office :url="url" :fileType="fileType"></lk-preview-office>
</view>
<view v-else>
<lk-preview-office :url="url" fileType="pdf"></lk-preview-office>
</view>
</view>
</template>
<script type="text/ecmascript-6">
import { report } from '@/mixin/index.js'
export default {
name: '',
mixins: [report],
data () {
return {
url: '',
title: '',
fileType: 'pdf',
Signature: true,
fileUrltype:'pdf'
}
},
onLoad (options) {
console.log(options)
this.fileUrltype = options.fileUrltype || 'pdf'
this.fileType = options.fileType || 'pdf'
this.Signature = options.Signature === 'false' ? false : (options.Signature || true);
if(this.fileType === 'docx') {
this.url = options.fileUrl
}else if(!this.Signature) {
this.url = options.fileUrl
}else {
this.url = options.fileUrl + '&OSSAccessKeyId='+ options.OSSAccessKeyId + '&Signature=' + options.Signature
}
this.title = options.fileName
console.log(this.url)
// else this.setWv()
},
mounted () {
},
methods: {
back () {
uni.navigateBack({
delta: 1,
animationType: 'pop-out',
animationDuration: 100
})
},
setWebviewStyle () {
const setWebviewStyleWithRetry = () => {
const currentWebview = this.$scope.$getAppWebview()
let [wv] = currentWebview.children(),
wvFlag = false
if (wv) {
wv.setStyle({
left: '71.9%',
top: '17.18%',
height: '82.82%',
width: '28.3%'
})
wvFlag = true;
}
return wvFlag
}
const retrySetWebviewStyle = () => {
if (!setWebviewStyleWithRetry()) {
// 如果未成功,继续重试
setTimeout(retrySetWebviewStyle, 50);
} else {
// 成功设置样式,结束循环
console.log('Webview样式设置成功');
}
};
setTimeout(retrySetWebviewStyle, 100);
}
}
}
</script>
<style scoped lang="scss">
.nav-bar {
position: fixed;
width: 100%;
height: toRpx(96);
left: 0;
top: toRpx(48);
z-index: 9;
text-align: center;
font-weight: 700;
font-size: toRpx(32);
color: #1a1a1a;
line-height: toRpx(96);
.back {
position: absolute;
left: 0;
top: 0;
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
}
}
.file-box {
position: fixed;
top: 5.2vh;
height: 94.8vh;
left: 0;
width: 100vw;
}
.has-ai {
width: 71.36vw;
}
.AI-window {
width: 28.3vw;
height: 90.63vh;
position: fixed;
top: 9.37vh;
right: 0;
background: #f5f9ff;
.AI-title {
height: 5.73vh;
padding-top: 2.08vh;
font-size: toRpx(34);
font-weight: 500;
justify-content: center;
color: #333333;
}
}
</style>
<template>
<view class="search-box mt-8 ml-8">
<view class="form">
<template v-for="(i, index) in formObject">
<view :class="['form-item', { active: focusIndex == index }]" :key="index">
<view class="form-item-box">
<template v-if="i.type == 'input'">
<input :type="i.inputType" :maxlength="i.maxlength" v-model="customerInfo[i.popKey]" class="input" :placeholder="i.placeholder" @focus="focusIndex = index" @blur="resetFocusIndex" />
</template>
<template v-else>
<view :class="['select flex', { placeholderStyle: !customerInfo[i.key] }]" @click.stop="showPopup(i.popKey, index)">
<view class="value text-hide">{{ customerInfo[i.key] || i.placeholder }}</view>
<uni-icons class="arrow" type="right" :size="16"></uni-icons>
</view>
</template>
</view>
</view>
</template>
<template>
<view class="form-btn flex align-center">
<view class="btn search mr-12" @click.stop="search">查询</view>
<view class="btn" @click.stop="resetForm">重置</view>
</view>
</template>
</view>
</view>
</template>
<script>
export default {
name: 'searchBox',
watch: {
searchValue: {
handler(newVal) {
this.customerInfo = { ...newVal }
},
immediate: true
}
},
data() {
return {
focusIndex: -1,
formObject: [
{
placeholder: '车主姓名',
key: 'carModel',
type: 'input',
popKey: 'previousOwnerName'
},
{
placeholder: '车主电话',
key: 'carModel',
type: 'input',
popKey: 'previousOwnerPhone'
},
{
placeholder: '车牌号',
key: 'carModel',
type: 'input',
popKey: 'licensePlate'
},
{
placeholder: '工单编号',
key: 'carModel',
type: 'input',
popKey: 'evalOrderNo'
}
],
customerInfo: {
previousOwnerName: '',
previousOwnerPhone: '',
vin: '',
evalOrderNo: ''
}
}
},
methods: {
showError(key) {
let flag = !this.customerInfo[key]
if (key == 'phoneNumber' && this.customerInfo[key]) flag = !phoneRex.test(this.customerInfo[key])
return flag
},
showPopup(e, index) {
this.focusIndex = index
},
search() {
this.$emit('update:searchValue', this.customerInfo)
this.$emit('search')
},
resetFocusIndex() {
this.focusIndex = -1
this.errorTip = false
},
resetForm() {
this.customerInfo = {
previousOwnerName: '',
previousOwnerPhone: '',
licensePlate: '',
evalOrderNo: ''
}
this.$emit('update:searchValue', this.customerInfo)
this.$emit('reset')
}
}
}
</script>
<style scoped lang="scss">
.search-box {
position: relative;
width: 100%;
.form {
display: flex;
gap: 0 toRpx(24);
height: 100%;
&-item {
width: toRpx(424);
height: 100%;
position: relative;
&-box {
position: relative;
width: 100%;
height: 100%;
background: #ffffff;
border: toRpx(3) solid #a8c1ff;
border-radius: toRpx(16);
box-sizing: border-box;
padding: 0 toRpx(24);
z-index: 2;
.input,
.select {
width: 100%;
height: toRpx(72);
border: none !important;
outline: none;
font-size: toRpx(28);
color: #333333;
border-radius: toRpx(16);
box-sizing: border-box;
line-height: toRpx(80);
padding: 0 !important;
&::placeholder {
color: #999999;
}
}
.placeholderStyle {
color: #999999;
}
.arrow {
color: #999 !important;
margin-left: auto;
flex-shrink: 0;
}
}
}
.active {
&::after {
position: absolute;
left: toMinusRpx(2);
top: toMinusRpx(2);
width: calc(100% + #{toRpx(4)});
height: calc(100% + #{toRpx(6)});
content: '';
background-image: linear-gradient(#75bcff, #2f6af7);
box-shadow: 0 0 0 toRpx(8) #2c66f71a;
border-radius: toRpx(16);
}
}
.btn {
width: toRpx(120);
height: toRpx(72);
border-radius: toRpx(12);
font-size: toRpx(28);
font-weight: 400;
background: #f0f1f5;
text-align: center;
line-height: toRpx(76);
}
.search {
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
}
}
}
</style>
//文件子类型
export const fileSuibtype = {
11: {
name: '左前45度',
type: 'image'
},
12: {
name: '主驾驶全景',
type: 'image'
},
13: {
name: '仪表盘',
type: 'image'
},
14: {
name: '后排座椅',
type: 'image'
},
15: {
name: '中控台全景',
type: 'image'
},
16: {
name: '右后45度',
type: 'image'
},
17: {
name: '铭牌',
type: 'image'
},
21: {
name: '行驶证',
type: 'image'
},
22: {
name: '登记证1',
type: 'image'
},
23: {
name: '登记证2',
type: 'image'
},
24: {
name: '登记证3',
type: 'image'
},
31: {
name: '发动机概况',
type: 'image'
},
32: {
name: '车况解说',
type: 'image'
},
41: {
name: '其他图片',
type: 'image'
},
42: {
name: '其他视频',
type: 'video'
}
}
export const statusMap = {
10: {
name: '评估中',
type: 'primary'
},
20: {
name: '已报价',
type: 'primary'
},
30: {
name: '已签约',
type: 'primary'
},
40: {
name: '已支付-定金',
type: 'primary'
},
50: {
name: '已支付-尾款',
type: 'primary'
},
100: {
name: '已完成',
type: 'primary'
},
'-1': {
name: '已驳回',
type: 'primary'
},
1: {
name: '合同签署中',
type: 'primary'
},
2: {
name: '定金支付中',
type: 'primary'
},
3: {
name: '尾款支付中',
type: 'primary'
}
}
export const vehicleCategoryMap = {
1: '置换车',
2: '报废车'
}
export const usageTypeMap = {
1: '非营运',
2: '营运',
3: '营转非'
}
export const ownerTypeMap = {
1: '个人',
2: '单位'
}
export const sunroofMap = {
1: '无天窗',
2: '普通天窗',
3: '全景天窗'
}
export const emissionStandardMap = {
3: '国3',
4: '国4',
5: '国5',
6: '国6'
}
export const buyNewCarMap = {
0: '是',
1: '否'
}
export const hasAccidentMap = {
0: '是',
1: '否'
}
export const overallRatingMap = {
1: '优',
2: '良',
3: '中',
4: '差'
}
This diff is collapsed. Click to expand it.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!