Commit 63fdf12a by 李伟康

```

fix(components): 调整样式与数据处理逻辑

- 为 TypeTabComponent 中的 .icon-second-right 添加背景色 #eef4fe
- 优化 DailyReport 和 CreateOrder 组件中的 textarea 样式 margin 设置
- 在 CreateOrder 中增加对 vdQuotationGoodsList 的空值判断并初始化
- 简化 skuGoods 计算逻辑,移除冗余的条件判断和注释
```
1 parent 0b579c68
...@@ -236,6 +236,7 @@ export default { ...@@ -236,6 +236,7 @@ export default {
} }
.icon-second-right { .icon-second-right {
right: toMinusRpx(100); right: toMinusRpx(100);
background-color: #eef4fe;
} }
} }
} }
......
...@@ -860,9 +860,8 @@ export default { ...@@ -860,9 +860,8 @@ export default {
} }
.textarea { .textarea {
width: calc(100% - #{toRpx(24)}); width: calc(100% - #{toRpx(24)});
margin-left: toRpx(24);
text-align: right; text-align: right;
margin: toRpx(10) 0; margin: toRpx(10) 0 0 toRpx(24);
// line-height: toRpx(28); // line-height: toRpx(28);
font-size: toRpx(28); font-size: toRpx(28);
} }
......
...@@ -234,6 +234,7 @@ export default { ...@@ -234,6 +234,7 @@ export default {
orderObj.price = this.divideByHundred(owner.price) orderObj.price = this.divideByHundred(owner.price)
orderObj.insurancePrice = this.divideByHundred(insurancePrice) orderObj.insurancePrice = this.divideByHundred(insurancePrice)
orderObj.quotedPriceUpdate = this.divideByHundred(quotedPriceUpdate) orderObj.quotedPriceUpdate = this.divideByHundred(quotedPriceUpdate)
if(!data.vdQuotationGoodsList) data.vdQuotationGoodsList = []
orderObj.vdQuotationGoodsList = data.vdQuotationGoodsList.map( orderObj.vdQuotationGoodsList = data.vdQuotationGoodsList.map(
item => { item => {
item.price = this.divideByHundred(item.goodsPrice) item.price = this.divideByHundred(item.goodsPrice)
...@@ -266,7 +267,7 @@ export default { ...@@ -266,7 +267,7 @@ export default {
if (e.value == 'salesType') e.current = owner.salesType if (e.value == 'salesType') e.current = owner.salesType
if (e.value == 'ownerGender') e.current = owner.ownerGender if (e.value == 'ownerGender') e.current = owner.ownerGender
}) })
orderObj.skuGoods = data.vdQuotationGoodsList ? data.vdQuotationGoodsList.reduce((pre, item) => { orderObj.skuGoods = data.vdQuotationGoodsList.reduce((pre, item) => {
// 是普通商品 // 是普通商品
if (!item.packageName && !item.specificationsValue) { if (!item.packageName && !item.specificationsValue) {
console.log(item) console.log(item)
...@@ -347,7 +348,7 @@ export default { ...@@ -347,7 +348,7 @@ export default {
return pre return pre
}, []) }, [])
: []
let keyList = ['mode', 'payee', 'payType', 'referrerId', 'referrer', let keyList = ['mode', 'payee', 'payType', 'referrerId', 'referrer',
'deliveryId', 'deliveryName', 'notes', 'id', 'orderId' 'deliveryId', 'deliveryName', 'notes', 'id', 'orderId'
], customerKeyList = ['owner', 'phone', 'certificateNo', 'carVin', 'seat', , ], customerKeyList = ['owner', 'phone', 'certificateNo', 'carVin', 'seat', ,
......
...@@ -1003,10 +1003,8 @@ export default { ...@@ -1003,10 +1003,8 @@ export default {
} }
.textarea { .textarea {
width: calc(100% - #{toRpx(24)}); width: calc(100% - #{toRpx(24)});
margin-left: toRpx(24);
text-align: right; text-align: right;
margin: toRpx(10) 0; margin: toRpx(10) 0 0 toRpx(24);
// line-height: toRpx(28);
font-size: toRpx(28); font-size: toRpx(28);
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!