Commit f62f1224 by cen

feat: 添加异常订单处理功能及相关组件

- 更新 env.js 中的 IP 地址和默认环境索引
- 新增 ErrorOrderPopup 组件用于展示异常订单信息
- 添加 ErrorOrderList 组件以支持异常订单的选择和状态管理
- 在 OrderScreen 和 OrderScreenContract 中集成异常订单列表
- 更新相关样式以改善用户体验
- 在 mixin 中添加获取异常订单锁单信息的逻辑
- 修改订单相关逻辑以支持异常订单的处理
1 parent df03b5e1
......@@ -602,4 +602,12 @@ module.exports = {
...data,
})
},
// 异常订单锁单信息查询
getAbnormalOrderLock(data = {}) {
return http.post({
method: 'dj.api.smartcarlife.goodsOrder.abnormalOrder.lock.select',
projectName: 'boutique',
...data
})
},
}
......@@ -22,7 +22,7 @@
.icon-ai { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.5379369138959932) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-appeal-record { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.1402387041773231);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.16027280477408354);}
.icon-arrow-bottom { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.340153452685422) calc(100vmin * (1173 / 768) * -0.13256606990622335);}
.icon-arrow-next { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
......@@ -56,9 +56,9 @@
.icon-change-account { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6483375959079284) calc(100vmin * (1173 / 768) * -0.6786018755328218);}
.icon-clone { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.3393009377664109);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.3593350383631714);}
.icon-collapse-all { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.355924978687127);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.37595907928388744);}
.icon-coupon-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6683716965046889) calc(100vmin * (1173 / 768) * -0.6786018755328218);}
.icon-coupon { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
......@@ -74,7 +74,7 @@
.icon-customer-2 { width: calc(100vmin * (1173 / 768) * 0.13640238704177324); height: calc(100vmin * (1173 / 768) * 0.13640238704177324);
background-position: calc(100vmin * (1173 / 768) * -0.14279624893435636) calc(100vmin * (1173 / 768) * -0.20758738277919864);}
.icon-customer-add { width: calc(100vmin * (1173 / 768) * 0.0068201193520886615); height: calc(100vmin * (1173 / 768) * 0.0068201193520886615);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.40345268542199486);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.42348678601875533);}
.icon-customer-detail { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.4411764705882353) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-customer-file-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
......@@ -84,7 +84,7 @@
.icon-customer-flow { width: calc(100vmin * (1173 / 768) * 0.12617220801364024); height: calc(100vmin * (1173 / 768) * 0.08994032395566923);
background-position: calc(100vmin * (1173 / 768) * -0.3674339300937766) calc(100vmin * (1173 / 768) * -0.09505541346973571);}
.icon-customer-list { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.1585677749360614);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.17860187553282184);}
.icon-daily-report { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.49701619778346123) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-day-points { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
......@@ -108,7 +108,7 @@
.icon-detail-btn { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.46462063086104005) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-dress-code { width: calc(100vmin * (1173 / 768) * 0.007246376811594203); height: calc(100vmin * (1173 / 768) * 0.007885763000852515);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.38917306052855927);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.4092071611253197);}
.icon-edit { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.7054560954816709);}
.icon-end-right { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
......@@ -116,7 +116,7 @@
.icon-equity-order { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.04731457800511509) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-equityClose { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.37254901960784315);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.39258312020460356);}
.icon-equityTip { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.020034100596760442) calc(100vmin * (1173 / 768) * -0.7054560954816709);}
.icon-evaluation-management { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
......@@ -142,7 +142,7 @@
.icon-feedback { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.18201193520886616);}
.icon-feedbackIcon { width: calc(100vmin * (1173 / 768) * 0.011082693947144074); height: calc(100vmin * (1173 / 768) * 0.011082693947144074);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.3052003410059676);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.3252344416027281);}
.icon-ffdyj-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.5115089514066496) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-filter { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
......@@ -162,7 +162,7 @@
.icon-fullScreen { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.16027280477408354) calc(100vmin * (1173 / 768) * -0.7054560954816709);}
.icon-green-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.17689684569479966);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.1969309462915601);}
.icon-home-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.050724637681159424) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-home { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063);
......@@ -226,7 +226,7 @@
.icon-logo { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662);
background-position: calc(100vmin * (1173 / 768) * -0.5647911338448423) calc(100vmin * (1173 / 768) * -0.10017050298380221);}
.icon-lssl-icon { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.19522591645353793);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.21526001705029837);}
.icon-mask-del { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.5034100596760444);}
.icon-mask-edit { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
......@@ -244,7 +244,7 @@
.icon-no-picture { width: calc(100vmin * (1173 / 768) * 0.021312872975277068); height: calc(100vmin * (1173 / 768) * 0.021312872975277068);
background-position: calc(100vmin * (1173 / 768) * -0.5370843989769821) calc(100vmin * (1173 / 768) * -0.35038363171355497);}
.icon-normal { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.21355498721227623);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.23358908780903667);}
.icon-notice-script { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.37851662404092073) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-notice-study { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
......@@ -344,7 +344,7 @@
.icon-role-2 { width: calc(100vmin * (1173 / 768) * 0.028985507246376812); height: calc(100vmin * (1173 / 768) * 0.028985507246376812);
background-position: calc(100vmin * (1173 / 768) * -0.2612958226768968) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-rule { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.2318840579710145);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.25191815856777494);}
.icon-scan { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.540920716112532) calc(100vmin * (1173 / 768) * -0.7054560954816709);}
.icon-scanIcon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
......@@ -396,7 +396,7 @@
.icon-study-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.2536231884057971) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-study-tips { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.25021312872975277);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.27024722932651324);}
.icon-study { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.30434782608695654) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-submit { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
......@@ -414,7 +414,7 @@
.icon-takePhotoIcon { width: calc(100vmin * (1173 / 768) * 0.02216538789428815); height: calc(100vmin * (1173 / 768) * 0.02216538789428815);
background-position: calc(100vmin * (1173 / 768) * -0.3252344416027281) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-task-pass { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.26854219948849106);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.2885763000852515);}
.icon-tdcj-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.42412617220801363) calc(100vmin * (1173 / 768) * -0.6786018755328218);}
.icon-time-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
......@@ -438,9 +438,9 @@
.icon-total { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.06010230179028133);}
.icon-two-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.3226768968456948);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.34271099744245526);}
.icon-up-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.2868712702472293);}
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.3069053708439898);}
.icon-upload-play { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.47101449275362317) calc(100vmin * (1173 / 768) * -0.6786018755328218);}
.icon-uploadAdd { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
......@@ -464,4 +464,6 @@
.icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.6065643648763853) calc(100vmin * (1173 / 768) * -0.6786018755328218);}
.icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.12020460358056266);}
\ No newline at end of file
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.12020460358056266);}
.icon-errortips { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.7357203751065644) calc(100vmin * (1173 / 768) * -0.1402387041773231);}
\ No newline at end of file

3 MB | W: | H:

