Commit 8041c450 by 李伟康

Merge branch 'SAAS+v5.5.0.1' into SAAS+V5.5.0

2 parents 8e5f2221 470a5698
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: calc(100vmin * (1173 / 768) * 0.7225063938618926) calc(100vmin * (1173 / 768) * 0.7105711849957375);} .sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: calc(100vmin * (1173 / 768) * 0.7156862745098039) calc(100vmin * (1173 / 768) * 0.7122762148337596);}
.icon-active-msg { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-active-msg { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
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-activity-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.045183290707587385); .icon-activity-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.045183290707587385);
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
.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.42625745950554134) calc(100vmin * (1173 / 768) * -0.4825234441602728);} background-position: calc(100vmin * (1173 / 768) * -0.42625745950554134) 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.08013640238704177) calc(100vmin * (1173 / 768) * -0.69693094629156);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.6210571184995738);}
.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);
background-position: calc(100vmin * (1173 / 768) * -0.4352088661551577) calc(100vmin * (1173 / 768) * -0.45865302642796246);} background-position: calc(100vmin * (1173 / 768) * -0.6321398124467178) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-arrow-right { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-arrow-right { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.34654731457800514) calc(100vmin * (1173 / 768) * -0.2851662404092072);} background-position: calc(100vmin * (1173 / 768) * -0.34654731457800514) calc(100vmin * (1173 / 768) * -0.2851662404092072);}
.icon-avatar { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-avatar { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
...@@ -36,37 +36,37 @@ ...@@ -36,37 +36,37 @@
.icon-boutique-config-1 { width: calc(100vmin * (1173 / 768) * 0.01875532821824382); height: calc(100vmin * (1173 / 768) * 0.01875532821824382); .icon-boutique-config-1 { width: calc(100vmin * (1173 / 768) * 0.01875532821824382); height: calc(100vmin * (1173 / 768) * 0.01875532821824382);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.18627450980392157);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.18627450980392157);}
.icon-boutique-config-2 { width: calc(100vmin * (1173 / 768) * 0.01875532821824382); height: calc(100vmin * (1173 / 768) * 0.01875532821824382); .icon-boutique-config-2 { width: calc(100vmin * (1173 / 768) * 0.01875532821824382); height: calc(100vmin * (1173 / 768) * 0.01875532821824382);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.21142369991474852);} background-position: calc(100vmin * (1173 / 768) * -0.675618073316283) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-btn-tips { width: calc(100vmin * (1173 / 768) * 0.0988917306052856); height: calc(100vmin * (1173 / 768) * 0.020460358056265986); .icon-btn-tips { width: calc(100vmin * (1173 / 768) * 0.0988917306052856); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.3878942881500426) calc(100vmin * (1173 / 768) * -0.4317988064791134);} background-position: calc(100vmin * (1173 / 768) * -0.3878942881500426) calc(100vmin * (1173 / 768) * -0.4317988064791134);}
.icon-bydyj-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-bydyj-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.23657289002557544);} background-position: calc(100vmin * (1173 / 768) * -0.4198635976129582) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-calendar { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-calendar { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.34654731457800514) calc(100vmin * (1173 / 768) * -0.32608695652173914);} background-position: calc(100vmin * (1173 / 768) * -0.34654731457800514) calc(100vmin * (1173 / 768) * -0.32608695652173914);}
.icon-certificate { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .icon-certificate { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.07075873827791987) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.035379369138959935) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.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.44714407502131287) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.44714407502131287) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.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.6841432225063938) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.03665814151747655) calc(100vmin * (1173 / 768) * -0.7003410059676044);}
.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.46717817561807334) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.46717817561807334) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.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);
background-position: calc(100vmin * (1173 / 768) * -0.3878942881500426) calc(100vmin * (1173 / 768) * -0.45865302642796246);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.6142369991474851);}
.icon-course { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-course { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.48721227621483376) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.48721227621483376) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-create-order { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-create-order { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.34825234441602726) calc(100vmin * (1173 / 768) * -0.5400682011935208);} background-position: calc(100vmin * (1173 / 768) * -0.34825234441602726) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-createOrder { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .icon-createOrder { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.10443307757885763) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.06905370843989769) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-customer-1 { width: calc(100vmin * (1173 / 768) * 0.13640238704177324); height: calc(100vmin * (1173 / 768) * 0.13640238704177324); .icon-customer-1 { width: calc(100vmin * (1173 / 768) * 0.13640238704177324); height: calc(100vmin * (1173 / 768) * 0.13640238704177324);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.20758738277919864);} background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.20758738277919864);}
.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.7156862745098039) calc(100vmin * (1173 / 768) * -0.6820119352088662);} background-position: calc(100vmin * (1173 / 768) * -0.6884057971014492) calc(100vmin * (1173 / 768) * -0.39578005115089515);}
.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.7020460358056266) calc(100vmin * (1173 / 768) * -0.26001705029838024);} background-position: calc(100vmin * (1173 / 768) * -0.443307757885763) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.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);
background-position: calc(100vmin * (1173 / 768) * -0.47698209718670076) calc(100vmin * (1173 / 768) * -0.4825234441602728);} background-position: calc(100vmin * (1173 / 768) * -0.47698209718670076) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-customer-file { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .icon-customer-file { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
...@@ -76,159 +76,155 @@ ...@@ -76,159 +76,155 @@
.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.3955669224211424) calc(100vmin * (1173 / 768) * -0.5400682011935208);} background-position: calc(100vmin * (1173 / 768) * -0.3955669224211424) 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);
background-position: calc(100vmin * (1173 / 768) * -0.13810741687979539) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.10272804774083547) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-defeat-detail { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978); .icon-defeat-detail { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4761295822676897);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4288150042625746);}
.icon-defeat-order { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-defeat-order { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.44288150042625746) calc(100vmin * (1173 / 768) * -0.5400682011935208);} background-position: calc(100vmin * (1173 / 768) * -0.44288150042625746) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-defeat-summary { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978); .icon-defeat-summary { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.5132139812446718);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4658994032395567);}
.icon-defeatOrder { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .icon-defeatOrder { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.17178175618073316) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.13640238704177324) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-delivery-management { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.49019607843137253) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-delivery-step-1 { 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-delivery-step-2 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.5375106564364877) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-detail-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-detail-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5072463768115942) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.5072463768115942) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.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.7020460358056266) calc(100vmin * (1173 / 768) * -0.283461210571185);} background-position: calc(100vmin * (1173 / 768) * -0.46675191815856776) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.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.7020460358056266) calc(100vmin * (1173 / 768) * -0.6820119352088662);} background-position: calc(100vmin * (1173 / 768) * -0.6884057971014492) calc(100vmin * (1173 / 768) * -0.3815004262574595);}
.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.5272804774083546) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.5272804774083546) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-equity-order { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.49019607843137253) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.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);
background-position: calc(100vmin * (1173 / 768) * -0.5848252344416027) calc(100vmin * (1173 / 768) * -0.5400682011935208);} background-position: calc(100vmin * (1173 / 768) * -0.5375106564364877) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-evaluationClose { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-evaluationClose { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.3069053708439898);} background-position: calc(100vmin * (1173 / 768) * -0.49019607843137253) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-expiration { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-expiration { 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.5907928388746803);} background-position: calc(100vmin * (1173 / 768) * -0.5848252344416027) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-eye-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-eye-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5439045183290707) calc(100vmin * (1173 / 768) * -0.45865302642796246);} background-position: calc(100vmin * (1173 / 768) * -0.618073316283035) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-eyes-off { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-eyes-off { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6321398124467178) calc(100vmin * (1173 / 768) * -0.5400682011935208);} background-position: calc(100vmin * (1173 / 768) * -0.6381074168797954) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-eyes-on { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-eyes-on { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6321398124467178) calc(100vmin * (1173 / 768) * -0.5601023017902813);} background-position: calc(100vmin * (1173 / 768) * -0.6581415174765558) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-face-error-active { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-face-error-active { 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) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-face-error { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-face-error { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.09462915601023018) calc(100vmin * (1173 / 768) * -0.5907928388746803);} background-position: calc(100vmin * (1173 / 768) * -0.04731457800511509) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-face-success-active { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-face-success-active { 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.5907928388746803);} background-position: calc(100vmin * (1173 / 768) * -0.09462915601023018) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-face-success { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-face-success { 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.5907928388746803);} background-position: calc(100vmin * (1173 / 768) * -0.14194373401534527) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.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.20545609548167093) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.170076726342711) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.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.5473145780051151) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.5473145780051151) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.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.7020460358056266) calc(100vmin * (1173 / 768) * -0.33034953111679455);} background-position: calc(100vmin * (1173 / 768) * -0.5136402387041773) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.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);
background-position: calc(100vmin * (1173 / 768) * -0.1257459505541347) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.6781756180733163) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-finish-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-finish-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.3537936913895993);} background-position: calc(100vmin * (1173 / 768) * -0.5370843989769821) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-first-left { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-first-left { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4288150042625746);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.3815004262574595);}
.icon-first-nav { width: calc(100vmin * (1173 / 768) * 0.1977834612105712); height: calc(100vmin * (1173 / 768) * 0.07502131287297528); .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);} background-position: calc(100vmin * (1173 / 768) * -0.21099744245524296) calc(100vmin * (1173 / 768) * -0.35038363171355497);}
.icon-first-right { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-first-right { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.3674339300937766) calc(100vmin * (1173 / 768) * -0.30008525149190113);} background-position: calc(100vmin * (1173 / 768) * -0.3674339300937766) calc(100vmin * (1173 / 768) * -0.30008525149190113);}
.icon-front-gear { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-front-gear { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.14578005115089515) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * 0);}
.icon-front-window { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-front-window { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.1658141517476556) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.020034100596760442);}
.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.5784313725490197) calc(100vmin * (1173 / 768) * -0.4825234441602728);} background-position: calc(100vmin * (1173 / 768) * -0.5784313725490197) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.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);
background-position: calc(100vmin * (1173 / 768) * -0.11167945439045183) calc(100vmin * (1173 / 768) * -0.4825234441602728);} background-position: calc(100vmin * (1173 / 768) * -0.11167945439045183) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-icon-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-icon-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.18584825234441602) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.040068201193520885);}
.icon-icon-circle-error { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-icon-circle-error { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.3772378516624041);} background-position: calc(100vmin * (1173 / 768) * -0.10741687979539642) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-icon-close { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978); .icon-icon-close { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.5502983802216539);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.5029838022165388);}
.icon-icon-copy { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-icon-copy { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.20588235294117646) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.06010230179028133);}
.icon-icon-gold { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978); .icon-icon-gold { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.587382779198636);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-icon-instructions { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-icon-instructions { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.2259164535379369) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.08013640238704177);}
.icon-icon-navigation { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-icon-navigation { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.24595055413469735) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.10017050298380221);}
.icon-icon-notice { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-icon-notice { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.2659846547314578) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.12020460358056266);}
.icon-icon-scanning { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-icon-scanning { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.28601875532821824) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.1402387041773231);}
.icon-icon-select { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-icon-select { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.30605285592497866) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.16027280477408354);}
.icon-icon-shop { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-icon-shop { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.32608695652173914) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.18030690537084398);}
.icon-icon-store { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-icon-store { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.34612105711849955) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.20034100596760443);}
.icon-icon-upload { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.05456095481670929); .icon-icon-upload { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.05456095481670929);
background-position: calc(100vmin * (1173 / 768) * -0.4151747655583973) calc(100vmin * (1173 / 768) * -0.35038363171355497);} background-position: calc(100vmin * (1173 / 768) * -0.4151747655583973) calc(100vmin * (1173 / 768) * -0.35038363171355497);}
.icon-icon-weixin { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-icon-weixin { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.36615515771526) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.22037510656436488);}
.icon-income-card { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489); .icon-income-card { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.45694799658994034) calc(100vmin * (1173 / 768) * -0.45865302642796246);} background-position: calc(100vmin * (1173 / 768) * -0.6321398124467178) calc(100vmin * (1173 / 768) * -0.5618073316283035);}
.icon-income-count { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331); .icon-income-count { 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.18584825234441602);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.13853367433930094);}
.icon-income-icon { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331); .icon-income-icon { 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.22634271099744246);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.17902813299232737);}
.icon-info_shield { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-info_shield { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.40068201193520886);} background-position: calc(100vmin * (1173 / 768) * -0.1308610400682012) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-info-icon { width: calc(100vmin * (1173 / 768) * 0.03751065643648764); height: calc(100vmin * (1173 / 768) * 0.03751065643648764); .icon-info-icon { width: calc(100vmin * (1173 / 768) * 0.03751065643648764); height: calc(100vmin * (1173 / 768) * 0.03751065643648764);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.14194373401534527);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.09462915601023018);}
.icon-invisible { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-invisible { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.42412617220801363);} background-position: calc(100vmin * (1173 / 768) * -0.15430520034100598) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-isExpiredTrafficIcon { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .icon-isExpiredTrafficIcon { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.2391304347826087) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.20375106564364875) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-jbgz-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-jbgz-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.4475703324808184);} background-position: calc(100vmin * (1173 / 768) * -0.17774936061381075) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-js-icon { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-js-icon { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.2855924978687127) calc(100vmin * (1173 / 768) * -0.32608695652173914);} background-position: calc(100vmin * (1173 / 768) * -0.2855924978687127) calc(100vmin * (1173 / 768) * -0.32608695652173914);}
.icon-learn-bg { width: calc(100vmin * (1173 / 768) * 0.18073316283034954); height: calc(100vmin * (1173 / 768) * 0.05285592497868713); .icon-learn-bg { width: calc(100vmin * (1173 / 768) * 0.18073316283034954); height: calc(100vmin * (1173 / 768) * 0.05285592497868713);
background-position: calc(100vmin * (1173 / 768) * -0.15302642796248933) calc(100vmin * (1173 / 768) * -0.13256606990622335);} background-position: calc(100vmin * (1173 / 768) * -0.15302642796248933) calc(100vmin * (1173 / 768) * -0.13256606990622335);}
.icon-level { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .icon-level { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.2728047740835465) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.23742540494458653) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-locker-icon { width: calc(100vmin * (1173 / 768) * 0.1466325660699062); height: calc(100vmin * (1173 / 768) * 0.20119352088661552); .icon-locker-icon { width: calc(100vmin * (1173 / 768) * 0.1466325660699062); height: calc(100vmin * (1173 / 768) * 0.20119352088661552);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * 0);} background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * 0);}
.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.09846547314578005) calc(100vmin * (1173 / 768) * -0.69693094629156);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.639386189258312);}
.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.2668371696504689);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.2195225916453538);}
.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);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.3073316283034953);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.26001705029838024);}
.icon-medal { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .icon-medal { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.30647911338448425) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.2710997442455243) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-medalNew { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978); .icon-medalNew { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978);
background-position: calc(100vmin * (1173 / 768) * -0.6150895140664961) calc(100vmin * (1173 / 768) * -0.5907928388746803);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.577152600170503);}
.icon-my-level { width: calc(100vmin * (1173 / 768) * 0.058823529411764705); height: calc(100vmin * (1173 / 768) * 0.020460358056265986); .icon-my-level { width: calc(100vmin * (1173 / 768) * 0.058823529411764705); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.49317988064791135) calc(100vmin * (1173 / 768) * -0.4317988064791134);} background-position: calc(100vmin * (1173 / 768) * -0.49317988064791135) calc(100vmin * (1173 / 768) * -0.4317988064791134);}
.icon-my-store { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331); .icon-my-store { 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.34782608695652173);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.30051150895140666);}
.icon-no-insurance-data { width: calc(100vmin * (1173 / 768) * 0.20801364023870417); height: calc(100vmin * (1173 / 768) * 0.12617220801364024); .icon-no-insurance-data { width: calc(100vmin * (1173 / 768) * 0.20801364023870417); height: calc(100vmin * (1173 / 768) * 0.12617220801364024);
background-position: calc(100vmin * (1173 / 768) * -0.15302642796248933) calc(100vmin * (1173 / 768) * 0);} background-position: calc(100vmin * (1173 / 768) * -0.15302642796248933) calc(100vmin * (1173 / 768) * 0);}
.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.6564364876385337) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.6210571184995738) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.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.23657289002557544) calc(100vmin * (1173 / 768) * -0.5907928388746803);} background-position: calc(100vmin * (1173 / 768) * -0.18925831202046037) 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);
background-position: calc(100vmin * (1173 / 768) * -0.28388746803069054) calc(100vmin * (1173 / 768) * -0.5907928388746803);} background-position: calc(100vmin * (1173 / 768) * -0.23657289002557544) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-notice-success { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-notice-success { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.38618925831202044) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.24040920716112532);}
.icon-notice-system { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-notice-system { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.3312020460358056) calc(100vmin * (1173 / 768) * -0.5907928388746803);} background-position: calc(100vmin * (1173 / 768) * -0.28388746803069054) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-notice-violate { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-notice-violate { 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.3312020460358056) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-order-management { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-order-management { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.4258312020460358) calc(100vmin * (1173 / 768) * -0.5907928388746803);} background-position: calc(100vmin * (1173 / 768) * -0.37851662404092073) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-pause { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-pause { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.47101449275362317);} background-position: calc(100vmin * (1173 / 768) * -0.20119352088661552) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-payType-1 { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662); .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);} 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); .icon-payType-2 { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662);
...@@ -240,93 +236,93 @@ ...@@ -240,93 +236,93 @@
.icon-payType-5 { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662); .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);} 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); .icon-pbjd-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.49445865302642794);} background-position: calc(100vmin * (1173 / 768) * -0.2246376811594203) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-pdf { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-pdf { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5179028132992327);} background-position: calc(100vmin * (1173 / 768) * -0.24808184143222506) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-pen-active { width: calc(100vmin * (1173 / 768) * 0.05115089514066496); height: calc(100vmin * (1173 / 768) * 0.05115089514066496); .icon-pen-active { width: calc(100vmin * (1173 / 768) * 0.05115089514066496); height: calc(100vmin * (1173 / 768) * 0.05115089514066496);
background-position: calc(100vmin * (1173 / 768) * -0.4761295822676897) calc(100vmin * (1173 / 768) * -0.35038363171355497);} background-position: calc(100vmin * (1173 / 768) * -0.4761295822676897) calc(100vmin * (1173 / 768) * -0.35038363171355497);}
.icon-pen { width: calc(100vmin * (1173 / 768) * 0.05115089514066496); height: calc(100vmin * (1173 / 768) * 0.05115089514066496); .icon-pen { width: calc(100vmin * (1173 / 768) * 0.05115089514066496); height: calc(100vmin * (1173 / 768) * 0.05115089514066496);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.4825234441602728);} background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-play { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-play { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5413469735720375);} background-position: calc(100vmin * (1173 / 768) * -0.27152600170502983) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-point-active { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04859335038363171); .icon-point-active { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04859335038363171);
background-position: calc(100vmin * (1173 / 768) * -0.05754475703324808) calc(100vmin * (1173 / 768) * -0.4825234441602728);} background-position: calc(100vmin * (1173 / 768) * -0.05754475703324808) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-point { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063); .icon-point { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063);
background-position: calc(100vmin * (1173 / 768) * -0.1658141517476556) calc(100vmin * (1173 / 768) * -0.4825234441602728);} background-position: calc(100vmin * (1173 / 768) * -0.1658141517476556) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-points { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .icon-points { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.340153452685422) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.30477408354646207) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-promotion { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986); .icon-promotion { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.5336743393009378) calc(100vmin * (1173 / 768) * -0.38064791133844844);} background-position: calc(100vmin * (1173 / 768) * -0.5336743393009378) calc(100vmin * (1173 / 768) * -0.38064791133844844);}
.icon-prompt { width: calc(100vmin * (1173 / 768) * 0.10230179028132992); height: calc(100vmin * (1173 / 768) * 0.10230179028132992); .icon-prompt { width: calc(100vmin * (1173 / 768) * 0.10230179028132992); height: calc(100vmin * (1173 / 768) * 0.10230179028132992);
background-position: calc(100vmin * (1173 / 768) * -0.3674339300937766) calc(100vmin * (1173 / 768) * -0.19138959931798807);} background-position: calc(100vmin * (1173 / 768) * -0.3674339300937766) calc(100vmin * (1173 / 768) * -0.19138959931798807);}
.icon-qg-tips { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489); .icon-qg-tips { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.47868712702472294) calc(100vmin * (1173 / 768) * -0.45865302642796246);} background-position: calc(100vmin * (1173 / 768) * -0.5528559249786871) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-qgtc-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-qgtc-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5647911338448423);} background-position: calc(100vmin * (1173 / 768) * -0.2949701619778346) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-qr-success { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-qr-success { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.4731457800511509) calc(100vmin * (1173 / 768) * -0.5907928388746803);} background-position: calc(100vmin * (1173 / 768) * -0.4258312020460358) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-qt-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-qt-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5882352941176471);} background-position: calc(100vmin * (1173 / 768) * -0.31841432225063937) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-quality-no-data { width: calc(100vmin * (1173 / 768) * 0.19096334185848252); height: calc(100vmin * (1173 / 768) * 0.0886615515771526); .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);} 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); .icon-qw { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * 0);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * 0);}
.icon-qytc-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-qytc-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.6116794543904518);} background-position: calc(100vmin * (1173 / 768) * -0.34185848252344414) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-ranking { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .icon-ranking { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.37382779198635974) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.33844842284739984) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-rbkk-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-rbkk-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.6351236146632566);} background-position: calc(100vmin * (1173 / 768) * -0.3653026427962489) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-rear-gear { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-rear-gear { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.4062233589087809) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.26044330775788577);}
.icon-rear-window { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-rear-window { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.42625745950554134) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.2804774083546462);}
.icon-reception-1 { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986); .icon-reception-1 { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.026854219948849106);} background-position: calc(100vmin * (1173 / 768) * -0.6487638533674339) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-reception-2 { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986); .icon-reception-2 { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.05370843989769821);} background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-reception-pause { width: calc(100vmin * (1173 / 768) * 0.02216538789428815); height: calc(100vmin * (1173 / 768) * 0.02216538789428815); .icon-reception-pause { width: calc(100vmin * (1173 / 768) * 0.02216538789428815); height: calc(100vmin * (1173 / 768) * 0.02216538789428815);
background-position: calc(100vmin * (1173 / 768) * -0.5707587382779199) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.5353793691389599) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-reception-play { width: calc(100vmin * (1173 / 768) * 0.02216538789428815); height: calc(100vmin * (1173 / 768) * 0.02216538789428815); .icon-reception-play { width: calc(100vmin * (1173 / 768) * 0.02216538789428815); height: calc(100vmin * (1173 / 768) * 0.02216538789428815);
background-position: calc(100vmin * (1173 / 768) * -0.5993179880647911) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.5639386189258312) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-reception-share { width: calc(100vmin * (1173 / 768) * 0.02216538789428815); height: calc(100vmin * (1173 / 768) * 0.02216538789428815); .icon-reception-share { width: calc(100vmin * (1173 / 768) * 0.02216538789428815); height: calc(100vmin * (1173 / 768) * 0.02216538789428815);
background-position: calc(100vmin * (1173 / 768) * -0.6278772378516624) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.5924978687127025) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-record-active { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063); .icon-record-active { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063);
background-position: calc(100vmin * (1173 / 768) * -0.21994884910485935) calc(100vmin * (1173 / 768) * -0.4825234441602728);} background-position: calc(100vmin * (1173 / 768) * -0.21994884910485935) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-record { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .icon-record { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.5400682011935208);} background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-revoke { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-revoke { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.520460358056266) calc(100vmin * (1173 / 768) * -0.5907928388746803);} background-position: calc(100vmin * (1173 / 768) * -0.4731457800511509) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-revokeOrder { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .icon-revokeOrder { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.4075021312872975) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.3721227621483376) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-right-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-right-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.4462915601023018) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.30051150895140666);}
.icon-role-1 { width: calc(100vmin * (1173 / 768) * 0.028985507246376812); height: calc(100vmin * (1173 / 768) * 0.028985507246376812); .icon-role-1 { width: calc(100vmin * (1173 / 768) * 0.028985507246376812); height: calc(100vmin * (1173 / 768) * 0.028985507246376812);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.6150895140664961) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.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.035379369138959935) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * 0) 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.11679454390451834) calc(100vmin * (1173 / 768) * -0.69693094629156);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.6577152600170503);}
.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.4663256606990622) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.3205456095481671);}
.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);
background-position: calc(100vmin * (1173 / 768) * -0.4863597612958227) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.34057971014492755);}
.icon-scanIconX { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-scanIconX { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.3878942881500426) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-scene-0 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-scene-0 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.5677749360613811) calc(100vmin * (1173 / 768) * -0.5907928388746803);} background-position: calc(100vmin * (1173 / 768) * -0.520460358056266) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-scene-1 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-scene-1 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * 0);} background-position: calc(100vmin * (1173 / 768) * -0.5677749360613811) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-scene-7 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-scene-7 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.04731457800511509);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * 0);}
.icon-scene-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .icon-scene-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-scene-change { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-scene-change { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5063938618925832) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.36061381074168797);}
.icon-scene { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .icon-scene { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.10144927536231885) calc(100vmin * (1173 / 768) * -0.5400682011935208);} background-position: calc(100vmin * (1173 / 768) * -0.10144927536231885) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-search { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-search { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.6585677749360613);} background-position: calc(100vmin * (1173 / 768) * -0.3887468030690537) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-second-left { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-second-left { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.42838874680306904) calc(100vmin * (1173 / 768) * -0.30008525149190113);} background-position: calc(100vmin * (1173 / 768) * -0.42838874680306904) calc(100vmin * (1173 / 768) * -0.30008525149190113);}
.icon-second-nav { width: calc(100vmin * (1173 / 768) * 0.20460358056265984); height: calc(100vmin * (1173 / 768) * 0.07502131287297528); .icon-second-nav { width: calc(100vmin * (1173 / 768) * 0.20460358056265984); height: calc(100vmin * (1173 / 768) * 0.07502131287297528);
...@@ -334,82 +330,82 @@ ...@@ -334,82 +330,82 @@
.icon-second-right { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-second-right { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.48934356351236147) calc(100vmin * (1173 / 768) * -0.30008525149190113);} background-position: calc(100vmin * (1173 / 768) * -0.48934356351236147) calc(100vmin * (1173 / 768) * -0.30008525149190113);}
.icon-seeIcon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-seeIcon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5264279624893435) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.38064791133844844);}
.icon-setting { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .icon-setting { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.4411764705882353) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.4057971014492754) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-short-first-nav { width: calc(100vmin * (1173 / 768) * 0.1773231031543052); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .icon-short-first-nav { width: calc(100vmin * (1173 / 768) * 0.1773231031543052); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.2041773231031543) calc(100vmin * (1173 / 768) * -0.4317988064791134);} background-position: calc(100vmin * (1173 / 768) * -0.2041773231031543) calc(100vmin * (1173 / 768) * -0.4317988064791134);}
.icon-short-second-nav { width: calc(100vmin * (1173 / 768) * 0.1977834612105712); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .icon-short-second-nav { width: calc(100vmin * (1173 / 768) * 0.1977834612105712); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.4317988064791134);} background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.4317988064791134);}
.icon-short-task-title { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986); .icon-short-task-title { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.08056265984654731);} background-position: calc(100vmin * (1173 / 768) * -0.026854219948849106) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-start-text { width: calc(100vmin * (1173 / 768) * 0.0733162830349531); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-start-text { width: calc(100vmin * (1173 / 768) * 0.0733162830349531); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.4761295822676897) calc(100vmin * (1173 / 768) * -0.2659846547314578);} background-position: calc(100vmin * (1173 / 768) * -0.4761295822676897) calc(100vmin * (1173 / 768) * -0.2659846547314578);}
.icon-stick-top-blue { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-stick-top-blue { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.546462063086104) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.40068201193520886);}
.icon-stick-top { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-stick-top { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5664961636828645) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.42071611253196933);}
.icon-store-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-store-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5865302642796248) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.44075021312872975);}
.icon-store { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-store { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.09462915601023018);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.04731457800511509);}
.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.15217391304347827) calc(100vmin * (1173 / 768) * -0.5400682011935208);} background-position: calc(100vmin * (1173 / 768) * -0.15217391304347827) 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.13512361466325662) calc(100vmin * (1173 / 768) * -0.69693094629156);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.6760443307757886);}
.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.2028985507246377) calc(100vmin * (1173 / 768) * -0.5400682011935208);} background-position: calc(100vmin * (1173 / 768) * -0.2028985507246377) 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);
background-position: calc(100vmin * (1173 / 768) * -0.629156010230179) calc(100vmin * (1173 / 768) * -0.4825234441602728);} background-position: calc(100vmin * (1173 / 768) * -0.4121909633418585) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-successIcon { width: calc(100vmin * (1173 / 768) * 0.023870417732310314); height: calc(100vmin * (1173 / 768) * 0.023870417732310314); .icon-successIcon { width: calc(100vmin * (1173 / 768) * 0.023870417732310314); height: calc(100vmin * (1173 / 768) * 0.023870417732310314);
background-position: calc(100vmin * (1173 / 768) * -0.5336743393009378) calc(100vmin * (1173 / 768) * -0.35038363171355497);} background-position: calc(100vmin * (1173 / 768) * -0.5336743393009378) calc(100vmin * (1173 / 768) * -0.35038363171355497);}
.icon-suggestions-arrow { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489); .icon-suggestions-arrow { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.5004262574595055) calc(100vmin * (1173 / 768) * -0.45865302642796246);} background-position: calc(100vmin * (1173 / 768) * -0.5745950554134698) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-suggestions-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-suggestions-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6065643648763853) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.46078431372549017);}
.icon-sun-roof { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-sun-roof { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6265984654731458) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.48081841432225064);}
.icon-tag-checked { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-tag-checked { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.4151747655583973) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.4151747655583973) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.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.1534526854219949) calc(100vmin * (1173 / 768) * -0.69693094629156);} background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.7003410059676044);}
.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.629156010230179) calc(100vmin * (1173 / 768) * -0.5059676044330775);} background-position: calc(100vmin * (1173 / 768) * -0.4356351236146633) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.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);
background-position: calc(100vmin * (1173 / 768) * -0.6466325660699063) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5008525149190111);}
.icon-time { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-time { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.0319693094629156) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.45907928388746805) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-tips-b { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-tips-b { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6666666666666666) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5208866155157715);}
.icon-tips-g { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986); .icon-tips-g { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.10741687979539642);} background-position: calc(100vmin * (1173 / 768) * -0.05370843989769821) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-tips { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331); .icon-tips { 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.38832054560954815);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.3410059676044331);}
.icon-tool-file { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.02557544757033248); .icon-tool-file { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.02557544757033248);
background-position: calc(100vmin * (1173 / 768) * -0.47485080988917305) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.4394714407502131) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-tool-finish { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.02557544757033248); .icon-tool-finish { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.02557544757033248);
background-position: calc(100vmin * (1173 / 768) * -0.5068201193520887) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.47144075021312876) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-tool-pay { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.02557544757033248); .icon-tool-pay { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.02557544757033248);
background-position: calc(100vmin * (1173 / 768) * -0.5387894288150042) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.5034100596760444) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-topTipsRightIcon { width: calc(100vmin * (1173 / 768) * 0.06990622335890878); height: calc(100vmin * (1173 / 768) * 0.05115089514066496); .icon-topTipsRightIcon { width: calc(100vmin * (1173 / 768) * 0.06990622335890878); height: calc(100vmin * (1173 / 768) * 0.05115089514066496);
background-position: calc(100vmin * (1173 / 768) * -0.2855924978687127) calc(100vmin * (1173 / 768) * -0.20758738277919864);} background-position: calc(100vmin * (1173 / 768) * -0.2855924978687127) calc(100vmin * (1173 / 768) * -0.20758738277919864);}
.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) calc(100vmin * (1173 / 768) * -0.69693094629156);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.540920716112532);}
.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.17178175618073316) calc(100vmin * (1173 / 768) * -0.69693094629156);} background-position: calc(100vmin * (1173 / 768) * -0.018329070758738276) calc(100vmin * (1173 / 768) * -0.7003410059676044);}
.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.05541346973572037) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.4825234441602728) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.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);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.13427109974424553);} background-position: calc(100vmin * (1173 / 768) * -0.08056265984654731) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-visible { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-visible { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.07885763000852515) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.5059676044330775) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.icon-warning-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-warning-icon { 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.69693094629156);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5609548167092924);}
.icon-work-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-work-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.040068201193520885) calc(100vmin * (1173 / 768) * -0.69693094629156);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.5809889173060528);}
.icon-ybtc_icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-ybtc_icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.10230179028132992) calc(100vmin * (1173 / 768) * -0.6734867860187553);} background-position: calc(100vmin * (1173 / 768) * -0.5294117647058824) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.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.5221653878942881) calc(100vmin * (1173 / 768) * -0.45865302642796246);} background-position: calc(100vmin * (1173 / 768) * -0.5963341858482524) calc(100vmin * (1173 / 768) * -0.6734867860187553);}
.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.06010230179028133) calc(100vmin * (1173 / 768) * -0.69693094629156);}
\ No newline at end of file \ No newline at end of file
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.6010230179028133);}
\ No newline at end of file \ No newline at end of file
...@@ -43,40 +43,47 @@ export default { ...@@ -43,40 +43,47 @@ export default {
icon: 'daily-report', icon: 'daily-report',
label: '驻店日报', label: '驻店日报',
name: 'DailyReport', name: 'DailyReport',
sceneType: [0, 1, 7]
}, },
{ {
icon: 'create-order', icon: 'create-order',
label: '新建工单', label: '新建工单',
name: 'CreateOrder' name: 'CreateOrder',
sceneType: [0, 1]
},
{
icon: 'equity-order',
label: '权益提单',
name: 'EquityOrder',
sceneType: [0]
}, },
{ {
icon: 'defeat-order', icon: 'defeat-order',
label: '战败下单', label: '战败下单',
name: 'DefeatOrder' name: 'DefeatOrder',
sceneType: [0, 1]
}, },
{ {
icon: 'order-management', icon: 'order-management',
label: '工单列表', label: '工单列表',
name: 'OrderManagement' name: 'OrderManagement',
sceneType: [0, 1]
}, },
{ {
icon: 'evaluation-management', icon: 'evaluation-management',
label: '评估单管理', label: '评估单管理',
name: 'EvaluationFormList' name: 'EvaluationFormList',
}, { sceneType: [7]
},
{
icon: 'delivery-management', icon: 'delivery-management',
label: '交付管理', label: '交付管理',
name: 'DeliveryManagement', name: 'DeliveryManagement',
page: '/pages/usedCar/deliveryManagement/index' page: '/pages/usedCar/deliveryManagement/index',
sceneType: [7]
} }
] ]
if (sceneType == 0) return [] return entranceList.filter(e => e.sceneType.includes(sceneType))
else if (sceneType === 7) {
return entranceList.filter(e => ['DailyReport', 'EvaluationFormList', 'DeliveryManagement'].includes(e.name));
}
if (sceneType === 1) {
return entranceList.filter(e => !['EvaluationFormList', 'DeliveryManagement'].includes(e.name));
}
} }
}, },
methods: { methods: {
......
<template> <template>
<view class="container" @click="handleTouchStart"> <view
class="container"
@click="handleTouchStart"
>
<view :class="['home', { show: !id && showHome }]"> <view :class="['home', { show: !id && showHome }]">
<left-side :userInfo="userInfo" :tabIndex.sync="tabIndex" ref="leftBox" @changeTab="changeTab" @stopAudio="stopAudio" @showReadCountTips="showReadCountTips" @closeTips="closeTips" /> <left-side
<view class="tips-box" :style="tipsObject.style" @click.stop="closeTips">{{ tipsObject.text }}</view> :userInfo="userInfo"
:tabIndex.sync="tabIndex"
ref="leftBox"
@changeTab="changeTab"
@stopAudio="stopAudio"
@showReadCountTips="showReadCountTips"
@closeTips="closeTips"
/>
<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 class="start" @click="start"> <view
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>
...@@ -41,19 +59,36 @@ ...@@ -41,19 +59,36 @@
<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 class="message-box" ref="messageRef" /> <MessageIndex
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 :is="'Point'" ref="pointRef" :userInfo="userInfo" @showPage="handleShowPage" /> <component
: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 :is="componentName" ref="pointRef" :userInfo="userInfo" @showPage="handleShowPage" :isPermissionFunction="isPermission" /> <component
:is="componentName"
ref="pointRef"
:userInfo="userInfo"
@showPage="handleShowPage"
:isPermissionFunction="isPermission"
/>
</template> </template>
</view> </view>
<view class="store-addr" v-if="footerBox"> <view
class="store-addr"
v-if="footerBox"
>
<view class="icon-addr sprite-icon icon-addr"></view> <view class="icon-addr sprite-icon icon-addr"></view>
<view class="addr-text">{{ userInfo.shopMerchantName }}</view> <view class="addr-text">{{ userInfo.shopMerchantName }}</view>
</view> </view>
...@@ -61,17 +96,41 @@ ...@@ -61,17 +96,41 @@
<view :class="['detail', { show: id }]"> <view :class="['detail', { show: id }]">
<slot name="detail" /> <slot name="detail" />
</view> </view>
<view class="point-page" v-if="!showHome"> <view
<component :is="pointComponentName" @backHome="backHome" @jump="jump" :transfer="transfer" /> class="point-page"
v-if="!showHome"
>
<component
:is="pointComponentName"
@backHome="backHome"
@jump="jump"
:transfer="transfer"
/>
</view> </view>
<!-- 未点击开始接待,弹窗 --> <!-- 未点击开始接待,弹窗 -->
<MessageBox ref="previewRef" @confirm="previewHandler('preview', true)" :popupW="704" content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」" confirmBtnText="预览素材" @cancel="previewHandler('previewCancel')" @close="previewHandler('previewClose')"></MessageBox> <MessageBox
ref="previewRef"
@confirm="previewHandler('preview', true)"
:popupW="704"
content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText="预览素材"
@cancel="previewHandler('previewCancel')"
@close="previewHandler('previewClose')"
></MessageBox>
<!-- 停留弹框 --> <!-- 停留弹框 -->
<!-- <MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> --> <!-- <MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> -->
<!-- 退出弹框 --> <!-- 退出弹框 -->
<MessageBox :popupW="704" ref="finish" :content="finishContene" :isFooter="false"> <MessageBox
:popupW="704"
ref="finish"
:content="finishContene"
:isFooter="false"
>
<view class="footer"> <view class="footer">
<view class="footer-btn confirm flex" @click="$emit('openStep')"> <view
class="footer-btn confirm flex"
@click="$emit('openStep')"
>
<template v-if="finishDoneText"> <template v-if="finishDoneText">
{{ finishDoneText }} {{ finishDoneText }}
</template> </template>
...@@ -80,7 +139,10 @@ ...@@ -80,7 +139,10 @@
<text>(推荐)</text> <text>(推荐)</text>
</template> </template>
</view> </view>
<view class="footer-btn cancel flex" @click="$emit('backHome')"> <view
class="footer-btn cancel flex"
@click="$emit('backHome')"
>
仍要退出 仍要退出
<text>(不推荐)</text> <text>(不推荐)</text>
</view> </view>
...@@ -89,7 +151,11 @@ ...@@ -89,7 +151,11 @@
<!-- 升级弹框 --> <!-- 升级弹框 -->
<update-box /> <update-box />
<slot name="content" /> <slot name="content" />
<web-view @message="handlerMessage" ref="webview" src="/hybrid/html/index.html"></web-view> <web-view
@message="handlerMessage"
ref="webview"
src="/hybrid/html/index.html"
></web-view>
<!-- <web-view <!-- <web-view
ref="studyWebview" ref="studyWebview"
:src="jumpUrl" :src="jumpUrl"
...@@ -149,7 +215,7 @@ export default { ...@@ -149,7 +215,7 @@ export default {
}, },
swiperCustom: Boolean, swiperCustom: Boolean,
}, },
data() { data () {
return { return {
studyUrl: '', studyUrl: '',
jumpUrl: '', jumpUrl: '',
...@@ -165,35 +231,35 @@ export default { ...@@ -165,35 +231,35 @@ export default {
previewOff: false previewOff: false
} }
}, },
mounted() { mounted () {
const userInfo = uni.$storage.get('userInfo') || {} const userInfo = uni.$storage.get('userInfo') || {}
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
} }
}, },
methods: { methods: {
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)
...@@ -212,16 +278,16 @@ export default { ...@@ -212,16 +278,16 @@ export default {
// this.jumpUrl = '' // this.jumpUrl = ''
// } // }
}, },
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
...@@ -229,12 +295,12 @@ export default { ...@@ -229,12 +295,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设置逻辑
...@@ -304,14 +370,14 @@ export default { ...@@ -304,14 +370,14 @@ 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: '',
...@@ -325,11 +391,11 @@ export default { ...@@ -325,11 +391,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({
...@@ -337,11 +403,11 @@ export default { ...@@ -337,11 +403,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) {
// 清除评估单的图片视频资源缓存 // 清除评估单的图片视频资源缓存
const noInterceptPage = ['DailyReport', 'DeliveryManagement'], const noInterceptPage = ['DailyReport', 'DeliveryManagement'],
...@@ -359,6 +425,7 @@ export default { ...@@ -359,6 +425,7 @@ export default {
url: item.page url: item.page
}) })
let pageName = { let pageName = {
0: 'equity',
1: 'boutique', 1: 'boutique',
7: 'usedCar' 7: 'usedCar'
}[this.sceneType] }[this.sceneType]
......
<template> <template>
<view class="select-box"> <view :class="['select-box',{styleV2:styleV2}]">
<view <view
class="select" class="select"
@click.stop="isSelect = !isSelect" @click.stop="showPop"
> >
{{selectList[selectIndex].label}} {{selectList[selectIndex].label}}
<view class="sprite-icon icon-arrow-bottom"></view> <template v-if="!disabled">
<view class="sprite-icon icon-arrow-bottom"></view>
</template>
</view> </view>
<view <view
class="pop-box" class="pop-box"
...@@ -29,6 +31,14 @@ export default { ...@@ -29,6 +31,14 @@ export default {
labelKey: { labelKey: {
type: String, type: String,
default: 'label' default: 'label'
},
styleV2: {
type: Boolean,
default: false
},
disabled: {
type: Boolean,
default: false
} }
}, },
name: '', name: '',
...@@ -49,6 +59,10 @@ export default { ...@@ -49,6 +59,10 @@ export default {
this.isSelect = false this.isSelect = false
this.$emit('chooseType', { item, index }) this.$emit('chooseType', { item, index })
}, },
showPop () {
if (this.disabled) return
this.isSelect = !this.isSelect
}
} }
} }
</script> </script>
...@@ -96,4 +110,19 @@ export default { ...@@ -96,4 +110,19 @@ export default {
} }
} }
} }
.styleV2 {
.select {
height: 80rpx;
background: #3b73ff1a;
color: #333333;
font-size: 28rpx;
transition: all 0.15s;
}
.pop-box {
font-size: 28rpx;
.type-item {
height: toRpx(80);
}
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<template> <template>
<view class="type-tab"> <view class="type-tab">
<view class="type-box"> <template v-if="!styleV2">
<view <view class="type-box">
class="tab-item"
v-for="(i, index) in typeList"
:key="index"
@click="tabClick(index)"
>
<view <view
:class="['sprite-icon',tabClass(index)]" class="tab-item"
:style="{ v-for="(i, index) in typeList"
:key="index"
@click="tabClick(index)"
>
<view
:class="['sprite-icon',tabClass(index)]"
:style="{
left:blockLeft left:blockLeft
}" }"
></view> ></view>
<view
class="text"
:class="[tabIndex == index ? `active` : '']"
>
{{ i[nameKey] }}
</view>
</view>
</view>
<view class="mask-box"></view>
</template>
<template v-else>
<view class="type-box-v2">
<view <view
class="text" :class="['tab-item',{active:tabIndex == index}]"
:class="[tabIndex == index ? `active` : '']" v-for="(i, index) in typeList"
:key="index"
@click="tabClick(index)"
> >
{{ i[nameKey] }} <template v-if="index == 0">
<view class="sprite-icon icon-first-right"></view>
</template>
<template v-else>
<view class="sprite-icon icon-second-left"></view>
<view class="sprite-icon icon-second-right"></view>
</template>
<view class="text">
{{ i[nameKey] }}
</view>
</view> </view>
</view> </view>
</view> </template>
<view class="mask-box"></view>
</view> </view>
</template> </template>
...@@ -36,6 +59,10 @@ export default { ...@@ -36,6 +59,10 @@ export default {
nameKey: { nameKey: {
type: String, type: String,
default: 'tabName' default: 'tabName'
},
styleV2: {
type: Boolean,
default: true
} }
}, },
name: '', name: '',
...@@ -63,8 +90,9 @@ export default { ...@@ -63,8 +90,9 @@ export default {
return className return className
}, },
tabClick (index) { tabClick (index) {
if(this.tabIndex == index) return
this.$emit('update:tabIndex', index) this.$emit('update:tabIndex', index)
this.$emit('tabClick',index) this.$emit('tabClick', index)
} }
} }
} }
...@@ -128,5 +156,73 @@ export default { ...@@ -128,5 +156,73 @@ export default {
border-radius: toRpx(48); border-radius: toRpx(48);
overflow: hidden; overflow: hidden;
} }
.type-box-v2 {
position: relative;
display: flex;
width: 100%;
background-color: #eef4fe;
height: toRpx(96);
line-height: toRpx(96);
border-radius: toRpx(48) toRpx(48) 0 0;
z-index: 0;
flex-wrap: nowrap;
overflow-x: auto;
gap: 0 toRpx(80);
.tab-item {
padding: 0 toRpx(40);
flex-shrink: 0;
position: relative;
&:first-of-type{
padding-left: toRpx(80);
}
.text {
color: #292d33;
font-size: toRpx(32);
position: relative;
z-index: 2;
}
.sprite-icon {
position: absolute;
display: none;
}
}
.active {
background: #fff;
&:last-of-type {
.icon-second-right {
// display: none;
}
}
.text {
color: #3b73ff;
font-weight: 500;
transition: all 0.15s;
position: relative;
&::after {
width: toRpx(40);
height: toRpx(6);
border-radius: toRpx(4);
background: #3b73ff;
position: absolute;
content: '';
left: 50%;
transform: translateX(-50%);
bottom: toRpx(12);
}
}
.sprite-icon {
display: block;
}
.icon-first-right {
right: toMinusRpx(100);
}
.icon-second-left {
left: toMinusRpx(100);
}
.icon-second-right {
right: toMinusRpx(100);
}
}
}
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -179,7 +179,48 @@ export default { ...@@ -179,7 +179,48 @@ export default {
}) })
}, },
/**延保日报 */ /**延保日报 */
equityStaffDailyReport () { }, equityStaffDailyReport () {
let { userInfo } = this
return new Promise((resolve, reject) => {
uni.$api.interceptionApi
.staffDailyReportMerchantValid({
merchantId: userInfo.shopMerchantId,
yqMerchantId: userInfo.merchantId,
staffUuid: userInfo.uuid,
sceneType: 0
})
.then(data => {
if (data) {
// 获取当前日期
let currentDate = new Date()
// 获取上一天的日期
let previousDate = new Date(currentDate)
previousDate.setDate(currentDate.getDate() - 1)
// toISOString 方法会丢失时区 导致与北京时间差八小时
let hour = previousDate.getHours() + 8
previousDate.setHours(hour)
// 格式化日期为"yyyy-mm-dd"
let formattedDate = previousDate.toISOString().split('T')[0]
// if (wx.__HAS_NOTLOGIN_MODAL) return false; //
this.addModalToQueue('日报提醒', '您有未填写的日报,请点击前往。', '前往填写', false, 2, res => {
if (res.confirm) {
const pages = getCurrentPages(),
currentPage = pages[pages.length - 1]
if (currentPage.route == 'pages/equity/tool/index') uni.$emit('jumpToDailyReport', formattedDate)
else uni.navigateTo({
url: `/pages/equity/tool/index?componentName=DailyReport&currentDate=${formattedDate}`
})
}
})
resolve(true)
} else {
resolve(false)
}
}).catch(err => {
resolve()
})
})
},
addModalToQueue (title, content, confirmText, showCancel, priority, eventCallback) { addModalToQueue (title, content, confirmText, showCancel, priority, eventCallback) {
if (modalQueue.findIndex(val => val.content == content) < 0) if (modalQueue.findIndex(val => val.content == content) < 0)
modalQueue.push({ modalQueue.push({
......
...@@ -250,6 +250,12 @@ ...@@ -250,6 +250,12 @@
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},
{
"path": "pages/equity/tool/index",
"style": {
"navigationStyle": "custom"
}
} }
], ],
"globalStyle": { "globalStyle": {
......
<template> <template>
<!-- --> <!-- -->
<view class="daily-report"> <view class="daily-report">
<view class="common-title">填写日报</view> <view class="common-title flex">
填写日报
<!-- <view class="common-title-btns flex">
<view class="title-btn">{{orderObj.staffName}}</view>
<view class="title-btn">轻改</view>
</view> -->
</view>
<scroll-view <scroll-view
:class="['repoet-view',{full:!orderObj.isDateWithin7Days}]" :class="['repoet-view',{full:!orderObj.isDateWithin7Days}]"
scroll-y scroll-y
...@@ -9,142 +15,175 @@ ...@@ -9,142 +15,175 @@
@scroll="to = ''" @scroll="to = ''"
> >
<view class="repoet-box"> <view class="repoet-box">
<template v-if="loadComplete"> <template v-if="loadComplete">
<view class="box"> <view :class="[{'hide-box':!orderObj.isDateWithin7Days && !orderObj.onBreak}]">
<view class="sub-title">轻改日报</view> <view class="box">
<view class="sub-title">驻店日报</view>
<template v-for="(i,index) in reportObject"> <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'">
<view class="picker flex">
<template v-for="(item,ind) in i.range">
<view
class="picker-item flex"
:key="`${index}_${ind}`"
@click="changePicker(item.id, i)"
>
<view class="icon">
<template v-if="item.id == orderObj[i.submitValue]">
<uni-icons
type="checkbox-filled"
:size="18"
color="#3B73FF"
></uni-icons>
</template>
<template v-else>
<uni-icons
type="circle"
:size="18"
color="#8C8C8C"
></uni-icons>
</template>
</view>
{{item.name}}
</view>
</template>
</view>
</template>
<template v-else>
{{orderObj[i.value]}}
</template>
</view>
</view>
</template>
</view>
<view class="car-band-box">
<type-tab-component
styleV2
:typeList="carBandList"
:tabIndex.sync="tabIndex"
nameKey="firstBrandName"
></type-tab-component>
<view <view
class="form-item flex" class="car-band-form-box"
:key="index" :style="[{height: `${filterTemplateList(carBandList[tabIndex]).length * 96}rpx`}]"
:id="i.refId || ''"
> >
<template v-for="(item,index) in carBandList">
<view
:class="['box',{show:index == tabIndex}]"
:key="index"
>
<template v-for="(i,ind) in filterTemplateList(item)">
<view
:class="['form-item flex',{name:i.name}]"
:key="`${index}_${ind}`"
:id="i.refId ? `${i.refId}_${index}` : ''"
>
<view class="label flex">
{{i.label}}
<template v-if="i.required && orderObj.pickerValue == 0">
<view class="required">*</view>
</template>
</view>
<view class="value flex">
<template v-if="filterDisabled(isEditReport) || i.disabled">
<template v-if="item[i.key] != null">
{{item[i.key] }}
</template>
<template v-else>
<view class="placeholder">{{i.inputPlaceholder || '请输入'}}</view>
</template>
</template>
<template v-else>
<input
class="input"
:type="i.type || 'text'"
:value="item[i.key]"
:placeholder="i.inputPlaceholder || '请输入'"
placeholder-class="placeholder"
@blur="handleCarInputBlur($event, i , item , index)"
:maxlength="3"
:key="dateKey[`${i.key}_${index}`]"
auto-blur
>
</template>
</view>
</view>
</template>
</view>
</template>
</view>
</view>
<view class="box">
<view class="sub-title">个人日报</view>
<view class="form-item flex">
<view class="label flex"> <view class="label flex">
{{i.label}} 备注
<template v-if="index != 0 || (i.required && orderObj.pickerValue == 0)">
<view class="required">*</view>
</template>
</view> </view>
<view class="value flex"> <view class="value">
<template v-if="i.type == 'input'"> <textarea
<input class="textarea"
class="input" v-model="orderObj.remark"
:type="i.inputType || 'text'" placeholder="请输入 (500字以内)"
:value="orderObj[i.value]" placeholder-class="placeholder"
:placeholder="i.placeholder || '请输入'" confirm-type="done"
placeholder-class="placeholder" auto-height
@blur="handleBlur($event, i)" :maxlength="500"
:disabled="filterDisabled(isEditReport)" :disabled="filterDisabled(isEditReport)"
:maxlength="3" ></textarea>
: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>
</view> </view>
</template>
</view>
<view class="box">
<view class="sub-title">其他信息</view>
<view class="form-item flex">
<view class="label flex">
备注
</view>
<view class="value">
<textarea
class="textarea"
v-model="orderObj.remark"
placeholder="请输入 (500字以内)"
placeholder-class="placeholder"
confirm-type="done"
auto-height
:maxlength="500"
:disabled="filterDisabled(isEditReport)"
></textarea>
</view>
</view> </view>
</view> <view class="box info">
<template v-for="(item,index) in carBandList"> <template v-for="(item,index) in infoObj">
<view
class="box"
:key="index"
>
<view class="sub-title flex">
{{title(item)}}
<view
class="staff-name"
v-if="orderObj.staffName && index == 0"
>{{orderObj.staffName}}</view>
</view>
<template v-for="(i,ind) in filterTemplateList">
<view <view
:class="['form-item flex',{name:i.name}]" class="info-item"
:key="`${index}_${ind}`" :key="index"
:id="i.refId ? `${i.refId}_${index}` : ''"
> >
<template v-if="i.name"> <view class="info-label">{{item.label}}</view>
个人相关 <view class="info-value">{{item.format()}}</view>
</template>
<template v-else>
<view class="label flex">
{{i.label}}
<template v-if="i.required && orderObj.pickerValue == 0">
<view class="required">*</view>
</template>
</view>
<view class="value flex">
<template v-if="filterDisabled(isEditReport) || i.disabled">
<template v-if="item[i.key] != null">
{{item[i.key] }}
</template>
<template v-else>
<view class="placeholder">{{i.inputPlaceholder || '请输入'}}</view>
</template>
</template>
<template v-else>
<input
class="input"
:type="i.type || 'text'"
:value="item[i.key]"
:placeholder="i.inputPlaceholder || '请输入'"
placeholder-class="placeholder"
@blur="handleCarInputBlur($event, i , item , index)"
:maxlength="3"
:inputmode="i.inputmode || 'text'"
:key="dateKey[`${i.key}_${index}`]"
auto-blur
>
</template>
</view>
</template>
</view> </view>
</template> </template>
</view> </view>
<view class="block"></view>
</view>
<template v-if="!orderObj.isDateWithin7Days && !orderObj.onBreak">
<view class="nothing flex">
<image
src="../../../../assets/images/common/report-no-data.webp"
class="icon"
/>
已超过 7 个自然日,暂不支持补填操作
</view>
</template> </template>
</template> </template>
</view> </view>
</scroll-view> </scroll-view>
<template v-if="orderObj.isDateWithin7Days"> <template v-if="orderObj.isDateWithin7Days">
<view class="btn-box flex"> <view class="btn-box flex">
...@@ -190,11 +229,11 @@ ...@@ -190,11 +229,11 @@
var weekday = require('dayjs/plugin/weekday') var weekday = require('dayjs/plugin/weekday')
import dayjs from 'dayjs' import dayjs from 'dayjs'
dayjs.extend(weekday) dayjs.extend(weekday)
import GlCell from '@/components/Form/GlCell.vue' import TypeTabComponent from '@/components/TypeTabComponent.vue'
import NoticePopup from '@/components/NoticePopup.vue' import NoticePopup from '@/components/NoticePopup.vue'
export default { export default {
components: { components: {
GlCell, TypeTabComponent,
NoticePopup NoticePopup
}, },
props: { props: {
...@@ -204,36 +243,31 @@ export default { ...@@ -204,36 +243,31 @@ export default {
name: 'DailyReport', name: 'DailyReport',
data () { data () {
return { return {
tabIndex: 0,
to: '', to: '',
dateKey: {}, dateKey: {},
loadComplete: false, loadComplete: false,
reportObject: Object.freeze([ reportObject: Object.freeze([
{ {
label: '今日驻店人数(按店)',
value: 'staffCount',
type: 'input',
required: true,
inputType: 'number',
refId: 'staffCount'
},
{
label: '当日调休', label: '当日调休',
value: 'pickerValue', value: 'pickerValue',
type: 'picker', type: 'picker',
required: true, required: true,
rangeKey: 'name', rangeKey: 'name',
range: [ range: [
{ id: 'N', name: '否' }, { id: 'N', name: '在岗' },
{ id: 'Y', name: '是' } { id: 'Y', name: '调休' }
], ],
submitValue: 'onBreak' submitValue: 'onBreak'
}, },
{ {
label: '个人成交总金额', label: '今日驻店人数(按店)',
value: 'totalOrderMoney', value: 'staffCount',
type: 'input',
required: true, required: true,
inputType: 'number',
refId: 'staffCount'
}, },
]), ]),
orderObj: {}, orderObj: {},
carBandList: [], carBandList: [],
...@@ -246,7 +280,6 @@ export default { ...@@ -246,7 +280,6 @@ export default {
min: 0, min: 0,
max: 100, max: 100,
refId: 'deliveryCount', refId: 'deliveryCount',
inputmode: 'numeric'
}, },
{ {
label: '店端总未触客数', label: '店端总未触客数',
...@@ -256,7 +289,6 @@ export default { ...@@ -256,7 +289,6 @@ export default {
min: 0, min: 0,
max: 100, max: 100,
refId: 'notDeliveryCount', refId: 'notDeliveryCount',
inputmode: 'numeric'
}, },
{ {
label: '实际售前触客数', label: '实际售前触客数',
...@@ -267,7 +299,6 @@ export default { ...@@ -267,7 +299,6 @@ export default {
max: 100, max: 100,
inputPlaceholder: '', inputPlaceholder: '',
refId: 'equityToShopCount', refId: 'equityToShopCount',
inputmode: 'numeric'
}, },
{ {
label: '实际售后触客数', label: '实际售后触客数',
...@@ -276,22 +307,63 @@ export default { ...@@ -276,22 +307,63 @@ export default {
required: false, required: false,
min: 0, min: 0,
max: 100, max: 100,
inputmode: 'numeric' }
]),
defaultObjArray: Object.freeze([
{
label: '店端实际交车数',
key: 'deliveryCount',
type: 'number',
required: true,
min: 0,
max: 100,
refId: 'deliveryCount',
}, },
{ {
name: 'person' label: '实际售前触客数',
key: 'equityToShopCount',
type: 'number',
required: true,
min: 0,
max: 100,
inputPlaceholder: '',
refId: 'equityToShopCount',
}, },
{ {
label: '今日成交数', label: '实际售后触客数',
key: 'totalOrderCount', key: 'afterSaleEquityToShopCount',
type: 'number', type: 'number',
required: false, required: false,
min: 0, min: 0,
max: 100, max: 100,
templateValue: 3, },
disabled: true, {
inputPlaceholder: '自动填入系统数据' label: '今日店端实际发券数',
} key: 'issueCouponCount',
type: 'number',
required: true,
min: 0,
max: 100,
inputPlaceholder: ''
},
{
label: '本月待邀约',
key: 'waitInviteCount',
type: 'number',
required: true,
min: 0,
max: 3000,
inputPlaceholder: ''
},
{
label: '今日流失',
key: 'customerLossCount',
type: 'number',
required: true,
min: 0,
max: 3000,
inputPlaceholder: ''
},
]), ]),
weeklyList: [], weeklyList: [],
isEditReport: false, isEditReport: false,
...@@ -300,6 +372,20 @@ export default { ...@@ -300,6 +372,20 @@ export default {
text: '返回首页', text: '返回首页',
type: 'primary' type: 'primary'
} }
]),
infoObj: Object.freeze([
{
label: '今日成交数',
format: () => {
return this.carBandList[this.tabIndex].totalOrderCount
}
},
{
label: '个人成交总金额',
format: _ => {
return this.orderObj.totalOrderMoney
}
}
]) ])
} }
}, },
...@@ -310,17 +396,6 @@ export default { ...@@ -310,17 +396,6 @@ export default {
mouthNumber () { mouthNumber () {
return dayjs(this.currentMonth).daysInMonth() return dayjs(this.currentMonth).daysInMonth()
}, },
filterTemplateList () {
let { hwOhterObjArray, orderObj: { templateType } } = this
if (templateType == 3) {
return hwOhterObjArray.filter(function (item) {
return item.templateValue != 3
})
} else {
return hwOhterObjArray
}
},
}, },
watch: { watch: {
currentMonth: { currentMonth: {
...@@ -501,19 +576,14 @@ export default { ...@@ -501,19 +576,14 @@ export default {
cancelOrderMoney: data.cancelOrderMoney, cancelOrderMoney: data.cancelOrderMoney,
templateType: data.templateType || 0, templateType: data.templateType || 0,
staffCount: data.staffCount, staffCount: data.staffCount,
onBreak: data.onBreak || 'N', onBreak: data.onBreak ? data.onBreak : diffDay < 7 ? data.onBreak || 'N' : '',
pickerValue: data.onBreak == 'Y' ? 1 : 0, pickerValue: data.onBreak == 'Y' ? 1 : 0,
staffCountError: false, staffCountError: false,
} }
this.tabIndex = 0
this.loadComplete = true this.loadComplete = true
this.dateKey.staffCount = Date.now() 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) { handleBlur (e, i) {
let { value } = e.detail let { value } = e.detail
if (value) { if (value) {
...@@ -547,7 +617,7 @@ export default { ...@@ -547,7 +617,7 @@ export default {
!(Array.isArray(value) && value.length === 0) !(Array.isArray(value) && value.length === 0)
) )
}, },
handleCarInputBlur (e, i, item , index) { handleCarInputBlur (e, i, item, index) {
let { value } = e.detail let { value } = e.detail
if (value) { if (value) {
let { key } = i, let { key } = i,
...@@ -567,7 +637,7 @@ export default { ...@@ -567,7 +637,7 @@ export default {
eventCode: 'app_submit_daily_report' eventCode: 'app_submit_daily_report'
}) //提交驻店日报埋点 }) //提交驻店日报埋点
try { try {
let { orderObj, carBandList, hwOhterObjArray } = this let { orderObj, carBandList, hwOhterObjArray, defaultObjArray } = this
orderObj.isAdmin = false orderObj.isAdmin = false
orderObj.oprBy = orderObj.staffUuid orderObj.oprBy = orderObj.staffUuid
orderObj.sceneType = 1 orderObj.sceneType = 1
...@@ -578,9 +648,15 @@ export default { ...@@ -578,9 +648,15 @@ export default {
refId: 'staffCount' refId: 'staffCount'
} }
carBandList.map((item, index) => { carBandList.map((item, index) => {
hwOhterObjArray.map(el => { if (item.firstBrandId == -1) defaultObjArray.map(el => {
if (el.required && ['', null].includes(item[el.key])) throw {
message: `${item.firstBrandName}${el.label}`,
refId: `${el.refId}_${index}`
}
})
else hwOhterObjArray.map(el => {
if (el.required && ['', null].includes(item[el.key])) throw { if (el.required && ['', null].includes(item[el.key])) throw {
message: el.label, message: `${item.firstBrandName}${el.label}`,
refId: `${el.refId}_${index}` refId: `${el.refId}_${index}`
} }
}) })
...@@ -617,10 +693,31 @@ export default { ...@@ -617,10 +693,31 @@ export default {
let { weeklyList, currentDate, orderObj: { isDateWithin7Days } } = this let { weeklyList, currentDate, orderObj: { isDateWithin7Days } } = this
return weeklyList.includes(currentDate) && !disabledStatus || !isDateWithin7Days return weeklyList.includes(currentDate) && !disabledStatus || !isDateWithin7Days
}, },
changePicker (e, i) { changePicker (value, i) {
let { value } = e.detail const disabled = this.filterDisabled(this.isEditReport)
this.orderObj[i.value] = value if (disabled) return
this.orderObj[i.submitValue] = value == 1 ? 'Y' : 'N' this.orderObj[i.value] = {
'Y': 1,
'N': 0
}[value]
this.orderObj[i.submitValue] = value
},
tabBarClick (e) {
if (this.tabIndex == e) return
this.tabIndex = e
},
filterTemplateList (item) {
let { hwOhterObjArray, defaultObjArray, orderObj: { templateType } } = this
if (item.firstBrandId == -1) {
return defaultObjArray
}
if (templateType == 3) {
return hwOhterObjArray.filter(function (item) {
return item.templateValue != 3
})
} else {
return hwOhterObjArray
}
}, },
} }
} }
...@@ -629,8 +726,28 @@ export default { ...@@ -629,8 +726,28 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.daily-report { .daily-report {
height: 100%; height: 100%;
.hide-box {
opacity: 0;
}
.common-title-btns {
margin: 0 toRpx(48) 0 auto;
gap: toRpx(16);
.title-btn {
height: toRpx(80);
border-radius: toRpx(16);
background: #3b73ff1a;
display: flex;
align-items: center;
justify-content: center;
padding: 0 toRpx(40);
color: #333333;
font-size: toRpx(28);
}
}
.repoet-view { .repoet-view {
height: calc(100% - #{toRpx(248)}); height: calc(100% - #{toRpx(248)});
position: relative;
} }
.full { .full {
height: calc(100% - #{toRpx(120)}); height: calc(100% - #{toRpx(120)});
...@@ -681,20 +798,28 @@ export default { ...@@ -681,20 +798,28 @@ export default {
text-align: right; text-align: right;
line-height: toRpx(96); line-height: toRpx(96);
justify-content: flex-end; justify-content: flex-end;
.arrow { font-size: toRpx(28);
position: relative; }
top: toRpx(2); .picker {
margin-left: toRpx(4); gap: toRpx(48);
&-item {
line-height: toRpx(34);
.icon {
margin-right: toRpx(10);
height: toRpx(32);
}
} }
} }
.placeholder { .placeholder {
color: #999999; color: #999999;
font-size: toRpx(28); font-size: toRpx(28);
line-height: toRpx(28);
} }
.textarea { .textarea {
width: calc(100% - #{toRpx(24)}); width: calc(100% - #{toRpx(24)});
margin-left: toRpx(24); margin-left: toRpx(24);
text-align: right; text-align: right;
margin-bottom: toRpx(8);
} }
} }
} }
...@@ -706,6 +831,51 @@ export default { ...@@ -706,6 +831,51 @@ export default {
border-bottom: none; border-bottom: none;
} }
} }
.car-band-box {
margin: 0 toRpx(48) toRpx(16);
background: #ffffff59;
backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
overflow: hidden;
border-radius: toRpx(32);
.car-band-form-box {
position: relative;
.box {
position: absolute;
left: 0;
top: 0;
width: 100%;
visibility: hidden;
}
.show {
visibility: visible;
}
}
.box {
margin: 0;
border-radius: 0 0 toRpx(32);
}
}
.info {
display: flex;
padding: toRpx(16) toRpx(32);
&-item {
width: 25%;
color: #222222;
font-size: toRpx(28);
font-weight: 500;
}
&-label {
color: #777777;
font-size: toRpx(24);
line-height: toRpx(48);
padding: toRpx(8) 0;
}
}
.block {
width: 100%;
height: toRpx(16);
}
.btn-box { .btn-box {
height: toRpx(128); height: toRpx(128);
padding: 0 toRpx(128); padding: 0 toRpx(128);
...@@ -727,5 +897,23 @@ export default { ...@@ -727,5 +897,23 @@ export default {
color: #4673ff; color: #4673ff;
} }
} }
.nothing {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
// background: #f1f4ff;
backdrop-filter: blur(8px);
z-index: 2;
flex-direction: column;
justify-content: center;
color: #999999;
font-size: toRpx(24);
.icon {
width: toRpx(344);
height: toRpx(236);
}
}
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
module.exports = {
data: {
orderObj: [
{
label: '工单编号',
key: 'orderCode',
copy: true
},
{
label: '工单时间',
key: 'time',
dateChange: true
},
{
label: '工单状态',
key: 'status',
color: '#14CC68',
status: true
},
{
label: '支付方式',
key: 'payType',
payType: true
}
],
customerObj: [
{
label: '客户姓名',
key: 'customerName'
},
{
label: '性别',
key: 'customerSex',
enum: {
1: '男',
2: '女'
}
},
{
label: '手机号',
key: 'customerPhone',
color: '#347BFF',
callBack: 'makePhoneCall',
copy: true
},
{
label: '车型',
key: 'carType'
},
{
label: '车架号',
key: 'standNo'
},
{
label: '车牌号',
key: 'plateNumber'
},
{
label: '是否体验',
key: 'experienceFlag',
enum: {
Y: '是',
N: '否'
}
},
{
label: '销售顾问',
arr: ['merchantName', 'employeeName']
},
{
label: '转化专员',
arr: ['sellerMerchantName', 'sellerName']
},
{
label: '备注',
key: 'remark'
}
],
payType: {
0: '战败',
1: '微信支付',
2: '门店收款',
3: 'pos机支付',
4: '支付宝支付',
5: '嘀加收款',
6: '对公转账',
7: '其它收款'
},
orderType: [
{
name: '全部',
active: true,
value: []
},
{
name: '升级下单',
value: [1, 2, 3, 4, 6]
},
{
name: '核销抵扣',
value: [5]
}
],
status: {
12: {
text: '已退款',
color: '#F7A431',
background: '#FFF5E6'
},
11: {
text: '已失效',
color: '#8F959E',
background: ' #F3F4F5'
},
10: {
text: '已关闭',
color: '#8F959E'
},
9: {
text: '已撤销',
color: '#8F959E',
background: '#F0F0F0'
},
1: {
text: '待跟进',
color: '#FF9D0A',
background: '#FFF5E6'
},
2: {
text: '战败',
color: '#F24724',
background: '#FDECE9'
},
3: {
text: '待支付',
color: '#FF9D0A',
background: '#FFF5E6'
},
4: {
text: '已支付',
color: '#35C376',
background: '#EAF9F1'
},
6: {
text: '已评价',
color: '#347BFF',
background: '#EAF1FF'
}
},
// 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销
statusList: [
{
name: '待跟进',
value: [1]
},
{
name: '已支付',
value: [4]
},
{
name: '待支付',
value: [3]
},
{
name: '已撤销',
value: [9]
},
{
name: '战败',
value: [2]
},
{
name: '已评价',
value: [6]
},
{
name: '已关闭',
value: [10]
},
{
name: '已失效',
value: [11]
}
],
grassInfo: {},
orderCode: '',
userInfo: {}
}
}
<template>
<view class="order-confirm">
<view class="common-title">工单确认</view>
<view class="px-48 scroll-y" v-if="orderInfo">
<view class="top-tips flex align-center" v-if="orderInfo.selectPayType == 3 || orderInfo.selectPayType == 1">
<text class="fs-32 fw-7">等待客户付款</text>
<text class="fs-26 ml-12">点击下一步,锁定并生成工单码。</text>
</view>
<view class="top-tips flex align-center" v-if="orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7">
<view class="fs-32 fw-7">请上传付款凭证结束工单</view>
<view class="fs-26 ml-12">点击确认工单,提交付款凭证。</view>
</view>
<view class="top-tips flex align-center" v-if="orderInfo.selectPayType == 0 || orderInfo.selectPayType == null">
<view class="fs-32 fw-7">请提交客户拒绝升级原因</view>
<view class="fs-26 ml-12">点击确认工单,根据操作结束工单。</view>
</view>
<view v-if="!isErrorOrder && (orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7)" class="box date-box box-shell flex justify-between align-center">
<view class="date-box-label">
收款时间
<text class="required">*</text>
</view>
<view class="flex justify-between align-center">
<view class="date-box-value">{{ successDate }}</view>
<view class="handlerBtn" @click.stop="openDate">编辑</view>
</view>
</view>
<!-- 商品信息 -->
<view class="box-shell">
<view class="box-shell-title">商品信息</view>
<!-- 套餐 -->
<view class="meal-box" v-for="(item, index) in orderInfo.packageGoodsList">
<view class="meal-hd flex justify-between align-center">
<view>{{ item.packageAlias || item.packageName }}</view>
<view class="price">¥{{ item.totalPrice }}</view>
</view>
<view class="meal-bd">
<view class="meal-bd-box" v-for="g in item.packageGoodsOrderList">
<view class="meal-bd-head flex justify-between align-center">
<view class="flex align-center">
<view class="name">{{ g.upgradeGoodsAlias || g.upgradeGoodsName }}</view>
<view class="meal-bd-bottom flex align-center">
{{ g.upgradeGoodsType === 1 ? g.positionStr : g.upgradeGoodsTypeName }}
<view class="count">x{{ g.number }}</view>
</view>
</view>
<view class="price">¥{{ g.price }}</view>
</view>
</view>
</view>
</view>
<view class="good-list">
<view class="good mt-16" v-for="(item, index) in orderInfo.subOrderList">
<view class="flex justify-between align-center">
<text class="good-name">商品名称:{{ replaceItemText(item.upgradeGoodsName) || '' }}</text>
<text class="good-price">¥{{ item.price }}</text>
</view>
<view class="flex justify-between align-center pt-12">
<text class="good-alias">商品别名:{{ replaceItemText(item.upgradeGoodsAlias) || '' }}</text>
</view>
<view class="flex align-center pt-24">
<text class="good-sku">{{ item.positionStr || item.upgradeGoodsTypeName }}</text>
<text class="good-count">x{{ item.number }}</text>
</view>
</view>
</view>
<view class="flex align-center py-16 coupon" v-if="orderInfo">
<view class="sprite-icon icon-coupon"></view>
<text class="fs-28 coupon-name">{{ orderInfo.couponName || '' }}{{ orderInfo.customerCoupon.customerCouponCode || '' }}({{ orderInfo.customerCoupon.employeeName || '' }})</text>
</view>
<view class="flex justify-end align-center mt-24" v-if="orderInfo">
<text class="good-total-lable">商品总金额:</text>
<text class="good-total-value">
<text class="unit">¥</text>
{{ orderInfo.total_price }}
</text>
</view>
</view>
<!-- 工单信息 -->
<view class="box-shell">
<view class="box-shell-title">工单信息</view>
<view class="order-info pt-16">
<view v-for="(item, index) in orderObj" :key="index" class="flex align-center pt-16">
<view class="label">{{ item.label }}</view>
<view v-if="item.key == 'status'">
<view class="value" :style="{ color: status[orderInfo.status].color || '' }">
{{ status[orderInfo.status].text }}
</view>
</view>
<view v-else>
<view class="value">
<view v-if="item.key == 'payType'">
{{ payType[orderInfo.selectPayType] || '' }}
</view>
<view v-else>{{ orderInfo[item.key] || '' }}</view>
</view>
</view>
<view v-if="item.copy" class="copy-btn" @click="setCopyData(orderInfo[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view>
</view>
<view class="customize-btn" v-if="item.dateChange" @click.stop="customizeDate">自定义</view>
</view>
<view v-if="(orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length">
<view class="flex align-center pt-8">
<view class="label">付款凭证</view>
<view class="image-box">
<view class="value" @click.stop="previewImage" v-for="(item, index) in orderInfo.payVoucherList" :key="index">
<view class="image">
<!-- <image src="{{item.payVoucher}}" /> -->
</view>
</view>
</view>
</view>
</view>
<view v-if="orderInfo.status == 5 || orderInfo.status == 12">
<view class="flex align-center pt-8">
<view class="label">退款明细</view>
<view class="value">{{ orderInfo.refundType == 1 ? '退全款' : '退部分款' }}¥{{ orderInfo.refundAmount }}</view>
</view>
</view>
<view class="paid" v-if="orderInfo.payOrder && orderInfo.payOrder.payStatus == 2">
<!-- <image src="../../images/paid.png" /> -->
</view>
</view>
</view>
<!-- 客户信息 -->
<view class="box-shell">
<view class="box-shell-title">客户信息</view>
<view class="order-info pt-16">
<view class="flex align-center pt-16" v-for="(item, index) in customerObj" :key="index">
<view class="label">{{ item.label }}</view>
<view class="flex flex-1">
<view class="value" :style="{ color: item.color || '#333' }">
<view v-if="item.arr">
<view v-if="orderInfo[item.arr[1]]" class="flex">
<view v-for="(i, ind) in item.arr" :key="ind">
<view class="value-item text-hide">
<text v-if="ind == 1" class="lineText">|</text>
{{ orderInfo[i] }}
</view>
</view>
</view>
</view>
<view v-else>
{{ item.enum ? item.enum[orderInfo[item.key]] : orderInfo[item.key] || '' }}
</view>
</view>
<view v-if="item.copy" class="copy-btn" @click="setCopyData(orderInfo[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view>
</view>
</view>
</view>
</view>
<view v-if="orderInfo.selectPayType == 0">
<view class="flex align-center pt-8">
<view class="label">拒升理由</view>
<view class="value">
{{ orderInfo.customer.refusalReason ? orderInfo.customer.refusalReason : '' }}
</view>
</view>
</view>
</view>
<view class="flex align-center footer-box justify-center">
<view class="edit btn" @click.stop="edit">修改</view>
<view class="confirm btn" @click.stop="confirm">确认</view>
</view>
</view>
<PublishPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false" @confirm="confirmTips">
<template #content>
<view>
<image class="tipsPopupBg" :src="popupBg" />
<view class="title">重要提示</view>
<view class="tipsConent">
<view>请检查店内是否配备POS机,确认信息后该工单将无法撤销或修改!</view>
<view>若4S店已向车主收款,请返回修改支付方式为</view>
<text>"门店收款"</text>
</view>
</view>
</template>
</PublishPopup>
<PublishPopup ref="calendarPopup" popupClass="calendarPopup" :showClose="false" :showTitle="false" @confirm="confirmCalendar">
<template #content>
<uni-calendar class="calendar" :showMonth="false" :endDate="endDate" @change="calendarChange" />
</template>
</PublishPopup>
<order-popup ref="openDate" popupType="13" @onConfirm="confirmDate" />
<PublishPopup ref="payPopup" popupClass="payPopup" type="center" :isShowFooter="false">
<template #header>
<view class="popup-top">
<view class="popup-top-box flex align-center">
<text class="popup-top-box-title">工单确认码</text>
<view @click.stop="closePopup">
<uni-icons @click.stop="closePopup" class="icon-close" type="closeempty"></uni-icons>
</view>
</view>
</view>
</template>
<template #content>
<view class="pos-popup" v-if="orderInfo">
<view class="price">¥{{ orderInfo.total_price }}</view>
<image class="qrcode" :src="orderInfo.selectPayType == 1 ? wxqrcode : posQrCode"></image>
<view class="level-1-tips">{{ orderInfo.selectPayType == 1 ? '请让客户打开微信扫描上方付款码进行支付' : '请使用POS机扫描此码,再向客户收款' }}</view>
<view class="level-2-tips">超过24小时未支付将关闭此订单</view>
</view>
</template>
</PublishPopup>
</view>
</template>
<script>
import utils from '@/utils/utils'
import qrcode from '@/utils/qrcode'
import order_mixins from '../../order_mixins.js'
import dayjs from 'dayjs'
import PublishPopup from '@/components/PublishPopup.vue'
import OrderPopup from '@/components/OrderPopup/index.vue'
import { debounce } from 'lodash'
export default {
name: 'OrderConfirm',
props: {
transmissionOfData: {
type: Object,
default: () => ({})
}
},
components: {
PublishPopup,
OrderPopup
},
watch: {
transmissionOfData: {
handler(newVal) {
if (newVal) {
console.log('接收到的交易数据:', newVal)
this.getPositionList()
// "this.transmissionOfData.orderCode"
this.getDetail(this.transmissionOfData.orderCode)
this.successDate = dayjs().format('YYYY-MM-DD HH:mm:00')
}
},
immediate: true
}
},
data() {
return {
...order_mixins.data,
popupBg: require('@/assets/images/boutique/tipsPopupBg.png'),
positionTypeList: [],
isErrorOrder: false,
orderInfo: null,
successDate: null,
selectDate: null,
time: null,
wxqrcode: '',
posQrCode: '',
endDate: dayjs().format('YYYY-MM-DD')
}
},
mounted() {
// this.getPositionList()
// // "this.transmissionOfData.orderCode"
// this.getDetail('250826172036851')
// this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss')
},
methods: {
replaceItemText(item) {
var reg = getRegExp(';~;', 'g')
return item ? item.replace(reg, ' ') : ''
},
async getDetail(orderCode) {
console.log(orderCode)
let _this = this
uni.$api.boutiqueApi
.getPackageGoodsDetail({
orderCode
})
.then(data => {
if (data.payOrder && data.payOrder.payStatus == 2) {
if (this.time) clearInterval(this.time)
this.$emit('jump', 'OrderDetail', data)
return
}
let couponName = data.customerCoupon ? data.customerCoupon.couponName : ''
let total_price = 0
let warrantyCardList = []
for (var i = 0; i < data?.subOrderList?.length; i++) {
let e = data?.subOrderList[i]
total_price += e.totalPrice
e.price = Number(utils.decimal(Number(e.totalPrice / e.number), 2)).toFixed(2)
e.positionStr = this.positionTypeList.filter(v => v.positionValue == e.upgradeGoodsPosition)[0]?.positionName || ''
if (e.upgradeWarrantyPeriod || e.upgradeWarrantyPeriod > 0) {
warrantyCardList.push({
warrantyPeriod: e.upgradeWarrantyPeriod,
goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName
})
}
}
data.packageGoodsList?.forEach(item => {
item.packageGoodsOrderList.forEach(g => {
g.price = g.totalPrice ? Number(g.totalPrice) / Number(g.number) : g.upgradePrice
})
item.goodsList = item.packageGoodsOrderList
item.price = item.goodsList.reduce((prev, cur) => {
return prev + Number(cur.totalPrice) / Number(cur.number)
}, 0)
item.count = item.goodsList.length ? item.goodsList[0].number : 1
let total = item.price * item.count
item.totalPrice = utils.decimal(total, 2)
item.packageGoodsOrderList.forEach(g => {
g.positionStr = this.positionTypeList.filter(v => v.positionValue == g.upgradeGoodsPosition)[0]?.positionName || ''
})
total_price += item.totalPrice
})
data = {
...data.customer,
...data.payOrder,
...data,
packageGoodsList: data.packageGoodsList,
couponName,
total_price: Number(utils.decimal(total_price, 2)).toFixed(2)
}
if (data.orderTime) data.time = dayjs(new Date(data.orderTime)).format('YYYY-MM-DD HH:mm:ss')
if (data.customerCoupon) {
data.customerCoupon.customerCouponCode = data.customerCoupon.customerCouponCode.split('-')[0]
}
if (data.customer.carSeriesName) {
data.carType = `${data.customer.carBrand || ''}-${data.customer.carChildsBrandName || ''}-${data.customer.carSeriesName || ''}`
}
_this.orderInfo = data
console.log('data', _this.orderInfo)
_this.flag = true
_this.warrantyCardList = warrantyCardList
// 校验是否显示二级流量方
if (data.subShopMerchantName) {
if (_this.customerObj.findIndex(val => val?.key && val.key == 'subShopMerchantName') < 0) {
_this.customerObj[_this.customerObj.length - 2] = {
label: '二级流量方',
key: 'subShopMerchantName'
}
}
}
// 是2:门店收款 5:嘀加收款 6:对公转账 7:其它收款并且不是错误订单 自动打开门店收款弹窗
// if (!_this.isErrorOrder && [2, 5, 6, 7].includes(Number(data.selectPayType))) {
// _this.toshowDateModal()
// }
// 获取园区店技师配置信息
uni.$api.boutiqueApi
.getQYTechnicianList({
yqMerchantId: uni.$storage.get('userInfo')?.merchantId
})
.then(respone => {
if (respone?.code == 0) {
if (respone?.data.length > 0) this.isArtificer(respone.data)
}
})
// } else {
// wx.showModal({
// title: '温馨提示',
// content: message,
// showCancel: false,
// confirmText: '刷新',
// confirmColor: '#347BFF',
// success(res) {
// if (res.confirm) {
// _this.getDetail(orderCode)
// }
// }
// })
// }
})
},
async getPositionList() {
const res = await uni.$api.boutiqueApi.getPositionList({})
this.positionTypeList = res
},
setCopyData(e) {
utils.setCopyData(`${e}`)
},
confirm() {
this.checkPayType()
},
edit() {
const data = { ...this.orderInfo }
// 处理subOrderList 商品为空的情况
console.log(this.orderInfo, '跳转')
data.subOrderList = data.subOrderList.filter(item => item.merchantGoodsId)
if (data.packageGoodsList && data.packageGoodsList.length) {
data.subOrderList = data.subOrderList.concat(data.packageGoodsList)
}
// 商品是否包含太阳膜
data.isFilmOrder = data.subOrderList?.findIndex(subE => subE?.upgradeGoodsType == 1) > -1
this.$emit('jump', 'CreateOrder', { paramsData: data, type: 'createWithPay' })
},
confirmDate(date) {
const { chooseContent } = date
this.successDate = dayjs(chooseContent).format('YYYY-MM-DD HH:mm:00')
console.log(this.successDate)
},
calendarChange(date) {
console.log(date)
this.selectDate = date.year + '-' + date.month + '-' + date.date
},
confirmCalendar() {
this.rangeSelect(this.selectDate)
},
// 生成小程序码
createWxQrcode() {
let _this = this
let oParams = {}
let { sessionId } = uni.$storage.get()
oParams.appId = this.orderInfo.paymentChannel.wechatAppId
oParams.qrcodeType = 'QR_WXA_UNLIMIT'
oParams.path = 'packagesPayment/pages/payment/index'
// oParams.path = 'packagesPayment/pages/QRPayment/QRPayment'
// oParams.scene = `merchantId=111`
oParams.scene = `orderCode=${this.orderInfo.orderCode}&workWxSessionId=${sessionId}`
oParams.channelType = 1
// B端小程序调用接口生成领券码时,传参userId用uuid,类型由int变string
uni.$api.boutiqueApi.createQrcodeImage(oParams).then(data => {
_this.wxqrcode = data
})
},
// 修改订单时间
rangeSelect(date) {
let { orderInfo } = this
let params = {
orderCode: orderInfo.orderCode,
orderTime: date + ' 00:00:00'
}
uni.$api.boutiqueApi
.updateOrderTime(params)
.then(result => {
if (result) {
uni.showToast({ title: '修改日期成功' })
this.orderInfo.time = params.orderTime
} else {
uni.showToast({ title: '修改日期失败' })
}
})
.catch(err => {
console.log(err)
})
this.$refs.calendarPopup.closePopup()
},
closePopup() {
console.log('关闭')
this.$refs.payPopup.closePopup()
},
async checkPayType() {
console.log(this.orderInfo.selectPayType, 'this.orderInfo.selectPayType')
let _this = this
// 微信支付
if (this.orderInfo.selectPayType == 1) {
await this.createWxQrcode()
this.$refs.payPopup.open()
_this.getDetail(this.orderInfo.orderCode)
if (!this.time) {
this.time = setInterval(() => {
_this.getDetail(_this.orderInfo.orderCode)
}, 5 * 1000)
}
return false
}
// pos机支付
if (this.orderInfo.selectPayType == 3) {
if (this.orderInfo.status == 1) {
this.$refs.tipsPopup.open()
} else {
_this.createPayOrder()
}
} else {
if (!this.successDate && !this.isErrorOrder && this.orderInfo.selectPayType != 0) return uni.showToast({ title: this.orderInfo.selectPayType == 2 ? '请选择4S店收款时间' : '请选择嘀加收款时间' })
this.$emit('jump', 'UploadProofOfPayment', { orderCode: this.orderInfo.orderCode, payType: this.orderInfo.selectPayType, payeeType: this.orderInfo.payeeType, successDate: this.successDate })
}
},
confirmTips() {
this.createPayOrder()
},
openDate() {
this.$refs.openDate.open()
},
customizeDate() {
console.log(this.$refs.calendarPopup, 'this.$refs.calendarPopup')
this.$refs.calendarPopup.open()
},
createPayOrder() {
let {
orderInfo: { selectPayType, orderCode, payeeType },
outTradeNo,
payVoucherList,
successDate,
isErrorOrder
} = this
let obj = {
orderCode,
payType: selectPayType,
payeeType: payeeType
}
// 支付方式 2:门店收款 5:嘀加收款 6:对公转账 7:其它收款
if ([2, 5, 6, 7].includes(Number(selectPayType)) && !isErrorOrder) {
obj.successDate = successDate
}
if (payVoucherList?.length && outTradeNo) {
obj.payVoucherList = payVoucherList.map(v => {
return v?.url
})
obj.outTradeNo = outTradeNo
}
console.log(obj)
uni.showLoading({
title: '提交中...',
mask: true
})
// 状态更新 需刷新工单列表和预约管理列表
utils.refreshPageData()
uni.$api.boutiqueApi.createPayOrder(obj).then(data => {
if (data) {
console.log(`类型为:${selectPayType}`)
console.log(this.orderInfo)
if (selectPayType == 3 || selectPayType == 1) {
this.orderInfo.payOrder.outTradeNo = data.outTradeNo
let size = 0
try {
const info = uni.getSystemInfoSync()
let scale = info.windowWidth / 750 //不同屏幕下QRcode的适配比例;设计稿是750宽
let width = 300 * scale
size = width
} catch (e) {
size = 150
}
this.posQrCode = qrcode.createQrCodeImg(data.outTradeNo, {
size: parseInt(size)
})
uni.hideLoading()
console.log(this.posQrCode)
this.$refs.payPopup.open()
this.getDetail(orderCode)
if (!this.time) {
this.time = setInterval(() => {
// console.log('6666666666')
this.getDetail(orderCode)
}, 5 * 1000)
}
} else {
this.$emit('jump', 'OrderDetail', data)
}
} else {
uni.showToast({ title: message, icon: null })
}
})
}
},
beforeDestroy() {
if (this.time) {
clearInterval(this.time)
this.time = null
}
}
}
</script>
<style scoped lang="scss">
// Popup样式
::v-deep .tipsPopup .uni-popup__wrapper {
width: toRpx(848);
height: toRpx(744);
border-radius: toRpx(42);
background: rgb(255, 255, 255) !important;
.tipsPopupBg {
border-radius: toRpx(42) toRpx(42) 0 0;
width: 100%;
height: toRpx(244);
}
.title {
color: #333333;
font-size: toRpx(40);
font-weight: 500;
text-align: center;
margin-top: toRpx(48);
}
.tipsConent {
color: #666666;
font-size: toRpx(32);
font-weight: 400;
padding: toRpx(16) toRpx(64);
line-height: toRpx(48);
text {
color: #347bff;
}
}
}
::v-deep .calendarPopup .uni-popup__wrapper {
width: 100%;
height: 62vh;
.calendar {
width: 100%;
height: calc(100% - #{toRpx(164)});
}
}
::v-deep .payPopup .uni-popup__wrapper {
width: 60%;
border-radius: toRpx(48);
background: #ffffff !important;
.popup-top {
border-radius: toRpx(48) toRpx(48) 0 0;
background: url('@/assets/images/boutique/payTipsBc.png') no-repeat;
background-size: 100% 100%;
margin-bottom: toRpx(16);
.popup-top-box {
color: #333333;
font-size: toRpx(36);
font-weight: 500;
text-align: center;
padding: toRpx(32);
.popup-top-box-title {
flex: 1;
}
.icon-close {
text-align: end;
}
}
}
.pos-popup {
text-align: center;
box-shadow: 0 toRpx(12) toRpx(24) 0 #2c66f726;
width: 90%;
border-radius: toRpx(48);
background: #ffffff;
margin: 0 auto toRpx(63) auto;
padding: toRpx(63) 0;
.qrcode {
width: toRpx(320);
height: toRpx(320);
margin-bottom: toRpx(32);
}
.price {
color: #4673ff;
font-size: toRpx(56);
font-weight: 700;
margin-bottom: toRpx(32);
}
.level-1-tips {
color: #1a1a1a;
font-size: toRpx(40);
font-weight: 500;
margin-bottom: toRpx(16);
}
.level-2-tips {
color: #808291;
font-size: toRpx(32);
font-weight: 400;
}
}
}
.order-confirm {
position: relative;
height: 100%;
.scroll-y {
border-radius: toRpx(16);
height: calc(100% - #{toRpx(296)});
overflow-y: scroll;
&::-webkit-scrollbar {
width: 0;
height: 0;
background: transparent;
}
}
.px-48 {
padding: 0 toRpx(48);
}
.pt-6 {
padding-top: toRpx(6);
}
.pt-8 {
padding-top: toRpx(8);
}
.pt-16 {
padding-top: toRpx(16);
}
.pt-12 {
padding-top: toRpx(12);
}
.pt-24 {
padding-top: toRpx(24);
}
.fs-14 {
font-size: toRpx(14);
}
.fs-32 {
font-size: toRpx(32);
}
.fs-28 {
font-size: toRpx(28);
}
.fs-26 {
font-size: toRpx(26);
}
.fw-7 {
font-weight: 700;
}
.fs-13 {
font-size: toRpx(13);
}
.ml-12 {
margin-left: toRpx(12);
}
.mt-16 {
margin-top: toRpx(16);
}
.mt-24 {
margin-top: toRpx(24);
}
.py-16 {
padding: toRpx(16) 0;
}
.flex-1 {
flex: 1;
}
.date-box {
display: flex;
align-items: center;
position: relative;
}
.date-box-label {
font-weight: 400;
font-size: toRpx(28);
color: #333333;
}
.date-box-value {
font-weight: 500;
font-size: toRpx(40);
color: #333333;
}
.required {
color: #f00;
margin-left: toRpx(8);
}
.handlerBtn {
color: #4673ff;
font-size: toRpx(26);
font-weight: 400;
margin-left: toRpx(8);
}
.customize-btn {
color: #4673ff;
font-size: toRpx(26);
font-weight: 400;
margin-left: toRpx(16);
}
.copy-btn {
display: flex;
align-items: center;
color: #808291;
.copy {
margin-right: toRpx(8);
margin-left: toRpx(20);
}
}
.top-tips {
width: 100%;
height: toRpx(86);
border-radius: toRpx(16);
background: linear-gradient(-90deg, #61c0ff 0%, #2c66f7 100%);
box-shadow: inset 0 0 toRpx(20) 0 #ffffff99;
color: #fff;
padding: toRpx(48) toRpx(32);
}
.box-shell {
width: 100%;
border-radius: toRpx(16);
background: #ffffff;
padding: toRpx(24) toRpx(32);
margin-top: toRpx(16);
&-title {
font-size: toRpx(28);
color: #333333;
font-weight: 400;
}
.meal-box {
border-radius: toRpx(24);
border: toRpx(2) solid #dce0e6;
padding: toRpx(24) toRpx(32);
box-sizing: border-box;
margin-top: toRpx(16);
.meal-hd {
color: #333333;
font-size: toRpx(32);
font-weight: 400;
margin-bottom: toRpx(20);
.price {
font-weight: 500;
}
}
.meal-bd {
background: #f6f7fa;
border-radius: toRpx(16);
padding: 0 toRpx(32);
box-sizing: border-box;
.meal-bd-head {
border-bottom: toRpx(2) solid #dce0e6;
padding: toRpx(24) 0;
.name {
color: #333333;
font-size: toRpx(28);
font-weight: 400;
}
.meal-bd-bottom {
color: #999999;
font-size: toRpx(24);
font-weight: 400;
margin-left: toRpx(8);
}
.price {
color: #333333;
font-size: toRpx(28);
font-weight: 400;
}
}
.meal-bd-box:last-child .meal-bd-head {
border-bottom: none;
}
}
}
.good-list {
margin-top: toRpx(16);
.good {
color: #333333;
font-size: toRpx(28);
border-radius: toRpx(24);
background: #f5f7fa;
padding: toRpx(24);
.good-name {
font-weight: 400;
flex: 4;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.good-price {
font-weight: 500;
flex: 1;
text-align: right;
}
.good-alias {
font-size: toRpx(24);
font-weight: 400;
}
.good-sku {
color: #999999;
font-size: toRpx(24);
font-weight: 400;
margin-right: toRpx(24);
}
.good-count {
color: #999999;
font-size: toRpx(24);
font-weight: 400;
}
}
}
.coupon {
border-bottom: 1px solid #f7f7f6;
.coupon-name {
color: #292d33;
font-size: toRpx(28);
font-weight: 400;
margin-left: toRpx(8);
}
}
.good-total-lable {
color: #757980;
font-size: toRpx(28);
font-weight: 400;
}
.good-total-value {
color: #4673ff;
font-size: toRpx(40);
font-weight: 700;
}
.order-info {
.value .value-item text {
margin: 0 toRpx(6);
}
.label {
width: toRpx(156);
color: #999999;
font-size: toRpx(26);
font-weight: 400;
}
.value {
color: #222222;
font-size: toRpx(26);
font-weight: 400;
white-space: wrap;
}
}
}
.footer-box {
position: absolute;
bottom: toRpx(24);
width: 100%;
left: 0;
.btn {
width: 42%;
height: toRpx(80);
border-radius: toRpx(48);
font-size: toRpx(28);
font-weight: 500;
line-height: toRpx(80);
text-align: center;
}
.confirm {
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
margin-left: toRpx(32);
}
.edit {
background: #3b73ff1a;
color: #4673ff;
}
}
}
</style>
<template>
<view class="order">
<view class="common-title">{{ orderCreateType == 'createWithPay' ? '新建工单' : '补录订单' }}</view>
<view class="box">
<scroll-view class="scroll-view" scroll-y="true">
<view class="box-content">
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell">
<template slot="frontGear">
<Product v-if="orderObj.frontGear" @changeTotalPrice="changeTotalPrice" :list="orderObj.frontGear" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="frontWindow">
<Product v-if="orderObj.frontWindow" @changeTotalPrice="changeTotalPrice" :list="orderObj.frontWindow" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="rearWindow">
<Product v-if="orderObj.rearWindow" @changeTotalPrice="changeTotalPrice" :list="orderObj.rearWindow" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="rearGear">
<Product v-if="orderObj.rearGear" @changeTotalPrice="changeTotalPrice" :list="orderObj.rearGear" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="sunRoof">
<Product v-if="orderObj.sunRoof" @changeTotalPrice="changeTotalPrice" :list="orderObj.sunRoof" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="package">
<Package v-if="orderObj.package" @changeTotalPrice="changeTotalPrice" :list="orderObj.package" :positionTypeList="positionTypeList"></Package>
</template>
<template slot="skuGoods">
<SkuGoods v-if="orderObj.skuGoods" :list="orderObj.skuGoods" @changeTotalPrice="changeTotalPrice" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></SkuGoods>
<view class="total" v-if="totalPrice > 0">
<view class="total-left">总价</view>
<view class="total-right">¥{{ totalPrice }}</view>
</view>
</template>
<template slot="otherPay">
<view v-if="showPayTips" class="pay-tips">其他收款:当客户已向嘀加付款但无法使用流水补录时,新建工单应选择收款方为「嘀加收款」且支付方为「其他收款」。</view>
</template>
</GlCell>
</view>
<view @click="submit" class="btn">直接下单</view>
</scroll-view>
</view>
<!-- 弹窗 -->
<order-popup ref="orderPopup" :data="orderObj" :dataKey="valueKey" @onConfirm="onConfirm" :externalData="externalData" :popupType="popupType" />
</view>
</template>
<script>
import utils from '@/utils/utils'
import OrderPopup from '@/components/OrderPopup/index.vue'
import GlCell from '../../../../components/Form/GlCell.vue'
import Product from './Product.vue'
import Package from './Package.vue'
import SkuGoods from './SkuGoods.vue'
import { FORM_LIST, popupTypeEnum, payTypeList } from '../contant'
import { interceptionMixin } from '@/mixin/index'
export default {
name: 'CreateOrder',
mixins: [interceptionMixin],
components: {
GlCell,
OrderPopup,
Product,
Package,
SkuGoods
},
props: {
transmissionOfData: {
type: Object,
default: () => null
}
},
watch: {
transmissionOfData: {
handler(newVal) {
if (newVal) {
// 处理交易数据
const handleTransactionData = newVal => {
this.orderCreateType = newVal.type
if (this.orderCreateType === 'supplementOrder') {
// 补录订单处理
const { outTradeNo, tradeNo } = newVal.selectedItems.reduce(
(acc, item) => ({
outTradeNo: [...(acc.outTradeNo || []), item.outTradeNo],
tradeNo: [...(acc.tradeNo || []), item.tradeNo]
}),
{}
)
Object.assign(this.orderObj, {
outTradeNo: outTradeNo.join(','),
tradeNo: tradeNo.join(',')
})
return
}
// 编辑和修改订单进入这里
// 新增订单处理
const {
paramsData: { customer, customerCoupon, ...rest }
} = newVal
// 基础字段映射
const baseFields = ['id', 'orderCode', 'userId', 'employeeName', 'deliveryEmployeeName', 'deliveryUserId', 'subShopMerchantName', 'subShopMerchantId', 'sellerName', 'sellerUserId', 'sellerMerchantName', 'sellerMerchantId', 'merchantId', 'merchantName', 'customerCouponId', 'selectPayType']
Object.assign(this.orderObj, Object.fromEntries(baseFields.map(field => [field, rest[field]])))
// 设置支付类型
this.orderObj.payeeType = rest.selectPayType == '2' ? '1' : '0'
// 客户信息映射
const customerFields = ['customerName', 'customerSex', 'customerPhone', 'salesType', 'standNo', 'plateNumber', 'experienceFlag']
Object.assign(this.orderObj, Object.fromEntries(customerFields.map(field => [field, customer[field]])))
// 优惠券信息
const { couponName, customerCouponCode } = customerCoupon
Object.assign(this.orderObj, {
couponName,
customerCouponCode,
couponInfo: couponName + customerCouponCode
})
// 车辆信息
this.orderObj.customer = {
carBrand: customer.carBrand,
carBrandId: customer.carBrandId,
carChildsBrandId: customer.carChildsBrandId,
carChildsBrandName: customer.carChildsBrandName,
carSeriesId: customer.carSeriesId,
carSeriesName: customer.carSeriesName,
customerPhone: customer.customerPhone,
standNo: customer.standNo,
plateNumber: customer.plateNumber,
customerSex: customer.customerSex,
experienceFlag: customer.experienceFlag,
salesType: customer.salesType,
customerName: customer.customerName
}
this.orderObj.carBrand = `${customer.carBrand}-${customer.carChildsBrandName}-${customer.carSeriesName}`
// 更新表单状态
const updateFormCell = (formIndex, fieldName, value) => {
const cell = this.formList[formIndex].find(item => item.value === fieldName)
if (cell) cell.current = value
}
const formUpdates = [
[1, 'salesType', customer.salesType],
[1, 'customerSex', customer.customerSex],
[1, 'experienceFlag', customer.experienceFlag],
[2, 'selectPayType', this.orderObj.selectPayType],
[2, 'payeeType', this.orderObj.payeeType]
]
formUpdates.forEach(([index, field, value]) => updateFormCell(index, field, value))
// 商品回显,在获取商品列表之后
this.subOrderList = rest.subOrderList
}
console.log(this.orderObj, 'orderObj')
handleTransactionData(newVal)
} else {
this.userInfo = uni.$storage.get('userInfo') || {}
this.baseConfigData = uni.$storage.get('mock_data') || {}
this.orderCreateType = 'createWithPay'
this.orderObj = {
customer: {},
customerSex: '1',
experienceFlag: 'Y',
payeeType: 1,
salesType: '0',
frontGear: null, // 1 ,回显upgradeGoodsPosition == 1
frontWindow: null, // 2
rearWindow: null, // 3
rearGear: null, // 4
sunRoof: null, // 5, 6,7
package: null,
skuGoods: null // upgradeGoodsPosition 为空,则是其他精品单商品
}
this.initData()
}
},
immediate: true
}
},
data() {
return {
orderCreateType: 'createWithPay', // supplementOrder(补录订单) createWithPay(新增)
formList: utils.deepClone(FORM_LIST),
userInfo: {},
baseConfigData: {},
requiredList: [], // 录单设置的必填项
orderObj: {
customer: {},
customerSex: '1',
experienceFlag: 'Y',
payeeType: 1,
salesType: '0',
frontGear: null, // 1 ,回显upgradeGoodsPosition == 1
frontWindow: null, // 2
rearWindow: null, // 3
rearGear: null, // 4
sunRoof: null, // 5, 6,7
package: null,
skuGoods: null // upgradeGoodsPosition 为空,则是其他精品单商品
}, // 弹窗传入的数据},
popupType: 0,
popupTypeEnum,
externalData: [], //弹窗接口数据
subShopMerchantList: [], // 二级流量方列表
employeeList: [],
djPayList: [], // 嘀加收款方对应支付方式
merchantPayList: [], // 门店收款方对应支付方式
configPayTypeList: [], // 园区店配置支持的支付方式
payTypeList,
goodsList: [],
subOrderList: [],
otherProduct: [],
positionTypeList: [],
valueKey: '',
totalPrice: 0,
// 产品槽位配置,用于循环渲染产品组件
productSlots: {
frontGear: true,
frontWindow: true,
rearGear: true,
rearWindow: true,
sunRoof: true
}
}
},
computed: {
showPayTips() {
if (this.orderObj.payeeType == 0 && this.orderObj.selectPayType == 7) return true
else return false
}
},
mounted() {
console.log('mounted', this.orderCreateType)
this.userInfo = uni.$storage.get('userInfo') || {}
this.baseConfigData = uni.$storage.get('mock_data') || {}
this.initData()
},
methods: {
initData() {
console.log('initData', this.orderCreateType, this.orderObj.id)
// 埋点
if (this.orderCreateType == 'createWithPay' && !this.orderObj.id) {
uni.$track.add({ eventCode: 'app_create_order' })
} else if (this.orderCreateType == 'supplementOrder') {
uni.$track.add({ eventCode: 'app_supplement_order' })
}
const { userInfo } = this
if (!this.orderObj.id) {
// 在原有的 orderObj 对象上新增这些属性
Object.assign(this.orderObj, {
sellerMerchantName: userInfo.merchantName,
sellerName: userInfo.name,
sellerMerchantId: userInfo.merchantId,
sellerUserId: userInfo.uuid,
merchantId: userInfo.shopMerchantId,
merchantName: userInfo.shopMerchantName
})
}
this.getShopMerchantPointConfig(this.orderObj.merchantId)
this.getSubShopMerchantList(this.orderObj.merchantId)
this.getSetting()
// 补录订单默认为嘀加收款,不需要获取园区店支付方式
if (this.orderCreateType == 'supplementOrder') {
this.orderObj.payeeType = 0
const cell = this.formList[2].find(item => item.value == 'payeeType')
if (cell) {
cell.current = 0
cell.radioList[1].disabled = true // 禁用4s店收款
}
this.djPayList = [
{
value: '5',
name: '嘀加收款'
}
]
this.changePayee()
} else {
// 防止从补录进来4s店收款为禁用
const cell = this.formList[2].find(item => item.value == 'payeeType')
if (cell) {
cell.current = 1
cell.radioList[1].disabled = false
}
this.getConfig()
}
// this.getEmployeeList()
this.getSelectOrderGoodsList()
this.getPositionList()
if (this.orderCreateType == 'createWithPay' && !this.orderObj.id) this.getLastUserOrderInfo() // 补录订单和有id的情况,不需要设置默认值
},
// 选择行事件
handleCell(val) {
console.log(val, this.orderObj)
// 获取当前选中的popupType
this.popupType = Object.keys(this.popupTypeEnum).find(key => this.popupTypeEnum[key].key === val.value) * 1
// 获取对应的list字段
const popupConfig = this.popupTypeEnum[this.popupType]
if (popupConfig && popupConfig.list) {
this.externalData = this[popupConfig.list] || []
} else {
this.externalData = []
}
// 定义产品相关字段数组
const productFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
if (productFields.includes(val.value)) {
this.valueKey = val.value
this.externalData = utils.deepClone(this.goodsList)
}
console.log(this.popupType, this.externalData, '-------------')
this.$refs.orderPopup.open()
},
// 单选框change事件
radioChange(e, val) {
console.log(e, val)
this.$set(this.orderObj, val.value, e.detail.value)
if (val.value == 'payeeType') {
this.changePayee()
}
},
// 弹窗确认回调
onConfirm(val, flag) {
console.log(val,flag, 'onConfirm')
this.externalData = []
// const { chooseContent } = val
const chooseContent = utils.deepClone(val.chooseContent)
// 根据popupTypeEnum优化处理
const _typeValue = this.popupTypeEnum[this.popupType]
console.log(_typeValue)
// 定义产品相关字段数组
const productFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
if (_typeValue.key == 'carBrand') {
// 车型
this.$set(this.orderObj, _typeValue.key, `${chooseContent.carBrand}-${chooseContent.carChildsBrandName}-${chooseContent.carSeriesName}`)
this.orderObj.customer = {
...(this.orderObj.customer || {}),
...chooseContent
}
} else if (_typeValue.key == 'couponInfo') {
// 礼券
const { couponName, merchantCouponId, customerCouponCode } = chooseContent
Object.assign(this.orderObj, {
couponName: couponName,
merchantCouponId: merchantCouponId,
customerCouponCode: customerCouponCode
})
this.$set(this.orderObj, 'couponInfo', couponName + customerCouponCode)
} else if (productFields.includes(_typeValue.key)) {
if (_typeValue.key == 'skuGoods') {
if (!this.orderObj[_typeValue.key]) {
// 其他精品第一次赋值
this.$set(this.orderObj, _typeValue.key, chooseContent)
} else {
// 过滤出已选的goodFlag为2的对象
const selectedGoods = this.orderObj[_typeValue.key].filter(item => item.goodsFlag === 2)
const singleGoods = flag ?
this.orderObj[_typeValue.key].filter(item => item.goodsFlag === 1) :
chooseContent.filter(item => item.goodsFlag === 1)
const moreGoods = chooseContent
.filter(item => item.goodsFlag === 2)
.filter(item => {
return !selectedGoods.some(selectedItem => selectedItem.multipleSpecificationsGoods.goods.goodsId === item.multipleSpecificationsGoods.goods.goodsId)
})
// 合并已选的goodFlag为2的对象
this.orderObj[_typeValue.key] = [...singleGoods, ...moreGoods, ...selectedGoods]
}
} else {
this.$set(this.orderObj, _typeValue.key, chooseContent)
console.log(this.orderObj, 'this.orderObj')
}
// 商品类,需计算总价
setTimeout(() => {
this.changeTotalPrice()
}, 0)
} else if (_typeValue.key) {
this.orderObj[_typeValue.targetIdKey] = chooseContent[_typeValue.sourceIdKey]
this.$set(this.orderObj, _typeValue.targetNameKey, chooseContent[_typeValue.sourceNameKey])
}
},
// 输入框失去焦点事件
inputBlur(e, val) {
console.log(e, val)
this.orderObj.customer[val.value] = this.orderObj[val.value]
},
// 校验必填等规则
checkRequired() {
const phoneRex = /^[1]([3-9])[0-9]{9}$/
// 把formList中所有required为true的对象放到一个数组中
const requiredArr = []
const onlyLabelItem = []
this.formList.forEach(group => {
group.forEach(item => {
if (item.required === true && item.hidden !== true) {
if (item.onlyLabel === true) {
onlyLabelItem.push(item)
} else {
requiredArr.push(item)
}
}
})
})
// 遍历requiredArr,检查orderObj中是否有对应的值
for (let i = 0; i < requiredArr.length; i++) {
const item = requiredArr[i]
// 兼容嵌套customer对象的情况
let value
if (item.value === 'customerName' || item.value === 'customerPhone' || item.value === 'standNo' || item.value === 'plateNumber') {
value = this.orderObj.customer ? this.orderObj.customer[item.value] : undefined
} else {
value = this.orderObj[item.value]
}
// 0、false、'0'等视为有效,null/undefined/空字符串视为无效
if (value === undefined || value === null || value === '') {
uni.showToast({
title: `${item.label}不能为空`,
icon: 'none'
})
return false
}
// 如果是customerPhone,添加phoneRex校验
if (item.value === 'customerPhone' && !phoneRex.test(value)) {
uni.showToast({
title: `请输入正确的${item.label}`,
icon: 'none'
})
return false
}
}
if (this.orderObj.standNo) {
const vinRex = /^(?=.*[A-Za-z])[A-Za-z0-9]{17}$/
console.log(this.orderObj.standNo, vinRex.test(this.orderObj.standNo))
if (!vinRex.test(this.orderObj.standNo)) {
uni.showToast({
title: `请输入正确的VIN码`,
icon: 'none'
})
return false
}
}
// 处理onlyLabel为true的特殊校验
if (onlyLabelItem.length > 0) {
// 检查frontGear、frontWindow、rearGear、rearWindow、sunRoof和couponInfo字段中是否至少有一个不为空
const labelFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
const hasValue = labelFields.some(field => {
console.log(field, this.orderObj[field])
const value = this.orderObj[field]
return value !== undefined && value !== null && (Array.isArray(value) ? value.length > 0 : value !== '')
})
console.log(hasValue, hasValue)
if (!hasValue) {
uni.showToast({
title: '商品不能为空',
icon: 'none'
})
return false
}
}
return true
},
// 提交
async submit() {
console.log(this.orderObj)
if (!this.checkRequired()) return
if (!(await this.checkDailyReport())) {
const { orderCreateType } = this
const obj = utils.deepClone(this.orderObj)
const otherCustomer = ['standNo', 'plateNumber', 'customerSex', 'experienceFlag', 'salesType']
obj.customer = {
...obj.customer,
...otherCustomer.reduce((acc, key) => {
if (obj[key] !== undefined) {
acc[key] = obj[key]
delete obj[key]
}
return acc
}, {})
}
// 将 frontGear、frontWindow、rearGear、rearWindow、sunRoof 字段合并到 goodsList 中
const labelFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
let goodsList = []
let subGoodsList = []
labelFields.forEach(field => {
if (Array.isArray(obj[field]) && obj[field].length > 0) {
goodsList = goodsList.concat(obj[field])
}
delete obj[field]
})
if (goodsList.length > 0) {
goodsList.map(e => {
if (e.goodsFlag == 1) {
// 单商品
subGoodsList.push({
totalPrice: e.goods.sellPrice,
number: e.goods.number,
merchantGoodsId: e.goods.merchantGoodsId
})
}
// 套餐
if (e.goodsFlag == 3) {
e.packageGoods.goodsList.forEach(g => {
subGoodsList.push({
packageCode: e.packageGoods.packageCode,
packageName: e.packageGoods.packageName,
totalPrice: g.sellPrice,
number: e.packageGoods.number,
merchantGoodsId: g.merchantGoodsId,
upgradePrice: g.oldPrice
})
})
}
// 多规格
if (e.goodsFlag == 2) {
subGoodsList.push({
baseGoodsId: e.multipleSpecificationsGoods.goods.baseGoodsId,
totalPrice: Number(e.multipleSpecificationsGoods.goods.sellPrice),
number: e.multipleSpecificationsGoods.number,
merchantGoodsId: e.multipleSpecificationsGoods.goods.id || e.multipleSpecificationsGoods.goods.merchantGoodsId
})
}
})
obj.subOrderList = subGoodsList
}
delete obj.carBrand
delete obj.couponInfo
console.log(obj, 'rucan')
uni.showLoading({
title: '提交中...',
mask: true
})
const res = await uni.$api.boutiqueApi[orderCreateType](obj).finally(() => {
uni.hideLoading()
})
if (res) {
uni.showToast({
title: '保存成功',
icon: 'success'
})
if (this.orderCreateType == 'createWithPay' && !this.orderObj.id) {
uni.$track.add({ eventCode: 'app_submit_create_order' })
} else if (this.orderCreateType == 'supplementOrder') {
uni.$track.add({ eventCode: 'app_submit_supplement_order' })
}
this.$emit('jump', orderCreateType == 'supplementOrder' ? 'OrderDetail' : 'ConfirmOrder', res)
}
}
},
// 计算所有产品的总价
changeTotalPrice() {
let total = 0
// 遍历所有商品
const productFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
productFields.forEach(slotName => {
const productList = this.orderObj[slotName]
if (Array.isArray(productList) && productList.length > 0) {
// 计算每个产品的价格 * 数量,并累加到总价
productList.forEach(item => {
if (item.goods && item.goods.sellPrice && item.goods.number) {
console.log(item.goods, '---单商品')
total += parseFloat(item.goods.sellPrice) * parseInt(item.goods.number)
} else if (item.packageGoods && item.packageGoods.upgradePrice && item.packageGoods.number) {
console.log(item.packageGoods, '套餐')
// if (item.packageGoods.price) {
// total += parseFloat(item.packageGoods.price) * parseInt(item.packageGoods.number)
// } else {
// total += parseFloat(item.packageGoods.upgradePrice) * parseInt(item.packageGoods.number)
// }
item.packageGoods.goodsList.forEach(i => {
total += parseFloat(i.sellPrice) * parseInt(item.packageGoods.number)
})
} else if (item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods && item.multipleSpecificationsGoods.goods.sellPrice) {
console.log(item.multipleSpecificationsGoods, '多规格')
total += parseFloat(item.multipleSpecificationsGoods.goods.sellPrice) * parseInt(item.multipleSpecificationsGoods.number || 1)
}
})
}
})
console.log(total, 'total')
// 更新总价
this.totalPrice = total.toFixed(2)
},
// 获取上一个订单的销售顾问信息 并且不是再次下单
async getLastUserOrderInfo() {
const res = await uni.$api.boutiqueApi.getLastUserOrderInfo({
sellerUserId: this.userInfo.subLoginUser.uuid
})
console.log(this.orderObj.merchantId)
if (this.orderObj.merchantId == res.merchantId) {
this.$set(this.orderObj, 'employeeName', res.employeeName)
this.orderObj.userId = res.userId
console.log(res, '上一个订单的销售顾问信息')
} else {
this.getEmployeeList()
}
},
async getShopMerchantPointConfig(merchantId) {
const res = await uni.$api.boutiqueApi.getShopMerchantPointConfig({ merchantId })
if (res.pointsMultiRole == 'Y') {
const employeeCell = this.formList[0].find(item => item.label === '销售顾问')
if (employeeCell) employeeCell.label = '销售顾问/录单员'
// 找到formList中label为"交付专员"的对象,添加hidden: true
const deliveryCell = this.formList[0].find(item => item.label === '交付专员')
if (deliveryCell) {
deliveryCell.hidden = false
}
}
},
// 判断二级流量方
async getSubShopMerchantList(merchantId) {
const res = await uni.$api.boutiqueApi.getSubShopMerchantList({ merchantId })
if (res && res.length) {
this.subShopMerchantList = res
const cell = this.formList[0].find(item => item.label === '二级流量方')
if (cell) {
cell.hidden = false
}
}
},
// 动态获取 车型 车架 车牌 是否必填
getYQorderInfo() {
return new Promise(async (resolve, reject) => {
const YQorderSetting = uni.$storage.get('boutique_YQorderSetting')
if (YQorderSetting) return resolve(YQorderSetting)
else {
const { userInfo } = this
let { merchantId, merchantName } = userInfo.subLoginUser
const res = await uni.$api.boutiqueApi.getMerchantRecordingSettings({ merchantId, merchantName })
console.log(res)
if (res) {
uni.$storage.set('boutique_YQorderSetting', res)
resolve(res)
}
}
})
},
// 获取车型、车架号、车牌号必填规则
async getSetting() {
const res = await this.getYQorderInfo()
const dictionaryObj = {
carTypeRequiredFlag: 'carBrand',
standNoRequiredFlag: 'standNo',
plateNumRequiredFlag: 'plateNumber'
}
for (const key in dictionaryObj) {
const cell = this.formList[1].find(item => item.value === dictionaryObj[key])
if (cell) cell.required = res[key] == 'Y'
}
},
// 获取园区店支付方式
async getConfig() {
const res = await uni.$api.boutiqueApi.getYqStoreConfig({
yqMerchantId: this.orderObj.sellerMerchantId
})
let m = res.supportPayTypes || []
let n = this.payTypeList
let list = n.filter(k => {
let idx = m.find(j => j == k.value)
return idx >= 0
})
// this.configPayTypeList = list
this.djPayList = [
...list?.filter(v => ![2, 5].includes(Number(v.value))),
{
name: '对公转账',
value: '6'
},
{
name: '其它收款',
value: '7'
}
]
this.merchantPayList = [...list?.filter(v => v.value == 2)]
this.changePayee()
console.log(this.djPayList, this.merchantPayList, 'list')
},
changePayee() {
const cell = this.formList[2].find(item => item.value === 'selectPayType')
if (cell) {
cell.radioList = this.orderObj.payeeType == 1 ? this.merchantPayList : this.djPayList
if (!this.orderObj.id && cell.radioList && cell.radioList.length > 0) {
cell.current = cell.radioList[0].value
// 使用 $set 确保响应式更新
this.$set(this.orderObj, 'selectPayType', cell.radioList[0].value)
}
}
},
// 获取 销售顾问列表
async getEmployeeList() {
const { userInfo, orderObj } = this
const { shopMerchantId, sceneType, merchantId } = userInfo,
data = await uni.$api.popupApi.getEmployeeList({
merchantId: orderObj.idKey == 'sellerUserId' ? merchantId : shopMerchantId,
sceneList: orderObj.idKey == 'sellerUserId' ? '' : [sceneType]
})
if (data && data.length) {
this.employeeList = data
this.$set(this.orderObj, 'employeeName', data[0].staffName)
this.orderObj.userId = data[0].uuid
}
},
async getPositionList() {
const res = await uni.$api.boutiqueApi.getPositionList({})
this.positionTypeList = res
},
// 商品列表
async getSelectOrderGoodsList() {
const { userInfo } = this
const res = await uni.$api.boutiqueApi.getSelectOrderGoodsList({
merchantId: userInfo.shopMerchantId,
sceneType: userInfo.sceneType
})
this.goodsList = res
// 分类映射
const posMap = {
frontGear: [1],
frontWindow: [2],
rearGear: [3],
rearWindow: [4],
sunRoof: [5, 6, 7]
}
// 初始化各类商品数组
const arrMap = {
frontGear: [],
frontWindow: [],
rearGear: [],
rearWindow: [],
sunRoof: []
}
res.forEach(val => {
if (val.goodsFlag == 1) {
let subVal = val.goods
subVal.positionStr = subVal.position
subVal.upgradePrice = subVal.sellPrice
subVal.price = subVal.sellPrice
subVal.goodsId = subVal.merchantGoodsId
Object.keys(posMap).forEach(key => {
if (posMap[key].includes(subVal.merchantGoodsPosition)) {
arrMap[key].push(val)
}
})
}
//商品多规格
if (val.goodsFlag == 2) {
val.multipleSpecificationsGoods.specificationList.forEach(item => {
item.specificationSelectValueList = []
item.specificationValueList.forEach(second => {
if (second.show) {
item.specificationSelectValueList.push(second.specificationValue)
}
})
})
this.otherProduct.push(val)
}
})
console.log(arrMap, 'arrMap')
// 批量设置 hidden 属性
Object.keys(arrMap).forEach(key => {
const cell = this.formList[2].find(item => item.value === key)
if (cell) cell.hidden = arrMap[key].length === 0
})
const subOrderList = this.subOrderList || []
console.log('subOrderList', subOrderList)
let chooseList = []
subOrderList.map(e => {
// 普通商品
if (e && !e.packageName) {
if (e.specificationData.indexOf(';~;') == -1) {
// 修复取值字段名字错误问题
if (!e.price) {
e.price = utils.decimal(Number(e.totalPrice / e.number), 2)
//最低价
}
e.sellPrice = e.price
e.goodsId = e.merchantGoodsId
if (!e.minSellPrice) e.minSellPrice = e.upgradeShopMinPrice
e.goodsInfo = {
goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName
}
e.merchantGoodsId = e.merchantGoodsId || e.id
chooseList.push({
goodsFlag: 1,
goods: e,
number: e.number,
active: true
})
}
// 多规格商品
if (e.specificationData.indexOf(';~;') > -1) {
// 修复取值字段名字错误问题
if (!e.price) {
e.price = utils.decimal(Number(e.totalPrice / e.number), 2)
//最低价
e.sellPrice = e.price
}
e.goodsId = e.merchantGoodsId
if (!e.minSellPrice) e.minSellPrice = e.upgradeShopMinPrice
e.goodsInfo = {
goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName
}
e.count = e.number
e.merchantGoodsId = e.merchantGoodsId || e.id
let specificdata = this.handleSpecificationsEcho(e)
console.log(specificdata, 'specificdata')
chooseList = chooseList.concat(specificdata)
}
}
// 套餐
if (e && e.packageName) {
e.packageGoodsOrderList.forEach(g => {
g.oldPrice = g.sellPrice || g.upgradePrice
// g.sellPrice = g.sellPrice || g.upgradePrice;
g.price = g.totalPrice ? Number(g.totalPrice) / Number(g.number) : g.sellPrice
g.sellPrice = g.price
})
e.goodsList = e.packageGoodsOrderList
e.upgradePrice = e.goodsList.reduce((prev, cur) => {
console.log(prev, cur)
return prev + cur.sellPrice
}, 0)
e.number = e.goodsList.length ? e.goodsList[0].number : 1
e.price = e.goodsList.reduce((prev, cur) => {
return prev + Number(cur.totalPrice) / Number(cur.number)
}, 0)
chooseList.push({
isType: 'meal',
active: true,
goodsFlag: 3,
packageGoods: e,
number: e.number,
totalPrice: e.price
})
}
})
console.log(chooseList, 'chooseList')
const _singleGoods = chooseList.filter(item => item.goodsFlag == 1)
const _packageGoods = chooseList.filter(item => item.goodsFlag == 3)
const _skuGoods = chooseList.filter(item => item.goodsFlag == 2) || []
console.log(_singleGoods, 'singleGoods')
if (_singleGoods) {
// 回显upgradeGoodsPosition 1:前挡 2:前窗 3:后窗 4:后挡 5、6、7:天窗。 为空则是其他精品
this.$set(
this.orderObj,
'frontGear',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 1)
)
this.$set(
this.orderObj,
'frontWindow',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 2)
)
this.$set(
this.orderObj,
'rearWindow',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 3)
)
this.$set(
this.orderObj,
'rearGear',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 4)
)
this.$set(
this.orderObj,
'sunRoof',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 5 || item.goods.upgradeGoodsPosition == 6 || item.goods.upgradeGoodsPosition == 7)
)
// 将没有upgradeGoodsPosition的商品添加到_skuGoods中
const noPositionGoods = _singleGoods.filter(item => !item.goods.upgradeGoodsPosition)
if (noPositionGoods.length > 0) {
_skuGoods.push(...noPositionGoods)
}
}
if (_packageGoods) {
this.$set(this.orderObj, 'package', _packageGoods)
}
console.log(_skuGoods, '_skuGoods')
if (_skuGoods && _skuGoods.length) {
this.$set(this.orderObj, 'skuGoods', _skuGoods)
}
console.log(this.orderObj, 'this.orderObj')
this.changeTotalPrice()
},
handleSpecificationsEcho(item) {
let skuArr = []
const { otherProduct } = this,
arr = item.specificationData.split('/'),
str = arr.join(';~;'),
obj = {
count: item.count,
goodsFlag: 2,
goods: null,
active: true,
isFlag: true //初始化进来不显示标识
}
otherProduct.forEach(data => {
if (data.goodsFlag == 2) {
let tempData = data.multipleSpecificationsGoods.specificationGoodsMap[str]
if (tempData) {
tempData.forEach(temp => {
if (temp.merchantGoodsId == item.goodsId) {
obj.multipleSpecificationsGoods = {
...data.multipleSpecificationsGoods,
baseGoodsName: item.goodsName || item.upgradeGoodsName,
goods: {
...temp,
price: item.price,
sellPrice: item.price,
goodsId: item.goodsId,
specificationStr: item.specificationData.replace(/;~;/g, '/')
}
}
skuArr.push(obj)
}
})
}
}
})
console.log(skuArr)
return skuArr
}
}
}
</script>
<style scoped lang="scss">
.order {
height: 100%;
}
.box {
height: calc(100% - #{toRpx(120)});
padding-bottom: toRpx(24);
.scroll-view {
height: 100%;
}
}
.box-content {
padding: 0 toRpx(48);
}
.total {
display: flex;
justify-content: space-between;
align-items: center;
padding: toRpx(24) toRpx(32) toRpx(24) 0;
font-size: toRpx(28);
border-bottom: toRpx(2) solid #f7f7f6;
&-left {
color: #333;
font-weight: 500;
}
&-right {
color: #f45001;
font-weight: 500;
}
}
.pay-tips {
padding: toRpx(24) toRpx(24) toRpx(24) 0;
font-size: toRpx(24);
color: #999;
}
.btn {
display: flex;
align-items: center;
justify-content: center;
margin: toRpx(88) auto 0;
width: toRpx(1130);
height: toRpx(80);
color: #fff;
border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
</style>
<template>
<!-- -->
<view class="daily-report">
<view class="common-title flex">
填写日报
<view class="common-title-btns flex">
<select-component
:selectList="pickerTemplateList"
@chooseType="handleTemplagePickerChange"
styleV2
:disabled="filterDisabled(isEditReport) || isHmStore"
/>
</view>
</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="[{'hide-box':!orderObj.isDateWithin7Days && !orderObj.onBreak}]">
<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'">
<view class="picker flex">
<template v-for="(item,ind) in i.range">
<view
class="picker-item flex"
:key="`${index}_${ind}`"
@click="changePicker(item.id, i)"
>
<view class="icon">
<template v-if="item.id == orderObj[i.submitValue]">
<uni-icons
type="checkbox-filled"
:size="18"
color="#3B73FF"
></uni-icons>
</template>
<template v-else>
<uni-icons
type="circle"
:size="18"
color="#8C8C8C"
></uni-icons>
</template>
</view>
{{item.name}}
</view>
</template>
</view>
</template>
<template v-else>
{{orderObj[i.value]}}
</template>
</view>
</view>
</template>
</view>
<view class="car-band-box">
<type-tab-component
styleV2
:typeList="carBandList"
:tabIndex.sync="tabIndex"
nameKey="firstBrandName"
></type-tab-component>
<view
class="car-band-form-box"
:style="[{height: `${filterTemplateList(carBandList[tabIndex]).length * 96}rpx`}]"
>
<template v-for="(item,index) in carBandList">
<view
:class="['box',{show:index == tabIndex}]"
:key="index"
>
<template v-for="(i,ind) in filterTemplateList(item)">
<view
:class="['form-item flex',{name:i.name}]"
:key="`${index}_${ind}`"
:id="i.refId ? `${i.refId}_${index}` : ''"
>
<view class="label flex">
{{i.label}}
<template v-if="i.required && orderObj.pickerValue == 0">
<view class="required">*</view>
</template>
</view>
<view class="value flex">
<template v-if="filterDisabled(isEditReport) || i.disabled">
<template v-if="item[i.key] != null">
{{item[i.key] }}
</template>
<template v-else>
<view class="placeholder">{{i.inputPlaceholder || '请输入'}}</view>
</template>
</template>
<template v-else>
<input
class="input"
:type="i.type || 'text'"
:value="item[i.key]"
:placeholder="i.inputPlaceholder || '请输入'"
placeholder-class="placeholder"
@blur="handleCarInputBlur($event, i , item , index)"
:maxlength="3"
:key="dateKey[`${i.key}_${index}`]"
auto-blur
>
</template>
</view>
</view>
</template>
</view>
</template>
</view>
</view>
<view class="box">
<view class="sub-title">个人日报</view>
<template v-for="(i,index) in personalObject">
<view
class="form-item flex"
:key="index"
>
<view class="label flex">
{{i.label}}
</view>
<view class="value flex">
<input
class="input"
:type="i.type || 'text'"
:value="orderObj[i.key]"
:placeholder="i.inputPlaceholder || '请输入'"
placeholder-class="placeholder"
@blur="handleCarInputBlur($event, i , orderObj , index)"
:maxlength="i.maxlength || 3"
:key="dateKey[`${i.key}_${index}`]"
auto-blur
>
</view>
</view>
</template>
<view class="form-item flex">
<view class="label flex">
未触客返店人数
</view>
<view class="value">
<input
class="input"
type="number"
:value="carBandList[tabIndex].notDeliveryReturnCount"
placeholder="请输入"
placeholder-class="placeholder"
@blur="handleCarInputBlur($event, {
key:'notDeliveryReturnCount',
max:100
} , carBandList[tabIndex] , 2)"
:maxlength="3"
auto-blur
>
</view>
</view>
<view class="form-item flex">
<view class="label flex">
备注
</view>
<view class="value">
<textarea
class="textarea"
v-model="orderObj.remark"
placeholder="请输入 (500字以内)"
placeholder-class="placeholder"
confirm-type="done"
auto-height
:maxlength="500"
:disabled="filterDisabled(isEditReport)"
></textarea>
</view>
</view>
</view>
<view class="box info">
<template v-for="(item,index) in infoObj">
<view
class="info-item"
:key="index"
>
<view class="info-label">{{item.label}}</view>
<view class="info-value">{{item.format()}}</view>
</view>
</template>
</view>
<view class="block"></view>
</view>
<template v-if="!orderObj.isDateWithin7Days && !orderObj.onBreak">
<view class="nothing flex">
<image
src="../../../../assets/images/common/report-no-data.webp"
class="icon"
/>
已超过 7 个自然日,暂不支持补填操作
</view>
</template>
</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 TypeTabComponent from '@/components/TypeTabComponent.vue'
import NoticePopup from '@/components/NoticePopup.vue'
import SelectComponent from '@/components/SelectComponent.vue'
export default {
components: {
TypeTabComponent,
NoticePopup,
SelectComponent
},
props: {
currentDate: String,
currentMonth: String
},
name: 'DailyReport',
data () {
return {
pickerTemplateList: Object.freeze([
{ label: '单延保', value: 1 },
{ label: '权益延保', value: 2 },
{ label: '广联权益', value: 2 },
]),
isHmStore: false,
tabIndex: 0,
to: '',
dateKey: {},
loadComplete: false,
reportObject: Object.freeze([
{
label: '当日调休',
value: 'pickerValue',
type: 'picker',
required: true,
rangeKey: 'name',
range: [
{ id: 'N', name: '在岗' },
{ id: 'Y', name: '调休' }
],
submitValue: 'onBreak'
},
{
label: '今日驻店人数(按店)',
value: 'staffCount',
type: 'input',
required: true,
inputType: 'number',
refId: 'staffCount'
},
]),
orderObj: {},
carBandList: [],
hwOhterObjArray: Object.freeze([
{
label: '店端实际交车数',
key: 'deliveryCount',
type: 'number',
required: true,
min: 0,
max: 100,
refId: 'deliveryCount',
},
{
label: '店端总未触客数',
key: 'notDeliveryCount',
type: 'number',
required: true,
min: 0,
max: 100,
refId: 'notDeliveryCount',
},
{
label: '实际售前触客数',
key: 'equityToShopCount',
type: 'number',
required: true,
min: 0,
max: 100,
inputPlaceholder: '',
refId: 'equityToShopCount',
},
{
label: '实际售后触客数',
key: 'afterSaleEquityToShopCount',
type: 'number',
required: false,
min: 0,
max: 100,
}
]),
personalObject: Object.freeze([
{
label: '延保退单数',
key: 'cancelOrderCount',
type: 'number',
required: true,
min: 0,
max: 100,
refId: 'cancelOrderCount',
},
{
label: '延保退单金额',
key: 'cancelOrderMoney',
type: 'number',
required: true,
maxlength: 7,
min: 0,
max: 9999999,
refId: 'cancelOrderMoney',
},
]),
weeklyList: [],
isEditReport: false,
buttons: Object.freeze([
{
text: '返回首页',
type: 'primary'
}
]),
// infoObj: Object.freeze([
// {
// label: '今日成交数',
// format: () => {
// return this.carBandList[this.tabIndex].totalOrderCount
// }
// },
// {
// label: '个人成交总金额',
// format: _ => {
// return this.orderObj.totalOrderMoney
// }
// }
// ])
}
},
computed: {
userInfo () {
return uni.$storage.get("userInfo")
},
mouthNumber () {
return dayjs(this.currentMonth).daysInMonth()
},
infoObj(){
return []
}
},
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 ? data.onBreak : diffDay < 7 ? data.onBreak || 'N' : '',
pickerValue: data.onBreak == 'Y' ? 1 : 0,
staffCountError: false,
}
this.tabIndex = 0
this.loadComplete = true
this.dateKey.staffCount = Date.now()
},
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, max } = 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), max).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: `${item.firstBrandName}${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 (value, i) {
const disabled = this.filterDisabled(this.isEditReport)
if (disabled) return
this.orderObj[i.value] = {
'Y': 1,
'N': 0
}[value]
this.orderObj[i.submitValue] = value
},
tabBarClick (e) {
if (this.tabIndex == e) return
this.tabIndex = e
},
filterTemplateList () {
let { hwOhterObjArray, orderObj: { templateType } } = this
if (templateType == 3) {
return hwOhterObjArray.filter(function (item) {
return item.templateValue != 3
})
} else {
return hwOhterObjArray
}
},
handleTemplagePickerChange (e) {
console.log(e)
}
}
}
</script>
<style scoped lang='scss'>
.daily-report {
height: 100%;
.hide-box {
opacity: 0;
}
.common-title-btns {
margin: 0 toRpx(48) 0 auto;
gap: toRpx(16);
}
.repoet-view {
height: calc(100% - #{toRpx(248)});
position: relative;
}
.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;
font-size: toRpx(28);
}
.picker {
gap: toRpx(48);
&-item {
line-height: toRpx(34);
.icon {
margin-right: toRpx(10);
height: toRpx(32);
}
}
}
.placeholder {
color: #999999;
font-size: toRpx(28);
line-height: toRpx(28);
}
.textarea {
width: calc(100% - #{toRpx(24)});
margin-left: toRpx(24);
text-align: right;
margin-bottom: toRpx(8);
}
}
}
.name {
line-height: toRpx(48);
height: toRpx(72);
color: #777777;
font-size: toRpx(24);
border-bottom: none;
}
}
.car-band-box {
margin: 0 toRpx(48) toRpx(16);
background: #ffffff59;
backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
overflow: hidden;
border-radius: toRpx(32);
.car-band-form-box {
position: relative;
.box {
position: absolute;
left: 0;
top: 0;
width: 100%;
visibility: hidden;
}
.show {
visibility: visible;
}
}
.box {
margin: 0;
border-radius: 0 0 toRpx(32);
}
}
.info {
display: flex;
padding: toRpx(16) toRpx(32);
&-item {
width: 25%;
color: #222222;
font-size: toRpx(28);
font-weight: 500;
}
&-label {
color: #777777;
font-size: toRpx(24);
line-height: toRpx(48);
padding: toRpx(8) 0;
}
}
.block {
width: 100%;
height: toRpx(16);
}
.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: #3b73ff1a;
color: #4673ff;
}
}
.nothing {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
// background: #f1f4ff;
backdrop-filter: blur(8px);
z-index: 2;
flex-direction: column;
justify-content: center;
color: #999999;
font-size: toRpx(24);
.icon {
width: toRpx(344);
height: toRpx(236);
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="defeat-order">
<view class="common-title">战败下单</view>
<view class="box">
<scroll-view class="scroll-view" scroll-y="true">
<view class="box-content">
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell">
<!-- 使用v-for循环渲染产品组件,减少重复代码 -->
<template slot="frontGear">
<Product v-if="orderObj.frontGear" @changeTotalPrice="changeTotalPrice" :list="orderObj.frontGear" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="frontWindow">
<Product v-if="orderObj.frontWindow" @changeTotalPrice="changeTotalPrice" :list="orderObj.frontWindow" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="rearWindow">
<Product v-if="orderObj.rearWindow" @changeTotalPrice="changeTotalPrice" :list="orderObj.rearWindow" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="rearGear">
<Product v-if="orderObj.rearGear" @changeTotalPrice="changeTotalPrice" :list="orderObj.rearGear" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="sunRoof">
<Product v-if="orderObj.sunRoof" @changeTotalPrice="changeTotalPrice" :list="orderObj.sunRoof" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="package">
<Package v-if="orderObj.package" @changeTotalPrice="changeTotalPrice" :list="orderObj.package" :positionTypeList="positionTypeList"></Package>
</template>
<template slot="skuGoods">
<SkuGoods v-if="orderObj.skuGoods" :list="orderObj.skuGoods" @changeTotalPrice="changeTotalPrice" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></SkuGoods>
<view class="total" v-if="totalPrice > 0">
<view class="total-left">总价</view>
<view class="total-right">¥{{ totalPrice }}</view>
</view>
</template>
<template slot="otherPay">
<view v-if="showPayTips" class="pay-tips">其他收款:当客户已向嘀加付款但无法使用流水补录时,新建工单应选择收款方为「嘀加收款」且支付方为「其他收款」。</view>
</template>
<template slot="reasonList">
<view class="reason-list flex flex-wrap">
<view class="reason-item" v-for="(item, index) in orderObj.shortcutList" :key="index" @click="reasonClick(item.confValue)">
{{ item.confValue }}
</view>
</view>
</template>
</GlCell>
</view>
<view @click.stop="submit" class="btn">战败下单</view>
</scroll-view>
</view>
<!-- 弹窗 -->
<order-popup ref="orderPopup" :data="orderObj" :dataKey="valueKey" :isDefeatOrder="true" @onConfirm="onConfirm" :externalData="externalData" :popupType="popupType" />
</view>
</template>
<script>
import utils from '@/utils/utils'
import dayjs from 'dayjs'
import OrderPopup from '@/components/OrderPopup/index.vue'
import GlCell from '../../../../components/Form/GlCell.vue'
import Product from './Product.vue'
import Package from './Package.vue'
import SkuGoods from './SkuGoods.vue'
import { checkDailyReport, showNextModal } from '@/utils/modalUtils'
import { DEFEAT_FORM_LIST, popupTypeEnum, payTypeList } from '../contant'
import { debounce } from 'lodash'
export default {
name: 'DefeatOrder',
components: {
GlCell,
OrderPopup,
Product,
Package,
SkuGoods
},
props: {
transmissionOfData: {
type: Object,
default: () => null
}
},
watch: {
transmissionOfData: {
handler(newVal) {
if (newVal) {
console.log('接收到的交易数据:', newVal)
// 处理交易数据
const handleTransactionData = newVal => {
this.orderCreateType = newVal.type
// 新增订单处理
const {
paramsData: { customer, customerCoupon, ...rest }
} = newVal
// 基础字段映射
const baseFields = ['id', 'orderCode', 'userId', 'employeeName', 'deliveryEmployeeName', 'deliveryUserId', 'subShopMerchantName', 'subShopMerchantId', 'sellerName', 'sellerUserId', 'sellerMerchantName', 'sellerMerchantId', 'merchantId', 'merchantName', 'customerCouponId']
Object.assign(this.orderObj, Object.fromEntries(baseFields.map(field => [field, rest[field]])))
// 客户信息映射
const customerFields = ['customerName', 'customerSex', 'customerPhone', 'standNo', 'plateNumber', 'experienceFlag']
Object.assign(this.orderObj, Object.fromEntries(customerFields.map(field => [field, customer[field]])))
// 优惠券信息
const { couponName, customerCouponCode } = customerCoupon
Object.assign(this.orderObj, {
couponName,
customerCouponCode,
couponInfo: couponName + customerCouponCode
})
// 车辆信息
this.orderObj.customer = {
carBrand: customer.carBrand,
carBrandId: customer.carBrandId,
carChildsBrandId: customer.carChildsBrandId,
carChildsBrandName: customer.carChildsBrandName,
carSeriesId: customer.carSeriesId,
carSeriesName: customer.carSeriesName,
customerPhone: customer.customerPhone,
standNo: customer.standNo,
plateNumber: customer.plateNumber,
customerSex: customer.customerSex,
experienceFlag: customer.experienceFlag,
customerName: customer.customerName
}
this.orderObj.carBrand = `${customer.carBrand}-${customer.carChildsBrandName}-${customer.carSeriesName}`
const weeks = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
this.$set(this.orderObj, 'todayShow', dayjs(this.orderObj.createDate).format('YYYY-MM-DD') + ' ' + weeks[dayjs(this.orderObj.createDate).day()])
// 更新表单状态
const updateFormCell = (formIndex, fieldName, value) => {
const cell = this.formList[formIndex].find(item => item.value === fieldName)
if (cell) cell.current = value
}
const formUpdates = [
[1, 'customerSex', customer.customerSex],
[1, 'experienceFlag', customer.experienceFlag],
[2, 'payeeType', this.orderObj.payeeType]
]
formUpdates.forEach(([index, field, value]) => updateFormCell(index, field, value))
this.goodsList = rest.subOrderList
}
handleTransactionData(newVal)
}
},
immediate: true
}
},
data() {
return {
orderCreateType: 'createWithPay', // supplementOrder(补录订单) createWithPay(新增)
formList: utils.deepClone(DEFEAT_FORM_LIST),
userInfo: {},
baseConfigData: {},
requiredList: [], // 录单设置的必填项
orderObj: {
customer: {},
customerSex: '1',
experienceFlag: 'Y',
payeeType: 1,
frontGear: null, // 1 ,回显upgradeGoodsPosition == 1
frontWindow: null, // 2
rearWindow: null, // 3
rearGear: null, // 4
sunRoof: null, // 5, 6,7
package: null,
skuGoods: null // upgradeGoodsPosition 为空,则是其他精品单商品
}, // 弹窗传入的数据},
popupType: 0,
popupTypeEnum,
externalData: [], //弹窗接口数据
subShopMerchantList: [], // 二级流量方列表
employeeList: [],
djPayList: [], // 嘀加收款方对应支付方式
merchantPayList: [], // 门店收款方对应支付方式
configPayTypeList: [], // 园区店配置支持的支付方式
payTypeList,
goodsList: [],
otherProduct: [],
positionTypeList: [],
valueKey: '',
totalPrice: 0,
// 产品槽位配置,用于循环渲染产品组件
productSlots: {
frontGear: true,
frontWindow: true,
rearGear: true,
rearWindow: true,
sunRoof: true
}
}
},
computed: {
showPayTips() {
if (this.orderObj.payeeType == 0 && this.orderObj.selectPayType == 7) return true
else return false
}
},
onload(options) {
console.log(options, 'options')
},
mounted() {
uni.$track.add({ eventCode: 'app_defeat_order' })
console.log('mounted', this.orderCreateType)
this.userInfo = uni.$storage.get('userInfo') || {}
this.baseConfigData = uni.$storage.get('mock_data') || {}
const { userInfo } = this
this.initData()
},
methods: {
initData() {
const { userInfo } = this
if (!this.orderObj.id) {
const weeks = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
this.$set(this.orderObj, 'todayShow', dayjs().format('YYYY-MM-DD') + ' ' + weeks[dayjs().day()])
this.$set(this.orderObj, 'createDate', dayjs().format('YYYY-MM-DD'))
// 在原有的 orderObj 对象上新增这些属性
Object.assign(this.orderObj, {
sellerMerchantName: userInfo.merchantName,
sellerName: userInfo.name,
sellerMerchantId: userInfo.merchantId,
sellerUserId: userInfo.uuid,
merchantId: userInfo.shopMerchantId,
merchantName: userInfo.shopMerchantName
})
}
this.getShopMerchantPointConfig(userInfo.shopMerchantId)
this.getSubShopMerchantList(userInfo.shopMerchantId)
this.getSetting()
this.getConfig()
this.getConfigList()
// this.getEmployeeList()
this.getSelectOrderGoodsList()
this.getPositionList()
if (this.orderCreateType == 'createWithPay') this.getLastUserOrderInfo() // 补录订单不需要设置默认值
},
// 选择行事件
handleCell(val) {
console.log(val, this.orderObj)
// 获取当前选中的popupType
this.popupType = Object.keys(this.popupTypeEnum).find(key => this.popupTypeEnum[key].key === val.value) * 1
// 获取对应的list字段
const popupConfig = this.popupTypeEnum[this.popupType]
if (popupConfig && popupConfig.list) {
this.externalData = this[popupConfig.list] || []
} else {
this.externalData = []
}
// 定义产品相关字段数组
const productFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
if (productFields.includes(val.value)) {
this.valueKey = val.value
}
console.log(this.popupType, this.externalData, '-------------')
this.$refs.orderPopup.open()
},
// 单选框change事件
radioChange(e, val) {
console.log(e, val)
this.orderObj[val.value] = e.detail.value
if (val.value == 'payeeType') {
this.changePayee()
}
},
// 弹窗确认回调
onConfirm(val) {
console.log(val, 'onConfirm')
const { chooseContent } = val
// 根据popupTypeEnum优化处理
const _typeValue = this.popupTypeEnum[this.popupType]
console.log(_typeValue)
// 定义产品相关字段数组
const productFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
if (_typeValue.key == 'carBrand') {
// 车型
this.$set(this.orderObj, _typeValue.key, `${chooseContent.carBrand}-${chooseContent.carChildsBrandName}-${chooseContent.carSeriesName}`)
this.orderObj.customer = {
...(this.orderObj.customer || {}),
...chooseContent,
standNo: '',
plateNumber: ''
}
} else if (_typeValue.key == 'couponInfo') {
// 礼券
const { couponName, merchantCouponId, customerCouponCode } = chooseContent
Object.assign(this.orderObj, {
couponName: couponName,
merchantCouponId: merchantCouponId,
customerCouponCode: customerCouponCode
})
this.$set(this.orderObj, 'couponInfo', couponName + customerCouponCode)
} else if (productFields.includes(_typeValue.key)) {
if (_typeValue.key == 'skuGoods') {
if (!this.orderObj[_typeValue.key]) {
this.$set(this.orderObj, _typeValue.key, chooseContent)
} else {
// 过滤出已选的goodFlag为2的对象
const selectedGoods = this.orderObj[_typeValue.key].filter(item => item.goodsFlag === 2)
const singleGoods = chooseContent.filter(item => item.goodsFlag === 1)
const moreGoods = chooseContent
.filter(item => item.goodsFlag === 2)
.filter(item => {
return !selectedGoods.some(selectedItem => selectedItem.multipleSpecificationsGoods.id === item.multipleSpecificationsGoods.id)
})
// 合并已选的goodFlag为2的对象
this.orderObj[_typeValue.key] = [...singleGoods, ...moreGoods, ...selectedGoods]
}
} else {
// 手动拼装和新增工单一样的结构
console.log(this.orderObj)
this.$set(this.orderObj, _typeValue.key, Array.isArray(chooseContent) ? chooseContent.map(item => ({ goodsFlag: 1, goods: { ...item, sellPrice: item.price } })) : [{ goodsFlag: 1, goods: chooseContent }])
}
// 商品类,需计算总价
setTimeout(() => {
this.changeTotalPrice()
}, 0)
} else if (_typeValue.key == 'todayShow') {
const weeks = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
this.$set(this.orderObj, 'todayShow', dayjs(chooseContent).format('YYYY-MM-DD') + ' ' + weeks[dayjs(chooseContent).day()])
this.$set(this.orderObj, 'createDate', dayjs(chooseContent).format('YYYY-MM-DD'))
} else if (_typeValue.key) {
this.orderObj[_typeValue.targetIdKey] = chooseContent[_typeValue.sourceIdKey]
this.$set(this.orderObj, _typeValue.targetNameKey, chooseContent[_typeValue.sourceNameKey])
}
},
// 输入框失去焦点事件
inputBlur(e, val) {
console.log(e, val)
console.log(this.orderObj)
this.orderObj.customer[val.value] = this.orderObj[val.value]
},
checkRequired() {
const phoneRex = /^[1]([3-9])[0-9]{9}$/
// 把formList中所有required为true的对象放到一个数组中
const requiredArr = []
const onlyLabelItem = []
this.formList.forEach(group => {
group.forEach(item => {
if (item.required === true && item.hidden !== true) {
if (item.onlyLabel === true) {
onlyLabelItem.push(item)
} else {
requiredArr.push(item)
}
}
})
})
// 遍历requiredArr,检查orderObj中是否有对应的值
for (let i = 0; i < requiredArr.length; i++) {
const item = requiredArr[i]
// 兼容嵌套customer对象的情况
let value
if (item.value === 'customerName' || item.value === 'customerPhone' || item.value === 'standNo' || item.value === 'plateNumber') {
value = this.orderObj.customer ? this.orderObj.customer[item.value] : undefined
} else {
value = this.orderObj[item.value]
}
// 0、false、'0'等视为有效,null/undefined/空字符串视为无效
if (value === undefined || value === null || value === '') {
uni.showToast({
title: `${item.label}不能为空`,
icon: 'none'
})
return false
}
// 如果是customerPhone,添加phoneRex校验
if (item.value === 'customerPhone' && !phoneRex.test(value)) {
uni.showToast({
title: `请输入正确的${item.label}`,
icon: 'none'
})
return false
}
}
if (this.orderObj.standNo) {
const vinRex = /^(?=.*[A-Za-z])[A-Za-z0-9]{17}$/
console.log(this.orderObj.standNo, vinRex.test(this.orderObj.standNo))
if (!vinRex.test(this.orderObj.standNo)) {
uni.showToast({
title: `请输入正确的VIN码`,
icon: 'none'
})
return false
}
}
// 处理onlyLabel为true的特殊校验
if (onlyLabelItem.length > 0) {
// 检查frontGear、frontWindow、rearGear、rearWindow、sunRoof和couponInfo字段中是否至少有一个不为空
const labelFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
const hasValue = labelFields.some(field => {
console.log(field, this.orderObj[field])
const value = this.orderObj[field]
return value !== undefined && value !== null && (Array.isArray(value) ? value.length > 0 : value !== '')
})
console.log(hasValue, hasValue)
if (!hasValue) {
uni.showToast({
title: '商品不能为空',
icon: 'none'
})
return false
}
}
return true
},
// 提交
submit: debounce(async function () {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport()
if (staffCheck) return false
if (!this.checkRequired()) return
const { orderCreateType } = this
const obj = utils.deepClone(this.orderObj)
const otherCustomer = ['customerSex', 'experienceFlag']
obj.customer = {
...obj.customer,
...otherCustomer.reduce((acc, key) => {
if (obj[key] !== undefined) {
acc[key] = obj[key]
delete obj[key]
}
return acc
}, {})
}
// 将 frontGear、frontWindow、rearGear、rearWindow、sunRoof 字段合并到 goodsList 中
const labelFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof']
let goodsList = []
labelFields.forEach(field => {
if (Array.isArray(obj[field]) && obj[field].length > 0) {
goodsList = goodsList.concat(obj[field])
}
delete obj[field]
})
if (goodsList.length > 0) {
obj.subOrderList = goodsList.map(item => {
return {
totalPrice: item.goods.sellPrice,
number: item.goods.number,
merchantGoodsId: item.goods.merchantGoodsId || item.goods.id,
baseGoodsId: item.goods.baseGoodsId
}
})
}
obj.notUpgradeOrderList = [{ customer: obj.customer, subOrderList: obj.subOrderList, confirmIndex: false, isTouchMove: false, txtStyle: 'left:0' }]
obj.subOrderList = !this.transmissionOfData?.isExpiredTraffic ? obj.subOrderList : []
if (this.transmissionOfData?.isExpiredTraffic) {
delete obj.customer?.['experienceFlag'] // 删除是否体验参数
obj['packageGoodsList'] = [] // 删除商品参数
}
delete obj.carBrand
delete obj.couponInfo
delete obj.refusalReason
delete obj.customer
delete obj.subOrderList
delete obj.todayShow
delete obj.package
delete obj.payeeType
delete obj.skuGoods
delete obj.customerName
delete obj.customerPhone
console.log(obj, 'rucan')
uni.showLoading({
title: '提交中...',
mask: true
})
const res = await uni.$api.boutiqueApi.notUpgradeOrder({ json: JSON.stringify(obj) })
console.log(res, '===submit')
if (res) {
uni.hideLoading()
uni.showToast({
title: '保存成功',
icon: 'success'
})
this.$emit('jump', 'OrderManagement')
}
}, 300),
// 计算所有产品的总价
changeTotalPrice() {
let total = 0
// 遍历所有商品
const productFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
productFields.forEach(slotName => {
const productList = this.orderObj[slotName]
if (Array.isArray(productList) && productList.length > 0) {
// 计算每个产品的价格 * 数量,并累加到总价
productList.forEach(item => {
if (item.goods && item.goods.sellPrice && item.goods.number) {
total += parseFloat(item.goods.sellPrice) * parseInt(item.goods.number)
} else if (item.packageGoods && item.packageGoods.upgradePrice && item.packageGoods.number) {
console.log(item.packageGoods, '套餐')
// if (item.packageGoods.price) {
// total += parseFloat(item.packageGoods.price) * parseInt(item.packageGoods.number)
// } else {
// total += parseFloat(item.packageGoods.upgradePrice) * parseInt(item.packageGoods.number)
// }
item.packageGoods.goodsList.forEach(i => {
total += parseFloat(i.sellPrice) * parseInt(item.packageGoods.number)
})
} else if (item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods && item.multipleSpecificationsGoods.goods.sellPrice && item.multipleSpecificationsGoods.number) {
total += parseFloat(item.multipleSpecificationsGoods.goods.sellPrice) * parseInt(item.multipleSpecificationsGoods.number)
}
})
}
})
console.log(total, 'total')
// 更新总价
this.totalPrice = total.toFixed(2)
},
// 获取上一个订单的销售顾问信息 并且不是再次下单
async getLastUserOrderInfo() {
const res = await uni.$api.boutiqueApi.getLastUserOrderInfo({
sellerUserId: this.userInfo.subLoginUser.uuid
})
this.$set(this.orderObj, 'employeeName', res.employeeName)
this.orderObj.userId = res.userId
console.log(res, '上一个订单的销售顾问信息')
},
async getShopMerchantPointConfig(merchantId) {
const res = await uni.$api.boutiqueApi.getShopMerchantPointConfig({ merchantId })
console.log(res)
if (res.pointsMultiRole == 'Y') {
const employeeCell = this.formList[0].find(item => item.label === '销售顾问')
if (employeeCell) employeeCell.label = '销售顾问/录单员'
// 找到formList中label为"交付专员"的对象,添加hidden: true
// const deliveryCell = this.formList[0].find(item => item.label === '交付专员')
// if (deliveryCell) {
// deliveryCell.hidden = false
// }
}
},
// 判断二级流量方
async getSubShopMerchantList(merchantId) {
const res = await uni.$api.boutiqueApi.getSubShopMerchantList({ merchantId })
console.log(res, '流量方')
if (res && res.length) {
this.subShopMerchantList = res
const cell = this.formList[0].find(item => item.label === '二级流量方')
if (cell) {
cell.hidden = false
}
}
},
// 动态获取 车型 车架 车牌 是否必填
getYQorderInfo() {
return new Promise(async (resolve, reject) => {
const YQorderSetting = uni.$storage.get('boutique_YQorderSetting')
if (YQorderSetting) return resolve(YQorderSetting)
else {
const { userInfo } = this
let { merchantId, merchantName } = userInfo.subLoginUser
const res = await uni.$api.boutiqueApi.getMerchantRecordingSettings({ merchantId, merchantName })
console.log(res)
if (res) {
uni.$storage.set('boutique_YQorderSetting', res)
resolve(res)
}
}
})
},
// 获取车型、车架号、车牌号必填规则
async getSetting() {
const res = await this.getYQorderInfo()
console.log(res, '========')
const dictionaryObj = {
carTypeRequiredFlag: 'carBrand',
standNoRequiredFlag: 'standNo',
plateNumRequiredFlag: 'plateNumber'
}
for (const key in dictionaryObj) {
const cell = this.formList[1].find(item => item.value === dictionaryObj[key])
if (cell) cell.required = res[key] == 'Y'
}
},
async getConfig() {
const res = await uni.$api.boutiqueApi.getYqStoreConfig({
yqMerchantId: this.orderObj.sellerMerchantId
})
console.log(res)
let m = res.supportPayTypes || []
let n = this.payTypeList
let list = n.filter(k => {
let idx = m.find(j => j == k.value)
return idx >= 0
})
// this.configPayTypeList = list
this.djPayList = [
...list?.filter(v => ![2, 5].includes(Number(v.value))),
{
name: '对公转账',
value: '6'
},
{
name: '其它收款',
value: '7'
}
]
this.merchantPayList = [...list?.filter(v => v.value == 2)]
this.changePayee()
console.log(this.djPayList, this.merchantPayList, 'list')
},
changePayee() {
const cell = this.formList[2].find(item => item.value === 'selectPayType')
if (cell) {
cell.radioList = this.orderObj.payeeType == 1 ? this.merchantPayList : this.djPayList
if (cell.radioList && cell.radioList.length > 0) {
cell.current = cell.radioList[0].value
// this.orderObj.selectPayType = cell.radioList[0].value
}
}
},
// 获取 销售顾问列表
async getEmployeeList() {
const { userInfo, orderObj } = this
const { shopMerchantId, sceneType, merchantId } = userInfo,
data = await uni.$api.popupApi.getEmployeeList({
merchantId: orderObj.idKey == 'sellerUserId' ? merchantId : shopMerchantId,
sceneList: orderObj.idKey == 'sellerUserId' ? '' : [sceneType]
})
if (data && data.length) {
this.employeeList = data
// this.$set(this.orderObj, 'employeeName', data[0].staffName)
// this.orderObj.userId = data[0].uuid
}
},
async getPositionList() {
const res = await uni.$api.boutiqueApi.getPositionList({})
this.positionTypeList = res
},
// 商品列表
async getSelectOrderGoodsList() {
const { userInfo } = this
const res = await uni.$api.boutiqueApi.getOrderBaseGoodsList({
merchantId: userInfo.shopMerchantId,
upradeFlag: 'N'
})
// 分类映射
const posMap = {
frontGear: [1],
frontWindow: [2],
rearGear: [3],
rearWindow: [4],
sunRoof: [5, 6, 7]
}
// 初始化各类商品数组
const arrMap = {
frontGear: [],
frontWindow: [],
rearGear: [],
rearWindow: [],
sunRoof: []
}
// 目前战败下单,只能选取 太阳膜这个类别的商品
const dataList = res.filter(val => val.goodsType === 1).flatMap(val => val.upgradeGoodsList)
console.log(dataList)
dataList.forEach(subVal => {
subVal.positionStr = subVal.position
subVal.upgradePrice = subVal.sellPrice
subVal.price = subVal.sellPrice
subVal.goodsId = subVal.merchantGoodsId
Object.keys(posMap).forEach(key => {
if (posMap[key].includes(subVal.merchantGoodsPosition)) {
arrMap[key].push({ goodsFlag: 1, goods: subVal })
}
})
})
console.log('arrMap', arrMap)
// 批量设置 hidden 属性
Object.keys(arrMap).forEach(key => {
const cell = this.formList[2].find(item => item.value === key)
if (cell) cell.hidden = arrMap[key].length === 0
})
// 失效客户进来的战败单
console.log(this.transmissionOfData, '失效客户进来的战败单')
console.log(this.formList, '失效客户进来的战败单')
if (this.transmissionOfData?.isExpiredTraffic) {
this.formList[2].map(item => {
item.hidden = true
})
const isExpiredTrafficCell = this.formList[1].find(item => item.label === '是否体验')
if (isExpiredTrafficCell) {
isExpiredTrafficCell.hidden = true
}
}
const subOrderList = this.goodsList || []
let chooseList = []
console.log('subOrderList', subOrderList)
subOrderList.map(e => {
// 普通商品
if (e && !e.packageName) {
if (e.specificationData.indexOf(';~;') == -1) {
// 修复取值字段名字错误问题
if (!e.price) {
e.price = utils.decimal(Number(e.totalPrice / e.number), 2)
//最低价
}
e.sellPrice = e.price
e.goodsId = e.merchantGoodsId
if (!e.minSellPrice) e.minSellPrice = e.upgradeShopMinPrice
e.goodsInfo = {
goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName
}
e.merchantGoodsId = e.merchantGoodsId || e.id
chooseList.push({
goodsFlag: 1,
goods: e,
number: e.number,
active: true
})
}
// 多规格商品
// if (e.specificationData.indexOf(';~;') > -1) {
// // 修复取值字段名字错误问题
// if (!e.price) {
// e.price = utils.decimal(Number(e.totalPrice / e.number), 2)
// //最低价
// e.sellPrice = e.price
// }
// e.goodsId = e.merchantGoodsId
// if (!e.minSellPrice) e.minSellPrice = e.upgradeShopMinPrice
// e.goodsInfo = {
// goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName
// }
// e.count = e.number
// e.merchantGoodsId = e.merchantGoodsId || e.id
// let specificdata = this.handleSpecificationsEcho(e)
// console.log(specificdata, 'specificdata')
// chooseList = chooseList.concat(specificdata)
// }
}
// 套餐
// if (e && e.packageName) {
// e.packageGoodsOrderList.forEach(g => {
// g.oldPrice = g.sellPrice || g.upgradePrice
// // g.sellPrice = g.sellPrice || g.upgradePrice;
// g.price = g.totalPrice ? Number(g.totalPrice) / Number(g.number) : g.sellPrice
// g.sellPrice = g.price
// })
// e.goodsList = e.packageGoodsOrderList
// e.upgradePrice = e.goodsList.reduce((prev, cur) => {
// console.log(prev, cur)
// return prev + cur.sellPrice
// }, 0)
// e.number = e.goodsList.length ? e.goodsList[0].number : 1
// e.price = e.goodsList.reduce((prev, cur) => {
// return prev + Number(cur.totalPrice) / Number(cur.number)
// }, 0)
// chooseList.push({
// isType: 'meal',
// active: true,
// goodsFlag: 3,
// packageGoods: e,
// number: e.number,
// totalPrice: e.price
// })
// }
})
console.log(chooseList, 'chooseList')
const _singleGoods = chooseList
// const _packageGoods = chooseList.filter(item => item.goodsFlag == 3)
// const _skuGoods = chooseList.filter(item => item.goodsFlag == 2) || []
console.log(_singleGoods, 'singleGoods')
if (_singleGoods) {
// 回显upgradeGoodsPosition 1:前挡 2:前窗 3:后窗 4:后挡 5、6、7:天窗。 为空则是其他精品
this.$set(
this.orderObj,
'frontGear',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 1)
)
this.$set(
this.orderObj,
'frontWindow',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 2)
)
this.$set(
this.orderObj,
'rearWindow',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 3)
)
this.$set(
this.orderObj,
'rearGear',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 4)
)
this.$set(
this.orderObj,
'sunRoof',
_singleGoods.filter(item => item.goods.upgradeGoodsPosition == 5 || item.goods.upgradeGoodsPosition == 6 || item.goods.upgradeGoodsPosition == 7)
)
// 将没有upgradeGoodsPosition的商品添加到_skuGoods中
// const noPositionGoods = _singleGoods.filter(item => !item.goods.upgradeGoodsPosition)
// if (noPositionGoods.length > 0) {
// _skuGoods.push(...noPositionGoods)
// }
}
// if (_packageGoods) {
// this.$set(this.orderObj, 'package', _packageGoods)
// }
// console.log(_skuGoods, '_skuGoods')
// if (_skuGoods && _skuGoods.length) {
// this.$set(this.orderObj, 'skuGoods', _skuGoods)
// }
console.log(this.orderObj, 'this.orderObj')
this.changeTotalPrice()
},
// 获取不升级常用字符列表
getConfigList() {
uni.$api.boutiqueApi
.getConfigList({
confGroup: 'SMARTCARLIFE_NOT_UPGRADE_LABEL'
})
.then(data => {
console.log(data)
this.orderObj.shortcutList = data
})
},
reasonClick(text) {
let refusalReason = (this.orderObj.refusalReason || '') + text
this.orderObj.customer.refusalReason = refusalReason.substring(0, 30)
this.$set(this.orderObj, 'refusalReason', refusalReason.substring(0, 30))
console.log(this.orderObj.customer?.refusalReason)
},
handleSpecificationsEcho(item) {
let skuArr = []
const { otherProduct } = this,
arr = item.specificationData.split('/'),
str = arr.join(';~;'),
obj = {
count: item.count,
goodsFlag: 2,
goods: null,
active: true,
isFlag: true //初始化进来不显示标识
}
otherProduct.forEach(data => {
if (data.goodsFlag == 2) {
let tempData = data.multipleSpecificationsGoods.specificationGoodsMap[str]
if (tempData) {
tempData.forEach(temp => {
if (temp.merchantGoodsId == item.goodsId) {
obj.multipleSpecificationsGoods = {
...data.multipleSpecificationsGoods,
baseGoodsName: item.goodsName || item.upgradeGoodsName,
goods: {
...temp,
price: item.price,
sellPrice: item.price,
goodsId: item.goodsId,
specificationStr: item.specificationData.replace(/;~;/g, '/')
}
}
skuArr.push(obj)
}
})
}
}
})
console.log(skuArr)
return skuArr
}
}
}
</script>
<style scoped lang="scss">
.defeat-order {
height: 100%;
}
.box {
height: calc(100% - #{toRpx(120)});
padding-bottom: toRpx(24);
.scroll-view {
height: 100%;
}
}
.box-content {
padding: 0 toRpx(48);
}
.shop-list {
padding: toRpx(12) toRpx(32) toRpx(12) 0;
.shop-item {
display: flex;
align-items: center;
background-color: #f5f7fa;
border-radius: toRpx(16);
margin-bottom: toRpx(16);
padding: toRpx(24);
.right {
flex: 1;
font-size: toRpx(28);
margin-left: toRpx(24);
.shop-name {
color: #ff781f;
}
.alias {
margin-top: toRpx(12);
font-size: toRpx(24);
color: #666;
}
}
}
}
.front-gear-box {
display: flex;
justify-content: space-between;
margin-top: toRpx(24);
.front-gear-input-box {
display: flex;
align-items: center;
.front-gear-label {
font-size: toRpx(24);
margin-right: toRpx(24);
color: #999999;
}
.front-gear-input {
position: relative;
display: flex;
border: toRpx(2) solid #eff0f2;
background-color: #fff;
font-size: toRpx(28);
height: toRpx(70);
width: toRpx(250);
line-height: toRpx(70);
text-align: right;
.uni-input {
padding: 0 toRpx(32);
height: 100%;
}
.unit {
position: absolute;
top: 50%;
left: toRpx(32);
transform: translateY(-50%);
}
}
}
.control {
display: flex;
align-items: center;
.control-input {
width: toRpx(94);
height: toRpx(74);
background-color: #fff;
border: toRpx(2) solid #eff0f2;
padding: 0 toRpx(10);
text-align: center;
}
.minus,
.add {
width: toRpx(80);
height: toRpx(74);
line-height: toRpx(70);
text-align: center;
background-color: #fff;
border-top: toRpx(2) solid #eff0f2;
border-bottom: toRpx(2) solid #eff0f2;
}
.minus {
border-radius: toRpx(12) 0 0 toRpx(12);
border-left: toRpx(2) solid #eff0f2;
}
.add {
border-radius: 0 toRpx(12) toRpx(12) 0;
border-right: toRpx(2) solid #eff0f2;
}
}
}
.package-list {
padding: toRpx(12) toRpx(32) toRpx(12) 0;
.package-item {
background-color: #f5f7fa;
border-radius: toRpx(16);
margin-bottom: toRpx(16);
.header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: toRpx(1.6) solid #dce1e6;
padding: toRpx(24);
&-left {
display: flex;
align-items: center;
font-size: toRpx(28);
.name {
margin-left: toRpx(26);
color: #999;
}
.price {
color: #666;
}
}
}
.goods-item {
padding: toRpx(24);
border-bottom: toRpx(1.6) solid #dce1e6;
&:last-child {
border-bottom: none;
}
.goods-name {
color: #ff781f;
font-size: toRpx(28);
}
.alias-name {
margin-top: toRpx(12);
font-size: toRpx(24);
color: #666;
}
}
}
}
.total {
display: flex;
justify-content: space-between;
align-items: center;
padding: toRpx(24) toRpx(32) toRpx(24) 0;
font-size: toRpx(28);
border-bottom: toRpx(2) solid #f7f7f6;
&-left {
color: #333;
font-weight: 500;
}
&-right {
color: #f45001;
font-weight: 500;
}
}
.pay-tips {
padding: toRpx(24) toRpx(24) toRpx(24) 0;
font-size: toRpx(24);
color: #999;
}
.reason-list {
gap: toRpx(24);
margin-bottom: toRpx(32);
margin-top: toRpx(24);
.reason-item {
padding: toRpx(28) toRpx(18);
border-radius: toRpx(16);
background: #f2f2f2;
color: #666666;
font-size: toRpx(28);
font-weight: 400;
}
}
.defeat-order ::v-deep .cell-value .textarea {
margin-bottom: 0;
}
.btn {
display: flex;
align-items: center;
justify-content: center;
margin: toRpx(88) auto 0;
width: toRpx(1130);
height: toRpx(80);
color: #fff;
border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
</style>
<!--工单信息卡片-->
<template>
<view class="order-card" @click.stop="cardClick">
<view class="order-card-top-box flex justify-between">
<text>{{ orderCardDetail.customer.customerName }}</text>
<view class="status text-center" :style="{ color: orderCardDetail.statuscolor, 'background-color': orderCardDetail.statusbackground }">
<view v-if="orderCardDetail.status == 1 || orderCardDetail.status == 3">
<view v-if="status[orderCardDetail.status].background">
<view class="arc y-center">
<view class="outside box-center" :style="{ 'background-color': status[orderCardDetail.status].background }" />
<view class="inside box-center" :style="{ 'background-color': status[orderCardDetail.status].color }" />
</view>
</view>
</view>
<!-- 优先显示已撤销的 然后是已施工的 最后是其他的 -->
<!-- {{li.status==9?status[li.status].text: (li.constructionFlag == 'Y'?'已施工':status[li.status].text) }} -->
{{ orderCardDetail.statusText }}
</view>
</view>
<view>
<view class="goods-list" :style="{ paddingBottom: orderCardDetail.subOrderList && orderCardDetail.subOrderList.length < 1 ? '0' : '' }" v-if="orderCardDetail.subOrderList && orderCardDetail.subOrderList.length > 0">
<view>
<view v-for="(i, sindex) in orderCardDetail.subOrderList" :key="sindex" class="goods flex justify-between" :class="{ 'no-margin': orderCardDetail.subOrderList.length === 1 }" v-if="orderCardDetail.showAllGoodsListFlag ? true : sindex < 2">
<view class="goods-name text-hide flex">
<view class="point"></view>
{{ i.upgradeGoodsAlias || i.upgradeGoodsName || i.packageName || '' }}
</view>
<view class="goods-price">
¥
<text>{{ i.totalPrice || 0 }}</text>
</view>
</view>
<view v-if="orderCardDetail.subOrderList.length > 2" class="goods-more">
<text @click.stop="showAllGoodsList">
{{ orderCardDetail.showAllGoodsListFlag ? '收起' : '查看全部' }}
</text>
(共{{ orderCardDetail.subOrderList.length }}件)
</view>
</view>
</view>
<view class="info-box">
<view class="order-list align-center" v-for="(item, sindex) in orderCardDetail.deliveryUserId ? pointsMultiObj : orderObj" :key="sindex">
<view class="order flex align-center">
<view class="order-label">{{ item.label }}</view>
<view class="order-value flex">
<view v-if="item.arr" class="flex">
<view v-if="orderCardDetail[item.arr[1]]" class="flex">
<view v-for="(k, arr_index) in item.arr" :key="arr_index" class="flex">
<view class="order-value-item text-hide flex">
<view v-if="arr_index == 1">
<text class="split">|</text>
</view>
{{ orderCardDetail[k] }}
</view>
</view>
</view>
<view v-else>{{ orderCardDetail[item.key] || '' }}</view>
</view>
<view v-else>{{ orderCardDetail[item.key] || '' }}</view>
</view>
</view>
</view>
</view>
<!-- 支付方式 -->
<view class="order-payType flex" v-if="orderCardDetail.selectPayType !== undefined && orderCardDetail.selectPayType !== null">
<view class="payType flex align-center">
<view class="payType-label">支付方式</view>
<view class="payType-value flex align-center">
{{ payType[orderCardDetail['selectPayType']] }}
<image v-if="orderCardDetail.selectPayType == 1" class="payType-image" :src="IMG_URL + 'miniProgram/wxPay.png'" mode="" />
<image v-if="orderCardDetail.selectPayType == 2" class="payType-image" :src="IMG_URL + 'miniProgram/store_pay.png'" mode="" />
<image v-if="orderCardDetail.selectPayType == 3" class="payType-image" :src="IMG_URL + 'miniProgram/posPay.png'" mode="" />
</view>
</view>
<view v-if="orderCardDetail.status != 1 && orderCardDetail.selectPayType != 0 && orderCardDetail.total_price != 0" class="order-price flex align-center">
<view class="order-price-label">实付金额</view>
<view class="price">
<text class="unit">¥</text>
{{ orderCardDetail.totalPrice }}
</view>
</view>
</view>
</view>
<!-- 施工技师 -->
<view class="construction-staff flex" v-if="orderCardDetail && orderCardDetail.constructionFlag == 'Y'">
<view class="staff-label">施工技师</view>
<view class="staff-value">{{ orderCardDetail.technicianName }}</view>
</view>
<PublishPopup ref="recordOrderPopup" popupClass="recordOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="请选择录单入口">
<template #content>
<view class="modatcontent">
<view class="modalbox com" :class="selectType == 1 ? 'act' : ''" @click="changeType(1)">
<view class="sprite-icon icon-createOrder"></view>
新增工单
</view>
<view class="modalbox cancle" :class="selectType == 2 ? 'act' : ''" @click="changeType(2)">
<view class="sprite-icon icon-defeatOrder"></view>
战败下单
</view>
<view v-if="isSettingExpiredTraffic && !isScan" class="modalbox cancle" :class="selectType == 3 ? 'act' : ''" @click="changeType(3)">
<view class="sprite-icon icon-isExpiredTrafficIcon"></view>
失效客户
</view>
<view class="modalbox cancle" v-if="orderCardDetail.constructionFlag !== 'Y' && orderCardDetail.selectPayType !== 1 && orderCardDetail.selectPayType !== 3 && orderCardDetail.selectPayType !== 4 && orderCardDetail.status !== 9" :class="selectType == 4 ? 'act' : ''" @click="changeType(4)">
<view class="sprite-icon icon-revokeOrder"></view>
撤销工单
</view>
</view>
</template>
<template #footer>
<view class="footer-box flex justify-center">
<view class="cancle-btn btn" @click.stop="cancelSelection">取消</view>
<view class="sure-btn btn" @click.stop="confirmSelection">确认</view>
</view>
</template>
</PublishPopup>
</view>
</template>
<script>
import order_mixins from '../../order_mixins.js'
import { interceptionMixin } from '@/mixin/index'
import utils from '@/utils/utils'
import { checkDailyReport, showNextModal } from '@/utils/modalUtils'
import PublishPopup from '@/components/PublishPopup.vue'
import { debounce } from 'lodash'
export default {
mixins: [interceptionMixin],
name: 'OrderCard',
props: {
orderCardDetail: {
type: Object,
default: () => ({})
}
},
components: {
PublishPopup
},
computed: {
payType() {
return order_mixins.data.payType || {}
},
status() {
return order_mixins.data.status || {}
}
},
data() {
return {
IMG_URL: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/',
isSettingExpiredTraffic: false, // 是否启用流量失效
selectType: 1,
pointsMultiObj: [
{
label: '销售顾问 /录单员',
arr: ['merchantName', 'employeeName']
},
{
label: '交付人员',
arr: ['merchantName', 'deliveryEmployeeName']
},
{
label: '转化人员',
arr: ['sellerMerchantName', 'sellerName']
},
{
label: '工单编号',
key: 'orderCode'
},
{
label: '工单时间',
key: 'orderTime'
}
],
orderObj: [
{
label: '销售顾问',
arr: ['merchantName', 'employeeName']
},
{
label: '转化人员',
arr: ['sellerMerchantName', 'sellerName']
},
{
label: '工单编号',
key: 'orderCode'
},
{
label: '工单时间',
key: 'orderTime'
}
],
localUserInfo: null
}
},
mounted() {
this.localUserInfo = uni.$storage.get('userInfo')
},
methods: {
// 查看全部商品
showAllGoodsList: debounce(function (e) {
this.$emit('toggle-goods-list', {
item: this.orderCardDetail,
flag: !this.orderCardDetail.showAllGoodsListFlag
})
}, 300),
async jumpClick(name, item) {
// 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 ,9 已撤销 , 10 已关闭 , 11 已失效
// constructionFlag 施工标识(Y:已施工;N||null:未施工)
// failureFlag 订单失效状态(Y:已失效,N:未失效)
// console.log(e.currentTarget.dataset)
// return
if (this.localUserInfo.merchantAccountList && this.localUserInfo.merchantAccountList.length) {
try {
this.localUserInfo.merchantAccountList.map(e => {
if (e == 6 || e == 8) throw true
})
} catch (error) {
this.localUserInfo.merchantType = error
}
}
this.localUserInfo.isMake = !(this.localUserInfo?.isSuper || this.localUserInfo?.loginRole == 3 || this.localUserInfo?.loginRole == 5 || this.localUserInfo?.loginRole == 6 || this.localUserInfo?.loginRole == 7)
let { userType, isSuper, merchantType, isMake } = this.localUserInfo
console.log(item)
if (name == 'CreateOrder' || name == 'PremiumUpgrade') {
if (merchantType && !isSuper && isMake) {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport()
if (staffCheck) return false
if (name == 'CreateOrder' && (await this.inspectionOfProhibitionBill())) return /**禁止提单 */
// 是微信支付直接跳转确认页面
if (userType == 2 && item?.selectPayType == 1) {
this.$emit('jump', 'ConfirmOrder', this.orderCardDetail)
} else if (userType == 2) {
item
? this.showSelectType({
item
})
: this.$emit('jump', name, { paramsData: this.orderCardDetail, type: 'createWithPay' })
} else {
utils.showNoAccess()
}
} else {
utils.showNoAccess()
}
// 已支付加已施工
} else if (item.constructionFlag == 'Y' && item.status != 10) {
this.$emit('jump', name, this.orderCardDetail)
} else {
this.$emit('jump', name, this.orderCardDetail)
}
},
// 确定是否要显示
showSelectType({ scene = '', item = {} }, scan = false) {
this.isScan = scan
// 当切换门店后,不支持录入失效客户工单,将selectType置为1录入工单
if ((!this.isSettingExpiredTraffic || scan) && this.selectType == 3) {
this.selectType = 1
}
this.getCreateOrderSetting()
this.$nextTick(() => {
if (this.$refs.recordOrderPopup) {
this.$refs.recordOrderPopup.open()
} else {
console.error('recordOrderPopup ref is not available')
}
})
},
// 获取轻改录单配置是否启用流量失效
getCreateOrderSetting() {
let merchantType = this.localUserInfo?.merchantAccountList.includes('6') || this.localUserInfo?.merchantAccountList.includes('8')
if (merchantType && !this.localUserInfo?.isSuper && this.localUserInfo?.loginRole != 3 && this.localUserInfo?.userType == 2 && this.localUserInfo?.shopMerchantId) {
uni.$api.boutiqueApi.getServiceBaseInfo({ merchantId: this.localUserInfo?.shopMerchantId }).then(res => {
this.isSettingExpiredTraffic = res?.trafficExpireFlag == 'Y'
})
}
},
changeType: debounce(function (type) {
this.selectType = type
}, 300),
confirmSelection: debounce(async function () {
this.$refs.recordOrderPopup.closePopup()
console.log('this.selectType', this.selectType)
if (this.selectType == 1) {
console.log(await this.inspectionOfProhibitionBill())
if (await this.inspectionOfProhibitionBill()) return
this.$emit('jump', 'CreateOrder', { paramsData: this.orderCardDetail, type: 'createWithPay' })
} else if (this.selectType == 2 || this.selectType == 3) {
this.$emit('jump', 'DefeatOrder', { paramsData: this.orderCardDetail, type: 'createWithPay', isExpiredTraffic: this.selectType == 3 })
} else if (this.selectType == 4) {
let _this = this
uni.$api.boutiqueApi
.revokeOrder({
orderCode: this.orderCardDetail.orderCode
})
.then(data => {
uni.showToast({
title: '操作成功',
icon: 'success'
})
this.$emit('refresh')
})
}
}, 300),
cancelSelection() {
this.$refs.recordOrderPopup.closePopup()
},
cardClick: debounce(function () {
this.jumpClick(this.orderCardDetail.status == 3 ? 'ConfirmOrder' : this.orderCardDetail.status == 1 ? 'CreateOrder' : 'OrderDetail', this.orderCardDetail)
}, 300)
}
}
</script>
<style lang="scss" scoped>
// Popup样式
::v-deep .recordOrderPopup .uni-popup__wrapper {
position: relative;
border-radius: toRpx(32);
opacity: 1;
width: toRpx(848);
height: toRpx(968);
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
.popup-top-box {
text-align: left;
padding: toRpx(48) toRpx(64);
&-title {
color: #1a1a1a;
font-size: toRpx(40);
font-weight: 500;
}
.icon-close {
font-size: toRpx(40) !important;
color: rgba(26, 26, 26, 0.6) !important;
}
}
.modatcontent {
box-sizing: border-box;
padding: 0 toRpx(64);
.modalbox {
display: flex;
align-items: center;
box-sizing: border-box;
border-radius: toRpx(16);
background: #f7f8fa;
height: toRpx(136);
border-radius: toRpx(8);
margin: 0 auto;
color: #292d33;
font-size: toRpx(28);
font-weight: 500;
& + .modalbox {
margin-top: toRpx(16);
}
.sprite-icon {
margin: 0 toRpx(24) 0 toRpx(32);
}
}
.act {
border: toRpx(2) solid #347bff;
background: #347bff1a;
}
}
.footer-box {
width: 100%;
height: toRpx(164);
background-color: #fff;
position: absolute;
bottom: 0;
border-radius: 0 0 toRpx(32) toRpx(32);
.btn {
width: 40%;
height: toRpx(80);
border-radius: toRpx(48);
opacity: 1;
line-height: toRpx(80);
text-align: center;
color: rgba(26, 26, 26, 0.6);
font-size: toRpx(32);
font-weight: 500;
}
.cancle-btn {
background: #f0f1f5;
}
.sure-btn {
color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
margin-left: toRpx(32);
}
}
}
.order-card {
padding: toRpx(36) toRpx(32);
border-radius: toRpx(24);
opacity: 1;
background: #ffffff;
box-shadow: 0 toRpx(8) toRpx(24) 0 #2a61eb1a;
margin-bottom: toRpx(24);
}
.status {
padding: toRpx(8);
font-size: toRpx(24);
font-weight: 500;
border-radius: toRpx(4);
border: toRpx(1) solid transparent;
}
.info-box {
display: flex;
flex-wrap: wrap;
.order-list,
.order-payType {
width: 50%;
padding: toRpx(10) toRpx(20) toRpx(10) 0;
box-sizing: border-box;
&:nth-child(2n) {
padding-right: 0;
padding-left: toRpx(20);
}
}
}
.order {
.order-label {
width: toRpx(120);
margin-right: toRpx(24);
font-size: toRpx(24);
color: #999ea8;
font-weight: 400;
}
.order-value {
font-size: toRpx(24);
color: #666666;
font-weight: 400;
.split {
margin: 0 toRpx(6);
}
}
}
/* 支付方式相关样式 */
.payType {
width: 50%;
padding: toRpx(10) toRpx(20) toRpx(10) 0;
box-sizing: border-box;
.payType-label {
width: toRpx(120);
margin-right: toRpx(24);
font-size: toRpx(24);
color: #999ea8;
font-weight: 400;
}
.payType-value {
font-size: toRpx(24);
color: #666666;
font-weight: 400;
}
}
.order-price {
padding: toRpx(10) toRpx(20) toRpx(10) 0;
box-sizing: border-box;
padding-right: 0;
padding-left: toRpx(20);
.order-price-label {
width: toRpx(120);
margin-right: toRpx(24);
font-size: toRpx(24);
font-weight: 400;
color: #999ea8;
}
.price {
display: flex;
align-items: center;
color: #4673ff;
font-size: toRpx(36);
font-weight: 700;
}
}
.payType-image {
width: toRpx(32);
height: toRpx(32);
margin-left: toRpx(10);
}
.unit {
margin-right: toRpx(8);
font-size: toRpx(28);
font-weight: 700;
}
.construction-staff {
width: 50%;
padding: toRpx(10) toRpx(20) toRpx(10) 0;
box-sizing: border-box;
.staff-label {
width: toRpx(120);
margin-right: toRpx(24);
font-size: toRpx(24);
font-weight: 400;
color: #999ea8;
}
.staff-value {
font-size: toRpx(24);
color: #666666;
font-weight: 400;
}
}
.goods-list {
width: 100%;
border-radius: toRpx(16);
opacity: 1;
border-bottom: toRpx(2) solid #f7f7f6;
background: #f5f7fa;
margin: toRpx(20) 0;
padding: toRpx(20) toRpx(32);
.goods {
color: #333333;
font-size: toRpx(28);
font-weight: 400;
margin-bottom: toRpx(16);
&.no-margin {
margin-bottom: 0;
}
.goods-name {
.point {
width: toRpx(12);
height: toRpx(12);
opacity: 1;
border: toRpx(2) solid #4673ff;
border-radius: 50%;
background: #4673ff;
margin-right: toRpx(16);
}
}
}
.goods-more {
color: #4673ff;
font-size: toRpx(24);
font-weight: 400;
text-align: right;
margin-top: toRpx(12);
}
}
</style>
<template>
<view class="order-detail">
<view class="common-title">{{ orderInfo.constructionFlag == 'Y' && orderInfo.status != 10 ? '完成施工' : '工单详情' }}</view>
<view v-if="isShow" class="px-48 scroll-y" :class="{ 'construction-flag-y': !isMake }">
<view class="top-tips flex align-center" v-if="orderInfo.status != 10 && orderInfo.status != 9 && orderInfo.constructionFlag !== 'Y'">
<view class="sprite-icon icon-successIcon checkbox-filled"></view>
<view>
<view class="fs-34 fw-5">客户已付款</view>
<view class="fs-26 mt-12 cl-gray">技师施工完毕后可通知车主前来取车</view>
</view>
<view class="sprite-icon icon-topTipsRightIcon topTipsRightIcon"></view>
</view>
<view class="top-tips flex align-center" v-if="orderInfo.status == 10">
<view class="fs-34 fw-7">订单关闭</view>
<view class="fs-26 ml-12">客户支付超过24小时,系统自动关闭订单</view>
</view>
<view class="top-tips flex align-center" v-if="orderInfo.status == 9">
<view class="fs-34 fw-7">订单已撤销</view>
<!-- <view class="tips">客户支付超过24小时,系统自动关闭订单</view> -->
</view>
<view class="top-tips flex align-center" v-if="orderInfo.constructionFlag == 'Y'">
<view class="sprite-icon icon-successIcon checkbox-filled"></view>
<view>
<view class="fs-34 fw-5">客户{{ orderInfo.customer.customerName }}</view>
<view class="fs-26">完成施工,如客户有新的需要,可点击再次下单。</view>
</view>
</view>
<!-- 商品信息 -->
<view class="box-shell">
<view class="box-shell-title">商品信息</view>
<!-- 套餐 -->
<view class="meal-box" v-for="(item, index) in orderInfo.packageGoodsList">
<view class="meal-hd flex justify-between align-center">
<view>{{ item.packageAlias || item.packageName }}</view>
<view class="price">¥{{ item.totalPrice }}</view>
</view>
<view class="meal-bd">
<view class="meal-bd-box" v-for="g in item.packageGoodsOrderList">
<view class="meal-bd-head flex justify-between align-center">
<view class="flex align-center">
<view class="name">{{ g.upgradeGoodsAlias || g.upgradeGoodsName }}</view>
<view class="meal-bd-bottom flex align-center">
{{ g.upgradeGoodsType === 1 ? g.positionStr : g.upgradeGoodsTypeName }}
<view class="count">x{{ g.number }}</view>
</view>
</view>
<view class="price">¥{{ g.price }}</view>
</view>
</view>
</view>
</view>
<view class="good-list">
<view class="good" v-for="(item, index) in orderInfo.subOrderList" :key="index">
<view class="flex justify-between align-center mb-20">
<text class="good-name">商品名称:{{ replaceItemText(item.upgradeGoodsName) || '' }}</text>
<text class="good-price">¥{{ item.price }}</text>
</view>
<view class="flex justify-between align-center mb-12" v-if="item.upgradeGoodsAlias">
<text class="good-alias">商品别名:{{ replaceItemText(item.upgradeGoodsAlias) || '' }}</text>
</view>
<view class="flex align-center">
<text class="good-sku">{{ item.positionStr || item.upgradeGoodsTypeName }}</text>
<text class="good-count">x{{ item.number }}</text>
</view>
</view>
</view>
<view class="flex align-center my-16">
<view class="sprite-icon icon-coupon fs-14"></view>
<text class="fs-14 coupon-name">{{ orderInfo.couponName || '' }}{{ orderInfo.customerCoupon.customerCouponCode || '' }}({{ orderInfo.customerCoupon.employeeName || '' }})</text>
</view>
<view class="flex justify-end align-center">
<text class="good-total-lable">商品总金额:</text>
<text class="good-total-value">
<text class="unit">¥</text>
{{ orderInfo.total_price }}
</text>
</view>
</view>
<!-- 工单信息 -->
<view class="box-shell pt-32">
<view class="box-shell-title">工单信息</view>
<view class="order-info pt-16">
<view v-for="(item, index) in orderObj" :key="index" class="flex align-center pt-16">
<view class="label">{{ item.label }}</view>
<view v-if="item.key == 'status'">
<view class="value" :style="{ color: status[orderInfo.status].color || '' }">
{{ status[orderInfo.status].text }}
</view>
</view>
<view v-else>
<view class="value">
<view v-if="item.key == 'payType'">
{{ payType[orderInfo.selectPayType] || '' }}
</view>
<view v-else>{{ orderInfo[item.key] || '' }}</view>
</view>
</view>
<view v-if="item.copy" class="copy-btn" @click="setCopyData(orderInfo[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view>
</view>
<!-- <view class="customize-btn" v-if="item.dateChange" @click.stop="customizeDate">自定义</view> -->
</view>
<view v-if="(orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length">
<view class="flex align-start pt-16">
<view class="label">付款凭证</view>
<view class="image-box flex">
<view class="value" @click="previewImage" v-for="(item, index) in orderInfo.payVoucherList" :key="index">
<view class="image">
<image :src="item.payVoucher" />
</view>
</view>
</view>
</view>
</view>
<view v-if="orderInfo.status == 5 || orderInfo.status == 12">
<view class="flex align-center pt-16">
<view class="label">退款明细</view>
<view class="value">{{ orderInfo.refundType == 1 ? '退全款' : '退部分款' }}¥{{ orderInfo.refundAmount }}</view>
</view>
</view>
<view class="paid" v-if="orderInfo.payOrder && orderInfo.payOrder.payStatus == 2">
<!-- <image src="../../images/paid.png" /> -->
</view>
</view>
</view>
<!-- 客户信息 -->
<view class="box-shell">
<view class="box-shell-title">客户信息</view>
<view class="order-info pt-16">
<view class="flex align-center pt-20" v-for="(item, index) in customerObj" :key="index">
<view class="label">{{ item.label }}</view>
<view class="flex flex-1">
<view class="value" :style="{ color: item.color || '#333' }">
<view v-if="item.arr">
<view v-if="orderInfo[item.arr[1]]" class="flex">
<view v-for="(i, ind) in item.arr" :key="ind">
<view class="value-item text-hide">
<text v-if="ind == 1" class="lineText">|</text>
{{ orderInfo[i] }}
</view>
</view>
</view>
</view>
<view v-else>
{{ item.enum ? item.enum[orderInfo[item.key]] : orderInfo[item.key] || '' }}
</view>
</view>
<view v-if="item.copy" class="copy-btn" @click="setCopyData(orderInfo[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view>
</view>
</view>
</view>
</view>
<view v-if="orderInfo.selectPayType == 0" class="order-info">
<view class="flex align-center pt-16">
<view class="label">拒升理由</view>
<view class="value">
{{ orderInfo.customer.refusalReason ? orderInfo.customer.refusalReason : '' }}
</view>
</view>
</view>
</view>
<view v-if="warrantyCardList.length || warrantyCardVisible" class="box-shell">
<view class="box">
<view class="box-shell-title">{{ orderInfo.selectPayType == 0 ? '客服' : '质保信息' }}</view>
<view class="warranty-list" v-for="(item, index) in warrantyCardList" :key="index">
<view class="warranty flex align-center justify-between pt-20">
<view class="flex align-center">
<view class="label">质保产品</view>
<view class="value">{{ replaceItemText(item.goodsName) }}</view>
</view>
<view class="flex align-center edit-warranty" @click="warrantyEdit(item)" v-if="orderInfo.constructionFlag == 'Y'">
<view class="sprite-icon icon-edit mr-8"></view>
质保价格
</view>
</view>
<view class="warranty flex align-center pt-20">
<view class="label">质保期</view>
<view class="value">{{ item.warrantyPeriod }}</view>
</view>
<view class="warranty flex align-start pt-20">
<view class="label">质保编码</view>
<view class="codeImg-box">
<image v-if="item.barCodeUrl" :src="item.barCodeUrl" class="barCodeImg" />
<!-- <view class="barCode">{{ item.cardCode }}</view> -->
</view>
</view>
</view>
<view class="warranty-list">
<view class="warranty flex align-start pt-20">
<view class="label">{{ orderInfo.selectPayType == 0 ? '客服号' : '质保查询' }}</view>
<view class="value">
<view class="warranty-tips" v-if="warrantyCardVisible">
{{ orderInfo.selectPayType == 0 ? '建议让客户扫码关注客服号领取礼包' : '建议让客户扫码关注客服查询质保' }}
</view>
<image v-if="warrantyCardVisible" :src="customerService" class="customerService" />
</view>
</view>
</view>
</view>
</view>
<view class="flex align-center footer-box justify-center" v-if="isMake && orderInfo.status !== 12">
<view class="edit btn flex-1" @click="repeal">撤销工单</view>
</view>
<!-- <view class="flex align-center footer-box justify-center" v-if="orderInfo.constructionFlag == 'Y'">
<view class="edit btn flex-1" @click="repeal">再来一单</view>
</view> -->
<!-- 已支付4 战败2 已评价6 三种状态才展示 并且不是通过失效客户录入的战败单 -->
<view v-if="!userInfo.isSuper && userInfo.loginRole != 3 && userInfo.loginRole != 6 && userInfo.userType == 2 && (orderInfo.status == 4 || orderInfo.status == 2 || orderInfo.status == 6) && ((orderInfo.subOrderList && orderInfo.subOrderList.length) || (orderInfo.packageGoodsList && orderInfo.packageGoodsList.length))">
<!-- 不需要走签名逻辑 -->
<view v-if="signatureSwitch && orderInfo.selectPayType != 0" class="btn-box" :class="isFullSucreen ? 'isFullSucreen-btn' : ''">
<view class="btn text-center" bindtap="navOrderSignature">客户签名确认</view>
</view>
<view v-else class="btn-box" :class="isFullSucreen ? 'isFullSucreen-btn' : ''">
<!-- <tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" /> -->
<!-- <view class="btn text-center" bindtap="showAgain">继续下单</view> -->
<view class="btn text-center" @click="confirmConstruction">确认完成施工</view>
</view>
</view>
</view>
<PublishPopup ref="calendarPopup" popupClass="calendarPopup" :showClose="false" :showTitle="false" @confirm="confirmCalendar">
<template #content>
<uni-calendar class="calendar" :showMonth="false" @change="calendarChange" />
</template>
</PublishPopup>
<PublishPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false">
<template #content>
<view>
<image class="tipsPopupBg" :src="bg" />
<view class="title">重要提示</view>
<view class="tipsConent">
<view>是否确认撤销工单?</view>
</view>
</view>
</template>
</PublishPopup>
<PublishPopup ref="IsExistTipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false">
<template #content>
<view>
<image class="tipsPopupBg" :src="bg" />
<view class="title">重要提示</view>
<view class="tipsConent">
<view>订单已发起退款,禁止撤销!</view>
<view>如需撤销请联系总部运营。</view>
</view>
</view>
</template>
<template #footer>
<view class="isExistTips-btn-box">
<view class="sure-btn btn flex-1" @click="closeIsExistTipsPopup">好的</view>
</view>
</template>
</PublishPopup>
<PublishPopup :key="popupKey" ref="warrantyPopup" popupClass="warrantyPopup" type="center" title="质保价格" :showClose="true" @confirm="confirmEdit">
<template #content>
<view class="warranty-content">
<view class="name">产品:{{ replaceItemText(warrantyEditObj.goodsName) }}</view>
<view class="label">质保价格</view>
<textarea class="warranty-input" v-model="warrantyEditObj.warrantyPrice" maxlength="50" placeholder="请输入(最多50字)" />
<view class="tips">质保价格输入的内容会在车主查询质保卡时显示</view>
</view>
</template>
</PublishPopup>
</view>
</template>
<script>
import utils from '@/utils/utils'
import order_mixins from '../../order_mixins.js'
import dayjs from 'dayjs'
import { index } from '@/env'
import PublishPopup from '@/components/PublishPopup.vue'
export default {
name: 'OrderDetail',
components: {
PublishPopup
},
props: {
transmissionOfData: {
type: Object,
default: () => ({})
}
},
watch: {
transmissionOfData: {
async handler(newVal) {
if (newVal) {
console.log('接收到的交易数据:', newVal)
console.log('this.orderObjData', this.transmissionOfData)
let baseConfigData = await this.setConfigInfo(getApp().globalData)
this.baseConfigData = baseConfigData
this.getDetail(this.transmissionOfData.orderCode)
const userInfo = uni.$storage.get('userInfo')
}
},
immediate: true
}
},
data() {
return {
...order_mixins.data,
orderInfo: {},
baseConfigData: {},
customerService: '',
defaultCustomerService: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/kf.png',
failCustomerService: '../images/kfrefresh.png',
warrantyCardVisible: true,
signatureSwitch: false, //不需要走签名逻辑 没有开启签名功能或则是战败订单
warrantyCardList: [],
isMake: true,
selectDate: null,
warrantyEditObj: {},
isShow: false,
bg: require('@/assets/images/boutique/tipsPopupBg.png'),
popupKey: 0
}
},
async mounted() {},
methods: {
replaceItemText(item) {
var reg = getRegExp(';~;', 'g')
return item ? item.replace(reg, ' ') : ''
},
async getPositionList() {
const res = await uni.$api.boutiqueApi.getPositionList({})
return res
},
async getDetail(orderCode) {
this.isShow = false
uni.showLoading({
title: '加载中...',
mask: true
})
const userInfo = uni.$storage.get('userInfo')
const positionTypeList = (await this.getPositionList()) || []
let _this = this
uni.$api.boutiqueApi
.getPackageGoodsDetail({
orderCode
})
.then(async data => {
await this.getServiceBaseInfo(data.merchantId)
await this.getSignatureSwitch(data.merchantId)
if (data.selectPayType != 2 && (data.status == 4 || data.status == 6 || data.status == 12)) {
// 查询订单可展示按钮
// commonApi.getMoreBtnAPI({ orderCode: data.orderCode }).then(res => {
// let { code, data } = res
// if (code == 0) {
// this.showMoreBtn = data.refundApplyButton == 'Y' || data.refundApplyDetailButton == 'Y'
// }
// })
}
console.log('3255555666')
// 服务商是否使用膜卷号配置
if (!userInfo?.isSuper && userInfo.userType == 2 && data.status != 10 && data.status != 9) {
let isUseFilmRoll = await this.getServiceFilmRollSetting(data?.sellerMerchantId)
this.isUseFilmRoll = isUseFilmRoll
}
console.log('32555556669999')
let couponName = data.customerCoupon ? data.customerCoupon.couponName : ''
let total_price = 0
for (var i = 0; i < data?.subOrderList?.length; i++) {
let e = data?.subOrderList[i]
total_price += e.totalPrice
e.price = Number(utils.decimal(Number(e.totalPrice / e.number), 2)).toFixed(2)
e.positionStr = positionTypeList.filter(v => v.positionValue == e.upgradeGoodsPosition)[0]?.positionName || ''
if ((e.upgradeWarrantyPeriod || e.upgradeWarrantyPeriod > 0) && data.selectPayType != 0) {
const warrantyItem = {
warrantyPeriod: e.upgradeWarrantyPeriod || '',
goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName || '',
cardCode: e.cardCode || '',
warrantyPrice: e.warrantyPrice || '',
barCodeUrl: ''
}
Object.keys(warrantyItem).forEach(key => {
if (typeof warrantyItem[key] === 'function') {
warrantyItem[key] = ''
} else if (typeof warrantyItem[key] === 'object' && warrantyItem[key] !== null) {
warrantyItem[key] = JSON.stringify(warrantyItem[key])
}
})
this.warrantyCardList.push(warrantyItem)
}
// 膜类商品 并且服务商开通了使用膜卷号配置 不走签名流程
if (this.baseConfigData?.membraneTypeList?.includes(e?.upgradeGoodsType) && this.isUseFilmRoll && !this.signatureSwitch) {
let result = await api.getfilmRollNoByGoods({
upgradeGoodsId: e.upgradeGoodsId,
yqMerchantId: data?.sellerMerchantId,
merchantId: data?.merchantId
})
e.filmNumberData = result?.data || []
// 仅配置一个膜卷号 自动选中
if (!e.filmRollNo && e.filmNumberData?.length == 1) e.filmRollNo = e.filmNumberData[0]
}
}
if (data.packageGoodsList) {
data.packageGoodsList.forEach(item => {
item.packageGoodsOrderList.forEach(g => {
g.price = g.totalPrice ? Number(g.totalPrice) / Number(g.number) : g.upgradePrice
})
item.goodsList = item.packageGoodsOrderList
item.price = item.goodsList.reduce((prev, cur) => {
return prev + Number(cur.totalPrice) / Number(cur.number)
}, 0)
item.count = item.goodsList.length ? item.goodsList[0].number : 1
let total = item.price * item.count
item.totalPrice = utils.decimal(total, 2)
item.packageGoodsOrderList.forEach(g => {
g.positionStr = positionTypeList.filter(v => v.positionValue == g.upgradeGoodsPosition)[0]?.positionName || ''
})
total_price += item.totalPrice
})
}
data = {
...data.customer,
...data.payOrder,
...data,
packageGoodsList: data.packageGoodsList,
couponName,
total_price: data.selectPayType == 0 ? 0 : Number(utils.decimal(total_price, 2)).toFixed(2)
}
if (data.customerCoupon) {
data.customerCoupon.customerCouponCode = data.customerCoupon.customerCouponCode.split('-')[0]
}
if (data.orderTime) data.time = dayjs(data.orderTime).format('YYYY-MM-DD HH:mm:ss')
if (data.customer && data.customer.carSeriesName) {
data.carType = `${data.customer.carBrand || ''}-${data.customer.carChildsBrandName || ''}-${data.customer.carSeriesName || ''}`
}
this.isShow = true
uni.hideLoading()
this.orderInfo = data
console.log(this.orderInfo, 'this.orderInfo')
console.log(this.orderInfo.selectPayType, this.orderInfo.constructionFlag)
this.isMake = this.orderInfo.constructionFlag !== 'Y' && this.orderInfo.selectPayType !== 1 && this.orderInfo.selectPayType !== 3 && this.orderInfo.selectPayType !== 4 && this.orderInfo.status !== 9
this.invoiceName = data.invoiceStatus == 2 ? '查看发票' : '申请开票'
// 去掉车主评价功能
// this.setQrBoxHeight()
// if (data.status == 6) return
// this.getQrCode(data)
this.getWorkWechatLiveQRCode()
// 条形码
this.warrantyCardList.length && this.getBarCode()
// 校验是否显示二级流量方
if (data.subShopMerchantName) {
if (_this.customerObj.findIndex(val => val?.key && val.key == 'subShopMerchantName') < 0) {
_this.customerObj[_this.customerObj.length - 2] = {
label: '二级流量方',
key: 'subShopMerchantName'
}
}
}
// 获取园区店技师配置信息
// uni.$api.boutiqueApi
// .getQYTechnicianList({
// yqMerchantId: uni.$storage.get('userInfo')?.merchantId
// })
// .then(respone => {
// if (respone?.code == 0) {
// if (respone?.data.length > 0) this.isArtificer(respone.data)
// }
// })
// } else {
// wx.showModal({
// title: '温馨提示',
// content: message,
// showCancel: false,
// confirmText: '刷新',
// confirmColor: '#347BFF',
// success(res) {
// if (res.confirm) {
// _this.getDetail(orderCode)
// }
// }
// })
// }
})
.catch(error => {
console.log(error)
uni.hideLoading()
})
},
getServiceBaseInfo(merchantId) {
uni.$api.boutiqueApi
.getServiceBaseInfo({
merchantId
})
.then(data => {
const warrantyCardVisible = data.cardCodeFlag && data.cardCodeFlag == 1
this.warrantyCardVisible = !warrantyCardVisible
})
},
getSignatureSwitch(merchantId) {
uni.$api.boutiqueApi
.getSignatureSwitch({
merchantId
})
.then(data => {
// const warrantyCardVisible = data.cardCodeFlag && data.cardCodeFlag == 1
const signatureSwitchValue = data?.signatureSwitch && data?.signatureSwitch == 1
this.signatureSwitch = signatureSwitchValue
})
},
getWorkWechatLiveQRCode() {
this.customerService = ''
let { failCustomerService, defaultCustomerService } = this
let { orderCode, customerPhone: phoneNumber, selectPayType } = this.orderInfo
// console.log(orderCode, phoneNumber, selectPayType)
// 订单状态 1-升级订单 2-战败订单
let orderType = selectPayType == 0 ? 2 : 1
uni.$api.boutiqueApi
.getWorkWechatLiveQRCode({
orderCode,
phoneNumber,
orderType
})
.then(data => {
if (data) {
this.customerService = data
} else {
this.customerService = defaultCustomerService
}
})
// }, 3000)
},
/** 获取服务商是否使用膜卷号 */
getServiceFilmRollSetting(yqMerchantId) {
console.log('getServiceFilmRollSetting')
const app = getApp()
return new Promise((resolve, reject) => {
uni.$api.boutiqueApi
.getServiceFilmRollSetting({
merchantId: yqMerchantId
})
.then(data => {
app.globalData.serviceFilmRollSetting = data
resolve(app.globalData.serviceFilmRollSetting)
})
.catch(error => {
console.log(error)
})
})
},
setConfigInfo(globalData) {
const app = getApp()
return new Promise((resolve, reject) => {
// 如果有 直接返回
// console.log(app.globalData.YQorderSetting, 'app.globalData.YQorderSetting')
// console.log('app.globalData.YQorderSetting', app.globalData.YQorderSetting)
let { configInfo } = globalData
const target = ['develop', 'develop', 'test', 'production', 'beta']
if (configInfo) {
return resolve(configInfo)
} else {
uni.request({
// url: `${domain}${path}?method=${method}`,
url: `https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=dj-car-boutique-work-wechat-miniapp&env=${target[index]}`,
// data,
method: 'GET',
// header,
dataType: 'json',
responseType: 'text',
success(response) {
app.globalData.configInfo = response.data
resolve(response.data)
},
fail(error) {
console.log(error, 'error')
},
complete() {
// wx.stopPullDownRefresh()
// wx.hideNavigationBarLoading()
}
})
}
})
},
getBarCode() {
// warrantyCardList
let that = this
let { warrantyCardList } = this
console.log(warrantyCardList, 'warrantyCardList')
warrantyCardList.forEach((element, index) => {
setTimeout(() => {
element.cardCode &&
uni.$api.boutiqueApi
.createBarCode({
content: element.cardCode
})
.then(data => {
// 待优化 应该都有之后再一次性更新
// warrantyCardList[index].barCodeUrl = 'http://qcimg01.glsx.com.cn:7060/group1/M00/02/96/wKgD3mNXkD-ALMu3AAABmn9Id4c794.png'
this.$set(this.warrantyCardList[index], 'barCodeUrl', data)
console.log(this.warrantyCardList, 'getBarCode')
})
.catch(err => {})
}, 1000 * index)
})
},
// 撤销该工单
async repeal() {
const that = this
uni.$api.boutiqueApi
.refundApplyRecordIsExist({
orderCode: this.transmissionOfData.orderCode
})
.then(data => {
console.log(data)
if (data === 'Y') {
that.$refs.IsExistTipsPopup.open()
} else {
that.$refs.tipsPopup
.open()
.then(() => {
uni.$api.boutiqueApi
.revokeOrder({
orderCode: that.transmissionOfData.orderCode
})
.then(data => {
uni.showToast({
title: '操作成功',
icon: 'success'
})
that.getDetail(that.transmissionOfData.orderCode)
})
})
.catch(() => {
console.log('用户点击了取消或关闭')
})
}
})
},
closeIsExistTipsPopup() {
this.$refs.IsExistTipsPopup.closePopup()
},
customizeDate() {
console.log(this.$refs.calendarPopup, 'this.$refs.calendarPopup')
this.$refs.calendarPopup.open()
},
confirmCalendar() {
this.rangeSelect(this.selectDate)
},
setCopyData(e) {
utils.setCopyData(`${e}`)
},
// 修改订单时间
rangeSelect(date) {
let { orderInfo } = this
let params = {
orderCode: orderInfo.orderCode,
orderTime: date + ' 00:00:00'
}
uni.$api.boutiqueApi
.updateOrderTime(params)
.then(result => {
if (result) {
uni.showToast({ title: '修改日期成功' })
this.orderInfo.time = params.orderTime
} else {
uni.showToast({ title: '修改日期失败' })
}
})
.catch(err => {
console.log(err)
})
this.$refs.calendarPopup.closePopup()
},
calendarChange(date) {
this.selectDate = date.year + '-' + date.month + '-' + date.date
},
warrantyEdit(item) {
console.log(item)
// 不添加前出现Property or method "toJSON" is not defined
//this.warrantyEditOb.warrantyPrice一直不回显
//添加 popupKey 强制组件重新渲染
this.popupKey++
this.warrantyEditObj = item
this.$nextTick(() => {
this.$refs.warrantyPopup.open()
})
},
confirmEdit() {
uni.$api.boutiqueApi
.modifyWarrantyPrice({ ...this.warrantyEditObj })
.then(result => {
uni.showToast({ title: '更新成功', icon: 'success' })
this.$refs.warrantyPopup.closePopup()
this.getOrderDetail(this.orderInfo.orderCode)
})
.catch(err => {})
}
}
}
</script>
<style scope lang="scss">
.order-detail {
position: relative;
height: 100%;
// Popup样式
::v-deep .tipsPopup .uni-popup__wrapper {
width: toRpx(848);
height: toRpx(744);
border-radius: toRpx(42);
background: rgb(255, 255, 255) !important;
.tipsPopupBg {
border-radius: toRpx(42) toRpx(42) 0 0;
width: 100%;
height: toRpx(244);
}
.title {
color: #333333;
font-size: toRpx(40);
font-weight: 500;
text-align: center;
margin-top: toRpx(48);
}
.tipsConent {
text-align: center;
color: #666666;
font-size: toRpx(32);
font-weight: 400;
padding: toRpx(16) toRpx(64);
line-height: toRpx(48);
text {
color: #347bff;
}
}
.isExistTips-btn-box {
display: flex;
justify-content: center;
position: absolute;
border-radius: 0 0 toRpx(42) toRpx(42);
bottom: toRpx(40);
width: 100%;
.btn {
height: toRpx(80);
border-radius: toRpx(48);
opacity: 1;
line-height: toRpx(80);
text-align: center;
color: rgba(26, 26, 26, 0.6);
font-size: toRpx(32);
font-weight: 500;
margin: auto toRpx(64);
}
.sure-btn {
color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
}
}
::v-deep .warrantyPopup .uni-popup__wrapper {
width: 36%;
height: toRpx(808);
border-radius: toRpx(32);
background: #fff !important;
.popup-top-box {
padding: toRpx(48) toRpx(64);
border-radius: toRpx(32);
font-size: toRpx(40);
font-weight: 500;
text-align: left;
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%) !important;
}
.warranty-content {
padding: toRpx(0) toRpx(64);
.name {
color: #666666;
font-size: toRpx(32);
font-weight: 400;
margin-bottom: toRpx(48);
}
.label {
color: #333333;
font-size: toRpx(32);
font-weight: 400;
margin-bottom: toRpx(24);
}
.warranty-input {
border-radius: 12px;
background: #f4f5f7;
height: toRpx(216);
width: 100%;
margin-bottom: toRpx(24);
padding: toRpx(32) toRpx(32) toRpx(32) toRpx(32);
.uni-textarea-placeholder {
color: #999999;
font-size: toRpx(32);
font-weight: 400;
}
}
.tips {
color: #666666;
font-size: toRpx(28);
font-weight: 400;
}
}
}
::v-deep .calendarPopup .uni-popup__wrapper {
width: 100%;
height: 62vh;
.calendar {
width: 100%;
height: calc(100% - #{toRpx(164)});
}
}
.scroll-y {
height: calc(100% - #{toRpx(248)});
overflow-y: scroll;
&::-webkit-scrollbar {
width: 0;
height: 0;
background: transparent;
}
}
.construction-flag-y {
height: calc(100% - #{toRpx(182)});
}
.px-48 {
padding: 0 toRpx(48);
}
.pt-6 {
padding-top: toRpx(6);
}
.pt-8 {
padding-top: toRpx(8);
}
.pt-16 {
padding-top: toRpx(16);
}
.pt-20 {
padding-top: toRpx(20);
}
.pt-12 {
padding-top: toRpx(12);
}
.mb-12 {
margin-bottom: toRpx(12);
}
.fs-14 {
font-size: toRpx(14);
}
.fs-32 {
font-size: toRpx(32);
}
.fs-26 {
font-size: toRpx(26);
}
.fs-34 {
font-size: toRpx(34);
}
.fw-5 {
font-weight: 500;
}
.fw-7 {
font-weight: 700;
}
.fs-13 {
font-size: toRpx(13);
}
.ml-12 {
margin-left: toRpx(12);
}
.mr-8 {
margin-right: toRpx(8);
}
.mt-12 {
margin-top: toRpx(12);
}
.mt-20 {
margin-top: toRpx(20);
}
.my-16 {
margin: toRpx(16) 0;
}
.py-8 {
padding: toRpx(8) 0;
}
.py-16 {
padding: toRpx(16) 0;
}
.pt-32 {
padding-top: toRpx(32) !important;
}
.mb-20 {
margin-bottom: toRpx(20);
}
.cl-gray {
color: #666666;
}
.flex-1 {
flex: 1;
}
.date-box {
display: flex;
align-items: center;
position: relative;
}
.date-box-label {
font-weight: 400;
font-size: toRpx(28);
color: #333333;
}
.date-box-value {
font-weight: 500;
font-size: toRpx(40);
color: #333333;
}
.required {
color: #f00;
margin-left: toRpx(8);
}
.handlerBtn {
color: #4673ff;
font-size: toRpx(26);
font-weight: 400;
margin-left: toRpx(8);
}
.customize-btn {
color: #4673ff;
font-size: toRpx(26);
font-weight: 400;
margin-left: toRpx(16);
}
.copy-btn {
display: flex;
align-items: center;
color: #808291;
.copy {
margin-right: toRpx(8);
margin-left: toRpx(20);
}
}
.top-tips {
width: 100%;
height: toRpx(152);
border-radius: toRpx(16);
background: linear-gradient(136.3deg, #fdffff 0%, #ebfff6 46%, #f4fffc 100%);
color: #333333;
padding: 0 toRpx(32);
position: relative;
.checkbox-filled {
margin-right: toRpx(24);
}
.topTipsRightIcon {
position: absolute !important;
bottom: 0;
right: toRpx(16);
}
}
.box-shell {
width: 100%;
border-radius: toRpx(16);
background: #ffffff;
padding: toRpx(24) toRpx(32);
margin-top: toRpx(16);
&-title {
font-size: toRpx(28);
color: #333333;
font-weight: 400;
}
.meal-box {
border-radius: toRpx(24);
border: toRpx(2) solid #dce0e6;
padding: toRpx(24) toRpx(32);
box-sizing: border-box;
margin-top: toRpx(16);
.meal-hd {
color: #333333;
font-size: toRpx(32);
font-weight: 400;
margin-bottom: toRpx(20);
.price {
font-weight: 500;
}
}
.meal-bd {
background: #f6f7fa;
border-radius: toRpx(16);
padding: 0 toRpx(32);
box-sizing: border-box;
.meal-bd-head {
border-bottom: toRpx(2) solid #dce0e6;
padding: toRpx(24) 0;
.name {
color: #333333;
font-size: toRpx(28);
font-weight: 400;
}
.meal-bd-bottom {
color: #999999;
font-size: toRpx(24);
font-weight: 400;
margin-left: toRpx(8);
}
.price {
color: #333333;
font-size: toRpx(28);
font-weight: 400;
}
}
.meal-bd-box:last-child .meal-bd-head {
border-bottom: none;
}
}
}
.good-list {
margin-top: toRpx(16);
.good {
color: #333333;
font-size: toRpx(28);
border-radius: toRpx(24);
background: #f5f7fa;
padding: toRpx(30) toRpx(24) toRpx(24) toRpx(24);
margin-bottom: toRpx(16);
.good-name {
font-weight: 400;
flex: 4;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.good-price {
font-weight: 500;
flex: 1;
text-align: right;
}
.good-alias {
font-size: toRpx(24);
font-weight: 400;
}
.good-sku {
color: #999999;
font-size: toRpx(24);
font-weight: 400;
}
.good-count {
color: #999999;
font-size: toRpx(24);
font-weight: 400;
}
}
}
.coupon-name {
color: #292d33;
font-size: toRpx(24);
font-weight: 400;
margin-left: toRpx(8);
}
.good-total-lable {
color: #757980;
font-size: toRpx(28);
font-weight: 400;
}
.good-total-value {
color: #4673ff;
font-size: toRpx(40);
font-weight: 700;
}
.order-info {
.value .value-item text {
margin: 0 toRpx(6);
}
.label {
width: toRpx(156);
color: #999999;
font-size: toRpx(26);
font-weight: 400;
}
.value {
color: #222222;
font-size: toRpx(26);
font-weight: 400;
}
.image-box {
.value {
}
.image {
width: toRpx(106);
height: toRpx(112);
margin-right: toRpx(16);
image {
width: 100%;
height: 100%;
border-radius: toRpx(8);
}
}
}
}
.warranty-list {
.value .value-item text {
margin: 0 toRpx(6);
}
.label {
width: toRpx(156);
color: #999999;
font-size: toRpx(26);
font-weight: 400;
}
.value {
color: #222222;
font-size: toRpx(26);
font-weight: 400;
}
.codeImg-box {
.barCode {
color: #292d33;
font-size: toRpx(28);
font-weight: 400;
}
.barCodeImg {
width: toRpx(600);
height: toRpx(158);
}
}
.edit-warranty {
color: #347bff;
font-size: toRpx(28);
font-weight: 400;
}
}
.warranty-tips {
margin-bottom: toRpx(12);
}
.customerService {
width: toRpx(320);
height: toRpx(320);
}
}
.footer-box {
position: absolute;
bottom: toRpx(24);
width: 100%;
left: 0;
.btn {
width: 80%;
height: toRpx(80);
border-radius: toRpx(48);
font-size: toRpx(28);
font-weight: 500;
line-height: toRpx(80);
text-align: center;
}
.confirm {
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
margin-left: toRpx(32);
}
.edit {
background: #3b73ff1a;
color: #4673ff;
}
}
}
</style>
<template>
<view class="order-management">
<view class="search-box">
<input class="search-input" placeholder-class="placeholder" v-model="keyword" confirm-type="search" @confirm="search" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" />
<view class="clear flex" @click="clear">
<uni-icons type="closeempty" size="16" v-if="keyword"></uni-icons>
</view>
</view>
<view class="tab-container flex justify-between">
<view class="flex">
<view class="tab-item" :class="{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)">
<text>{{ item.tabName }}</text>
<text class="num">{{ item.num }}</text>
</view>
</view>
<view class="flex filter-item justify-center align-center" @click="openFilter">
筛选
<view class="sprite-icon icon-filter"></view>
</view>
</view>
<view class="px-48">
<view class="tips" v-if="waitInputCount">
<view class="sprite-icon icon-study-tips"></view>
{{ tipsProps.tipsText }}
<view @click.stop="waitinputorderClick" class="waitinputorder-btn">补录订单</view>
</view>
</view>
<z-paging ref="paging" :fixed="false" paging-class="paging-class px-48" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10">
<OrderCard v-for="(item, index) in dataList" :key="index" :orderCardDetail="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump" @refresh="search()"></OrderCard>
</z-paging>
<PublishPopup ref="WaitinputorderPopup" popupClass="waitinputorderPopup" :showClose="true" title="选择交易参考号">
<template #content>
<view class="popup-content px-48">
<view class="waitinputorder-tab-container">
<view class="waitinputorder-tab-buttons">
<view v-for="(item, index) in waitinputorderTabList" :key="index" class="waitinputorder-tab-button" :class="{ active: activeIndex === index }" @click="tabChange(index)">
<text>{{ item.name }}</text>
<view v-if="item.showQuestion" class="question-icon" @click.self="showQuestionPopup()">
<uni-icons type="help" size="16" color="#999"></uni-icons>
</view>
</view>
</view>
</view>
<scroll-view class="order_no_box" scroll-y enable-back-to-top refresher-enabled="true" :refresher-triggered="triggered" @refresherrefresh="onRefresh" v-show="activeIndex === 0" @scrolltolower="pageonReachBottom">
<view v-if="normalOrderNoList.length > 0" class="order-gap">
<view v-for="(item, index) in normalOrderNoList" :key="index" class="order_no_item" :class="{ checkActive: checkListObj[item.tradeNo] }" @click="activeClick(item)">
<view class="message">
<view v-for="(subItem, idx) in itemFormObj" :key="idx" class="item flex align-center">
<view class="label">{{ subItem.label }}</view>
<view v-if="subItem.type === 'price'" class="value price_value">¥{{ priceFilter(item[subItem.prop]) }}</view>
<view v-else-if="subItem.type === 'select'" class="select_value" @click="selectTap(index)" :data-index="index">
<text class="text-hide">{{ filmOrderData[item.filmOrder] }}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
<view v-else class="value flex align-center">
{{ subItem.type === 'time' ? formatDate(item[subItem.prop]) : item[subItem.prop] }}
<view v-if="subItem.type === 'copy'" class="copy-btn" @click.stop="copyText(item[subItem.prop])">
<view class="sprite-icon icon-icon-copy copy"></view>
复制
</view>
</view>
</view>
</view>
<view class="sprite-icon icon-tag-checked checked" v-if="checkListObj[item.tradeNo]"></view>
</view>
</view>
<view class="nothing flex" v-else>
<image class="icon" src="../../../../assets/images/home/nothing.webp" />
暂无数据
</view>
</scroll-view>
<scroll-view class="order_no_box" scroll-y enable-back-to-top refresher-enabled="true" :refresher-triggered="triggered1" @refresherrefresh="onRefresh1" v-show="activeIndex === 1" @scrolltolower="pageonReachBottom">
<view v-if="abnormalOrderNoList.length > 0" class="order-gap">
<view v-for="(item, index) in abnormalOrderNoList" :key="index" class="order_no_item" :class="{ checkActive: checkListObj[item.tradeNo] }" @click="activeClick(item)">
<view class="message">
<view v-for="(subItem, idx) in itemFormObj" :key="idx" class="item flex align-center">
<view class="label">{{ subItem.label }}</view>
<view v-if="subItem.type === 'price'" class="value price_value">¥{{ priceFilter(item[subItem.prop]) }}</view>
<view v-else-if="subItem.type === 'select'" class="select_value" @click="selectTap(index)" :data-index="index">
<text class="text-hide">{{ filmOrderData[item.filmOrder] }}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
<view v-else class="value flex align-center">
{{ subItem.type === 'time' ? formatDate(item[subItem.prop]) : item[subItem.prop] }}
<view v-if="subItem.type === 'copy'" class="copy-btn" @click.stop="copyText(item[subItem.prop])">
<view class="sprite-icon icon-icon-copy copy"></view>
复制
</view>
</view>
</view>
</view>
<view class="sprite-icon icon-tag-checked checked" v-if="checkListObj[item.tradeNo]"></view>
</view>
</view>
<view class="nothing flex" v-else>
<image class="icon" src="../../../../assets/images/home/nothing.webp" />
暂无数据
</view>
</scroll-view>
</view>
</template>
<template #footer>
<view class="footer-box flex justify-center">
<view class="cancle-btn btn" @click="cancelSelection">取消</view>
<view class="sure-btn btn" @click="confirmSelection">确认</view>
</view>
</template>
</PublishPopup>
<PublishPopup ref="abnormalTipsPopup" popupClass="abnormalTipsPopup" :showClose="true" title="超分账期" @confirm="confirmTips">
<template #content>
<scroll-view scroll-y class="ul px-48">
<view class="title">字段定义</view>
<view class="li">○ 正常分账期:指客户付款后,未超过分账期 (一般指支付时间≤20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。</view>
<view class="li last">○ 超分账期:指客户付款后,超过分账期 (一般指支付时间>20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。</view>
<view class="title">操作指导</view>
<view class="li">① 补录订单:支持正常分账期或超分账期单笔或多笔流水补录1个订单</view>
<view class="li">情况一:单笔支付直接补录创建工单</view>
<view class="li last">情况二:客户多笔支付,补录工单时勾选多笔交易流水</view>
<view class="li">② 特殊情况:需通知运营在后台关联工单</view>
<view class="li">情况一:客户支付定金时间与尾款时间间隔20天以上</view>
<view class="li">情况二:客户购买车辆2台及以上的费用,一笔支付</view>
<view class="li last">情况三:支付费用时误操作(多付了)需部分退款</view>
<view class="li last">操作流程:驻店在小程序点击新建工单,收款方选择嘀加收款,收款方式选择其它收款,复制交易流水号(填写时流水号末尾加逗号,多笔交易流水号中间用逗号隔开),工单录完后通知线上运营在后台关联。</view>
</scroll-view>
</template>
</PublishPopup>
<order-screen ref="openFilter" @onConfirm="openFilterConfirm" />
</view>
</template>
<script>
import order_mixins from '../../order_mixins.js'
import { interceptionMixin } from '@/mixin/index'
import ZPMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin'
import OrderCard from './OrderCard'
import PublishPopup from '@/components/PublishPopup.vue'
import dayjs from 'dayjs'
import utils from '@/utils/utils'
import OrderScreen from '@/components/OrderScreen/index.vue'
export default {
name: 'OrderManagement',
mixins: [ZPMixin, interceptionMixin],
components: {
OrderCard,
PublishPopup,
OrderScreen
},
computed: {
orderObj() {
return order_mixins.data.orderObj || []
},
payType() {
return order_mixins.data.payType || {}
},
status() {
return order_mixins.data.status || {}
}
},
data() {
return {
itemFormObj: [
{
label: '交易参考号',
prop: 'tradeNo',
type: 'copy'
},
{
label: '支付时间',
prop: 'accountDate',
type: 'time'
},
{
label: '支付金额',
prop: 'totalFee',
type: 'price'
},
{
label: '商户名称',
prop: 'shopMerchantName'
}
],
tabList: [
{ tabName: '全部', num: 0 },
{ tabName: '待跟进', num: 0 },
{ tabName: '已升级', num: 0 },
{ tabName: '战败', num: 0 }
],
tabIndex: 0,
waitinputorderTabList: [
{ name: '正常分账期', showQuestion: false },
{ name: '超分账期', showQuestion: true }
],
activeIndex: 0,
keyword: '',
searchObj: {},
dataList: [],
triggered: false,
triggered1: false,
waitInputCount: 0, // 添加待补录计数
waitOrderTimer: null, // 定时器引用
tipsProps: {
tipsText: '该门店产生异常订单,请点击补录!',
showTips: true,
type: 2,
typeText: '补录订单'
},
normalOrderNoList: [],
abnormalOrderNoList: [],
abnormalCurrentPage: 1,
normalCurrentPage: 1,
abnormalPages: 1,
normalPages: 1,
checkListObj: {},
localUserInfo: null
}
},
mounted() {
uni.$track.add({ eventCode: 'app_order_management' })
this.localUserInfo = uni.$storage.get('userInfo') || {}
this.search()
this.startWaitOrderPolling()
},
beforeDestroy() {
this.clearWaitOrderPolling()
},
methods: {
clear() {
this.keyword = ''
this.search()
},
search() {
// 判断是不是超管 && !this.localUserInfo.isSuper
// ,不是只能筛选当前4s店的
if (!this.searchObj.merchantId) {
this.searchObj.merchantId = this.localUserInfo?.shopMerchantId
}
this.$refs.paging.reload()
this.getStatByStatus()
},
async waitinputorderClick() {
if (await this.inspectionOfProhibitionBill()) return
if (!this.normalOrderNoList.length && !this.abnormalOrderNoList.length) {
this.getTransactionSerialNumber()
}
this.$refs.WaitinputorderPopup.open()
},
handleToggleGoodsList(data) {
this.$set(data.item, 'showAllGoodsListFlag', data.flag)
},
switchTab(index) {
this.tabIndex = index
delete this.searchObj.statusList
this.search()
},
openFilter() {
this.$refs.openFilter.open()
},
openFilterConfirm(val) {
console.log(val)
this.searchObj = null
this.searchObj = val
console.log(this.searchObj)
this.search()
},
copyText(e) {
console.log(e)
uni.setClipboardData({
data: e,
success: () => {
uni.showToast({
title: '复制成功',
icon: 'success',
duration: 2000
})
}
})
},
tabChange(index) {
this.activeIndex = index
if (this.activeIndex === 0 && !this.normalOrderNoList.length) {
this.getTransactionSerialNumber()
}
if (this.activeIndex === 1 && !this.abnormalOrderNoList.length) {
this.getTransactionSerialNumber()
}
},
getStatByStatus() {
if ((this.searchObj.statusList && this.searchObj.statusList[0] == 'Y') || (this.searchObj.statusList && this.searchObj.statusList[0] == 'N')) {
this.searchObj.constructionFlag = this.searchObj.statusList[0]
delete this.searchObj.statusList
}
uni.$api.boutiqueApi
.statByStatus({
...this.searchObj,
keyword: this.keyword,
sceneType: 1
})
.then(result => {
const labelList = ['totalCount', 'waitUpgradeCount', 'upgradedCount', 'notUpgradeCount']
labelList.map((item, index) => {
this.tabList[index].num = result[item] ? result[item] : 0
})
console.log(this.tabList)
})
.catch(err => {
console.log(err)
})
},
pageonReachBottom() {
if (this.activeIndex === 0) {
if (this.normalPages == this.normalCurrentPage) return uni.showToast({ title: '列表已到底', icon: 'none' })
this.normalCurrentPage += 1
} else {
if (this.abnormalPages == this.abnormalCurrentPage) return uni.showToast({ title: '列表已到底', icon: 'none' })
this.abnormalCurrentPage += 1
}
this.getTransactionSerialNumber()
},
onRefresh() {
this.triggered = true
this.normalCurrentPage = 1
this.normalOrderNoList = []
this.getTransactionSerialNumber()
},
onRefresh1() {
this.triggered1 = true
this.abnormalCurrentPage = 1
this.abnormalOrderNoList = []
this.getTransactionSerialNumber()
},
getTransactionSerialNumber() {
uni.$api.boutiqueApi
.transactionSerialNumber({ currentPage: this.activeIndex === 0 ? this.normalCurrentPage : this.abnormalCurrentPage, pageSize: 10, inputOrderType: this.activeIndex + 1, inputStatus: 0 })
.then(result => {
if (this.activeIndex == 0) {
this.normalOrderNoList = [...this.normalOrderNoList, ...result.list]
this.normalPages = result.pages
this.triggered = false
this.triggered1 = false
} else {
this.abnormalOrderNoList = [...this.abnormalOrderNoList, ...result.list]
this.abnormalPages = result.pages
this.triggered = false
this.triggered1 = false
}
})
.catch(err => {
console.log(err)
})
},
queryList(pageNo, pageSize) {
console.log(this.searchObj)
let obj = {
keyword: this.keyword,
pageSize,
pageNum: pageNo,
sceneType: 1,
...this.searchObj
}
// 待跟进状态需要特殊处理避免带出已关闭
if ([2, 3].includes(this.tabIndex)) {
let target = {
1: 'R',
2: 'Y',
3: 'N'
}
obj.upgradeFinishFlag = target[this.tabIndex]
} else if (this.tabIndex == 1) {
obj.statusList = [1]
}
console.log(this.searchObj.statusList)
console.log(this.searchObj.statusList && this.searchObj.statusList[0])
if ((this.searchObj.statusList && this.searchObj.statusList[0] == 'Y') || (this.searchObj.statusList && this.searchObj.statusList[0] == 'N')) {
this.searchObj.constructionFlag = this.searchObj.statusList[0]
delete obj.statusList
}
uni.$api.boutiqueApi
.getWorkPackageGoodsList(obj)
.then(result => {
const { list, total } = result
// 这个是用来判断哪些用户可以撤销的
let userType = (!this.localUserInfo.isSuper && this.localUserInfo.merchantType) || (this.localUserInfo.loginRole !== 3 && this.localUserInfo?.loginRole !== 6)
// let userType = true
list.map(e => {
if (e.orderTime) e.orderTime = dayjs(new Date(e.orderTime)).format('YYYY-MM-DD HH:mm:ss')
e.subOrderList.map(i => {
i.totalPrice = Number(utils.decimal(i.totalPrice, 2)).toFixed(2)
})
e.total_price = e.totalPrice
e.totalPrice = Number(utils.decimal(e.totalPrice, 2)).toFixed(2)
// 开票按钮
e.invoiceName = e.invoiceStatus == 2 ? '查看发票' : '申请开票'
// && e.status != 1 待跟进现在也能撤销
let orderType = (this.localUserInfo.userType == 1 || this.localUserInfo.userType == 2) && e.status != 9 && ![1, 3, 4].includes(e.selectPayType)
// let orderType = this.localUserInfo.userType !== 1 && e.status != 9 && e.status != 1 && e.selectPayType != 3 && e.selectPayType != 1
// console.log(userType);
// console.log(orderType);
e.repeal = userType && orderType
// 处理subOrderList 商品为空的情况
e.subOrderList = e.subOrderList.filter(item => item.merchantGoodsId)
e.packageGoodsList?.forEach(item => {
item.packageGoodsOrderList.forEach(g => {
g.price = g.totalPrice ? Number(g.totalPrice) / Number(g.number) : g.upgradePrice
})
item.goodsList = item.packageGoodsOrderList
item.price = item.goodsList.reduce((prev, cur) => {
return prev + Number(cur.totalPrice) / Number(cur.number)
}, 0)
item.count = item.goodsList.length ? item.goodsList[0].number : 1
let total = item.price * item.count
item.totalPrice = utils.decimal(total, 2)
})
if (e.packageGoodsList && e.packageGoodsList.length) {
e.subOrderList = e.subOrderList.concat(e.packageGoodsList)
}
// e.subOrderList = e.subOrderList.filter(item => item.id)
// 处理显示订单右上角文字
let text = this.status[e.status].text
let color = this.status[e.status].color
let background = this.status[e.status].background
// 不是订单失效状态优先显示已施工
if (![9, 11, 12].includes(e.status) && e.constructionFlag == 'Y') {
text = '已施工'
color = '#347BFF'
background = '#F3F7FC'
}
e.statusText = text
e.statuscolor = color
e.statusbackground = background
// 商品是否包含太阳膜
e.isFilmOrder = e.subOrderList?.findIndex(subE => subE?.upgradeGoodsType == 1) > -1
})
console.log(list)
this.$refs.paging.complete(list)
})
.catch(err => {
this.$refs.paging.complete(false)
console.log(err)
})
},
// 10s轮询一次待补录
getWaitOrder() {
uni.$api.boutiqueApi
.waitinputorder()
.then(result => {
let { waitInputCount } = result
this.waitInputCount = waitInputCount
})
.catch(err => {})
},
// 启动轮询
startWaitOrderPolling() {
// 立即执行一次
this.getWaitOrder()
// 设置定时器,每10秒执行一次
this.waitOrderTimer = setInterval(() => {
this.getWaitOrder()
}, 10000)
},
// 清除轮询定时器
clearWaitOrderPolling() {
if (this.waitOrderTimer) {
clearInterval(this.waitOrderTimer)
this.waitOrderTimer = null
}
},
// 价格过滤器
priceFilter(num) {
var pow = Math.pow(10, 2)
return (Math.round((num / 100) * pow) / pow).toFixed(2)
},
formatDate(time) {
return dayjs(time).format('YYYY-MM-DD HH:mm:ss')
},
// 选择点击事件
selectTap(index) {
this.$emit('select-tap', index)
},
// 复制订单号
copyOutTradeNo(item) {
this.$emit('copy-out-trade-no', item)
},
showQuestionPopup() {
this.$refs.abnormalTipsPopup.open()
},
confirmTips() {
this.$refs.abnormalTipsPopup.closePopup()
},
activeClick(item) {
if (this.checkListObj[item.tradeNo]) {
this.$delete(this.checkListObj, item.tradeNo)
} else {
this.$set(this.checkListObj, item.tradeNo, item)
}
},
confirmSelection() {
const selectedItems = Object.values(this.checkListObj)
if (selectedItems.length === 0) {
uni.showToast({
title: '请选择交易参考号',
icon: 'none'
})
return
}
this.$refs.WaitinputorderPopup.closePopup()
this.$emit('jump', 'CreateOrder', {
selectedItems: selectedItems,
type: 'supplementOrder'
})
},
cancelSelection() {
this.checkListObj = {}
this.$refs.WaitinputorderPopup.closePopup()
},
jump(name, val) {
console.log(name, val, 'jump')
this.$emit('jump', name, val)
}
}
}
</script>
<style lang="scss" scope>
.order-management {
height: 100%;
.paging-class {
height: calc(100% - #{toRpx(336)});
}
.px-48 {
padding: 0 toRpx(48);
}
.search-box {
padding: toRpx(40) toRpx(48) toRpx(0);
margin-bottom: toRpx(24);
position: relative;
&::after {
content: '';
position: absolute;
left: 0;
top: 0;
z-index: -2;
width: 100%;
height: 100%;
opacity: 0.15;
background: linear-gradient(0deg, #94c2ff00 0%, #5294ff 100%);
}
&::before {
content: '';
position: absolute;
left: toMinusRpx(20);
top: toMinusRpx(28);
z-index: -1;
width: toRpx(136);
height: toRpx(136);
opacity: 0.6;
background: linear-gradient(-44.4deg, #94c2ff00 0%, #5294ff 100%);
filter: blur(24px);
}
.clear {
position: absolute;
right: toRpx(18);
top: toRpx(10);
height: 100%;
padding: 0 48rpx;
}
.search-input {
text-align: center;
height: toRpx(72);
border-radius: toRpx(40);
opacity: 1;
background: #f5f7fa;
.uni-input-placeholder {
color: #999ea8;
font-size: toRpx(28);
}
.placeholder {
height: 100%;
color: #999ea8;
font-family: uniicons;
display: flex;
align-items: center;
justify-content: center;
&::after {
display: block;
content: '\e654';
margin-left: 8rpx;
height: 100%;
display: flex;
align-items: center;
font-size: 36rpx;
}
}
}
}
.tab-container {
display: flex;
// justify-content: start;
padding: toRpx(0) toRpx(48);
margin-bottom: toRpx(24);
.filter-item {
// width: toRpx(164);
height: toRpx(72);
border-radius: toRpx(16);
background: #fff;
border: toRpx(2) solid #ffffffcc;
color: #333333;
font-size: toRpx(28);
font-weight: 400;
padding: toRpx(0) toRpx(40);
}
}
.tab-item {
// width: toRpx(164);
height: toRpx(72);
border-radius: toRpx(16);
margin-right: toRpx(20);
padding: toRpx(0) toRpx(40);
opacity: 1;
display: flex;
align-items: center;
justify-content: center;
font-size: toRpx(28);
color: #666666;
font-weight: normal;
background: #fff;
border: toRpx(2) solid #ffffffcc;
&.active {
border: toRpx(2) solid #ffffff;
background: linear-gradient(180deg, #6795ff 0%, #4a84f9 100%);
box-shadow: toRpx(4) toRpx(8) toRpx(16) 0 #81a3d659;
color: #ffffff;
font-weight: bold;
transform: scale(1.05);
}
.num {
margin-left: toRpx(4);
font-size: toRpx(20);
font-weight: 500;
}
}
.tips {
display: flex;
align-items: center;
justify-content: center;
font-size: toRpx(28);
width: 100%;
height: toRpx(76);
border-radius: 16px;
opacity: 1;
background: #fef5ea;
margin: toRpx(24) 0;
color: #ff9d0a;
&-text {
margin-top: toRpx(4);
}
.icon-study-tips {
margin-right: toRpx(8);
}
.waitinputorder-btn {
width: toRpx(136);
height: toRpx(50);
border-radius: toRpx(48);
opacity: 1;
background: #ffffff;
color: #4673ff;
font-size: toRpx(24);
font-weight: 500;
text-align: center;
line-height: toRpx(50);
}
}
.waitinputorderPopup .popup-content {
.waitinputorder-tab-container {
width: toRpx(488);
border-radius: toRpx(64);
opacity: 1;
background: #f5f7fa;
}
.waitinputorder-tab-buttons {
display: flex;
background-color: #f5f5f5;
border-radius: 24rpx;
overflow: hidden;
margin-bottom: 20rpx;
}
.waitinputorder-tab-button {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
font-size: toRpx(28);
font-weight: 500;
color: #333;
position: relative;
width: toRpx(236);
height: toRpx(56);
border-radius: toRpx(40);
&.active {
background-color: #000;
color: #fff;
}
.question-icon {
margin-left: 8rpx;
opacity: 0.6;
}
}
}
.order_no_box {
height: calc(67vh - #{toRpx(364)});
.order-gap {
display: grid;
grid-template-columns: 1fr 1fr;
gap: toRpx(36);
}
.order_no_item {
border-radius: toRpx(16);
opacity: 1;
border: toRpx(2) solid #dce0e6;
padding: toRpx(24) toRpx(32);
background: #f5f7fa;
position: relative;
.message {
.item {
margin-bottom: toRpx(12);
&:last-child {
margin-bottom: 0;
}
}
.label {
color: #999ea8;
font-size: toRpx(24);
font-weight: 400;
width: toRpx(120);
margin-right: toRpx(24);
}
.value {
color: #333333;
font-size: toRpx(24);
font-weight: 400;
}
}
.checked {
position: absolute;
top: 0;
right: 0;
}
}
.checkActive {
border: toRpx(2) solid #4673ff;
background: #4673ff1a;
}
.copy-btn {
display: flex;
align-items: center;
margin-left: auto;
color: #808291;
.copy {
margin-right: toRpx(8);
margin-left: toRpx(20);
}
}
.nothing {
width: 100%;
height: toRpx(228);
flex-direction: column;
margin-top: toRpx(76);
font-size: toRpx(24);
color: #999999;
box-sizing: border-box;
&.big-height {
height: toRpx(234);
}
.icon {
width: toRpx(288);
height: toRpx(144);
margin-bottom: toRpx(4);
}
}
}
.footer-box {
width: 100%;
height: toRpx(164);
background-color: #fff;
.btn {
width: 30%;
height: toRpx(80);
border-radius: toRpx(48);
opacity: 1;
line-height: toRpx(80);
text-align: center;
color: #333333;
font-size: toRpx(32);
font-weight: 500;
}
.cancle-btn {
background: #f0f1f5;
}
.sure-btn {
color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
margin-left: toRpx(32);
}
}
}
::v-deep .waitinputorderPopup .uni-popup__wrapper {
border-radius: toRpx(32) toRpx(32) 0 0;
opacity: 1;
width: 100%;
height: 67vh;
background-color: #fff !important;
.popup-top-box {
padding: toRpx(32) toRpx(52);
}
}
::v-deep .abnormalTipsPopup .uni-popup__wrapper {
border-radius: toRpx(32) toRpx(32) 0 0;
opacity: 1;
width: 100%;
height: 51vh;
background-color: #fff !important;
.ul {
height: 100%;
.title {
font-weight: 600;
font-size: toRpx(26);
color: #282829;
margin-bottom: toRpx(8);
}
.li {
font-size: toRpx(26);
color: #282829;
margin-bottom: toRpx(8);
}
.last {
margin-bottom: toRpx(32);
}
}
}
</style>
<template>
<view>
<view :class="[list.length > 0 ? 'package-list' : '']">
<view class="package-item" v-for="(item, index) in list" :key="index">
<view class="header">
<view class="header-left">
<view class="sprite-icon icon-blue-delete" @click="deleteGoods(index)"></view>
<view class="name">{{ item.packageGoods.packageAlias || item.packageGoods.packageName }}</view>
<view class="control">
<view class="minus" @click="decreaseNumber(item)">-</view>
<input class="uni-input control-input" type="number" maxlength="3" v-model="item.packageGoods.number" @blur="validateNumber($event, item)" />
<view class="add" @click="increaseNumber(item)">+</view>
</view>
</view>
<view class="price">¥{{ changeTotal(item) }}</view>
</view>
<view class="goods-item" v-for="(goods, ind) in item.packageGoods.goodsList" :key="ind">
<view class="goods-name">{{ goods.goodsAlias || goods.upgradeGoodsName }}</view>
<!-- <view class="alias-name">商品别名:阿尔法 T5极狐非三电整车延保(新车2年6万公里)</view> -->
<view class="front-gear-box">
<view class="front-gear-input-box">
<!-- <view class="front-gear-label" v-if="goods.merchantGoodsPosition || goods.goodsInfo.goodsTypeName">{{goods.goodsInfo.goodsType===1?formatPosition(goods.merchantGoodsPosition, positionTypeList):goods.goodsInfo.goodsTypeName}}</view> -->
<view class="front-gear-input">
<view class="unit">¥</view>
<input class="uni-input" type="digit" maxlength="9" placeholder="请输入价格" placeholder-style="font-size: 14px" v-model="goods.sellPrice" @blur="validatePrice($event, goods, ind, index)" />
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
name: 'Package',
props: {
list: {
type: Array,
default: () => []
},
positionTypeList: {
type: Array,
default: []
}
},
created() {
// 初始化商品数量
this.initProductNumbers()
console.log(this.list, 'Package-list')
},
mounted() {
// 确保每次使用组件时都检查并设置number属性
this.initProductNumbers()
},
updated() {
// 当组件数据更新时也检查number属性
this.initProductNumbers()
console.log(this.list, 'Package-list2')
},
methods: {
// 初始化商品数量方法
initProductNumbers() {
if (this.list && this.list.length > 0) {
this.list.forEach(item => {
if (!item.packageGoods.number) {
this.$set(item.packageGoods, 'number', '1')
}
// 存储旧值
item.packageGoods.goodsList.forEach(goods => {
if (!goods.price) {
goods.oldPrice = goods.sellPrice
}
})
})
}
},
// // 格式化位置信息
// formatPosition(item, positionTypeList) {
// const filterData = positionTypeList.filter(v => v.positionValue == item)
// return (filterData.length && filterData[0] && filterData[0].positionName) || ''
// },
// 验证数量输入
validateNumber(event, item) {
let value = event.detail.value
// 限制只能输入整数
value = value.replace(/[^\d]/g, '')
// 如果为空或0,设置为1
if (!value || value.trim() === '' || parseInt(value) === 0) {
value = '1'
}
// 更新值
this.$set(item.packageGoods, 'number', value)
this.$emit('changeTotalPrice')
},
// 增加数量
increaseNumber(item) {
if (!item.packageGoods.number) {
this.$set(item.packageGoods, 'number', '1')
} else {
const currentValue = parseInt(item.packageGoods.number)
// 限制最大数量为999
const newValue = currentValue >= 999 ? 999 : currentValue + 1
this.$set(item.packageGoods, 'number', newValue.toString())
}
this.$emit('changeTotalPrice')
},
// 减少数量
decreaseNumber(item) {
// 如果商品数量不存在或小于等于1,设置为1
if (!item.packageGoods.number || parseInt(item.packageGoods.number) <= 1) {
this.$set(item.packageGoods, 'number', '1')
return
}
const currentValue = parseInt(item.packageGoods.number)
// 确保减少后的值不小于1
const newValue = Math.max(1, currentValue - 1)
this.$set(item.packageGoods, 'number', newValue.toString())
this.$emit('changeTotalPrice')
},
validatePrice(event, goods, ind, index) {
let value = event.detail.value
// 如果为空则设置为0
if (!value || value.trim() === '') {
value = '0'
}
// 限制只能输入数字和小数点
value = value.replace(/[^\d.]/g, '')
// 限制只能有一个小数点
if (value.split('.').length > 2) {
value = value.slice(0, value.lastIndexOf('.')) + value.slice(value.lastIndexOf('.') + 1)
}
// 限制最多两位小数
if (value.includes('.')) {
const parts = value.split('.')
if (parts[1].length > 2) {
parts[1] = parts[1].substring(0, 2)
value = parts.join('.')
}
}
// 限制最大值为100000
if (parseFloat(value) > 100000) {
value = '100000'
}
// 限制最小值为0
if (parseFloat(value) < 0 || parseFloat(value) == 0) {
value = '0'
}
// 如果validMinSellPrice为Y,则强制修改值为最小值
if (goods.validMinSellPrice === 'Y' && goods.minSellPrice && parseFloat(value) < parseFloat(goods.minSellPrice)) {
console.log('最小值', goods.minSellPrice)
uni.showToast({
title: '单价不可低于商品最低价',
icon: 'none'
})
value = goods.minSellPrice.toString()
}
// 更新值
this.$set(this.list[index].packageGoods.goodsList[ind], 'sellPrice', value)
this.$emit('changeTotalPrice')
},
// 删除商品
deleteGoods(index) {
this.list.splice(index, 1)
this.$emit('changeTotalPrice')
},
// 计算套餐的总价
changeTotal(item) {
let total = 0
item.packageGoods.goodsList.forEach(i => {
// total += parseFloat(i.sellPrice) * parseInt(item.packageGoods.number)
total += parseFloat(i.sellPrice)
})
item.packageGoods.upgradePrice = total
return total.toFixed(2)
}
}
}
</script>
<style scoped lang="scss">
.front-gear-box {
display: flex;
justify-content: space-between;
margin-top: toRpx(24);
.front-gear-input-box {
display: flex;
align-items: center;
.front-gear-label {
font-size: toRpx(24);
margin-right: toRpx(24);
color: #999999;
}
.front-gear-input {
position: relative;
display: flex;
border: toRpx(2) solid #eff0f2;
background-color: #fff;
font-size: toRpx(28);
height: toRpx(72);
width: toRpx(250);
line-height: toRpx(70);
text-align: right;
border-radius: toRpx(12);
.uni-input {
padding: 0 toRpx(32);
height: 100%;
}
.unit {
position: absolute;
top: 50%;
left: toRpx(32);
transform: translateY(-50%);
}
}
}
}
.package-list {
padding: toRpx(12) toRpx(32) toRpx(12) 0;
.package-item {
background-color: #f5f7fa;
border-radius: toRpx(16);
margin-bottom: toRpx(16);
.control {
margin-left: toRpx(32);
display: flex;
align-items: center;
.control-input {
width: toRpx(94);
height: toRpx(74);
background-color: #fff;
border: toRpx(2) solid #eff0f2;
padding: 0 toRpx(10);
text-align: center;
}
.minus,
.add {
width: toRpx(80);
height: toRpx(74);
line-height: toRpx(70);
text-align: center;
background-color: #fff;
border-top: toRpx(2) solid #eff0f2;
border-bottom: toRpx(2) solid #eff0f2;
}
.minus {
border-radius: toRpx(12) 0 0 toRpx(12);
border-left: toRpx(2) solid #eff0f2;
}
.add {
border-radius: 0 toRpx(12) toRpx(12) 0;
border-right: toRpx(2) solid #eff0f2;
}
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: toRpx(1.6) solid #dce1e6;
padding: toRpx(24);
&-left {
display: flex;
align-items: center;
font-size: toRpx(28);
.name {
margin-left: toRpx(26);
color: #333;
}
.price {
color: #666;
}
}
}
.goods-item {
padding: toRpx(24);
border-bottom: toRpx(1.6) solid #dce1e6;
&:last-child {
border-bottom: none;
}
.goods-name {
color: #ff781f;
font-size: toRpx(28);
}
.alias-name {
margin-top: toRpx(12);
font-size: toRpx(24);
color: #666;
}
}
}
}
</style>
<template>
<view>
<view :class="[list.length ? 'shop-list':'']">
<view class="shop-item" v-for="(item, index) in list" :key="item.goods.goodsId">
<view class="sprite-icon icon-blue-delete" @click="deleteGoods(index)"></view>
<view class="right">
<view class="shop-name">商品名称:{{ item.goods.goodsAlias || item.goods.upgradeGoodsName || item.goods.goodsInfo.goodsName }}</view>
<!-- <view class="alias">商品别名:{{ item.goods.goodsAlias }}</view> -->
<view class="front-gear-box">
<view class="front-gear-input-box">
<view class="front-gear-label" v-if="(item.goods.merchantGoodsPosition || item.goods.upgradeGoodsPosition) && (item.goods.goodsInfo.goodsType == 1 || item.goods.upgradeGoodsType == 1 || item.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.goods.upgradeGoodsType == baseConfigData.selfBuildFilmType)">
{{ formatPosition(item.goods.merchantGoodsPosition || item.goods.upgradeGoodsPosition, positionTypeList) }}
</view>
<view class="front-gear-input">
<view class="unit">¥</view>
<input class="uni-input" :disabled="isDisabled" type="digit" maxlength="9" placeholder="请输入价格" placeholder-style="font-size: 14px" v-model="item.goods.sellPrice" @blur="validatePrice($event, item, index)" />
</view>
</view>
<view class="control">
<view class="minus" @click="decreaseNumber(item)">-</view>
<input class="uni-input control-input" type="number" maxlength="3" v-model="item.goods.number" @blur="validateNumber($event, item)" />
<view class="add" @click="increaseNumber(item)">+</view>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
name: 'Product',
props: {
list: {
type: Array,
default: []
},
positionTypeList: {
type: Array,
default: []
},
baseConfigData: {
type: Object,
default: {}
},
isDisabled: {
type: Boolean,
default: false
}
},
created() {
// 初始化商品数量
this.initProductNumbers()
},
mounted() {
// 确保每次使用组件时都检查并设置number属性
this.initProductNumbers()
},
updated() {
// 当组件数据更新时也检查number属性
this.initProductNumbers()
},
methods: {
// 初始化商品数量方法
initProductNumbers() {
if (this.list && this.list.length > 0) {
this.list.forEach(item => {
if (!item.goods.number) {
this.$set(item.goods, 'number', '1')
}
})
}
},
circulation(data, str) {
let arr = str.split('.'),
result
if (arr.length) {
result = arr.reduce((pre, key) => {
return pre[key]
}, data)
}
return result
},
// 格式化位置信息
formatPosition(item, positionTypeList) {
const filterData = positionTypeList.filter(v => v.positionValue == item)
return (filterData.length && filterData[0] && filterData[0].positionName) || ''
},
// 验证价格输入
validatePrice(event, item, index) {
let value = event.detail.value
// 如果为空则设置为0
if (!value || value.trim() === '') {
value = '0'
}
// 限制只能输入数字和小数点
value = value.replace(/[^\d.]/g, '')
// 限制只能有一个小数点
if (value.split('.').length > 2) {
value = value.slice(0, value.lastIndexOf('.')) + value.slice(value.lastIndexOf('.') + 1)
}
// 限制最多两位小数
if (value.includes('.')) {
const parts = value.split('.')
if (parts[1].length > 2) {
parts[1] = parts[1].substring(0, 2)
value = parts.join('.')
}
}
// 限制最 大值为100000
if (parseFloat(value) > 100000) {
value = '100000'
}
// 限制最小值为0
if (parseFloat(value) < 0 || parseFloat(value) == 0) {
value = '0'
}
if (item.goods.validMinSellPrice === 'Y' && item.goods.minSellPrice && parseFloat(value) < parseFloat(item.goods.minSellPrice)) {
console.log('最小值', item.goods.minSellPrice)
uni.showToast({
title: '单价不可低于商品最低价',
icon: 'none'
})
value = item.goods.minSellPrice.toString()
}
// 更新值
// this.$set(item.goods, 'sellPrice', value)
this.$set(this.list[index].goods, 'sellPrice', value)
this.$emit('changeTotalPrice')
},
// 验证数量输入
validateNumber(event, item) {
let value = event.detail.value
// 限制只能输入整数
value = value.replace(/[^\d]/g, '')
// 如果为空或0,设置为1
if (!value || value.trim() === '' || parseInt(value) === 0) {
value = '1'
}
// 更新值
this.$set(item.goods, 'number', value)
this.$emit('changeTotalPrice')
},
// 增加数量
increaseNumber(item) {
if (!item.goods.number) {
this.$set(item.goods, 'number', '1')
} else {
const currentValue = parseInt(item.goods.number)
// 限制最大数量为999
const newValue = currentValue >= 999 ? 999 : currentValue + 1
this.$set(item.goods, 'number', newValue.toString())
}
this.$emit('changeTotalPrice')
},
// 减少数量
decreaseNumber(item) {
// 如果商品数量不存在或小于等于1,设置为1
if (!item.goods.number || parseInt(item.goods.number) <= 1) {
this.$set(item.goods, 'number', '1')
return
}
const currentValue = parseInt(item.goods.number)
// 确保减少后的值不小于1
const newValue = Math.max(1, currentValue - 1)
this.$set(item.goods, 'number', newValue.toString())
this.$emit('changeTotalPrice')
},
// 删除商品
deleteGoods(index) {
this.list.splice(index, 1)
this.$emit('changeTotalPrice')
}
}
}
</script>
<style scoped lang="scss">
.shop-list {
padding: toRpx(12) toRpx(32) toRpx(12) 0;
.shop-item {
display: flex;
align-items: center;
background-color: #f5f7fa;
border-radius: toRpx(16);
margin-bottom: toRpx(16);
padding: toRpx(24);
.right {
flex: 1;
font-size: toRpx(28);
margin-left: toRpx(24);
.shop-name {
color: #ff781f;
}
.alias {
margin-top: toRpx(12);
font-size: toRpx(24);
color: #666;
}
}
}
}
.front-gear-box {
display: flex;
justify-content: space-between;
margin-top: toRpx(24);
.front-gear-input-box {
display: flex;
align-items: center;
.front-gear-label {
font-size: toRpx(24);
margin-right: toRpx(24);
color: #999999;
}
.front-gear-input {
position: relative;
display: flex;
border: toRpx(2) solid #eff0f2;
background-color: #fff;
font-size: toRpx(28);
height: toRpx(72);
width: toRpx(250);
line-height: toRpx(70);
text-align: right;
border-radius: toRpx(12);
.uni-input {
padding: 0 toRpx(32);
height: 100%;
}
.unit {
position: absolute;
top: 50%;
left: toRpx(32);
transform: translateY(-50%);
}
}
}
.control {
display: flex;
align-items: center;
.control-input {
width: toRpx(94);
height: toRpx(74);
background-color: #fff;
border: toRpx(2) solid #eff0f2;
padding: 0 toRpx(10);
text-align: center;
}
.minus,
.add {
width: toRpx(80);
height: toRpx(74);
line-height: toRpx(70);
text-align: center;
background-color: #fff;
border-top: toRpx(2) solid #eff0f2;
border-bottom: toRpx(2) solid #eff0f2;
}
.minus {
border-radius: toRpx(12) 0 0 toRpx(12);
border-left: toRpx(2) solid #eff0f2;
}
.add {
border-radius: 0 toRpx(12) toRpx(12) 0;
border-right: toRpx(2) solid #eff0f2;
}
}
}
</style>
<template>
<view>
<view class="shop-list">
<view class="shop-item" v-for="(item, index) in list" :key="index">
<view class="sprite-icon icon-blue-delete" @click="deleteGoods(index)"></view>
<view class="right">
<view class="shop-name">商品名称:{{ item.multipleSpecificationsGoods ?
item.multipleSpecificationsGoods.baseGoodsName : item.goods.goodsAlias || item.goods.upgradeGoodsName ||
item.goods.goodsInfo.goodsName }}</view>
<view class="alias"
v-if="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods.goodsAlias">商品别名:{{
item.multipleSpecificationsGoods.goods.goodsAlias }}</view>
<view class="front-gear-box">
<view class="front-gear-input-box">
<template
v-if="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods.specificationStr">
<view class="front-gear-label">
{{item.multipleSpecificationsGoods.goods.specificationStr}}
</view>
</template>
<template v-if="item.goods">
<template
v-if="(item.goods.merchantGoodsPosition || item.goods.upgradeGoodsPosition) && (item.goods.goodsInfo.goodsType == 1 || item.goods.upgradeGoodsType == 1 || item.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.goods.upgradeGoodsType == baseConfigData.selfBuildFilmType)">
<view class="front-gear-label">
{{ formatPosition((item.goods.merchantGoodsPosition || item.goods.upgradeGoodsPosition),
positionTypeList)}}
</view>
</template>
<template
v-if="(item.goods.goodsInfo.goodsType == 1 || item.goods.upgradeGoodsType == 1) && !item.goods.merchantGoodsPosition && !item.goods.upgradeGoodsPosition">无部位属性</template>
</template>
<view class="front-gear-input">
<view class="unit">¥</view>
<template v-if="item.multipleSpecificationsGoods">
<input class="uni-input" type="digit" maxlength="9" placeholder="请输入价格"
placeholder-style="font-size: 14px"
v-model="item.multipleSpecificationsGoods.goods.sellPrice"
@blur="validatePrice($event, item, index)" />
</template>
<template v-else>
<input class="uni-input" type="digit" maxlength="9" placeholder="请输入价格"
placeholder-style="font-size: 14px"
v-model="item.goods.sellPrice"
@blur="validatePrice($event, item, index)" />
</template>
<!-- <input class="uni-input" type="digit" maxlength="9" placeholder="请输入价格"
placeholder-style="font-size: 14px"
:value="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods ? item.multipleSpecificationsGoods.goods.sellPrice : item.goods.sellPrice"
@blur="validatePrice($event, item, index)" /> -->
</view>
</view>
<view class="control">
<view class="minus" @click="decreaseNumber(item)">-</view>
<template v-if="item.multipleSpecificationsGoods">
<input class="uni-input control-input" type="number" maxlength="3"
v-model="item.multipleSpecificationsGoods.number"
@blur="validateNumber($event, item)" />
</template>
<template v-else>
<input class="uni-input control-input" type="number" maxlength="3"
v-model="item.goods.number"
@blur="validateNumber($event, item)" />
</template>
<!-- <input class="uni-input control-input" type="number" maxlength="3"
:value="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods ? item.multipleSpecificationsGoods.goods.number : item.goods.number"
@blur="validateNumber($event, item)" /> -->
<view class="add" @click="increaseNumber(item)">+</view>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
name: 'SkuGoods',
props: {
list: {
type: Array,
default: []
},
positionTypeList: {
type: Array,
default: []
},
baseConfigData: {
type: Object,
default: {}
}
},
created() {
// 初始化商品数量
this.initProductNumbers()
},
mounted() {
// 确保每次使用组件时都检查并设置number属性
this.initProductNumbers()
},
updated() {
// 当组件数据更新时也检查number属性
this.initProductNumbers()
},
methods: {
// 初始化商品数量方法
initProductNumbers() {
if (this.list && this.list.length > 0) {
this.list.forEach(item => {
if (!item.multipleSpecificationsGoods) {
// 如果没有多规格商品,直接设置goods的number
if (!item.goods.number) {
this.$set(item.goods, 'number', '1')
}
} else if (item.multipleSpecificationsGoods) {
// 如果有多规格商品,给multipleSpecificationsGoods中的goods添加number
if (!item.multipleSpecificationsGoods.number) {
this.$set(item.multipleSpecificationsGoods, 'number', '1')
}
}
})
}
},
filterIncludes(item, arr) {
return arr.indexOf(item) > -1
},
// 格式化位置信息
formatPosition(item, positionTypeList) {
const filterData = positionTypeList.filter(v => v.positionValue == item)
return (filterData.length && filterData[0] && filterData[0].positionName) || ''
},
// 验证价格输入
validatePrice(event, item, index) {
let value = event.detail.value
console.log('value', value)
// 如果为空则设置为0
if (!value || value.trim() === '') {
value = '0'
}
// 限制只能输入数字和小数点
value = value.replace(/[^\d.]/g, '')
// 限制只能有一个小数点
if (value.split('.').length > 2) {
value = value.slice(0, value.lastIndexOf('.')) + value.slice(value.lastIndexOf('.') + 1)
}
// 限制最多两位小数
if (value.includes('.')) {
const parts = value.split('.')
if (parts[1].length > 2) {
parts[1] = parts[1].substring(0, 2)
value = parts.join('.')
}
}
// 限制最 大值为100000
if (parseFloat(value) > 100000) {
value = '100000'
}
// 限制最小值为0
if (parseFloat(value) < 0 || parseFloat(value) == 0) {
value = '0'
}
// 检查最小价格
if (!item.multipleSpecificationsGoods) {
// 普通商品的最小价格检查
if (item.goods.validMinSellPrice === 'Y' && item.goods.minSellPrice && parseFloat(value) < parseFloat(item.goods.minSellPrice)) {
console.log('最小值', item.goods.minSellPrice)
uni.showToast({
title: '单价不可低于商品最低价',
icon: 'none'
})
value = item.goods.minSellPrice.toString()
}
} else if (item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods) {
// 多规格商品的最小价格检查
if (item.multipleSpecificationsGoods.goods.validMinSellPrice === 'Y' &&
item.multipleSpecificationsGoods.goods.minSellPrice &&
parseFloat(value) < parseFloat(item.multipleSpecificationsGoods.goods.minSellPrice)) {
console.log('最小值', item.multipleSpecificationsGoods.goods.minSellPrice)
uni.showToast({
title: '单价不可低于商品最低价',
icon: 'none'
})
value = item.multipleSpecificationsGoods.goods.minSellPrice.toString()
}
}
// 更新值
if (!item.multipleSpecificationsGoods) {
// 如果没有多规格商品,更新普通商品的价格
this.$set(this.list[index].goods, 'sellPrice', value)
} else if (item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods) {
// 如果有多规格商品,更新多规格商品的价格
this.$set(this.list[index].multipleSpecificationsGoods.goods, 'sellPrice', value)
}
this.$emit('changeTotalPrice')
},
// 验证数量输入
validateNumber(event, item) {
let value = event.detail.value
// 限制只能输入整数
value = value.replace(/[^\d]/g, '')
// 如果为空或0,设置为1
if (!value || value.trim() === '' || parseInt(value) === 0) {
value = '1'
}
console.log(value, '1')
// 更新值
if (!item.multipleSpecificationsGoods) {
this.$set(item.goods, 'number', value)
} else if (item.multipleSpecificationsGoods) {
// 强制更新多规格商品的数量
this.$set(item.multipleSpecificationsGoods, 'number', value)
}
console.log(item, '2')
this.$emit('changeTotalPrice')
},
// 增加数量
increaseNumber(item) {
if (!item.multipleSpecificationsGoods) {
// 处理普通商品
if (!item.goods.number) {
this.$set(item.goods, 'number', '1')
} else {
const currentValue = parseInt(item.goods.number)
// 限制最大数量为999
const newValue = currentValue >= 999 ? 999 : currentValue + 1
this.$set(item.goods, 'number', newValue.toString())
}
} else if (item.multipleSpecificationsGoods) {
// 处理多规格商品
if (!item.multipleSpecificationsGoods.number) {
this.$set(item.multipleSpecificationsGoods, 'number', '1')
} else {
const currentValue = parseInt(item.multipleSpecificationsGoods.number)
// 限制最大数量为999
const newValue = currentValue >= 999 ? 999 : currentValue + 1
this.$set(item.multipleSpecificationsGoods, 'number', newValue.toString())
}
}
this.$emit('changeTotalPrice')
},
// 减少数量
decreaseNumber(item) {
if (!item.multipleSpecificationsGoods) {
// 处理普通商品
// 如果商品数量不存在或小于等于1,设置为1
if (!item.goods.number || parseInt(item.goods.number) <= 1) {
this.$set(item.goods, 'number', '1')
return
}
const currentValue = parseInt(item.goods.number)
// 确保减少后的值不小于1
const newValue = Math.max(1, currentValue - 1)
this.$set(item.goods, 'number', newValue.toString())
} else if (item.multipleSpecificationsGoods) {
// 处理多规格商品
// 如果商品数量不存在或小于等于1,设置为1
if (!item.multipleSpecificationsGoods.number || parseInt(item.multipleSpecificationsGoods.number) <= 1) {
this.$set(item.multipleSpecificationsGoods, 'number', '1')
return
}
const currentValue = parseInt(item.multipleSpecificationsGoods.number)
// 确保减少后的值不小于1
const newValue = Math.max(1, currentValue - 1)
this.$set(item.multipleSpecificationsGoods, 'number', newValue.toString())
}
this.$emit('changeTotalPrice')
},
// 删除商品
deleteGoods(index) {
this.list.splice(index, 1)
this.$emit('changeTotalPrice')
}
}
}
</script>
<style scoped lang="scss">
.shop-list {
padding: toRpx(12) toRpx(32) toRpx(12) 0;
.shop-item {
display: flex;
align-items: center;
background-color: #f5f7fa;
border-radius: toRpx(16);
margin-bottom: toRpx(16);
padding: toRpx(24);
.right {
flex: 1;
font-size: toRpx(28);
margin-left: toRpx(24);
.shop-name {
color: #ff781f;
}
.alias {
margin-top: toRpx(12);
font-size: toRpx(24);
color: #666;
}
}
}
}
.front-gear-box {
display: flex;
justify-content: space-between;
margin-top: toRpx(24);
.front-gear-input-box {
display: flex;
align-items: center;
.front-gear-label {
font-size: toRpx(24);
margin-right: toRpx(24);
color: #999999;
}
.front-gear-input {
position: relative;
display: flex;
border: toRpx(2) solid #eff0f2;
background-color: #fff;
font-size: toRpx(28);
height: toRpx(72);
width: toRpx(250);
line-height: toRpx(70);
text-align: right;
border-radius: toRpx(12);
.uni-input {
padding: 0 toRpx(32);
height: 100%;
}
.unit {
position: absolute;
top: 50%;
left: toRpx(32);
transform: translateY(-50%);
}
}
}
.control {
display: flex;
align-items: center;
.control-input {
width: toRpx(94);
height: toRpx(74);
background-color: #fff;
border: toRpx(2) solid #eff0f2;
padding: 0 toRpx(10);
text-align: center;
}
.minus,
.add {
width: toRpx(80);
height: toRpx(74);
line-height: toRpx(70);
text-align: center;
background-color: #fff;
border-top: toRpx(2) solid #eff0f2;
border-bottom: toRpx(2) solid #eff0f2;
}
.minus {
border-radius: toRpx(12) 0 0 toRpx(12);
border-left: toRpx(2) solid #eff0f2;
}
.add {
border-radius: 0 toRpx(12) toRpx(12) 0;
border-right: toRpx(2) solid #eff0f2;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="upload-proof-of-payment">
<view class="common-title">上传付款凭证</view>
<view class="px-48">
<view class="box-shell">
<view class="flex align-center justify-between box-flow">
<view class="box-label">
交易流水号
<text class="required">*</text>
</view>
<input v-model="outTradeNo" type="text" @input="outTradeNoInput" class="uni-input" maxlength="150" placeholder="请输入" />
</view>
<view class="payment">
<view class="payment-label">
付款凭证
<text class="required">*</text>
</view>
<view class="upload-box flex flex-wrap">
<view class="upload-item" @click.stop="selectImg"></view>
<view v-for="(item, index) in payVoucherList" :key="index" class="previewImageList">
<image :src="item"></image>
<view class="close-box" @click="deleteImg(index)">
<uni-icons class="icon-close" type="closeempty" color="#ffffff"></uni-icons>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="uploadBtn" @click.stop="confirm">确定提交</view>
</view>
</template>
<script>
import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
import { debounce } from 'lodash'
export default {
name: 'UploadProofOfPayment',
props: {
transmissionOfData: {
type: Object,
default: () => null
}
},
data() {
return {
payVoucherList: [],
outTradeNo: ''
}
},
mounted() {
console.log(this.transmissionOfData, 'console.log(this.transmissionOfData)')
},
methods: {
selectImg() {
let _this = this
uni.chooseImage({
count: 1, //默认9
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
sourceType: ['album'], //从相册选择
success: function (res) {
console.log(res)
_this.upLoad(res)
}
})
},
outTradeNoInput(e) {
const filteredValue = e.detail.value.replace(/[\u4E00-\u9FA5]/g, '')
this.$nextTick(() => {
this.$set(this, 'outTradeNo', filteredValue)
})
console.log(this.outTradeNo)
},
// 上传付款凭证
async upLoad(event) {
console.log(event)
let _this = this
const { tempFilePaths } = event
let url = await uploadFile(tempFilePaths[0])
this.payVoucherList.push(url)
},
confirm: debounce(function (e) {
console.log(this.transmissionOfData)
let { outTradeNo, payVoucherList } = this
if (payVoucherList.length && outTradeNo) {
this.createPayOrder()
} else {
uni.showToast({ title: '交易流水号或付款凭证不能为空!', icon: 'none' })
}
}, 300),
deleteImg(index) {
this.payVoucherList.splice(index, 1)
},
createPayOrder() {
const { orderCode, payType, payeeType, successDate } = this.transmissionOfData
let obj = {
orderCode,
payType: payType,
payeeType: payeeType,
successDate
}
if (this.payVoucherList?.length && this.outTradeNo) {
obj.payVoucherList = this.payVoucherList
obj.outTradeNo = this.outTradeNo
}
uni.showLoading({
title: '提交中...',
mask: true
})
uni.$api.boutiqueApi.createPayOrder(obj).then(data => {
uni.hideLoading()
uni.showToast({ title: '提交成功', icon: 'success' })
this.$emit('jump', 'OrderDetail', data)
})
}
}
}
</script>
<style scoped lang="scss">
.px-48 {
padding: 0 toRpx(48);
}
.upload-proof-of-payment {
width: 100%;
height: 100%;
position: relative;
.box-shell {
width: 100%;
border-radius: toRpx(16);
background: #ffffff;
padding: toRpx(24) toRpx(32);
// margin-top: toRpx(16);
.box-flow {
border-bottom: toRpx(2) solid #f7f7f6;
padding-bottom: toRpx(28);
.box-label {
font-weight: 400;
font-size: toRpx(28);
color: #333333;
}
.required {
color: #f00;
margin-left: toRpx(8);
}
.uni-input {
text-align: right;
.uni-input-placeholder {
font-size: toRpx(28);
font-weight: 400;
}
}
}
.payment {
.payment-label {
font-weight: 400;
font-size: toRpx(28);
color: #333333;
margin-top: toRpx(32);
margin-bottom: toRpx(24);
.required {
color: #f00;
margin-left: toRpx(8);
}
}
.upload-box {
gap: toRpx(20);
.upload-item {
width: toRpx(320) !important;
height: toRpx(240) !important;
border-radius: toRpx(12);
background: url('@/assets/images/boutique/uploadImage.png') no-repeat;
background-size: 100% 100%;
}
.previewImageList {
position: relative;
image {
width: toRpx(320) !important;
height: toRpx(240) !important;
border-radius: toRpx(12);
}
.close-box {
width: toRpx(36);
height: toRpx(36);
position: absolute;
top: - toRpx(12);
right: - toRpx(12);
background: rgba(0, 0, 0, 0.6);
border-radius: 50%;
text-align: center;
line-height: toRpx(40);
}
.icon-close {
font-size: toRpx(12);
}
}
}
}
}
.uploadBtn {
width: 80%;
height: toRpx(80);
border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
font-size: toRpx(28);
font-weight: 500;
position: absolute;
bottom: toRpx(20);
margin: 0 auto;
left: 0;
right: 0;
text-align: center;
line-height: toRpx(80);
}
}
</style>
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 }
<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 CreateOrder from './components/CreateOrder.vue'
import DailyReport from './components/DailyReport.vue'
import DefeatOrder from './components/DefeatOrder.vue'
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 dayjs from 'dayjs'
import { interceptionMixin } from '@/mixin/index'
export default {
mixins: [interceptionMixin],
components: {
Entrance,
CreateOrder,
DailyReport,
DefeatOrder,
OrderManagement,
ConfirmOrder,
NoticePopup,
UploadProofOfPayment,
OrderDetail
},
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.setCurrentDate(options.currentDate)
uni.$on('jumpToDailyReport', currentDate => {
this.toolComponentName = 'DailyReport'
if (currentDate) this.setCurrentDate(currentDate)
})
},
methods: {
setCurrentDate (currentDate) {
this.currentDate = currentDate
this.currentMonth = dayjs(currentDate).format('YYYY-MM')
},
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.$refs.notice.buttonsList = [
{
text: '确认退出',
type: 'default',
callback: () => {
// 点击确认后才切换组件
this.toolComponentName = selectedItem.name
// if (selectedItem.name !== 'CreateOrder') {
// this.transmissionOfData = null
// }else {
// console.log(111)
// this.transmissionOfData = null
// }
this.transmissionOfData = null
this.$refs.notice.close()
}
},
{
text: '继续编辑',
type: 'primary',
callback: () => {
this.$refs.notice.close()
}
}
]
// 打开弹窗
this.$refs.notice.open()
},
backPage () {
uni.navigateBack()
},
// 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>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!