Commit 50870982 by 李伟康

fix(boutique): 完善车辆品牌信息处理逻辑并优化模板结构

- 在 Reception.vue 和 detail.vue 中补充车辆品牌相关字段的赋值逻辑,
  包括 carBrand、carBrandId、oneCarBrand 和 oneCarBrandId,
  并对可能为空的字段增加空字符串兜底处理
- 优化 detail.vue 模板中 view 标签的格式,移除多余换行
- 修复 Reception.vue 中 padding 样式的一个多余空格问题
1 parent bb8b93c6
......@@ -266,8 +266,14 @@ export default {
this.$store.dispatch("setReceptionTrack", { key, value })
},
handleSelect (item) {
this.customerInfo.carModel = item.name
this.customerInfo.carModelId = item.id
this.customerInfo.carModel = item.name || ''
this.customerInfo.carModelId = item.id || ''
Object.assign(this.customerInfo, {
carBrand: item.carChildsBrandName || '',
carBrandId: item.carChildsBrandId || '',
oneCarBrand: item.carBrand || '',
oneCarBrandId: item.carBrandId || ''
})
this.$store.dispatch('setCustomerInfo', this.customerInfo)
this.carInfo = item
uni.hideLoading()
......@@ -414,7 +420,7 @@ export default {
}
.content-box {
height: 100%;
padding: toRpx(144) 0 toRpx(64) toRpx(64);
padding: toRpx(144) 0 toRpx(64) toRpx(64);
animation: show-view-opacity 0.15s forwards;
.left-content {
width: toRpx(1328);
......
......@@ -6,9 +6,7 @@
* @LastEditTime: 2024-05-31 16:07:23
-->
<template>
<view
class="detail-box"
>
<view class="detail-box">
<view class="nav-bar">
<view
class="back"
......@@ -204,13 +202,17 @@ export default {
// }
let customer = {
customerName: item.customerName,
carModel: item.carSeriesName,
carModel: item.carSeriesName || '',
phoneNumber: item.customerPhone,
salesUuid: item.userId,
staffName: item.employeeName,
receiveCouponDate: item.receiveCouponDate,
customerCouponId: item.customerCouponId,
carSeriesId: item.carSeriesId
carSeriesId: item.carSeriesId || '',
carBrand: item.carChildsBrandName || '',
carBrandId: item.carChildsBrandId || '',
oneCarBrand: item.carBrand || '',
oneCarBrandId: item.carBrandId || ''
}
let [reception] = this.$refs.media1
reception?.clearCustomerReceivedTimer()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!