Commit f62f1224 by cen

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

- 更新 env.js 中的 IP 地址和默认环境索引
- 新增 ErrorOrderPopup 组件用于展示异常订单信息
- 添加 ErrorOrderList 组件以支持异常订单的选择和状态管理
- 在 OrderScreen 和 OrderScreenContract 中集成异常订单列表
- 更新相关样式以改善用户体验
- 在 mixin 中添加获取异常订单锁单信息的逻辑
- 修改订单相关逻辑以支持异常订单的处理
1 parent df03b5e1
...@@ -602,4 +602,12 @@ module.exports = { ...@@ -602,4 +602,12 @@ module.exports = {
...data, ...data,
}) })
}, },
// 异常订单锁单信息查询
getAbnormalOrderLock(data = {}) {
return http.post({
method: 'dj.api.smartcarlife.goodsOrder.abnormalOrder.lock.select',
projectName: 'boutique',
...data
})
},
} }
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
.icon-ai { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .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);} 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); .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); .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);} 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); .icon-arrow-next { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
...@@ -56,9 +56,9 @@ ...@@ -56,9 +56,9 @@
.icon-change-account { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .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);} 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); .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); .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); .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);} 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); .icon-coupon { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
.icon-customer-2 { width: calc(100vmin * (1173 / 768) * 0.13640238704177324); height: calc(100vmin * (1173 / 768) * 0.13640238704177324); .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);} 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); .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); .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);} 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); .icon-customer-file-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
.icon-customer-flow { width: calc(100vmin * (1173 / 768) * 0.12617220801364024); height: calc(100vmin * (1173 / 768) * 0.08994032395566923); .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);} 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); .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); .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);} 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); .icon-day-points { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
.icon-detail-btn { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .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);} 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); .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); .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);} 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); .icon-end-right { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
.icon-equity-order { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .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);} 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); .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); .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);} 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); .icon-evaluation-management { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
.icon-feedback { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .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);} 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); .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); .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);} 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); .icon-filter { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
.icon-fullScreen { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .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);} 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); .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); .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);} 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); .icon-home { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063);
...@@ -226,7 +226,7 @@ ...@@ -226,7 +226,7 @@
.icon-logo { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662); .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);} 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); .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); .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);} 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); .icon-mask-edit { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
.icon-no-picture { width: calc(100vmin * (1173 / 768) * 0.021312872975277068); height: calc(100vmin * (1173 / 768) * 0.021312872975277068); .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);} 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); .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); .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);} 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); .icon-notice-study { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
...@@ -344,7 +344,7 @@ ...@@ -344,7 +344,7 @@
.icon-role-2 { width: calc(100vmin * (1173 / 768) * 0.028985507246376812); height: calc(100vmin * (1173 / 768) * 0.028985507246376812); .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);} 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); .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); .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);} 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); .icon-scanIcon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
...@@ -396,7 +396,7 @@ ...@@ -396,7 +396,7 @@
.icon-study-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .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);} 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); .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); .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);} 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); .icon-submit { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
...@@ -414,7 +414,7 @@ ...@@ -414,7 +414,7 @@
.icon-takePhotoIcon { width: calc(100vmin * (1173 / 768) * 0.02216538789428815); height: calc(100vmin * (1173 / 768) * 0.02216538789428815); .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);} 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); .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); .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);} 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); .icon-time-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
...@@ -438,9 +438,9 @@ ...@@ -438,9 +438,9 @@
.icon-total { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .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);} 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); .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); .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); .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);} 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); .icon-uploadAdd { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
...@@ -464,4 +464,6 @@ ...@@ -464,4 +464,6 @@
.icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489); .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);} 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); .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 \ 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 \ 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 \ No newline at end of file
<template> <template>
<view <view class="container" @click="handleTouchStart">
class="container"
@click="handleTouchStart"
>
<view :class="['home', { show: !id && showHome }]"> <view :class="['home', { show: !id && showHome }]">
<left-side <left-side :userInfo="userInfo" :tabIndex.sync="tabIndex" ref="leftBox" @changeTab="changeTab"
:userInfo="userInfo" @stopAudio="stopAudio" @showReadCountTips="showReadCountTips" @closeTips="closeTips"
:tabIndex.sync="tabIndex" @closeActivityCenter="closeActivityCenter" />
ref="leftBox" <view class="tips-box" :style="tipsObject.style" @click.stop="closeTips">{{ tipsObject.text }}</view>
@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="right-side">
<view :class="['app-content-box right-content', { 'show-content-box': tabIndex == 0 }]"> <view :class="['app-content-box right-content', { 'show-content-box': tabIndex == 0 }]">
<view <view class="start" @click="start">
class="start"
@click="start"
>
<template v-if="sceneType != 7"> <template v-if="sceneType != 7">
<view class="sprite-icon icon-start-text"></view> <view class="sprite-icon icon-start-text"></view>
</template> </template>
...@@ -38,14 +21,9 @@ ...@@ -38,14 +21,9 @@
<slot name="swiperCustom" /> <slot name="swiperCustom" />
</template> </template>
<template v-else> <template v-else>
<swiper-component <swiper-component :moduleList="moduleList" @click="swiperClick" :stopAutoPlay="previewOff"
:moduleList="moduleList" :imgKey="bannerKey" :loadComplete="loadComplete"
@click="swiperClick" :noDataObject="swiperNoDataObject"></swiper-component>
:stopAutoPlay="previewOff"
:imgKey="bannerKey"
:loadComplete="loadComplete"
:noDataObject="swiperNoDataObject"
></swiper-component>
</template> </template>
</view> </view>
</view> </view>
...@@ -59,36 +37,20 @@ ...@@ -59,36 +37,20 @@
<view class="content-right box-class"> <view class="content-right box-class">
<view class="common-title">服务中心</view> <view class="common-title">服务中心</view>
<view class="content-box"> <view class="content-box">
<MessageIndex <MessageIndex class="message-box" ref="messageRef" />
class="message-box"
ref="messageRef"
/>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view :class="['app-content-box right-content', { 'show-content-box': tabIndex == 99 }]"> <view :class="['app-content-box right-content', { 'show-content-box': tabIndex == 99 }]">
<component <component :is="'Point'" ref="pointRef" :userInfo="userInfo" @showPage="handleShowPage" />
:is="'Point'"
ref="pointRef"
:userInfo="userInfo"
@showPage="handleShowPage"
/>
</view> </view>
<template v-if="tabIndex != 0 && tabIndex != 99"> <template v-if="tabIndex != 0 && tabIndex != 99">
<component <component :is="componentName" ref="pointRef" :userInfo="userInfo" @showPage="handleShowPage"
:is="componentName" :isPermissionFunction="isPermission" />
ref="pointRef"
:userInfo="userInfo"
@showPage="handleShowPage"
:isPermissionFunction="isPermission"
/>
</template> </template>
</view> </view>
<view <view class="store-addr" v-if="footerBox">
class="store-addr"
v-if="footerBox"
>
<view class="icon-addr sprite-icon icon-addr"></view> <view class="icon-addr sprite-icon icon-addr"></view>
<view class="addr-text">{{ userInfo.shopMerchantName }}</view> <view class="addr-text">{{ userInfo.shopMerchantName }}</view>
</view> </view>
...@@ -96,41 +58,19 @@ ...@@ -96,41 +58,19 @@
<view :class="['detail', { show: id }]"> <view :class="['detail', { show: id }]">
<slot name="detail" /> <slot name="detail" />
</view> </view>
<view <view class="point-page" v-if="!showHome">
class="point-page" <component :is="pointComponentName" @backHome="backHome" @jump="jump" :transfer="transfer" />
v-if="!showHome"
>
<component
:is="pointComponentName"
@backHome="backHome"
@jump="jump"
:transfer="transfer"
/>
</view> </view>
<!-- 未点击开始接待,弹窗 --> <!-- 未点击开始接待,弹窗 -->
<MessageBox <MessageBox ref="previewRef" @confirm="previewHandler('preview', true)" :popupW="704"
ref="previewRef" content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」" confirmBtnText="预览素材" @cancel="previewHandler('previewCancel')"
@confirm="previewHandler('preview', true)" @close="previewHandler('previewClose')"></MessageBox>
:popupW="704"
content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText="预览素材"
@cancel="previewHandler('previewCancel')"
@close="previewHandler('previewClose')"
></MessageBox>
<!-- 停留弹框 --> <!-- 停留弹框 -->
<!-- <MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> --> <!-- <MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> -->
<!-- 退出弹框 --> <!-- 退出弹框 -->
<MessageBox <MessageBox :popupW="704" ref="finish" :content="finishContene" :isFooter="false">
:popupW="704"
ref="finish"
:content="finishContene"
:isFooter="false"
>
<view class="footer"> <view class="footer">
<view <view class="footer-btn confirm flex" @click="$emit('openStep')">
class="footer-btn confirm flex"
@click="$emit('openStep')"
>
<template v-if="finishDoneText"> <template v-if="finishDoneText">
{{ finishDoneText }} {{ finishDoneText }}
</template> </template>
...@@ -139,10 +79,7 @@ ...@@ -139,10 +79,7 @@
<text>(推荐)</text> <text>(推荐)</text>
</template> </template>
</view> </view>
<view <view class="footer-btn cancel flex" @click="$emit('backHome')">
class="footer-btn cancel flex"
@click="$emit('backHome')"
>
仍要退出 仍要退出
<text>(不推荐)</text> <text>(不推荐)</text>
</view> </view>
...@@ -151,11 +88,7 @@ ...@@ -151,11 +88,7 @@
<!-- 升级弹框 --> <!-- 升级弹框 -->
<update-box /> <update-box />
<slot name="content" /> <slot name="content" />
<web-view <web-view @message="handlerMessage" ref="webview" src="/hybrid/html/index.html"></web-view>
@message="handlerMessage"
ref="webview"
src="/hybrid/html/index.html"
></web-view>
<!-- <web-view <!-- <web-view
ref="studyWebview" ref="studyWebview"
:src="jumpUrl" :src="jumpUrl"
...@@ -163,74 +96,35 @@ ...@@ -163,74 +96,35 @@
></web-view> --> ></web-view> -->
<!-- 学习中心 等级考试弹窗 --> <!-- 学习中心 等级考试弹窗 -->
<StudyPopup <StudyPopup :show.sync="showStudyPopup" title="开始您的学习之旅"
:show.sync="showStudyPopup" :topImage="require('@/assets/images/common/study-center-bg.png')" :topImageWidth="848" :topImageHeight="248">
title="开始您的学习之旅" <StudyPopupContent cardTitle="个性化学习路径" description="根据您当前的学习情况,我们将为您定制专属的学习计划,帮助您高效提升技能,实现职业突破。"
:topImage="require('@/assets/images/common/study-center-bg.png')" :listItems="['基于当前能力水平评估', '结合岗位发展目标制定', '定期跟踪学习进度和效果']" tipText="true" :courseName="courseInfo.title"
:topImageWidth="848" buttonText="开始测评" @cancel="handleStudyPopupCancel" @button-click="handleStartAssessment" />
:topImageHeight="248"
>
<StudyPopupContent
cardTitle="个性化学习路径"
description="根据您当前的学习情况,我们将为您定制专属的学习计划,帮助您高效提升技能,实现职业突破。"
:listItems="['基于当前能力水平评估', '结合岗位发展目标制定', '定期跟踪学习进度和效果']"
tipText="true"
:courseName="courseInfo.title"
buttonText="开始测评"
@cancel="handleStudyPopupCancel"
@button-click="handleStartAssessment"
/>
</StudyPopup> </StudyPopup>
<!-- 考试提交确认弹窗 --> <!-- 考试提交确认弹窗 -->
<StudyPopup <StudyPopup :show.sync="showExamPopup" title="" :width="848" :height="examPopInfo.isExamLoading ? 740 : 656"
:show.sync="showExamPopup" :topImage="require('@/assets/images/common/warning-notice.png')" :topImageWidth="848" :topImageHeight="248">
title="" <ExamSubmitPopup :isLoading="examPopInfo.isExamLoading" :showError="examPopInfo.showError"
:width="848" :confirmText="examPopInfo.confirmText" @cancel="handleExamCancel" @confirm="handleExamConfirm" />
: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>
<!-- 学习中心权限弹窗 --> <!-- 学习中心权限弹窗 -->
<StudyPopup <StudyPopup :show.sync="showStudyPermissionPopup" title="" :width="848" :height="870"
:show.sync="showStudyPermissionPopup" :topImage="require('@/assets/images/common/warning-notice.png')" :topImageWidth="848" :topImageHeight="248"
title="" style="overflow: hidden">
:width="848" <StudyCenterPermissionPopup :lockReason="lockReason" @confirm="handleStudyPermissionConfirm" />
:height="870"
:topImage="require('@/assets/images/common/warning-notice.png')"
:topImageWidth="848"
:topImageHeight="248"
style="overflow: hidden"
>
<StudyCenterPermissionPopup
:lockReason="lockReason"
@confirm="handleStudyPermissionConfirm"
/>
</StudyPopup> </StudyPopup>
<activity-popup <activity-popup ref="activityPopup" @JumpActivityCenter="JumpActivityCenter"></activity-popup>
ref="activityPopup" <uni-popup ref="errorRef" type="message">
@JumpActivityCenter="JumpActivityCenter" <uni-popup-message type="error" :message="errorMsg" :duration="1500"></uni-popup-message>
></activity-popup>
<uni-popup
ref="errorRef"
type="message"
>
<uni-popup-message
type="error"
:message="errorMsg"
:duration="1500"
></uni-popup-message>
</uni-popup> </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> </view>
</template> </template>
<script> <script>
...@@ -267,6 +161,7 @@ import StudyPopupContent from '@/components/StudyPopupContent.vue' ...@@ -267,6 +161,7 @@ import StudyPopupContent from '@/components/StudyPopupContent.vue'
import ExamSubmitPopup from '@/components/ExamSubmitPopup.vue' import ExamSubmitPopup from '@/components/ExamSubmitPopup.vue'
import StudyCenterPermissionPopup from '@/components/StudyCenterPermissionPopup.vue' import StudyCenterPermissionPopup from '@/components/StudyCenterPermissionPopup.vue'
import ActivityPopup from './components/ActivityPopup.vue' import ActivityPopup from './components/ActivityPopup.vue'
import ErrorOrderPopup from '@/components/ErrorOrderPopup.vue'
export default { export default {
mixins: [recorder, uploader, timeout, versionCheck, merge, interceptionMixin], mixins: [recorder, uploader, timeout, versionCheck, merge, interceptionMixin],
components: { components: {
...@@ -293,7 +188,8 @@ export default { ...@@ -293,7 +188,8 @@ export default {
ExamSubmitPopup, ExamSubmitPopup,
StudyCenterPermissionPopup, StudyCenterPermissionPopup,
ActivityCenter, ActivityCenter,
ActivityPopup ActivityPopup,
ErrorOrderPopup
}, },
props: { props: {
id: [String, Number], id: [String, Number],
...@@ -315,7 +211,7 @@ export default { ...@@ -315,7 +211,7 @@ export default {
}, },
swiperCustom: Boolean swiperCustom: Boolean
}, },
data () { data() {
return { return {
studyUrl: '', studyUrl: '',
jumpUrl: '', jumpUrl: '',
...@@ -341,16 +237,17 @@ export default { ...@@ -341,16 +237,17 @@ export default {
title: '' title: ''
}, },
lockReason: 0, lockReason: 0,
errorMsg: '' errorMsg: '',
showErrorOrderPopup: false
} }
}, },
beforeDestroy () { beforeDestroy() {
// 组件销毁前移除监听 // 组件销毁前移除监听
uni.$logger.local.info('levelStudyPopup 移除监听') uni.$logger.local.info('levelStudyPopup 移除监听')
uni.$off('levelStudyPopup') uni.$off('levelStudyPopup')
// uni.$off('showStudyPopup') // uni.$off('showStudyPopup')
}, },
mounted () { mounted() {
uni.$logger.local.info('levelStudyPopup 开始监听mounted') uni.$logger.local.info('levelStudyPopup 开始监听mounted')
uni.$on('levelStudyPopup', obj => { uni.$on('levelStudyPopup', obj => {
uni.$logger.local.info('接收到学习弹窗事件', obj) uni.$logger.local.info('接收到学习弹窗事件', obj)
...@@ -360,34 +257,34 @@ export default { ...@@ -360,34 +257,34 @@ export default {
this.userInfo = userInfo this.userInfo = userInfo
if (this.checkRecordAudio) permision.requestAndroidPermission('android.permission.RECORD_AUDIO') // 进入界面时检查权限 if (this.checkRecordAudio) permision.requestAndroidPermission('android.permission.RECORD_AUDIO') // 进入界面时检查权限
}, },
provide () { provide() {
return { return {
showPage: this.handleShowPage, showPage: this.handleShowPage,
hideFooter: this.handleFooter hideFooter: this.handleFooter
} }
}, },
computed: { computed: {
previewRef () { previewRef() {
return this.$refs.previewRef return this.$refs.previewRef
}, },
finishRef () { finishRef() {
return this.$refs.finish return this.$refs.finish
}, },
componentName () { componentName() {
let tabs = this.$refs.leftBox?.tabs let tabs = this.$refs.leftBox?.tabs
return tabs ? tabs[this.tabIndex].name : '' return tabs ? tabs[this.tabIndex].name : ''
}, },
sceneType () { sceneType() {
const { sceneType } = uni.$storage.get('userInfo') const { sceneType } = uni.$storage.get('userInfo')
return sceneType return sceneType
}, },
activityWindowPopStatus () { activityWindowPopStatus() {
return this.$store.getters.activityWindowPopStatus return this.$store.getters.activityWindowPopStatus
}, },
}, },
watch: { watch: {
activityWindowPopStatus: { activityWindowPopStatus: {
handler (val) { handler(val) {
const { id, tabIndex } = this const { id, tabIndex } = this
if (val == 2 && !id && tabIndex == 0) this.getActivityMessage() if (val == 2 && !id && tabIndex == 0) this.getActivityMessage()
}, },
...@@ -397,7 +294,7 @@ export default { ...@@ -397,7 +294,7 @@ export default {
}, },
methods: { methods: {
// 处理开始测评(参考 detail.vue 的实现) // 处理开始测评(参考 detail.vue 的实现)
async handleStartAssessment () { async handleStartAssessment() {
this.showStudyPopup = false this.showStudyPopup = false
try { try {
// 获取北森 token // 获取北森 token
...@@ -443,7 +340,7 @@ export default { ...@@ -443,7 +340,7 @@ export default {
} }
}, },
// 获取北森 SSO Token(参考 detail.vue 的方法) // 获取北森 SSO Token(参考 detail.vue 的方法)
findBeiSenSSOToken () { findBeiSenSSOToken() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.$api.commonApi uni.$api.commonApi
.findBeiSenSSOToken({}) .findBeiSenSSOToken({})
...@@ -457,7 +354,7 @@ export default { ...@@ -457,7 +354,7 @@ export default {
}) })
}, },
// 处理考试取消(用户选择未提交) // 处理考试取消(用户选择未提交)
handleExamCancel () { handleExamCancel() {
this.showExamPopup = false this.showExamPopup = false
this.examPopInfo = { this.examPopInfo = {
isExamLoading: false, isExamLoading: false,
...@@ -466,7 +363,7 @@ export default { ...@@ -466,7 +363,7 @@ export default {
} }
this.getLevelExamInfo() this.getLevelExamInfo()
}, },
handleStudyPermissionConfirm () { handleStudyPermissionConfirm() {
this.showStudyPermissionPopup = false this.showStudyPermissionPopup = false
// 切换到学习中心 tab // 切换到学习中心 tab
const tabs = this.$refs.leftBox?.tabs const tabs = this.$refs.leftBox?.tabs
...@@ -479,7 +376,7 @@ export default { ...@@ -479,7 +376,7 @@ export default {
} }
}, },
// 处理学习弹窗取消 // 处理学习弹窗取消
handleStudyPopupCancel () { handleStudyPopupCancel() {
this.showStudyPopup = false this.showStudyPopup = false
// 切换到学习中心 tab // 切换到学习中心 tab
const tabs = this.$refs.leftBox?.tabs const tabs = this.$refs.leftBox?.tabs
...@@ -492,7 +389,7 @@ export default { ...@@ -492,7 +389,7 @@ export default {
} }
}, },
// 检查学习中心权限 // 检查学习中心权限
async checkStudyCenterPermission () { async checkStudyCenterPermission() {
try { try {
const userInfo = uni.$storage.get('userInfo') const userInfo = uni.$storage.get('userInfo')
...@@ -526,7 +423,7 @@ export default { ...@@ -526,7 +423,7 @@ export default {
} }
}, },
// 处理考试确认(用户选择已提交) // 处理考试确认(用户选择已提交)
async handleExamConfirm () { async handleExamConfirm() {
this.examPopInfo.isExamLoading = true this.examPopInfo.isExamLoading = true
this.examPopInfo.showError = false this.examPopInfo.showError = false
const { examId, levelExamId } = this.courseInfo const { examId, levelExamId } = this.courseInfo
...@@ -569,7 +466,7 @@ export default { ...@@ -569,7 +466,7 @@ export default {
}) })
} }
}, },
async changeTab ({ item, index }) { async changeTab({ item, index }) {
if (index == 0) this.$refs.messageRef.getMessageSummary() if (index == 0) this.$refs.messageRef.getMessageSummary()
this.previewOff = index != 0 this.previewOff = index != 0
this.$emit('changeTab', index) this.$emit('changeTab', index)
...@@ -580,23 +477,23 @@ export default { ...@@ -580,23 +477,23 @@ export default {
} }
}, },
// 查询等级弹窗信息 // 查询等级弹窗信息
async getLevelExamInfo () { async getLevelExamInfo() {
const res = await uni.$api.commonApi.startExam() const res = await uni.$api.commonApi.startExam()
if (res) { if (res) {
this.showStudyPopup = true this.showStudyPopup = true
this.courseInfo = res this.courseInfo = res
} }
}, },
handleFooter (val) { handleFooter(val) {
this.footerBox = val this.footerBox = val
}, },
backHome () { backHome() {
this.showHome = true this.showHome = true
Promise.resolve().then(() => { Promise.resolve().then(() => {
this.$refs.pointRef?.$refs?.centerRef?.init && this.$refs.pointRef.$refs.centerRef.init() this.$refs.pointRef?.$refs?.centerRef?.init && this.$refs.pointRef.$refs.centerRef.init()
}) })
}, },
jump (val) { jump(val) {
this.showHome = true this.showHome = true
if (val == 'CustomerFile') { if (val == 'CustomerFile') {
this.tabIndex = 2 this.tabIndex = 2
...@@ -604,12 +501,12 @@ export default { ...@@ -604,12 +501,12 @@ export default {
} }
this.start() this.start()
}, },
handleShowPage (name, transfer) { handleShowPage(name, transfer) {
this.transfer = transfer this.transfer = transfer
this.showHome = false this.showHome = false
this.pointComponentName = name this.pointComponentName = name
}, },
handleOperation (val, data) { handleOperation(val, data) {
const { type } = val const { type } = val
// 提取公共的webview设置逻辑 // 提取公共的webview设置逻辑
...@@ -679,21 +576,21 @@ export default { ...@@ -679,21 +576,21 @@ export default {
} }
}, },
// 学习中心修改阅读状态,打开后才修改 // 学习中心修改阅读状态,打开后才修改
async getStudyCenterRead (id) { async getStudyCenterRead(id) {
const res = await uni.$api.commonApi.getStudyCenterRead({ id }) const res = await uni.$api.commonApi.getStudyCenterRead({ id })
}, },
showReadCountTips (res) { showReadCountTips(res) {
this.tipsObject = res this.tipsObject = res
}, },
closeTips () { closeTips() {
this.$refs.leftBox.readCount = 0 this.$refs.leftBox.readCount = 0
this.tipsObject = { this.tipsObject = {
style: '', style: '',
text: '' text: ''
} }
}, },
swiperClick (e) { swiperClick(e) {
if (this.sceneType == 0) if (this.sceneType == 0)
uni.$track.add({ uni.$track.add({
eventCode: 'app_product_Introduction' eventCode: 'app_product_Introduction'
...@@ -701,11 +598,11 @@ export default { ...@@ -701,11 +598,11 @@ export default {
this.previewOff = true this.previewOff = true
this.$emit('swiperClick', e) this.$emit('swiperClick', e)
}, },
previewHandler (name, off = false) { previewHandler(name, off = false) {
this.previewOff = off this.previewOff = off
this.$emit(name) this.$emit(name)
}, },
start () { start() {
const { sceneType } = this const { sceneType } = this
if (sceneType == 7) return //二手车无接待功能 if (sceneType == 7) return //二手车无接待功能
uni.$track.add({ uni.$track.add({
...@@ -713,11 +610,11 @@ export default { ...@@ -713,11 +610,11 @@ export default {
}) })
this.$emit('start') this.$emit('start')
}, },
async updateApp (requested = false) { async updateApp(requested = false) {
if (!requested) await uni.$api.systemApi.getMockData(true) if (!requested) await uni.$api.systemApi.getMockData(true)
this.checkVersion() this.checkVersion()
}, },
async entranceClick (item) { async entranceClick(item) {
console.log(item, 'item') console.log(item, 'item')
// 清除评估单的图片视频资源缓存 // 清除评估单的图片视频资源缓存
const noInterceptPage = ['DailyReport', 'DeliveryManagement', 'ReportManagement'], const noInterceptPage = ['DailyReport', 'DeliveryManagement', 'ReportManagement'],
...@@ -732,6 +629,13 @@ export default { ...@@ -732,6 +629,13 @@ export default {
this.lockReason = res.lockReason this.lockReason = res.lockReason
return return
} }
// 检查是否锁单
const abnormalOrderLock = await this.getAbnormalOrderLock()
if (abnormalOrderLock) {
this.showErrorOrderPopup = true
// this.lockReason = abnormalOrderLock.lockReason
return
}
} }
if (await this.checkDailyReport(sceneType != 7)) return if (await this.checkDailyReport(sceneType != 7)) return
} }
...@@ -767,7 +671,7 @@ export default { ...@@ -767,7 +671,7 @@ export default {
url: `/pages/${pageName}/tool/index?componentName=${item.name}` url: `/pages/${pageName}/tool/index?componentName=${item.name}`
}) })
}, },
async getActivityMessage () { async getActivityMessage() {
this.$store.dispatch('setActivityWindowPopCount', 0) this.$store.dispatch('setActivityWindowPopCount', 0)
const { sceneType } = this const { sceneType } = this
if (sceneType == 7) return // 二手车业务无活动中心 if (sceneType == 7) return // 二手车业务无活动中心
...@@ -776,10 +680,10 @@ export default { ...@@ -776,10 +680,10 @@ export default {
}) })
if (data) this.$refs.activityPopup.open(data) if (data) this.$refs.activityPopup.open(data)
}, },
closeActivityCenter () { closeActivityCenter() {
this.$refs.activityPopup.close() this.$refs.activityPopup.close()
}, },
async JumpActivityCenter (data) { async JumpActivityCenter(data) {
const { activityId } = data, const { activityId } = data,
{ shopMerchantId } = uni.$storage.get('userInfo'), { shopMerchantId } = uni.$storage.get('userInfo'),
{ sceneType } = this, { sceneType } = this,
...@@ -788,7 +692,7 @@ export default { ...@@ -788,7 +692,7 @@ export default {
id: activityId, id: activityId,
merchantId: shopMerchantId merchantId: shopMerchantId
}) })
if (!res){ if (!res) {
this.errorMsg = '暂无该活动查看权限' this.errorMsg = '暂无该活动查看权限'
this.$refs.errorRef.open() this.$refs.errorRef.open()
} }
...@@ -800,6 +704,7 @@ export default { ...@@ -800,6 +704,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.container { .container {
position: relative; position: relative;
.tips-box { .tips-box {
position: absolute; position: absolute;
color: #ffffff; color: #ffffff;
...@@ -815,6 +720,7 @@ export default { ...@@ -815,6 +720,7 @@ export default {
display: none; display: none;
opacity: 0; opacity: 0;
} }
&::after { &::after {
content: ''; content: '';
position: absolute; position: absolute;
...@@ -826,6 +732,7 @@ export default { ...@@ -826,6 +732,7 @@ export default {
background-size: 100% 100%; background-size: 100% 100%;
z-index: 1; z-index: 1;
} }
.home, .home,
.detail { .detail {
position: fixed; position: fixed;
...@@ -837,6 +744,7 @@ export default { ...@@ -837,6 +744,7 @@ export default {
visibility: hidden; visibility: hidden;
opacity: 0; opacity: 0;
} }
.point-page { .point-page {
position: fixed; position: fixed;
width: 100%; width: 100%;
...@@ -845,10 +753,12 @@ export default { ...@@ -845,10 +753,12 @@ export default {
top: 0; top: 0;
left: 0; left: 0;
} }
.home { .home {
display: flex; display: flex;
height: 100vh; height: 100vh;
position: relative; position: relative;
.store-addr { .store-addr {
position: absolute; position: absolute;
left: 50%; left: 50%;
...@@ -856,11 +766,13 @@ export default { ...@@ -856,11 +766,13 @@ export default {
transform: translateX(-50%); transform: translateX(-50%);
display: flex; display: flex;
align-items: center; align-items: center;
.icon-addr { .icon-addr {
width: toRpx(32); width: toRpx(32);
height: toRpx(32); height: toRpx(32);
flex-shrink: 0; flex-shrink: 0;
} }
.addr-text { .addr-text {
font-size: toRpx(24); font-size: toRpx(24);
color: #999999; color: #999999;
...@@ -870,6 +782,7 @@ export default { ...@@ -870,6 +782,7 @@ export default {
margin-left: toRpx(4); margin-left: toRpx(4);
flex-shrink: 0; flex-shrink: 0;
} }
&::before, &::before,
&::after { &::after {
content: ''; content: '';
...@@ -878,14 +791,17 @@ export default { ...@@ -878,14 +791,17 @@ export default {
margin: 0 toRpx(40); margin: 0 toRpx(40);
} }
&::before { &::before {
background-image: linear-gradient(270deg, #eeeeee 0%, #d8d8d800 100%); background-image: linear-gradient(270deg, #eeeeee 0%, #d8d8d800 100%);
} }
&::after { &::after {
background-image: linear-gradient(90deg, #eeeeee 0%, #d8d8d800 100%); background-image: linear-gradient(90deg, #eeeeee 0%, #d8d8d800 100%);
} }
} }
} }
.show { .show {
opacity: 1; opacity: 1;
position: absolute; position: absolute;
...@@ -894,10 +810,12 @@ export default { ...@@ -894,10 +810,12 @@ export default {
animation: show-content-left 0.15s forwards; animation: show-content-left 0.15s forwards;
} }
} }
@keyframes show-content-left { @keyframes show-content-left {
0% { 0% {
left: 100%; left: 100%;
} }
100% { 100% {
left: 0; left: 0;
} }
...@@ -907,6 +825,7 @@ export default { ...@@ -907,6 +825,7 @@ export default {
flex: 1; flex: 1;
position: relative; position: relative;
width: calc(100vw - #{toRpx(240)}); width: calc(100vw - #{toRpx(240)});
.right-content { .right-content {
height: 100vh; height: 100vh;
box-sizing: border-box; box-sizing: border-box;
...@@ -914,14 +833,17 @@ export default { ...@@ -914,14 +833,17 @@ export default {
animation: show-box 0.15s forwards; animation: show-box 0.15s forwards;
overflow: hidden; overflow: hidden;
} }
@keyframes show-box { @keyframes show-box {
0% { 0% {
left: 100%; left: 100%;
} }
100% { 100% {
left: 0; left: 0;
} }
} }
.start { .start {
height: toRpx(232); height: toRpx(232);
box-sizing: border-box; box-sizing: border-box;
...@@ -932,16 +854,19 @@ export default { ...@@ -932,16 +854,19 @@ export default {
padding-top: toRpx(60); padding-top: toRpx(60);
display: flex; display: flex;
justify-content: center; justify-content: center;
.sprite-icon { .sprite-icon {
zoom: 2; zoom: 2;
} }
} }
.right-content-box { .right-content-box {
width: 100%; width: 100%;
height: calc(100% - #{toRpx(232)}); height: calc(100% - #{toRpx(232)});
gap: toRpx(48); gap: toRpx(48);
box-sizing: border-box; box-sizing: border-box;
padding: toRpx(32) 0 toRpx(80); padding: toRpx(32) 0 toRpx(80);
.box-class { .box-class {
background: #ffffff59; background: #ffffff59;
backdrop-filter: blur(toRpx(16)); backdrop-filter: blur(toRpx(16));
...@@ -949,38 +874,47 @@ export default { ...@@ -949,38 +874,47 @@ export default {
border-radius: toRpx(48); border-radius: toRpx(48);
overflow: hidden; overflow: hidden;
} }
.content-box { .content-box {
position: relative; position: relative;
width: 100%; width: 100%;
height: calc(100% - #{toRpx(120)}); height: calc(100% - #{toRpx(120)});
.message-box { .message-box {
height: 100%; height: 100%;
} }
} }
.content-left, .content-left,
.content-right { .content-right {
height: 100%; height: 100%;
flex-shrink: 0; flex-shrink: 0;
} }
.content-left { .content-left {
width: toRpx(1210); width: toRpx(1210);
.module-box { .module-box {
height: toRpx(664); height: toRpx(664);
margin-bottom: toRpx(48); margin-bottom: toRpx(48);
} }
.tool-box { .tool-box {
height: calc(100% - #{toRpx(712)}); height: calc(100% - #{toRpx(712)});
.content-box { .content-box {
width: calc(100% - #{toRpx(96)}); width: calc(100% - #{toRpx(96)});
margin: 0 toRpx(48); margin: 0 toRpx(48);
} }
} }
} }
.content-right { .content-right {
width: calc(100% - #{toRpx(1322)}); width: calc(100% - #{toRpx(1322)});
// width: toRpx(800); // width: toRpx(800);
} }
} }
.app-content-box { .app-content-box {
width: 100%; width: 100%;
position: absolute; position: absolute;
...@@ -989,20 +923,24 @@ export default { ...@@ -989,20 +923,24 @@ export default {
opacity: 0; opacity: 0;
z-index: -999; z-index: -999;
} }
.show-content-box { .show-content-box {
opacity: 1; opacity: 1;
z-index: 1; z-index: 1;
} }
} }
.footer { .footer {
border-top: toRpx(2) solid #eff0f2; border-top: toRpx(2) solid #eff0f2;
font-weight: 600; font-weight: 600;
font-size: toRpx(32); font-size: toRpx(32);
margin-top: toRpx(48); margin-top: toRpx(48);
.footer-btn { .footer-btn {
justify-content: center; justify-content: center;
margin: toRpx(16) auto 0; margin: toRpx(16) auto 0;
} }
.confirm { .confirm {
width: toRpx(608); width: toRpx(608);
height: toRpx(80); height: toRpx(80);
...@@ -1010,6 +948,7 @@ export default { ...@@ -1010,6 +948,7 @@ export default {
border-radius: toRpx(40); border-radius: toRpx(40);
color: #fff; color: #fff;
} }
.cancel { .cancel {
width: toRpx(608); width: toRpx(608);
height: toRpx(80); height: toRpx(80);
...@@ -1017,10 +956,12 @@ export default { ...@@ -1017,10 +956,12 @@ export default {
border-radius: toRpx(40); border-radius: toRpx(40);
color: #2c66f7; color: #2c66f7;
} }
text { text {
font-size: toRpx(24); font-size: toRpx(24);
} }
} }
.lead-page { .lead-page {
height: 100vh; height: 100vh;
width: 100vw; 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 \ No newline at end of file
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
id: 7 id: 7
}, },
{ {
name: '已失效', name: '错误订单',
value: [11], value: [11],
id: 8 id: 8
}, },
......
...@@ -46,9 +46,9 @@ const screenList = [ ...@@ -46,9 +46,9 @@ const screenList = [
}, },
{ {
title: '异常标记', title: '异常标记',
componentName: 'OrderStatusList', componentName: 'ErrorOrderList',
params: { params: {
idKey: 'statusList' idKey: 'abnormalFlag'
} }
}, },
{ {
......
...@@ -73,6 +73,7 @@ import TimeList from './components/TimeList.vue' ...@@ -73,6 +73,7 @@ import TimeList from './components/TimeList.vue'
import OrderStatusList from './components/OrderStatusList.vue' import OrderStatusList from './components/OrderStatusList.vue'
import PayList from './components/PayList.vue' import PayList from './components/PayList.vue'
import CourseOptionList from './components/CourseOptionList.vue' import CourseOptionList from './components/CourseOptionList.vue'
import ErrorOrderList from './components/ErrorOrderList.vue'
export default { export default {
components: { components: {
Popup, Popup,
...@@ -80,7 +81,8 @@ export default { ...@@ -80,7 +81,8 @@ export default {
TimeList, TimeList,
OrderStatusList, OrderStatusList,
PayList, PayList,
CourseOptionList CourseOptionList,
ErrorOrderList
}, },
name: 'OrderScreen', name: 'OrderScreen',
props: { 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 \ No newline at end of file
...@@ -65,7 +65,12 @@ export default { ...@@ -65,7 +65,12 @@ export default {
name: '战败', name: '战败',
value: -1, value: -1,
id: 11 id: 11
} },
{
name: '审批中',
value: [14],
id: 12
},
]), ]),
currentId: '', currentId: '',
} }
......
...@@ -45,6 +45,13 @@ const screenList = [ ...@@ -45,6 +45,13 @@ const screenList = [
} }
}, },
{ {
title: '异常标记',
componentName: 'ErrorOrderList',
params: {
idKey: 'abnormalFlag'
}
},
{
title: '支付方式', title: '支付方式',
componentName: 'PayList', componentName: 'PayList',
params: { params: {
......
...@@ -37,6 +37,7 @@ import OrderStatusList from './components/OrderStatusList.vue' ...@@ -37,6 +37,7 @@ import OrderStatusList from './components/OrderStatusList.vue'
import PayList from './components/PayList.vue' import PayList from './components/PayList.vue'
import CourseOptionList from './components/CourseOptionList.vue' import CourseOptionList from './components/CourseOptionList.vue'
import ContractList from './components/ContractList.vue' import ContractList from './components/ContractList.vue'
import ErrorOrderList from './components/ErrorOrderList.vue'
export default { export default {
components: { components: {
Popup, Popup,
...@@ -45,7 +46,8 @@ export default { ...@@ -45,7 +46,8 @@ export default {
OrderStatusList, OrderStatusList,
PayList, PayList,
CourseOptionList, CourseOptionList,
ContractList ContractList,
ErrorOrderList
}, },
name: 'OrderScreen', name: 'OrderScreen',
props: { props: {
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta'] const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 0 const index = 1
/** /**
* *
0本地 0本地
...@@ -50,7 +50,7 @@ const domain = { ...@@ -50,7 +50,7 @@ const domain = {
const djDomain = { const djDomain = {
// ip: 'http://dj.dev.glsx.com.cn', // 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', dev: 'http://dj.dev.glsx.com.cn',
beta: 'https://dj.beta.glsx.com.cn', //预发布 appid: wx9f91c1ec493eb425 beta: 'https://dj.beta.glsx.com.cn', //预发布 appid: wx9f91c1ec493eb425
uat: 'https://dj.test.glsx.com.cn', //测试 appid: wxe10067a63c1856ac uat: 'https://dj.test.glsx.com.cn', //测试 appid: wxe10067a63c1856ac
......
...@@ -256,5 +256,12 @@ export default { ...@@ -256,5 +256,12 @@ export default {
console.log(data, '限制录单') console.log(data, '限制录单')
return Promise.resolve(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 @@ ...@@ -39,12 +39,23 @@
</view> </view>
</view> </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="order-payType flex">
<view class="payType flex align-center"> <view class="payType flex align-center">
<view class="payType-label">订单类型</view> <view class="payType-label">订单类型</view>
<view class="payType-value flex align-center"> <view class="payType-value flex align-center">
{{ payType[orderCardDetail['selectPayType']] }} {{ payType[orderCardDetail['selectPayType']] }}
<view class="flex align-center errorTips" v-if="orderCardDetail.abnormalFlag == 'Y'"><view class="sprite-icon icon-errortips"></view>异常</view>
</view> </view>
</view> </view>
...@@ -462,6 +473,20 @@ export default { ...@@ -462,6 +473,20 @@ export default {
border-radius: toRpx(4); border-radius: toRpx(4);
border: toRpx(1) solid transparent; 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 { .info-box {
display: flex; display: flex;
......
...@@ -113,9 +113,9 @@ module.exports = { ...@@ -113,9 +113,9 @@ module.exports = {
background: '#FFF5E6' background: '#FFF5E6'
}, },
11: { 11: {
text: '已失效', text: '错误订单',
color: '#8F959E', color: '#F59619',
background: ' #F3F4F5' background: ' #FFF6EB'
}, },
10: { 10: {
text: '已关闭', text: '已关闭',
...@@ -183,7 +183,7 @@ module.exports = { ...@@ -183,7 +183,7 @@ module.exports = {
value: [10] value: [10]
}, },
{ {
name: '已失效', name: '错误订单',
value: [11] value: [11]
} }
], ],
...@@ -194,7 +194,14 @@ module.exports = { ...@@ -194,7 +194,14 @@ module.exports = {
1: '审批中', //区域运营待审核 1: '审批中', //区域运营待审核
2: '审批中', //线上运营待审核 2: '审批中', //线上运营待审核
3: '审核通过', 3: '审核通过',
4: '驳回' 4: '审批驳回'
},
orderType: {
1: '正常订单',
2: '打折策略',
3: '买赠策略',
4: '冲量活动',
5: '组合付款'
} }
} }
} }
...@@ -584,8 +584,16 @@ export default { ...@@ -584,8 +584,16 @@ export default {
if (data) { if (data) {
console.log(`类型为:${selectPayType}`) console.log(`类型为:${selectPayType}`)
console.log(this.orderInfo) console.log(this.orderInfo)
console.log(data,'data')
if (selectPayType == 3 || selectPayType == 1) { 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 let size = 0
try { try {
const info = uni.getSystemInfoSync() const info = uni.getSystemInfoSync()
......
...@@ -898,7 +898,7 @@ export default { ...@@ -898,7 +898,7 @@ export default {
return return
} }
if (!(await this.checkDailyReport())) { if (!(await this.checkDailyReport()) &&!(await this.getAbnormalOrderLock())) {
const { orderCreateType } = this const { orderCreateType } = this
const obj = utils.deepClone(this.orderObj) const obj = utils.deepClone(this.orderObj)
const otherCustomer = ['standNo', 'plateNumber', 'customerSex', 'experienceFlag', 'salesType'] const otherCustomer = ['standNo', 'plateNumber', 'customerSex', 'experienceFlag', 'salesType']
......
...@@ -214,7 +214,20 @@ module.exports = { ...@@ -214,7 +214,20 @@ module.exports = {
'-1': { text: '战败', color: '#F24724', background: '#FDECE9' }, '-1': { text: '战败', color: '#F24724', background: '#FDECE9' },
9: { text: '已撤销', color: '#999999', background: 'rgba(153, 153, 153, 0.1)' }, 9: { text: '已撤销', color: '#999999', background: 'rgba(153, 153, 153, 0.1)' },
11: { text: '已失效', color: '#F7A431', background: '#FFF5E6' }, 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 { ...@@ -192,6 +192,26 @@ export default {
orderObj.price = this.divideByHundred(owner.price) orderObj.price = this.divideByHundred(owner.price)
orderObj.insurancePrice = this.divideByHundred(insurancePrice) orderObj.insurancePrice = this.divideByHundred(insurancePrice)
orderObj.quotedPriceUpdate = this.divideByHundred(quotedPriceUpdate) 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 = [] if (!data.vdQuotationGoodsList) data.vdQuotationGoodsList = []
orderObj.vdQuotationGoodsList = data.vdQuotationGoodsList.map(item => { orderObj.vdQuotationGoodsList = data.vdQuotationGoodsList.map(item => {
item.price = this.divideByHundred(item.goodsPrice) item.price = this.divideByHundred(item.goodsPrice)
...@@ -223,6 +243,63 @@ export default { ...@@ -223,6 +243,63 @@ export default {
if (e.value == 'salesType') e.current = owner.salesType if (e.value == 'salesType') e.current = owner.salesType
if (e.value == 'ownerGender') e.current = owner.ownerGender 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) => { orderObj.skuGoods = data.vdQuotationGoodsList.reduce((pre, item) => {
// 是普通商品 // 是普通商品
if (!item.packageName && !item.specificationsValue) { if (!item.packageName && !item.specificationsValue) {
...@@ -233,6 +310,14 @@ export default { ...@@ -233,6 +310,14 @@ export default {
upgradeGoodsId: item.goodsId, upgradeGoodsId: item.goodsId,
merchantGoodsId: item.goodsId, merchantGoodsId: item.goodsId,
sellPrice: this.divideByHundred(item.goodsPrice), 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, // 按商品数据对比补充详情商品最低价 minSellPrice: quotationGoodsList?.find(val => val?.goods?.merchantGoodsId == item.goodsId)?.goods?.minSellPrice, // 按商品数据对比补充详情商品最低价
validMinSellPrice: quotationGoodsList?.find(val => val?.goods?.merchantGoodsId == item.goodsId)?.goods?.validMinSellPrice // 按商品数据对比补充详情商品校验最低价字段 validMinSellPrice: quotationGoodsList?.find(val => val?.goods?.merchantGoodsId == item.goodsId)?.goods?.validMinSellPrice // 按商品数据对比补充详情商品校验最低价字段
} }
...@@ -249,7 +334,12 @@ export default { ...@@ -249,7 +334,12 @@ export default {
merchantGoodsId: item.goodsId, merchantGoodsId: item.goodsId,
upgradeGoodsId: item.goodsId, upgradeGoodsId: item.goodsId,
sellPrice: this.divideByHundred(item.goodsPrice), 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, // 按商品数据对比补充详情商品最低价 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 // 按商品数据对比补充详情商品校验最低价字段 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 { ...@@ -280,7 +370,14 @@ export default {
} }
//多规格商品 //多规格商品
if (!item.packageName && item.specificationsValue) { 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) pre = pre.concat(specificdata)
} }
...@@ -875,7 +972,10 @@ export default { ...@@ -875,7 +972,10 @@ export default {
item = item.goods item = item.goods
const sellPrice = parseFloat(item.sellPrice || 0) const sellPrice = parseFloat(item.sellPrice || 0)
const number = parseInt(item.number || 1) 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 discountFields = this.calculateDiscountFields(item, sellPrice, number, orderInfo.orderTypeCode)
const obj = { const obj = {
goodsId: item.merchantGoodsId, goodsId: item.merchantGoodsId,
...@@ -896,7 +996,8 @@ export default { ...@@ -896,7 +996,8 @@ export default {
item.goodsList.map(ele => { item.goodsList.map(ele => {
const sellPrice = parseFloat(ele.sellPrice || 0) const sellPrice = parseFloat(ele.sellPrice || 0)
const number = parseInt(item.number || 1) 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) const discountFields = this.calculateDiscountFields(ele, sellPrice, number, orderInfo.orderTypeCode)
let obj = { let obj = {
packageId: item.packageCode, packageId: item.packageCode,
...@@ -921,7 +1022,8 @@ export default { ...@@ -921,7 +1022,8 @@ export default {
const goods = multipleSpecGoods.goods const goods = multipleSpecGoods.goods
const sellPrice = parseFloat(goods.sellPrice || 0) const sellPrice = parseFloat(goods.sellPrice || 0)
const number = parseInt(multipleSpecGoods.number || 1) 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 discountFields = this.calculateDiscountFields(goods, sellPrice, number, orderInfo.orderTypeCode)
const obj = { const obj = {
goodsId: goods.merchantGoodsId, goodsId: goods.merchantGoodsId,
......
...@@ -13,13 +13,35 @@ ...@@ -13,13 +13,35 @@
</view> </view>
</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 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: status[orderCardDetail.orderStatus].color, 'background-color': status[orderCardDetail.orderStatus].background }"> <view v-else class="status text-center" :style="{ color: currentStatusConfig.color, 'background-color': currentStatusConfig.background }">
{{ status[orderCardDetail.orderStatus].text }} {{ 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> </view>
<view class="order-card-bottom-box"> <view class="order-card-bottom-box">
<view class="info-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 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 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'"> <view class="order flex align-center" v-if="item.key == 'remark' && orderCardDetail.orderStatus == '-1'">
...@@ -71,11 +93,11 @@ ...@@ -71,11 +93,11 @@
</view> </view>
</view> </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="order-label">支付金额</view>
<view class="price flex"> <view class="price flex">
<text class="unit">¥</text> <text class="unit">¥</text>
{{ orderCardDetail.quotedPriceUpdate || '' }} {{ orderCardDetail.finalPrice || '' }}
</view> </view>
<view class="refund-box" v-if="orderCardDetail.refundAmount"> <view class="refund-box" v-if="orderCardDetail.refundAmount">
部分退款 部分退款
...@@ -200,6 +222,26 @@ export default { ...@@ -200,6 +222,26 @@ export default {
status() { status() {
return order_mixins.data.orderStatusObj || {} 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() { buttonConfig() {
const config = { const config = {
showMoreBtn: false, showMoreBtn: false,
...@@ -211,6 +253,11 @@ export default { ...@@ -211,6 +253,11 @@ export default {
const order = this.orderCardDetail const order = this.orderCardDetail
const localUser = this.localUserInfo const localUser = this.localUserInfo
// 如果是审批中状态(approveStatus === 0),不显示任何操作按钮
if (order.approveStatus === 0 || order.approveStatus === '0') {
return config
}
// 超管或商户类型1不可操作 // 超管或商户类型1不可操作
if (localUser?.isSuper || localUser?.userType !== 2) { if (localUser?.isSuper || localUser?.userType !== 2) {
config.showMoreBtn = order.showInvoiceEntrance || ((order.orderStatus == 3 || order.orderStatus == 5 || (order.orderStatus == 6 && order.refundAmount)) && this.isOrder) config.showMoreBtn = order.showInvoiceEntrance || ((order.orderStatus == 3 || order.orderStatus == 5 || (order.orderStatus == 6 && order.refundAmount)) && this.isOrder)
...@@ -990,6 +1037,14 @@ export default { ...@@ -990,6 +1037,14 @@ export default {
border-radius: toRpx(4); border-radius: toRpx(4);
border: toRpx(1) solid transparent; 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 { .info-box {
display: flex; display: flex;
......
...@@ -327,7 +327,7 @@ export default { ...@@ -327,7 +327,7 @@ export default {
if (!arr) { if (!arr) {
return arr return arr
} }
var attrList = ['equityPrice', 'quotedPrice', 'quotedPriceUpdate', 'refundAmount'] var attrList = ['equityPrice', 'quotedPrice', 'quotedPriceUpdate', 'refundAmount','finalPrice']
arr.forEach(item => { arr.forEach(item => {
attrList.forEach(k => { attrList.forEach(k => {
if (item[k]) { if (item[k]) {
......
...@@ -562,14 +562,15 @@ export default { ...@@ -562,14 +562,15 @@ export default {
} }
this.$emit('changeTotalPrice') this.$emit('changeTotalPrice')
}, },
// 初始化策略配置 // 初始化策略配置(支持编辑回显)
initStrategyConfig() { initStrategyConfig() {
if (!this.list || this.list.length === 0) return if (!this.list || this.list.length === 0) return
const strategyType = this.getStrategyType({}) const strategyType = this.getStrategyType({})
// 没有策略类型时,清空所有优惠配置
if (!strategyType) { if (!strategyType) {
// 订单类型切换时,重置所有商品的策略配置
this.list.forEach(item => { this.list.forEach(item => {
// 如果是套餐商品,需要重置套餐内所有商品的策略配置 // 套餐商品:重置套餐内所有商品
if (item.goodsFlag == 3 && item.packageGoods && item.packageGoods.goodsList) { if (item.goodsFlag == 3 && item.packageGoods && item.packageGoods.goodsList) {
item.packageGoods.goodsList.forEach(goods => { item.packageGoods.goodsList.forEach(goods => {
if (goods.strategyConfig) { if (goods.strategyConfig) {
...@@ -591,7 +592,6 @@ export default { ...@@ -591,7 +592,6 @@ export default {
} }
if (goods) { if (goods) {
// 重置策略配置和优惠相关字段
if (goods.strategyConfig) { if (goods.strategyConfig) {
goods.strategyConfig = {} goods.strategyConfig = {}
} }
...@@ -604,10 +604,15 @@ export default { ...@@ -604,10 +604,15 @@ export default {
} }
this.list.forEach(item => { this.list.forEach(item => {
// 如果是套餐商品,需要初始化套餐内所有商品的策略配置 // 套餐商品:初始化套餐内所有商品的策略配置
if (item.goodsFlag == 3 && item.packageGoods && item.packageGoods.goodsList) { if (item.goodsFlag == 3 && item.packageGoods && item.packageGoods.goodsList) {
item.packageGoods.goodsList.forEach(goods => { 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') { if (strategyType === 'discount') {
this.$set(goods, 'strategyConfig', { this.$set(goods, 'strategyConfig', {
mode: 'none', mode: 'none',
...@@ -638,7 +643,12 @@ export default { ...@@ -638,7 +643,12 @@ export default {
if (!goods) return 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') { if (strategyType === 'discount') {
this.$set(goods, 'strategyConfig', { this.$set(goods, 'strategyConfig', {
mode: 'none', mode: 'none',
......
...@@ -115,6 +115,13 @@ export default { ...@@ -115,6 +115,13 @@ export default {
this.lockReason = res.lockReason this.lockReason = res.lockReason
return return
} }
// 提示锁单
const abnormalOrderLock = await this.getAbnormalOrderLock()
if (abnormalOrderLock) {
this.showErrorOrderPopup = true
// this.lockReason = abnormalOrderLock.lockReason
return
}
// 保存当前选择的组件信息,但不立即切换 // 保存当前选择的组件信息,但不立即切换
const selectedItem = item const selectedItem = item
if (this.toolComponentName === selectedItem.name && (!this.transmissionOfData || this.transmissionOfData.type !== 'supplementOrder')) return 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!