Commit dd1dc4c7 by Lin

fix(客户侧):更新客户名称显示并改进 addFiles.vue 中的用户信息处理

- 将客户名称显示更改为展示原始名称,而非格式化后的版本。
- 在 addFiles.vue 中增强用户信息获取功能,包含姓名和 UUID,确保卖家字段正确初始化。
1 parent cbbcdc3b
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<view class="customer-item-body" @click="handleGoCustomerDetail(item)"> <view class="customer-item-body" @click="handleGoCustomerDetail(item)">
<view class="customer-item-row customer-item-row--name"> <view class="customer-item-row customer-item-row--name">
<view class="customer-item-name-left"> <view class="customer-item-name-left">
<text class="customer-item-name">{{ formatName(item.customerName) }}</text> <text class="customer-item-name">{{ item.customerName }}</text>
<view v-if="item.carSeriesName" class="customer-item-car-tag"> <view v-if="item.carSeriesName" class="customer-item-car-tag">
<text class="customer-item-car-text">{{ item.carSeriesName }}</text> <text class="customer-item-car-text">{{ item.carSeriesName }}</text>
</view> </view>
......
...@@ -278,7 +278,8 @@ export default { ...@@ -278,7 +278,8 @@ export default {
console.log('getCustomerGroupInfoAPI***', res) console.log('getCustomerGroupInfoAPI***', res)
}, },
initForm () { initForm () {
const { sceneType } = uni.$storage.get("userInfo") const userInfo = uni.$storage.get("userInfo") || {}
const { sceneType, name, uuid } = userInfo
default_customerForm[0].maxlength = sceneType == 1 ? 20 : 50 default_customerForm[0].maxlength = sceneType == 1 ? 20 : 50
this.$store.dispatch("clearCustomerInfo") this.$store.dispatch("clearCustomerInfo")
this.$store.dispatch("clearHistory") this.$store.dispatch("clearHistory")
...@@ -295,8 +296,8 @@ export default { ...@@ -295,8 +296,8 @@ export default {
employeeName: '', employeeName: '',
userId: '', userId: '',
merchantName: '', merchantName: '',
sellerName: '', sellerName: name || '',
sellerUserId: '', sellerUserId: uuid || '',
inviteDate: '', inviteDate: '',
filingDate: dayjs().format('YYYY-MM-DD') filingDate: dayjs().format('YYYY-MM-DD')
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!