Commit 7113e179 by 李伟康

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents c38ab0aa 08a13f23
No preview for this file type

2.92 MB | W: | H:

2.92 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin

3.63 KB | W: | H:

2.55 KB | W: | H:

assets/images/studyCenter/Required.png
assets/images/studyCenter/Required.png
assets/images/studyCenter/Required.png
assets/images/studyCenter/Required.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -173,7 +173,6 @@ export default { ...@@ -173,7 +173,6 @@ export default {
} }
}, },
created () { created () {
// 监听自定义事件 // 监听自定义事件
uni.$on('pageBack', () => { uni.$on('pageBack', () => {
console.log('pageBack') console.log('pageBack')
...@@ -271,21 +270,6 @@ export default { ...@@ -271,21 +270,6 @@ export default {
// let jumpUrl // let jumpUrl
if (item.isTrack) { if (item.isTrack) {
this.$emit('closeTips') this.$emit('closeTips')
// try {
// jumpUrl = await this.findBeiSenSSOToken()
// this.jumpUrl = jumpUrl
// } catch (error) {
// }
// if (jumpUrl) {
// this.addTrack()
// this.startTrack()
// }
} else {
// this.leaveTrack()
// this.trackId = 0
// clearInterval(this.trackInterval)
// this.trackInterval = null
} }
this.$emit('update:tabIndex', index) this.$emit('update:tabIndex', index)
this.$emit("changeTab", { this.$emit("changeTab", {
...@@ -299,21 +283,10 @@ export default { ...@@ -299,21 +283,10 @@ export default {
}, },
async haveCustomerAccess (val) { async haveCustomerAccess (val) {
const { shopMerchantId, sceneType: scene } = val const { shopMerchantId, sceneType: scene } = val
// const res = await uni.$api.customerApi.haveCustomerAccess({
// merchantId: shopMerchantId
// })
// if (res)
// this.tabs.push({
// label: "客户档案",
// icon: "customer-file",
// name: 'CustomerFile'
// })
// this.$store.state.user.haveCustomerAccess = res
uni.$api.customerApi.saleOpen({ uni.$api.customerApi.saleOpen({
merchantId: shopMerchantId, merchantId: shopMerchantId,
scene scene
}).then(result => { }).then(result => {
// uni.$storage.set('isSaleOpen', result)
if (result) { if (result) {
this.hasPerson = true this.hasPerson = true
this.activityTabVisible = scene !== 7 this.activityTabVisible = scene !== 7
...@@ -427,7 +400,7 @@ export default { ...@@ -427,7 +400,7 @@ export default {
const userInfo = uni.$storage.get('userInfo') const userInfo = uni.$storage.get('userInfo')
const res = uni.$storage.get('studyCenterPermission') const res = uni.$storage.get('studyCenterPermission')
if(!res){ if(!res){
uni.$api.commonApi.getStudyCenterPermission({yqMerchantIdList}).then(res => { uni.$api.commonApi.getStudyCenterPermission({}).then(res => {
uni.$storage.set('studyCenterPermission', res) uni.$storage.set('studyCenterPermission', res)
console.log(res,'res') console.log(res,'res')
}) })
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<!-- 当前有 3 个学习任务待完成,请及时处理。 <!-- 当前有 3 个学习任务待完成,请及时处理。
坚持学习助您能力提升! --> 坚持学习助您能力提升! -->
<template v-else-if="type=='study'"> <template v-else-if="type=='study'">
<image class="message-bg" :src="require('@//assets/images/common/study-center-bg.webp')"></image> <image class="message-bg" :src="require('@//assets/images/common/study-center-bg.png')"></image>
<view class="text text-first study-title">学习提醒</view> <view class="text text-first study-title">学习提醒</view>
<view class="text study-text">当前有{{messageData.count}}个学习任务待完成,请及时处理。</view> <view class="text study-text">当前有{{messageData.count}}个学习任务待完成,请及时处理。</view>
<view class="text study-text">坚持学习助您能力提升!</view> <view class="text study-text">坚持学习助您能力提升!</view>
......
...@@ -37,13 +37,13 @@ ...@@ -37,13 +37,13 @@
<image v-for="star in 5" :key="star" class="star-icon" :src="getStarIcon(item.totalStar, star)" <image v-for="star in 5" :key="star" class="star-icon" :src="getStarIcon(item.totalStar, star)"
mode="aspectFit" /> mode="aspectFit" />
</view> </view>
<text class="rating-text">{{ item.totalStar / 2 }}</text> <text class="rating-text">{{ item.totalStar }}</text>
</view> </view>
<!-- 学习人数 --> <!-- 学习人数 -->
<view v-if="!simplified && item.studentCount !== undefined" class="student-count"> <view class="student-count">
<image class="student-icon" :src="require('@/assets/images/studyCenter/rs.png')" mode="aspectFit" /> <image class="student-icon" :src="require('@/assets/images/studyCenter/rs.png')" mode="aspectFit" />
<text class="student-text">{{ item.studentCount }}人已学习</text> <text class="student-text">{{ item.learnTotal == null ? '-' : item.learnTotal }}人已学习</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -138,22 +138,15 @@ export default { ...@@ -138,22 +138,15 @@ export default {
} }
const res = await uni.$api.commonApi.getALlCourse(params) const res = await uni.$api.commonApi.getALlCourse(params)
console.log(res, '全部课程') console.log(res, '全部课程')
// 临时添加测试数据字段
const listWithTestData = res.list.map((item, index) => ({
...item,
required: index % 3 === 0, // 每3个课程第1个是必修
courseType: index % 2 === 0 ? 'video' : 'document', // 交替显示视频/文档
rating: (Math.random() * 2 + 3).toFixed(1), // 随机评分 3.0-5.0
studentCount: Math.floor(Math.random() * 1000) + 100 // 随机学习人数 100-1100
}))
if (pageNum == 1) { if (pageNum == 1) {
this.recommendCourseList = listWithTestData this.recommendCourseList = res.list
} else { } else {
this.recommendCourseList = this.recommendCourseList.concat(listWithTestData) this.recommendCourseList = this.recommendCourseList.concat(res.list)
} }
uni.hideLoading() uni.hideLoading()
this.total = res.total this.total = res.total
uni.$emit('update:totalCourseCount', res.total)
this.nothing = res.length ? true : false this.nothing = res.length ? true : false
} catch (error) { } catch (error) {
uni.showToast({ uni.showToast({
...@@ -235,7 +228,7 @@ export default { ...@@ -235,7 +228,7 @@ export default {
top: 0; top: 0;
width: toRpx(94); width: toRpx(94);
height: toRpx(48); height: toRpx(48);
border-radius: toRpx(24) 0 toRpx(20) 0; border-radius: toRpx(24) 0 toRpx(24) 0;
z-index: 2; z-index: 2;
} }
...@@ -268,7 +261,7 @@ export default { ...@@ -268,7 +261,7 @@ export default {
.recommend-course-item-img { .recommend-course-item-img {
width: 100%; width: 100%;
height: toRpx(180); height: toRpx(180);
border-radius: toRpx(16) toRpx(16) 0 0; border-radius: toRpx(24) toRpx(24) 0 0;
} }
.recommend-course-content { .recommend-course-content {
......
...@@ -310,7 +310,7 @@ export default { ...@@ -310,7 +310,7 @@ export default {
.task-item-img { .task-item-img {
width: 100%; width: 100%;
height: toRpx(180); height: toRpx(180);
border-radius: toRpx(16) toRpx(16) 0 0; border-radius: toRpx(24) toRpx(24) 0 0;
} }
.task-item-content { .task-item-content {
......
...@@ -177,13 +177,10 @@ export default { ...@@ -177,13 +177,10 @@ export default {
firstLeft: ['first', 'second'], firstLeft: ['first', 'second'],
firstClass: ['short-first-nav', 'short-second-nav'], firstClass: ['short-first-nav', 'short-second-nav'],
isBeisen: false, // 是否是有北森权限,true 有,false无 isBeisen: false, // 是否是有北森权限,true 有,false无
isFlag: true, // 当前驻店人员所关联的门店非鸿蒙智行或非延保业务
isHmzx: false, // 当前驻店人员所关联的门店是否是鸿蒙智行
isYb: false, // 当前驻店人员所关联的门店是否是延保业务
showMyTask: true, // 是否显示我的任务图标 showMyTask: true, // 是否显示我的任务图标
// 筛选相关数据 // 筛选相关数据
totalCourseCount: 123, totalCourseCount: 0,
searchKeyword: '', // 搜索关键词 searchKeyword: '', // 搜索关键词
// 对比上月数据(临时模拟数据) // 对比上月数据(临时模拟数据)
...@@ -230,20 +227,17 @@ export default { ...@@ -230,20 +227,17 @@ export default {
} }
}, },
created() { created() {
// 监听自定义事件 // 监听课程数量更新事件
uni.$on('backStudyCenter', () => { uni.$on('update:totalCourseCount', (count) => {
console.log('backStudyCenter', this.$refs.myTask) this.totalCourseCount = count
const { tabIndex, finishIndex } = this.$refs.myTask
if (tabIndex === 0) {
this.$refs.myTask.getCourseTaskPage(tabIndex)
} else {
this.$refs.myTask.getCourseTaskPage(tabIndex, finishIndex)
}
}) })
}, },
beforeDestroy() {
// 移除事件监听
uni.$off('update:totalCourseCount')
},
async mounted() { async mounted() {
const beisenToken = uni.$storage.get('beisenToken') const beisenToken = uni.$storage.get('beisenToken')
const studyCenterPermission = uni.$storage.get('studyCenterPermission')
console.log(beisenToken, 'beisenToken') console.log(beisenToken, 'beisenToken')
this.isBeisen = !!beisenToken this.isBeisen = !!beisenToken
if (!beisenToken) { if (!beisenToken) {
...@@ -252,9 +246,6 @@ export default { ...@@ -252,9 +246,6 @@ export default {
{ tabName: '我的任务', num: () => '' } { tabName: '我的任务', num: () => '' }
] ]
} }
this.isHmzx = studyCenterPermission?.hmzxAuth
this.isYb = studyCenterPermission?.authorizedBusinessList && studyCenterPermission.authorizedBusinessList.includes(1)
// 检查是否显示我的任务 // 检查是否显示我的任务
this.showMyTask = await this.checkStudyCenterPermission() this.showMyTask = await this.checkStudyCenterPermission()
...@@ -399,8 +390,7 @@ export default { ...@@ -399,8 +390,7 @@ export default {
// 如果缓存中没有,调用接口获取 // 如果缓存中没有,调用接口获取
if (!studyCenterPermission) { if (!studyCenterPermission) {
const yqMerchantIdList = userInfo?.subLoginUser?.yqMerchantIdList || [] const res = await uni.$api.commonApi.getStudyCenterPermission({})
const res = await uni.$api.commonApi.getStudyCenterPermission({ yqMerchantIdList })
studyCenterPermission = res studyCenterPermission = res
uni.$storage.set('studyCenterPermission', res) uni.$storage.set('studyCenterPermission', res)
} }
...@@ -419,6 +409,15 @@ export default { ...@@ -419,6 +409,15 @@ export default {
// tab切换 // tab切换
changeType(index, tagIndex) { changeType(index, tagIndex) {
this.firstIndex = index this.firstIndex = index
if (index == 0) {
// 重置搜索条件
this.searchKeyword = ''
this.currentSortValue = 0
this.$refs.orderScreen.clear()
this.searchParams = {
sortType: 0
}
}
} }
} }
} }
...@@ -752,7 +751,7 @@ export default { ...@@ -752,7 +751,7 @@ export default {
z-index: 0; z-index: 0;
.tab-item { .tab-item {
width: toRpx(400); width: toRpx(388);
text-align: center; text-align: center;
font-weight: 500; font-weight: 500;
font-size: toRpx(34); font-size: toRpx(34);
......
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
<StudyPopup <StudyPopup
:show.sync="showStudyPopup" :show.sync="showStudyPopup"
title="开始您的学习之旅" title="开始您的学习之旅"
:topImage="require('@/assets/images/common/study-center-bg.webp')" :topImage="require('@/assets/images/common/study-center-bg.png')"
:topImageWidth="848" :topImageWidth="848"
:topImageHeight="248" :topImageHeight="248"
> >
...@@ -486,6 +486,9 @@ export default { ...@@ -486,6 +486,9 @@ export default {
} }
} catch (error) { } catch (error) {
console.error('查询考试结果失败:', error) console.error('查询考试结果失败:', error)
this.examPopInfo.isExamLoading = false
this.examPopInfo.showError = true
this.examPopInfo.confirmText = '重新确认'
uni.showToast({ uni.showToast({
title: '未查询到考试结果,请重新确认', title: '未查询到考试结果,请重新确认',
icon: 'none' icon: 'none'
......
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
} }
.card-title { .card-title {
font-size: toRpx(36); font-size: toRpx(32);
font-weight: 500; font-weight: 500;
letter-spacing: 0; letter-spacing: 0;
line-height: toRpx(40); line-height: toRpx(40);
...@@ -106,7 +106,7 @@ export default { ...@@ -106,7 +106,7 @@ export default {
.description-text { .description-text {
width: toRpx(640); width: toRpx(640);
font-size: toRpx(32); font-size: toRpx(28);
font-weight: 400; font-weight: 400;
letter-spacing: 0; letter-spacing: 0;
line-height: toRpx(48); line-height: toRpx(48);
......
...@@ -175,7 +175,7 @@ export default { ...@@ -175,7 +175,7 @@ export default {
top: 0; top: 0;
width: toRpx(94); width: toRpx(94);
height: toRpx(48); height: toRpx(48);
border-radius: toRpx(24) 0 toRpx(20) 0; border-radius: toRpx(24) 0 toRpx(24) 0;
z-index: 2; z-index: 2;
} }
...@@ -222,7 +222,8 @@ export default { ...@@ -222,7 +222,8 @@ export default {
font-size: toRpx(30); font-size: toRpx(30);
color: #292D33; color: #292D33;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 2; -webkit-line-clamp: 1;
line-clamp: 1;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
......
...@@ -288,7 +288,7 @@ export default { ...@@ -288,7 +288,7 @@ export default {
top: 0; top: 0;
width: toRpx(94); width: toRpx(94);
height: toRpx(48); height: toRpx(48);
border-radius: toRpx(24) 0 toRpx(20) 0; border-radius: toRpx(24) 0 toRpx(24) 0;
z-index: 2; z-index: 2;
} }
...@@ -326,6 +326,7 @@ export default { ...@@ -326,6 +326,7 @@ export default {
.task-item-content { .task-item-content {
padding: toRpx(32); padding: toRpx(32);
width: toRpx(530) !important;
} }
.task-item-title { .task-item-title {
...@@ -333,10 +334,14 @@ export default { ...@@ -333,10 +334,14 @@ export default {
color: #292D33; color: #292D33;
font-weight: 500; font-weight: 500;
margin-bottom: toRpx(24); margin-bottom: toRpx(24);
width: toRpx(340); // width: toRpx(340);
display: -webkit-box;
-webkit-line-clamp: 1;
line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; word-break: break-all;
} }
.task-item-text { .task-item-text {
......
...@@ -38,13 +38,13 @@ ...@@ -38,13 +38,13 @@
<image v-for="star in 5" :key="star" class="star-icon" :src="getStarIcon(item.totalStar, star)" <image v-for="star in 5" :key="star" class="star-icon" :src="getStarIcon(item.totalStar, star)"
mode="aspectFit" /> mode="aspectFit" />
</view> </view>
<text class="rating-text">{{ item.totalStar / 2 }}</text> <text class="rating-text">{{ item.totalStar }}</text>
</view> </view>
<!-- 学习人数 --> <!-- 学习人数 -->
<view class="student-count"> <view class="student-count">
<image class="student-icon" :src="require('@/assets/images/studyCenter/rs.png')" mode="aspectFit" /> <image class="student-icon" :src="require('@/assets/images/studyCenter/rs.png')" mode="aspectFit" />
<text class="student-text">{{ item.learnTotal }}人已学习</text> <text class="student-text">{{ item.learnTotal == null ? '-' : item.learnTotal }}人已学习</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -228,7 +228,7 @@ export default { ...@@ -228,7 +228,7 @@ export default {
top: 0; top: 0;
width: toRpx(94); width: toRpx(94);
height: toRpx(48); height: toRpx(48);
border-radius: toRpx(24) 0 toRpx(20) 0; border-radius: toRpx(24) 0 toRpx(24) 0;
z-index: 2; z-index: 2;
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<text class="tab-text">{{ tab.label }}</text> <text class="tab-text">{{ tab.label }}</text>
</view> </view>
</view> </view>
<view class="median-text">学习时长中位数:{{ rank.median }}小时</view> <view class="median-text">学习时长中位数:{{ rank.median == null ? '-' : rank.median }}小时</view>
</view> </view>
<view class="rank-list"> <view class="rank-list">
...@@ -179,7 +179,6 @@ export default { ...@@ -179,7 +179,6 @@ export default {
width: toRpx(1084); width: toRpx(1084);
height: toRpx(1312); height: toRpx(1312);
border-radius: toRpx(32); border-radius: toRpx(32);
opacity: 1;
background: #ffffffb3; background: #ffffffb3;
backdrop-filter: blur(toRpx(16)); backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff; box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
...@@ -191,9 +190,11 @@ export default { ...@@ -191,9 +190,11 @@ export default {
margin-bottom: toRpx(8); margin-bottom: toRpx(8);
.panel-image { .panel-image {
width: toRpx(1084); // width: toRpx(1084);
width: 100%;
height: toRpx(128); height: toRpx(128);
display: block; display: block;
// background-color: #ecf2ff;
} }
} }
......
...@@ -103,6 +103,9 @@ ...@@ -103,6 +103,9 @@
this.getStudyBoard() this.getStudyBoard()
}) })
}, },
beforeDestroy() {
uni.$off('backStudyCenter')
},
mounted() { mounted() {
const beisenToken = uni.$storage.get('beisenToken') const beisenToken = uni.$storage.get('beisenToken')
const studyCenterPermission = uni.$storage.get('studyCenterPermission') const studyCenterPermission = uni.$storage.get('studyCenterPermission')
...@@ -325,7 +328,7 @@ ...@@ -325,7 +328,7 @@
z-index: 0; z-index: 0;
.tab-item { .tab-item {
width: toRpx(400); width: toRpx(388);
text-align: center; text-align: center;
font-weight: 500; font-weight: 500;
font-size: toRpx(34); font-size: toRpx(34);
......
...@@ -888,8 +888,8 @@ export default { ...@@ -888,8 +888,8 @@ export default {
} }
} }
.defeat-order ::v-deep .cell-value .textarea { .defeat-order ::v-deep .cell-value .textarea {
margin-bottom: 0; // margin-bottom: 0;
height: toRpx(192); height: toRpx(192) !important;
} }
.btns { .btns {
padding: 24rpx 128rpx; padding: 24rpx 128rpx;
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<view v-else class="order-value-single flex"> <view v-else class="order-value-single flex">
<text class="value-text" v-if="item.mapValue">{{ item.mapValue[orderCardDetail[item.key]] || '' }}</text> <text class="value-text" v-if="item.mapValue">{{ item.mapValue[orderCardDetail[item.key]] || '' }}</text>
<text v-else class="value-text">{{ orderCardDetail[item.key] || '' }}</text> <text v-else class="value-text">{{ orderCardDetail[item.key] || '' }}</text>
<view v-if="item.canCopy" class="copy-btn" @click.stop="copyText(orderCardDetail[item.key])"> <view v-if="item.canCopy && orderCardDetail[item.key]" class="copy-btn" @click.stop="copyText(orderCardDetail[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view> <view class="sprite-icon icon-icon-copy copy"></view>
</view> </view>
</view> </view>
...@@ -774,14 +774,14 @@ export default { ...@@ -774,14 +774,14 @@ export default {
} }
.unit { .unit {
margin-right: toRpx(8); margin-right: toRpx(4);
color: #347bff; color: #347bff;
font-size: toRpx(28); font-size: toRpx(26);
font-weight: 700; font-weight: 700;
} }
.price { .price {
color: #347bff; color: #347bff;
font-size: toRpx(36); font-size: toRpx(32);
font-weight: 700; font-weight: 700;
} }
...@@ -846,11 +846,11 @@ export default { ...@@ -846,11 +846,11 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #9b9b9e; color: #9b9b9e;
border-top: 1 solid #ededed; border-top: 1 solid #ededed;
padding: toRpx(20) toRpx(32) 0; padding: toRpx(32) toRpx(32) 0;
} }
.btn_class { .btn_class {
display: flex; display: flex;
gap: toRpx(8); gap: toRpx(16);
margin-left: auto; margin-left: auto;
} }
...@@ -985,17 +985,20 @@ export default { ...@@ -985,17 +985,20 @@ export default {
.copy { .copy {
margin-right: toRpx(8); margin-right: toRpx(8);
margin-left: toRpx(20); margin-left: toRpx(16);
} }
} }
.order-card-top-box {
margin-bottom: toRpx(6);
}
.order-card-bottom-box { .order-card-bottom-box {
border-bottom: toRpx(2) solid #f7f7f6; border-bottom: toRpx(2) solid #f7f7f6;
padding-bottom: toRpx(20); padding-bottom: toRpx(20);
} }
.updateInfo { .updateInfo {
color: #347bff; color: #347bff;
font-size: var(--fontSize28); font-size: toRpx(24);
margin-left: var(--fontSize16); margin-left: toRpx(16);
font-weight: normal; font-weight: normal;
margin-right: auto; margin-right: auto;
} }
......
...@@ -325,7 +325,7 @@ export default { ...@@ -325,7 +325,7 @@ export default {
.order-management { .order-management {
height: 100%; height: 100%;
.paging-class { .paging-class {
height: calc(100% - #{toRpx(336)}); height: calc(100% - #{toRpx(288)});
} }
.px-48 { .px-48 {
padding: 0 toRpx(48); padding: 0 toRpx(48);
......
...@@ -5,6 +5,13 @@ ...@@ -5,6 +5,13 @@
<view class="box"> <view class="box">
<scroll-view class="scroll-view" scroll-y="true"> <scroll-view class="scroll-view" scroll-y="true">
<view class="box-content"> <view class="box-content">
<view class="flex tips align-center justify-between" v-if="showTips">
<view class="flex align-center">
<view class="sprite-icon icon-equityTip"></view>
客户信息仅支持修改以下部分
</view>
<view class="sprite-icon icon-equityClose" @click="showTips = false"></view>
</view>
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell" :titleList="titleList"></GlCell> <GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell" :titleList="titleList"></GlCell>
</view> </view>
<view class="btns flex"> <view class="btns flex">
...@@ -58,6 +65,7 @@ export default { ...@@ -58,6 +65,7 @@ export default {
data() { data() {
return { return {
showUpload: false, showUpload: false,
showTips: true,
titleList, titleList,
formList: utils.deepClone(UpdateOrderInfo), formList: utils.deepClone(UpdateOrderInfo),
valueKey: '', valueKey: '',
...@@ -68,7 +76,7 @@ export default { ...@@ -68,7 +76,7 @@ export default {
orderObj: { orderObj: {
owner: '', owner: '',
phone: '', phone: '',
salesType: 0, salesType: '0',
carVin: '', carVin: '',
certificateNo: '', certificateNo: '',
notes: '' notes: ''
...@@ -115,9 +123,10 @@ export default { ...@@ -115,9 +123,10 @@ export default {
this.orderObj.carVin = data.owner.carVin this.orderObj.carVin = data.owner.carVin
this.orderObj.owner = data.owner.owner this.orderObj.owner = data.owner.owner
this.orderObj.phone = data.owner.phone this.orderObj.phone = data.owner.phone
this.orderObj.salesType = data.owner.salesType this.orderObj.salesType = data.owner.salesType.toString()
this.orderObj.certificateNo = data.owner.certificateNo this.orderObj.certificateNo = data.owner.certificateNo
this.orderObj.notes = data.notes this.orderObj.notes = data.notes
this.updateFormSelection()
}, },
// 输入框失去焦点事件 // 输入框失去焦点事件
inputBlur(e, val) { inputBlur(e, val) {
...@@ -220,7 +229,17 @@ export default { ...@@ -220,7 +229,17 @@ export default {
}, },
radioChange(val) { radioChange(val) {
console.log(val) console.log(val)
this.orderObj.salesType = val.detail.value this.orderObj.salesType = val.detail.value.toString()
},
updateFormSelection() {
this.formList.forEach(group => {
group.forEach(item => {
if (item.value === 'salesType') {
item.current = this.orderObj.salesType
console.log('更新salesType字段:', item.current)
}
})
})
} }
} }
} }
...@@ -284,6 +303,19 @@ export default { ...@@ -284,6 +303,19 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #999; color: #999;
} }
.tips {
height: toRpx(72);
border-radius: toRpx(16);
background: #e0e8ff;
color: #2c66f7;
font-size: toRpx(28);
font-weight: 400;
padding: toRpx(0) toRpx(34);
margin-bottom: toRpx(16);
.icon-equityTip {
margin-right: toRpx(14);
}
}
.btns { .btns {
position: absolute; position: absolute;
width: 100%; width: 100%;
...@@ -307,6 +339,10 @@ export default { ...@@ -307,6 +339,10 @@ export default {
border-radius: toRpx(48); border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
} }
::v-deep .cell-value .textarea {
// margin-bottom: 0;
height: toRpx(192) !important;
}
.customer-title { .customer-title {
.customer-file { .customer-file {
margin-left: 20rpx; margin-left: 20rpx;
......
...@@ -413,16 +413,15 @@ const UpdateOrderInfo = [ ...@@ -413,16 +413,15 @@ const UpdateOrderInfo = [
{ {
label: '客户类型', label: '客户类型',
value: 'salesType', value: 'salesType',
type: 'radio', type: 'radio',
current: 0, current: '0',
radioList: [ radioList: [
{ {
value: 0, value: '0',
name: '售前' name: '售前'
}, },
{ {
value: 1, value: '1',
name: '售后' name: '售后'
} }
] ]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!