3 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
<!-- 异常订单 -->
<template>
<view v-if="show" class="error-order-popup-mask" @click="handleMaskClick">
<view
class="error-order-popup-content"
:style="contentStyle"
@click.stop
>
<!-- 顶部图片 -->
<image
v-if="topImage"
class="top-image"
:src="topImage"
:style="topImageStyle"
/>
<view v-if="closeButton" @click.stop="closePopup">
<view class="sprite-icon icon-evaluationClose"></view>
</view>
<!-- 标题 -->
<view v-if="title" class="popup-title">{{ title }}</view>
<!-- 内容区域 - 默认插槽 -->
<view class="popup-body">
<slot></slot>
</view>
<!-- 底部按钮插槽 -->
<slot name="footer"></slot>
</view>
</view>
</template>
<script>
export default {
name: 'ErrorOrderPopup',
props: {
show: {
type: Boolean,
default: false
},
width: {
type: [Number, String],
default: 848
},
height: {
type: [Number, String],
default: 1054
},
title: {
type: String,
default: ''
},
topImage: {
type: String,
default: ''
},
topImageWidth: {
type: [Number, String],
default: 848
},
topImageHeight: {
type: [Number, String],
default: 248
},
maskClosable: {
type: Boolean,
default: false
},
closeButton: {
type: Boolean,
default: false
}
},
computed: {
contentStyle() {
return {
width: this.formatSize(this.width),
minHeight: this.formatSize(this.height)
}
},
topImageStyle() {
return {
width: this.formatSize(this.topImageWidth),
height: this.formatSize(this.topImageHeight)
}
}
},
methods: {
formatSize(size) {
return typeof size === 'number' ? `${size}rpx` : size
},
handleMaskClick() {
if (this.maskClosable) {
this.close()
}
},
close() {
this.$emit('update:show', false)
this.$emit('close')
},
closePopup() {
this.close()
}
}
}
</script>
<style lang="scss" scoped>
.error-order-popup-mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}
.error-order-popup-content {
background: #FFFFFF;
border-radius: toRpx(48);
display: flex;
flex-direction: column;
align-items: center;
position: relative;
max-height: toRpx(740);
overflow-y: auto;
}
.sprite-icon {
top: toRpx(48);
right: toRpx(48);
position: absolute;
}
.top-image {
width: 100%;
display: block;
margin-bottom: toRpx(48);
flex-shrink: 0;
border-radius: toRpx(20) toRpx(20) 0 0;
}
.popup-title {
font-size: toRpx(40);
font-weight: 500;
letter-spacing: 0;
line-height: toRpx(46.88);
color: rgba(51, 51, 51, 1);
text-align: center;
margin-bottom: toRpx(48);
padding: 0 toRpx(32);
}
.popup-body {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
padding: 0 toRpx(32);
}
</style>
\ No newline at end of file
<template>
<view
class="container"
@click="handleTouchStart"
>
<view class="container" @click="handleTouchStart">
<view :class="['home', { show: !id && showHome }]">
<left-side
:userInfo="userInfo"
:tabIndex.sync="tabIndex"
ref="leftBox"
@changeTab="changeTab"
@stopAudio="stopAudio"
@showReadCountTips="showReadCountTips"
@closeTips="closeTips"
@closeActivityCenter="closeActivityCenter"
/>
<view
class="tips-box"
:style="tipsObject.style"
@click.stop="closeTips"
>{{ tipsObject.text }}</view>
<left-side :userInfo="userInfo" :tabIndex.sync="tabIndex" ref="leftBox" @changeTab="changeTab"
@stopAudio="stopAudio" @showReadCountTips="showReadCountTips" @closeTips="closeTips"
@closeActivityCenter="closeActivityCenter" />
<view class="tips-box" :style="tipsObject.style" @click.stop="closeTips">{{ tipsObject.text }}</view>
<view class="right-side">
<view :class="['app-content-box right-content', { 'show-content-box': tabIndex == 0 }]">
<view
class="start"
@click="start"
>
<view class="start" @click="start">
<template v-if="sceneType != 7">
<view class="sprite-icon icon-start-text"></view>
</template>
......@@ -38,14 +21,9 @@
<slot name="swiperCustom" />
</template>
<template v-else>
<swiper-component
:moduleList="moduleList"
@click="swiperClick"
:stopAutoPlay="previewOff"
:imgKey="bannerKey"
:loadComplete="loadComplete"
:noDataObject="swiperNoDataObject"
></swiper-component>
<swiper-component :moduleList="moduleList" @click="swiperClick" :stopAutoPlay="previewOff"
:imgKey="bannerKey" :loadComplete="loadComplete"
:noDataObject="swiperNoDataObject"></swiper-component>
</template>
</view>
</view>
......@@ -59,36 +37,20 @@
<view class="content-right box-class">
<view class="common-title">服务中心</view>
<view class="content-box">
<MessageIndex
class="message-box"
ref="messageRef"
/>
<MessageIndex class="message-box" ref="messageRef" />
</view>
</view>
</view>
</view>
<view :class="['app-content-box right-content', { 'show-content-box': tabIndex == 99 }]">
<component
:is="'Point'"
ref="pointRef"
:userInfo="userInfo"
@showPage="handleShowPage"
/>
<component :is="'Point'" ref="pointRef" :userInfo="userInfo" @showPage="handleShowPage" />
</view>
<template v-if="tabIndex != 0 && tabIndex != 99">
<component
:is="componentName"
ref="pointRef"
:userInfo="userInfo"
@showPage="handleShowPage"
:isPermissionFunction="isPermission"
/>
<component :is="componentName" ref="pointRef" :userInfo="userInfo" @showPage="handleShowPage"
:isPermissionFunction="isPermission" />
</template>
</view>
<view
class="store-addr"
v-if="footerBox"
>
<view class="store-addr" v-if="footerBox">
<view class="icon-addr sprite-icon icon-addr"></view>
<view class="addr-text">{{ userInfo.shopMerchantName }}</view>
</view>
......@@ -96,41 +58,19 @@
<view :class="['detail', { show: id }]">
<slot name="detail" />
</view>
<view
class="point-page"
v-if="!showHome"
>
<component
:is="pointComponentName"
@backHome="backHome"
@jump="jump"
:transfer="transfer"
/>
<view class="point-page" v-if="!showHome">
<component :is="pointComponentName" @backHome="backHome" @jump="jump" :transfer="transfer" />
</view>
<!-- 未点击开始接待,弹窗 -->
<MessageBox
ref="previewRef"
@confirm="previewHandler('preview', true)"
:popupW="704"
content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText="预览素材"
@cancel="previewHandler('previewCancel')"
@close="previewHandler('previewClose')"
></MessageBox>
<MessageBox ref="previewRef" @confirm="previewHandler('preview', true)" :popupW="704"
content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」" confirmBtnText="预览素材" @cancel="previewHandler('previewCancel')"
@close="previewHandler('previewClose')"></MessageBox>
<!-- 停留弹框 -->
<!-- <MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> -->
<!-- 退出弹框 -->
<MessageBox
:popupW="704"
ref="finish"
:content="finishContene"
:isFooter="false"
>
<MessageBox :popupW="704" ref="finish" :content="finishContene" :isFooter="false">
<view class="footer">
<view
class="footer-btn confirm flex"
@click="$emit('openStep')"
>
<view class="footer-btn confirm flex" @click="$emit('openStep')">
<template v-if="finishDoneText">
{{ finishDoneText }}
</template>
......@@ -139,10 +79,7 @@
<text>(推荐)</text>
</template>
</view>
<view
class="footer-btn cancel flex"
@click="$emit('backHome')"
>
<view class="footer-btn cancel flex" @click="$emit('backHome')">
仍要退出
<text>(不推荐)</text>
</view>
......@@ -151,11 +88,7 @@
<!-- 升级弹框 -->
<update-box />
<slot name="content" />
<web-view
@message="handlerMessage"
ref="webview"
src="/hybrid/html/index.html"
></web-view>
<web-view @message="handlerMessage" ref="webview" src="/hybrid/html/index.html"></web-view>
<!-- <web-view
ref="studyWebview"
:src="jumpUrl"
......@@ -163,74 +96,35 @@
></web-view> -->
<!-- 学习中心 等级考试弹窗 -->
<StudyPopup
:show.sync="showStudyPopup"
title="开始您的学习之旅"
:topImage="require('@/assets/images/common/study-center-bg.png')"
:topImageWidth="848"
:topImageHeight="248"
>
<StudyPopupContent
cardTitle="个性化学习路径"
description="根据您当前的学习情况,我们将为您定制专属的学习计划,帮助您高效提升技能,实现职业突破。"
:listItems="['基于当前能力水平评估', '结合岗位发展目标制定', '定期跟踪学习进度和效果']"
tipText="true"
:courseName="courseInfo.title"
buttonText="开始测评"
@cancel="handleStudyPopupCancel"
@button-click="handleStartAssessment"
/>
<StudyPopup :show.sync="showStudyPopup" title="开始您的学习之旅"
:topImage="require('@/assets/images/common/study-center-bg.png')" :topImageWidth="848" :topImageHeight="248">
<StudyPopupContent cardTitle="个性化学习路径" description="根据您当前的学习情况,我们将为您定制专属的学习计划,帮助您高效提升技能,实现职业突破。"
:listItems="['基于当前能力水平评估', '结合岗位发展目标制定', '定期跟踪学习进度和效果']" tipText="true" :courseName="courseInfo.title"
buttonText="开始测评" @cancel="handleStudyPopupCancel" @button-click="handleStartAssessment" />
</StudyPopup>
<!-- 考试提交确认弹窗 -->
<StudyPopup
:show.sync="showExamPopup"
title=""
:width="848"
:height="examPopInfo.isExamLoading ? 740 : 656"
:topImage="require('@/assets/images/common/warning-notice.png')"
:topImageWidth="848"
:topImageHeight="248"
>
<ExamSubmitPopup
:isLoading="examPopInfo.isExamLoading"
:showError="examPopInfo.showError"
:confirmText="examPopInfo.confirmText"
@cancel="handleExamCancel"
@confirm="handleExamConfirm"
/>
<StudyPopup :show.sync="showExamPopup" title="" :width="848" :height="examPopInfo.isExamLoading ? 740 : 656"
:topImage="require('@/assets/images/common/warning-notice.png')" :topImageWidth="848" :topImageHeight="248">
<ExamSubmitPopup :isLoading="examPopInfo.isExamLoading" :showError="examPopInfo.showError"
:confirmText="examPopInfo.confirmText" @cancel="handleExamCancel" @confirm="handleExamConfirm" />
</StudyPopup>
<!-- 学习中心权限弹窗 -->
<StudyPopup
:show.sync="showStudyPermissionPopup"
title=""
:width="848"
:height="870"
:topImage="require('@/assets/images/common/warning-notice.png')"
:topImageWidth="848"
:topImageHeight="248"
style="overflow: hidden"
>
<StudyCenterPermissionPopup
:lockReason="lockReason"
@confirm="handleStudyPermissionConfirm"
/>
<StudyPopup :show.sync="showStudyPermissionPopup" title="" :width="848" :height="870"
:topImage="require('@/assets/images/common/warning-notice.png')" :topImageWidth="848" :topImageHeight="248"
style="overflow: hidden">
<StudyCenterPermissionPopup :lockReason="lockReason" @confirm="handleStudyPermissionConfirm" />
</StudyPopup>
<activity-popup
ref="activityPopup"
@JumpActivityCenter="JumpActivityCenter"
></activity-popup>
<uni-popup
ref="errorRef"
type="message"
>
<uni-popup-message
type="error"
:message="errorMsg"
:duration="1500"
></uni-popup-message>
<activity-popup ref="activityPopup" @JumpActivityCenter="JumpActivityCenter"></activity-popup>
<uni-popup ref="errorRef" type="message">
<uni-popup-message type="error" :message="errorMsg" :duration="1500"></uni-popup-message>
</uni-popup>
<!-- 异常订单锁单 -->
<ErrorOrderPopup :show.sync="showErrorOrderPopup" title="" :width="848" :height="870"
:topImage="require('@/assets/images/common/warning-notice.png')" :topImageWidth="848" :topImageHeight="248"
style="overflow: hidden">
</ErrorOrderPopup>
</view>
</template>
<script>
......@@ -267,6 +161,7 @@ import StudyPopupContent from '@/components/StudyPopupContent.vue'
import ExamSubmitPopup from '@/components/ExamSubmitPopup.vue'
import StudyCenterPermissionPopup from '@/components/StudyCenterPermissionPopup.vue'
import ActivityPopup from './components/ActivityPopup.vue'
import ErrorOrderPopup from '@/components/ErrorOrderPopup.vue'
export default {
mixins: [recorder, uploader, timeout, versionCheck, merge, interceptionMixin],
components: {
......@@ -293,7 +188,8 @@ export default {
ExamSubmitPopup,
StudyCenterPermissionPopup,
ActivityCenter,
ActivityPopup
ActivityPopup,
ErrorOrderPopup
},
props: {
id: [String, Number],
......@@ -315,7 +211,7 @@ export default {
},
swiperCustom: Boolean
},
data () {
data() {
return {
studyUrl: '',
jumpUrl: '',
......@@ -341,16 +237,17 @@ export default {
title: ''
},
lockReason: 0,
errorMsg: ''
errorMsg: '',
showErrorOrderPopup: false
}
},
beforeDestroy () {
beforeDestroy() {
// 组件销毁前移除监听
uni.$logger.local.info('levelStudyPopup 移除监听')
uni.$off('levelStudyPopup')
// uni.$off('showStudyPopup')
},
mounted () {
mounted() {
uni.$logger.local.info('levelStudyPopup 开始监听mounted')
uni.$on('levelStudyPopup', obj => {
uni.$logger.local.info('接收到学习弹窗事件', obj)
......@@ -360,34 +257,34 @@ export default {
this.userInfo = userInfo
if (this.checkRecordAudio) permision.requestAndroidPermission('android.permission.RECORD_AUDIO') // 进入界面时检查权限
},
provide () {
provide() {
return {
showPage: this.handleShowPage,
hideFooter: this.handleFooter
}
},
computed: {
previewRef () {
previewRef() {
return this.$refs.previewRef
},
finishRef () {
finishRef() {
return this.$refs.finish
},
componentName () {
componentName() {
let tabs = this.$refs.leftBox?.tabs
return tabs ? tabs[this.tabIndex].name : ''
},
sceneType () {
sceneType() {
const { sceneType } = uni.$storage.get('userInfo')
return sceneType
},
activityWindowPopStatus () {
activityWindowPopStatus() {
return this.$store.getters.activityWindowPopStatus
},
},
watch: {
activityWindowPopStatus: {
handler (val) {
handler(val) {
const { id, tabIndex } = this
if (val == 2 && !id && tabIndex == 0) this.getActivityMessage()
},
......@@ -397,7 +294,7 @@ export default {
},
methods: {
// 处理开始测评(参考 detail.vue 的实现)
async handleStartAssessment () {
async handleStartAssessment() {
this.showStudyPopup = false
try {
// 获取北森 token
......@@ -443,7 +340,7 @@ export default {
}
},
// 获取北森 SSO Token(参考 detail.vue 的方法)
findBeiSenSSOToken () {
findBeiSenSSOToken() {
return new Promise((resolve, reject) => {
uni.$api.commonApi
.findBeiSenSSOToken({})
......@@ -457,7 +354,7 @@ export default {
})
},
// 处理考试取消(用户选择未提交)
handleExamCancel () {
handleExamCancel() {
this.showExamPopup = false
this.examPopInfo = {
isExamLoading: false,
......@@ -466,7 +363,7 @@ export default {
}
this.getLevelExamInfo()
},
handleStudyPermissionConfirm () {
handleStudyPermissionConfirm() {
this.showStudyPermissionPopup = false
// 切换到学习中心 tab
const tabs = this.$refs.leftBox?.tabs
......@@ -479,7 +376,7 @@ export default {
}
},
// 处理学习弹窗取消
handleStudyPopupCancel () {
handleStudyPopupCancel() {
this.showStudyPopup = false
// 切换到学习中心 tab
const tabs = this.$refs.leftBox?.tabs
......@@ -492,7 +389,7 @@ export default {
}
},
// 检查学习中心权限
async checkStudyCenterPermission () {
async checkStudyCenterPermission() {
try {
const userInfo = uni.$storage.get('userInfo')
......@@ -526,7 +423,7 @@ export default {
}
},
// 处理考试确认(用户选择已提交)
async handleExamConfirm () {
async handleExamConfirm() {
this.examPopInfo.isExamLoading = true
this.examPopInfo.showError = false
const { examId, levelExamId } = this.courseInfo
......@@ -569,7 +466,7 @@ export default {
})
}
},
async changeTab ({ item, index }) {
async changeTab({ item, index }) {
if (index == 0) this.$refs.messageRef.getMessageSummary()
this.previewOff = index != 0
this.$emit('changeTab', index)
......@@ -580,23 +477,23 @@ export default {
}
},
// 查询等级弹窗信息
async getLevelExamInfo () {
async getLevelExamInfo() {
const res = await uni.$api.commonApi.startExam()
if (res) {
this.showStudyPopup = true
this.courseInfo = res
}
},
handleFooter (val) {
handleFooter(val) {
this.footerBox = val
},
backHome () {
backHome() {
this.showHome = true
Promise.resolve().then(() => {
this.$refs.pointRef?.$refs?.centerRef?.init && this.$refs.pointRef.$refs.centerRef.init()
})
},
jump (val) {
jump(val) {
this.showHome = true
if (val == 'CustomerFile') {
this.tabIndex = 2
......@@ -604,12 +501,12 @@ export default {
}
this.start()
},
handleShowPage (name, transfer) {
handleShowPage(name, transfer) {
this.transfer = transfer
this.showHome = false
this.pointComponentName = name
},
handleOperation (val, data) {
handleOperation(val, data) {
const { type } = val
// 提取公共的webview设置逻辑
......@@ -679,21 +576,21 @@ export default {
}
},
// 学习中心修改阅读状态,打开后才修改
async getStudyCenterRead (id) {
async getStudyCenterRead(id) {
const res = await uni.$api.commonApi.getStudyCenterRead({ id })
},
showReadCountTips (res) {
showReadCountTips(res) {
this.tipsObject = res
},
closeTips () {
closeTips() {
this.$refs.leftBox.readCount = 0
this.tipsObject = {
style: '',
text: ''
}
},
swiperClick (e) {
swiperClick(e) {
if (this.sceneType == 0)
uni.$track.add({
eventCode: 'app_product_Introduction'
......@@ -701,11 +598,11 @@ export default {
this.previewOff = true
this.$emit('swiperClick', e)
},
previewHandler (name, off = false) {
previewHandler(name, off = false) {
this.previewOff = off
this.$emit(name)
},
start () {
start() {
const { sceneType } = this
if (sceneType == 7) return //二手车无接待功能
uni.$track.add({
......@@ -713,11 +610,11 @@ export default {
})
this.$emit('start')
},
async updateApp (requested = false) {
async updateApp(requested = false) {
if (!requested) await uni.$api.systemApi.getMockData(true)
this.checkVersion()
},
async entranceClick (item) {
async entranceClick(item) {
console.log(item, 'item')
// 清除评估单的图片视频资源缓存
const noInterceptPage = ['DailyReport', 'DeliveryManagement', 'ReportManagement'],
......@@ -732,6 +629,13 @@ export default {
this.lockReason = res.lockReason
return
}
// 检查是否锁单
const abnormalOrderLock = await this.getAbnormalOrderLock()
if (abnormalOrderLock) {
this.showErrorOrderPopup = true
// this.lockReason = abnormalOrderLock.lockReason
return
}
}
if (await this.checkDailyReport(sceneType != 7)) return
}
......@@ -767,7 +671,7 @@ export default {
url: `/pages/${pageName}/tool/index?componentName=${item.name}`
})
},
async getActivityMessage () {
async getActivityMessage() {
this.$store.dispatch('setActivityWindowPopCount', 0)
const { sceneType } = this
if (sceneType == 7) return // 二手车业务无活动中心
......@@ -776,10 +680,10 @@ export default {
})
if (data) this.$refs.activityPopup.open(data)
},
closeActivityCenter () {
closeActivityCenter() {
this.$refs.activityPopup.close()
},
async JumpActivityCenter (data) {
async JumpActivityCenter(data) {
const { activityId } = data,
{ shopMerchantId } = uni.$storage.get('userInfo'),
{ sceneType } = this,
......@@ -788,7 +692,7 @@ export default {
id: activityId,
merchantId: shopMerchantId
})
if (!res){
if (!res) {
this.errorMsg = '暂无该活动查看权限'
this.$refs.errorRef.open()
}
......@@ -800,6 +704,7 @@ export default {
<style scoped lang="scss">
.container {
position: relative;
.tips-box {
position: absolute;
color: #ffffff;
......@@ -815,6 +720,7 @@ export default {
display: none;
opacity: 0;
}
&::after {
content: '';
position: absolute;
......@@ -826,6 +732,7 @@ export default {
background-size: 100% 100%;
z-index: 1;
}
.home,
.detail {
position: fixed;
......@@ -837,6 +744,7 @@ export default {
visibility: hidden;
opacity: 0;
}
.point-page {
position: fixed;
width: 100%;
......@@ -845,10 +753,12 @@ export default {
top: 0;
left: 0;
}
.home {
display: flex;
height: 100vh;
position: relative;
.store-addr {
position: absolute;
left: 50%;
......@@ -856,11 +766,13 @@ export default {
transform: translateX(-50%);
display: flex;
align-items: center;
.icon-addr {
width: toRpx(32);
height: toRpx(32);
flex-shrink: 0;
}
.addr-text {
font-size: toRpx(24);
color: #999999;
......@@ -870,6 +782,7 @@ export default {
margin-left: toRpx(4);
flex-shrink: 0;
}
&::before,
&::after {
content: '';
......@@ -878,14 +791,17 @@ export default {
margin: 0 toRpx(40);
}
&::before {
background-image: linear-gradient(270deg, #eeeeee 0%, #d8d8d800 100%);
}
&::after {
background-image: linear-gradient(90deg, #eeeeee 0%, #d8d8d800 100%);
}
}
}
.show {
opacity: 1;
position: absolute;
......@@ -894,10 +810,12 @@ export default {
animation: show-content-left 0.15s forwards;
}
}
@keyframes show-content-left {
0% {
left: 100%;
}
100% {
left: 0;
}
......@@ -907,6 +825,7 @@ export default {
flex: 1;
position: relative;
width: calc(100vw - #{toRpx(240)});
.right-content {
height: 100vh;
box-sizing: border-box;
......@@ -914,14 +833,17 @@ export default {
animation: show-box 0.15s forwards;
overflow: hidden;
}
@keyframes show-box {
0% {
left: 100%;
}
100% {
left: 0;
}
}
.start {
height: toRpx(232);
box-sizing: border-box;
......@@ -932,16 +854,19 @@ export default {
padding-top: toRpx(60);
display: flex;
justify-content: center;
.sprite-icon {
zoom: 2;
}
}
.right-content-box {
width: 100%;
height: calc(100% - #{toRpx(232)});
gap: toRpx(48);
box-sizing: border-box;
padding: toRpx(32) 0 toRpx(80);
.box-class {
background: #ffffff59;
backdrop-filter: blur(toRpx(16));
......@@ -949,38 +874,47 @@ export default {
border-radius: toRpx(48);
overflow: hidden;
}
.content-box {
position: relative;
width: 100%;
height: calc(100% - #{toRpx(120)});
.message-box {
height: 100%;
}
}
.content-left,
.content-right {
height: 100%;
flex-shrink: 0;
}
.content-left {
width: toRpx(1210);
.module-box {
height: toRpx(664);
margin-bottom: toRpx(48);
}
.tool-box {
height: calc(100% - #{toRpx(712)});
.content-box {
width: calc(100% - #{toRpx(96)});
margin: 0 toRpx(48);
}
}
}
.content-right {
width: calc(100% - #{toRpx(1322)});
// width: toRpx(800);
}
}
.app-content-box {
width: 100%;
position: absolute;
......@@ -989,20 +923,24 @@ export default {
opacity: 0;
z-index: -999;
}
.show-content-box {
opacity: 1;
z-index: 1;
}
}
.footer {
border-top: toRpx(2) solid #eff0f2;
font-weight: 600;
font-size: toRpx(32);
margin-top: toRpx(48);
.footer-btn {
justify-content: center;
margin: toRpx(16) auto 0;
}
.confirm {
width: toRpx(608);
height: toRpx(80);
......@@ -1010,6 +948,7 @@ export default {
border-radius: toRpx(40);
color: #fff;
}
.cancel {
width: toRpx(608);
height: toRpx(80);
......@@ -1017,10 +956,12 @@ export default {
border-radius: toRpx(40);
color: #2c66f7;
}
text {
font-size: toRpx(24);
}
}
.lead-page {
height: 100vh;
width: 100vw;
......
<template>
<view class="list">
<view
@click="currentId = ''"
:class="['item flex',{active:!currentId}]"
>
<view class="sprite-icon icon-tag-checked"></view>
全部
</view>
<template v-for="(i, index) in list">
<view
:key="index"
@click="currentId = i.value"
:class="['item flex',{active:currentId == i.value}]"
>
<view class="sprite-icon icon-tag-checked"></view>
{{i.name}}
</view>
</template>
</view>
</template>
<script type='text/ecmascript-6'>
const errorOrderList = [{
name: '无异常',
value: "N"
},
{
name: '异常',
value: 'Y'
}
]
export default {
name: 'PayList',
inject: ['userInfo'],
data () {
return {
list: [],
currentId: '',
}
},
props: {
params: Object,
data: [Object, Array],
},
watch: {
currentId: {
handler (value) {
let { params: { idKey } } = this
this.$emit('choose', {
key: idKey,
value
})
},
deep: true
}
},
mounted () {
this.getList()
},
methods: {
async getList () {
const { userInfo, params } = this,
{ cacheData } = params
if (cacheData && cacheData.length) {
this.initList(cacheData)
return
}
this.initList(errorOrderList)
params.cacheData = errorOrderList
this.$emit('update:params', params)
},
initList (list) {
this.list = list
let { data, params: { idKey } } = this
this.currentId = data[idKey]
this.$emit('onComplete')
},
}
}
</script>
<style scoped lang='scss'>
.list {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: toRpx(32);
margin: 0 toRpx(48);
.item {
justify-content: center;
height: toRpx(72);
border-radius: toRpx(8);
border: toRpx(2) solid #dce0e6;
box-sizing: border-box;
position: relative;
color: #333333;
font-size: toRpx(32);
.sprite-icon {
display: none;
position: absolute;
top: 0;
right: 0;
}
}
.splice {
color: #333333;
font-size: toRpx(32);
margin: 0 toRpx(8);
}
.active {
border-color: #2c66f7;
background: #ecf1ff;
color: #2c66f7;
.sprite-icon {
display: block;
}
}
}
</style>
\ No newline at end of file
......@@ -56,7 +56,7 @@ export default {
id: 7
},
{
name: '已失效',
name: '错误订单',
value: [11],
id: 8
},
......
......@@ -46,9 +46,9 @@ const screenList = [
},
{
title: '异常标记',
componentName: 'OrderStatusList',
componentName: 'ErrorOrderList',
params: {
idKey: 'statusList'
idKey: 'abnormalFlag'
}
},
{
......
......@@ -73,6 +73,7 @@ import TimeList from './components/TimeList.vue'
import OrderStatusList from './components/OrderStatusList.vue'
import PayList from './components/PayList.vue'
import CourseOptionList from './components/CourseOptionList.vue'
import ErrorOrderList from './components/ErrorOrderList.vue'
export default {
components: {
Popup,
......@@ -80,7 +81,8 @@ export default {
TimeList,
OrderStatusList,
PayList,
CourseOptionList
CourseOptionList,
ErrorOrderList
},
name: 'OrderScreen',
props: {
......
<template>
<view class="list">
<view
@click="currentId = ''"
:class="['item flex',{active:!currentId}]"
>
<view class="sprite-icon icon-tag-checked"></view>
全部
</view>
<template v-for="(i, index) in list">
<view
:key="index"
@click="currentId = i.value"
:class="['item flex',{active:currentId == i.value}]"
>
<view class="sprite-icon icon-tag-checked"></view>
{{i.name}}
</view>
</template>
</view>
</template>
<script type='text/ecmascript-6'>
const errorOrderList = [{
name: '无异常',
value: "N"
},
{
name: '异常',
value: 'Y'
}
]
export default {
name: 'PayList',
inject: ['userInfo'],
data () {
return {
list: [],
currentId: '',
}
},
props: {
params: Object,
data: [Object, Array],
},
watch: {
currentId: {
handler (value) {
let { params: { idKey } } = this
this.$emit('choose', {
key: idKey,
value
})
},
deep: true
}
},
mounted () {
this.getList()
},
methods: {
async getList () {
const { userInfo, params } = this,
{ cacheData } = params
if (cacheData && cacheData.length) {
this.initList(cacheData)
return
}
this.initList(errorOrderList)
params.cacheData = errorOrderList
this.$emit('update:params', params)
},
initList (list) {
this.list = list
let { data, params: { idKey } } = this
this.currentId = data[idKey]
this.$emit('onComplete')
},
}
}
</script>
<style scoped lang='scss'>
.list {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: toRpx(32);
margin: 0 toRpx(48);
.item {
justify-content: center;
height: toRpx(72);
border-radius: toRpx(8);
border: toRpx(2) solid #dce0e6;
box-sizing: border-box;
position: relative;
color: #333333;
font-size: toRpx(32);
.sprite-icon {
display: none;
position: absolute;
top: 0;
right: 0;
}
}
.splice {
color: #333333;
font-size: toRpx(32);
margin: 0 toRpx(8);
}
.active {
border-color: #2c66f7;
background: #ecf1ff;
color: #2c66f7;
.sprite-icon {
display: block;
}
}
}
</style>
\ No newline at end of file
......@@ -65,7 +65,12 @@ export default {
name: '战败',
value: -1,
id: 11
}
},
{
name: '审批中',
value: [14],
id: 12
},
]),
currentId: '',
}
......
......@@ -45,6 +45,13 @@ const screenList = [
}
},
{
title: '异常标记',
componentName: 'ErrorOrderList',
params: {
idKey: 'abnormalFlag'
}
},
{
title: '支付方式',
componentName: 'PayList',
params: {
......
......@@ -37,6 +37,7 @@ import OrderStatusList from './components/OrderStatusList.vue'
import PayList from './components/PayList.vue'
import CourseOptionList from './components/CourseOptionList.vue'
import ContractList from './components/ContractList.vue'
import ErrorOrderList from './components/ErrorOrderList.vue'
export default {
components: {
Popup,
......@@ -45,7 +46,8 @@ export default {
OrderStatusList,
PayList,
CourseOptionList,
ContractList
ContractList,
ErrorOrderList
},
name: 'OrderScreen',
props: {
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 0
const index = 1
/**
*
0本地
......@@ -50,7 +50,7 @@ const domain = {
const djDomain = {
// ip: 'http://dj.dev.glsx.com.cn',
ip: 'http://192.168.1.76:8292',
ip: 'http://192.168.1.122:8292',
dev: 'http://dj.dev.glsx.com.cn',
beta: 'https://dj.beta.glsx.com.cn', //预发布 appid: wx9f91c1ec493eb425
uat: 'https://dj.test.glsx.com.cn', //测试 appid: wxe10067a63c1856ac
......
......@@ -256,5 +256,12 @@ export default {
console.log(data, '限制录单')
return Promise.resolve(data)
},
async getAbnormalOrderLock () {
const data = await uni.$api.commonApi.getAbnormalOrderLock()
if (data)
console.log(data, '异常订单锁单信息')
const isLock = data.lockOrderFlag == "Y" ? true:false
return Promise.resolve(isLock)
},
}
}
......@@ -39,12 +39,23 @@
</view>
</view>
</view>
<view class="flex errorBox" v-if="orderCardDetail.status == 11">
<view class="order-list align-center flex-1">
<text>原错误订单编号</text>
<text>{{ orderCardDetail.associatedOrderCode }}</text>
</view>
<view class="order-list align-center flex-1">
<text>原错误订单总价</text>
<text>¥2560</text>
</view>
</view>
<!-- 支付方式 -->
<view class="order-payType flex">
<view class="payType flex align-center">
<view class="payType-label">订单类型</view>
<view class="payType-value flex align-center">
{{ payType[orderCardDetail['selectPayType']] }}
<view class="flex align-center errorTips" v-if="orderCardDetail.abnormalFlag == 'Y'"><view class="sprite-icon icon-errortips"></view>异常</view>
</view>
</view>
......@@ -462,6 +473,20 @@ export default {
border-radius: toRpx(4);
border: toRpx(1) solid transparent;
}
.errorBox {
background: #f7f8fa;
border-radius: toRpx(16);
padding: toRpx(16) toRpx(24);
color: #999ea8;
font-size: toRpx(24);
margin-bottom: toRpx(20);
}
.errorTips {
color: #eb4e4e;
font-size: toRpx(24);
font-weight: 400;
margin-left: toRpx(16);
}
.info-box {
display: flex;
......
......@@ -113,9 +113,9 @@ module.exports = {
background: '#FFF5E6'
},
11: {
text: '已失效',
color: '#8F959E',
background: ' #F3F4F5'
text: '错误订单',
color: '#F59619',
background: ' #FFF6EB'
},
10: {
text: '已关闭',
......@@ -183,7 +183,7 @@ module.exports = {
value: [10]
},
{
name: '已失效',
name: '错误订单',
value: [11]
}
],
......@@ -194,7 +194,14 @@ module.exports = {
1: '审批中', //区域运营待审核
2: '审批中', //线上运营待审核
3: '审核通过',
4: '驳回'
4: '审批驳回'
},
orderType: {
1: '正常订单',
2: '打折策略',
3: '买赠策略',
4: '冲量活动',
5: '组合付款'
}
}
}
......@@ -584,8 +584,16 @@ export default {
if (data) {
console.log(`类型为:${selectPayType}`)
console.log(this.orderInfo)
console.log(data,'data')
if (selectPayType == 3 || selectPayType == 1) {
this.orderInfo.payOrder.outTradeNo = data.outTradeNo
// 确保 orderInfo 和 payOrder 对象存在,避免空指针错误
if (!this.orderInfo) {
this.orderInfo = {}
}
if (!this.orderInfo.payOrder) {
this.$set(this.orderInfo, 'payOrder', {})
}
this.$set(this.orderInfo.payOrder, 'outTradeNo', data.outTradeNo)
let size = 0
try {
const info = uni.getSystemInfoSync()
......
......@@ -898,7 +898,7 @@ export default {
return
}
if (!(await this.checkDailyReport())) {
if (!(await this.checkDailyReport()) &&!(await this.getAbnormalOrderLock())) {
const { orderCreateType } = this
const obj = utils.deepClone(this.orderObj)
const otherCustomer = ['standNo', 'plateNumber', 'customerSex', 'experienceFlag', 'salesType']
......
......@@ -214,7 +214,20 @@ module.exports = {
'-1': { text: '战败', color: '#F24724', background: '#FDECE9' },
9: { text: '已撤销', color: '#999999', background: 'rgba(153, 153, 153, 0.1)' },
11: { text: '已失效', color: '#F7A431', background: '#FFF5E6' },
6: { text: '已退款', color: '#F7A431', background: '#FFF5E6' }
6: { text: '已退款', color: '#F7A431', background: '#FFF5E6' },
14: { text: '审批中', color: '#FF9D0A', background: '#FFF5E6' }
},
goodsOrderApplyStatus: {
0: '审批中', //区域运营待审核
1: '审批通过', //线上运营待审核
2: '审批驳回',
},
orderType: {
1: '正常订单',
2: '打折策略',
3: '买赠策略',
4: '冲量活动',
5: '组合付款'
}
}
}
......@@ -192,6 +192,26 @@ export default {
orderObj.price = this.divideByHundred(owner.price)
orderObj.insurancePrice = this.divideByHundred(insurancePrice)
orderObj.quotedPriceUpdate = this.divideByHundred(quotedPriceUpdate)
// 回显订单类型(orderType:1 正常订单,2 打折策略,3 买赠策略,4 冲量活动,5 组合付款)
const orderTypeCode = data.orderType ? String(data.orderType) : this.orderObj.orderTypeCode || ''
if (orderTypeCode) {
const orderTypeMap = {
'1': '正常订单',
'2': '打折策略',
'3': '买赠策略',
'4': '冲量活动',
'5': '组合付款'
}
orderObj.orderTypeCode = orderTypeCode
orderObj.djOrderType = orderTypeMap[orderTypeCode] || ''
// 回显表单中“订单类型”这一行的展示文案
const orderTypeCell = this.formList[3]?.find(item => item.value === 'djOrderType')
if (orderTypeCell) {
orderTypeCell.current = orderObj.djOrderType
}
}
if (!data.vdQuotationGoodsList) data.vdQuotationGoodsList = []
orderObj.vdQuotationGoodsList = data.vdQuotationGoodsList.map(item => {
item.price = this.divideByHundred(item.goodsPrice)
......@@ -223,6 +243,63 @@ export default {
if (e.value == 'salesType') e.current = owner.salesType
if (e.value == 'ownerGender') e.current = owner.ownerGender
})
// 根据 discountType / discountValue / finalPrice 回显策略配置
const buildStrategyConfigFromDiscountFields = (item, orderTypeCode) => {
const orderType = String(orderTypeCode || '')
const discountType = item.discountType !== undefined && item.discountType !== null ? Number(item.discountType) : null
const discountValue = item.discountValue
// 打折策略
if (orderType === '2') {
if (discountType === 1 && discountValue !== undefined && discountValue !== null && discountValue !== '') {
return {
mode: 'ratio',
discountRatio: discountValue,
discountAmount: ''
}
}
if (discountType === 2 && discountValue !== undefined && discountValue !== null && discountValue !== '') {
return {
mode: 'amount',
discountRatio: '',
discountAmount: discountValue
}
}
// 无折扣
return {
mode: 'none',
discountRatio: '',
discountAmount: ''
}
}
// 买赠策略
if (orderType === '3') {
// 4:赠品,5:非赠品
const isGift = discountType === 4 ? '1' : '0'
return {
isGift
}
}
// 组合付款
if (orderType === '5') {
if (discountValue !== undefined && discountValue !== null && discountValue !== '') {
return {
mode: 'deduct',
deductAmount: discountValue
}
}
return {
mode: 'none',
deductAmount: ''
}
}
return {}
}
orderObj.skuGoods = data.vdQuotationGoodsList.reduce((pre, item) => {
// 是普通商品
if (!item.packageName && !item.specificationsValue) {
......@@ -233,6 +310,14 @@ export default {
upgradeGoodsId: item.goodsId,
merchantGoodsId: item.goodsId,
sellPrice: this.divideByHundred(item.goodsPrice),
// 数量回显(默认 1)
number: item.number || 1,
// 回显优惠相关字段
discountType: item.discountType,
discountValue: item.discountValue,
finalPrice: item.finalPrice,
// 根据折扣字段还原策略配置
strategyConfig: buildStrategyConfigFromDiscountFields(item, orderObj.orderTypeCode),
minSellPrice: quotationGoodsList?.find(val => val?.goods?.merchantGoodsId == item.goodsId)?.goods?.minSellPrice, // 按商品数据对比补充详情商品最低价
validMinSellPrice: quotationGoodsList?.find(val => val?.goods?.merchantGoodsId == item.goodsId)?.goods?.validMinSellPrice // 按商品数据对比补充详情商品校验最低价字段
}
......@@ -249,7 +334,12 @@ export default {
merchantGoodsId: item.goodsId,
upgradeGoodsId: item.goodsId,
sellPrice: this.divideByHundred(item.goodsPrice),
number: 1,
number: item.number || 1,
// 回显优惠相关字段
discountType: item.discountType,
discountValue: item.discountValue,
finalPrice: item.finalPrice,
strategyConfig: buildStrategyConfigFromDiscountFields(item, orderObj.orderTypeCode),
minSellPrice: quotationGoodsList?.find(val => val.packageGoods?.goodsList?.length && val.packageGoods?.packageCode == item?.packageId)?.packageGoods?.goodsList?.find(subV => subV.merchantGoodsId == item.goodsId)?.minSellPrice, // 按商品数据对比补充详情商品最低价
validMinSellPrice: quotationGoodsList?.find(val => val.packageGoods?.goodsList?.length && val.packageGoods?.packageCode == item?.packageId)?.packageGoods?.goodsList?.find(subV => subV.merchantGoodsId == item.goodsId)?.validMinSellPrice // 按商品数据对比补充详情商品校验最低价字段
}
......@@ -280,7 +370,14 @@ export default {
}
//多规格商品
if (!item.packageName && item.specificationsValue) {
let specificdata = this.handleSpecificationsEcho(item)
// 将折扣相关字段传递给多规格处理
let specificdata = this.handleSpecificationsEcho({
...item,
discountType: item.discountType,
discountValue: item.discountValue,
finalPrice: item.finalPrice,
orderTypeCode: orderObj.orderTypeCode
})
pre = pre.concat(specificdata)
}
......@@ -875,7 +972,10 @@ export default {
item = item.goods
const sellPrice = parseFloat(item.sellPrice || 0)
const number = parseInt(item.number || 1)
const finalPrice = item.finalPrice !== undefined ? parseFloat(item.finalPrice) / 100 : this.calculateFinalPrice(item, sellPrice, number, orderInfo.orderTypeCode)
// finalPrice 存在时为“分”,但可能为 null(表示无优惠)
// 仅当 finalPrice 不为 null 且是有效数字时才使用它,否则重新根据策略计算
const hasValidFinalPrice = item.finalPrice !== undefined && item.finalPrice !== null && !isNaN(parseFloat(item.finalPrice))
const finalPrice = hasValidFinalPrice ? parseFloat(item.finalPrice) / 100 : this.calculateFinalPrice(item, sellPrice, number, orderInfo.orderTypeCode)
const discountFields = this.calculateDiscountFields(item, sellPrice, number, orderInfo.orderTypeCode)
const obj = {
goodsId: item.merchantGoodsId,
......@@ -896,7 +996,8 @@ export default {
item.goodsList.map(ele => {
const sellPrice = parseFloat(ele.sellPrice || 0)
const number = parseInt(item.number || 1)
const finalPrice = ele.finalPrice !== undefined ? parseFloat(ele.finalPrice) / 100 : this.calculateFinalPrice(ele, sellPrice, number, orderInfo.orderTypeCode)
const hasValidFinalPrice = ele.finalPrice !== undefined && ele.finalPrice !== null && !isNaN(parseFloat(ele.finalPrice))
const finalPrice = hasValidFinalPrice ? parseFloat(ele.finalPrice) / 100 : this.calculateFinalPrice(ele, sellPrice, number, orderInfo.orderTypeCode)
const discountFields = this.calculateDiscountFields(ele, sellPrice, number, orderInfo.orderTypeCode)
let obj = {
packageId: item.packageCode,
......@@ -921,7 +1022,8 @@ export default {
const goods = multipleSpecGoods.goods
const sellPrice = parseFloat(goods.sellPrice || 0)
const number = parseInt(multipleSpecGoods.number || 1)
const finalPrice = goods.finalPrice !== undefined ? parseFloat(goods.finalPrice) / 100 : this.calculateFinalPrice(goods, sellPrice, number, orderInfo.orderTypeCode)
const hasValidFinalPrice = goods.finalPrice !== undefined && goods.finalPrice !== null && !isNaN(parseFloat(goods.finalPrice))
const finalPrice = hasValidFinalPrice ? parseFloat(goods.finalPrice) / 100 : this.calculateFinalPrice(goods, sellPrice, number, orderInfo.orderTypeCode)
const discountFields = this.calculateDiscountFields(goods, sellPrice, number, orderInfo.orderTypeCode)
const obj = {
goodsId: goods.merchantGoodsId,
......
......@@ -13,13 +13,35 @@
</view>
</view>
<!-- 待上传合同协议且是已支付的订单 -->
<view class="status text-center" :style="{ color: status[0].color, 'background-color': status[0].background }" v-if="orderCardDetail.zyPayStatus == 1 && (orderCardDetail.orderStatus == 3 || orderCardDetail.orderStatus == 4 || orderCardDetail.orderStatus == 7)">待上传</view>
<view v-else class="status text-center" :style="{ color: status[orderCardDetail.orderStatus].color, 'background-color': status[orderCardDetail.orderStatus].background }">
{{ status[orderCardDetail.orderStatus].text }}
<view class="status text-center" :style="{ color: (status[0] && status[0].color) || '#FF9D0A', 'background-color': (status[0] && status[0].background) || '#FFF5E6' }" v-if="orderCardDetail.zyPayStatus == 1 && (orderCardDetail.orderStatus == 3 || orderCardDetail.orderStatus == 4 || orderCardDetail.orderStatus == 7)">待上传</view>
<view v-else class="status text-center" :style="{ color: currentStatusConfig.color, 'background-color': currentStatusConfig.background }">
{{ currentStatusConfig.text }}
</view>
</view>
<view class="flex errorBox">
<view class="order-list align-center flex-1">
<text>原错误订单编号</text>
<text>898495495393839459</text>
</view>
<view class="order-list align-center flex-1">
<text>原错误订单总价</text>
<text>¥2560</text>
</view>
</view>
<view class="order-card-bottom-box">
<view class="info-box">
<view class="order-list align-center">
<view class="order flex align-center">
<view class="order-label">订单类型 </view>
<view class="order-value flex">{{ orderTypeText[orderCardDetail.orderType] }}</view>
</view>
</view>
<view class="order-list align-center">
<view class="order flex align-center">
<view class="order-label">审批状态 </view>
<view class="order-value flex">{{ goodsOrderApplyStatus[orderCardDetail.approveStatus] }}</view>
</view>
</view>
<view class="order-list align-center" v-for="(item, sindex) in orderCardDetail.deliveryId ? pointsMultiObj : orderObj" :key="sindex">
<view v-if="item.key == 'remark' || item.key == 'payTime' || item.key == 'createdTime'">
<view class="order flex align-center" v-if="item.key == 'remark' && orderCardDetail.orderStatus == '-1'">
......@@ -71,11 +93,11 @@
</view>
</view>
</view>
<view class="order flex align-center" v-if="orderCardDetail.orderStatus != '-1' && orderCardDetail.quotedPriceUpdate">
<view class="order flex align-center" v-if="orderCardDetail.orderStatus != '-1' && orderCardDetail.finalPrice">
<view class="order-label">支付金额</view>
<view class="price flex">
<text class="unit">¥</text>
{{ orderCardDetail.quotedPriceUpdate || '' }}
{{ orderCardDetail.finalPrice || '' }}
</view>
<view class="refund-box" v-if="orderCardDetail.refundAmount">
部分退款
......@@ -200,6 +222,26 @@ export default {
status() {
return order_mixins.data.orderStatusObj || {}
},
goodsOrderApplyStatus() {
return order_mixins.data.goodsOrderApplyStatus || {}
},
orderTypeText() {
return order_mixins.data.orderType || {}
},
// 安全获取当前订单状态配置,如果状态不存在则返回默认配置
currentStatusConfig() {
const statusKey = this.orderCardDetail.orderStatus
const statusObj = this.status[statusKey]
if (statusObj && statusObj.color && statusObj.background) {
return statusObj
}
// 返回默认状态配置
return {
text: '未知状态',
color: '#8F959E',
background: '#F3F4F5'
}
},
buttonConfig() {
const config = {
showMoreBtn: false,
......@@ -211,6 +253,11 @@ export default {
const order = this.orderCardDetail
const localUser = this.localUserInfo
// 如果是审批中状态(approveStatus === 0),不显示任何操作按钮
if (order.approveStatus === 0 || order.approveStatus === '0') {
return config
}
// 超管或商户类型1不可操作
if (localUser?.isSuper || localUser?.userType !== 2) {
config.showMoreBtn = order.showInvoiceEntrance || ((order.orderStatus == 3 || order.orderStatus == 5 || (order.orderStatus == 6 && order.refundAmount)) && this.isOrder)
......@@ -990,6 +1037,14 @@ export default {
border-radius: toRpx(4);
border: toRpx(1) solid transparent;
}
.errorBox {
background: #f7f8fa;
border-radius: toRpx(16);
padding: toRpx(16) toRpx(24);
color: #999ea8;
font-size: toRpx(24);
margin-bottom: toRpx(20);
}
.info-box {
display: flex;
......
......@@ -327,7 +327,7 @@ export default {
if (!arr) {
return arr
}
var attrList = ['equityPrice', 'quotedPrice', 'quotedPriceUpdate', 'refundAmount']
var attrList = ['equityPrice', 'quotedPrice', 'quotedPriceUpdate', 'refundAmount','finalPrice']
arr.forEach(item => {
attrList.forEach(k => {
if (item[k]) {
......
......@@ -562,14 +562,15 @@ export default {
}
this.$emit('changeTotalPrice')
},
// 初始化策略配置
// 初始化策略配置(支持编辑回显)
initStrategyConfig() {
if (!this.list || this.list.length === 0) return
const strategyType = this.getStrategyType({})
// 没有策略类型时,清空所有优惠配置
if (!strategyType) {
// 订单类型切换时,重置所有商品的策略配置
this.list.forEach(item => {
// 如果是套餐商品,需要重置套餐内所有商品的策略配置
// 套餐商品:重置套餐内所有商品
if (item.goodsFlag == 3 && item.packageGoods && item.packageGoods.goodsList) {
item.packageGoods.goodsList.forEach(goods => {
if (goods.strategyConfig) {
......@@ -591,7 +592,6 @@ export default {
}
if (goods) {
// 重置策略配置和优惠相关字段
if (goods.strategyConfig) {
goods.strategyConfig = {}
}
......@@ -604,10 +604,15 @@ export default {
}
this.list.forEach(item => {
// 如果是套餐商品,需要初始化套餐内所有商品的策略配置
// 套餐商品:初始化套餐内所有商品的策略配置
if (item.goodsFlag == 3 && item.packageGoods && item.packageGoods.goodsList) {
item.packageGoods.goodsList.forEach(goods => {
// 无论 strategyConfig 是否存在,都根据新的策略类型重新初始化
// 如果是编辑回显,并且已经有 discountType 和非空的 strategyConfig,则不重置
const hasDiscountData = goods.discountType !== undefined && goods.discountType !== null
if (hasDiscountData && goods.strategyConfig && Object.keys(goods.strategyConfig).length > 0) {
return
}
if (strategyType === 'discount') {
this.$set(goods, 'strategyConfig', {
mode: 'none',
......@@ -638,7 +643,12 @@ export default {
if (!goods) return
// 无论 strategyConfig 是否存在,都根据新的策略类型重新初始化
// 如果是编辑回显,并且已经有 discountType 和非空的 strategyConfig,则不重置
const hasDiscountData = goods.discountType !== undefined && goods.discountType !== null
if (hasDiscountData && goods.strategyConfig && Object.keys(goods.strategyConfig).length > 0) {
return
}
if (strategyType === 'discount') {
this.$set(goods, 'strategyConfig', {
mode: 'none',
......
......@@ -115,6 +115,13 @@ export default {
this.lockReason = res.lockReason
return
}
// 提示锁单
const abnormalOrderLock = await this.getAbnormalOrderLock()
if (abnormalOrderLock) {
this.showErrorOrderPopup = true
// this.lockReason = abnormalOrderLock.lockReason
return
}
// 保存当前选择的组件信息,但不立即切换
const selectedItem = item
if (this.toolComponentName === selectedItem.name && (!this.transmissionOfData || this.transmissionOfData.type !== 'supplementOrder')) return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!