From eb49564ab17c6695d8928d5a63a57c58b3cfd79c Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 11 十二月 2024 18:21:30 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
screen/src/views/LogisticsEfficiency.vue | 500 +++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 465 insertions(+), 35 deletions(-)
diff --git a/screen/src/views/LogisticsEfficiency.vue b/screen/src/views/LogisticsEfficiency.vue
index cde3e9f..8a4cebb 100644
--- a/screen/src/views/LogisticsEfficiency.vue
+++ b/screen/src/views/LogisticsEfficiency.vue
@@ -3,7 +3,7 @@
<div class="main_app">
<img src="@/assets/images/energy_ef/bg@2x.png" class="main_bg" alt="" />
<div class="main_header">
- <img src="@/assets/images/maintitle@2x.png" class="main_header_bg" alt="" />
+ <img src="@/assets/images/maintitle.gif" class="main_header_bg" alt="" />
<div class="title">瀹夋嘲鏅烘収鐗╂祦鍥尯-璋冨害鑳芥晥璺熻釜</div>
<div class="time_wrap">
<span class="date">{{ date }}</span>
@@ -28,7 +28,8 @@
</div>
<div class="content_wrap">
<div class="content">
- <div class="num">{{ activeTab1 == 0 ? data1.monthOutTotal : data1.yearOutTotal }}</div>
+ <div class="num" v-if="data1.monthOutTotal || data1.yearOutTotal">{{ activeTab1 == 0 ?
+ data1.monthOutTotal.toLocaleString() : data1.yearOutTotal.toLocaleString() }}</div>
<div class="unit_wrap" v-if="data1.monthOutTotalOnYear || data1.yearOutTotalOnYear">
<span style="color: #869CC9;">鍚屾瘮</span>
<img
@@ -88,14 +89,20 @@
<span class="item addr">鏀惰揣鍗曚綅</span>
<span class="item time">浠诲姟寮�濮嬫椂闂�</span>
</div>
- <div class="line" v-for="item in dataList3">
- <span class="item flag"><span :class="{ flag_bg: item.type == 1 || item.type == 3 }">{{ item.type == 1
- || item.type == 3 ? '鍑�' : '鍏�' }}</span></span>
- <span class="item order">{{ item.billCode || item.contractNum }}</span>
- <span class="item id_card">{{ item.carCodeFront }}</span>
- <span class="item status">{{ statusMap[item.status].label }}</span>
- <span class="item addr">{{ item.repertotyAddress }}</span>
- <span class="item time" v-if="item.confirmTaskDate">{{ item.confirmTaskDate.slice(5, 16) }}</span>
+ <div class="one-swiper list_temp">
+ <div class="swiper-wrapper">
+ <div class="line swiper-slide one-swiper-slide" @click="showModal = true" v-for="item in dataList3">
+ <span class="item flag"><span :class="{ flag_bg: item.type == 1 || item.type == 3 }">{{ item.type
+ == 1
+ || item.type == 3 ? '鍑�' : '鍏�' }}</span></span>
+ <span class="item order">{{ item.billCode || item.contractNum }}</span>
+ <span class="item id_card">{{ item.carCodeFront }}</span>
+ <span class="item status">{{ statusMap[item.status].label }}</span>
+ <span class="item addr">{{ item.repertotyAddress }}</span>
+ <span class="item time">{{ item.confirmTaskDate ? item.confirmTaskDate.slice(5, 16) : '-'
+ }}</span>
+ </div>
+ </div>
</div>
</div>
</div>
@@ -141,7 +148,24 @@
</div>
</div>
<div class="center_box_two">
- <div ref="echartMap" class="echart_map" id="echartMap"></div>
+ <div class="list">
+ <div class="item">
+ <img src="@/assets/images/LogisticsCenter/car_zaitu@2x.png" alt="">
+ <span>鍦ㄩ�旓細{{ 8 }}</span>
+ </div>
+ <div class="item">
+ <img src="@/assets/images/LogisticsCenter/car_kongxian@2x.png" alt="">
+ <span>绌洪棽锛歿{ 8 }}</span>
+ </div>
+ <div class="item">
+ <img src="@/assets/images/LogisticsCenter/car_lixian@2x.png" alt="">
+ <span>绂荤嚎锛歿{ 8 }}</span>
+ </div>
+ </div>
+ <div class="echart_wrap">
+ <div ref="echartMap" class="echart_map" id="echartMap"></div>
+ </div>
+
</div>
</div>
<div class="right_box">
@@ -215,21 +239,82 @@
<div class="repertory">
<div class="use_ratio">
<div class="header">
- <div>搴撳瓨閲� <span class="num">{{data1.stockTotal}}/{{data1.stockMax}}</span></div>
- <div v-if="data1.stockTotal && data1.stockMax">鍒╃敤鐜噞{ ((data1.stockTotal / data1.stockMax) * 100).toFixed(0) }}%</div>
+ <div>搴撳瓨閲� <span class="num">{{ data1.stockTotal }}/{{ data1.stockMax }}</span></div>
+ <div v-if="data1.stockTotal && data1.stockMax">鍒╃敤鐜噞{ ((data1.stockTotal / data1.stockMax) *
+ 100).toFixed(0) }}%</div>
</div>
- <Percent v-if="data1.stockTotal && data1.stockMax" :rate="((data1.stockTotal / data1.stockMax) * 100).toFixed(0)" />
+ <Percent v-if="data1.stockTotal && data1.stockMax"
+ :rate="((data1.stockTotal / data1.stockMax) * 100).toFixed(0)" />
</div>
- <div class="list">
- <div class="item" v-for="item in dataList6">
- <div class="la">{{ item.name }}</div>
- <div class="val">{{item.num}}涓囨敮</div>
+ <div class="list two-swiper">
+ <div class="swiper-wrapper">
+ <div class="item two-swiper-slide swiper-slide" v-for="item in dataList6">
+ <div class="la">{{ item.name }}</div>
+ <div class="val">{{ item.num }}涓囨敮</div>
+ </div>
</div>
</div>
</div>
</div>
</div>
</div>
+ <!-- -->
+ <div class="modal" v-if="showModal">
+ <div class="title_head">
+ <img src="@/assets/images/energy_ef/chuku_ic_car@2x.png" alt="">
+ <span>鐨朼222</span>
+ </div>
+ <div class="info">
+ <div class="item">
+ <div class="dian"></div>
+ <div class="la">杩愯緭鍗曞彿锛�</div>
+ <div class="val">22</div>
+ </div>
+ <div class="item">
+ <div class="dian"></div>
+ <div class="la">鍙告満淇℃伅锛�</div>
+ <div class="val">22</div>
+ </div>
+ <div class="item">
+ <div class="dian"></div>
+ <div class="la">鎬昏繍杈撻噺锛�</div>
+ <div class="val">22 涓囨敮</div>
+ </div>
+ </div>
+ <div class="tabs">
+ <div :class="{ active: modalTab == 0 }" @click="modalTabClick(0)" class="tab">浣滀笟淇℃伅</div>
+ <div :class="{ active: modalTab == 1 }" @click="modalTabClick(1)" class="tab">鍚堝悓鍒楄〃</div>
+ </div>
+ <div class="tab1" v-if="modalTab == 0">
+ <div class="item" v-for="item, i in 3">
+ <div class="icon_wrap">
+ <img v-if="i === 0" class="dian" src="@/assets/images/ic_dangqian@2x.png" alt="">
+ <img v-else src="@/assets/images/ic_jindu@2x.png" class="dian_ac" alt="">
+ <div class="line"></div>
+ </div>
+ <div class="content">
+ <div class="status">浣滀笟涓�</div>
+ <div class="text">浣滀笟浠诲姟鍦ㄣ�愬叆搴撳幓1鍙锋湀鍙般�戝紑濮嬩綔涓�</div>
+ <div class="time">2024-04-02 12:00</div>
+ </div>
+ </div>
+ </div>
+ <div class="tab2" v-if="modalTab == 1">
+ <div class="list">
+ <div class="item">
+ <div class="head">
+ <div class="code">鍚堝悓鍙凤細12312312</div>
+ <div class="addr">鏀惰揣鍦帮細姹熼棬鐑熻崏鐗╂祦涓績</div>
+ </div>
+ <div class="line" v-for="i in 3">
+ <div class="name">鐗╂枡鍚嶇О锛�<span class="val">榛勫北</span></div>
+ <div class="num">鏁伴噺锛�<span class="val">100涓囨敮</span></div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="modal_mask" v-if="showModal" @click="showModal = false"></div>
</div>
</v-scale-screen>
</template>
@@ -241,6 +326,9 @@
import dayjs from 'dayjs'
import * as echarts from 'echarts'
import ahJSON from '@/assets/anhui.json'
+import icKongxian from '@/assets/images/LogisticsCenter/map_car_kongxian@2x.png'
+import icLixian from '@/assets/images/LogisticsCenter/map_car_lixian@2x.png'
+import icZaitu from '@/assets/images/LogisticsCenter/map_car_zaitu@2x.png'
import {
wlcenterData,
wljobData,
@@ -249,6 +337,8 @@
wltotalInList,
wltransportMeasure,
} from '@/api'
+import 'swiper/css/swiper.min.css'
+import Swiper from 'swiper'
const colors = ['#FEAF01', '#01ABFE', '#51F9E4']
const weekMap = ['鏄熸湡鏃�', '鏄熸湡涓�', '鏄熸湡浜�', '鏄熸湡涓�', '鏄熸湡鍥�', '鏄熸湡浜�', '鏄熸湡鍏�',]
@@ -262,7 +352,14 @@
}, 1000)
-const arr = ['#68e2e3', '#50afd3', '#377cdb', '#d5ae3a']
+const showModal = ref(false)
+const modalTab = ref(0)
+const modalTabClick = (val) => {
+ modalTab.value = val
+}
+
+
+
const initEnergy = () => {
var myChart = echarts.init(document.querySelector('.energyRef'))
// 缁樺埗鍥捐〃
@@ -458,6 +555,66 @@
const initMap = () => {
var myChart = echarts.init(echartMap.value)
echarts.registerMap('js', ahJSON)
+ var scatterData = [
+ {
+ name: '骞煎効鍥�',
+ num: 15,
+ color: ['#1984ff', '#184b8d'],
+ img: icKongxian,
+ data: [
+ { name: '', value: [117.25, 31.49] },
+ ],
+ },
+ {
+ name: '灏忓',
+ num: 11,
+ color: ['#f16c08', '#7f3710'],
+ img: icLixian,
+ data: [
+ { name: '', value: [118.5, 31.08] },
+ ],
+ }
+ ]
+ let serData = []
+ scatterData.forEach((item) => {
+ serData.push({
+ name: `${item.name}`,
+ type: 'effectScatter',
+ coordinateSystem: 'geo',
+ effectType: 'ripple',
+ showEffectOn: 'render',
+ // 鏁g偣鏍峰紡
+ rippleEffect: {
+ period: 1,
+ scale: 1,
+ brushType: 'fill'
+ },
+ // 鏁g偣澶у皬 鑷畾涔夋暎鐐瑰浘鐗�
+ // symbol: `image://${item.img}`,
+ symbol: `image://${item.img}`,
+ label: {
+ show: true,
+ formatter: '{b|{b}}',
+ position: 'top',
+ distance: -1,
+ rich: {
+ b: {
+ color: "#fff",
+ fontSize: 14,
+ height: 30,
+ // width: 200,
+ padding: 5,
+ },
+ }
+ },
+ symbolSize: [32, 40],
+ hoverAnimation: true,
+
+ zlevel: 99,
+ data: item.data,
+ })
+ }
+ )
var center = {
'鍚堣偉甯�': [117.25, 31.83],
'婊佸窞甯�': [118.32, 32.3],
@@ -481,12 +638,12 @@
{ name: "婊佸窞甯�", value: 0 },
{ name: "鑺滄箹甯�", value: 1 },
{ name: "闃滈槼甯�", value: 0 },
- { name: "铓屽煚甯�", value: 0 },
+ { name: "铓屽煚甯�", value: 4 },
{ name: "娣崡甯�", value: 0 },
- { name: "椹瀺灞卞競", value: 0 },
- { name: "瀹夊簡甯�", value: 0 },
+ { name: "椹瀺灞卞競", value: 6 },
+ { name: "瀹夊簡甯�", value: 2 },
{ name: "榛勫北甯�", value: 0 },
- { name: "閾滈櫟甯�", value: 0 },
+ { name: "閾滈櫟甯�", value: 40 },
{ name: "瀹垮窞甯�", value: 0 },
{ name: "娣寳甯�", value: 0 },
{ name: "鍏畨甯�", value: 0 },
@@ -504,7 +661,6 @@
color: '#ffffff'
}
},
-
tooltip: {
trigger: 'item',
formatter: function (params) {
@@ -526,7 +682,7 @@
geo: [{
map: 'js',
roam: false, //鏄惁鍏佽缂╂斁
- zoom: 1.1, //榛樿鏄剧ず绾у埆
+ zoom: 1.2, //榛樿鏄剧ず绾у埆
scaleLimit: {
min: 0,
max: 3
@@ -591,7 +747,7 @@
type: 'map',
mapType: 'js',
geoIndex: -1,
- zoom: 1.1, //榛樿鏄剧ず绾у埆
+ zoom: 1.2, //榛樿鏄剧ず绾у埆
label: {
show: true,
color: '#ffffff',
@@ -602,18 +758,19 @@
},
itemStyle: {
normal: {
- borderColor: '#2980b9',
+ borderColor: '#428598',
borderWidth: 1,
areaColor: '#1d3b60'
},
emphasis: {
areaColor: '#FA8C16',
- borderWidth: 0,
- color: 'green'
+ borderWidth: 1,
+ color: '#428598'
}
},
data: data
- }
+ },
+ ...serData,
]
}
@@ -706,6 +863,32 @@
dataList6.value = result
})
}
+
+const autoplayFlag = (list = [], leng = 4, time = 2000) => {
+ if (list.length > leng) {
+ return { delay: time, disableOnInteraction: false }
+ } else {
+ return false
+ }
+}
+const loopFn1 = () => {
+ var newSwiper1 = new Swiper('.one-swiper', {
+ initialSlide: 0,
+ direction: 'vertical', //绔栫洿鏂瑰悜
+ slidesPerView: 7,
+ autoplay: autoplayFlag(dataList3.value, 7, 2000),
+ observer: true, //淇敼swiper鑷繁鎴栧瓙鍏冪礌鏃讹紝鑷姩鍒濆鍖杝wiperiper
+ })
+}
+const loopFn2 = () => {
+ var newSwiper1 = new Swiper('.two-swiper', {
+ initialSlide: 0,
+ direction: 'vertical', //绔栫洿鏂瑰悜
+ slidesPerView: 7,
+ autoplay: autoplayFlag(dataList6.value, 7, 2000),
+ observer: true, //淇敼swiper鑷繁鎴栧瓙鍏冪礌鏃讹紝鑷姩鍒濆鍖杝wiperiper
+ })
+}
onMounted(() => {
getData1()
getData2()
@@ -715,6 +898,11 @@
getData6()
initMap()
+
+ setTimeout(() => {
+ loopFn1()
+ loopFn2()
+ }, 12000)
})
@@ -723,6 +911,10 @@
<style lang="scss" scoped>
div {
box-sizing: border-box;
+}
+
+.swiper-wrapper {
+ display: block !important;
}
.main_content {
@@ -835,10 +1027,15 @@
.list_wrap {
padding: 10px 0;
+ .list_temp {
+ height: 210px !important;
+ overflow: hidden;
+ }
+
.list {
.line {
display: flex;
- height: 30px;
+ height: 30px !important;
align-items: center;
padding: 0 10px;
font-size: 12px;
@@ -885,7 +1082,8 @@
}
.time {
- flex: 8;
+ flex: 6;
+ margin-left: 6px;
}
}
}
@@ -991,10 +1189,37 @@
.center_box_two {
flex: 1;
width: 100%;
+ position: relative;
- .echart_map {
+ .list {
+ position: absolute;
+ top: 10px;
+ left: 20px;
+
+ .item {
+ display: flex;
+ align-items: center;
+ font-weight: 500;
+ font-size: 20px;
+ margin-bottom: 18px;
+
+ img {
+ width: 36px;
+ height: 36px;
+ margin-right: 15px;
+ }
+ }
+ }
+
+ .echart_wrap {
width: 100%;
height: 100%;
+
+ .echart_map {
+ width: 100%;
+ height: 100%;
+ /* transform: rotate(60deg); */
+ }
}
}
}
@@ -1153,11 +1378,12 @@
.list {
margin-top: 22px;
height: 240px;
- overflow: auto;
+ overflow: hidden;
scrollbar-width: none;
+
.item {
width: 100%;
- height: 36px;
+ height: 36px !important;
display: flex;
align-items: center;
@@ -1309,6 +1535,210 @@
}
}
+.modal {
+ width: 600px;
+ height: 556px;
+ background: rgba(0, 30, 63, 0.5);
+ backdrop-filter: blur(5px);
+ position: fixed;
+ top: 20%;
+ left: 50%;
+ transform: translate(-50%, 0);
+ z-index: 999;
+ padding: 24px;
+
+ .title_head {
+ display: flex;
+ align-items: center;
+ font-weight: bold;
+ font-size: 17px;
+ margin-bottom: 20px;
+
+ img {
+ width: 20px;
+ margin-right: 4px;
+ }
+ }
+
+ .info {
+ display: flex;
+ flex-wrap: wrap;
+
+ .item {
+ display: flex;
+ align-items: center;
+ font-size: 13px;
+ width: 55%;
+ margin-bottom: 8px;
+
+ &:nth-of-type(2n+1) {
+ width: 45%;
+ }
+
+ .dian {
+ width: 4px;
+ height: 4px;
+ background-color: #fff;
+ border-radius: 50%;
+ margin-right: 4px;
+ }
+
+ .la {
+ color: #01D9FE;
+ }
+ }
+ }
+
+ .tabs {
+ display: flex;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.16);
+ margin: 0 -24px;
+ margin-bottom: 20px;
+ padding-left: 12px;
+
+ .tab {
+ color: #869CC9;
+ font-size: 14px;
+ margin-right: 12px;
+ width: 80px;
+ height: 42px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border-bottom: 2px solid #06182e;
+ cursor: pointer;
+ }
+
+ .active {
+ font-weight: 500;
+ font-size: 15px;
+ color: #00F2F3;
+ border-bottom: 2px solid #00F2F3;
+ }
+ }
+
+ .tab1 {
+ .item {
+ display: flex;
+
+ &:nth-last-child(1) {
+ .content {
+ .time {
+ padding-bottom: 0;
+ }
+ }
+ }
+
+ .icon_wrap {
+ width: 24px;
+ margin-right: 10px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+
+ .dian {
+ width: 12px;
+ height: 12px;
+ }
+
+ .dian_ac {
+ width: 24px;
+ height: 24px;
+ }
+
+ .line {
+ width: 1px;
+ height: 100%;
+ border: 1px dashed #8a9bc5;
+ }
+ }
+
+ .content {
+ font-size: 13px;
+ color: #D2E0FF;
+
+ .status {
+ font-weight: 500;
+ font-size: 14px;
+ margin-bottom: 5px;
+ color: #fff;
+ }
+
+ .text {
+ margin-bottom: 4px;
+ }
+
+ .time {
+ font-size: 12px;
+ padding-bottom: 12px;
+ }
+ }
+ }
+ }
+
+ .tab2 {
+ .list {
+ .item {
+ width: 560px;
+ background: rgba(1, 171, 254, 0.1);
+ font-size: 12px;
+ color: #D2E0FF;
+ padding: 10px;
+ margin-bottom: 10px;
+
+ .head {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ height: 36px;
+ line-height: 36px;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.16);
+ margin-bottom: 10px;
+
+ .code {
+ font-weight: 500;
+ font-size: 14px;
+ color: #00F2F3;
+ }
+ }
+
+ .line {
+ display: flex;
+ align-items: center;
+ margin-bottom: 8px;
+
+ &:nth-last-child(1) {
+ margin-bottom: 0;
+ }
+
+ .name {
+ flex: 4;
+ }
+
+ .num {
+ flex: 3;
+ }
+
+ .val {
+ color: #fff;
+ }
+ }
+ }
+ }
+ }
+}
+
+.modal_mask {
+ position: fixed;
+ width: 100%;
+ height: 100%;
+ top: 0;
+ left: 0;
+ z-index: 99;
+ background-color: rgba(0, 0, 0, 0.1);
+ /* background-color: red; */
+}
+
.bg {
position: absolute;
left: 0;
--
Gitblit v1.9.3