Commit fbea8fea by 李伟康

refactor(boutique, daily): 优化订单数据处理和车型列表UI

1.  在创建订单组件中新增dayjs依赖,格式化实际交付日期并处理客户标签分割
2.  调整车型列表组件的选中样式,改用图标展示选中状态,移除原有active类样式逻辑
1 parent f2bc6636
...@@ -84,6 +84,7 @@ import { FORM_LIST, popupTypeEnum, payTypeList, titleList } from '../contant' ...@@ -84,6 +84,7 @@ import { FORM_LIST, popupTypeEnum, payTypeList, titleList } from '../contant'
import { interceptionMixin } from '@/mixin/index' import { interceptionMixin } from '@/mixin/index'
import { validateVin, formatVinInput } from '@/utils/vinVaildate' import { validateVin, formatVinInput } from '@/utils/vinVaildate'
import { collectBelowMinSellPriceItems } from '@/utils/minSellPrice' import { collectBelowMinSellPriceItems } from '@/utils/minSellPrice'
import dayjs from 'dayjs'
import { getMarketingFlag, getActivityId, getSubmitMarketingFlag, getSubmitModifyFlag, getSubmitActivityId, snapshotOriginalPrice, snapshotOrderItemsOriginalPrice, snapshotActivityPriceFromCatalog } from '@/utils/marketingFlag' import { getMarketingFlag, getActivityId, getSubmitMarketingFlag, getSubmitModifyFlag, getSubmitActivityId, snapshotOriginalPrice, snapshotOrderItemsOriginalPrice, snapshotActivityPriceFromCatalog } from '@/utils/marketingFlag'
export default { export default {
name: 'CreateOrder', name: 'CreateOrder',
...@@ -1981,6 +1982,8 @@ export default { ...@@ -1981,6 +1982,8 @@ export default {
this.orderObj.djOrderType = orderTypeMap['1'] || '正常订单' this.orderObj.djOrderType = orderTypeMap['1'] || '正常订单'
} }
if(rest.actualDeliveryDate) this.orderObj.actualDeliveryDate = dayjs(rest.actualDeliveryDate).format('YYYY-MM-DD')
if(rest.customerTags && typeof rest.customerTags === 'string') this.orderObj.customerTags = rest.customerTags.split(',')
this.orderObj.payeeType = rest.selectPayType == '2' ? '1' : '0' this.orderObj.payeeType = rest.selectPayType == '2' ? '1' : '0'
const customerFields = ['customerName', 'customerSex', 'customerPhone', 'salesType', 'standNo', 'plateNumber', 'experienceFlag'] const customerFields = ['customerName', 'customerSex', 'customerPhone', 'salesType', 'standNo', 'plateNumber', 'experienceFlag']
......
...@@ -16,10 +16,12 @@ ...@@ -16,10 +16,12 @@
<view class="series-list"> <view class="series-list">
<template v-for="(k, kindex) in j.childs"> <template v-for="(k, kindex) in j.childs">
<view class="series-name" :key="kindex"> <view class="series-name" :key="kindex">
<view :class="['series-name flex', { active: checkActive(k) }]" @click="getCarTypeList(c,j, k)"> <view :class="['series-name flex']" @click="getCarTypeList(c,j, k)">
<uni-icons :type="`${checkActive(k) ? 'circle-filled' : 'circle'}`"
size="20" class="series-icon" :color="checkActive(k) ? '#2c66f7' : '#999'"></uni-icons>
{{ k.name }} {{ k.name }}
<uni-icons :type="`${k.childs && k.childs.length && k.open ? 'down' : 'right'}`" <!-- <uni-icons :type="`${k.childs && k.childs.length && k.open ? 'down' : 'right'}`"
size="18"></uni-icons> size="18"></uni-icons> -->
</view> </view>
<view class="brand-list" v-if="k.open"> <view class="brand-list" v-if="k.open">
<template v-for="(s, sindex) in k.childs"> <template v-for="(s, sindex) in k.childs">
...@@ -280,10 +282,9 @@ export default { ...@@ -280,10 +282,9 @@ export default {
flex-shrink: 0; flex-shrink: 0;
margin-bottom: toRpx(16); margin-bottom: toRpx(16);
padding-left: toRpx(20); padding-left: toRpx(20);
} .series-icon {
.series-name.active { margin-right: toRpx(12);
color: #2c66f7; }
font-weight: 500;
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!