Commit d8f4f19d by 胡悦

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

2 parents f9e3856c a15d22a3
...@@ -2,10 +2,10 @@ import http from '../request/http' ...@@ -2,10 +2,10 @@ import http from '../request/http'
import { env } from '../../env' import { env } from '../../env'
const serverConfig = { 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,11 +182,12 @@ const getSoureData = async (shopMerchantId, sceneType, params = {}) => { ...@@ -181,11 +182,12 @@ 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)
title: error, uni.showToast({
icon: 'none', title: error,
duration: 2000 icon: 'none',
}) duration: 2000
})
} }
} }
/**批量图片转base64 */ /**批量图片转base64 */
......

2.92 MB | W: | H:

2.93 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 { ...@@ -61,7 +61,7 @@ export default {
userInfo: Object userInfo: Object
}, },
name: '', name: '',
data () { data() {
return { return {
messageData: { messageData: {
classCountList: [], classCountList: [],
...@@ -76,11 +76,11 @@ export default { ...@@ -76,11 +76,11 @@ export default {
hasPerson: false, hasPerson: false,
messageType: 'study', messageType: 'study',
sopCount: 0, sopCount: 0,
activityTabVisible: true activityTabVisible: true
} }
}, },
watch: { watch: {
userInfo (n) { userInfo(n) {
console.log('userInfo', n) console.log('userInfo', n)
if (n.shopMerchantId) this.haveCustomerAccess(n) if (n.shopMerchantId) this.haveCustomerAccess(n)
}, },
...@@ -92,10 +92,10 @@ export default { ...@@ -92,10 +92,10 @@ export default {
// } // }
}, },
computed: { computed: {
perRecordNumber () { perRecordNumber() {
return this.$store.state.audio.perRecordNumber return this.$store.state.audio.perRecordNumber
}, },
sceneTypeList () { sceneTypeList() {
const sceneTypeObject = { const sceneTypeObject = {
1: { 1: {
title: '轻改', title: '轻改',
...@@ -131,7 +131,8 @@ export default { ...@@ -131,7 +131,8 @@ export default {
} }
return result return result
}, },
tabs () { // 这个tabs进来的值更新触发顺序是 getStudyCenterPermission的方法变更 => 计算属性的变更 => userInfo的监听变更 => haveCustomerAccess的变更。 计算属性的变更后的更新值是不会重新触发渲染的
tabs() {
const tabs = [ const tabs = [
{ {
label: "首页", label: "首页",
...@@ -160,14 +161,14 @@ export default { ...@@ -160,14 +161,14 @@ export default {
{ {
label: "活动中心", label: "活动中心",
icon: "activity", icon: "activity",
isTrack: true, isTrack: true,
name: 'ActivityCenter', name: 'ActivityCenter',
eventCode: 'app_activeity_center', eventCode: 'app_activeity_center',
hidden: !this.activityTabVisible hidden: false
} }
] ]
let { sceneType } = uni.$storage.get("userInfo") let { sceneType } = uni.$storage.get("userInfo")
if(sceneType == 7) tabs[1].hidden = true if (sceneType == 7) tabs[1].hidden = true
console.log('tabs', tabs) console.log('tabs', tabs)
return tabs return tabs
} }
...@@ -178,7 +179,7 @@ export default { ...@@ -178,7 +179,7 @@ export default {
console.log('pageBack') console.log('pageBack')
this.getMessageInfo(); this.getMessageInfo();
}); });
uni.$on('ActivityCenter', this.handleActivityCenter); uni.$on('ActivityCenter', this.handleActivityCenter);
// uni.$on('ActivityCenter', () => { // uni.$on('ActivityCenter', () => {
// console.log('ActivityCenter') // console.log('ActivityCenter')
// let { tabs } = this, // let { tabs } = this,
...@@ -199,7 +200,7 @@ export default { ...@@ -199,7 +200,7 @@ export default {
}, },
inject: ['showPage'], inject: ['showPage'],
methods: { methods: {
getUnreadCount () { getUnreadCount() {
let _this = this let _this = this
uni.$api.commonApi.getUnreadCount({}).then(res => { uni.$api.commonApi.getUnreadCount({}).then(res => {
this.readCount = res.data this.readCount = res.data
...@@ -235,15 +236,15 @@ export default { ...@@ -235,15 +236,15 @@ export default {
// this.leaveTrack() // this.leaveTrack()
// }, 5000) // }, 5000)
// }, // },
clickHome () { clickHome() {
if (this.tabs[this.tabIndex].isTrack) if (this.tabs[this.tabIndex].isTrack)
this.changeIndex(0, this.tabs[0]) this.changeIndex(0, this.tabs[0])
}, },
handleSetting () { handleSetting() {
this.$refs.settingRef.open() this.$refs.settingRef.open()
this.clickHome() this.clickHome()
}, },
findBeiSenSSOToken () { findBeiSenSSOToken() {
return new Promise(resolve => { 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' 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 => { uni.$api.commonApi.findBeiSenSSOToken({}).then(res => {
...@@ -253,15 +254,15 @@ export default { ...@@ -253,15 +254,15 @@ export default {
}) })
}) })
}, },
handleActivityCenter() { handleActivityCenter() {
console.log('ActivityCenter triggered'); // 添加日志查看触发次数 console.log('ActivityCenter triggered'); // 添加日志查看触发次数
let { tabs } = this; let { tabs } = this;
let index = tabs.findIndex(e => e.name == 'ActivityCenter'); let index = tabs.findIndex(e => e.name == 'ActivityCenter');
if (index !== -1) { if (index !== -1) {
this.changeIndex(index, this.tabs[index]); this.changeIndex(index, this.tabs[index]);
} }
}, },
async changeIndex (index, item) { async changeIndex(index, item) {
if (item.eventCode) uni.$track.add({ if (item.eventCode) uni.$track.add({
eventCode: item.eventCode eventCode: item.eventCode
}) })
...@@ -282,7 +283,7 @@ export default { ...@@ -282,7 +283,7 @@ export default {
this.findBeiSenSSOToken() this.findBeiSenSSOToken()
} }
}, },
async haveCustomerAccess (val) { async haveCustomerAccess(val) {
const { shopMerchantId, sceneType: scene } = val const { shopMerchantId, sceneType: scene } = val
uni.$api.customerApi.saleOpen({ uni.$api.customerApi.saleOpen({
merchantId: shopMerchantId, merchantId: shopMerchantId,
...@@ -290,14 +291,38 @@ export default { ...@@ -290,14 +291,38 @@ export default {
}).then(result => { }).then(result => {
if (result) { if (result) {
this.hasPerson = true this.hasPerson = true
this.activityTabVisible = scene !== 7 // this.activityTabVisible = scene !== 7
}else { // this.tabs[this.tabs.length-1].hidden = scene !== 7
this.activityTabVisible = false 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") const { sceneType, uuid } = uni.$storage.get("userInfo")
let businessTypeList = [] let businessTypeList = []
if (sceneType == 0) { if (sceneType == 0) {
...@@ -326,7 +351,7 @@ export default { ...@@ -326,7 +351,7 @@ export default {
// this.messageTotal = res // this.messageTotal = res
// }, // },
// 学习中心消息弹窗,优先级高于有修改话术弹窗 // 学习中心消息弹窗,优先级高于有修改话术弹窗
async getMessagePop () { async getMessagePop() {
const res = await uni.$api.commonApi.getMessagePop({}) const res = await uni.$api.commonApi.getMessagePop({})
if (res.ids && res.ids.length > 0) { if (res.ids && res.ids.length > 0) {
if (Array.isArray(res.moduleTypeList) && (res.moduleTypeList.includes(3) || res.moduleTypeList.includes(4)) if (Array.isArray(res.moduleTypeList) && (res.moduleTypeList.includes(3) || res.moduleTypeList.includes(4))
...@@ -350,19 +375,19 @@ export default { ...@@ -350,19 +375,19 @@ export default {
await this.getMessage() await this.getMessage()
} }
}, },
openPop () { openPop() {
// this.messageType = 'system' // this.messageType = 'system'
// this.$refs.kfRef.open() // this.$refs.kfRef.open()
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/messageList` url: `/pages/common/messageList`
}) })
}, },
getMessageInfo () { getMessageInfo() {
// this.getMessage() // this.getMessage()
// this.getMessageCount() // this.getMessageCount()
this.getMessagePop() this.getMessagePop()
}, },
jumpPersonCenter () { jumpPersonCenter() {
if (this.hasPerson) { if (this.hasPerson) {
uni.$track.add({ uni.$track.add({
eventCode: 'app_personal_center' eventCode: 'app_personal_center'
...@@ -371,7 +396,7 @@ export default { ...@@ -371,7 +396,7 @@ export default {
this.$emit('update:tabIndex', 99) this.$emit('update:tabIndex', 99)
} }
}, },
chooseSceneType (index) { chooseSceneType(index) {
let { userInfo, sceneTypeList } = this, let { userInfo, sceneTypeList } = this,
sceneType = sceneTypeList[index].id sceneType = sceneTypeList[index].id
if (sceneType == userInfo.sceneType) return if (sceneType == userInfo.sceneType) return
...@@ -390,7 +415,7 @@ export default { ...@@ -390,7 +415,7 @@ export default {
url url
}) })
}, },
openScenePopup () { openScenePopup() {
this.$refs.sceneTypeRef.open() this.$refs.sceneTypeRef.open()
uni.$track.add({ uni.$track.add({
eventCode: 'app_scene_change' eventCode: 'app_scene_change'
...@@ -398,7 +423,7 @@ export default { ...@@ -398,7 +423,7 @@ export default {
}, },
// 学习中心权限获取,场景集市权限 // 学习中心权限获取,场景集市权限
getStudyCenterPermission () { getStudyCenterPermission () {
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({}).then(res => { uni.$api.commonApi.getStudyCenterPermission({}).then(res => {
...@@ -412,7 +437,7 @@ export default { ...@@ -412,7 +437,7 @@ export default {
this.tabs[3].hidden = true this.tabs[3].hidden = true
return return
} else { } else {
// const { directSaleAuth, hmzxAuth, authorizedBusinessList } = res // 当驻店人员为非直营,且非鸿蒙智行延保业务驻店人员情况下。隐藏左侧【学习中心】图标 // const { directSaleAuth, hmzxAuth, authorizedBusinessList } = res // 当驻店人员为非直营,且非鸿蒙智行延保业务驻店人员情况下。隐藏左侧【学习中心】图标
// const isYb = authorizedBusinessList && authorizedBusinessList.includes(1) // 1.延保 2.轻改 3.权益 // const isYb = authorizedBusinessList && authorizedBusinessList.includes(1) // 1.延保 2.轻改 3.权益
// if (directSaleAuth || (hmzxAuth && isYb)) { // if (directSaleAuth || (hmzxAuth && isYb)) {
...@@ -421,12 +446,12 @@ export default { ...@@ -421,12 +446,12 @@ export default {
} }
} }
}, },
beforeCreate () { beforeCreate() {
// clearInterval(this.trackInterval) // clearInterval(this.trackInterval)
// this.trackInterval = null // this.trackInterval = null
}, },
beforeDestroy () { beforeDestroy() {
uni.$off('ActivityCenter', this.handleActivityCenter); uni.$off('ActivityCenter', this.handleActivityCenter);
// clearInterval(this.trackInterval) // clearInterval(this.trackInterval)
// this.trackInterval = null // this.trackInterval = null
}, },
...@@ -442,6 +467,7 @@ export default { ...@@ -442,6 +467,7 @@ export default {
flex-shrink: 0; flex-shrink: 0;
background-image: url('@/assets/images/home/left-bg.png'); background-image: url('@/assets/images/home/left-bg.png');
background-size: 100% 100%; background-size: 100% 100%;
.left-tabs { .left-tabs {
width: 100%; width: 100%;
height: toRpx(1080); height: toRpx(1080);
...@@ -497,6 +523,7 @@ export default { ...@@ -497,6 +523,7 @@ export default {
align-items: center; align-items: center;
border-radius: 100%; border-radius: 100%;
} }
.tip-box { .tip-box {
position: absolute; position: absolute;
left: toRpx(90); left: toRpx(90);
...@@ -539,9 +566,11 @@ export default { ...@@ -539,9 +566,11 @@ export default {
padding-bottom: toRpx(64); padding-bottom: toRpx(64);
} }
} }
.user-box { .user-box {
padding-top: toRpx(92); padding-top: toRpx(92);
} }
.user-info { .user-info {
width: toRpx(184); width: toRpx(184);
box-sizing: border-box; box-sizing: border-box;
...@@ -568,6 +597,7 @@ export default { ...@@ -568,6 +597,7 @@ export default {
border: toRpx(2) solid #ffffff; border: toRpx(2) solid #ffffff;
box-shadow: 0 toRpx(4) toRpx(8) 0 #0000001a; box-shadow: 0 toRpx(4) toRpx(8) 0 #0000001a;
border-radius: 100%; border-radius: 100%;
&.user-active { &.user-active {
border: toRpx(2) solid rgb(55, 115, 248); border: toRpx(2) solid rgb(55, 115, 248);
} }
...@@ -581,6 +611,7 @@ export default { ...@@ -581,6 +611,7 @@ export default {
color: #292d33; color: #292d33;
margin-top: toRpx(16); margin-top: toRpx(16);
padding: 0 toRpx(12); padding: 0 toRpx(12);
&-text { &-text {
width: toRpx(112); width: toRpx(112);
overflow: hidden; overflow: hidden;
...@@ -607,9 +638,11 @@ export default { ...@@ -607,9 +638,11 @@ export default {
margin: toRpx(48) auto 0; margin: toRpx(48) auto 0;
box-sizing: border-box; box-sizing: border-box;
padding-left: toRpx(60); padding-left: toRpx(60);
.icon-scene-change { .icon-scene-change {
zoom: 2; zoom: 2;
} }
.message-number { .message-number {
position: absolute; position: absolute;
display: flex; display: flex;
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"name" : "展业助手", "name" : "展业助手",
"appid" : "__UNI__D3BD3DF", "appid" : "__UNI__D3BD3DF",
"description" : "", "description" : "",
"versionName" : "2.17.1", "versionName" : "2.18.1",
"versionCode" : "2171", "versionCode" : 2181,
"transformPx" : false, "transformPx" : false,
"sassImplementationName" : "node-sass", "sassImplementationName" : "node-sass",
/* 5+App特有相关 */ /* 5+App特有相关 */
......
...@@ -75,6 +75,7 @@ export default { ...@@ -75,6 +75,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') {
......
...@@ -20,17 +20,28 @@ ...@@ -20,17 +20,28 @@
</view> </view>
</template> </template>
<template #content> <template #content>
<view class="pos-popup"> <template v-if="orderInfo.payId">
<template v-if="orderInfo.payId"> <view class="pos-popup">
<view class="price">¥{{ orderInfo.total_price }}</view> <template v-if="wxqrcode || posQrCode">
<image <view class="price">¥{{ orderInfo.total_price }}</view>
class="qrcode" <image
:src="orderInfo.payType == 1 ? wxqrcode : posQrCode" class="qrcode"
></image> :src="orderInfo.payType == 1 ? wxqrcode : posQrCode"
<view class="level-1-tips">{{ orderInfo.payType == 1 ? '请让客户打开微信扫描上方付款码进行支付' : '请使用POS机扫描此码,再向客户收款' }}</view> ></image>
<view class="level-2-tips">超过24小时未支付将关闭此订单</view> <view class="level-1-tips">{{ orderInfo.payType == 1 ? '请让客户打开微信扫描上方付款码进行支付' : '请使用POS机扫描此码,再向客户收款' }}</view>
</template> <view class="level-2-tips">超过24小时未支付将关闭此订单</view>
</view> </template>
<template v-else>
<view class="loading-box">
<image
class="loading"
:src="loadingIcon"
/>
</view>
</template>
</view>
</template>
</template> </template>
</PublishPopup> </PublishPopup>
</template> </template>
...@@ -38,6 +49,7 @@ ...@@ -38,6 +49,7 @@
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import PublishPopup from '@/components/PublishPopup.vue' import PublishPopup from '@/components/PublishPopup.vue'
import qrcode from '@/utils/qrcode' import qrcode from '@/utils/qrcode'
const loadingIcon = require('@/assets/images/common/loadding.gif')
export default { export default {
components: { components: {
PublishPopup PublishPopup
...@@ -45,6 +57,7 @@ export default { ...@@ -45,6 +57,7 @@ export default {
name: '', name: '',
data () { data () {
return { return {
loadingIcon,
orderInfo: {}, orderInfo: {},
wxqrcode: '', wxqrcode: '',
posQrCode: '', posQrCode: '',
...@@ -84,11 +97,11 @@ export default { ...@@ -84,11 +97,11 @@ export default {
}, },
async getOrderDetail () { async getOrderDetail () {
uni.hideLoading() uni.hideLoading()
if (!this.show) return if (!this.show || !this.$refs.payPopup) return
const { payId } = this.orderInfo const { payId } = this.orderInfo
if (payId) { if (payId) {
const data = await uni.$api.equityApi.getOrderDetail({ orderCode: payId }) const data = await uni.$api.equityApi.getOrderDetail({ orderCode: payId })
console.log(data,'----') console.log(data, '----')
this.orderInfo.total_price = data.totalPrice this.orderInfo.total_price = data.totalPrice
let { payOrder, status } = data let { payOrder, status } = data
if (payOrder?.payStatus == 2 || status == 4) { if (payOrder?.payStatus == 2 || status == 4) {
...@@ -183,6 +196,7 @@ export default { ...@@ -183,6 +196,7 @@ export default {
background: #ffffff; background: #ffffff;
margin: 0 auto toRpx(63) auto; margin: 0 auto toRpx(63) auto;
padding: toRpx(63) 0; padding: toRpx(63) 0;
transition: all 0.15s;
.qrcode { .qrcode {
width: toRpx(320); width: toRpx(320);
height: toRpx(320); height: toRpx(320);
...@@ -207,4 +221,18 @@ export default { ...@@ -207,4 +221,18 @@ export default {
} }
} }
} }
.loading-box{
position: relative;
width: 100%;
height: 574rpx;
.loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: toRpx(128);
height: toRpx(128);
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -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>
...@@ -261,6 +265,7 @@ export default { ...@@ -261,6 +265,7 @@ export default {
formImagesData: {}, formImagesData: {},
certificateImagesData: {}, certificateImagesData: {},
carVideoData: {}, carVideoData: {},
reportImageData: {},
otherImagesData: {}, otherImagesData: {},
currentStep: 1, // 当前步骤,默认为1 currentStep: 1, // 当前步骤,默认为1
formFields: [ formFields: [
...@@ -547,6 +552,7 @@ export default { ...@@ -547,6 +552,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: {},
...@@ -782,6 +788,7 @@ export default { ...@@ -782,6 +788,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 分类存放图片
...@@ -804,6 +811,9 @@ export default { ...@@ -804,6 +811,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
} }
...@@ -1463,6 +1473,8 @@ export default { ...@@ -1463,6 +1473,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: '提交中...'
}) })
...@@ -1471,7 +1483,7 @@ export default { ...@@ -1471,7 +1483,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 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 == 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 == 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="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 == 32 && !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 == 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="tab-item" :class="[tabClass(index)]" v-for="(i, index) in typeList" :key="index" @click.stop="tabClick(index, i)"> <view class="type-scroll-content">
<view v-if="tabIndex == index && index == 0" class="sprite-icon tab-first-left icon-first-left"></view> <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-right icon-first-right"></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-second-right icon-second-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-left icon-second-left"></view> <view v-if="tabIndex == index && index != 0 && index != typeList.length - 1" class="sprite-icon tab-second-right icon-second-right"></view>
<view class="text flex justify-center align-center" :class="[tabIndex == index ? `active` : '']"> <view v-if="tabIndex == index && index != 0 && index == typeList.length - 1" class="sprite-icon tab-end-right icon-end-right"></view>
<view>{{ i[nameKey] }}</view> <view v-if="tabIndex == index && index != 0" class="sprite-icon tab-second-left icon-second-left"></view>
<view v-if="isShowCount" class="count ml-8" :class="i.count > 99 ? 'count-red' : ''">{{ i.count > 99 ? '99+' : i.count }}</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> </view>
</view> </scroll-view>
</view> </view>
</template> </template>
...@@ -67,28 +70,37 @@ export default { ...@@ -67,28 +70,37 @@ 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: #292D33; color: #292d33;
position: relative; position: relative;
margin-right: toRpx(16);
.text { .text {
position: relative; position: relative;
text-align: center; text-align: center;
height: toRpx(96); height: toRpx(96);
padding: 0 toRpx(64); padding: 0 toRpx(64);
transition: all .15s; transition: all 0.15s;
.count { .count {
font-size: toRpx(24); font-size: toRpx(24);
} }
...@@ -113,7 +125,7 @@ export default { ...@@ -113,7 +125,7 @@ export default {
position: relative; position: relative;
font-weight: 500; font-weight: 500;
font-size: toRpx(32); font-size: toRpx(32);
color: #3B73FF; color: #3b73ff;
&::after { &::after {
content: ''; content: '';
position: absolute; position: absolute;
...@@ -122,7 +134,7 @@ export default { ...@@ -122,7 +134,7 @@ export default {
transform: translateX(-50%); transform: translateX(-50%);
width: toRpx(40); width: toRpx(40);
height: toRpx(6); height: toRpx(6);
background-color: #3B73FF; background-color: #3b73ff;
border-radius: toRpx(16); border-radius: toRpx(16);
} }
} }
...@@ -145,6 +157,10 @@ export default { ...@@ -145,6 +157,10 @@ export default {
left: toMinusRpx(64); left: toMinusRpx(64);
position: absolute; position: absolute;
} }
.tab-end-right {
right: 0;
position: absolute;
}
} }
.tab-first-nav { .tab-first-nav {
background: url('@/assets/spritesmith/first-nav.png') no-repeat; background: url('@/assets/spritesmith/first-nav.png') no-repeat;
......
...@@ -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;
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
<view class="title">确认交车提醒</view> <view class="title">确认交车提醒</view>
<view class="tipsConent"> <view class="tipsConent">
<view>{{ showTips }}</view> <view>{{ showTips }}</view>
<view>请确定车辆已经交付:代保管人 {{ custodianName }}。</view> <!-- <view>请确定车辆已经交付:代保管人 {{ custodianName }}。</view> -->
</view> </view>
</view> </view>
</template> </template>
...@@ -281,7 +281,7 @@ export default { ...@@ -281,7 +281,7 @@ export default {
if (res.data.code == 0) { if (res.data.code == 0) {
// this.$set(this.formData, 'handoverAddress', res.data.data.evalCarBase.carProvinceName + '-' + res.data.data.evalCarBase.carCityName) // 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)) 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.formData.handoverTime = dayjs().format('YYYY-MM-DD HH:mm:00')
// this.evalOrderSimpleDetail = res.data.data // this.evalOrderSimpleDetail = res.data.data
} else { } else {
......
...@@ -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'
...@@ -133,12 +141,12 @@ export const emissionStandardMap = { ...@@ -133,12 +141,12 @@ export const emissionStandardMap = {
6: '国6' 6: '国6'
} }
export const buyNewCarMap = { export const buyNewCarMap = {
0: '是', 1: '是',
1: '否' 0: '否'
} }
export const hasAccidentMap = { export const hasAccidentMap = {
0: '是', 1: '是',
1: '否' 0: '否'
} }
export const overallRatingMap = { export const overallRatingMap = {
1: '优', 1: '优',
......
...@@ -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!