Commit c4a044fd by 前端

样式修改

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