diff --git a/src/views/system/jdorder/orderList.vue b/src/views/system/jdorder/orderList.vue index 8076c6d..74ce325 100644 --- a/src/views/system/jdorder/orderList.vue +++ b/src/views/system/jdorder/orderList.vue @@ -140,6 +140,17 @@ + + + @@ -1110,6 +1121,31 @@ export default { 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() { const textKeys = ['remark', 'orderSearch', 'distributionMark', 'modelNumber', 'link', 'buyer', 'address', 'status']