Commit 6481f4cf by cen

fix: 详情

1 parent d0c3a109

2.78 MB | W: | H:

2.78 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
<template>
<view
class="popup-box"
v-if="popupShow"
>
<view class="popup-box" v-if="popupShow">
<view class="nav-bar">
<view
class="back"
@click="back"
>
<uni-icons
type="left"
:size="20"
color="#1a1a1a"
></uni-icons>
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#1a1a1a"></uni-icons>
</view>
<view class="title">{{ title }}</view>
</view>
<view :class="['popup-body',{'has-ai':AIUrl}]">
<video
ref="videoPlayer"
:src="detailUrl"
controls
v-if="sourceType == 2"
></video>
<view
class="img-detail"
v-else
>
<image
@click="back"
:src="detailUrl"
mode="heightFix"
/>
<view :class="['popup-body', { 'has-ai': AIUrl }]">
<video ref="videoPlayer" :src="detailUrl" controls v-if="sourceType == 2"></video>
<view class="img-detail" v-else>
<image @click="back" :src="detailUrl" mode="heightFix" />
</view>
</view>
<view
class="AI-window"
v-if="AIUrl"
>
<view class="AI-window" v-if="AIUrl">
<view class="AI-title flex">场景二拓</view>
<web-view :src="AIUrl"></web-view>
</view>
......@@ -113,7 +88,7 @@ export default {
height: toRpx(96);
display: flex;
align-items: center;
.back {
height: 100%;
aspect-ratio: 1/1;
......
<template>
<view class="details-page">
<view class="details-page" v-if="detailsInfo">
<view class="nav-bar">
<view class="back" @click="backPage">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
......@@ -55,7 +55,7 @@
</view>
<view class="upload-images-wrapper" v-if="getImageBySubtype(field.key)">
<view class="uploaded-media-container">
<image :src="getImageBySubtype(field.key).fileUrl" mode="aspectFill" class="uploaded-media"></image>
<image :src="getImageBySubtype(field.key).fileUrl" mode="aspectFill" class="uploaded-media" @click.stop="previewMedia(getImageBySubtype(field.key).fileUrl, 1)"></image>
</view>
</view>
</view>
......@@ -71,7 +71,7 @@
</view>
<view class="upload-images-wrapper" v-if="getImageBySubtype(field.key)">
<view class="uploaded-media-container">
<image :src="getImageBySubtype(field.key).fileUrl" mode="aspectFill" class="uploaded-media"></image>
<image :src="getImageBySubtype(field.key).fileUrl" mode="aspectFill" class="uploaded-media" @click.stop="previewMedia(getImageBySubtype(field.key).fileUrl, 1)"></image>
</view>
</view>
</view>
......@@ -89,9 +89,9 @@
<view class="uploaded-media-container">
<view class="video-container">
<video :src="getImageBySubtype(field.key).fileUrl" mode="aspectFill" controls class="uploaded-media"></video>
<view class="video-play-icon">
<cover-view class="video-play-icon">
<uni-icons type="play" size="24" color="#fff"></uni-icons>
</view>
</cover-view>
</view>
</view>
</view>
......@@ -108,7 +108,7 @@
</view>
<view class="upload-images-wrapper" v-if="getImageBySubtype(field.key)">
<view class="uploaded-media-container">
<image :src="getImageBySubtype(field.key).fileUrl" mode="aspectFill" class="uploaded-media"></image>
<image :src="getImageBySubtype(field.key).fileUrl" @click.stop="previewMedia(getImageBySubtype(field.key).fileUrl, 1)" mode="aspectFill" class="uploaded-media"></image>
</view>
</view>
</view>
......@@ -121,7 +121,7 @@
<view class="gridBox mb-48">
<view v-for="(item, index) in priceItems" :key="index" :class="['flex align-center', { 'full-width': item.fullWidth }]">
<view class="title-label-see mr-16">{{ item.label }}</view>
<view>{{ detailsInfo.priceHistory[indexContent][item.key] || '-' }}</view>
<view class="flex-1">{{ detailsInfo.priceHistory[indexContent][item.key] || '-' }}</view>
</view>
</view>
</template>
......@@ -134,7 +134,7 @@
<view v-for="(item, index) in vehicleItems" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }]">
<view class="title-label-see mr-16">{{ item.label }}</view>
<view v-if="item.type == 'image'">
<image :src="formatValue(item, detailsInfo)"></image>
<image :src="formatValue(item, detailsInfo)" @click.stop="previewMedia(formatValue(item, detailsInfo), 1)"></image>
</view>
<view v-else-if="item.type == 'link'" class="flex-1">
<view class="pdf-box flex align-center justify-between">
......@@ -154,7 +154,7 @@
<view v-for="(item, index) in payeeItems" :key="index" :class="['flex align-center', { 'full-width': item.fullWidth }]">
<view class="title-label-see mr-16">{{ item.label }}</view>
<view v-if="item.type == 'image'">
<image :src="formatValue(item, detailsInfo)"></image>
<image :src="formatValue(item, detailsInfo)" @click.stop="previewMedia(formatValue(item, detailsInfo), 1)"></image>
</view>
<view v-else-if="item.type == 'link'" class="flex-1">
<view class="pdf-box flex align-center justify-between">
......@@ -174,7 +174,7 @@
<view v-for="(item, index) in vehicleManagementItems" :key="index" :class="['flex align-center', { 'full-width': item.fullWidth }]">
<view class="title-label-see mr-16">{{ item.label }}</view>
<view v-if="item.type == 'image'">
<image :src="formatValue(item, detailsInfo)"></image>
<image :src="formatValue(item, detailsInfo)" @click.stop="previewMedia(formatValue(item, detailsInfo), 1)"></image>
</view>
<view v-else-if="item.type == 'link'" class="flex-1">
<view class="pdf-box flex align-center justify-between">
......@@ -228,7 +228,7 @@
<view v-for="(item, index) in uploadFieldsItems" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }]">
<view class="title-label-see mr-16">{{ item.label }}</view>
<view v-if="item.type == 'image'">
<image :src="formatValue(item, detailsInfo)"></image>
<image :src="formatValue(item, detailsInfo)" @click.stop="previewMedia(formatValue(item, detailsInfo), 1)"></image>
</view>
<view v-else-if="item.type == 'link'" class="flex-1">
<view class="pdf-box flex align-center justify-between">
......@@ -248,7 +248,7 @@
<view v-for="(item, index) in documentationItems" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }]">
<view class="title-label-see mr-16">{{ item.label }}</view>
<view v-if="item.type == 'image'">
<image :src="formatValue(item, detailsInfo)"></image>
<image :src="formatValue(item, detailsInfo)" @click.stop="previewMedia(formatValue(item, detailsInfo), 1)"></image>
</view>
<view v-else-if="item.type == 'link'" class="flex-1">
<view class="pdf-box flex align-center justify-between">
......@@ -366,7 +366,7 @@ export default {
}
]
},
detailsInfo: {},
detailsInfo: null,
currentStep: 1,
statusMap,
usageTypeMap,
......@@ -524,9 +524,11 @@ export default {
uploadOtherFields: [{ key: 41, label: '其他图片', required: true, accept: 'image' }]
}
},
mounted() {
this.getDetail(this.$route.query.evalOrderNo)
onLoad(options) {
this.getDetail(options.evalOrderNo)
uni.$track.add({ eventCode: 'app_evaluation_from_details' })
},
mounted() {},
methods: {
backPage() {
uni.navigateBack({
......@@ -597,6 +599,12 @@ export default {
getImageLabel(fileSubtype) {
// 这里使用已有的fileSuibtype映射
return this.fileSuibtype[fileSubtype]?.name || `未知类型(${fileSubtype})`
},
previewMedia(media, type) {
const url = `/pages/boutique/preview?tabName=预览&sourceType=${type}&detailUrl=${media.url || media}`
uni.navigateTo({
url: `${url}`
})
}
}
}
......
......@@ -505,6 +505,7 @@ export default {
sellerMerchantId: userInfo.merchantId,
sellerUserId: userInfo.uuid
})
uni.$track.add({ eventCode: 'app_add_evaluation_from' })
},
methods: {
init(options) {
......@@ -562,13 +563,7 @@ export default {
// 车架号验证 - 长度17且只能包含数字和大写字母
const vin = this.formData.carBaseReqDTO.vin
const vinRegex = /^[A-Z0-9]{17}$/
if (vin.length !== 17) {
uni.showToast({
title: '车架号长度必须为17位',
icon: 'none'
})
return
}
if (!vinRegex.test(vin)) {
uni.showToast({
title: '车架号只能包含数字和大写字母',
......
......@@ -89,7 +89,7 @@
<view class="sprite-icon icon-icon-select"></view>
</view>
</view>
<view class="pdf-box flex align-center justify-between">
<view class="pdf-box flex align-center justify-between" v-if="field.isShowPreview">
<view class="flex align-center">
<view class="sprite-icon icon-pdf"></view>
<text>二手车买卖补充协议</text>
......
<!--针对弹窗穿透滚动,统一封装的popup-->
<template>
<page-meta :page-style="'overflow:' + (show ? 'hidden' : 'visible')"></page-meta>
<uni-popup :class="['customPopup', popupClass]" ref="publishPopup" :type="type" @change="change" :is-mask-click="isMaskClick" :safe-area="safeArea" :showClose="showClose">
<uni-popup :class="['customPopup', popupClass, noTitle ? 'noTitle' : '']" ref="publishPopup" :type="type" @change="change" :is-mask-click="isMaskClick" :safe-area="safeArea" :showClose="showClose">
<!-- 顶部标题栏插槽 -->
<slot name="header">
<view class="popup-top-box flex align-center" v-if="showTitle">
......@@ -77,6 +77,10 @@ export default {
autoClose: {
type: Boolean,
default: true
},
noTitle: {
type: Boolean,
default: false
}
},
data() {
......@@ -184,6 +188,12 @@ export default {
border-radius: toRpx(42);
}
}
::v-deep .noTitle .uni-popup__wrapper.center {
padding: 0;
.footer-box {
padding: 0 toRpx(64);
}
}
.justify-between {
-webkit-box-pack: justify;
......@@ -215,6 +225,7 @@ export default {
}
.cancle-btn {
background: #f0f1f5;
margin-right: toRpx(38);
}
.sure-btn {
color: #fff;
......
......@@ -8,7 +8,7 @@
</view>
<!-- <web-view :src="url"></web-view> -->
<view>
<lk-preview-office :url="url"></lk-preview-office>
<lk-preview-office :url="url" fileType="pdf"></lk-preview-office>
</view>
</view>
</template>
......@@ -27,7 +27,7 @@ export default {
onLoad (options) {
console.log(options)
this.url = options.fileUrl + '&OSSAccessKeyId'+ options.OSSAccessKeyId + '&Signature' + options.Signature
this.url = options.fileUrl + '&OSSAccessKeyId='+ options.OSSAccessKeyId + '&Signature=' + options.Signature
this.title = options.fileName
console.log(this.url)
// else this.setWv()
......
......@@ -9,17 +9,18 @@
<!-- 显示已上传的媒体列表 -->
<view v-for="(media, index) in getMedia(field)" :key="index" class="uploaded-media-container">
<!-- 图片显示 -->
<image v-if="isImage(media)" :src="media.url || media" mode="aspectFill" class="uploaded-media"></image>
<image v-if="isImage(media)" :src="media.url || media" mode="aspectFill" class="uploaded-media" @click.stop="previewMedia(media, 1)"></image>
<!-- 视频显示 -->
<view v-else class="video-container">
<video :src="media.url || media" mode="aspectFill" controls class="uploaded-media"></video>
<view class="video-play-icon">
<view v-else class="video-container" @click.stop="previewMedia(media, 2)">
<!-- <video :src="media.url || media" mode="aspectFill" controls class="uploaded-media"></video> -->
<image src="https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/vcpfile/jiashizheng20250822113512001.png " mode="aspectFill" class="uploaded-media" @click.stop="previewMedia(media, 1)"></image>
<!-- <cover-view class="video-play-icon">
<uni-icons type="play" size="24" color="#fff"></uni-icons>
</view>
</cover-view> -->
</view>
<view class="delete-icon" @click.stop="deleteMedia(field.key, index)">
<cover-view class="delete-icon" @click.stop="deleteMedia(field.key, index)">
<uni-icons type="clear" size="16" color="#fff"></uni-icons>
</view>
</cover-view>
</view>
<!-- 上传按钮,当未达到最大限制时显示 -->
<view v-if="!hasReachedMax(field)" class="upload-item" @click="handleMediaUpload(field)">
......@@ -294,6 +295,12 @@ export default {
}
})
}
},
previewMedia(media, type) {
const url = `/pages/boutique/preview?tabName=预览&sourceType=${type}&detailUrl=${media.url || media}`
uni.navigateTo({
url: `${url}`
})
}
}
}
......@@ -403,6 +410,7 @@ export default {
position: relative;
width: 100%;
height: 100%;
z-index: 1;
}
/* 视频播放图标 */
......@@ -418,6 +426,10 @@ export default {
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}
.uploaded-media-container video {
z-index: 1;
}
.delete-icon {
......
......@@ -87,7 +87,7 @@
<textarea placeholder="请输入 (1000字以内)" v-model="formData.supplementaryClauseText" maxlength="1000" />
</template>
</GeneralPopup>
<GeneralPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false" @confirm="confirmTips">
<GeneralPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false" @confirm="confirmTips" :noTitle="true">
<template #content>
<view>
<image class="tipsPopupBg" :src="bg" />
......@@ -157,7 +157,8 @@ export default {
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'pdf'
type: 'pdf',
isShowPreview: false
}
],
formData: {
......@@ -185,15 +186,15 @@ export default {
},
uploadFields: [
{ key: 'motorBookUrl', label: '机动车登记本', required: true, maxCount: 3 },
{ key: 'motorRegistrationCertificateUrl', label: '机动车行驶证', required: true, maxCount: 1 },
{ key: 'motorRegistrationCertificateUrl', label: '机动车行驶证', required: true, maxCount: 2 },
{ key: 'purchaseReceiptUrl', label: '购置税证及收据', required: false, maxCount: 1 },
{ key: 'purchaseInvoiceUrl', label: '购车发票', required: false, maxCount: 1 },
{ key: 'trafficScreenshotUrl', label: '交管12123截图', required: true, maxCount: 1 },
{ key: 'trafficInsuranceUrl', label: '交强险', required: true, maxCount: 1 },
{ key: 'transferPhotoUrl', label: '过户授权委托书照片/视频', required: true, maxCount: 1 },
{ key: 'insuranceCardUrl', label: '保险单商业保险单或卡', required: false, maxCount: 1 },
{ key: 'carKeyUrl', label: '车钥匙', required: false, maxCount: 1, inputKey: 'carKeyCount' },
{ key: 'otherUrl', label: '其他', required: false, maxCount: 1, fullInput: true, inputKey: 'otherText' }
{ key: 'carKeyUrl', label: '车钥匙', required: true, maxCount: 1, inputKey: 'carKeyCount' },
{ key: 'otherUrl', label: '其他', required: false, maxCount: 1, fullInput: true, inputKey: 'otherText', inputType: 'number' }
],
confirmCarUploadFields: [
{ key: 'handoverPhotoFrontFourFive', label: '正面45度', required: true, maxCount: 1 },
......@@ -201,7 +202,7 @@ export default {
{ key: 'handoverPhotoLeftSide', label: '左侧面', required: false, maxCount: 1 },
{ key: 'handoverPhotoBack', label: '后面', required: false, maxCount: 1 },
{ key: 'handoverPhotoRightSide', label: '右侧面', required: false, maxCount: 1 },
{ key: 'handoverPhotoMore', label: '其他', required: true, maxCount: 5, fullwidth: true }
{ key: 'handoverPhotoMore', label: '其他', required: false, maxCount: 5, fullwidth: true }
]
}
},
......@@ -217,13 +218,20 @@ export default {
this.currentField = field
if (field.type === 'pdf') {
this.$refs.addAgreementPopup.open().then(() => {
console.log('this.supplementaryClauseText', this.supplementaryClauseText)
uni.$api.evaluationApi
.salesAgreementPreview({
evalOrderNo: this.$route.query.evalOrderNo,
supplementaryClauseText: this.supplementaryClauseText
supplementaryClauseText: this.formData.supplementaryClauseText
})
.then(res => {
console.log('销售协议预览', res)
this.$refs.addAgreementPopup.closePopup()
this.formFields.forEach(item => {
if (item.key === field.key) {
item.isShowPreview = true
}
})
this.pdfUrl = res.fileDownloadUrl
console.log('this.pdfUrl', this.pdfUrl)
})
......@@ -426,9 +434,11 @@ export default {
::v-deep .addAgreementPopup {
uni-textarea {
width: 100%;
height: 100%;
height: toRpx(568);
border-radius: toRpx(16);
background: #f4f5f7;
padding: toRpx(24);
box-sizing: border-box;
}
}
.confirm-car {
......
......@@ -22,19 +22,19 @@
<view class="addBtn" @click="addEvaluationForm({ type: 'add' })">
<view class="sprite-icon icon-addEvaluationFrom"></view>
</view>
<GeneralPopup ref="requotePopup" popupClass="requotePopup" title="重新报价" confirmText="重新报价" type="center" :showClose="true" :isShowCancel="false">
<GeneralPopup ref="requotePopup" popupClass="requotePopup" title="重新报价" confirmText="重新报价" type="center" :showClose="true" :isShowCancel="false" :autoClose="false" @confirm="confirmRequote">
<template #content>
<view class="requote-content">
<view class="requote-label mb-24">
客户意向报价
<text class="requiredLabel">*</text>
</view>
<input class="intention-input mb-48" type="idcard" placeholder="请输入" v-model="requoteObj.customerTargetPrice" />
<input class="intention-input mb-48" type="number" maxlength="6" placeholder="请输入" v-model="requoteObj.customerTargetPrice" />
<view class="requote-label mb-24">
客户意向报价
<text class="requiredLabel">*</text>
</view>
<textarea class="feedback-textarea" placeholder-style="color:#999999" placeholder="请输入 (200字以内)" v-model="requoteObj.customerTargetPriceFeedback" />
<textarea class="feedback-textarea" placeholder-style="color:#999999" placeholder="请输入 (200字以内)" maxlength="200" v-model="requoteObj.customerTargetPriceFeedback" />
</view>
</template>
</GeneralPopup>
......@@ -229,7 +229,14 @@ export default {
this.getStatByStatus()
},
reset() {
this.$refs.searchBox.reset()
this.searchValue = {
previousOwnerName: '',
previousOwnerPhone: '',
vin: '',
evalOrderNo: ''
}
this.tabIndex = 0
this.search()
},
async queryList(pageNo, pageSize) {
console.log('queryList出大两侧')
......@@ -353,15 +360,33 @@ export default {
const that = this
this.requoteObj.evalOrderNo = e.evalOrderNo
this.requoteObj.customerTargetPrice = e.evalPrice
this.$refs.requotePopup.open().then(() => {
const res = uni.$api.evaluationApi.evalOrderOwnerReQuote(this.requoteObj)
this.$refs.requotePopup.open()
},
confirmRequote() {
const that = this
console.log('that.requoteObj:', that.requoteObj)
if (that.requoteObj.customerTargetPriceFeedback.length == 0) {
uni.showToast({
title: '重新报价成功',
title: '请输入客户意向报价反馈',
icon: 'none'
})
this.currentPage = 1
this.search()
return
}
if (!that.requoteObj.customerTargetPrice) {
uni.showToast({
title: '请输入客户意向报价',
icon: 'none'
})
return
}
const res = uni.$api.evaluationApi.evalOrderOwnerReQuote(this.requoteObj)
uni.showToast({
title: '重新报价成功',
icon: 'none'
})
this.$refs.requotePopup.closePopup()
this.currentPage = 1
this.search()
},
cancelSign(e) {
this.cancelSignObj.evalOrderNo = e.evalOrderNo
......@@ -498,8 +523,11 @@ export default {
::v-deep .intention-input {
height: toRpx(96);
border-radius: toRpx(16);
.uni-input-wrapper {
background: #f4f5f7;
padding: toRpx(24);
box-sizing: border-box;
}
}
::v-deep .feedback-textarea {
......
......@@ -666,7 +666,7 @@ export default {
this.checkboxList.forEach(item => {
const itemKey = item.key
const isSelected = e.detail.value.some(value => value === item.value)
resultObject[itemKey] = isSelected ? 1 : 0
resultObject[itemKey] = isSelected ? '1' : '0'
})
// 更新formData
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!