diff --git a/src/components/reservation_order/reservation_order.vue b/src/components/reservation_order/reservation_order.vue index c2f354f..ae59b04 100644 --- a/src/components/reservation_order/reservation_order.vue +++ b/src/components/reservation_order/reservation_order.vue @@ -4,7 +4,7 @@ {{orderInfo.stadium_name || '-'}} {{zh_order_status(orderInfo.pay_status)}} + >{{zh_order_status(orderInfo)}} @@ -107,21 +107,6 @@ export default { return _obj[`${status}`] || '-' } }, - zh_order_status(){ - // 订单状态 -1已作废0未支付1已支付待使用2已使用3已失效4已退款 - return status =>{ - if(status == 8)return '使用中'; // 20210528 新增状态 - const _obj = { - '-1': '已作废', - '0': '未支付', - '1': '待使用', - '2': '已使用', - '3': '已失效', - '4': '已退款', - } - return _obj[`${status}`] || '-' - } - }, zh_type_name(){ // 预订项目 0场次 1人次 let { orderInfo } = this @@ -141,6 +126,21 @@ export default { }, }, methods:{ + zh_order_status(orderInfo = {}){ + // 订单状态 -1已作废0未支付1已支付待使用2已使用3已失效4已退款 + let _status = orderInfo.pay_status || ''; + if(_status == 3&&orderInfo.is_active_release)return '已失效*'; // 20220929 新增状态 '已失效*' + const _obj = { + '-1': '已作废', + '0': '未支付', + '1': '待使用', + '2': '已使用', + '3': '已失效', + '4': '已退款', + '8': '使用中', // 20210528 新增状态 + } + return _obj[`${_status}`] || '-' + }, detailChange(){ let { orderInfo } = this let _query = {} diff --git a/src/subpackage/device/components/order/reservation_site_detail/reservation_site_detail.vue b/src/subpackage/device/components/order/reservation_site_detail/reservation_site_detail.vue index ec9000b..9a59cc9 100644 --- a/src/subpackage/device/components/order/reservation_site_detail/reservation_site_detail.vue +++ b/src/subpackage/device/components/order/reservation_site_detail/reservation_site_detail.vue @@ -8,7 +8,7 @@ 订单编号:{{orderInfo.order_no || ''}} - {{zh_pay_status(orderInfo.pay_status)}} + {{zh_pay_status(orderInfo)}} 创建时间:{{orderInfo.created_at || '-'}} @@ -24,7 +24,7 @@ 验证信息 验证码: - {{orderInfo.verify_code || '-'}}({{zh_pay_status(orderInfo.pay_status)}}) + {{orderInfo.verify_code || '-'}}({{zh_pay_status(orderInfo)}}) @@ -137,20 +137,6 @@ export default { } }, computed: { - zh_pay_status(){ - // 订单状态 1已支付待使用2已使用3已失效4已退款 - return status =>{ - if(status == 8)return '使用中'; // 20210528 新增状态 - const _obj = { - '0': '未付款', - '1': '待使用', - '2': '已使用', - '3': '已失效', - '4': '已退款', - } - return _obj[`${status}`] || '-' - } - }, zh_verify_type(){ /** * 20210527 新增核销方式 @@ -169,15 +155,6 @@ export default { '扫码核销(商家助手)', ][status] || '-'; - // const _obj = { - // '0': '未核销', - // '1': '核销码核销', - // '2': '人脸核销', - // '3': '扫码核销', - // '4': '商家扫码', - // } - - // return _obj[`${status}`] || '-' } }, zh_pay_type(){ @@ -198,8 +175,22 @@ export default { } }, methods: { + zh_pay_status(orderInfo = {}){ + // 订单状态 -1已作废0未支付1已支付待使用2已使用3已失效4已退款 + let _status = orderInfo.pay_status || ''; + if(_status == 3&&orderInfo.is_active_release)return '已失效*'; // 20220929 新增状态 '已失效*' + const _obj = { + '-1': '已作废', + '0': '未支付', + '1': '待使用', + '2': '已使用', + '3': '已失效', + '4': '已退款', + '8': '使用中', // 20210528 新增状态 + } + return _obj[`${_status}`] || '-' + }, refunndBtn(){ - console.warn(123); this.$emit('refundbtn'); } } diff --git a/src/subpackage/income/pages/search/search.vue b/src/subpackage/income/pages/search/search.vue index 80638dd..4ea2433 100644 --- a/src/subpackage/income/pages/search/search.vue +++ b/src/subpackage/income/pages/search/search.vue @@ -15,6 +15,7 @@ @blur = 'iptBlur' @confirm = 'searchConfirm' hold-keyboard + placeholder = "请输入订单号/手机号码搜索" />