Commit bd988dfd0d4a3668312aaaad9aa0bfaacd17d9f8
1 parent
009129b4
Exists in
master
and in
1 other branch
fix: 异常申诉
Showing
3 changed files
with
25 additions
and
23 deletions
Show diff stats
pages.json
| @@ -25,7 +25,8 @@ | @@ -25,7 +25,8 @@ | ||
| 25 | },{ | 25 | },{ |
| 26 | "path": "pages/order/detail", | 26 | "path": "pages/order/detail", |
| 27 | "style": { | 27 | "style": { |
| 28 | - "navigationBarTitleText": "详情" | 28 | + "navigationBarTitleText": "详情", |
| 29 | + "enablePullDownRefresh": true | ||
| 29 | } | 30 | } |
| 30 | },{ | 31 | },{ |
| 31 | "path": "pages/order/filter", | 32 | "path": "pages/order/filter", |
pages/order/detail.vue
| @@ -185,13 +185,14 @@ | @@ -185,13 +185,14 @@ | ||
| 185 | </view> | 185 | </view> |
| 186 | </view> | 186 | </view> |
| 187 | </view> | 187 | </view> |
| 188 | - <view v-if="item.waitHandleExceptionNumber" class="card"> | ||
| 189 | - <view class="card__header" style="margin-bottom: 0; padding-bottom: 0; border-bottom: none"> | 188 | + <view v-if="item.exceptionNumber" class="card"> |
| 189 | + <view class="card__header" style="margin-bottom: 0; padding-bottom: 0; border-bottom: none" @tap="toRisk"> | ||
| 190 | <view class="label"> 风控异常 </view> | 190 | <view class="label"> 风控异常 </view> |
| 191 | - <view class="action" @tap="toRisk"> | ||
| 192 | - <view class="color-red"> | 191 | + <view class="action"> |
| 192 | + <view v-if="item.waitHandleExceptionNumber" class="color-red"> | ||
| 193 | <u--text :text="item.waitHandleExceptionNumber + '个待处理异常'" suffixIcon="arrow-right"></u--text> | 193 | <u--text :text="item.waitHandleExceptionNumber + '个待处理异常'" suffixIcon="arrow-right"></u--text> |
| 194 | </view> | 194 | </view> |
| 195 | + <u-icon v-else name="arrow-right"></u-icon> | ||
| 195 | </view> | 196 | </view> |
| 196 | </view> | 197 | </view> |
| 197 | </view> | 198 | </view> |
| @@ -352,6 +353,9 @@ export default { | @@ -352,6 +353,9 @@ export default { | ||
| 352 | this.initData(options.code); | 353 | this.initData(options.code); |
| 353 | } | 354 | } |
| 354 | }, | 355 | }, |
| 356 | + onPullDownRefresh() { | ||
| 357 | + this.initData(this.item.code); | ||
| 358 | + }, | ||
| 355 | methods: { | 359 | methods: { |
| 356 | initData(code) { | 360 | initData(code) { |
| 357 | uni.$u.api.freightOrder.currentFreight({}).then(en => { | 361 | uni.$u.api.freightOrder.currentFreight({}).then(en => { |
| @@ -359,6 +363,7 @@ export default { | @@ -359,6 +363,7 @@ export default { | ||
| 359 | }); | 363 | }); |
| 360 | uni.$u.api.freightOrder.getDetail({ code }).then(res => { | 364 | uni.$u.api.freightOrder.getDetail({ code }).then(res => { |
| 361 | this.item = res.result || {}; | 365 | this.item = res.result || {}; |
| 366 | + uni.stopPullDownRefresh(); | ||
| 362 | }); | 367 | }); |
| 363 | }, | 368 | }, |
| 364 | toStartCar() { | 369 | toStartCar() { |
pages/order/risk-abnormal.vue
| @@ -5,46 +5,42 @@ | @@ -5,46 +5,42 @@ | ||
| 5 | <template v-for="(item, index) in list"> | 5 | <template v-for="(item, index) in list"> |
| 6 | <view class="risk-card" :key="index"> | 6 | <view class="risk-card" :key="index"> |
| 7 | <view class="risk-card__heard"> | 7 | <view class="risk-card__heard"> |
| 8 | - <view>异常编号:{{ item.orderCode }}</view> | 8 | + <view>异常类型:<render-dict dict="ONLINE_FREIGHT_RISK_EXCEPTION_TYPE" :value="item.exceptionType"></render-dict></view> |
| 9 | <view :style="{ color: statusColorMap[item.status] }"><render-dict dict="ONLINE_FREIGHT_RISK_EXCEPTION_STATUS" :value="item.status"></render-dict></view> | 9 | <view :style="{ color: statusColorMap[item.status] }"><render-dict dict="ONLINE_FREIGHT_RISK_EXCEPTION_STATUS" :value="item.status"></render-dict></view> |
| 10 | </view> | 10 | </view> |
| 11 | <view class="risk-card__body"> | 11 | <view class="risk-card__body"> |
| 12 | <view class="item"> | 12 | <view class="item"> |
| 13 | - <view class="item_field">异常类型</view> | ||
| 14 | - <view class="item_content"><render-dict dict="ONLINE_FREIGHT_RISK_EXCEPTION_TYPE" :value="item.exceptionType"></render-dict></view> | ||
| 15 | - </view> | ||
| 16 | - <view class="item"> | ||
| 17 | <view class="item_field">异常描述</view> | 13 | <view class="item_field">异常描述</view> |
| 18 | - <view class="item_content">{{ item.exceptionDesc }}</view> | 14 | + <view class="item_content">{{ item.exceptionDesc || '' }}</view> |
| 19 | </view> | 15 | </view> |
| 20 | <view class="item"> | 16 | <view class="item"> |
| 21 | <view class="item_field">异常时间</view> | 17 | <view class="item_field">异常时间</view> |
| 22 | - <view class="item_content" style="color: #999">{{ item.riskTime }}</view> | 18 | + <view class="item_content" style="color: #999">{{ item.riskTime || '' }}</view> |
| 23 | </view> | 19 | </view> |
| 24 | <template v-if="!['WAIT_HANDLE'].includes(item.status)"> | 20 | <template v-if="!['WAIT_HANDLE'].includes(item.status)"> |
| 25 | - <view class="item item-top-border"> | 21 | + <view v-if="item.complaintDesc" class="item item-top-border"> |
| 26 | <view class="item_field">申诉说明</view> | 22 | <view class="item_field">申诉说明</view> |
| 27 | - <view class="item_content">{{ item.complaintDesc }}</view> | 23 | + <view class="item_content">{{ item.complaintDesc || '' }}</view> |
| 28 | </view> | 24 | </view> |
| 29 | - <view class="item"> | 25 | + <view v-if="item.complaintTime" class="item"> |
| 30 | <view class="item_field">申诉时间</view> | 26 | <view class="item_field">申诉时间</view> |
| 31 | - <view class="item_content" style="color: #999">{{ item.complaintTime }}</view> | 27 | + <view class="item_content" style="color: #999">{{ item.complaintTime || '' }}</view> |
| 32 | </view> | 28 | </view> |
| 33 | - <view class="item"> | 29 | + <view v-if="item.complaintAttachment" class="item"> |
| 34 | <view class="item_field">申诉举证</view> | 30 | <view class="item_field">申诉举证</view> |
| 35 | <view class="item_content"> | 31 | <view class="item_content"> |
| 36 | - <text class="color-primary" @click="previewImage(item.complaintAttachment)">查看图片</text> | 32 | + <text v-if="item.complaintAttachment" class="color-primary" @click="previewImage(item.complaintAttachment)">查看图片</text> |
| 37 | </view> | 33 | </view> |
| 38 | </view> | 34 | </view> |
| 39 | </template> | 35 | </template> |
| 40 | - <view v-if="['FAIL'].includes(item.status)" class="err-item"> | ||
| 41 | - <view class="item"> | 36 | + <view v-if="item.auditTime || item.auditDesc" class="err-item"> |
| 37 | + <view v-if="item.auditDesc" class="item"> | ||
| 42 | <view class="item_field">审核说明</view> | 38 | <view class="item_field">审核说明</view> |
| 43 | - <view class="item_content">{{ item.auditDesc }}</view> | 39 | + <view class="item_content">{{ item.auditDesc || '' }}</view> |
| 44 | </view> | 40 | </view> |
| 45 | - <view class="item"> | 41 | + <view v-if="item.auditTime" class="item"> |
| 46 | <view class="item_field">审核时间</view> | 42 | <view class="item_field">审核时间</view> |
| 47 | - <view class="item_content">{{ item.auditTime }}</view> | 43 | + <view class="item_content">{{ item.auditTime || '' }}</view> |
| 48 | </view> | 44 | </view> |
| 49 | </view> | 45 | </view> |
| 50 | </view> | 46 | </view> |