1
This commit is contained in:
@@ -140,6 +140,17 @@
|
|||||||
|
|
||||||
<!-- 其他信息列(可折叠) -->
|
<!-- 其他信息列(可折叠) -->
|
||||||
<el-table-column label="备注/状态" prop="status" min-width="120" show-overflow-tooltip/>
|
<el-table-column label="备注/状态" prop="status" min-width="120" show-overflow-tooltip/>
|
||||||
|
<el-table-column label="订单状态" prop="orderStatus" width="100" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag
|
||||||
|
v-if="scope.row.orderStatus != null"
|
||||||
|
:type="getOrderStatusType(scope.row.orderStatus)"
|
||||||
|
size="small">
|
||||||
|
{{ getOrderStatusText(scope.row.orderStatus) }}
|
||||||
|
</el-tag>
|
||||||
|
<span v-else style="color: #999;">-</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
<!-- 操作列(统一放在最右侧) -->
|
<!-- 操作列(统一放在最右侧) -->
|
||||||
<el-table-column label="操作" fixed="right" width="280" align="center">
|
<el-table-column label="操作" fixed="right" width="280" align="center">
|
||||||
@@ -1110,6 +1121,31 @@ export default {
|
|||||||
this.$message.success('H-TF订单自动写入配置已更新')
|
this.$message.success('H-TF订单自动写入配置已更新')
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/** 获取订单状态文本 */
|
||||||
|
getOrderStatusText(status) {
|
||||||
|
const statusMap = {
|
||||||
|
15: '待付款',
|
||||||
|
16: '已付款',
|
||||||
|
17: '已完成',
|
||||||
|
13: '违规',
|
||||||
|
25: '违规',
|
||||||
|
26: '违规',
|
||||||
|
27: '违规',
|
||||||
|
28: '违规',
|
||||||
|
29: '违规'
|
||||||
|
}
|
||||||
|
return statusMap[status] || `状态${status}`
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 获取订单状态标签类型 */
|
||||||
|
getOrderStatusType(status) {
|
||||||
|
if (status === 16) return 'success' // 已付款
|
||||||
|
if (status === 17) return 'success' // 已完成
|
||||||
|
if (status === 15) return 'warning' // 待付款
|
||||||
|
if ([13, 25, 26, 27, 28, 29].includes(status)) return 'danger' // 违规
|
||||||
|
return 'info' // 其他状态
|
||||||
|
},
|
||||||
|
|
||||||
/** 准备查询参数:去除空格并在关键词搜索时清空日期 */
|
/** 准备查询参数:去除空格并在关键词搜索时清空日期 */
|
||||||
prepareQueryParams() {
|
prepareQueryParams() {
|
||||||
const textKeys = ['remark', 'orderSearch', 'distributionMark', 'modelNumber', 'link', 'buyer', 'address', 'status']
|
const textKeys = ['remark', 'orderSearch', 'distributionMark', 'modelNumber', 'link', 'buyer', 'address', 'status']
|
||||||
|
|||||||
Reference in New Issue
Block a user