diff --git a/api/api.js b/api/api.js index ec6e0c7..a51c63b 100644 --- a/api/api.js +++ b/api/api.js @@ -91,6 +91,18 @@ class Api { let url = `${config.host}/worker/abnormal/index`; return fetch.request('GET', url, {}, true) } + + // 获取订单异常详情 + static orderAbnormalInfo(data) { + let url = `${config.host}/worker/order_abnormal/info`; + return fetch.request('GET', url, data, true) + } + + // 上报异常 + static createOrderAbnormal(data) { + let url = `${config.host}/worker/order_abnormal/create`; + return fetch.request('postFrom', url, data, true) + } } export default Api diff --git a/pages/order/order-info.vue b/pages/order/order-info.vue index 74fe271..340e683 100644 --- a/pages/order/order-info.vue +++ b/pages/order/order-info.vue @@ -47,6 +47,12 @@ 客户备注 {{data.remark ? data.remark : '无备注信息'}} + + + + 上报异常 + + @@ -91,7 +97,7 @@ {{data.order_info.online_amount}}元抵扣{{data.order_info.discount_amount}}元 - + 尾款收款方 {{ data.offline_total_type === 1 ? '师傅收' : '公司收' }} @@ -164,6 +170,11 @@ const openLocation = () => { }); } +//上报异常 +const reportOrderException = (orderId) => { + helpers.jumpToPage('report-order-exception', `order_id=${orderId}`) +} + //完成上门 const arrivedOnSite = () => { helpers.jumpToPage('arrived-on-site', 'id=' + id.value) @@ -228,7 +239,7 @@ onShow(() => { const data = ref(null) const init = () => { uni.showLoading({ - title: '获取中' + title: '加载中' }); api.orderInfo({order_dispatch_id: id.value}).then(res => { data.value = res @@ -347,6 +358,19 @@ const previewImage = (url) => { line-height: 48rpx; } } + .report-order-exception { + width: 100%; + height: 80rpx; + .report-ctr { + width: 198rpx; + height: 64rpx; + border-radius: 8rpx; + .text { + font-size: 28rpx; + color: var(--importantColor); + } + } + } .images { width: 100%; position: relative; diff --git a/pages/order/report-order-exception.vue b/pages/order/report-order-exception.vue index f1407b0..b224e1f 100644 --- a/pages/order/report-order-exception.vue +++ b/pages/order/report-order-exception.vue @@ -1,23 +1,32 @@