Commit 9491f35e by 前端

Merge branch 'hotfix_v5.4.1' into 'master'

上线合并

See merge request !50
2 parents 83e84829 1f2e7e72
......@@ -2,10 +2,10 @@ import http from '../request/http'
import { env } from '../../env'
const serverConfig = {
mockRequestCount: null,
mockTimer: {},
mockCache: null
},
mockRequestCount: null,
mockTimer: {},
mockCache: null
},
boutiqueServerConfig = {
mockRequestCount: null,
mockTimer: {},
......@@ -128,6 +128,7 @@ const getSoureData = async (shopMerchantId, sceneType, params = {}) => {
...params
})
if (res && res.id) {
console.log(res.id, 'res.idres.idres.idres.id')
let data = await getEquityMaterialConfig({
id: res.id
})
......@@ -181,11 +182,12 @@ const getSoureData = async (shopMerchantId, sceneType, params = {}) => {
} else throw false
} catch (error) {
uni.hideLoading()
if (error) uni.showToast({
title: error,
icon: 'none',
duration: 2000
})
if (error)
uni.showToast({
title: error,
icon: 'none',
duration: 2000
})
}
}
/**批量图片转base64 */
......

2.9 MB | W: | H:

2.9 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -61,7 +61,7 @@ export default {
userInfo: Object
},
name: '',
data () {
data() {
return {
messageData: {
classCountList: [],
......@@ -76,11 +76,11 @@ export default {
hasPerson: false,
messageType: 'study',
sopCount: 0,
activityTabVisible: true
activityTabVisible: true
}
},
watch: {
userInfo (n) {
userInfo(n) {
console.log('userInfo', n)
if (n.shopMerchantId) this.haveCustomerAccess(n)
},
......@@ -92,10 +92,10 @@ export default {
// }
},
computed: {
perRecordNumber () {
perRecordNumber() {
return this.$store.state.audio.perRecordNumber
},
sceneTypeList () {
sceneTypeList() {
const sceneTypeObject = {
1: {
title: '轻改',
......@@ -131,7 +131,8 @@ export default {
}
return result
},
tabs () {
// 这个tabs进来的值更新触发顺序是 getStudyCenterPermission的方法变更 => 计算属性的变更 => userInfo的监听变更 => haveCustomerAccess的变更。 计算属性的变更后的更新值是不会重新触发渲染的
tabs() {
const tabs = [
{
label: "首页",
......@@ -161,26 +162,26 @@ export default {
{
label: "活动中心",
icon: "activity",
isTrack: true,
isTrack: true,
name: 'ActivityCenter',
eventCode: 'app_activeity_center',
hidden: !this.activityTabVisible
hidden: false
}
]
let { sceneType } = uni.$storage.get("userInfo")
if(sceneType == 7) tabs[1].hidden = true
if (sceneType == 7) tabs[1].hidden = true
console.log('tabs', tabs)
return tabs
}
},
created () {
created() {
// 监听自定义事件
uni.$on('pageBack', () => {
console.log('pageBack')
this.getMessageInfo();
});
uni.$on('ActivityCenter', this.handleActivityCenter);
uni.$on('ActivityCenter', this.handleActivityCenter);
// uni.$on('ActivityCenter', () => {
// console.log('ActivityCenter')
// let { tabs } = this,
......@@ -200,7 +201,7 @@ export default {
},
inject: ['showPage'],
methods: {
getUnreadCount () {
getUnreadCount() {
let _this = this
uni.$api.commonApi.getUnreadCount({}).then(res => {
this.readCount = res.data
......@@ -236,15 +237,15 @@ export default {
// this.leaveTrack()
// }, 5000)
// },
clickHome () {
clickHome() {
if (this.tabs[this.tabIndex].isTrack)
this.changeIndex(0, this.tabs[0])
},
handleSetting () {
handleSetting() {
this.$refs.settingRef.open()
this.clickHome()
},
findBeiSenSSOToken () {
findBeiSenSSOToken() {
return new Promise(resolve => {
const url = 'https%3A%2F%2Fcloud.italent.cn%2FPageHome%2FIndex%3Fproduct%3DLearning%26keyName%3DNusion%26pageCode%3DLearningNewHomepage%26appCode%3DLearning%26_qsrcapp%3DLearning%26_qrt%3Dhtml%26quark_s%3D5102bff371c00da5b19968ee53a8c3f1499ecd2447a19f72f3e3ba2390cc9617%23%2FviewDynamic%3Fshadow_context%3D%257BappModel%253A%2522italent%2522%252Cuppid%253A%25221%2522%257D%26quark_s%3D028930f1066f8ef8d28790940d53ae64337f44bde3a44cf89a290e4a3611e3e2'
uni.$api.commonApi.findBeiSenSSOToken({}).then(res => {
......@@ -254,15 +255,15 @@ export default {
})
})
},
handleActivityCenter() {
console.log('ActivityCenter triggered'); // 添加日志查看触发次数
let { tabs } = this;
let index = tabs.findIndex(e => e.name == 'ActivityCenter');
if (index !== -1) {
this.changeIndex(index, this.tabs[index]);
}
},
async changeIndex (index, item) {
handleActivityCenter() {
console.log('ActivityCenter triggered'); // 添加日志查看触发次数
let { tabs } = this;
let index = tabs.findIndex(e => e.name == 'ActivityCenter');
if (index !== -1) {
this.changeIndex(index, this.tabs[index]);
}
},
async changeIndex(index, item) {
if (item.eventCode) uni.$track.add({
eventCode: item.eventCode
})
......@@ -298,7 +299,7 @@ export default {
this.findBeiSenSSOToken()
}
},
async haveCustomerAccess (val) {
async haveCustomerAccess(val) {
const { shopMerchantId, sceneType: scene } = val
// const res = await uni.$api.customerApi.haveCustomerAccess({
// merchantId: shopMerchantId
......@@ -314,17 +315,42 @@ export default {
merchantId: shopMerchantId,
scene
}).then(result => {
console.log('haveCustomerAccess', result)
// uni.$storage.set('isSaleOpen', result)
if (result) {
this.hasPerson = true
this.activityTabVisible = scene !== 7
}else {
this.activityTabVisible = false
// this.activityTabVisible = scene !== 7
// this.tabs[this.tabs.length-1].hidden = scene !== 7
this.$nextTick(() => {
const activityTabIcon = document.querySelector('.sprite-icon.icon-activity')
if (activityTabIcon) {
const activityTab = activityTabIcon.closest('.tab-item')
if (activityTab) {
if (scene === 7) {
activityTab.style.display = 'none'
} else {
activityTab.style.display = 'block'
}
}
}
})
} else {
// this.tabs[this.tabs.length-1].hidden = false
// this.activityTabVisible = false
this.$nextTick(() => {
const activityTabIcon = document.querySelector('.sprite-icon.icon-activity')
if (activityTabIcon) {
const activityTab = activityTabIcon.closest('.tab-item')
if (activityTab) {
activityTab.style.display = 'none'
}
}
})
}
})
},
// 获取话术未读列表
async getMessage () {
async getMessage() {
const { sceneType, uuid } = uni.$storage.get("userInfo")
let businessTypeList = []
if (sceneType == 0) {
......@@ -353,7 +379,7 @@ export default {
// this.messageTotal = res
// },
// 学习中心消息弹窗,优先级高于有修改话术弹窗
async getMessagePop () {
async getMessagePop() {
const res = await uni.$api.commonApi.getMessagePop({})
if (res.ids && res.ids.length > 0) {
if (Array.isArray(res.moduleTypeList) && (res.moduleTypeList.includes(3) || res.moduleTypeList.includes(4))
......@@ -377,19 +403,19 @@ export default {
await this.getMessage()
}
},
openPop () {
openPop() {
// this.messageType = 'system'
// this.$refs.kfRef.open()
uni.navigateTo({
url: `/pages/common/messageList`
})
},
getMessageInfo () {
getMessageInfo() {
// this.getMessage()
// this.getMessageCount()
this.getMessagePop()
},
jumpPersonCenter () {
jumpPersonCenter() {
if (this.hasPerson) {
uni.$track.add({
eventCode: 'app_personal_center'
......@@ -398,7 +424,7 @@ export default {
this.$emit('update:tabIndex', 99)
}
},
chooseSceneType (index) {
chooseSceneType(index) {
let { userInfo, sceneTypeList } = this,
sceneType = sceneTypeList[index].id
if (sceneType == userInfo.sceneType) return
......@@ -417,14 +443,14 @@ export default {
url
})
},
openScenePopup () {
openScenePopup() {
this.$refs.sceneTypeRef.open()
uni.$track.add({
eventCode: 'app_scene_change'
})
},
// 学习中心权限获取,场景集市权限
getStudyCenterPermission () {
getStudyCenterPermission() {
const userInfo = uni.$storage.get('userInfo')
if (userInfo.subLoginUser.channelType == 9) {
this.tabs[2].hidden = true
......@@ -432,6 +458,7 @@ export default {
return
} else {
const res = uni.$storage.get('studyCenterPermission')
console.log('getStudyCenterPermission', res)
const { directSaleAuth, hmzxAuth, authorizedBusinessList } = res // 当驻店人员为非直营,且非鸿蒙智行延保业务驻店人员情况下。隐藏左侧【学习中心】图标
const isYb = authorizedBusinessList && authorizedBusinessList.includes(1) // 1.延保 2.轻改 3.权益
if (directSaleAuth || (hmzxAuth && isYb)) {
......@@ -440,12 +467,12 @@ export default {
}
}
},
beforeCreate () {
beforeCreate() {
// clearInterval(this.trackInterval)
// this.trackInterval = null
},
beforeDestroy () {
uni.$off('ActivityCenter', this.handleActivityCenter);
beforeDestroy() {
uni.$off('ActivityCenter', this.handleActivityCenter);
// clearInterval(this.trackInterval)
// this.trackInterval = null
},
......@@ -461,6 +488,7 @@ export default {
flex-shrink: 0;
background-image: url('@/assets/images/home/left-bg.png');
background-size: 100% 100%;
.left-tabs {
width: 100%;
height: toRpx(1080);
......@@ -516,6 +544,7 @@ export default {
align-items: center;
border-radius: 100%;
}
.tip-box {
position: absolute;
left: toRpx(90);
......@@ -558,9 +587,11 @@ export default {
padding-bottom: toRpx(64);
}
}
.user-box {
padding-top: toRpx(92);
}
.user-info {
width: toRpx(184);
box-sizing: border-box;
......@@ -587,6 +618,7 @@ export default {
border: toRpx(2) solid #ffffff;
box-shadow: 0 toRpx(4) toRpx(8) 0 #0000001a;
border-radius: 100%;
&.user-active {
border: toRpx(2) solid rgb(55, 115, 248);
}
......@@ -600,6 +632,7 @@ export default {
color: #292d33;
margin-top: toRpx(16);
padding: 0 toRpx(12);
&-text {
width: toRpx(112);
overflow: hidden;
......@@ -626,9 +659,11 @@ export default {
margin: toRpx(48) auto 0;
box-sizing: border-box;
padding-left: toRpx(60);
.icon-scene-change {
zoom: 2;
}
.message-number {
position: absolute;
display: flex;
......
......@@ -2,8 +2,8 @@
"name" : "展业助手",
"appid" : "__UNI__D3BD3DF",
"description" : "",
"versionName" : "2.17.1",
"versionCode" : "2171",
"versionName" : "2.18.1",
"versionCode" : 2181,
"transformPx" : false,
"sassImplementationName" : "node-sass",
/* 5+App特有相关 */
......
......@@ -74,6 +74,7 @@ export default {
if (newVal) {
// 处理交易数据
const handleTransactionData = newVal => {
console.log('接收到的交易数据:', newVal)
this.orderCreateType = newVal.type
if (this.orderCreateType === 'supplementOrder') {
......
......@@ -59,6 +59,10 @@
<UploadMedia :upload-fields="uploadVideoFields" :mediaData.sync="carVideoData" :grid-columns="3" />
</view>
<view class="upload-section">
<view class="section-title">车辆检测报告</view>
<UploadMedia :upload-fields="uploadReportFields" :mediaData.sync="reportImageData" :grid-columns="3" />
</view>
<view class="upload-section">
<view class="section-title">其他图片</view>
<UploadMedia :upload-fields="uploadOtherFields" :mediaData.sync="otherImagesData" :grid-columns="1" class="other-upload" />
</view>
......@@ -260,6 +264,7 @@ export default {
formImagesData: {},
certificateImagesData: {},
carVideoData: {},
reportImageData: {},
otherImagesData: {},
currentStep: 1, // 当前步骤,默认为1
formFields: [
......@@ -546,6 +551,7 @@ export default {
{ key: 31, label: '发动机工况', required: false, accept: 'video' },
{ key: 32, label: '车况解说', required: false, accept: 'video' }
],
uploadReportFields: [{ key: 51, label: '车辆检测报告', required: false, accept: 'image', maxCount: 3, fullwidth: true }],
uploadOtherFields: [{ key: 41, label: '其他图片', required: false, accept: 'image', maxCount: 30, fullwidth: true }],
currentField: null,
query: {}
......@@ -780,6 +786,7 @@ export default {
that.formImagesData = {}
that.certificateImagesData = {}
that.carVideoData = {}
that.reportImageData = {}
that.otherImagesData = {}
// 根据 fileType 和 fileSubtype 分类存放图片
......@@ -802,6 +809,9 @@ export default {
case 4: // 其他图片
targetData = that.otherImagesData
break
case 5: // 车辆检测报告
targetData = that.reportImageData
break
default:
return
}
......@@ -1425,6 +1435,8 @@ export default {
// 处理其他图片 - fileType: 4
this.processMediaData(this.otherImagesData, 4)
// 处理车辆检测报告 - fileType: 5
this.processMediaData(this.reportImageData, 5)
uni.showLoading({
title: '提交中...'
})
......@@ -1433,7 +1445,7 @@ export default {
this.formData.carBaseReqDTO.guidePrice = !isNaN(Number(guidePrice)) ? Number(guidePrice).toFixed(2) : '0.00'
if (this.query.type === 'add') {
uni.showLoading()
const res = await uni.$api.evaluationApi.evalOrderCreate(this.formData)
const res = await uni.$api.evaluationApi.evalOrderCreate({ ...this.formData, source: 1 })
console.log('res:', res)
if (res.data.code == 0) {
uni.hideLoading()
......
......@@ -4,13 +4,15 @@
<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="subStatus == 1" class="common-btn gray-btn ml-24" @click.stop="handleClick('signing')">签约中</view>
<view v-if="subStatus == 2 || subStatus == 3" class="common-btn gray-btn ml-24" @click.stop="handleClick('paying')">支付中</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 == 31 && !subStatus" class="common-btn blue-btn ml-24" @click.stop="handleClick('signAgreement', '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 == 30 && !subStatus && paymentType == 2 && previousStatus == '-1') || (status == 32 && !subStatus && paymentType == 2 && previousStatus == 31)" class="common-btn blue-btn ml-24" @click.stop="handleClick('payFull', 'app_evaluate_pay_full')">支付全款</view>
<view v-if="status == 32 && !subStatus && paymentType == 1" class="common-btn blue-btn ml-24" @click.stop="handleClick('payFull', 'app_evaluate_pay_final')">支付尾款</view>
<view v-if="(status == 30 && !subStatus && paymentType == 2 && previousStatus == 20) || (status == 40 && !subStatus && previousStatus == 30 && paymentType == 1)" 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>
......@@ -31,6 +33,10 @@ export default {
paymentType: {
type: Number,
default: 1
},
previousStatus: {
type: Number,
default: 1
}
},
data() {
......
......@@ -117,7 +117,7 @@ export default {
.forEach(key => {
sortedGroups[key] = groups[key]
})
console.log('Sorted groups:', sortedGroups)
return sortedGroups
},
......
<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>
<scroll-view class="type-box" scroll-x="true" show-scrollbar="false" scroll-with-animation>
<view class="type-scroll-content">
<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 && index != typeList.length - 1" class="sprite-icon tab-second-right icon-second-right"></view>
<view v-if="tabIndex == index && index != 0 && index == typeList.length - 1" class="sprite-icon tab-end-right icon-end-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>
</scroll-view>
</view>
</template>
......@@ -67,28 +70,37 @@ export default {
<style scoped lang="scss">
.type-tab {
position: relative;
overflow: hidden;
.type-box {
position: relative;
display: flex;
width: 100%;
box-sizing: border-box;
background-color: #eef4fe;
height: toRpx(96);
line-height: toRpx(128);
border-radius: toRpx(48) toRpx(48) 0 0;
overflow: hidden;
z-index: 0;
.type-scroll-content {
display: flex;
align-items: center;
flex-wrap: nowrap;
}
.tab-item {
flex-shrink: 0;
text-align: center;
font-weight: 400;
font-size: toRpx(28);
color: #292D33;
color: #292d33;
position: relative;
margin-right: toRpx(16);
.text {
position: relative;
text-align: center;
height: toRpx(96);
padding: 0 toRpx(64);
transition: all .15s;
transition: all 0.15s;
.count {
font-size: toRpx(24);
}
......@@ -113,7 +125,7 @@ export default {
position: relative;
font-weight: 500;
font-size: toRpx(32);
color: #3B73FF;
color: #3b73ff;
&::after {
content: '';
position: absolute;
......@@ -122,7 +134,7 @@ export default {
transform: translateX(-50%);
width: toRpx(40);
height: toRpx(6);
background-color: #3B73FF;
background-color: #3b73ff;
border-radius: toRpx(16);
}
}
......@@ -145,6 +157,10 @@ export default {
left: toMinusRpx(64);
position: absolute;
}
.tab-end-right {
right: 0;
position: absolute;
}
}
.tab-first-nav {
background: url('@/assets/spritesmith/first-nav.png') no-repeat;
......
......@@ -49,7 +49,7 @@
<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>
<ButtonModule @button-click="$emit('button-click', { ...$event, ...carInfo })" :status="carInfo.status" :subStatus="carInfo.subStatus" :paymentType="carInfo.paymentType" :previousStatus="carInfo.previousStatus"></ButtonModule>
</view>
<view v-if="carInfo.status == -1">
......@@ -143,6 +143,14 @@ export default {
color: #2cca74;
background: #e9f9f1;
}
.status-31 {
color: #5842eb;
background: #eeecfd;
}
.status-32 {
color: #5842eb;
background: #eeecfd;
}
.status-40 {
color: #5842eb;
background: #eeecfd;
......
......@@ -106,7 +106,7 @@
<view class="title">确认交车提醒</view>
<view class="tipsConent">
<view>{{ showTips }}</view>
<view>请确定车辆已经交付:代保管人 {{ custodianName }}。</view>
<!-- <view>请确定车辆已经交付:代保管人 {{ custodianName }}。</view> -->
</view>
</view>
</template>
......@@ -281,7 +281,7 @@ export default {
if (res.data.code == 0) {
// this.$set(this.formData, 'handoverAddress', res.data.data.evalCarBase.carProvinceName + '-' + res.data.data.evalCarBase.carCityName)
console.log('res.data.data', JSON.parse(res.data.data.custodyContract.electronicContractField))
this.custodianName = JSON.parse(res.data.data.custodyContract.electronicContractField).custodianName || ''
// this.custodianName = JSON.parse(res.data.data.custodyContract.electronicContractField).custodianName || ''
this.formData.handoverTime = dayjs().format('YYYY-MM-DD HH:mm:00')
// this.evalOrderSimpleDetail = res.data.data
} else {
......
......@@ -75,6 +75,14 @@ export const statusMap = {
name: '已签约',
type: 'primary'
},
31: {
name: '已签署确认单',
type: 'primary'
},
32: {
name: '已签署协议',
type: 'primary'
},
40: {
name: '已支付-定金',
type: 'primary'
......@@ -133,12 +141,12 @@ export const emissionStandardMap = {
6: '国6'
}
export const buyNewCarMap = {
0: '是',
1: '否'
1: '是',
0: '否'
}
export const hasAccidentMap = {
0: '是',
1: '否'
1: '是',
0: '否'
}
export const overallRatingMap = {
1: '优',
......
......@@ -34,7 +34,7 @@
<view class="upload-container mb-24">
<view class="form-item flex align-start justify-between">
<view class="from-label">
身份证正面
身份证国徽面
<text class="requiredLabel">*</text>
</view>
<template>
......@@ -56,7 +56,7 @@
</view>
<view class="form-item flex align-start justify-between">
<view class="from-label">
身份证背面
身份证人像面
<text class="requiredLabel">*</text>
</view>
<template>
......@@ -79,7 +79,7 @@
<FormCell :formFields="formFields2" :formData="formData" @handleCell="handleCell" />
<view class="upload-container">
<view class="form-item flex align-start justify-between">
<view class="from-label">身份证正面</view>
<view class="from-label">身份证国徽面</view>
<template>
<view v-if="formData.payerIdCardFrontUrl" class="uploaded-item">
<image :src="formData.payerIdCardFrontUrl" mode="aspectFit"></image>
......@@ -96,7 +96,7 @@
</template>
</view>
<view class="form-item flex align-start justify-between">
<view class="from-label">身份证背面</view>
<view class="from-label">身份证人像面</view>
<template>
<view v-if="formData.payerIdCardBackUrl" class="uploaded-item">
<image :src="formData.payerIdCardBackUrl" mode="aspectFit"></image>
......@@ -152,7 +152,8 @@
</template>
</view>
</view>
<FormCell :formFields="formFields1" :formData="formData" @handleCell="handleCell" />
<FormCell :formFields="formFields1" :formData="formData" @handleCell="handleCell" class="mb-24" />
<FormCell :formFields="formFields3" :formData="formData" @handleCell="handleCell" />
</view>
<view v-else class="flex flex-col align-center justify-center no-data">
<image :src="noDataBg" class="no-data-bg" />
......@@ -190,48 +191,48 @@
</view>
<view class="flex align-center">
<view class="title-label-see mr-16">签约车主</view>
<view>{{ formData.partAName }}</view>
<view>{{ formData.partAName || '-' }}</view>
</view>
<view class="flex align-center">
<view class="title-label-see mr-16">联系方式</view>
<view>{{ formData.phone }}</view>
<view>{{ formData.phone || '-' }}</view>
</view>
<view class="flex align-center">
<view class="title-label-see mr-16">身份证号</view>
<view>{{ formData.idCard }}</view>
<view>{{ formData.idCard || '-' }}</view>
</view>
<view class="flex align-center">
<view class="title-label-see mr-16">地址</view>
<view class="flex-1">{{ formData.address }}</view>
</view>
<view class="flex align-start" v-if="formData.idCardFrontUrl">
<view class="title-label-see mr-16">身份证正面</view>
<view class="title-label-see mr-16">身份证国徽面</view>
<image :src="formData.idCardFrontUrl" @click.stop="previewMedia(formData.idCardFrontUrl, 1)"></image>
</view>
<view class="flex align-start" v-if="formData.idCardBackUrl">
<view class="title-label-see mr-16">身份证反面</view>
<view class="title-label-see mr-16">身份证人像面</view>
<image :src="formData.idCardBackUrl" @click.stop="previewMedia(formData.idCardBackUrl, 1)"></image>
</view>
</view>
<view class="flex align-center gridBox mb-32">
<view class="flex align-center">
<view class="title-label-see mr-16">收款人姓名</view>
<view>{{ formData.payeeName }}</view>
<view>{{ formData.payeeName || '-' }}</view>
</view>
<view class="flex align-center">
<view class="title-label-see mr-16">银行账号</view>
<view>{{ formData.bankCardNumber }}</view>
<view>{{ formData.bankCardNumber || '-' }}</view>
</view>
<view class="flex align-center full-width">
<view class="title-label-see mr-16">开户行</view>
<view>{{ formData.bankOfDeposit }}</view>
<view>{{ formData.bankOfDeposit || '-' }}</view>
</view>
<view class="flex align-start" v-if="formData.payerIdCardFrontUrl">
<view class="title-label-see mr-16">身份证正面</view>
<view class="title-label-see mr-16">身份证国徽面</view>
<image :src="formData.payerIdCardFrontUrl" @click.stop="previewMedia(formData.payerIdCardFrontUrl, 1)"></image>
</view>
<view class="flex align-start" v-if="formData.payerIdCardBackUrl">
<view class="title-label-see mr-16">身份证反面</view>
<view class="title-label-see mr-16">身份证人像面</view>
<image :src="formData.payerIdCardBackUrl" @click.stop="previewMedia(formData.payerIdCardBackUrl, 1)"></image>
</view>
<view class="flex align-start" v-if="formData.payerBankCardUrl">
......@@ -242,17 +243,23 @@
<view class="flex align-center gridBox mb-32">
<view class="flex align-center full-width">
<view class="title-label-see mr-16">随车资料</view>
<view>{{ selectedItemsText }}</view>
<view>{{ selectedItemsText || '-' }}</view>
</view>
</view>
<view class="flex align-center gridBox">
<view class="flex align-center gridBox mb-32">
<view class="flex align-center">
<view class="title-label-see mr-16">交车时间</view>
<view>{{ formData.handoverTime }}</view>
<view>{{ formData.handoverTime || '-' }}</view>
</view>
<view class="flex align-center">
<view class="title-label-see mr-16">交车地点</view>
<view>{{ formData.handoverAddress }}</view>
<view>{{ formData.handoverAddress || '-' }}</view>
</view>
</view>
<view class="flex align-center gridBox">
<view class="flex align-center full-width">
<view class="title-label-see mr-16">备注约定条款</view>
<view class="flex-1">{{ formData.otherAgreedTerm || '-' }}</view>
</view>
</view>
......@@ -274,7 +281,8 @@
<script>
import FormCell from './components/FormCell.vue'
import GeneralPopup from './components/GeneralPopup.vue'
import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
// import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
import { uploadFile } from '@/utils/ossUpload.js'
import OrderPopup from '@/components/OrderPopup/index.vue'
import dayjs from 'dayjs'
import NoticePopup from '@/components/NoticePopup.vue'
......@@ -489,6 +497,19 @@ export default {
maxlength: 36
}
],
formFields3: [
{
key: 'otherAgreedTerm',
label: '备注约定条款',
fullWidth: true,
targetNameKey: 'otherAgreedTerm',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'otherAgreedTerm',
type: 'textarea',
maxlength: 200
}
],
query: null,
show: false,
value1: dayjs().format('YYYY-MM-DD HH:mm:ss')
......@@ -907,6 +928,7 @@ export default {
}
// 上传所有选择的图片
for (const tempFilePath of res.tempFilePaths) {
console.log('上传图片开始', tempFilePath)
const url = await uploadFile(tempFilePath)
console.log('上传图片成功', url)
this.addMedia(field, { url, fileFormat: 'png', type: 'image', name: field.label })
......@@ -941,8 +963,8 @@ export default {
}
}
// 上传所有选择的图片
for (const tempFilePath of res.tempFilePaths) {
const url = await uploadFile(tempFilePath)
for (let i = 0; i < res.tempFilePaths.length; i++) {
const url = await uploadFile(res.tempFiles[i], res.tempFilePaths[i])
console.log('上传图片成功', url)
this.addMedia(field, { url, fileFormat: 'png', type: 'image', name: field.label })
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!