Commit c4a044fd by 前端

样式修改

1 parent ceca1744
...@@ -26,6 +26,11 @@ ...@@ -26,6 +26,11 @@
<span class="name">{{ scope.scope.brandName }} {{ scope.scope.goodsSkuName }}</span> <span class="name">{{ scope.scope.brandName }} {{ scope.scope.goodsSkuName }}</span>
</el-tooltip> </el-tooltip>
</div> </div>
<div class="orderAmount" slot="orderAmount" slot-scope="scope">
{{
scope.scope.redeemPoints ? scope.scope.redeemPoints + '积分' + '+' + +(scope.scope.salePrice * scope.scope.sellQty).toFixed(2) + '元' : +(scope.scope.salePrice * scope.scope.sellQty).toFixed(2) + '元'
}}
</div>
</GLTable> </GLTable>
</div> </div>
</div> </div>
...@@ -41,6 +46,21 @@ ...@@ -41,6 +46,21 @@
<span class="name">{{ scope.scope.brandName }} {{ scope.scope.goodsSkuName }}</span> <span class="name">{{ scope.scope.brandName }} {{ scope.scope.goodsSkuName }}</span>
</el-tooltip> </el-tooltip>
</div> </div>
<div slot="effectiveDays" slot-scope="scope">
<span v-show="orderInfo.logisticsStatus" class="circle"
:style="{backgroundColor: '#5850FF'}"></span>
<span>{{
{
1000: '待揽件',
1001: '已揽件',
1002: '运输中',
1003: '已签收',
1004: '拒收'
}[orderInfo.logisticsStatus] || '--'
}}</span>
</div>
</GLTable> </GLTable>
</div> </div>
</div> </div>
...@@ -92,15 +112,16 @@ export default { ...@@ -92,15 +112,16 @@ export default {
{ {
label: '物流状态', label: '物流状态',
prop: 'effectiveDays', prop: 'effectiveDays',
formatter: cell => { addHtml: 'effectiveDays'
return { // formatter: cell => {
1000: '待揽件', // return {
1001: '已揽件', // 1000: '待揽件',
1002: '运输中', // 1001: '已揽件',
1003: '已签收', // 1002: '运输中',
1004: '拒收' // 1003: '已签收',
}[this.orderInfo.logisticsStatus] || '--' // 1004: '拒收'
} // }[this.orderInfo.logisticsStatus] || '--'
// }
} }
] ]
}, },
...@@ -133,9 +154,10 @@ export default { ...@@ -133,9 +154,10 @@ export default {
{ {
label: '实收金额 (元)', label: '实收金额 (元)',
prop: 'orderAmount', prop: 'orderAmount',
formatter: cell => { addHtml: 'orderAmount',
return cell.redeemPoints ? cell.redeemPoints + '积分' + '+' + +(cell.salePrice * cell.sellQty).toFixed(2) + '元' : +(cell.salePrice * cell.sellQty).toFixed(2) + '元' // formatter: cell => {
} // return cell.redeemPoints ? cell.redeemPoints + '积分' + '+' + +(cell.salePrice * cell.sellQty).toFixed(2) + '元' : +(cell.salePrice * cell.sellQty).toFixed(2) + '元'
// }
} }
] ]
}, },
...@@ -221,7 +243,7 @@ export default { ...@@ -221,7 +243,7 @@ export default {
const {receiveName, receiveMobile, provinceName, cityName, townName, address} = res?.receiveAddress || {} const {receiveName, receiveMobile, provinceName, cityName, townName, address} = res?.receiveAddress || {}
res.addInfo = `${receiveName} ${receiveMobile} ${provinceName}${cityName}${townName}${address}` res.addInfo = `${receiveName} ${receiveMobile} ${provinceName}${cityName}${townName}${address}`
res.addInfo = res.addInfo.replaceAll('null', '') res.addInfo = res.addInfo.replaceAll('null', '')
res.payPrice = res.redeemPoints ? res.redeemPoints + '积分' + '+' + (res.payPrice|| 0) + '元' : res.payPrice + '元' res.payPrice = res.redeemPoints ? res.redeemPoints + '积分' + '+' + (res.payPrice || 0) + '元' : res.payPrice + '元'
res.subOrderGoodsList = res?.subOrderGoodsList?.length ? res?.subOrderGoodsList : [] res.subOrderGoodsList = res?.subOrderGoodsList?.length ? res?.subOrderGoodsList : []
// res.logisticsStatus = undefined // res.logisticsStatus = undefined
this.orderInfo = res this.orderInfo = res
...@@ -281,4 +303,8 @@ export default { ...@@ -281,4 +303,8 @@ export default {
} }
} }
.orderAmount {
color: #2CCA74;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!