Commit d4323c0d by cen

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

2 parents 627664a5 545232e7
Showing 46 changed files with 1897 additions and 133 deletions
...@@ -31,4 +31,42 @@ module.exports = { ...@@ -31,4 +31,42 @@ module.exports = {
...data ...data
}) })
}, },
/**
* 交付单列表
*/
getDeliveryOrderPageList (data) {
return gscPost('/deliveryOrderManage/getDeliveryOrderPageList', data ,{
returnAll: true
})
},
/**
* 交付单列表按照支付状态统计数量
*/
getDeliveryOrderListCount (data) {
return gscPost('/deliveryOrderManage/getDeliveryOrderListCount', data)
},
/**
* 交付单详情
*/
getDeliveryOrderDetail (data) {
return gscPost('/deliveryOrderManage/getDeliveryOrderDetail', data)
},
/**
* 交付单操作日志
*/
getDeliveryOrderOpLog (data) {
return gscPost('/deliveryOrderManage/getDeliveryOrderOpLog', data)
},
/**
* 客户确认到店
*/
confirmArrive (data) {
return gscPost('/deliveryOrderManage/confirmArrive', data, { returnAll: true })
},
/**
* 客户确认提车
*/
confirmDelivery (data) {
return gscPost('/deliveryOrderManage/confirmDelivery', data, { returnAll: true })
},
} }

