Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c97c0476
authored
Sep 22, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
dc7cd52c
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1446 additions
and
37 deletions
assets/css/sprite.scss
assets/images/sprite.png
components/HomeFrame/components/LeftSide.vue
components/HomeFrame/index.vue
pages/boutique/tool/components/NoticePopup.vue → components/NoticePopup.vue
pages.json
pages/boutique/tool/components/DailyReport.vue
pages/boutique/tool/index.vue
pages/common/components/MerchantList.vue
pages/common/components/Scene.vue
pages/usedCar/tool/components/DailyReport.vue
pages/usedCar/tool/contant.js
pages/usedCar/tool/index.vue
assets/css/sprite.scss
View file @
c97c047
...
...
@@ -87,6 +87,8 @@
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.020034100596760442
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6606990622335891
);}
.icon-evaluation-management
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.14194373401534527
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5375106564364877
);}
.icon-evaluationClose
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4151747655583973
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
.icon-expiration
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.18925831202046037
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5375106564364877
);}
.icon-eye-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
...
...
@@ -106,11 +108,11 @@
.icon-feedback
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6547314578005116
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.2796248934356351
);}
.icon-ffdyj-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
151747655583973
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
3861892583120204
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
.icon-filter
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.10017050298380221
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6606990622335891
);}
.icon-finish-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
3861892583120204
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
620630861040068
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
.icon-first-nav
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.1977834612105712
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.07502131287297528
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.21099744245524296
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.35038363171355497
);}
.icon-front-gear
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
...
...
@@ -152,15 +154,15 @@
.icon-income-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.03410059676044331
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.03410059676044331
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4156010230179028
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5848252344416027
);}
.icon-info_shield
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
620630861040068
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
855072463768116
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
.icon-info-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.03751065643648764
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.03751065643648764
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3312020460358056
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5848252344416027
);}
.icon-invisible
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
4855072463768116
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
5089514066496164
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
.icon-isExpiredTrafficIcon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6547314578005116
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3132992327365729
);}
.icon-jbgz-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5
089514066496164
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5
323955669224212
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
.icon-js-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.05456095481670929
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3674339300937766
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3269394714407502
);}
.icon-learn-bg
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.18073316283034954
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.05285592497868713
);
...
...
@@ -200,7 +202,7 @@
.icon-order-management
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5848252344416027
);}
.icon-pause
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5
323955669224212
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5
400682011935208
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4317988064791134
);}
.icon-payType-1
{
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
.17476555839727195
);}
.icon-payType-2
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.06820119352088662
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.06820119352088662
);
...
...
@@ -212,13 +214,13 @@
.icon-payType-5
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.06820119352088662
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.06820119352088662
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4761295822676897
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.19138959931798807
);}
.icon-pbjd-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5400682011935208
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
317988064791134
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5400682011935208
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
5524296675191817
);}
.icon-pen-active
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.05115089514066496
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.05115089514066496
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4151747655583973
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.35038363171355497
);}
.icon-pen
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.05115089514066496
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.05115089514066496
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.47271952259164535
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.35038363171355497
);}
.icon-play
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
5400682011935208
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.45524296675191817
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
2693947144075021
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-point-active
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04774083546462063
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04859335038363171
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4825234441602728
);}
.icon-point
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04774083546462063
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04774083546462063
);
...
...
@@ -232,21 +234,21 @@
.icon-qg-tips
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.015345268542199489
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.015345268542199489
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5707587382779199
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-qgtc-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.2
693947144075021
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.2
928388746803069
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-qr-success
{
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
.5848252344416027
);}
.icon-qt-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
2928388746803069
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
31628303495311166
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-quality-no-data
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.19096334185848252
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0886615515771526
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3674339300937766
)
calc
(
100vmin
*
(
1173
/
768
)
*
0
);}
.icon-qw
{
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
.15942028985507245
);}
.icon-qytc-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3
1628303495311166
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3
3972719522591643
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-ranking
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6547314578005116
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.44799658994032393
);}
.icon-rbkk-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3
3972719522591643
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3
631713554987212
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-rear-gear
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.38064791133844844
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6606990622335891
);}
.icon-rear-window
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
...
...
@@ -283,6 +285,8 @@
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.14194373401534527
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5848252344416027
);}
.icon-scene-1
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.18925831202046037
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5848252344416027
);}
.icon-scene-5
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.23657289002557544
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5848252344416027
);}
.icon-scene-active
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.36871270247229326
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4825234441602728
);}
.icon-scene-change
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
...
...
@@ -290,7 +294,7 @@
.icon-scene
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4194373401534527
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4825234441602728
);}
.icon-search
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3
631713554987212
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3
86615515771526
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-second-nav
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.20460358056265984
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.07502131287297528
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.35038363171355497
);}
.icon-setting
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.027280477408354646
);
...
...
@@ -310,7 +314,7 @@
.icon-store-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5208866155157715
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6606990622335891
);}
.icon-store
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.2
365728900255754
4
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5848252344416027
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.2
838874680306905
4
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5848252344416027
);}
.icon-study-active
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4701619778346121
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4825234441602728
);}
.icon-study-tips
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.011935208866155157
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.011935208866155157
);
...
...
@@ -318,7 +322,7 @@
.icon-study
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5208866155157715
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4825234441602728
);}
.icon-submit
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
386615515771526
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
4100596760443308
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-successIcon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.023870417732310314
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.023870417732310314
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.618925831202046
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4825234441602728
);}
.icon-suggestions-arrow
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.015345268542199489
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.015345268542199489
);
...
...
@@ -332,11 +336,11 @@
.icon-task-pass
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.011935208866155157
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.011935208866155157
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6918158567774936
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.09335038363171355
);}
.icon-tdcj-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
100596760443308
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
3350383631713557
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-time-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5809889173060528
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6606990622335891
);}
.icon-time
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
3350383631713557
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
5694799658994034
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-tips-b
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6010230179028133
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6606990622335891
);}
.icon-tips-g
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.020460358056265986
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.020460358056265986
);
...
...
@@ -355,21 +359,17 @@
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6210571184995738
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6606990622335891
);}
.icon-two-arrow
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.011935208866155157
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.010230179028132993
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6918158567774936
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.11167945439045183
);}
.icon-uploadAdd
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.020460358056265986
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.020460358056265986
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.19224211423699913
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-visible
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
5694799658994034
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
803921568627451
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-warning-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6410912190963342
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6606990622335891
);}
.icon-work-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6611253196930946
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6606990622335891
);}
.icon-ybtc_icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
4803921568627451
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
5038363171355499
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-yw-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.015345268542199489
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.015345268542199489
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6142369991474851
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-zj-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6918158567774936
)
calc
(
100vmin
*
(
1173
/
768
)
*
0
);}
.icon-scene-5
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.28388746803069054
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5848252344416027
);}
.icon-evaluationClose
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5038363171355499
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
.icon-uploadAdd
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.020460358056265986
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.020460358056265986
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.19224211423699913
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6321398124467178
);}
\ No newline at end of file
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6918158567774936
)
calc
(
100vmin
*
(
1173
/
768
)
*
0
);}
\ No newline at end of file
assets/images/sprite.png
View file @
c97c047
2.74 MB
|
W:
|
H:
2.74 MB
|
W:
|
H:
2-up
Swipe
Onion skin
components/HomeFrame/components/LeftSide.vue
View file @
c97c047
...
...
@@ -145,7 +145,7 @@ export default {
icon
:
'icon-scene-0'
,
zoom
:
1.1669
,
},
5
:
{
7
:
{
title
:
'二手车'
,
describe
:
'二手车业务'
,
icon
:
'icon-scene-5'
,
...
...
@@ -423,7 +423,7 @@ export default {
let
url
=
{
1
:
'/pages/boutique/index'
,
0
:
'/pages/equity/index'
,
4
:
'/pages/usedCar/index'
7
:
'/pages/usedCar/index'
}[
userInfo
.
sceneType
]
uni
.
reLaunch
({
url
...
...
components/HomeFrame/index.vue
View file @
c97c047
...
...
@@ -385,7 +385,7 @@ export default {
},
start
()
{
const
{
sceneType
}
=
this
if
(
sceneType
==
4
)
return
//二手车无接待功能
if
(
sceneType
==
7
)
return
//二手车无接待功能
uni
.
$track
.
add
({
eventCode
:
'app_reception_begins'
})
...
...
@@ -406,8 +406,12 @@ export default {
}
const
noInterceptPage
=
[
'DailyReport'
]
if
(
!
noInterceptPage
.
includes
(
item
.
name
)
&&
((
await
this
.
checkDailyReport
())
||
(
await
this
.
inspectionOfProhibitionBill
())))
return
let
pageName
=
{
1
:
'boutique'
,
7
:
'usedCar'
}[
this
.
sceneType
]
uni
.
navigateTo
({
url
:
`/pages/
boutique
/tool/index?componentName=
${
item
.
name
}
`
url
:
`/pages/
${
pageName
}
/tool/index?componentName=
${
item
.
name
}
`
})
}
}
...
...
pages/boutique/tool/
components/NoticePopup.vue
→
components/NoticePopup.vue
View file @
c97c047
...
...
@@ -3,7 +3,7 @@
<view
class=
"popup-content"
:class=
"[`popup-$
{type}`]">
<view
class=
"popup-icon"
>
<image
:src=
"require(`
../../../..
/assets/images/common/$
{type}-notice.png`)"
:src=
"require(`
@
/assets/images/common/$
{type}-notice.png`)"
mode="aspectFit"
class="icon-image"
/>
...
...
pages.json
View file @
c97c047
...
...
@@ -208,6 +208,12 @@
"navigationStyle"
:
"custom"
,
"disableSwipeBack"
:
true
}
},
{
"path"
:
"pages/usedCar/tool/index"
,
"style"
:
{
"navigationStyle"
:
"custom"
}
}
],
"globalStyle"
:
{
...
...
pages/boutique/tool/components/DailyReport.vue
View file @
c97c047
...
...
@@ -191,7 +191,7 @@ var weekday = require('dayjs/plugin/weekday')
import
dayjs
from
'dayjs'
dayjs
.
extend
(
weekday
)
import
GlCell
from
'@/components/Form/GlCell.vue'
import
NoticePopup
from
'
.
/NoticePopup.vue'
import
NoticePopup
from
'
@/components
/NoticePopup.vue'
export
default
{
components
:
{
GlCell
,
...
...
pages/boutique/tool/index.vue
View file @
c97c047
...
...
@@ -36,7 +36,7 @@ import OrderManagement from './components/OrderManagement.vue'
import
ConfirmOrder
from
'./components/ConfirmOrder.vue'
import
OrderDetail
from
'./components/OrderDetail.vue'
import
UploadProofOfPayment
from
'./components/UploadProofOfPayment.vue'
import
NoticePopup
from
'
.
/components/NoticePopup.vue'
import
NoticePopup
from
'
@
/components/NoticePopup.vue'
import
dayjs
from
'dayjs'
import
{
interceptionMixin
}
from
'@/mixin/index'
...
...
pages/common/components/MerchantList.vue
View file @
c97c047
...
...
@@ -114,7 +114,7 @@ export default {
async
jumpPage
(
item
,
openSceneArr
)
{
let
{
merchantName
:
shopMerchantName
,
merchantId
:
shopMerchantId
}
=
item
,
{
userInfo
}
=
this
const
usedCarSceneType
=
5
const
usedCarSceneType
=
7
if
(
!
openSceneArr
?.
length
&&
!
userInfo
?.
isSuper
)
{
uni
.
hideLoading
()
uni
.
showToast
({
...
...
@@ -127,7 +127,7 @@ export default {
userInfo
=
{
...
userInfo
,
openSceneArr
:
[...
openSceneArr
,
5
],
//❗5
为联调写死,提测要删 ❗
openSceneArr
:
[...
openSceneArr
,
7
],
//❗7
为联调写死,提测要删 ❗
shopMerchantName
,
shopMerchantId
,
default4SStoreInfo
:
{
...
...
pages/common/components/Scene.vue
View file @
c97c047
...
...
@@ -44,7 +44,7 @@ export default {
{
sceneName
:
'二手车'
,
sceneDesc
:
'二手车业务'
,
sceneType
:
5
,
sceneType
:
7
,
actived
:
false
},
],
...
...
@@ -116,7 +116,7 @@ export default {
let
url
=
{
1
:
'/pages/boutique/index'
,
0
:
'/pages/equity/index'
,
5
:
'/pages/usedCar/index'
7
:
'/pages/usedCar/index'
}[
userInfo
.
sceneType
]
uni
.
reLaunch
({
url
...
...
pages/usedCar/tool/components/DailyReport.vue
0 → 100644
View file @
c97c047
<
template
>
<!-- -->
<view
class=
"daily-report"
>
<view
class=
"common-title"
>
填写日报
</view>
<scroll-view
:class=
"['repoet-view',
{full:!orderObj.isDateWithin7Days}]"
scroll-y
:scroll-into-view="to"
@scroll="to = ''"
>
<view
class=
"repoet-box"
>
<template
v-if=
"loadComplete"
>
<view
class=
"box"
>
<view
class=
"sub-title"
>
二手车日报
</view>
<template
v-for=
"(i,index) in reportObject"
>
<view
class=
"form-item flex"
:key=
"index"
:id=
"i.refId || ''"
>
<view
class=
"label flex"
>
{{
i
.
label
}}
<template
v-if=
"index != 0 || (i.required && orderObj.pickerValue == 0)"
>
<view
class=
"required"
>
*
</view>
</
template
>
</view>
<view
class=
"value flex"
>
<
template
v-if=
"i.type == 'input'"
>
<input
class=
"input"
:type=
"i.inputType || 'text'"
:value=
"orderObj[i.value]"
:placeholder=
"i.placeholder || '请输入'"
placeholder-class=
"placeholder"
@
blur=
"handleBlur($event, i)"
:disabled=
"filterDisabled(isEditReport)"
:maxlength=
"3"
:key=
"dateKey[i.value]"
auto-blur
>
</
template
>
<
template
v-else-if=
"i.type == 'picker'"
>
<picker
class=
"picker flex"
:value=
"orderObj[i.value]"
:range=
"i.range"
:range-key=
"i.rangeKey"
@
change=
"changePicker($event,i)"
:disabled=
"filterDisabled(isEditReport)"
>
{{
i
.
range
[
orderObj
[
i
.
value
]][
i
.
rangeKey
]
||
''
}}
<uni-icons
type=
"right"
:size=
"16"
color=
"#999"
class=
"arrow"
></uni-icons>
</picker>
</
template
>
<
template
v-else
>
{{
orderObj
[
i
.
value
]
}}
</
template
>
</view>
</view>
</template>
</view>
</template>
</view>
</scroll-view>
<
template
v-if=
"orderObj.isDateWithin7Days"
>
<view
class=
"btn-box flex"
>
<template
v-if=
"filterDisabled()"
>
<template
v-if=
"!isEditReport"
>
<view
class=
"btn"
@
click=
"isEditReport = true"
>
编辑
</view>
</
template
>
<
template
v-else
>
<view
class=
"btn cancel-btn"
@
click=
"isEditReport = false"
>
取消
</view>
<view
class=
"btn"
@
click=
"submit"
>
保存
</view>
</
template
>
</template>
<
template
v-else
>
<view
class=
"btn"
@
click=
"submit"
>
提交
</view>
</
template
>
</view>
</template>
<NoticePopup
ref=
"reportNotice"
title=
"提交成功"
text=
"您的日报已提交成功"
type=
"success"
:buttons=
"buttons"
@
buttonClick=
"back"
></NoticePopup>
</view>
</template>
<
script
type=
'text/ecmascript-6'
>
var
weekday
=
require
(
'dayjs/plugin/weekday'
)
import
dayjs
from
'dayjs'
dayjs
.
extend
(
weekday
)
import
NoticePopup
from
'@/components/NoticePopup.vue'
export
default
{
components
:
{
NoticePopup
},
props
:
{
currentDate
:
String
,
currentMonth
:
String
},
name
:
'DailyReport'
,
data
()
{
return
{
to
:
''
,
dateKey
:
{},
loadComplete
:
false
,
reportObject
:
Object
.
freeze
([
{
label
:
'新车下订'
,
value
:
'staffCount'
,
type
:
'input'
,
required
:
true
,
inputType
:
'number'
,
refId
:
'staffCount'
},
{
label
:
'新车交付'
,
value
:
'staffCount'
,
type
:
'input'
,
required
:
true
,
inputType
:
'number'
,
refId
:
'staffCount'
},
]),
orderObj
:
{},
carBandList
:
[],
weeklyList
:
[],
isEditReport
:
false
,
buttons
:
Object
.
freeze
([
{
text
:
'返回首页'
,
type
:
'primary'
}
])
}
},
computed
:
{
userInfo
()
{
return
uni
.
$storage
.
get
(
"userInfo"
)
},
mouthNumber
()
{
return
dayjs
(
this
.
currentMonth
).
daysInMonth
()
},
},
watch
:
{
currentMonth
:
{
handler
(
val
)
{
this
.
setMonthDay
()
},
deep
:
true
,
immediate
:
true
},
currentDate
:
{
handler
(
val
)
{
if
(
this
.
carBandList
.
length
)
this
.
getStaffDailyReportDetail
()
},
deep
:
true
,
}
},
mounted
()
{
uni
.
$track
.
add
({
eventCode
:
'app_daily_report'
})
//驻店日报埋点
this
.
initData
()
},
methods
:
{
back
()
{
uni
.
navigateBack
()
},
initData
()
{
const
{
merchantId
,
merchantName
,
name
,
uuid
,
shopMerchantId
,
shopMerchantName
}
=
this
.
userInfo
this
.
orderObj
=
{
yqMerchantId
:
merchantId
,
yqMerchantName
:
merchantName
,
staffName
:
name
,
staffUuid
:
uuid
,
merchantId
:
shopMerchantId
,
merchantName
:
shopMerchantName
}
this
.
getDailyReportCarBrand
()
},
async
getDailyReportCarBrand
()
{
let
{
userInfo
}
=
this
,
{
shopMerchantId
}
=
userInfo
const
data
=
await
uni
.
$api
.
boutiqueApi
.
getDailyReportCarBrand
({
merchantId
:
shopMerchantId
,
sceneType
:
1
})
this
.
carBandList
=
data
this
.
getStaffDailyReportDetail
()
},
setMonthDay
()
{
let
{
mouthNumber
}
=
this
,
currentMonth
=
dayjs
(
this
.
currentMonth
).
format
(
'YYYY-MM'
),
nowYear
=
dayjs
(
currentMonth
).
format
(
'YYYY'
),
nowMonth
=
dayjs
(
currentMonth
).
format
(
'MM'
),
maxDay
=
dayjs
().
format
(
'D'
),
maxMonth
=
dayjs
().
format
(
'YYYY-MM'
),
dayNum
=
currentMonth
<
maxMonth
?
mouthNumber
:
maxDay
,
weekDayList
=
[]
if
(
currentMonth
>
maxMonth
)
return
for
(
let
i
=
1
;
i
<=
dayNum
;
i
++
)
{
let
date
=
dayjs
(
`
${
nowYear
}
-
${
nowMonth
}
-
${
i
}
`
).
format
(
'YYYY-MM-DD'
),
week
=
[
'日'
,
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
][
dayjs
(
date
).
weekday
()]
weekDayList
.
push
({
day
:
i
,
date
,
week
,
disabled
:
false
})
}
let
startDay
=
weekDayList
[
0
].
date
,
endDay
=
weekDayList
[
weekDayList
.
length
-
1
].
date
let
params
=
{
weekDayList
,
yearMonth
:
currentMonth
,
starDay
:
1
,
starDayLabel
:
dayjs
(
startDay
).
format
(
'YYYY/MM/DD'
),
reportStartDate
:
startDay
,
endDayLabel
:
dayjs
(
endDay
).
format
(
'YYYY/MM/DD'
),
reportEndDate
:
endDay
,
formatYearMonth
:
currentMonth
}
this
.
getStaffDailyReportDetailWeeklyList
(
params
)
},
async
getStaffDailyReportDetailWeeklyList
(
params
)
{
let
{
shopMerchantId
,
merchantId
,
uuid
}
=
this
.
userInfo
const
data
=
await
uni
.
$api
.
boutiqueApi
.
getStaffDailyReportDetailWeeklyList
({
staffUuid
:
uuid
,
yqMerchantId
:
merchantId
,
merchantId
:
shopMerchantId
,
...
params
,
sceneType
:
1
,
reportTypeList
:
[
-
1
]
})
let
selectedDay
=
[]
params
.
weekDayList
.
map
(
e
=>
{
let
{
date
}
=
e
if
(
!
data
.
includes
(
date
))
selectedDay
.
push
({
date
})
})
this
.
weeklyList
=
data
this
.
$emit
(
'setCalendarSelected'
,
selectedDay
)
},
async
getStaffDailyReportDetail
()
{
this
.
isEditReport
=
false
this
.
loadComplete
=
false
let
{
currentDate
,
userInfo
,
carBandList
,
hwOhterObjArray
,
orderObj
}
=
this
,
{
shopMerchantId
,
merchantId
,
uuid
}
=
userInfo
uni
.
showLoading
({
mask
:
true
})
const
data
=
await
uni
.
$api
.
boutiqueApi
.
getStaffDailyReportDetail
({
yqMerchantId
:
merchantId
,
merchantId
:
shopMerchantId
,
staffUuid
:
uuid
,
reportDate
:
currentDate
,
sceneType
:
1
,
reportTypeList
:
[
-
1
]
})
uni
.
hideLoading
()
let
{
brandDataList
,
remark
}
=
data
if
(
brandDataList
&&
brandDataList
.
length
)
{
carBandList
=
carBandList
.
map
((
item
,
index
)
=>
{
this
.
dateKey
[
`deliveryCount_
${
index
}
`
]
=
Date
.
now
()
this
.
dateKey
[
`notDeliveryCount_
${
index
}
`
]
=
Date
.
now
()
this
.
dateKey
[
`equityToShopCount_
${
index
}
`
]
=
Date
.
now
()
this
.
dateKey
[
`afterSaleEquityToShopCount_
${
index
}
`
]
=
Date
.
now
()
let
carBand
=
brandDataList
.
find
(
ele
=>
{
if
([
0
,
1
].
includes
(
ele
.
brandType
))
{
return
ele
.
brandType
==
item
.
brandType
}
else
if
(
ele
.
brandType
==
2
)
{
return
ele
.
firstBrandId
==
item
.
firstBrandId
}
})
if
(
carBand
!=
null
)
{
let
{
firstBrandId
,
firstBrandName
,
brandId
,
brandName
,
brandType
}
=
item
item
=
{
...
carBand
,
firstBrandId
,
firstBrandName
,
brandId
,
brandName
,
brandType
}
}
else
{
hwOhterObjArray
.
forEach
(
e
=>
{
item
[
e
.
key
]
=
null
})
}
return
item
})
}
let
diffDay
=
dayjs
().
diff
(
dayjs
(
currentDate
),
'day'
)
this
.
hwOhterObjArray
=
hwOhterObjArray
this
.
carBandList
=
carBandList
this
.
orderObj
=
{
...
orderObj
,
reportDate
:
currentDate
,
isDateWithin7Days
:
diffDay
<
7
,
isDateWithin60Days
:
diffDay
<
60
,
remark
,
lastStaffName
:
data
.
lastStaffName
,
lastStaffUuid
:
data
.
lastStaffUuid
,
recordStaffCount
:
data
.
staffCount
,
totalOrderMoney
:
data
.
totalOrderMoney
,
totalOrderCount
:
data
.
totalOrderCount
,
glWorryFreeCount
:
data
.
glWorryFreeCount
,
cancelOrderCount
:
data
.
cancelOrderCount
,
cancelOrderMoney
:
data
.
cancelOrderMoney
,
templateType
:
data
.
templateType
||
0
,
staffCount
:
data
.
staffCount
,
onBreak
:
data
.
onBreak
||
'N'
,
pickerValue
:
data
.
onBreak
==
'Y'
?
1
:
0
,
staffCountError
:
false
,
}
this
.
loadComplete
=
true
this
.
dateKey
.
staffCount
=
Date
.
now
()
},
title
(
item
)
{
let
title
=
''
if
(
item
.
brandType
==
0
)
title
=
'问界'
if
(
item
.
brandType
==
1
)
title
=
'鸿蒙'
return
title
||
item
.
firstBrandName
},
handleBlur
(
e
,
i
)
{
let
{
value
}
=
e
.
detail
if
(
value
)
{
let
{
orderObj
,
userInfo
}
=
this
let
key
=
i
.
value
,
numbers
=
value
.
match
(
/
\d
+/g
)
numbers
=
numbers
?
numbers
.
join
(
''
)
:
''
if
(
numbers
.
length
>
1
)
numbers
=
numbers
.
replace
(
/^0+/
,
''
)
this
.
orderObj
[
key
]
=
Math
.
min
(
Math
.
max
(
Number
(
numbers
),
0
),
100
).
toString
()
this
.
dateKey
[
key
]
=
Date
.
now
()
if
(
this
.
isNotEmpty
(
orderObj
.
recordStaffCount
)
&&
this
.
isNotEmpty
(
value
)
&&
orderObj
.
recordStaffCount
!=
value
&&
orderObj
.
lastStaffUuid
&&
userInfo
.
uuid
!=
orderObj
.
lastStaffUuid
)
uni
.
showModal
({
title
:
'预警提示'
,
content
:
`今日驻店人数与
${
orderObj
.
lastStaffName
}
提交不一致,再次确认!不一致提交日报时,今日驻店人数将被清空。`
,
showCancel
:
false
,
confirmText
:
'知道了'
,
confirmColor
:
'#347BFF'
})
}
},
isNotEmpty
(
value
)
{
return
(
value
!==
null
&&
value
!==
undefined
&&
value
!==
''
&&
!
(
Array
.
isArray
(
value
)
&&
value
.
length
===
0
)
)
},
handleCarInputBlur
(
e
,
i
,
item
,
index
)
{
let
{
value
}
=
e
.
detail
if
(
value
)
{
let
{
key
}
=
i
,
numbers
=
value
.
match
(
/
\d
+/g
)
numbers
=
numbers
?
numbers
.
join
(
''
)
:
''
if
(
numbers
.
length
>
1
)
numbers
=
numbers
.
replace
(
/^0+/
,
''
)
item
[
key
]
=
Math
.
min
(
Math
.
max
(
Number
(
numbers
),
0
),
100
).
toString
()
this
.
dateKey
[
`
${
key
}
_
${
index
}
`
]
=
Date
.
now
()
}
},
async
submit
()
{
uni
.
showLoading
({
title
:
'提交中'
,
mask
:
true
})
uni
.
$track
.
add
({
eventCode
:
'app_submit_daily_report'
})
//提交驻店日报埋点
try
{
let
{
orderObj
,
carBandList
,
hwOhterObjArray
}
=
this
orderObj
.
isAdmin
=
false
orderObj
.
oprBy
=
orderObj
.
staffUuid
orderObj
.
sceneType
=
1
orderObj
.
brandDataList
=
carBandList
if
(
orderObj
.
pickerValue
==
0
)
{
if
(
orderObj
.
staffCount
==
null
)
throw
{
message
:
'今日驻店人数(按店)'
,
refId
:
'staffCount'
}
carBandList
.
map
((
item
,
index
)
=>
{
hwOhterObjArray
.
map
(
el
=>
{
if
(
el
.
required
&&
[
''
,
null
].
includes
(
item
[
el
.
key
]))
throw
{
message
:
el
.
label
,
refId
:
`
${
el
.
refId
}
_
${
index
}
`
}
})
})
}
if
(
orderObj
.
onBreak
==
'Y'
)
{
orderObj
.
brandDataList
.
forEach
(
item
=>
{
item
.
notDeliveryCount
=
item
.
notDeliveryCount
||
0
item
.
equityToShopCount
=
item
.
equityToShopCount
||
0
})
}
const
data
=
await
uni
.
$api
.
boutiqueApi
.
saveStaffDailyReport
(
orderObj
)
uni
.
hideLoading
()
if
(
data
)
{
this
.
isEditReport
=
false
this
.
$refs
.
reportNotice
.
open
()
}
}
catch
(
errorObj
)
{
uni
.
hideLoading
()
if
(
errorObj
.
message
)
{
uni
.
showToast
({
title
:
`
${
errorObj
.
message
}
不能为空`
,
icon
:
'none'
})
this
.
to
=
errorObj
.
refId
}
else
uni
.
showToast
({
title
:
typeof
errorObj
==
'string'
?
errorObj
:
errorObj
.
toString
(),
icon
:
'none'
})
}
},
filterDisabled
(
disabledStatus
)
{
let
{
weeklyList
,
currentDate
,
orderObj
:
{
isDateWithin7Days
}
}
=
this
return
weeklyList
.
includes
(
currentDate
)
&&
!
disabledStatus
||
!
isDateWithin7Days
},
changePicker
(
e
,
i
)
{
let
{
value
}
=
e
.
detail
this
.
orderObj
[
i
.
value
]
=
value
this
.
orderObj
[
i
.
submitValue
]
=
value
==
1
?
'Y'
:
'N'
},
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
.daily-report
{
height
:
100%
;
.repoet-view
{
height
:
calc
(
100%
-
#{
toRpx
(
248
)}
);
}
.full
{
height
:
calc
(
100%
-
#{
toRpx
(
120
)}
);
}
.box
{
margin
:
0
toRpx
(
48
)
toRpx
(
16
);
border-radius
:
toRpx
(
16
);
background
:
#ffffff
;
padding-left
:
toRpx
(
32
);
.sub-title
{
line-height
:
toRpx
(
48
);
padding
:
toRpx
(
16
)
toRpx
(
32
)
toRpx
(
8
)
0
;
color
:
#777777
;
font-size
:
toRpx
(
24
);
.staff-name
{
margin-left
:
auto
;
color
:
#4673ff
;
font-size
:
toRpx
(
24
);
}
}
.form-item
{
min-height
:
toRpx
(
96
);
border-bottom
:
toRpx
(
2
)
solid
#f7f7f6
;
padding-right
:
toRpx
(
32
);
font-size
:
toRpx
(
28
);
color
:
#333333
;
&:last-of-type
{
border-bottom
:
none
;
}
.label
{
flex-shrink
:
0
;
.required
{
color
:
#f24724
;
font-size
:
toRpx
(
28
);
margin-left
:
toRpx
(
8
);
}
}
.value
{
width
:
100%
;
height
:
100%
;
justify-content
:
flex-end
;
.input,
.picker
{
width
:
100%
;
height
:
100%
;
text-align
:
right
;
line-height
:
toRpx
(
96
);
justify-content
:
flex-end
;
.arrow
{
position
:
relative
;
top
:
toRpx
(
2
);
margin-left
:
toRpx
(
4
);
}
}
.placeholder
{
color
:
#999999
;
font-size
:
toRpx
(
28
);
}
.textarea
{
width
:
calc
(
100%
-
#{
toRpx
(
24
)}
);
margin-left
:
toRpx
(
24
);
text-align
:
right
;
}
}
}
.name
{
line-height
:
toRpx
(
48
);
height
:
toRpx
(
72
);
color
:
#777777
;
font-size
:
toRpx
(
24
);
border-bottom
:
none
;
}
}
.btn-box
{
height
:
toRpx
(
128
);
padding
:
0
toRpx
(
128
);
gap
:
0
toRpx
(
32
);
.btn
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
width
:
100%
;
height
:
toRpx
(
80
);
border-radius
:
toRpx
(
48
);
background
:
linear-gradient
(
0deg
,
#2c66f7
0%
,
#48a6ff
100%
);
color
:
#ffffff
;
font-size
:
toRpx
(
28
);
font-weight
:
500
;
}
.cancel-btn
{
background
:
#3b73ff1
a
;
color
:
#4673ff
;
}
}
}
</
style
>
\ No newline at end of file
pages/usedCar/tool/contant.js
0 → 100644
View file @
c97c047
const
FORM_LIST
=
[
[
{
label
:
'销售顾问'
,
value
:
'employeeName'
,
type
:
'select'
,
// key: 'staffName',
required
:
true
,
showText
:
'shopMerchantName'
},
{
label
:
'交付专员'
,
value
:
'deliveryEmployeeName'
,
type
:
'select'
,
required
:
true
,
// key: 'staffName',
hidden
:
true
,
showText
:
'shopMerchantName'
},
{
label
:
'二级流量方'
,
value
:
'subShopMerchantName'
,
type
:
'select'
,
required
:
true
,
// key: 'subMerchantName',
hidden
:
true
},
{
label
:
'转化人员'
,
value
:
'sellerName'
,
type
:
'select'
,
// key: 'staffName',
required
:
true
,
showText
:
'merchantName'
}
],
[
{
label
:
'车主姓名'
,
value
:
'customerName'
,
maxlength
:
'16'
,
type
:
'input'
,
required
:
true
},
{
label
:
'客户来源'
,
value
:
'salesType'
,
type
:
'radio'
,
current
:
'0'
,
radioList
:
[
{
value
:
'0'
,
name
:
'售前'
},
{
value
:
'1'
,
name
:
'售后'
}
],
required
:
true
},
{
label
:
'性别'
,
value
:
'customerSex'
,
type
:
'radio'
,
current
:
'1'
,
radioList
:
[
{
value
:
'1'
,
name
:
'男'
},
{
value
:
'2'
,
name
:
'女'
}
]
},
{
label
:
'手机号'
,
value
:
'customerPhone'
,
maxlength
:
'11'
,
type
:
'input'
,
required
:
true
,
inputType
:
'number'
},
{
label
:
'选择车型'
,
value
:
'carBrand'
,
type
:
'select'
,
key
:
'carInfo'
},
{
label
:
'车架号(VIN)'
,
value
:
'standNo'
,
maxlength
:
'17'
,
type
:
'input'
},
{
label
:
'车牌号'
,
value
:
'plateNumber'
,
maxlength
:
'8'
,
type
:
'input'
},
{
label
:
'是否体验'
,
value
:
'experienceFlag'
,
type
:
'radio'
,
current
:
'Y'
,
radioList
:
[
{
value
:
'Y'
,
name
:
'是'
},
{
value
:
'N'
,
name
:
'否'
}
]
}
],
[
{
label
:
'精品礼券'
,
value
:
'couponInfo'
,
type
:
'select'
,
key
:
'name'
,
required
:
true
},
{
label
:
'请选择产品'
,
onlyLabel
:
true
,
required
:
true
,
noBorder
:
true
},
{
label
:
'前挡'
,
value
:
'frontGear'
,
type
:
'select'
,
key
:
'name'
,
labellIcon
:
'front-gear'
,
addHtml
:
'frontGear'
,
hidden
:
true
},
{
label
:
'前侧窗玻璃'
,
value
:
'frontWindow'
,
type
:
'select'
,
key
:
'name'
,
labellIcon
:
'front-window'
,
addHtml
:
'frontWindow'
,
hidden
:
true
},
{
label
:
'后侧窗玻璃'
,
value
:
'rearGear'
,
type
:
'select'
,
key
:
'name'
,
labellIcon
:
'rear-gear'
,
addHtml
:
'rearGear'
,
hidden
:
true
},
{
label
:
'后档'
,
value
:
'rearWindow'
,
type
:
'select'
,
key
:
'name'
,
labellIcon
:
'rear-window'
,
addHtml
:
'rearWindow'
,
hidden
:
true
},
{
label
:
'天窗'
,
value
:
'sunRoof'
,
type
:
'select'
,
key
:
'name'
,
labellIcon
:
'sun-roof'
,
addHtml
:
'sunRoof'
,
hidden
:
true
},
{
label
:
'套餐'
,
value
:
'package'
,
type
:
'select'
,
key
:
'name'
,
addHtml
:
'package'
},
{
label
:
'其他精品'
,
value
:
'skuGoods'
,
type
:
'select'
,
key
:
'name'
,
addHtml
:
'skuGoods'
},
{
label
:
'收款方式'
,
value
:
'payeeType'
,
type
:
'radio'
,
key
:
'name'
,
current
:
'1'
,
radioList
:
[
{
value
:
'0'
,
name
:
'嘀加收款'
,
disabled
:
false
},
{
value
:
'1'
,
name
:
'4s店收款'
,
disabled
:
false
}
]
},
{
label
:
'支付方式'
,
value
:
'selectPayType'
,
type
:
'radio'
,
key
:
'name'
,
current
:
'0'
,
radioList
:
[
// {
// value: '3',
// name: 'POS机'
// },
// {
// value: '6',
// name: '对公转账'
// },
// {
// value: '7',
// name: '其他收款'
// }
],
addHtml
:
'otherPay'
}
],
[
{
label
:
'备注'
,
value
:
'remark'
,
maxlength
:
'100'
,
type
:
'textarea'
,
placeholder
:
'请输入 (100字以内)'
,
class
:
'cell-break'
}
]
]
const
DEFEAT_FORM_LIST
=
[
[
{
label
:
'战败日期'
,
value
:
'todayShow'
,
type
:
'select'
,
// key: 'staffName',
required
:
true
},
{
label
:
'销售顾问/录单员'
,
value
:
'employeeName'
,
type
:
'select'
,
// key: 'staffName',
required
:
true
,
showText
:
'shopMerchantName'
},
{
label
:
'交付专员'
,
value
:
'deliveryEmployeeName'
,
type
:
'select'
,
required
:
true
,
// key: 'staffName',
hidden
:
true
,
showText
:
'shopMerchantName'
},
{
label
:
'二级流量方'
,
value
:
'subShopMerchantName'
,
type
:
'select'
,
required
:
true
,
// key: 'subMerchantName',
hidden
:
true
},
{
label
:
'转化人员'
,
value
:
'sellerName'
,
type
:
'select'
,
// key: 'staffName',
required
:
true
,
showText
:
'merchantName'
}
],
[
{
label
:
'车主姓名'
,
value
:
'customerName'
,
maxlength
:
'16'
,
type
:
'input'
,
required
:
true
},
{
label
:
'客户来源'
,
value
:
'salesType'
,
type
:
'radio'
,
current
:
'0'
,
radioList
:
[
{
value
:
'0'
,
name
:
'售前'
},
{
value
:
'1'
,
name
:
'售后'
}
],
required
:
true
,
hidden
:
true
},
{
label
:
'性别'
,
value
:
'customerSex'
,
type
:
'radio'
,
current
:
'1'
,
radioList
:
[
{
value
:
'1'
,
name
:
'男'
},
{
value
:
'2'
,
name
:
'女'
}
]
},
{
label
:
'手机号'
,
value
:
'customerPhone'
,
maxlength
:
'11'
,
type
:
'input'
,
required
:
true
,
inputType
:
'number'
},
{
label
:
'选择车型'
,
value
:
'carBrand'
,
type
:
'select'
,
key
:
'carInfo'
},
{
label
:
'车架号(VIN)'
,
value
:
'standNo'
,
maxlength
:
'17'
,
type
:
'input'
},
{
label
:
'车牌号'
,
value
:
'plateNumber'
,
maxlength
:
'8'
,
type
:
'input'
},
{
label
:
'是否体验'
,
value
:
'experienceFlag'
,
type
:
'radio'
,
current
:
'Y'
,
required
:
true
,
radioList
:
[
{
value
:
'Y'
,
name
:
'是'
},
{
value
:
'N'
,
name
:
'否'
}
]
}
],
[
{
label
:
'精品礼券'
,
value
:
'couponInfo'
,
type
:
'select'
,
key
:
'name'
,
required
:
true
,
hidden
:
true
},
{
label
:
'请选择产品'
,
onlyLabel
:
true
,
required
:
true
,
noBorder
:
true
},
{
label
:
'前挡'
,
value
:
'frontGear'
,
type
:
'select'
,
key
:
'name'
,
labellIcon
:
'front-gear'
,
addHtml
:
'frontGear'
,
hidden
:
true
},
{
label
:
'前侧窗玻璃'
,
value
:
'frontWindow'
,
type
:
'select'
,
key
:
'name'
,
labellIcon
:
'front-window'
,
addHtml
:
'frontWindow'
,
hidden
:
true
},
{
label
:
'后侧窗玻璃'
,
value
:
'rearGear'
,
type
:
'select'
,
key
:
'name'
,
labellIcon
:
'rear-gear'
,
addHtml
:
'rearGear'
,
hidden
:
true
},
{
label
:
'后档'
,
value
:
'rearWindow'
,
type
:
'select'
,
key
:
'name'
,
labellIcon
:
'rear-window'
,
addHtml
:
'rearWindow'
,
hidden
:
true
},
{
label
:
'天窗'
,
value
:
'sunRoof'
,
type
:
'select'
,
key
:
'name'
,
labellIcon
:
'sun-roof'
,
addHtml
:
'sunRoof'
,
hidden
:
true
},
{
label
:
'套餐'
,
value
:
'package'
,
type
:
'select'
,
key
:
'name'
,
addHtml
:
'package'
,
hidden
:
true
},
{
label
:
'其他精品'
,
value
:
'skuGoods'
,
type
:
'select'
,
key
:
'name'
,
addHtml
:
'skuGoods'
,
hidden
:
true
},
{
label
:
'收款方式'
,
value
:
'payeeType'
,
type
:
'radio'
,
key
:
'name'
,
current
:
'1'
,
radioList
:
[
{
value
:
'0'
,
name
:
'嘀加收款'
,
disabled
:
false
},
{
value
:
'1'
,
name
:
'4s店收款'
,
disabled
:
false
}
],
hidden
:
true
},
{
label
:
'支付方式'
,
value
:
'selectPayType'
,
type
:
'radio'
,
key
:
'name'
,
current
:
'0'
,
radioList
:
[
// {
// value: '3',
// name: 'POS机'
// },
// {
// value: '6',
// name: '对公转账'
// },
// {
// value: '7',
// name: '其他收款'
// }
],
addHtml
:
'otherPay'
,
hidden
:
true
}
],
[
{
label
:
'车主拒升理由'
,
value
:
'refusalReason'
,
maxlength
:
'30'
,
type
:
'textarea'
,
placeholder
:
'请输入 (30字以内)'
,
class
:
'cell-break'
,
required
:
true
,
addHtml
:
'reasonList'
,
noBorder
:
true
}
]
]
const
payTypeList
=
[
{
value
:
'1'
,
name
:
'微信支付'
},
{
value
:
'2'
,
name
:
'门店收款'
},
{
value
:
'3'
,
name
:
'POS机'
},
{
value
:
'4'
,
name
:
'支付宝支付'
},
{
value
:
'5'
,
name
:
'嘀加收款'
},
{
value
:
'6'
,
name
:
'对公转账'
},
{
value
:
'7'
,
name
:
'其他收款'
}
]
const
popupTypeEnum
=
{
0
:
{
key
:
'employeeName'
,
list
:
'employeeList'
,
targetIdKey
:
'userId'
,
targetNameKey
:
'employeeName'
,
sourceIdKey
:
'uuid'
,
sourceNameKey
:
'staffName'
},
1
:
{
key
:
'deliveryEmployeeName'
,
list
:
'employeeList'
,
targetIdKey
:
'deliveryUserId'
,
targetNameKey
:
'deliveryEmployeeName'
,
sourceIdKey
:
'uuid'
,
sourceNameKey
:
'staffName'
},
2
:
{
key
:
'subShopMerchantName'
,
list
:
'subShopMerchantList'
,
targetIdKey
:
'subShopMerchantId'
,
targetNameKey
:
'subShopMerchantName'
,
sourceIdKey
:
'subMerchantId'
,
sourceNameKey
:
'subMerchantName'
},
3
:
{
key
:
'sellerName'
,
list
:
''
,
targetIdKey
:
'sellerUserId'
,
targetNameKey
:
'sellerName'
,
sourceIdKey
:
'uuid'
,
sourceNameKey
:
'staffName'
},
4
:
{
key
:
'carBrand'
,
list
:
''
},
5
:
{
key
:
'couponInfo'
,
list
:
''
},
6
:
{
key
:
'frontGear'
,
list
:
''
},
7
:
{
key
:
'frontWindow'
,
list
:
''
},
8
:
{
key
:
'rearGear'
,
list
:
''
},
9
:
{
key
:
'rearWindow'
,
list
:
''
},
10
:
{
key
:
'sunRoof'
,
list
:
''
},
11
:
{
key
:
'package'
,
list
:
''
},
12
:
{
key
:
'skuGoods'
,
list
:
''
},
13
:
{
key
:
'todayShow'
,
list
:
''
}
}
export
{
FORM_LIST
,
popupTypeEnum
,
payTypeList
,
DEFEAT_FORM_LIST
}
pages/usedCar/tool/index.vue
0 → 100644
View file @
c97c047
<
template
>
<view
class=
"detail-box"
>
<view
class=
"nav-bar"
>
<view
class=
"back"
@
click=
"backPage"
>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
</view>
<view
class=
"title"
>
展业工具
</view>
</view>
<view
class=
"detail-content"
>
<view
class=
"detail-left"
>
<view
class=
"common-title"
>
展业
</view>
<view
class=
"content"
>
<image
class=
"banner"
src=
"../../../assets/images/common/tool_banner.png"
mode=
"scaleToFill"
/>
<template
v-if=
"toolComponentName !== 'DailyReport'"
>
<Entrance
@
entranceClick=
"entranceClick"
></Entrance>
</
template
>
<
template
v-else
>
<uni-calendar
ref=
"calendar"
:clearDate=
"false"
:endDate=
"endDate"
:showMonth=
"false"
@
monthSwitch=
"currentMonth = `$
{$event.year}-${$event.month}`"
@change="currentDate = $event.fulldate"
backgroundColor="transparent"
:selected="selectedDays"
:date="currentDate"
/>
</
template
>
</view>
</view>
<view
class=
"detail-right"
>
<component
:is=
"toolComponentName"
@
jump=
"jump"
:transmission-of-data=
"transmissionOfData"
:currentDate=
"currentDate"
:currentMonth=
"currentMonth"
@
setCalendarSelected=
"selectedDays = $event"
/>
</view>
</view>
<NoticePopup
ref=
"notice"
title=
"重要提示"
text=
"当前页面暂未保存,是否确认退出"
type=
"warning"
></NoticePopup>
</view>
</template>
<
script
>
import
Entrance
from
'@/components/Entrance.vue'
import
DailyReport
from
'./components/DailyReport.vue'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
dayjs
from
'dayjs'
import
{
interceptionMixin
}
from
'@/mixin/index'
export
default
{
mixins
:
[
interceptionMixin
],
components
:
{
Entrance
,
DailyReport
,
NoticePopup
},
data
()
{
return
{
toolComponentName
:
''
,
transmissionOfData
:
null
,
endDate
:
dayjs
().
format
(
'YYYY-MM-DD'
),
currentDate
:
dayjs
().
format
(
'YYYY-MM-DD'
),
currentMonth
:
dayjs
().
format
(
'YYYY-MM'
),
selectedDays
:
[]
}
},
onLoad
(
options
)
{
if
(
options
.
componentName
)
this
.
toolComponentName
=
options
.
componentName
if
(
options
.
currentDate
)
this
.
currentDate
=
options
.
currentDate
uni
.
$on
(
'jumpToDailyReport'
,
currentDate
=>
{
this
.
toolComponentName
=
'DailyReport'
if
(
currentDate
)
this
.
currentDate
=
currentDate
})
},
onBackPress
(
options
)
{
if
(
options
.
from
===
'backbutton'
)
{
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
this
.
backPage
()
return
true
}
// 其他情况允许正常返回
return
false
},
methods
:
{
async
entranceClick
(
item
)
{
const
noInterceptPage
=
[
'DailyReport'
]
if
(
!
noInterceptPage
.
includes
(
item
.
name
)
&&
((
await
this
.
checkDailyReport
())
||
(
await
this
.
inspectionOfProhibitionBill
())))
return
// 保存当前选择的组件信息,但不立即切换
const
selectedItem
=
item
if
(
this
.
toolComponentName
===
selectedItem
.
name
&&
(
!
this
.
transmissionOfData
||
this
.
transmissionOfData
.
type
!==
'supplementOrder'
))
return
// 如果当前组件是OrderManagement,直接切换组件,不显示弹窗
// 只有从CreateOrder、DefeatOrder切换其他组件时需要二次确认
if
(
this
.
toolComponentName
!==
'CreateOrder'
&&
this
.
toolComponentName
!==
'DefeatOrder'
)
{
this
.
toolComponentName
=
selectedItem
.
name
this
.
transmissionOfData
=
null
return
}
this
.
openNotice
(
selectedItem
)
},
openNotice
(
selectedItem
)
{
// 配置弹窗按钮
this
.
$refs
.
notice
.
buttonsList
=
[
{
text
:
'确认退出'
,
type
:
'default'
,
callback
:
()
=>
{
if
(
selectedItem
)
{
// 点击确认后才切换组件
this
.
toolComponentName
=
selectedItem
.
name
this
.
transmissionOfData
=
null
}
this
.
$refs
.
notice
.
close
()
uni
.
navigateBack
()
}
},
{
text
:
'继续编辑'
,
type
:
'primary'
,
callback
:
()
=>
{
this
.
$refs
.
notice
.
close
()
}
}
]
// 打开弹窗
this
.
$refs
.
notice
.
open
()
},
backPage
()
{
this
.
openNotice
()
},
// name:跳转组件名,val:跳转参数
jump
(
name
,
val
)
{
this
.
toolComponentName
=
name
console
.
log
(
this
.
toolComponentName
,
val
)
if
(
val
)
{
this
.
transmissionOfData
=
val
}
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.detail-content
{
display
:
flex
;
height
:
calc
(
100vh
-
#{
toRpx
(
212
)}
);
.detail-left
{
width
:
toRpx
(
800
);
height
:
100%
;
border-radius
:
toRpx
(
48
);
background
:
#ffffff59
;
box-shadow
:
inset
0
0
toRpx
(
16
)
0
#ffffff
;
margin-right
:
toRpx
(
32
);
z-index
:
1
;
overflow
:
hidden
;
.content
{
padding
:
0
toRpx
(
48
);
.banner
{
width
:
toRpx
(
704
);
height
:
toRpx
(
296
);
margin-top
:
toRpx
(
10
);
margin-bottom
:
toRpx
(
64
);
}
}
}
.detail-right
{
width
:
toRpx
(
1368
);
height
:
100%
;
border-radius
:
toRpx
(
48
);
background
:
#ffffff59
;
box-shadow
:
inset
0
0
toRpx
(
16
)
0
#ffffff
;
z-index
:
1
;
overflow
:
hidden
;
}
.common-title
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
font-size
:
toRpx
(
34
);
}
}
</
style
>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment