Commit b27823b3 by cen

fix:新增评估单处理

1 parent ed6aadd7
...@@ -5,7 +5,7 @@ const serverConfig = { ...@@ -5,7 +5,7 @@ const serverConfig = {
mockRequestCount: null, mockRequestCount: null,
mockTimer: {}, mockTimer: {},
mockCache: null mockCache: null
}, },
boutiqueServerConfig = { boutiqueServerConfig = {
mockRequestCount: null, mockRequestCount: null,
mockTimer: {}, mockTimer: {},
...@@ -128,6 +128,7 @@ const getSoureData = async (shopMerchantId, sceneType, params = {}) => { ...@@ -128,6 +128,7 @@ const getSoureData = async (shopMerchantId, sceneType, params = {}) => {
...params ...params
}) })
if (res && res.id) { if (res && res.id) {
console.log(res.id, 'res.idres.idres.idres.id')
let data = await getEquityMaterialConfig({ let data = await getEquityMaterialConfig({
id: res.id id: res.id
}) })
...@@ -181,7 +182,8 @@ const getSoureData = async (shopMerchantId, sceneType, params = {}) => { ...@@ -181,7 +182,8 @@ const getSoureData = async (shopMerchantId, sceneType, params = {}) => {
} else throw false } else throw false
} catch (error) { } catch (error) {
uni.hideLoading() uni.hideLoading()
if (error) uni.showToast({ if (error)
uni.showToast({
title: error, title: error,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta'] const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 3 const index = 1
/** /**
* *
0本地 0本地
......
...@@ -74,6 +74,7 @@ export default { ...@@ -74,6 +74,7 @@ export default {
if (newVal) { if (newVal) {
// 处理交易数据 // 处理交易数据
const handleTransactionData = newVal => { const handleTransactionData = newVal => {
console.log('接收到的交易数据:', newVal)
this.orderCreateType = newVal.type this.orderCreateType = newVal.type
if (this.orderCreateType === 'supplementOrder') { if (this.orderCreateType === 'supplementOrder') {
...@@ -323,7 +324,7 @@ export default { ...@@ -323,7 +324,7 @@ export default {
}, },
// 弹窗确认回调 // 弹窗确认回调
onConfirm(val, flag) { onConfirm(val, flag) {
console.log(val,flag, 'onConfirm') console.log(val, flag, 'onConfirm')
this.externalData = [] this.externalData = []
// const { chooseContent } = val // const { chooseContent } = val
const chooseContent = utils.deepClone(val.chooseContent) const chooseContent = utils.deepClone(val.chooseContent)
...@@ -356,9 +357,7 @@ export default { ...@@ -356,9 +357,7 @@ export default {
} else { } else {
// 过滤出已选的goodFlag为2的对象 // 过滤出已选的goodFlag为2的对象
const selectedGoods = this.orderObj[_typeValue.key].filter(item => item.goodsFlag === 2) const selectedGoods = this.orderObj[_typeValue.key].filter(item => item.goodsFlag === 2)
const singleGoods = flag ? const singleGoods = flag ? this.orderObj[_typeValue.key].filter(item => item.goodsFlag === 1) : chooseContent.filter(item => item.goodsFlag === 1)
this.orderObj[_typeValue.key].filter(item => item.goodsFlag === 1) :
chooseContent.filter(item => item.goodsFlag === 1)
const moreGoods = chooseContent const moreGoods = chooseContent
.filter(item => item.goodsFlag === 2) .filter(item => item.goodsFlag === 2)
.filter(item => { .filter(item => {
......
...@@ -59,6 +59,10 @@ ...@@ -59,6 +59,10 @@
<UploadMedia :upload-fields="uploadVideoFields" :mediaData.sync="carVideoData" :grid-columns="3" /> <UploadMedia :upload-fields="uploadVideoFields" :mediaData.sync="carVideoData" :grid-columns="3" />
</view> </view>
<view class="upload-section"> <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> <view class="section-title">其他图片</view>
<UploadMedia :upload-fields="uploadOtherFields" :mediaData.sync="otherImagesData" :grid-columns="1" class="other-upload" /> <UploadMedia :upload-fields="uploadOtherFields" :mediaData.sync="otherImagesData" :grid-columns="1" class="other-upload" />
</view> </view>
...@@ -260,6 +264,7 @@ export default { ...@@ -260,6 +264,7 @@ export default {
formImagesData: {}, formImagesData: {},
certificateImagesData: {}, certificateImagesData: {},
carVideoData: {}, carVideoData: {},
reportImageData: {},
otherImagesData: {}, otherImagesData: {},
currentStep: 1, // 当前步骤,默认为1 currentStep: 1, // 当前步骤,默认为1
formFields: [ formFields: [
...@@ -546,6 +551,7 @@ export default { ...@@ -546,6 +551,7 @@ export default {
{ key: 31, label: '发动机工况', required: false, accept: 'video' }, { key: 31, label: '发动机工况', required: false, accept: 'video' },
{ key: 32, 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 }], uploadOtherFields: [{ key: 41, label: '其他图片', required: false, accept: 'image', maxCount: 30, fullwidth: true }],
currentField: null, currentField: null,
query: {} query: {}
...@@ -780,6 +786,7 @@ export default { ...@@ -780,6 +786,7 @@ export default {
that.formImagesData = {} that.formImagesData = {}
that.certificateImagesData = {} that.certificateImagesData = {}
that.carVideoData = {} that.carVideoData = {}
that.reportImageData = {}
that.otherImagesData = {} that.otherImagesData = {}
// 根据 fileType 和 fileSubtype 分类存放图片 // 根据 fileType 和 fileSubtype 分类存放图片
...@@ -802,6 +809,9 @@ export default { ...@@ -802,6 +809,9 @@ export default {
case 4: // 其他图片 case 4: // 其他图片
targetData = that.otherImagesData targetData = that.otherImagesData
break break
case 5: // 车辆检测报告
targetData = that.reportImageData
break
default: default:
return return
} }
...@@ -1425,6 +1435,8 @@ export default { ...@@ -1425,6 +1435,8 @@ export default {
// 处理其他图片 - fileType: 4 // 处理其他图片 - fileType: 4
this.processMediaData(this.otherImagesData, 4) this.processMediaData(this.otherImagesData, 4)
// 处理车辆检测报告 - fileType: 5
this.processMediaData(this.reportImageData, 5)
uni.showLoading({ uni.showLoading({
title: '提交中...' title: '提交中...'
}) })
...@@ -1433,7 +1445,7 @@ export default { ...@@ -1433,7 +1445,7 @@ export default {
this.formData.carBaseReqDTO.guidePrice = !isNaN(Number(guidePrice)) ? Number(guidePrice).toFixed(2) : '0.00' this.formData.carBaseReqDTO.guidePrice = !isNaN(Number(guidePrice)) ? Number(guidePrice).toFixed(2) : '0.00'
if (this.query.type === 'add') { if (this.query.type === 'add') {
uni.showLoading() 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) console.log('res:', res)
if (res.data.code == 0) { if (res.data.code == 0) {
uni.hideLoading() uni.hideLoading()
......
...@@ -4,13 +4,15 @@ ...@@ -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="!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 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" 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 == 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 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 == 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="(status == 30 && !subStatus && paymentType == 2 && previousStatus == '-1') || (status == 31 && !subStatus && paymentType == 2 && previousStatus == 30)" 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 == 31 && !subStatus && paymentType == 1 && (previousStatus == 40 || previousStatus == '-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 == 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> <view v-if="status == '-1'" class="common-btn blue-btn ml-24" @click.stop="handleClick('reSubmit', 'app_evaluate_re_submit')">重新提交</view>
</div> </div>
</template> </template>
...@@ -31,6 +33,10 @@ export default { ...@@ -31,6 +33,10 @@ export default {
paymentType: { paymentType: {
type: Number, type: Number,
default: 1 default: 1
},
previousStatus: {
type: Number,
default: 1
} }
}, },
data() { data() {
......
...@@ -117,7 +117,7 @@ export default { ...@@ -117,7 +117,7 @@ export default {
.forEach(key => { .forEach(key => {
sortedGroups[key] = groups[key] sortedGroups[key] = groups[key]
}) })
console.log('Sorted groups:', sortedGroups)
return sortedGroups return sortedGroups
}, },
......
<template> <template>
<view class="type-tab"> <view class="type-tab">
<view class="type-box"> <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 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-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-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 && index != typeList.length - 1" 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 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 class="text flex justify-center align-center" :class="[tabIndex == index ? `active` : '']">
<view>{{ i[nameKey] }}</view> <view>{{ i[nameKey] }}</view>
...@@ -12,6 +13,7 @@ ...@@ -12,6 +13,7 @@
</view> </view>
</view> </view>
</view> </view>
</scroll-view>
</view> </view>
</template> </template>
...@@ -67,22 +69,31 @@ export default { ...@@ -67,22 +69,31 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.type-tab { .type-tab {
position: relative; position: relative;
overflow: hidden;
.type-box { .type-box {
position: relative; position: relative;
display: flex;
width: 100%; width: 100%;
box-sizing: border-box;
background-color: #eef4fe; background-color: #eef4fe;
height: toRpx(96); height: toRpx(96);
line-height: toRpx(128); line-height: toRpx(128);
border-radius: toRpx(48) toRpx(48) 0 0; border-radius: toRpx(48) toRpx(48) 0 0;
overflow: hidden; overflow: hidden;
z-index: 0; z-index: 0;
.type-scroll-content {
display: flex;
align-items: center;
flex-wrap: nowrap;
}
.tab-item { .tab-item {
flex-shrink: 0;
text-align: center; text-align: center;
font-weight: 400; font-weight: 400;
font-size: toRpx(28); font-size: toRpx(28);
color: #1f2133; color: #1f2133;
position: relative; position: relative;
margin-right: toRpx(16);
.text { .text {
position: relative; position: relative;
text-align: center; text-align: center;
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<text v-if="carInfo.paymentType == 2 && carInfo.status != 10" class="text-gray ml-16">(全款: {{ carInfo.evalPrice }}元 )</text> <text v-if="carInfo.paymentType == 2 && carInfo.status != 10" class="text-gray ml-16">(全款: {{ carInfo.evalPrice }}元 )</text>
</view> </view>
</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>
<view v-if="carInfo.status == -1"> <view v-if="carInfo.status == -1">
...@@ -143,6 +143,14 @@ export default { ...@@ -143,6 +143,14 @@ export default {
color: #2cca74; color: #2cca74;
background: #e9f9f1; background: #e9f9f1;
} }
.status-31 {
color: #5842eb;
background: #eeecfd;
}
.status-32 {
color: #5842eb;
background: #eeecfd;
}
.status-40 { .status-40 {
color: #5842eb; color: #5842eb;
background: #eeecfd; background: #eeecfd;
......
...@@ -98,11 +98,11 @@ ...@@ -98,11 +98,11 @@
<view class="upload-box mb-32" v-if="hasAnyVideo"> <view class="upload-box mb-32" v-if="hasAnyVideo">
<view class="tab-panel-title">车辆视频</view> <view class="tab-panel-title">车辆视频</view>
<view class="upload-grid"> <view class="upload-grid">
<view class="flex upload-item-container" v-for="field in uploadVideoFields" :key="field.key"> <view class="flex upload-item-container" v-for="field in videoFieldsWithMedia" :key="field.key">
<view class="upload-label" v-if="getImageBySubtype(field.key)"> <view class="upload-label">
{{ field.label }} {{ field.label }}
</view> </view>
<view class="upload-images-wrapper" v-if="getImageBySubtype(field.key)"> <view class="upload-images-wrapper">
<view class="uploaded-media-container"> <view class="uploaded-media-container">
<view class="video-container"> <view class="video-container">
<image :src="getImageBySubtype(field.key).fileUrl + videoProcess" mode="aspectFill" class="uploaded-media" @click.stop="previewMedia(getImageBySubtype(field.key).fileUrl, 2)"></image> <image :src="getImageBySubtype(field.key).fileUrl + videoProcess" mode="aspectFill" class="uploaded-media" @click.stop="previewMedia(getImageBySubtype(field.key).fileUrl, 2)"></image>
...@@ -117,6 +117,24 @@ ...@@ -117,6 +117,24 @@
</view> </view>
</view> </view>
<view class="upload-box mb-32" v-if="hasAnyReportImage">
<view class="tab-panel-title">车辆检测报告</view>
<view class="upload-grid">
<view class="flex upload-item-container fullwidth" v-for="field in uploadReportFields" :key="field.key">
<view class="upload-label" v-if="getImageBySubtype(field.key)">
{{ field.label }}
</view>
<view class="upload-images-wrapper" v-if="getImageBySubtype(field.key)">
<template>
<view class="uploaded-media-container" v-for="(img, index) in getImageBySubtype(field.key)" :key="index">
<image :src="img.fileUrl" @click.stop="previewMedia(img.fileUrl, 1)" mode="aspectFill" class="uploaded-media"></image>
</view>
</template>
</view>
</view>
</view>
</view>
<view class="upload-box mb-32" v-if="hasAnyOtherImage"> <view class="upload-box mb-32" v-if="hasAnyOtherImage">
<view class="tab-panel-title">其他图片</view> <view class="tab-panel-title">其他图片</view>
<view class="upload-grid"> <view class="upload-grid">
...@@ -604,6 +622,7 @@ export default { ...@@ -604,6 +622,7 @@ export default {
{ key: 31, label: '发动机工况', required: true, accept: 'video' }, { key: 31, label: '发动机工况', required: true, accept: 'video' },
{ key: 32, label: '车况解说', required: true, accept: 'video' } { key: 32, label: '车况解说', required: true, accept: 'video' }
], ],
uploadReportFields: [{ key: 51, label: '车辆检测报告', required: true, accept: 'image' }],
uploadOtherFields: [{ key: 41, label: '其他图片', required: true, accept: 'image' }] uploadOtherFields: [{ key: 41, label: '其他图片', required: true, accept: 'image' }]
} }
}, },
...@@ -612,12 +631,28 @@ export default { ...@@ -612,12 +631,28 @@ export default {
uni.$track.add({ eventCode: 'app_evaluation_from_details' }) uni.$track.add({ eventCode: 'app_evaluation_from_details' })
}, },
computed: { computed: {
videoFieldsWithMedia() {
return this.uploadVideoFields.filter(field => {
const media = this.getImageBySubtype(field.key)
if (!media) return false
if (Array.isArray(media)) {
return media.length > 0
}
return !!media.fileUrl
})
},
hasAnyVideo() { hasAnyVideo() {
return this.uploadVideoFields.some(field => { return this.uploadVideoFields.some(field => {
const image = this.getImageBySubtype(field.key) const image = this.getImageBySubtype(field.key)
return image && image.fileUrl return image && image.fileUrl
}) })
}, },
hasAnyReportImage() {
return this.uploadReportFields.some(field => {
const image = this.getImageBySubtype(field.key)
return image && (Array.isArray(image) ? image.length > 0 : image.fileUrl)
})
},
hasAnyOtherImage() { hasAnyOtherImage() {
return this.uploadOtherFields.some(field => { return this.uploadOtherFields.some(field => {
const image = this.getImageBySubtype(field.key) const image = this.getImageBySubtype(field.key)
...@@ -728,7 +763,7 @@ export default { ...@@ -728,7 +763,7 @@ export default {
}, },
getImageBySubtype(subtype) { getImageBySubtype(subtype) {
if (!this.detailsInfo.images) return [] if (!this.detailsInfo.images) return []
if (subtype === 41 || subtype === 22) { if (subtype === 41 || subtype === 22 || subtype === 51) {
return this.detailsInfo.images.filter(img => img.fileSubtype === subtype) return this.detailsInfo.images.filter(img => img.fileSubtype === subtype)
} }
const obj = this.detailsInfo.images.find(img => img.fileSubtype === subtype) || null const obj = this.detailsInfo.images.find(img => img.fileSubtype === subtype) || null
...@@ -1135,6 +1170,14 @@ export default { ...@@ -1135,6 +1170,14 @@ export default {
color: #2cca74; color: #2cca74;
background: #e9f9f1; background: #e9f9f1;
} }
.status-31 {
color: #5842eb;
background: #eeecfd;
}
.status-32 {
color: #5842eb;
background: #eeecfd;
}
.status-40 { .status-40 {
color: #5842eb; color: #5842eb;
background: #eeecfd; background: #eeecfd;
......
...@@ -75,6 +75,14 @@ export const statusMap = { ...@@ -75,6 +75,14 @@ export const statusMap = {
name: '已签约', name: '已签约',
type: 'primary' type: 'primary'
}, },
31: {
name: '已签署确认单',
type: 'primary'
},
32: {
name: '已签署协议',
type: 'primary'
},
40: { 40: {
name: '已支付-定金', name: '已支付-定金',
type: 'primary' type: 'primary'
......
...@@ -126,10 +126,19 @@ ...@@ -126,10 +126,19 @@
<text class="popup-cell-title">银行账号</text> <text class="popup-cell-title">银行账号</text>
<text class="popup-cell-value">{{ payPopupObj.bankCardNumber }}</text> <text class="popup-cell-value">{{ payPopupObj.bankCardNumber }}</text>
</view> </view>
<view class="flex align-center"> <view class="flex align-center mb-16">
<text class="popup-cell-title">开户行</text> <text class="popup-cell-title">开户行</text>
<text class="popup-cell-value">{{ payPopupObj.bankOfDeposit }}</text> <text class="popup-cell-value">{{ payPopupObj.bankOfDeposit }}</text>
</view> </view>
<view class="flex align-center">
<text class="popup-cell-title">付款方式</text>
<radio-group class="radio-group flex align-center" @change="e => radioChange(e)">
<label class="uni-list-cell uni-list-cell-pd align-center flex mr-16" v-for="(item, index) in paymentMethodRadioList" :key="item.value">
<radio style="transform: scale(0.6)" :value="item.value" :checked="index === currentRadio" />
<view class="radio-name">{{ item.name }}</view>
</label>
</radio-group>
</view>
</view> </view>
</template> </template>
</GeneralPopup> </GeneralPopup>
...@@ -193,7 +202,8 @@ export default { ...@@ -193,7 +202,8 @@ export default {
evalPriceDisplay: '', evalPriceDisplay: '',
evalPrice: '', evalPrice: '',
paymentType: '', paymentType: '',
status: '' status: '',
paymentMethod: '1'
}, },
signAgreementObj: { signAgreementObj: {
evalOrderNo: '', evalOrderNo: '',
...@@ -215,12 +225,13 @@ export default { ...@@ -215,12 +225,13 @@ export default {
evalOrderNo: '' evalOrderNo: ''
}, },
typeList: [ typeList: [
{ tabName: '全部', count: 1, keyNum: 'allNum', key: '' }, { tabName: '全部', count: 0, keyNum: 'allNum', key: '' },
{ tabName: '评估中', count: 7, keyNum: 'evaluatingNum', key: '10' }, { tabName: '评估中', count: 0, keyNum: 'evaluatingNum', key: '10' },
{ tabName: '已报价', count: 5, keyNum: 'quotedNum', key: '20' }, { tabName: '已报价', count: 0, keyNum: 'quotedNum', key: '20' },
{ tabName: '已签约', count: 2, keyNum: 'signedNum', key: '30' }, { tabName: '已签约', count: 0, keyNum: 'signedNum', key: '30' },
{ tabName: '已支付-定金', count: 0, keyNum: 'depositPaidNum', key: '40' }, { tabName: '已支付-定金', count: 0, keyNum: 'depositPaidNum', key: '40' },
{ tabName: '已支付-尾款', count: 0, keyNum: 'balancePaidNum', key: '50' }, { tabName: '已签署确认单', count: 0, keyNum: 'signedDeliveryConfirmNum', key: '31' },
{ tabName: '已签署协议', count: 0, keyNum: 'signedCustodyAgreementNum', key: '32' },
{ tabName: '已完成', count: 0, keyNum: 'completedNum', key: '100' }, { tabName: '已完成', count: 0, keyNum: 'completedNum', key: '100' },
{ tabName: '已驳回', count: 0, keyNum: 'rejectedNum', key: '-1' } { tabName: '已驳回', count: 0, keyNum: 'rejectedNum', key: '-1' }
], ],
...@@ -231,7 +242,12 @@ export default { ...@@ -231,7 +242,12 @@ export default {
{ name: '4', count: 1, previousStatus: '40', subStatus: '', paymentType: '1' }, { name: '4', count: 1, previousStatus: '40', subStatus: '', paymentType: '1' },
{ name: '5', count: 1, previousStatus: '50', subStatus: '', paymentType: '1' }, { name: '5', count: 1, previousStatus: '50', subStatus: '', paymentType: '1' },
{ name: '6', count: 1, previousStatus: '-1', subStatus: '', paymentType: '1' } { name: '6', count: 1, previousStatus: '-1', subStatus: '', paymentType: '1' }
] ],
paymentMethodRadioList: [
{ name: '银行转账', value: '1' },
{ name: '冲账', value: '2' }
],
currentRadio: 0
} }
}, },
mounted() { mounted() {
...@@ -429,7 +445,8 @@ export default { ...@@ -429,7 +445,8 @@ export default {
if (this.payPopupObj.type == 'payDeposit') { if (this.payPopupObj.type == 'payDeposit') {
uni.showLoading() uni.showLoading()
const res = await uni.$api.evaluationApi.payDepositApplication({ const res = await uni.$api.evaluationApi.payDepositApplication({
evalOrderNo: this.payPopupObj.evalOrderNo evalOrderNo: this.payPopupObj.evalOrderNo,
paymentMethod: this.payPopupObj.paymentMethod
}) })
if (res.data.code == 0) { if (res.data.code == 0) {
uni.hideLoading() uni.hideLoading()
...@@ -471,12 +488,13 @@ export default { ...@@ -471,12 +488,13 @@ export default {
} else { } else {
uni.showLoading() uni.showLoading()
const res = await uni.$api.evaluationApi.signAgreement({ const res = await uni.$api.evaluationApi.signAgreement({
evalOrderNo: this.payPopupObj.evalOrderNo evalOrderNo: this.payPopupObj.evalOrderNo,
paymentMethod: this.payPopupObj.paymentMethod
}) })
if (res.data.code == 0) { if (res.data.code == 0) {
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
title: this.payPopupObj.status == 40 && this.payPopupObj.paymentType == 1 ? '尾款款项已申请,完成代保管协议电子签约后将安排支付尾款' : '全款款项已申请,完成代保管协议电子签约后将安排支付全款', title: this.payPopupObj.status == 40 && this.payPopupObj.paymentType == 1 ? '尾款已申请,请等待付款审批' : '全款已申请,请等待付款审批',
icon: 'none' icon: 'none'
}) })
} else { } else {
...@@ -687,6 +705,10 @@ export default { ...@@ -687,6 +705,10 @@ export default {
this.custodyAgreementObj = e.chooseContent this.custodyAgreementObj = e.chooseContent
this.signAgreementObj = { custodianName: e.chooseContent.name, custodianIdentityCode: e.chooseContent.idCard, custodianPhone: e.chooseContent.phone, custodianAddress: e.chooseContent.address } this.signAgreementObj = { custodianName: e.chooseContent.name, custodianIdentityCode: e.chooseContent.idCard, custodianPhone: e.chooseContent.phone, custodianAddress: e.chooseContent.address }
console.log('this.signAgreementObj:', this.signAgreementObj) console.log('this.signAgreementObj:', this.signAgreementObj)
},
radioChange(value) {
console.log('radioChange', value)
this.payPopupObj.paymentMethod = value.detail.value
} }
} }
} }
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<view class="upload-container mb-24"> <view class="upload-container mb-24">
<view class="form-item flex align-start justify-between"> <view class="form-item flex align-start justify-between">
<view class="from-label"> <view class="from-label">
身份证正面 身份证国徽面
<text class="requiredLabel">*</text> <text class="requiredLabel">*</text>
</view> </view>
<template> <template>
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</view> </view>
<view class="form-item flex align-start justify-between"> <view class="form-item flex align-start justify-between">
<view class="from-label"> <view class="from-label">
身份证背面 身份证人像面
<text class="requiredLabel">*</text> <text class="requiredLabel">*</text>
</view> </view>
<template> <template>
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<FormCell :formFields="formFields2" :formData="formData" @handleCell="handleCell" /> <FormCell :formFields="formFields2" :formData="formData" @handleCell="handleCell" />
<view class="upload-container"> <view class="upload-container">
<view class="form-item flex align-start justify-between"> <view class="form-item flex align-start justify-between">
<view class="from-label">身份证正面</view> <view class="from-label">身份证国徽面</view>
<template> <template>
<view v-if="formData.payerIdCardFrontUrl" class="uploaded-item"> <view v-if="formData.payerIdCardFrontUrl" class="uploaded-item">
<image :src="formData.payerIdCardFrontUrl" mode="aspectFit"></image> <image :src="formData.payerIdCardFrontUrl" mode="aspectFit"></image>
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
</template> </template>
</view> </view>
<view class="form-item flex align-start justify-between"> <view class="form-item flex align-start justify-between">
<view class="from-label">身份证背面</view> <view class="from-label">身份证人像面</view>
<template> <template>
<view v-if="formData.payerIdCardBackUrl" class="uploaded-item"> <view v-if="formData.payerIdCardBackUrl" class="uploaded-item">
<image :src="formData.payerIdCardBackUrl" mode="aspectFit"></image> <image :src="formData.payerIdCardBackUrl" mode="aspectFit"></image>
...@@ -152,7 +152,8 @@ ...@@ -152,7 +152,8 @@
</template> </template>
</view> </view>
</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>
<view v-else class="flex flex-col align-center justify-center no-data"> <view v-else class="flex flex-col align-center justify-center no-data">
<image :src="noDataBg" class="no-data-bg" /> <image :src="noDataBg" class="no-data-bg" />
...@@ -190,48 +191,48 @@ ...@@ -190,48 +191,48 @@
</view> </view>
<view class="flex align-center"> <view class="flex align-center">
<view class="title-label-see mr-16">签约车主</view> <view class="title-label-see mr-16">签约车主</view>
<view>{{ formData.partAName }}</view> <view>{{ formData.partAName || '-' }}</view>
</view> </view>
<view class="flex align-center"> <view class="flex align-center">
<view class="title-label-see mr-16">联系方式</view> <view class="title-label-see mr-16">联系方式</view>
<view>{{ formData.phone }}</view> <view>{{ formData.phone || '-' }}</view>
</view> </view>
<view class="flex align-center"> <view class="flex align-center">
<view class="title-label-see mr-16">身份证号</view> <view class="title-label-see mr-16">身份证号</view>
<view>{{ formData.idCard }}</view> <view>{{ formData.idCard || '-' }}</view>
</view> </view>
<view class="flex align-center"> <view class="flex align-center">
<view class="title-label-see mr-16">地址</view> <view class="title-label-see mr-16">地址</view>
<view class="flex-1">{{ formData.address }}</view> <view class="flex-1">{{ formData.address }}</view>
</view> </view>
<view class="flex align-start" v-if="formData.idCardFrontUrl"> <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> <image :src="formData.idCardFrontUrl" @click.stop="previewMedia(formData.idCardFrontUrl, 1)"></image>
</view> </view>
<view class="flex align-start" v-if="formData.idCardBackUrl"> <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> <image :src="formData.idCardBackUrl" @click.stop="previewMedia(formData.idCardBackUrl, 1)"></image>
</view> </view>
</view> </view>
<view class="flex align-center gridBox mb-32"> <view class="flex align-center gridBox mb-32">
<view class="flex align-center"> <view class="flex align-center">
<view class="title-label-see mr-16">收款人姓名</view> <view class="title-label-see mr-16">收款人姓名</view>
<view>{{ formData.payeeName }}</view> <view>{{ formData.payeeName || '-' }}</view>
</view> </view>
<view class="flex align-center"> <view class="flex align-center">
<view class="title-label-see mr-16">银行账号</view> <view class="title-label-see mr-16">银行账号</view>
<view>{{ formData.bankCardNumber }}</view> <view>{{ formData.bankCardNumber || '-' }}</view>
</view> </view>
<view class="flex align-center full-width"> <view class="flex align-center full-width">
<view class="title-label-see mr-16">开户行</view> <view class="title-label-see mr-16">开户行</view>
<view>{{ formData.bankOfDeposit }}</view> <view>{{ formData.bankOfDeposit || '-' }}</view>
</view> </view>
<view class="flex align-start" v-if="formData.payerIdCardFrontUrl"> <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> <image :src="formData.payerIdCardFrontUrl" @click.stop="previewMedia(formData.payerIdCardFrontUrl, 1)"></image>
</view> </view>
<view class="flex align-start" v-if="formData.payerIdCardBackUrl"> <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> <image :src="formData.payerIdCardBackUrl" @click.stop="previewMedia(formData.payerIdCardBackUrl, 1)"></image>
</view> </view>
<view class="flex align-start" v-if="formData.payerBankCardUrl"> <view class="flex align-start" v-if="formData.payerBankCardUrl">
...@@ -242,17 +243,23 @@ ...@@ -242,17 +243,23 @@
<view class="flex align-center gridBox mb-32"> <view class="flex align-center gridBox mb-32">
<view class="flex align-center full-width"> <view class="flex align-center full-width">
<view class="title-label-see mr-16">随车资料</view> <view class="title-label-see mr-16">随车资料</view>
<view>{{ selectedItemsText }}</view> <view>{{ selectedItemsText || '-' }}</view>
</view> </view>
</view> </view>
<view class="flex align-center gridBox"> <view class="flex align-center gridBox mb-32">
<view class="flex align-center"> <view class="flex align-center">
<view class="title-label-see mr-16">交车时间</view> <view class="title-label-see mr-16">交车时间</view>
<view>{{ formData.handoverTime }}</view> <view>{{ formData.handoverTime || '-' }}</view>
</view> </view>
<view class="flex align-center"> <view class="flex align-center">
<view class="title-label-see mr-16">交车地点</view> <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>
</view> </view>
...@@ -274,7 +281,8 @@ ...@@ -274,7 +281,8 @@
<script> <script>
import FormCell from './components/FormCell.vue' import FormCell from './components/FormCell.vue'
import GeneralPopup from './components/GeneralPopup.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 OrderPopup from '@/components/OrderPopup/index.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import NoticePopup from '@/components/NoticePopup.vue' import NoticePopup from '@/components/NoticePopup.vue'
...@@ -489,6 +497,19 @@ export default { ...@@ -489,6 +497,19 @@ export default {
maxlength: 36 maxlength: 36
} }
], ],
formFields3: [
{
key: 'otherAgreedTerm',
label: '备注约定条款',
fullWidth: true,
targetNameKey: 'otherAgreedTerm',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'otherAgreedTerm',
type: 'textarea',
maxlength: 200
}
],
query: null, query: null,
show: false, show: false,
value1: dayjs().format('YYYY-MM-DD HH:mm:ss') value1: dayjs().format('YYYY-MM-DD HH:mm:ss')
...@@ -907,6 +928,7 @@ export default { ...@@ -907,6 +928,7 @@ export default {
} }
// 上传所有选择的图片 // 上传所有选择的图片
for (const tempFilePath of res.tempFilePaths) { for (const tempFilePath of res.tempFilePaths) {
console.log('上传图片开始', tempFilePath)
const url = await uploadFile(tempFilePath) const url = await uploadFile(tempFilePath)
console.log('上传图片成功', url) console.log('上传图片成功', url)
this.addMedia(field, { url, fileFormat: 'png', type: 'image', name: field.label }) this.addMedia(field, { url, fileFormat: 'png', type: 'image', name: field.label })
...@@ -941,8 +963,8 @@ export default { ...@@ -941,8 +963,8 @@ export default {
} }
} }
// 上传所有选择的图片 // 上传所有选择的图片
for (const tempFilePath of res.tempFilePaths) { for (let i = 0; i < res.tempFilePaths.length; i++) {
const url = await uploadFile(tempFilePath) const url = await uploadFile(res.tempFiles[i], res.tempFilePaths[i])
console.log('上传图片成功', url) console.log('上传图片成功', url)
this.addMedia(field, { url, fileFormat: 'png', type: 'image', name: field.label }) 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!