2.87 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
...@@ -206,6 +206,13 @@ export default { ...@@ -206,6 +206,13 @@ export default {
oneCarBrand: selectItem.carBrand, oneCarBrand: selectItem.carBrand,
oneCarBrandId: selectItem.carBrandId oneCarBrandId: selectItem.carBrandId
}) })
uni.$logger.local.info(`选择车:
carModel:${item.name},
carModelId: ${item.id},
carBrand:${customerInfo.carBrand},
carBrandId:${customerInfo.carBrandId},
oneCarBrand:${customerInfo.oneCarBrand},
oneCarBrandId:${customerInfo.oneCarBrandId}`)
if (linkage) { if (linkage) {
this.$store.dispatch('setCustomerInfo', customerInfo) this.$store.dispatch('setCustomerInfo', customerInfo)
this.$store.dispatch('updateViewKey') this.$store.dispatch('updateViewKey')
......
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
{ {
icon: 'daily-report', icon: 'daily-report',
label: '驻店日报', label: '驻店日报',
name: 'DailyReport' name: 'DailyReport',
}, },
{ {
icon: 'create-order', icon: 'create-order',
...@@ -63,15 +63,19 @@ export default { ...@@ -63,15 +63,19 @@ export default {
icon: 'evaluation-management', icon: 'evaluation-management',
label: '评估单管理', label: '评估单管理',
name: 'EvaluationFormList' name: 'EvaluationFormList'
}, {
icon: 'delivery-management',
label: '交付管理',
name: 'DeliveryManagement',
page: '/pages/usedCar/deliveryManagement/index'
} }
] ]
if (sceneType == 0) return [] if (sceneType == 0) return []
else if (sceneType === 7) { else if (sceneType === 7) {
return entranceList.filter(e => ['DailyReport', 'EvaluationFormList'].includes(e.name)); return entranceList.filter(e => ['DailyReport', 'EvaluationFormList', 'DeliveryManagement'].includes(e.name));
} }
if (sceneType === 1) { if (sceneType === 1) {
return entranceList.filter(e => e.name !== 'EvaluationFormList'); return entranceList.filter(e => !['EvaluationFormList', 'DeliveryManagement'].includes(e.name));
} }
} }
}, },
......
...@@ -356,7 +356,8 @@ export default { ...@@ -356,7 +356,8 @@ export default {
gap: toRpx(40) toRpx(46); gap: toRpx(40) toRpx(46);
padding: toRpx(2) toRpx(44) 0; padding: toRpx(2) toRpx(44) 0;
.item { .item {
width: toRpx(610); // width: toRpx(610);
width: calc(50% - #{toRpx(23)});
background: #ffffff; background: #ffffff;
box-sizing: border-box; box-sizing: border-box;
padding: toRpx(24) toRpx(32); padding: toRpx(24) toRpx(32);
......
...@@ -270,8 +270,16 @@ export default { ...@@ -270,8 +270,16 @@ export default {
this.$refs[popkey].close() this.$refs[popkey].close()
if (popkey == 'carBrandVisible') { if (popkey == 'carBrandVisible') {
this.$refs.carBrandVisible.close() this.$refs.carBrandVisible.close()
this.customerInfo.brandModel = item.name // this.customerInfo.brandModel = item.name
this.customerInfo.carBrand = item.carChildsBrandName // this.customerInfo.carBrand = item.carChildsBrandName
Object.assign(this.customerInfo, {
brandModel: item.name,
carModelId: item.id,
carBrand: item.carChildsBrandName,
carBrandId: item.carChildsBrandId,
oneCarBrand: item.carBrand,
oneCarBrandId: item.carBrandId
})
} else if (popkey == 'customerTagstVisible') { } else if (popkey == 'customerTagstVisible') {
let names = [], let names = [],
ids = [] ids = []
...@@ -308,6 +316,13 @@ export default { ...@@ -308,6 +316,13 @@ export default {
params[e.key] = customerInfo[e.key] params[e.key] = customerInfo[e.key]
}) })
if (customerInfo.id) params.id = customerInfo.id if (customerInfo.id) params.id = customerInfo.id
Object.assign(params, {
carModelId: customerInfo.carModelId,
carBrand: customerInfo.carBrand,
carBrandId: customerInfo.carBrandId,
oneCarBrand: customerInfo.oneCarBrand,
oneCarBrandId: customerInfo.oneCarBrandId
})
params.customerTagName = params.customerTagName.replace(/|/g, ',') params.customerTagName = params.customerTagName.replace(/|/g, ',')
uni.showLoading({ uni.showLoading({
mask: true mask: true
...@@ -377,6 +392,7 @@ export default { ...@@ -377,6 +392,7 @@ export default {
animation: left-in 0.25s forwards; animation: left-in 0.25s forwards;
.nav-bar { .nav-bar {
width: 100%; width: 100%;
top: 0;
height: toRpx(96); height: toRpx(96);
z-index: 9; z-index: 9;
text-align: center; text-align: center;
......
...@@ -459,7 +459,8 @@ export default { ...@@ -459,7 +459,8 @@ export default {
gap: toRpx(40) toRpx(46); gap: toRpx(40) toRpx(46);
padding: toRpx(2) toRpx(44) 0; padding: toRpx(2) toRpx(44) 0;
.item { .item {
width: toRpx(610); // width: toRpx(610);
width: calc(50% - #{toRpx(23)});
background: #ffffff; background: #ffffff;
box-sizing: border-box; box-sizing: border-box;
padding: toRpx(24) toRpx(32); padding: toRpx(24) toRpx(32);
......
...@@ -400,7 +400,7 @@ export default { ...@@ -400,7 +400,7 @@ export default {
} }
} }
.right { .right {
width: toRpx(1358); width: calc(100% - #{toRpx(752)});
border: toRpx(2) solid #fff; border: toRpx(2) solid #fff;
box-sizing: border-box; box-sizing: border-box;
&.only-right { &.only-right {
......
...@@ -127,7 +127,7 @@ import Entrance from '@/components/Entrance.vue' ...@@ -127,7 +127,7 @@ import Entrance from '@/components/Entrance.vue'
import mediaResourceManager from '@/utils/mediaResourceManager/mediaResourceManager' import mediaResourceManager from '@/utils/mediaResourceManager/mediaResourceManager'
import { interceptionMixin } from '@/mixin/index' import { interceptionMixin } from '@/mixin/index'
export default { export default {
mixins: [recorder, uploader, timeout, versionCheck, merge, interceptionMixin], mixins: [recorder, uploader, timeout, versionCheck, interceptionMixin , merge],
components: { ReceptionCenter, StudyCenter, ActivityCenter, SceneMarket, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint, Calendar, Promotion, History, LevelMedal, MessageDetail, SwiperComponent, MessageIndex, Entrance }, components: { ReceptionCenter, StudyCenter, ActivityCenter, SceneMarket, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint, Calendar, Promotion, History, LevelMedal, MessageDetail, SwiperComponent, MessageIndex, Entrance },
props: { props: {
id: [String, Number], id: [String, Number],
...@@ -344,7 +344,7 @@ export default { ...@@ -344,7 +344,7 @@ export default {
async entranceClick(item) { async entranceClick(item) {
// 清除评估单的图片视频资源缓存 // 清除评估单的图片视频资源缓存
const noInterceptPage = ['DailyReport'], const noInterceptPage = ['DailyReport', 'DeliveryManagement'],
{ sceneType } = this { sceneType } = this
if (!noInterceptPage.includes(item.name) && (await this.checkDailyReport(sceneType != 7))) return if (!noInterceptPage.includes(item.name) && (await this.checkDailyReport(sceneType != 7))) return
if (sceneType != 7 && (await this.inspectionOfProhibitionBill())) return if (sceneType != 7 && (await this.inspectionOfProhibitionBill())) return
...@@ -355,6 +355,9 @@ export default { ...@@ -355,6 +355,9 @@ export default {
}) })
return return
} }
if (item.page) return uni.navigateTo({
url: item.page
})
let pageName = { let pageName = {
1: 'boutique', 1: 'boutique',
7: 'usedCar' 7: 'usedCar'
...@@ -506,6 +509,7 @@ export default { ...@@ -506,6 +509,7 @@ export default {
} }
} }
.right-content-box { .right-content-box {
width: 100%;
height: calc(100% - #{toRpx(232)}); height: calc(100% - #{toRpx(232)});
gap: toRpx(48); gap: toRpx(48);
box-sizing: border-box; box-sizing: border-box;
...@@ -528,6 +532,7 @@ export default { ...@@ -528,6 +532,7 @@ export default {
.content-left, .content-left,
.content-right { .content-right {
height: 100%; height: 100%;
flex-shrink: 0;
} }
.content-left { .content-left {
width: toRpx(1210); width: toRpx(1210);
...@@ -544,10 +549,12 @@ export default { ...@@ -544,10 +549,12 @@ export default {
} }
} }
.content-right { .content-right {
width: toRpx(800); width: calc(100% - #{toRpx(1322)});
// width: toRpx(800);
} }
} }
.app-content-box { .app-content-box {
width: 100%;
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
</uni-popup> </uni-popup>
</template> </template>
<script> <script>
import utils from '@/utils/utils'
export default { export default {
props: { props: {
// 弹窗类型:success, error, warning, info // 弹窗类型:success, error, warning, info
...@@ -84,9 +86,10 @@ export default { ...@@ -84,9 +86,10 @@ export default {
watch: { watch: {
buttons: { buttons: {
immediate: true, immediate: true,
deep: true,
handler(newVal) { handler(newVal) {
if (newVal) { if (newVal) {
this.buttonsList = JSON.parse(JSON.stringify(newVal)) this.buttonsList = utils.deepClone(newVal)
} }
} }
} }
...@@ -94,7 +97,7 @@ export default { ...@@ -94,7 +97,7 @@ export default {
created() { created() {
// 初始化时将buttons赋值给buttonsList // 初始化时将buttons赋值给buttonsList
this.buttonsList = JSON.parse(JSON.stringify(this.buttons)) this.buttonsList = utils.deepClone(this.buttons)
} }
} }
</script> </script>
...@@ -104,7 +107,7 @@ export default { ...@@ -104,7 +107,7 @@ export default {
background-color: #fff; background-color: #fff;
border-radius: toRpx(38); border-radius: toRpx(38);
width: toRpx(848); width: toRpx(848);
height: toRpx(660); min-height: toRpx(660);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
...@@ -124,10 +127,10 @@ export default { ...@@ -124,10 +127,10 @@ export default {
} }
.popup-title { .popup-title {
font-size: toRpx(40); font-size: toRpx(48);
font-weight: 500; font-weight: 500;
color: #333; color: #333;
margin-bottom: toRpx(16); margin-bottom: toRpx(24);
text-align: center; text-align: center;
} }
...@@ -135,7 +138,7 @@ export default { ...@@ -135,7 +138,7 @@ export default {
font-size: 28rpx; font-size: 28rpx;
color: #666; color: #666;
text-align: center; text-align: center;
margin-bottom: 32rpx; margin:0 64rpx 32rpx;
line-height: 1.5; line-height: 1.5;
} }
......
...@@ -48,6 +48,8 @@ ...@@ -48,6 +48,8 @@
:endDate="endDate" :endDate="endDate"
@confirm="confirmCalendar" @confirm="confirmCalendar"
:rangeValue="rangeValue" :rangeValue="rangeValue"
hideMask
showBottomBtn
/> />
</view> </view>
</template> </template>
......
<template>
<view class="page-box" :style="pageStyle">
<view
class="nav-bar"
:style="{ 'z-index': backProp.zindex || 9 }"
>
<template v-if="backProp.show">
<view
class="back"
@click="backProp.click"
>
<uni-icons
:type="backProp.iconType || 'left'"
:size="backProp.size || 20"
:color="backProp.color || '#000'"
></uni-icons>
</view>
</template>
{{ title }}
</view>
<slot></slot>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
props: {
pageStyle:{
type: String,
default: ''
},
backProp: {
type: Object,
default: () => {
return {
show: true,
click: () => {
uni.navigateBack({
delta: 1,
animationType: 'pop-out',
animationDuration: 100
})
}
}
}
},
title: {
type: String,
default: ''
}
},
name: '',
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.page-box {
position: relative;
width: 100vw;
height: 100vh;
background-image: url('@/assets/images/common/page-bg.webp');
background-size: 100%;
.nav-bar {
position: fixed;
width: 100%;
height: toRpx(96);
left: 0;
top: toRpx(48);
text-align: center;
font-weight: 700;
font-size: toRpx(32);
color: #1a1a1a;
line-height: toRpx(96);
.back {
position: absolute;
left: 0;
top: 0;
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -62,7 +62,7 @@ const evaluationDomain = { ...@@ -62,7 +62,7 @@ const evaluationDomain = {
ip: 'http://192.168.1.221:5003', ip: 'http://192.168.1.221:5003',
// ip: 'http://192.168.2.80:8558', // ip: 'http://192.168.2.80:8558',
dev: 'http://gsc.dev.glsx.com.cn', dev: 'http://gsc.dev.glsx.com.cn',
beta: 'https://dj.beta.glsx.com.cn', //预发布 appid: wx9f91c1ec493eb425 beta: 'https://gsc.beta.glsx.com.cn', //预发布 appid: wx9f91c1ec493eb425
uat: 'http://gsc.test.glsx.com.cn', //测试 appid: wxe10067a63c1856ac uat: 'http://gsc.test.glsx.com.cn', //测试 appid: wxe10067a63c1856ac
prod: 'https://gsc.glsx.com.cn', prod: 'https://gsc.glsx.com.cn',
pet: 'https://cdptest.glsx.com.cn' //压测 appid: wx7ce755e425603084 pet: 'https://cdptest.glsx.com.cn' //压测 appid: wx7ce755e425603084
......
...@@ -16,12 +16,14 @@ import wnCanvas from './components/Canvas/wn-canvas' ...@@ -16,12 +16,14 @@ import wnCanvas from './components/Canvas/wn-canvas'
import UpdateBox from './components/UpdateBox' import UpdateBox from './components/UpdateBox'
import webView from './components/WebView' import webView from './components/WebView'
import uView from 'uview-ui' import uView from 'uview-ui'
import PageComponent from './components/PageComponent'
Vue.use(uView) Vue.use(uView)
Vue.use(webView) Vue.use(webView)
Vue.component('GlsxImage', GlsxImage) Vue.component('GlsxImage', GlsxImage)
Vue.component('MessageBox', MessageBox) Vue.component('MessageBox', MessageBox)
Vue.component('wnCanvas', wnCanvas) Vue.component('wnCanvas', wnCanvas)
Vue.component('UpdateBox', UpdateBox) Vue.component('UpdateBox', UpdateBox)
Vue.component('PageComponent', PageComponent)
Vue.config.productionTip = false Vue.config.productionTip = false
App.mpType = 'app' App.mpType = 'app'
// Vue.prototype.$ossDomain = config.OSS_DOMAIN // Vue.prototype.$ossDomain = config.OSS_DOMAIN
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"name" : "展业助手", "name" : "展业助手",
"appid" : "__UNI__D3BD3DF", "appid" : "__UNI__D3BD3DF",
"description" : "", "description" : "",
"versionName" : "2.17.0", "versionName" : "2.17.1",
"versionCode" : "2170", "versionCode" : "2171",
"transformPx" : false, "transformPx" : false,
"sassImplementationName" : "node-sass", "sassImplementationName" : "node-sass",
/* 5+App特有相关 */ /* 5+App特有相关 */
......
...@@ -238,6 +238,18 @@ ...@@ -238,6 +238,18 @@
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},
{
"path": "pages/usedCar/deliveryManagement/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/usedCar/deliveryManagement/detail",
"style": {
"navigationStyle": "custom"
}
} }
], ],
"globalStyle": { "globalStyle": {
......
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
customerName: customer.customerName customerName: customer.customerName
} }
this.orderObj.carBrand = `${customer.carBrand}-${customer.carChildsBrandName}-${customer.carSeriesName}` this.orderObj.carBrand = customer.carBrandId ? `${customer.carBrand}-${customer.carChildsBrandName}-${customer.carSeriesName}` : ''
// 更新表单状态 // 更新表单状态
const updateFormCell = (formIndex, fieldName, value) => { const updateFormCell = (formIndex, fieldName, value) => {
...@@ -770,7 +770,7 @@ export default { ...@@ -770,7 +770,7 @@ export default {
const cell = this.formList[2].find(item => item.value === key) const cell = this.formList[2].find(item => item.value === key)
if (cell) cell.hidden = arrMap[key].length === 0 if (cell) cell.hidden = arrMap[key].length === 0
}) })
console.log('this.formList', this.formList)
const subOrderList = this.subOrderList || [] const subOrderList = this.subOrderList || []
console.log('subOrderList', subOrderList) console.log('subOrderList', subOrderList)
let chooseList = [] let chooseList = []
......
...@@ -389,16 +389,16 @@ export default { ...@@ -389,16 +389,16 @@ export default {
this.warrantyCardList.push(warrantyItem) this.warrantyCardList.push(warrantyItem)
} }
// 膜类商品 并且服务商开通了使用膜卷号配置 不走签名流程 // 膜类商品 并且服务商开通了使用膜卷号配置 不走签名流程
if (this.baseConfigData?.membraneTypeList?.includes(e?.upgradeGoodsType) && this.isUseFilmRoll && !this.signatureSwitch) { // if (this.baseConfigData?.membraneTypeList?.includes(e?.upgradeGoodsType) && this.isUseFilmRoll && !this.signatureSwitch) {
let result = await api.getfilmRollNoByGoods({ // let result = await api.getfilmRollNoByGoods({
upgradeGoodsId: e.upgradeGoodsId, // upgradeGoodsId: e.upgradeGoodsId,
yqMerchantId: data?.sellerMerchantId, // yqMerchantId: data?.sellerMerchantId,
merchantId: data?.merchantId // merchantId: data?.merchantId
}) // })
e.filmNumberData = result?.data || [] // e.filmNumberData = result?.data || []
// 仅配置一个膜卷号 自动选中 // // 仅配置一个膜卷号 自动选中
if (!e.filmRollNo && e.filmNumberData?.length == 1) e.filmRollNo = e.filmNumberData[0] // if (!e.filmRollNo && e.filmNumberData?.length == 1) e.filmRollNo = e.filmNumberData[0]
} // }
} }
if (data.packageGoodsList) { if (data.packageGoodsList) {
......
...@@ -4,44 +4,30 @@ ...@@ -4,44 +4,30 @@
<view class="shop-item" v-for="(item, index) in list" :key="index"> <view class="shop-item" v-for="(item, index) in list" :key="index">
<view class="sprite-icon icon-blue-delete" @click="deleteGoods(index)"></view> <view class="sprite-icon icon-blue-delete" @click="deleteGoods(index)"></view>
<view class="right"> <view class="right">
<view class="shop-name">商品名称:{{ item.multipleSpecificationsGoods ? <view class="shop-name">商品名称:{{ item.multipleSpecificationsGoods ? item.multipleSpecificationsGoods.baseGoodsName : item.goods.goodsAlias || item.goods.upgradeGoodsName || item.goods.goodsInfo.goodsName }}</view>
item.multipleSpecificationsGoods.baseGoodsName : item.goods.goodsAlias || item.goods.upgradeGoodsName || <view class="alias" v-if="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods.goodsAlias">商品别名:{{ item.multipleSpecificationsGoods.goods.goodsAlias }}</view>
item.goods.goodsInfo.goodsName }}</view>
<view class="alias"
v-if="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods.goodsAlias">商品别名:{{
item.multipleSpecificationsGoods.goods.goodsAlias }}</view>
<view class="front-gear-box"> <view class="front-gear-box">
<view class="front-gear-input-box"> <view class="front-gear-input-box">
<template <template v-if="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods.specificationStr">
v-if="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods.specificationStr">
<view class="front-gear-label"> <view class="front-gear-label">
{{item.multipleSpecificationsGoods.goods.specificationStr}} {{ item.multipleSpecificationsGoods.goods.specificationStr }}
</view> </view>
</template> </template>
<template v-if="item.goods"> <template v-if="item.goods">
<template <template v-if="(item.goods.merchantGoodsPosition || item.goods.upgradeGoodsPosition) && (item.goods.goodsInfo.goodsType == 1 || item.goods.upgradeGoodsType == 1 || item.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.goods.upgradeGoodsType == baseConfigData.selfBuildFilmType)">
v-if="(item.goods.merchantGoodsPosition || item.goods.upgradeGoodsPosition) && (item.goods.goodsInfo.goodsType == 1 || item.goods.upgradeGoodsType == 1 || item.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.goods.upgradeGoodsType == baseConfigData.selfBuildFilmType)">
<view class="front-gear-label"> <view class="front-gear-label">
{{ formatPosition((item.goods.merchantGoodsPosition || item.goods.upgradeGoodsPosition), {{ formatPosition(item.goods.merchantGoodsPosition || item.goods.upgradeGoodsPosition, positionTypeList) }}
positionTypeList)}}
</view> </view>
</template> </template>
<template <template v-if="(item.goods.goodsInfo.goodsType == 1 || item.goods.upgradeGoodsType == 1) && !item.goods.merchantGoodsPosition && !item.goods.upgradeGoodsPosition">无部位属性</template>
v-if="(item.goods.goodsInfo.goodsType == 1 || item.goods.upgradeGoodsType == 1) && !item.goods.merchantGoodsPosition && !item.goods.upgradeGoodsPosition">无部位属性</template>
</template> </template>
<view class="front-gear-input"> <view class="front-gear-input">
<view class="unit">¥</view> <view class="unit">¥</view>
<template v-if="item.multipleSpecificationsGoods"> <template v-if="item.multipleSpecificationsGoods">
<input class="uni-input" type="digit" maxlength="9" placeholder="请输入价格" <input class="uni-input" type="digit" maxlength="9" :disabled="isDisabled" placeholder="请输入价格" placeholder-style="font-size: 14px" v-model="item.multipleSpecificationsGoods.goods.sellPrice" @blur="validatePrice($event, item, index)" />
placeholder-style="font-size: 14px"
v-model="item.multipleSpecificationsGoods.goods.sellPrice"
@blur="validatePrice($event, item, index)" />
</template> </template>
<template v-else> <template v-else>
<input class="uni-input" type="digit" maxlength="9" placeholder="请输入价格" <input class="uni-input" type="digit" :disabled="isDisabled" maxlength="9" placeholder="请输入价格" placeholder-style="font-size: 14px" v-model="item.goods.sellPrice" @blur="validatePrice($event, item, index)" />
placeholder-style="font-size: 14px"
v-model="item.goods.sellPrice"
@blur="validatePrice($event, item, index)" />
</template> </template>
<!-- <input class="uni-input" type="digit" maxlength="9" placeholder="请输入价格" <!-- <input class="uni-input" type="digit" maxlength="9" placeholder="请输入价格"
placeholder-style="font-size: 14px" placeholder-style="font-size: 14px"
...@@ -52,14 +38,10 @@ ...@@ -52,14 +38,10 @@
<view class="control"> <view class="control">
<view class="minus" @click="decreaseNumber(item)">-</view> <view class="minus" @click="decreaseNumber(item)">-</view>
<template v-if="item.multipleSpecificationsGoods"> <template v-if="item.multipleSpecificationsGoods">
<input class="uni-input control-input" type="number" maxlength="3" <input class="uni-input control-input" type="number" maxlength="3" v-model="item.multipleSpecificationsGoods.number" @blur="validateNumber($event, item)" />
v-model="item.multipleSpecificationsGoods.number"
@blur="validateNumber($event, item)" />
</template> </template>
<template v-else> <template v-else>
<input class="uni-input control-input" type="number" maxlength="3" <input class="uni-input control-input" type="number" maxlength="3" v-model="item.goods.number" @blur="validateNumber($event, item)" />
v-model="item.goods.number"
@blur="validateNumber($event, item)" />
</template> </template>
<!-- <input class="uni-input control-input" type="number" maxlength="3" <!-- <input class="uni-input control-input" type="number" maxlength="3"
:value="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods ? item.multipleSpecificationsGoods.goods.number : item.goods.number" :value="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods ? item.multipleSpecificationsGoods.goods.number : item.goods.number"
...@@ -88,6 +70,10 @@ export default { ...@@ -88,6 +70,10 @@ export default {
baseConfigData: { baseConfigData: {
type: Object, type: Object,
default: {} default: {}
},
isDisabled: {
type: Boolean,
default: false
} }
}, },
created() { created() {
...@@ -172,9 +158,7 @@ export default { ...@@ -172,9 +158,7 @@ export default {
} }
} else if (item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods) { } else if (item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods) {
// 多规格商品的最小价格检查 // 多规格商品的最小价格检查
if (item.multipleSpecificationsGoods.goods.validMinSellPrice === 'Y' && if (item.multipleSpecificationsGoods.goods.validMinSellPrice === 'Y' && item.multipleSpecificationsGoods.goods.minSellPrice && parseFloat(value) < parseFloat(item.multipleSpecificationsGoods.goods.minSellPrice)) {
item.multipleSpecificationsGoods.goods.minSellPrice &&
parseFloat(value) < parseFloat(item.multipleSpecificationsGoods.goods.minSellPrice)) {
console.log('最小值', item.multipleSpecificationsGoods.goods.minSellPrice) console.log('最小值', item.multipleSpecificationsGoods.goods.minSellPrice)
uni.showToast({ uni.showToast({
title: '单价不可低于商品最低价', title: '单价不可低于商品最低价',
......
...@@ -181,8 +181,8 @@ export default { ...@@ -181,8 +181,8 @@ export default {
width: toRpx(36); width: toRpx(36);
height: toRpx(36); height: toRpx(36);
position: absolute; position: absolute;
top: - toRpx(12); top: toMinusRpx(12);
right: - toRpx(12); right: toMinusRpx(12);
background: rgba(0, 0, 0, 0.6); background: rgba(0, 0, 0, 0.6);
border-radius: 50%; border-radius: 50%;
text-align: center; text-align: center;
......
...@@ -447,8 +447,7 @@ const DEFEAT_FORM_LIST = [ ...@@ -447,8 +447,7 @@ const DEFEAT_FORM_LIST = [
value: 'skuGoods', value: 'skuGoods',
type: 'select', type: 'select',
key: 'name', key: 'name',
addHtml: 'skuGoods', addHtml: 'skuGoods'
hidden: true
}, },
{ {
label: '收款方式', label: '收款方式',
......
...@@ -192,7 +192,8 @@ export default { ...@@ -192,7 +192,8 @@ export default {
} }
} }
.detail-right { .detail-right {
width: toRpx(1368); // width: toRpx(1368);
width: calc(100% - #{toRpx(832)});
height: 100%; height: 100%;
border-radius: toRpx(48); border-radius: toRpx(48);
background: #ffffff59; background: #ffffff59;
......
...@@ -605,7 +605,8 @@ export default { ...@@ -605,7 +605,8 @@ export default {
} }
.detail-right { .detail-right {
width: toRpx(1368); // width: toRpx(1368);
width: calc(100% - #{toRpx(832)});
height: 100%; height: 100%;
border-radius: toRpx(48); border-radius: toRpx(48);
background: #ffffff59; background: #ffffff59;
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
/> />
<GeneralPopup ref="calendarGeneralPopup" popupClass="calendarGeneralPopup" :showClose="false" :showTitle="false" @confirm="confirmCalendar"> <GeneralPopup ref="calendarGeneralPopup" popupClass="calendarGeneralPopup" :showClose="false" :showTitle="false" @confirm="confirmCalendar">
<template #content> <template #content>
<uni-calendar class="calendar" :showMonth="false" :date="defaultDate" :startDate="startDate" @change="calendarChange" /> <uni-calendar class="calendar" :showMonth="false" :date="defaultDate" :startDate="startDate" :endDate="endDate" @change="calendarChange" />
</template> </template>
</GeneralPopup> </GeneralPopup>
<GeneralPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false" :noTitle="true"> <GeneralPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false" :noTitle="true">
...@@ -1014,7 +1014,7 @@ export default { ...@@ -1014,7 +1014,7 @@ export default {
if (field.endDate) { if (field.endDate) {
this.endDate = dayjs().format('YYYY-MM-DD') this.endDate = dayjs().format('YYYY-MM-DD')
} else { } else {
this.endDate = '' this.endDate = '2039-5-20'
} }
this.$refs.calendarGeneralPopup this.$refs.calendarGeneralPopup
.open() .open()
......
...@@ -91,7 +91,7 @@ export default { ...@@ -91,7 +91,7 @@ export default {
text-align: center; text-align: center;
font-weight: 400; font-weight: 400;
font-size: toRpx(28); font-size: toRpx(28);
color: #1f2133; color: #292D33;
position: relative; position: relative;
margin-right: toRpx(16); margin-right: toRpx(16);
.text { .text {
...@@ -99,6 +99,7 @@ export default { ...@@ -99,6 +99,7 @@ export default {
text-align: center; text-align: center;
height: toRpx(96); height: toRpx(96);
padding: 0 toRpx(64); padding: 0 toRpx(64);
transition: all .15s;
.count { .count {
font-size: toRpx(24); font-size: toRpx(24);
} }
...@@ -121,18 +122,18 @@ export default { ...@@ -121,18 +122,18 @@ export default {
} }
.active { .active {
position: relative; position: relative;
font-weight: 700; font-weight: 500;
font-size: toRpx(32); font-size: toRpx(32);
color: #2c66f7; color: #3B73FF;
&::after { &::after {
content: ''; content: '';
position: absolute; position: absolute;
bottom: toRpx(16); bottom: toRpx(16);
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
width: toRpx(48); width: toRpx(40);
height: toRpx(8); height: toRpx(6);
background-color: #2c66f7; background-color: #3B73FF;
border-radius: toRpx(16); border-radius: toRpx(16);
} }
} }
...@@ -144,15 +145,15 @@ export default { ...@@ -144,15 +145,15 @@ export default {
position: absolute; position: absolute;
} }
.tab-first-right { .tab-first-right {
right: - toRpx(64); right: toMinusRpx(64);
position: absolute; position: absolute;
} }
.tab-second-right { .tab-second-right {
right: - toRpx(64); right: toMinusRpx(64);
position: absolute; position: absolute;
} }
.tab-second-left { .tab-second-left {
left: - toRpx(64); left: toMinusRpx(64);
position: absolute; position: absolute;
} }
} }
......
...@@ -68,7 +68,6 @@ ...@@ -68,7 +68,6 @@
</template> </template>
</view> </view>
</view> </view>
<view class="upload-box mb-32" v-if="hasCertificateImage"> <view class="upload-box mb-32" v-if="hasCertificateImage">
<view class="tab-panel-title">证件资料</view> <view class="tab-panel-title">证件资料</view>
<view class="upload-grid two-columns"> <view class="upload-grid two-columns">
...@@ -94,7 +93,6 @@ ...@@ -94,7 +93,6 @@
</template> </template>
</view> </view>
</view> </view>
<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">
...@@ -116,7 +114,6 @@ ...@@ -116,7 +114,6 @@
</view> </view>
</view> </view>
</view> </view>
<view class="upload-box mb-32" v-if="hasAnyReportImage"> <view class="upload-box mb-32" v-if="hasAnyReportImage">
<view class="tab-panel-title">车辆检测报告</view> <view class="tab-panel-title">车辆检测报告</view>
<view class="upload-grid"> <view class="upload-grid">
...@@ -134,7 +131,6 @@ ...@@ -134,7 +131,6 @@
</view> </view>
</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">
...@@ -337,7 +333,6 @@ ...@@ -337,7 +333,6 @@
<template v-for="(item, index) in contractItems"> <template v-for="(item, index) in contractItems">
<view v-if="getFieldValue(detailsInfo, item.key)" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }]"> <view v-if="getFieldValue(detailsInfo, item.key)" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }]">
<view class="title-label-see mr-16">{{ item.label }}</view> <view class="title-label-see mr-16">{{ item.label }}</view>
<view class="flex-1"> <view class="flex-1">
<view class="pdf-box flex align-center justify-between" @click.stop="pdfPreview(getFieldValue(detailsInfo, item.key))"> <view class="pdf-box flex align-center justify-between" @click.stop="pdfPreview(getFieldValue(detailsInfo, item.key))">
<view class="flex align-center"> <view class="flex align-center">
...@@ -396,7 +391,6 @@ ...@@ -396,7 +391,6 @@
<image @click.stop="previewMedia(url, 2)" v-for="(url, idx) in splitMediaUrls(item.fieldBeforeValue)" :key="idx" :src="url + videoProcess" mode="aspectFill" style="margin-right: 10px; width: 80px; height: 80px"></image> <image @click.stop="previewMedia(url, 2)" v-for="(url, idx) in splitMediaUrls(item.fieldBeforeValue)" :key="idx" :src="url + videoProcess" mode="aspectFill" style="margin-right: 10px; width: 80px; height: 80px"></image>
</view> </view>
</view> </view>
<view class="tableCell"> <view class="tableCell">
<view v-if="item.fieldType == 'text'"> <view v-if="item.fieldType == 'text'">
{{ item.fieldAfterValue || '-' }} {{ item.fieldAfterValue || '-' }}
...@@ -428,7 +422,6 @@ ...@@ -428,7 +422,6 @@
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import MediaInfo from './components/MediaInfo' import MediaInfo from './components/MediaInfo'
import { fileSuibtype } from './evaluationFormMap' import { fileSuibtype } from './evaluationFormMap'
...@@ -610,7 +603,6 @@ export default { ...@@ -610,7 +603,6 @@ export default {
{ key: 13, label: '仪表盘', maxCount: 1, accept: 'image' }, { key: 13, label: '仪表盘', maxCount: 1, accept: 'image' },
{ key: 14, label: '后排座椅', maxCount: 1, accept: 'image' }, { key: 14, label: '后排座椅', maxCount: 1, accept: 'image' },
{ key: 15, label: '中控台全景', maxCount: 1, accept: 'image' }, { key: 15, label: '中控台全景', maxCount: 1, accept: 'image' },
{ key: 16, label: '右后45度', maxCount: 1, accept: 'image' }, { key: 16, label: '右后45度', maxCount: 1, accept: 'image' },
{ key: 17, label: '铭牌', maxCount: 1, accept: 'image' } { key: 17, label: '铭牌', maxCount: 1, accept: 'image' }
], ],
...@@ -750,7 +742,6 @@ export default { ...@@ -750,7 +742,6 @@ export default {
// 格式化显示值 // 格式化显示值
formatValue(item, data) { formatValue(item, data) {
const rawValue = this.getFieldValue(data, item.key) const rawValue = this.getFieldValue(data, item.key)
if (item.formatter && typeof item.formatter === 'function') { if (item.formatter && typeof item.formatter === 'function') {
return item.formatter(rawValue, data) return item.formatter(rawValue, data)
} }
...@@ -758,7 +749,6 @@ export default { ...@@ -758,7 +749,6 @@ export default {
return this[item.map][rawValue] || rawValue return this[item.map][rawValue] || rawValue
} }
console.log('rawValue:', rawValue, item.key, item) console.log('rawValue:', rawValue, item.key, item)
return rawValue === 0 ? 0 : item.type === 'image' || item.accept === 'video' ? rawValue : rawValue || '-' return rawValue === 0 ? 0 : item.type === 'image' || item.accept === 'video' ? rawValue : rawValue || '-'
}, },
getImageBySubtype(subtype) { getImageBySubtype(subtype) {
...@@ -785,7 +775,6 @@ export default { ...@@ -785,7 +775,6 @@ export default {
}, },
pdfPreview(contractNo) { pdfPreview(contractNo) {
console.log('contractNo:', contractNo) console.log('contractNo:', contractNo)
uni.$api.evaluationApi uni.$api.evaluationApi
.viewOnlineContract({ .viewOnlineContract({
contractNo: contractNo contractNo: contractNo
...@@ -818,13 +807,11 @@ export default { ...@@ -818,13 +807,11 @@ export default {
background-size: 100%; background-size: 100%;
padding: toRpx(160) toRpx(64) toRpx(48); padding: toRpx(160) toRpx(64) toRpx(48);
box-sizing: border-box; box-sizing: border-box;
.detail-content { .detail-content {
width: 100%; width: 100%;
height: calc(100% - #{toRpx(64)}); height: calc(100% - #{toRpx(64)});
box-sizing: border-box; box-sizing: border-box;
overflow: auto; overflow: auto;
.box-class { .box-class {
height: 100%; height: 100%;
background: #ffffff59; background: #ffffff59;
...@@ -846,7 +833,6 @@ export default { ...@@ -846,7 +833,6 @@ export default {
background: linear-gradient(0deg, #94c2ff00 0%, #5294ff 100%); background: linear-gradient(0deg, #94c2ff00 0%, #5294ff 100%);
opacity: 0.15; opacity: 0.15;
} }
&::before { &::before {
content: ''; content: '';
position: absolute; position: absolute;
...@@ -920,7 +906,6 @@ export default { ...@@ -920,7 +906,6 @@ export default {
gap: toRpx(28); gap: toRpx(28);
border-radius: toRpx(16); border-radius: toRpx(16);
background: #ffffff; background: #ffffff;
box-sizing: border-box; box-sizing: border-box;
.title-label-see { .title-label-see {
width: toRpx(168); width: toRpx(168);
...@@ -997,7 +982,6 @@ export default { ...@@ -997,7 +982,6 @@ export default {
} }
} }
} }
.empty-content { .empty-content {
text-align: center; text-align: center;
padding: toRpx(100) 0; padding: toRpx(100) 0;
...@@ -1019,7 +1003,6 @@ export default { ...@@ -1019,7 +1003,6 @@ export default {
.upload-grid.two-columns { .upload-grid.two-columns {
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
} }
.upload-item-container { .upload-item-container {
align-items: flex-start; align-items: flex-start;
// margin-bottom: toRpx(32); // margin-bottom: toRpx(32);
...@@ -1062,7 +1045,6 @@ export default { ...@@ -1062,7 +1045,6 @@ export default {
width: 100%; width: 100%;
} }
} }
.upload-item { .upload-item {
height: toRpx(240); height: toRpx(240);
border-radius: toRpx(12); border-radius: toRpx(12);
...@@ -1074,7 +1056,6 @@ export default { ...@@ -1074,7 +1056,6 @@ export default {
background: #f5f8ff; background: #f5f8ff;
width: toRpx(240); width: toRpx(240);
} }
.upload-placeholder { .upload-placeholder {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -1082,12 +1063,10 @@ export default { ...@@ -1082,12 +1063,10 @@ export default {
justify-content: center; justify-content: center;
color: #999999; color: #999999;
} }
.upload-text { .upload-text {
margin-top: toRpx(12); margin-top: toRpx(12);
font-size: toRpx(24); font-size: toRpx(24);
} }
/* 已上传媒体样式 */ /* 已上传媒体样式 */
.uploaded-media-container { .uploaded-media-container {
position: relative; position: relative;
...@@ -1096,19 +1075,16 @@ export default { ...@@ -1096,19 +1075,16 @@ export default {
overflow: hidden; overflow: hidden;
width: toRpx(240); width: toRpx(240);
} }
.uploaded-media { .uploaded-media {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
/* 视频容器样式 */ /* 视频容器样式 */
.video-container { .video-container {
position: relative; position: relative;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
/* 视频播放图标 */ /* 视频播放图标 */
.video-play-icon { .video-play-icon {
position: absolute; position: absolute;
...@@ -1195,14 +1171,12 @@ export default { ...@@ -1195,14 +1171,12 @@ export default {
color: #eb4e4e; color: #eb4e4e;
background: #fdeded; background: #fdeded;
} }
.tableBox { .tableBox {
width: 100%; width: 100%;
border-radius: toRpx(16); border-radius: toRpx(16);
overflow: hidden; overflow: hidden;
box-sizing: border-box; box-sizing: border-box;
} }
.tableHeader { .tableHeader {
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
...@@ -1212,7 +1186,6 @@ export default { ...@@ -1212,7 +1186,6 @@ export default {
font-size: toRpx(28); font-size: toRpx(28);
color: #333333; color: #333333;
} }
.tableHeader > view { .tableHeader > view {
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 600; font-weight: 600;
...@@ -1221,7 +1194,6 @@ export default { ...@@ -1221,7 +1194,6 @@ export default {
height: toRpx(88); height: toRpx(88);
line-height: toRpx(88); line-height: toRpx(88);
} }
.tableItem { .tableItem {
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
...@@ -1230,13 +1202,11 @@ export default { ...@@ -1230,13 +1202,11 @@ export default {
box-sizing: border-box; box-sizing: border-box;
border-bottom: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0;
} }
.tableItem > view { .tableItem > view {
font-size: toRpx(26); font-size: toRpx(26);
color: #666666; color: #666666;
text-align: left; text-align: left;
} }
.tableRow { .tableRow {
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
...@@ -1247,7 +1217,6 @@ export default { ...@@ -1247,7 +1217,6 @@ export default {
padding: toRpx(20) toRpx(16); padding: toRpx(20) toRpx(16);
font-size: toRpx(28); font-size: toRpx(28);
color: #666666; color: #666666;
background: #f9fafc; background: #f9fafc;
text-align: center; text-align: center;
word-break: break-all; word-break: break-all;
...@@ -1264,7 +1233,6 @@ export default { ...@@ -1264,7 +1233,6 @@ export default {
word-break: break-all; word-break: break-all;
white-space: normal; white-space: normal;
} }
// 表格空状态样式 // 表格空状态样式
.empty-table { .empty-table {
padding: toRpx(60) 0; padding: toRpx(60) 0;
......
<template>
<view class="step-1">
<view class="item flex">
<view class="sprite-icon icon-delivery-step-1"></view>
<view class="info">
客户到店确认
<view class="des">等待客户到店后操作</view>
</view>
<view
class="btn flex"
@click="confirmArrive"
>确认到店</view>
</view>
<view class="tips">
<view class="title flex">
<view class="icon">
<uni-icons
type="info"
:size="16"
color="#F59619"
></uni-icons>
</view>交付要点
</view>
<view class="text">核实车款: 引导客户现场完成尾款支付,并确认款项到账。</view>
<view class="text">核验人车: 核对客户身份信息,并与客户共同确认车辆信息及实际车况。</view>
<view class="text">交接资料: 清点并交付车辆登记证、行驶证、车钥匙等重要物品。</view>
<view class="text">签署确认: 引导客户签署《车辆交付确认书》,完成交付流程。 </view>
</view>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
props: {
step: [String, Number],
detail: {
type: Object,
default: () => {
return {}
}
}
},
name: '',
data () {
return {
}
},
mounted () {
},
methods: {
async confirmArrive () {
try {
uni.$track.add({
eventCode: 'app_delivery_arrive_shop'
})
uni.showLoading({ title: '确定中...', mask: true })
const { step, detail } = this,
{ deliveryOrderId } = detail,
{ data: { code, msg } } = await uni.$api.usedCarApi.confirmArrive({
deliveryOrderId
})
uni.hideLoading()
if (code == 0) {
this.$emit('comfirm', step)
this.$emit('refreshLog')
}
else throw msg
} catch (error) {
uni.hideLoading()
if (error) this.$emit('openError', error)
}
}
}
}
</script>
<style scoped lang='scss'>
.step-1 {
margin: 0 toRpx(48);
.item {
height: toRpx(144);
border-radius: toRpx(16);
background: #ffffff;
margin-bottom: toRpx(24);
box-sizing: border-box;
padding: 0 toRpx(32);
.sprite-icon {
zoom: 2;
}
.info {
margin-left: toRpx(24);
color: #333333;
font-size: toRpx(28);
font-weight: 500;
line-height: toRpx(40);
.des {
color: #666666;
font-size: toRpx(26);
font-weight: 400;
line-height: toRpx(36);
margin-top: toRpx(4);
}
}
.btn {
margin-left: auto;
width: toRpx(192);
height: toRpx(64);
border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
font-size: toRpx(28);
font-weight: 500;
justify-content: center;
}
}
.tips {
height: toRpx(272);
border-radius: toRpx(16);
background: #fef4e8;
box-sizing: border-box;
padding: toRpx(24) toRpx(32) toRpx(24) toRpx(72);
color: #f59619;
font-size: toRpx(26);
line-height: toRpx(44);
.title {
font-weight: 500;
line-height: toRpx(36);
margin-bottom: toRpx(12);
position: relative;
}
.icon {
position: absolute;
right: calc(100% + #{toRpx(8)});
top: 50%;
transform: translateY(-50%) rotate(180deg);
width: toRpx(32);
height: toRpx(32);
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="step-2">
<view class="upload-box box">
<view class="title">
交付照片
<view class="required">*</view>
</view>
<view class="tips">完成交付图片上传,拍摄需包含车辆图片(铭牌、45%角)、提车人照片,及提车人身份证照片。</view>
<view class="img-list flex">
<template v-if="imgList.length < 10">
<view class="img-item upload flex" @click="chooseImage">
<uni-icons type="plusempty" :size="22" color="#347BFF" class="icon"></uni-icons>
{{ imgList.length }}/10
</view>
</template>
<template v-for="(i, index) in imgList">
<view class="img-item" :key="index">
<image :src="i" class="img" mode="aspectFill" @click="previewMedia(i, 1)" />
<view class="del flex">
<uni-icons type="closeempty" :size="10" color="#fff" @click="delImage(index)"></uni-icons>
</view>
</view>
</template>
</view>
<view class="img-tips">单个文件不超过10M,最多可上传10张。</view>
</view>
<view class="remark-box box">
<view class="title">交付备注</view>
<view class="remark">
<textarea placeholder="请描述交付过程备注信息" placeholder-class="placeholder" :value="remark" @input="remark = $event.detail.value" :maxlength="200" class="textarea"></textarea>
<view class="limit">{{ remark.length }}/200</view>
</view>
</view>
<view class="btn-box box flex">
<view class="sprite-icon icon-delivery-step-2"></view>
<view class="info">
客户提车确认
<view class="des">请让客户在拍卖小程序完成交割单签署,签署完成后才可点击确认提车。</view>
</view>
<view :class="['btn flex', { disabled: !imgList.length }]" @click="comfirm">确认提车</view>
</view>
<view class="block"></view>
</view>
</template>
<script type="text/ecmascript-6">
import { uploadFile } from '@/utils/ossUpload.js'
import permision from '@/js_sdk/wa-permission/permission.js'
const MAX_IMAGE_SIZE = 10 * 1024 * 1024, // 图片最大10MB
MAX_IMG_COUNT = 10 // 最大图片数量
export default {
name: '',
props: {
step: [String, Number],
detail: {
type: Object,
default: () => {
return {}
}
}
},
data() {
return {
imgList: [],
remark: ''
}
},
mounted() {
},
methods: {
delImage(index) {
this.imgList.splice(index, 1)
},
async chooseImage() {
const { imgList } = this,
_this = this
try {
// #ifdef APP-PLUS
const photoLibrary = await permision.requestAndroidPermission('android.permission.READ_EXTERNAL_STORAGE')
const camera = await permision.requestAndroidPermission('android.permission.CAMERA')
const isOnline = await uni.$isNetWork()
if (photoLibrary != 1) throw '您的设备不支持相册功能或未授权访问,请前往设置中开启相册权限'
if (camera != 1) throw '您的设备不支持摄像头功能或未授权访问,请前往设置中开启摄像头权限'
if (!isOnline) throw '当前无网络连接,请连接网络后重试'
// #endif
uni.chooseImage({
count: MAX_IMG_COUNT - imgList.length,
async success(res) {
for (const file of res.tempFiles) {
if (file.size > MAX_IMAGE_SIZE) {
return uni.showToast({
title: '图片上传最大10MB',
icon: 'none'
})
}
}
uni.showLoading({ title: '上传中...', mask: true })
for (let i = 0; i < res.tempFilePaths.length; i++) {
const url = await uploadFile(res.tempFiles[i], res.tempFilePaths[i])
_this.imgList.push(url)
}
if (_this.imgList.length >= res.tempFilePaths.length) uni.hideLoading()
},
fail(err) {
console.log(err)
uni.hideLoading()
if (err.errMsg.indexOf('cancel') === -1) {
return uni.showToast({
title: '图片上传失败',
icon: 'none'
})
}
},
})
} catch (error) {
console.log(error)
uni.hideLoading()
return uni.showToast({
title: error,
icon: 'none'
})
}
},
async comfirm() {
try {
let { imgList, step, remark, detail } = this,
{ deliveryOrderId } = detail,
confirmImages = ''
if (!imgList.length) return
confirmImages = imgList.join(',')
uni.showLoading({ title: '提交中...', mask: true })
uni.$track.add({
eventCode: 'app_delivery_submit_detail'
})
const { data: { code, msg } } = await uni.$api.usedCarApi.confirmDelivery({
deliveryOrderId,
confirmImages,
remark
})
uni.hideLoading()
if (code == 0) {
this.$emit('comfirm', step)
this.$emit('refreshLog')
}
else throw msg
} catch (error) {
console.log(error)
uni.hideLoading()
if (error) this.$emit('openError', error)
}
},
previewMedia(media, type) {
const url = `/pages/boutique/preview?tabName=预览&sourceType=${type}&detailUrl=${media}`
uni.navigateTo({
url: `${url}`
})
}
}
}
</script>
<style scoped lang="scss">
.step-2 {
position: relative;
z-index: 2;
margin: 0 toRpx(48);
.box {
border-radius: toRpx(16);
background: #ffffff;
margin-bottom: toRpx(24);
padding: 0 toRpx(32);
.title {
color: #333333;
font-size: toRpx(28);
font-weight: 500;
display: flex;
line-height: toRpx(40);
padding-top: toRpx(28);
.required {
color: #f24724;
font-size: toRpx(28);
margin-left: toRpx(8);
}
}
}
.upload-box {
.tips {
margin: toRpx(4) 0 toRpx(28);
color: #999999;
font-size: toRpx(26);
line-height: toRpx(36);
}
.img-list {
flex-wrap: wrap;
gap: toRpx(24);
.upload {
background: #f5f8ff;
flex-direction: column;
justify-content: center;
color: #999999;
font-size: toRpx(26);
.icon {
font-weight: 700;
margin-bottom: toRpx(22);
}
}
.img-item {
width: toRpx(224);
height: toRpx(224);
border-radius: toRpx(12);
position: relative;
overflow: hidden;
.img {
width: 100%;
height: 100%;
}
.del {
position: absolute;
width: toRpx(32);
height: toRpx(32);
background: #00000080;
border-radius: 100%;
top: toRpx(8);
right: toRpx(4);
justify-content: center;
}
}
}
.img-tips {
color: #999999;
font-size: toRpx(24);
padding: toRpx(16) 0 toRpx(28);
line-height: toRpx(36);
}
}
.remark-box {
padding-bottom: toRpx(28);
.title {
padding-bottom: toRpx(24);
}
.remark {
height: toRpx(200);
border-radius: toRpx(16);
background: #fafafa;
box-sizing: border-box;
padding: toRpx(24) 0 toRpx(24) toRpx(24);
position: relative;
.textarea {
height: toRpx(132);
width: 100%;
color: #333333;
font-size: toRpx(28);
}
.limit {
position: absolute;
bottom: toRpx(8);
right: toRpx(8);
color: #999999;
font-size: toRpx(28);
line-height: toRpx(44);
}
}
.placeholder {
color: #999999;
font-size: toRpx(28);
}
}
.btn-box {
box-sizing: border-box;
height: toRpx(144);
.info {
margin-left: toRpx(24);
color: #333333;
font-size: toRpx(28);
font-weight: 500;
line-height: toRpx(40);
.des {
color: #666666;
font-size: toRpx(26);
font-weight: 400;
line-height: toRpx(36);
margin-top: toRpx(4);
}
}
.btn {
margin-left: auto;
width: toRpx(192);
height: toRpx(64);
border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
font-size: toRpx(28);
font-weight: 500;
justify-content: center;
}
.disabled {
opacity: 0.5;
}
}
.block {
width: 100%;
height: toRpx(24);
}
}
</style>
<template>
<view class="step-3">
<view class="upload-box box">
<view class="title">
交付照片
</view>
<view class="img-list flex">
<template v-for="(i, index) in detail.imgList">
<view
class="img-item"
:key="index"
>
<image
:src="i"
class="img"
mode="aspectFill"
@click="previewMedia(i, 1)"
/>
</view>
</template>
</view>
</view>
<view class="remark-box box">
<view class="title">交付备注</view>
<view class="remark">
<rich-text :nodes="detail.remark || '-'"></rich-text>
</view>
</view>
<view class="btn-box box flex">
<view class="sprite-icon icon-delivery-step-2"></view>
<view class="info">
客户提车确认
<view class="des">提车时间:{{detail.pickUpTime}}</view>
</view>
<view class="btn flex">已提车</view>
</view>
</view>
</template>
<script type="text/ecmascript-6">
export default {
name: '',
props: {
step: [String, Number],
detail: {
type: Object,
default: () => {
return {}
}
}
},
data () {
return {
}
},
mounted () {
},
methods: {
previewMedia (media, type) {
const url = `/pages/boutique/preview?tabName=预览&sourceType=${type}&detailUrl=${media}`
uni.navigateTo({
url: `${url}`
})
}
}
}
</script>
<style scoped lang="scss">
.step-3 {
margin: 0 toRpx(48);
.box {
border-radius: toRpx(16);
background: #ffffff;
margin-bottom: toRpx(24);
padding: 0 toRpx(32);
.title {
color: #333333;
font-size: toRpx(28);
font-weight: 500;
display: flex;
line-height: toRpx(40);
padding-top: toRpx(28);
}
}
.upload-box {
padding-bottom: toRpx(28);
.title {
margin-bottom: toRpx(28);
}
.img-list {
flex-wrap: wrap;
gap: toRpx(24);
.img-item {
width: toRpx(224);
height: toRpx(224);
border-radius: toRpx(12);
position: relative;
overflow: hidden;
.img {
width: 100%;
height: 100%;
}
.del {
position: absolute;
width: toRpx(32);
height: toRpx(32);
background: #00000080;
border-radius: 100%;
top: toRpx(8);
right: toRpx(4);
justify-content: center;
}
}
}
.img-tips {
color: #999999;
font-size: toRpx(24);
padding: toRpx(16) 0 toRpx(28);
line-height: toRpx(36);
}
}
.remark-box {
padding-bottom: toRpx(28);
.remark {
margin-top: toRpx(24);
max-height: toRpx(220);
box-sizing: border-box;
color: #333333;
font-size: toRpx(28);
overflow-y: auto;
line-height: toRpx(44);
word-break: break-all;
}
.placeholder {
color: #999999;
font-size: toRpx(28);
}
}
.btn-box {
box-sizing: border-box;
height: toRpx(144);
margin-bottom: 0;
.info {
margin-left: toRpx(24);
color: #333333;
font-size: toRpx(28);
font-weight: 500;
line-height: toRpx(40);
.des {
color: #666666;
font-size: toRpx(26);
font-weight: 400;
line-height: toRpx(36);
margin-top: toRpx(4);
}
}
.btn {
margin-left: auto;
width: toRpx(192);
height: toRpx(64);
border-radius: toRpx(48);
color: #999ea8;
background: #f0f1f5;
font-size: toRpx(28);
font-weight: 500;
justify-content: center;
}
.disabled {
opacity: 0.5;
}
}
}
</style>
<template>
<view class="steps-box flex common-title">
<template v-for="(item, index) in list">
<view
:class="['step-item flex',{
'active-item': index <= stepNum
}]"
:key="index"
>
<template v-if="index != 0">
<view class="line"></view>
</template>
<view class="serial-num flex">
<view class="num flex">
<template v-if="index >= stepNum">
{{index + 1}}
</template>
<template v-if="index < stepNum">
<uni-icons
type="checkmarkempty"
:size="12"
color="#fff"
></uni-icons>
</template>
</view>
</view>
{{item}}
</view>
</template>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
props: {
step: [String, Number],
list: Array
},
name: '',
data () {
return {
}
},
computed: {
stepNum () {
return this.step - 1
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.steps-box {
padding: toRpx(40) 0 toRpx(24) toRpx(54);
margin-bottom: toRpx(8);
.step-item {
color: #999;
font-size: toRpx(32);
font-weight: 500;
height: toRpx(56);
.serial-num {
width: toRpx(46);
height: toRpx(46);
border-radius: 100%;
box-sizing: border-box;
margin-right: toRpx(12);
position: relative;
border: toRpx(3) solid #b1b1b1;
justify-content: center;
.num {
width: 100%;
height: 100%;
border: toRpx(3) solid #fff;
background: #b1b1b1;
color: #fff;
border-radius: 100%;
justify-content: center;
font-size: toRpx(28);
font-weight: 700;
}
}
.line {
width: toRpx(64);
border-top: toRpx(2) dashed #d6d6d6;
border-bottom: toRpx(2) dashed #d6d6d6;
margin: 0 toRpx(32);
}
}
.active-item {
color: #4673ff;
.serial-num {
border-color: #4673ff;
box-shadow: toRpx(3) toRpx(3) toRpx(4) #d7e3ff;
.num {
background: #4673ff;
}
}
.line {
border-color: #4673ff;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="delivery-steps-box">
<template v-if="detail.id">
<steps
:step="step"
:list="stepList"
/>
</template>
<view class="step-component">
<template v-for="(i,index) in stepList">
<view
:class="['step-view',
{'animation-view': viewClass(index) && !viewComplete[index + 1]},
{'show-view':index + 1 == step}]"
:key="index"
>
<component
:is="'Step' + (index + 1)"
:step="step"
@comfirm="comfirm"
@openError="$emit('openError',$event)"
:detail="detail"
@refreshLog="$emit('refreshLog')"
></component>
</view>
</template>
</view>
</view>
</template>
<script type='text/ecmascript-6'>
import Steps from './Steps.vue'
import Step1 from './Step1'
import Step2 from './Step2'
import Step3 from './Step3'
export default {
components: {
Steps,
Step1,
Step2,
Step3
},
props: {
detail: {
type: Object,
default: () => {
return {}
}
},
},
watch: {
detail: {
handler (val) {
this.step = Number(val.orderStatus) + 1
},
deep: true
}
},
name: '',
data () {
return {
step: -1,
stepList: [
'待交付',
'交付中',
'交付完成'
],
viewComplete: {
1: false,
2: false,
3: false
}
}
},
mounted () {
},
methods: {
comfirm (step) {
const { id } = this.detail
this.step = step + 1
if (this.step == 3) this.$emit('refresh', id)
},
viewClass (index) {
setTimeout(() => {
this.viewComplete[this.step] = true
}, 1e3)
return index + 1 == this.step
}
}
}
</script>
<style scoped lang='scss'>
.delivery-steps-box {
height: 100%;
.step-component {
height: calc(100% - #{toRpx(128)});
overflow-y: auto;
position: relative;
.step-view {
position: absolute; //验证
width: 100%;
height: 100%;
z-index: -1;
top: 0;
left: 0;
visibility: hidden;
}
.animation-view {
position: absolute;
z-index: 1;
visibility: visible;
animation: to-right 0.15s forwards;
}
.show-view {
z-index: 1;
visibility: visible;
}
@keyframes to-right {
0% {
left: 100%;
}
100% {
left: 0;
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="detail-info-box">
<template v-if="detail.id">
<view class="pay-info box">
<view class="title">财务信息</view>
<view class="item">
<view class="label">付款状态</view>
<view :class="['value await',{'success':detail.paymentStatus == 1}]">{{PAYMENT_STATUS[detail.paymentStatus]}}</view>
</view>
<template v-if="detail.paymentStatus != 1">
<view class="tips">
<view class="icon">
<uni-icons
type="info"
:size="16"
color="#F59619"
></uni-icons>
</view>
中拍人现场看车后支付,请门店人员确认客户完成车款支付。
</view>
</template>
</view>
<view class="car-info box">
<view class="title">车辆与客户信息</view>
<template v-for="(i,index) in carInfo">
<view
class="item-box"
:key="index"
>
<view class="item">
<view class="label">{{i.label}}</view>
<view class="value">{{detail[i.key] || '-'}}</view>
</view>
<template v-if="i.hasLine">
<view class="line"></view>
</template>
</view>
</template>
<template v-if="detail.paymentStatus != 1">
<view class="tips">
<view class="icon">
<uni-icons
type="info"
:size="16"
color="#F59619"
></uni-icons>
</view>
交付专员需确认交付车辆信息,与买家信息无误后才可交付。
</view>
</template>
</view>
<view class="log-info box">
<view class="title">操作日志</view>
<view class="log-box">
<template v-for="(i,index) in logList">
<view
class="log-item"
:key="index"
>
<view class="log-title">{{OP_TYPE[i.opType]}}</view>
<view class="item">
<view class="label">操作人</view>
<view class="value">{{i.opUserName}}</view>
</view>
<view class="item">
<view class="label">时间</view>
<view class="value">{{i.createdDate}}</view>
</view>
<view class="item-mark">
<view :class="['circle',{first:index == 0}]"></view>
<template v-if="index != logList.length - 1">
<view class="mark-line"></view>
</template>
</view>
</view>
</template>
</view>
</view>
</template>
</view>
</template>
<script type='text/ecmascript-6'>
import { PAYMENT_STATUS, OP_TYPE } from '../contant'
export default {
name: '',
props: {
detail: {
type: Object,
default: () => {
return {}
}
}
},
data () {
return {
OP_TYPE,
PAYMENT_STATUS,
logList: [],
carInfo: Object.freeze([
{
label: '车型名称',
key: 'vehicleTitle'
},
{
label: '车牌号',
key: 'licensePlate'
},
{
label: '车架号',
key: 'vin'
},
{
label: '当前位置',
key: 'currentLocation',
hasLine: true
},
{
label: '客户姓名',
key: 'buyerName'
},
{
label: '联系方式',
key: 'buyerContact'
},
{
label: '提车地址',
key: 'pickupAddress'
},
{
label: '成交时间',
key: 'transactionTime',
hasLine: true
},
{
label: '保管人姓名',
key: 'custodianName'
},
{
label: '车辆保管人电话',
key: 'custodianPhone'
},
{
label: '交付专员',
key: 'handlerName'
},
{
label: '交付专员电话',
key: 'handlerPhone',
},
])
}
},
watch: {
detail: {
handler (val) {
if (val.deliveryOrderId) this.getDeliveryOrderOpLog()
},
deep: true
}
},
mounted () {
},
methods: {
async getDeliveryOrderOpLog () {
const { deliveryOrderId } = this.detail,
data = await uni.$api.usedCarApi.getDeliveryOrderOpLog({
deliveryOrderId
})
this.logList = data
console.log(data)
},
}
}
</script>
<style scoped lang='scss'>
.detail-info-box {
padding: toRpx(48);
.box {
border-radius: toRpx(16);
background: #ffffff;
margin-bottom: toRpx(24);
box-sizing: border-box;
padding: 0 toRpx(24) toRpx(24);
.tips {
margin-top: toRpx(28);
border-radius: toRpx(16);
background: #fef4e8;
box-sizing: border-box;
padding: toRpx(16) toRpx(16) toRpx(16) toRpx(56);
color: #f59619;
font-size: toRpx(26);
line-height: toRpx(36);
position: relative;
.icon {
position: absolute;
top: toRpx(16);
left: toRpx(16);
transform: rotate(180deg);
width: toRpx(32);
height: toRpx(32);
display: flex;
align-items: center;
justify-content: center;
}
}
.item {
margin-top: toRpx(28);
line-height: toRpx(40);
display: flex;
font-size: toRpx(28);
.label {
color: #999999;
width: toRpx(208);
}
.value {
width: calc(100% - #{toRpx(208)});
color: #333333;
}
.await {
color: #f59619;
}
.success {
color: #2cca74;
}
}
.line {
margin-top: toRpx(28);
width: 100%;
height: toRpx(2);
background: #f7f7f6;
}
.title {
padding-top: toRpx(24);
color: #333333;
font-size: toRpx(32);
font-weight: 500;
line-height: toRpx(48);
}
}
.log-info {
margin-bottom: 0;
.log-box {
padding-top: toRpx(32);
.log-item {
min-height: toRpx(188);
position: relative;
padding-left: toRpx(60);
.item {
margin-top: toRpx(16);
.label {
width: toRpx(168);
}
.value {
width: calc(100% - #{toRpx(168)});
word-break: break-all;
}
}
.item-mark {
position: absolute;
top: 0;
left: 0;
width: toRpx(32);
.mark-line {
height: toRpx(180);
width: toRpx(2);
background: #d6e4ff;
position: absolute;
top: toRpx(8);
left: 50%;
transform: translateX(-50%);
}
.circle {
position: relative;
width: toRpx(20);
height: toRpx(20);
background: #8eb2fb;
border-radius: 100%;
margin: toRpx(8) auto 0;
z-index: 2;
}
.first {
width: toRpx(32);
height: toRpx(32);
background: #d6e4ff;
position: relative;
&::before,
&::after {
content: '';
position: absolute;
border-radius: 100%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
&::before {
width: toRpx(20);
height: toRpx(20);
background: #2c66f7;
}
&::after {
width: toRpx(10);
height: toRpx(10);
background: #fff;
}
}
}
}
.log-title {
color: #333333;
font-size: toRpx(32);
font-weight: 500;
line-height: toRpx(44);
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="type-tab">
<view class="type-box">
<view
class="tab-item"
v-for="(i, index) in typeList"
:key="index"
@click="tabClick(index)"
>
<view
:class="['sprite-icon',tabClass(index)]"
:style="{
left:blockLeft
}"
></view>
<view
class="text flex"
:class="[tabIndex == index ? `active` : '']"
>
{{ i[nameKey] }}
<template v-if="hasNum">
<view class="num"> {{formatNum(i[numKey] || 0)}}</view>
</template>
</view>
</view>
</view>
<view
class="mask-box"
:style="[{height:maskHeight}]"
></view>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
props: {
typeList: Array,
tabIndex: {
type: Number,
default: 0
},
nameKey: {
type: String,
default: 'tabName'
},
maskHeight: {
type: String,
default: '100vh'
},
hasNum: {
type: Boolean,
default: false
},
numKey: {
type: String,
default: 'tabNum'
}
},
name: '',
data () {
return {
firstClass: Object.freeze(['first-nav', 'second-nav']),
}
},
computed: {
blockLeft () {
let { tabIndex } = this
return `${(tabIndex * 248) - (tabIndex == 0 ? 0 : 36)}rpx`
}
},
mounted () {
},
methods: {
tabClass (index) {
let className = ''
if (this.tabIndex == index) {
className = 'active icon-'
if (index == 0) className += 'first-nav'
else className += 'second-nav'
}
return className
},
tabClick (index) {
this.$emit('update:tabIndex', index)
this.$emit('tabClick', index)
},
formatNum(num){
if(num > 99) return '99+'
else return num
}
}
}
</script>
<style scoped lang='scss'>
.type-tab {
position: relative;
height: 96rpx;
overflow: hidden;
.type-box {
position: relative;
display: flex;
width: 100%;
background-color: #eef4fe;
height: toRpx(120);
line-height: toRpx(96);
border-radius: toRpx(48) toRpx(48) 0 0;
overflow: hidden;
z-index: 0;
.tab-item {
width: toRpx(248);
text-align: center;
font-weight: 500;
font-size: toRpx(32);
color: #1f2133;
.text {
position: relative;
justify-content: center;
width: toRpx(248);
.num {
font-size: 24rpx;
margin-left: 8rpx;
}
}
.active {
position: absolute;
top: 0;
z-index: -1;
font-weight: 700;
font-size: toRpx(32);
color: #2c66f7;
&::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: toRpx(48);
height: toRpx(8);
background-color: #2c66f7;
border-radius: toRpx(16);
}
}
.sprite-icon {
transform: scale(.65, .73);
transform-origin: 0 0;
transition: left 0.15s;
}
}
}
.mask-box {
position: absolute;
width: 100%;
background: #fff;
left: 0;
top: toRpx(96);
border-radius: toRpx(48);
overflow: hidden;
}
}
</style>
\ No newline at end of file \ No newline at end of file
const ORDER_STATUS = {
0: '待交付',
1: '交付中',
2: '交付完成'
}
const PAYMENT_STATUS = {
0: '待支付',
1: '已结清'
}
const OP_TYPE = {
1: '创建交付工单',
2: '确认客户到店',
3: '确认客户提车'
}
module.exports = {
ORDER_STATUS,
PAYMENT_STATUS,
OP_TYPE
}
\ No newline at end of file \ No newline at end of file
<template>
<page-component
title="交付详情"
:backProp="{
show: true,
click: this.backPage
}"
>
<view class="content flex">
<view class="left">
<detail-info :detail="detail" ref="infoRef"></detail-info>
</view>
<view class="right">
<delivery-steps
:detail="detail"
@openError="openError"
@refresh="refresh"
@refreshLog="$refs.infoRef.getDeliveryOrderOpLog()"
></delivery-steps>
</view>
<NoticePopup
ref="errNotice"
title="提示"
:text="errorMessage"
type="warning"
:buttons="errButtons"
></NoticePopup>
<NoticePopup
ref="backNotice"
title="提示"
text="当前交付未完成,退出将不保留当前信息。"
type="warning"
:buttons="backButtons"
></NoticePopup>
</view>
</page-component>
</template>
<script type='text/ecmascript-6'>
import DetailInfo from './components/DetailInfo.vue'
import deliverySteps from './components/DeliverySteps/index.vue'
import NoticePopup from '@/components/NoticePopup.vue'
export default {
components: {
DetailInfo,
deliverySteps,
NoticePopup
},
name: '',
data () {
return {
detail: {},
errorMessage: '',
errButtons: Object.freeze([
{
text: '知道了',
type: 'primary'
}
]),
backButtons: Object.freeze([
{
text: '关闭',
type: 'default'
},
{
text: '确定退出',
type: 'primary',
callback: _ => {
uni.navigateBack()
}
}
])
}
},
onLoad (options) {
this.getDeliveryOrderDetail(options.id)
uni.$track.add({
eventCode: 'app_delivery_detail'
})
},
onBackPress (options) {
if (options.from === 'backbutton') {
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
this.backPage()
return true
}
// 其他情况允许正常返回
return false
},
methods: {
async getDeliveryOrderDetail (id) {
try {
uni.showLoading({
title: '加载中',
mask: true
})
const data = await uni.$api.usedCarApi.getDeliveryOrderDetail({
id: Number(id)
})
uni.hideLoading()
if (data.orderStatus == 2) {
if (data.remark) data.remark = data.remark.replace(/<\/?br\s*\/?>|\n/g, '<br>')
if (data.confirmImages) data.imgList = data.confirmImages.split(',')
}
this.detail = data
} catch (error) {
uni.hideLoading()
this.openError(error || '请求失败')
}
},
openError (message) {
this.errorMessage = message
this.$refs.errNotice.open()
},
backPage () {
if (this.detail.orderStatus != 2) this.$refs.backNotice.open()
else uni.navigateBack()
},
refresh(id){
this.getDeliveryOrderDetail(id)
}
}
}
</script>
<style scoped lang='scss'>
.content {
width: 100vw;
height: 100vh;
box-sizing: border-box;
padding: toRpx(160) toRpx(64) toRpx(64);
box-sizing: border-box;
.left,
.right {
height: 100%;
background: #ffffff59;
backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
border-radius: toRpx(48);
overflow-y: auto;
}
.left {
width: 34.1vw;
}
.right {
width: 59.08vw;
margin-left: auto;
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -211,7 +211,7 @@ export default { ...@@ -211,7 +211,7 @@ export default {
} }
} }
.detail-right { .detail-right {
width: toRpx(1368); width: calc(100% - #{toRpx(832)});
height: 100%; height: 100%;
border-radius: toRpx(48); border-radius: toRpx(48);
background: #ffffff59; background: #ffffff59;
......
...@@ -80,6 +80,7 @@ export default { ...@@ -80,6 +80,7 @@ export default {
return state.customerInfo; return state.customerInfo;
}, },
setCustomerInfo ({ commit }, value) { setCustomerInfo ({ commit }, value) {
uni.$logger.local.info(`当前接待客户信息: ${JSON.stringify(value)}`)
commit("setCustomerInfo", value); commit("setCustomerInfo", value);
}, },
clearCustomerInfo ({ commit }) { clearCustomerInfo ({ commit }) {
......
...@@ -151,17 +151,17 @@ $uni-primary: #4673ff !default; ...@@ -151,17 +151,17 @@ $uni-primary: #4673ff !default;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 100rpx; width: toRpx(100);
height: 100rpx; height: toRpx(100);
} }
.uni-calendar-item__weeks-box-circle { .uni-calendar-item__weeks-box-circle {
position: absolute; position: absolute;
bottom: 10rpx; bottom: toRpx(10);
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: 12rpx; width: toRpx(12);
height: 12rpx; height: toRpx(12);
border-radius: 8px; border-radius: 8px;
background-color: $uni-color-error; background-color: $uni-color-error;
} }
...@@ -179,7 +179,7 @@ $uni-primary: #4673ff !default; ...@@ -179,7 +179,7 @@ $uni-primary: #4673ff !default;
background-color: $uni-primary; background-color: $uni-primary;
// opacity: 0.8; // opacity: 0.8;
color: #fff; color: #fff;
border-radius: 16rpx; border-radius: toRpx(16);
} }
.uni-calendar-item--extra { .uni-calendar-item--extra {
...@@ -190,14 +190,15 @@ $uni-primary: #4673ff !default; ...@@ -190,14 +190,15 @@ $uni-primary: #4673ff !default;
.uni-calendar-item--checked { .uni-calendar-item--checked {
background-color: $uni-primary; background-color: $uni-primary;
color: #fff; color: #fff;
border-radius: 16rpx; border-radius: toRpx(16);
// opacity: 0.8; // opacity: 0.8;
} }
.uni-calendar-item--multiple { .uni-calendar-item--multiple {
// background-color: rgba($color: $uni-primary, $alpha: 0.8); // background-color: rgba($color: $uni-primary, $alpha: 0.8);
background-color: #ecf1ff; background-color: #ecf1ff;
color: #37393D; // color: #37393D;
color: #4673FF;
.uni-calendar-item--multiple{ .uni-calendar-item--multiple{
background: none; background: none;
} }
...@@ -206,10 +207,12 @@ $uni-primary: #4673ff !default; ...@@ -206,10 +207,12 @@ $uni-primary: #4673ff !default;
.uni-calendar-item--before-checked { .uni-calendar-item--before-checked {
background-color: #4673FF; background-color: #4673FF;
color: #fff; color: #fff;
border-radius: toRpx(16);
} }
.uni-calendar-item--after-checked { .uni-calendar-item--after-checked {
background-color: #4673FF; background-color: #4673FF;
color: #fff; color: #fff;
border-radius: inherit; border-radius: inherit;
border-radius: toRpx(16);
} }
</style> </style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view <view
v-if="!insert&&show" v-if="!insert&&show"
class="uni-calendar__mask" class="uni-calendar__mask"
:class="{'uni-calendar--mask-show':aniMaskShow}" :class="[{'uni-calendar--mask-show':aniMaskShow},{'uni-calendar--mask-bg-hide':hideMask}]"
@click="clean" @click="clean"
></view> ></view>
<view <view
...@@ -16,19 +16,34 @@ ...@@ -16,19 +16,34 @@
v-if="!insert" v-if="!insert"
class="uni-calendar__header uni-calendar--fixed-top" class="uni-calendar__header uni-calendar--fixed-top"
> >
<template v-if="!showBottomBtn">
<view <view
class="uni-calendar__header-btn-box" class="uni-calendar__header-btn-box"
@click="close" @click="close"
> >
<text class="uni-calendar__header-text uni-calendar--fixed-width">{{cancelText}}</text> <text class="uni-calendar__header-text uni-calendar--fixed-width">{{cancelText}}</text>
</view> </view>
<viw class="uni-calendar__header-title">{{title}}</viw> </template>
<viw :class="['uni-calendar__header-title',{'header-title-center':showBottomBtn}]">{{title}}</viw>
<template v-if="!showBottomBtn">
<view <view
class="uni-calendar__header-btn-box" class="uni-calendar__header-btn-box"
@click="confirm" @click="confirm"
> >
<text class="uni-calendar__header-text uni-calendar--fixed-width">{{okText}}</text> <text class="uni-calendar__header-text uni-calendar--fixed-width">{{okText}}</text>
</view> </view>
</template>
<template v-if="showBottomBtn">
<view
class="popup-close"
@click="close"
>
<uni-icons
type="closeempty"
size="18"
></uni-icons>
</view>
</template>
</view> </view>
<view class="uni-calendar__header"> <view class="uni-calendar__header">
<view <view
...@@ -110,6 +125,18 @@ ...@@ -110,6 +125,18 @@
</view> </view>
</view> </view>
</view> </view>
<template v-if="showBottomBtn">
<view class="uni-calendar__footer_btns">
<view
class="uni-calendar__footer_btn"
@click="close"
>取消</view>
<view
class="uni-calendar__footer_btn uni-calendar__footer_btn-primary"
@click="confirm"
>确定</view>
</view>
</template>
</view> </view>
</view> </view>
</template> </template>
...@@ -205,6 +232,14 @@ export default { ...@@ -205,6 +232,14 @@ export default {
openBeforeChange: { openBeforeChange: {
type: Boolean, type: Boolean,
default: false default: false
},
showBottomBtn: {
type: Boolean,
default: false
},
hideMask: {
type: Boolean,
default: false
} }
}, },
data () { data () {
...@@ -319,6 +354,13 @@ export default { ...@@ -319,6 +354,13 @@ export default {
this.nowDate = this.calendar = this.cale.getInfo(date) this.nowDate = this.calendar = this.cale.getInfo(date)
}, },
/** /**
* 手动清空数据
*/
cleanDate () {
this.cale.cleanMultipleStatus()
this.init(this.date)
},
/**
* 打开日历弹窗 * 打开日历弹窗
*/ */
open () { open () {
...@@ -523,7 +565,9 @@ $uni-text-color-grey: #999; ...@@ -523,7 +565,9 @@ $uni-text-color-grey: #999;
.uni-calendar--mask-show { .uni-calendar--mask-show {
opacity: 1; opacity: 1;
} }
.uni-calendar--mask-bg-hide {
opacity: 0;
}
.uni-calendar--fixed { .uni-calendar--fixed {
position: fixed; position: fixed;
/* #ifdef APP-NVUE */ /* #ifdef APP-NVUE */
...@@ -538,6 +582,7 @@ $uni-text-color-grey: #999; ...@@ -538,6 +582,7 @@ $uni-text-color-grey: #999;
bottom: calc(var(--window-bottom)); bottom: calc(var(--window-bottom));
z-index: 99; z-index: 99;
/* #endif */ /* #endif */
border-radius: toRpx(32) toRpx(32) 0 0;
} }
.uni-calendar--ani-show { .uni-calendar--ani-show {
...@@ -557,9 +602,9 @@ $uni-text-color-grey: #999; ...@@ -557,9 +602,9 @@ $uni-text-color-grey: #999;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 50px; height: 50px;
border-bottom-color: $uni-border-color; // border-bottom-color: $uni-border-color;
border-bottom-style: solid; // border-bottom-style: solid;
border-bottom-width: 1px; // border-bottom-width: 1px;
} }
.uni-calendar--fixed-top { .uni-calendar--fixed-top {
...@@ -568,9 +613,9 @@ $uni-text-color-grey: #999; ...@@ -568,9 +613,9 @@ $uni-text-color-grey: #999;
/* #endif */ /* #endif */
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
border-top-color: $uni-border-color; // border-top-color: $uni-border-color;
border-top-style: solid; // border-top-style: solid;
border-top-width: 1px; // border-top-width: 1px;
} }
.uni-calendar--fixed-width { .uni-calendar--fixed-width {
...@@ -580,7 +625,7 @@ $uni-text-color-grey: #999; ...@@ -580,7 +625,7 @@ $uni-text-color-grey: #999;
.uni-calendar__backtoday { .uni-calendar__backtoday {
position: absolute; position: absolute;
right: 0; right: 0;
top: 25rpx; top: toRpx(25);
padding: 0 5px; padding: 0 5px;
padding-left: 10px; padding-left: 10px;
height: 25px; height: 25px;
...@@ -691,4 +736,39 @@ $uni-text-color-grey: #999; ...@@ -691,4 +736,39 @@ $uni-text-color-grey: #999;
line-height: 1; line-height: 1;
/* #endif */ /* #endif */
} }
.header-title-center {
margin: 0 auto;
}
.uni-calendar__footer_btns {
height: toRpx(176);
display: flex;
justify-content: center;
align-items: center;
gap: toRpx(32);
.uni-calendar__footer_btn {
width: toRpx(720);
height: toRpx(80);
border-radius: toRpx(64);
background: #f0f1f5;
display: flex;
align-items: center;
justify-content: center;
color: #333333;
font-size: toRpx(32);
font-weight: 500;
}
.uni-calendar__footer_btn-primary {
color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
}
.popup-close {
padding: 0 toRpx(48);
position: absolute;
right: 0;
top: 0;
height: 100%;
display: flex;
align-items: center;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!