From 7298d5354963a88643a543b51b90192dc9fc934c Mon Sep 17 00:00:00 2001 From: doum <doum> Date: 星期四, 11 九月 2025 18:43:14 +0800 Subject: [PATCH] 最新版本541200007 --- screen/src/views/LogisticsCenter.vue | 3284 +++++++++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 2,412 insertions(+), 872 deletions(-) diff --git a/screen/src/views/LogisticsCenter.vue b/screen/src/views/LogisticsCenter.vue index a1c768e..54ad031 100644 --- a/screen/src/views/LogisticsCenter.vue +++ b/screen/src/views/LogisticsCenter.vue @@ -3,8 +3,8 @@ <div class="main_app"> <img src="@/assets/images/LogisticsCenter/bg@2x.png" class="main_bg" alt="" /> <div class="main_header"> - <img src="@/assets/images/maintitle@2x.png" class="main_header_bg" alt="" /> - <div class="title">瀹夊窘涓儫鐗╂祦涓績杩愯澶у睆</div> + <img src="@/assets/images/maintitle.gif" class="main_header_bg" alt="" /> + <div class="title">瀹夊窘涓儫鏁版櫤鎴愬搧绠℃帶</div> <div class="time_wrap"> <span class="date">{{ date }}</span> <span class="week">{{ week }}</span> @@ -21,27 +21,65 @@ <img src="@/assets/images/title@2x.png" class="bg" alt="" /> </div> <div class="left_box_one"> + <Loading v-if="loading1" /> <div class="second_title"> <div class="title"> <img src="@/assets/images/LogisticsCenter/ic_title@2x.png" class="icon" alt="" /> - <div>鏈勾绱鍑哄簱閲�</div> + <div>绱鍑哄簱閲�(绠�)</div> + <div class="question"> + <img src="@/assets/images/ic_question@2x.png" style="margin-left: 6px;" class="icon" alt=""> + <div class="hover_wrap"> + <div class="triangle"></div> + <div class="title">绱鍑哄簱閲忕粺璁¤鏄庯細</div> + <div>绱鍑哄簱閲忥細鎵�鏈夌墿娴佸嚭搴撲綔涓氭暟鎹紙鍖呭惈鑱旇惀鍔犲伐锛堝洖杩愩�佽惤鍦伴攢鍞級銆佸墠缃簱绉诲簱(鎴愰兘/涓存矀)绛夋墍鏈夊嚭搴撲綔涓氭暟鎹級</div> + </div> + </div> + </div> + <div class="tabs"> + <div class="tab" :class="{ active: activeTab1 == 1 }" @click="tab1Click(1)">鏈懆</div> + <div class="separate"></div> + <div class="tab" :class="{ active: activeTab1 == 0 }" @click="tab1Click(0)">鏈湀</div> + <div class="separate"></div> + <div class="tab" :class="{ active: activeTab1 == 2 }" @click="tab1Click(2)">鏈勾</div> </div> </div> <div class="content_wrap"> <div class="num_wrap"> - <div class="num_list"> - <div class="num" v-for="i in '200000'"> - {{ i }} - <img class="bg" src="@/assets/images/LogisticsCenter/bg_number@2x.png" alt=""> + <div class="question1"> + <div class="hover_con"> + <div class="num_list" v-if="StockOutData.currentNum || StockOutData.currentNum == 0"> + <div class="num" v-for="i in StockOutData.currentNum + ''"> + {{ i }} + <img class="bg" src="@/assets/images/LogisticsCenter/bg_number@2x.png" alt=""> + </div> + </div> + <div class="hover_wrap"> + <div class="triangle"></div> + <div class="title" v-if="StockOutData.currentProvinceNum || StockOutData.currentProvinceNum == 0"> + 璋冩嫧鍑哄簱閲忥細{{ StockOutData.currentProvinceNum.toFixed(0) }}绠�</div> + <div class="title" v-if="StockOutData.currentOtherNum || StockOutData.currentOtherNum == 0"> + 鍏朵粬鍑哄簱閲忥細{{ StockOutData.currentOtherNum.toFixed(0) }}绠�</div> + </div> </div> + </div> - <div class="content"> + <div class="content" v-if="false"> <div class="unit_wrap"> <span class="la">鍚屾瘮</span> - <img src="@/assets/images/ic_up.png" class="icon" alt=""> - <span>10.2%</span> - <span class="la" style="margin-left: 30px;margin-right: 10px;">绱鍑哄簱杞︽</span> - <span>3900</span> + <template v-if="StockOutData.sameOutNum"> + <img v-if="StockOutData.currentOutNum >= StockOutData.sameOutNum" src="@/assets/images/ic_up.png" + class="icon" alt=""> + <img v-else src="@/assets/images/ic_down.webp" class="icon" alt=""> + </template> + <span v-if="StockOutData.sameOutNum">{{ Math.abs((((StockOutData.currentOutNum + - + StockOutData.sameOutNum) / + StockOutData.sameOutNum) + * 100).toFixed(2)) }}%</span> + <span v-else style="margin-left: 6px;">-</span> + <span v-if="StockOutData.totalCarNum" class="la" + style="margin-left: 30px;margin-right: 10px;">绱鍑哄簱杞︽</span> + <span>{{ StockOutData.totalCarNum || '' }}</span> </div> </div> @@ -49,10 +87,10 @@ <div class="echart_wrap"> <div class="echart1" id="echart1"></div> <div class="list"> - <div class="item" v-for="item, i in StockOutData" :key="i"> + <div class="item" v-for="item, i in StockOutData.arr" :key="i"> <div :style="{ background: colors[i] }" class="icon"></div> <div class="text">{{ item.name }}</div> - <div class="num">{{ item.value }}</div> + <div class="num">{{ item.rate }}</div> </div> </div> </div> @@ -73,26 +111,40 @@ <div class="second_title"> <div class="title"> <img src="@/assets/images/LogisticsCenter/ic_title@2x.png" class="icon" alt="" /> - <div>褰撳墠杩愯緭浠诲姟</div> + <div>褰撳墠璁㈠崟浠诲姟</div> </div> <div class="search_wrap"> <img src="@/assets/images/LogisticsCenter/ic_search@2x.png" alt=""> - <span>璁㈠崟鏌ヨ</span> + <input class="input" type="text" placeholder="璁㈠崟鏌ヨ" @keyup.enter="getData2" @blur="getData2" + v-model="taskCode"> + <!-- <span>璁㈠崟鏌ヨ</span> --> </div> </div> <div class="list_wrap"> <div class="header line"> - <span class="item">杩愯緭杞﹁締</span> - <span class="item">鐘舵��</span> - <span class="item">浣嶇疆</span> + <span class="item">鍚堝悓鍙�</span> + <span class="item status">璁㈠崟鐘舵��</span> + <span class="item">鐩殑鍦�</span> <span class="item">浠诲姟涓嬭揪鏃堕棿</span> </div> - <div class="line" v-for="i in 5"> - <span class="item">鐨朅23bbb</span> - <span class="item">11</span> - <span class="item">11</span> - <span class="item">11</span> + <div class="one-swiper list"> + <div class="swiper-wrapper"> + <div :class="{ avtive: modalInfo.contractNumber == item.contractNumber }" + class="line one-swiper-slide swiper-slide item" @click="taskClick(item)" + v-for="(item, i) in transportTask" :key="i"> + <span class="item">{{ item.contractNumber }}</span> + <span class="item status">{{ item.statusDesc }}</span> + <span class="item">{{ item.receiveEnterprise }}</span> + <span class="item">{{ item.createDate || '-' }}</span> + </div> + </div> </div> + <template v-if="isLoadingTask || transportTask.length == 0"> + <Loading v-if="isLoadingTask" /> + <div class="empty" v-else> + <img src="@/assets/images/default_nodata.png" alt=""> + </div> + </template> </div> </div> </div> @@ -102,46 +154,191 @@ <div class="left"> <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" /> <span>鍑哄簱鑳藉姏</span> + <div class="question"> + <img src="@/assets/images/ic_question@2x.png" style="margin-left: 4px;" class="icon" alt=""> + <div class="hover_wrap"> + <div class="triangle"></div> + <div class="title">鍑哄簱鑳藉姏缁熻璇存槑锛�</div> + <div>1銆佸綋鍓嶈鍗曢噺锛氭埅鑷崇洰鍓嶆湭閰嶈浇鐨勮鍗曢噺</div> + <div>2銆佸綋鍓嶄换鍔¢噺锛氭墍鏈夊凡涓嬭揪杩愯緭涓旀湭鍑哄簱鐨勪换鍔¢噺锛氭埅姝㈢洰鍓嶅凡閰嶈浇鏈嚭搴�+鏃犻渶閰嶈浇鐨勪换鍔�(鍚屽煄浠诲姟閲�)</div> + <div>3銆佷粖鏃ュ嚭搴撻噺锛氫粖鏃ュ疄闄呭嚭搴撻噺锛氫互鐢靛瓙閿佷笂閿佷负鍑�</div> + <div>4銆佸墿浣欎换鍔¢噺锛氭暟鎹悓褰撳墠浠诲姟閲忥紙寮圭獥鍒嗗埆灞曠ず鍚屽簱鍜岃繍杈撲换鍔¢噺</div> + </div> + </div> </div> <div class="right"> - <img src="@/assets/images/LogisticsCenter/position.png" class="posi" alt=""> - <span>鍏ㄧ渷</span> - <img src="@/assets/images/LogisticsCenter/bottom.png" class="icon" alt=""> + <img @click="showPro = !showPro" src="@/assets/images/LogisticsCenter/position.png" class="posi" alt=""> + <span @click="showPro = !showPro">{{ activeCity.name }}</span> + <img @click="showPro = !showPro" src="@/assets/images/LogisticsCenter/bottom.png" class="icon" alt=""> + <div v-if="showPro" class="select_op"> + <div class="line" @click="cityClick(item)" v-for="item in cityList">{{ item.name }}</div> + </div> </div> </div> <div class="static_wrap"> <div class="item"> <img src="@/assets/images/LogisticsCenter/ic_jinrijihua@2x.png" alt=""> <div class="content"> - <div class="name">浠婃棩璁″垝閲�</div> - <div class="num"><span>1000</span>涓囨敮</div> - <div class="unit">杞︽锛�10</div> + <div class="name">褰撳墠璁㈠崟閲�</div> + <div class="num"><span class="blue" + v-if="cneterData.currentOrderNum || cneterData.currentOrderNum == 0">{{ + cneterData.currentOrderNum }}</span>绠�</div> + </div> + </div> + <div class="item"> + <img src="@/assets/images/LogisticsCenter/ic_jinrijihua@2.png" alt=""> + <div class="content"> + <div class="name">褰撳墠浠诲姟閲�</div> + <div class="num"><span v-if="cneterData.currentPlanNum || cneterData.currentPlanNum == 0">{{ + cneterData.currentPlanNum }}</span>绠�</div> + <div class="unit">杞︽锛歿{ cneterData.currentPlanCarNum }}</div> </div> </div> <div class="item"> <img src="@/assets/images/LogisticsCenter/ic_jinrichuku@2x.png" alt=""> <div class="content"> <div class="name">浠婃棩鍑哄簱閲�</div> - <div class="num"><span class="today">1000</span>涓囨敮</div> - <div class="unit">杞︽锛�10</div> + <div class="num"><span v-if="cneterData.crrentOutNum || cneterData.crrentOutNum == 0" + class="finish">{{ + cneterData.crrentOutNum }}</span>绠�</div> + <div class="unit">杞︽锛歿{ cneterData.crrentOutCarNum }}</div> </div> </div> - <div class="item"> - <img src="@/assets/images/LogisticsCenter/ic_jinriweichu@2x.png" alt=""> - <div class="content"> - <div class="name">浠婃棩鏈嚭搴撻噺</div> - <div class="num"><span class="finish">1000</span>涓囨敮</div> - <div class="unit">杞︽锛�10</div> + <div class="tooltip_wrap"> + <div class="item"> + <img src="@/assets/images/LogisticsCenter/ic_jinriweichu@2x.png" alt=""> + <div class="content"> + <div class="name">鍓╀綑浠诲姟閲�</div> + <div class="num"><span v-if="cneterData.crrentRestNum || cneterData.crrentRestNum == 0" + class="today">{{ + cneterData.crrentRestNum }}</span>绠�</div> + <div class="unit">杞︽锛歿{ cneterData.crrentRestCarNum }}</div> + </div> + </div> + <div class="tooltip"> + <div class="triangle"></div> + <div>杩愯緭浠诲姟閲忥細{{ cneterData.needTransportOrderNum }}绠�</div> + <div>鍚屽煄鍏卞簱浠诲姟閲忥細{{ cneterData.noNeedTransportOrderNum }}绠�</div> </div> </div> </div> <div class="footer"> - <span>鍗犲嚭搴撹兘鍔�</span> - <span class="num">80%</span> + <div class="wrap"> + <div class="content" :style='{ width: cneterData.level1 }'> + <div class="scale">0</div> + <!-- <div class="node"> + <div>8h</div> + <div class="node_icon"> + <div class="icon icon1"></div> + <div class="icon icon2"></div> + </div> + </div> --> + <div :style="{ width: cneterData.level3 }" + :class="{ box23: cneterData.crrentOutNum >= cneterData.hoursAbility }" class="box"> + <div class="tooltip_wrap"> + <div v-if="cneterData.crrentOutNum < cneterData.hoursAbility" class="tag"> + <div class="icon"></div> + <span>浠婃棩鍑哄簱</span> + </div> + <div class="tooltip"> + <div class="triangle"></div>浠婃棩鍑哄簱閲忥細{{ cneterData.crrentOutNum }}绠� + </div> + </div> + </div> + <div :style="{ width: cneterData.level2 }" class="box box1"> + <div class="tooltip_wrap"> + <div v-if="cneterData.hoursAbility >= cneterData.currentPlanNum" class="tag tag1"> + <div class="icon"></div> + <span>褰撳墠浠诲姟</span> + </div> + <div class="tooltip"> + <div class="triangle"></div>褰撳墠浠诲姟閲忥細{{ cneterData.currentPlanNum }}绠� + </div> + </div> + </div> + </div> + <div class="side"> + <div v-if="cneterData.crrentOutNum >= cneterData.hoursAbility" :style="{ width: cneterData.level33 }" + class="box box22"> + <div class="tooltip_wrap"> + <div class="tag"> + <div class="icon"></div> + <span>浠婃棩鍑哄簱</span> + </div> + <div class="tooltip"> + <div class="triangle"></div>浠婃棩鍑哄簱閲忥細{{ cneterData.crrentOutNum }}绠� + </div> + </div> + </div> + <div v-if="cneterData.hoursAbility <= cneterData.currentPlanNum" + :style="{ width: cneterData.level22 }" class="box box1 box11"> + <div class="tooltip_wrap"> + <div class="tag tag1"> + <div class="icon"></div> + <span>褰撳墠浠诲姟</span> + </div> + <div class="tooltip"> + <div class="triangle"></div>褰撳墠浠诲姟閲忥細{{ cneterData.currentPlanNum }}绠� + </div> + </div> + </div> + <!-- <div class="box"></div> --> + <div class="scale" style="left: -12px;"> + <div class="tooltip_wrap"> + <span>8h</span> + <div class="tooltip"> + <div class="triangle"></div>8灏忔椂鍑哄簱鑳藉姏锛歿{ cneterData.hoursAbility }}绠� + </div> + </div> + </div> + <div class="scale scale1"> + <div class="tooltip_wrap"> + <span>鏈�澶�</span> + <div class="tooltip"> + <div class="triangle"></div>鏈�澶у嚭搴撹兘鍔涳細{{ cneterData.maxAbility }}绠� + </div> + </div> + </div> + </div> + </div> </div> </div> <div class="center_box_two"> <div class="echart_map" ref="mapEchart" id="echart_map"></div> + <div v-if="showModal1" class="modal1"> + <div class="content"> + <div class="head line"> + <div class="item">杞︾墝鍙�</div> + <div class="item">鍚堝悓鍙�</div> + <div class="item addr">鐩殑鍦�</div> + </div> + <div class="list"> + <div class="line" v-for="item in active1List"> + <div class="item">{{ item.platNumber }}</div> + <div class="item">{{ item.contractNumber }}</div> + <div class="item addr">{{ item.repertotyName }}</div> + </div> + </div> + </div> + </div> + <!-- <div class="list"> + <div class="item"> + <div class="icon"></div> + <div class="text">鍑哄簱閲�10w浠ヤ笂</div> + </div> + <div class="item"> + <div class="icon icon2"></div> + <div class="text">鍑哄簱閲�5-10w</div> + </div> + <div class="item"> + <div class="icon icon3"></div> + <div class="text">鍑哄簱閲�2-5w</div> + </div> + <div class="item"> + <div class="icon icon4"></div> + <div class="text">鍑哄簱閲�2w浠ヤ笅</div> + </div> + </div> --> </div> </div> <div class="right_box"> @@ -152,74 +349,159 @@ </div> <img src="@/assets/images/title@2x.png" class="bg" alt="" /> </div> - <div class="right_box_one"> - <div class="second_title"> - <div class="title"> - <img src="@/assets/images/LogisticsCenter/ic_title@2x.png" class="icon" alt="" /> - <div>鏈勾绱鍏ュ簱閲�</div> - </div> - </div> - <div class="content_wrap"> - <div class="num_wrap"> - <div class="num_list"> - <div class="num" v-for="i in '200000'"> - {{ i }} - <img class="bg" src="@/assets/images/LogisticsCenter/bg_number@2x.png" alt=""> - </div> - </div> - <div class="content"> - <div class="unit_wrap"> - <span class="la">鍚屾瘮</span> - <img src="@/assets/images/ic_up.png" class="icon" alt=""> - <span>10.2%</span> - <span class="la" style="margin-left: 30px;margin-right: 10px;">绱鍑哄簱杞︽</span> - <span>3900</span> - </div> - - </div> - </div> - <div class="static_wrap"> - <div class="echart_wrap"> - <div class="echart3" id="echart3"></div> - <div class="pie_text"> - <div class="fs30">30%</div> - </div> - </div> - <div class="text">璁″垝瀹屾垚閲�</div> - </div> - </div> - </div> - <div class="right_box_two"> - <div class="second_title"> - <div class="title"> - <img src="@/assets/images/LogisticsCenter/ic_title@2x.png" class="icon" alt="" /> - <div>杩涢攢瀛樿繍钀�</div> - </div> - <div class="tabs"> - <div class="tab active">7澶�</div> - <div class="separate"></div> - <div class="tab">30澶�</div> - <div class="separate"></div> - <div class="tab">1骞�</div> - </div> - </div> - <div class="echart4_wrap"> - <div class="echart4" id="echart4"></div> - </div> - </div> <div class="right_box_three"> <div class="second_title"> <div class="title"> <img src="@/assets/images/LogisticsCenter/ic_title@2x.png" class="icon" alt="" /> - <div>搴撳瓨鍒╃敤鐜�</div> + <div>浠撳簱璧勬簮鍒╃敤鐜�</div> + </div> + <div class="side"> + 鍏ㄧ渷锛� + <span>{{ data5.currentNum }}</span> + <span class="unit">绠� | </span> + <span v-if="data5.totalNum">{{ ((data5.currentNum / data5.totalNum) * 100).toFixed(1) }}%</span> </div> </div> <div class="echart5_wrap"> <div class="echart5" id="echart5"></div> </div> </div> + <div class="right_box_three"> + <div class="second_title"> + <div class="title"> + <img src="@/assets/images/LogisticsCenter/ic_title@2x.png" class="icon" alt="" /> + <div>鍑哄簱鑳藉姏鍒╃敤鐜�</div> + </div> + <div class="side"> + 鍏ㄧ渷锛� + <span>{{ data6.currentNum }}</span> + <span class="unit">绠� | </span> + <span v-if="data6.totalNum">{{ ((data6.currentNum / data6.totalNum) * 100).toFixed(1) }}%</span> + </div> + </div> + <div class="echart5_wrap"> + <div class="echart5" id="echart6"></div> + </div> + </div> + <div class="right_box_three"> + <div class="second_title"> + <div class="title"> + <img src="@/assets/images/LogisticsCenter/ic_title@2x.png" class="icon" alt="" /> + <div>杩愬姏璧勬簮鍒╃敤鐜�</div> + </div> + <div class="side"> + 鍏ㄧ渷锛� + <span>{{ data7.currentNum }}</span> + <span class="unit">杈� | </span> + <span v-if="data7.totalNum">{{ (data7.useRate * 100).toFixed(1) }}%</span> + </div> + </div> + <div class="echart5_wrap"> + <div class="echart5" id="echart7"></div> + </div> + </div> </div> </div> + <!-- --> + <div class="modal_wrap" v-if="showModal"> + <div class="title_head"> + <div class="left"> + <img src="@/assets/images/LogisticsCenter/ic_hetong.png" alt=""> + <span>鍚堝悓鍙凤細{{ modalInfo.contractNumber }}</span> + </div> + <div class="tit_status">{{ modalInfo.orderStatusDesc }}</div> + </div> + <div v-if="modalInfo.overStock && modalInfo.overStock == 1" class="stock"> + <img src="@/assets/images/LogisticsCenter/ic_tips@2x.png" alt=""> + <span>鍥犲簱瀛樹笉瓒筹紝璁㈠崟鏆傛椂鏃犳硶閰嶈浇</span> + </div> + <div class="info"> + <div class="item"> + <div class="dian"></div> + <div class="la">鍙告満淇℃伅锛�</div> + <div class="val">{{ modalInfo.driverName }} {{ modalInfo.driverTel }}</div> + </div> + <div class="item"> + <div class="dian"></div> + <div class="la">杞︾墝鍙凤細</div> + <div class="val">{{ modalInfo.plateName }}</div> + </div> + <div class="item"> + <div class="dian"></div> + <div class="la">鍙戣揣鍦扮偣锛�</div> + <div class="val">{{ modalInfo.deliveryEnterprise }}</div> + </div> + <div class="item"> + <div class="dian"></div> + <div class="la">鍒拌揣鍦扮偣锛�</div> + <div class="val">{{ modalInfo.receiveEnterprise }}</div> + </div> + <div class="item"> + <div class="dian"></div> + <div class="la">杞﹁締浣嶇疆锛�</div> + <div class="val">{{ modalInfo.position || '-' }}</div> + </div> + <div class="item"> + <div class="dian"></div> + <div class="la">棰勮鍒拌揪锛�</div> + <div class="val" v-if="modalInfo.plannedArrivedDate">{{ modalInfo.plannedArrivedDate.slice(0, 11) }}</div> + </div> + </div> + <div class="logistics_wrap"> + <div class="m_title"> + <img src="@/assets/images/LogisticsCenter/ic_title@2x.png" alt=""> + <span>鐗╂祦淇℃伅</span> + </div> + <div id="map-container" ref="mapContainer"></div> + <div class="fu_list"> + <div class="fu_item" v-for="item, k in modalInfo.cicleStatusList"> + <view v-if="k != modalInfo.cicleStatusList.length - 1" class="separate"></view> + <div class="item_title"> + <div class="icon"> + <img v-if="item.key == 0 && k != 0" src="@/assets/images/LogisticsCenter/ic_dingdan@2x.png" + class="icon"></img> + <img v-if="item.key == 0 && k == 0" src="@/assets/images/LogisticsCenter/ic_dingdan_sel@2x.png" + class="icon"></img> + <img v-if="item.key == 1 && k != 0" src="@/assets/images/LogisticsCenter/ic_peizai@2x.png" + class="icon"></img> + <img v-if="item.key == 1 && k == 0" src="@/assets/images/LogisticsCenter/ic_peizai_sel@2x.png" + class="icon"></img> + <img v-if="item.key == 2 && k != 0" src="@/assets/images/LogisticsCenter/ic_cangku@2x.png" + class="icon"></img> + <img v-if="item.key == 2 && k == 0" src="@/assets/images/LogisticsCenter/ic_cangku_sel@2x.png" + class="icon"></img> + <img v-if="item.key == 3 && k != 0" src="@/assets/images/LogisticsCenter/ic_yunshu@2x.png" + class="icon"></img> + <img v-if="item.key == 3 && k == 0" src="@/assets/images/LogisticsCenter/ic_yunshu_sel@2x.png" + class="icon"></img> + <img v-if="item.key == 4 && k != 0" src="@/assets/images/LogisticsCenter/ic_daohuo@2x.png" + class="icon"></img> + <img v-if="item.key == 4 && k == 0" src="@/assets/images/LogisticsCenter/ic_daohuo_sel@2x.png" + class="icon"></img> + <img v-if="item.key == 5" src="@/assets/images/LogisticsCenter/ic_dangqian@2x.png" class="icon"></img> + </div> + <div>{{ item.name }}</div> + </div> + <div class="item" v-for="ite, i in item.secondList"> + <div class="h2" v-if="ite.orderStatusDes"> + <div class="icon_wrap" v-if="i != 0"> + <image src="@/static/driver/ic_mostarted.png" class="icon"></image> + </div> + <div v-else class="icon_wrap"></div> + <div class="text" :class="{ placeholder3: k == 0 && i == 0 }"> + {{ ite.orderStatusDes }} + <text v-if="ite.tel">,鍙戣揣浠撳簱鐢佃瘽锛�</text> + <text v-if="ite.tel" class="primaryColor">{{ ite.tel }}</text> + </div> + </div> + <div class="time">{{ ite.recordDate }}</div> + </div> + </div> + </div> + </div> + <Loading v-if="modalLoading" /> + </div> + <div class="modal_mask" v-if="showModal || showModal1" @click="closeModal"></div> </div> </v-scale-screen> </template> @@ -229,8 +511,35 @@ import VScaleScreen from 'v-scale-screen' import Percent from '@/components/percent.vue' import dayjs from 'dayjs' +import axios from "axios" import * as echarts from 'echarts' +import 'swiper/css/swiper.min.css' +import Swiper from 'swiper' +import Map from '@/components/Map.vue' import chinaJSON from '@/assets/china.json' +import fahuoImg from '@/assets/images/LogisticsCenter/ic_fahuodi@2x.png' +import shouImg from '@/assets/images/LogisticsCenter/ic_huowu@2x.png' +// import Loading from 'vue-loading-overlay' +// import 'vue-loading-overlay/dist/css/index.css' +import Loading from '@/components/Loading.vue' + +import { + getStoreOperationList, + getStorecenterData, + getStorecenterDataNew, + getStoreenergyDataList, + getStorelastMonthOil, + getStoreTaskList, + + kztotalOutQtyNum, + kzorderInfo, + mapYearAndMonthOutList, + kzinventoryUseRate, + outAbilityUseRate, + tranportAbilityUseRate, + kzfactoryList, + arriveGoodsList +} from '@/api' const weekMap = ['鏄熸湡鏃�', '鏄熸湡涓�', '鏄熸湡浜�', '鏄熸湡涓�', '鏄熸湡鍥�', '鏄熸湡浜�', '鏄熸湡鍏�',] const date = ref(dayjs().format('YYYY.MM.DD')) @@ -242,673 +551,247 @@ time.value = dayjs().format('HH:mm:ss') }, 1000) - -const colors = ['#0193FE', '#FFB642'] -const StockOutData = ref([]) -const getStockOut = () => { - let arr = [] - arr.push({ name: '鐪佸唴', value: 20 }) - arr.push({ name: '鐪佸', value: 30 }) - arr.sort((a, b) => b.value - a.value) - StockOutData.value = arr - - initEchart1() -} -const initEchart1 = () => { - const myChart = echarts.init(document.getElementById('echart1')) - const option = { - tooltip: { - trigger: 'item' - }, - series: [ - { - type: 'pie', - radius: ['72%', '96%'], - label: { - show: false, - position: 'center' - }, - color: colors, - labelLine: { - show: false - }, - data: StockOutData.value - } - ] - } - myChart.setOption(option) - window.addEventListener('resize', function () { // 鎵ц - myChart.resize() - }) -} -const initEchart2 = () => { - const myChart = echarts.init(document.getElementById('echart1')) - const option = { - series: [ - { - type: 'pie', - radius: ['86%', '100%'], - label: { - show: false, - position: 'center' - }, - padAngle: 5, - itemStyle: { - borderRadius: 10 - }, - color: colors, - labelLine: { - show: false - }, - data: [ - { value: 1048, name: 'Search Engine' }, - { value: 735, name: 'Direct' }, - { value: 580, name: 'Email' } - ] - } - ] - } - myChart.setOption(option) - window.addEventListener('resize', function () { // 鎵ц - myChart.resize() - }) -} -const initEchart3 = () => { - const myChart = echarts.init(document.getElementById('echart3')) - const option = { - tooltip: { - trigger: 'item' - }, - series: [ - { - type: 'pie', - radius: ['80%', '96%'], - label: { - show: false, - position: 'center' - }, - color: ['#72ecc5', '#19373a'], - labelLine: { - show: false - }, - data: StockOutData.value - } - ] - } - myChart.setOption(option) - window.addEventListener('resize', function () { // 鎵ц - myChart.resize() - }) -} -const initEchart4 = () => { - // 鍩轰簬鍑嗗濂界殑dom锛屽垵濮嬪寲echarts瀹炰緥 - const myChart = echarts.init(document.getElementById('echart4')) - // 缁樺埗鍥捐〃 - myChart.setOption({ - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'line' - }, - formatter: function (params) { - setTimeout(() => { - console.log('params', params) - }) - return ` - <div style="background-color: #091123;margin: -12px;padding: 14px;border: 2px solid rgba(1,217,254,0.5);color: #fff;"> - <div>${params[0].name}鎬婚攢鍞(涓囧厓)</div> - <div style="display: flex;align-items: center;"> - <div style="width: 10px;height: 10px;border-radius: 50%;background-color: #ebbf40;"></div> - <div style="margin: 0 4px 0 6px;">鎬婚攢鍞�</div> - <span style="color: #ebbf40;">${params[0].value}</span> - </div> - </div> - ` - } - }, - xAxis: { - type: 'category', - boundaryGap: false, - data: [1, 2, 3, 4, 5, 5] - }, - yAxis: { - type: 'value', - name: '涓囨敮', - nameTextStyle: { - padding: [0, 0, 0, -16] // 鍥涗釜鏁板瓧鍒嗗埆涓轰笂鍙充笅宸︿笌鍘熶綅缃窛绂� - }, - splitLine: { - show: true, - lineStyle: { - //杩欓噷杈撳叆绾挎潯鐨勬牱寮� - color: 'rgba(255,255,255,0.14)', - type: 'dashed', - }, - splitNumber: 4 - } - }, - legend: { - itemGap: 24, - icon: 'rect', - right: '12px', - top: '0', - itemWidth: 16, - itemHeight: 2, - textStyle: { - color: '#fff', - borderColor: '#fff' - }, - data: ['鎬诲叆搴撻噺', '鎬诲嚭搴撻噺'] - }, - grid: { - top: '18%', - left: '0%', - right: '2%', - bottom: '2%', - containLabel: true - }, - series: [ - { - name: '鎬诲叆搴撻噺', - data: [10, 2, 30, 4, 4, 30].map(i => { - return { - name: i, - value: i, - } - }), - type: 'line', - areaStyle: { - normal: { - color: { - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [ - { - offset: 0, - color: "#4191f6" // 0% 澶勭殑棰滆壊 - }, - { - offset: .4, - color: "#203d79" // 0% 澶勭殑棰滆壊 - }, - { - offset: 1, - color: "#1b1b12" // 100% 澶勭殑棰滆壊 - }], - globalCoord: false // 缂虹渷涓� false - } - } - }, - lineStyle: { // 绾挎潯鏍峰紡 - color: { - type: 'linear', - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [{ - offset: 0, color: '#4191f6' // 0% 澶勭殑棰滆壊 - }, { - offset: 1, color: '#4191f6' // 100% 澶勭殑棰滆壊 - }], - }, - width: 1.5, // 绾挎潯绮楃粏 - }, - symbol: 'circle', - symbolSize: 6, - itemStyle: { - color: "#4190f4", - borderColor: "rgba(255,255,255,.3)", - borderWidth: 6, - }, - smooth: true - }, - { - name: '鎬诲嚭搴撻噺', - data: [30, 2, 10, 4, 4, 20].map(i => { - return { - name: i, - value: i, - } - }), - type: 'line', - areaStyle: { - normal: { - color: { - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [{ - offset: 0, - color: "rgba(192, 156, 53,.7)" // 0% 澶勭殑棰滆壊 - }, { - offset: 1, - color: "#1b1b12" // 100% 澶勭殑棰滆壊 - }], - globalCoord: false // 缂虹渷涓� false - } - } - }, - lineStyle: { // 绾挎潯鏍峰紡 - color: { - type: 'linear', - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [{ - offset: 0, color: '#F3BD00' // 0% 澶勭殑棰滆壊 - }, { - offset: 1, color: '#F3BD00' // 100% 澶勭殑棰滆壊 - }], - }, - width: 2, // 绾挎潯绮楃粏 - }, - symbol: 'circle', - symbolSize: 6, - itemStyle: { - color: "#F3BD00", - borderColor: "rgba(255,255,255,.3)", - borderWidth: 6, - }, - smooth: true - } - ] - }) - - window.addEventListener('resize', function () {//鎵ц - myChart.resize() - }) -} -const initEchart5 = () => { - // 鍩轰簬鍑嗗濂界殑dom锛屽垵濮嬪寲echarts瀹炰緥 - const myChart = echarts.init(document.getElementById('echart5')) - // 缁樺埗鍥捐〃 - myChart.setOption({ - legend: { - itemGap: 12, - // icon: 'circle', - right: '12px', - top: '0', - data: ['鎬诲簱瀛�', '褰撳墠搴撳瓨', '搴撳瓨鍒╃敤鐜�'], - itemWidth: 20, - itemHeight: 10, - textStyle: { - color: '#fff', - borderColor: '#fff' - }, - }, - grid: { - left: '3%', - right: '4%', - bottom: '3%', - top: '16%', - containLabel: true - }, - tooltip: { - trigger: 'axis' - }, - xAxis: [{ - nameGap: 5, - type: 'category', - axisLine: { - show: true, - lineStyle: { - color: '#999' - }, - }, - axisLabel: { - color: '#869CC9' - // fontSize: 24, - }, - axisTick: { - show: false, - }, - data: ['鍚堣偉', '婊佸窞', '鑺滄箹', '铓屽煚', '闃滈槼'], - }], - yAxis: [ - { - nameTextStyle: { - color: '#869CC9', - }, - offset: 0, - name: '涓囨敮', - type: 'value', - axisLabel: { - show: true, - color: "#869CC9", - }, - axisLine: { - show: true, - }, - splitLine: { - show: true, - lineStyle: { - width: 1, - color: "rgba(49,105,129,0.4)", - type: 'dashed' - } - }, - }, - { - type: 'value', - name: '%', - min: 0, - max: 100, - // interval: 5, - axisLabel: { - formatter: '{value}%' - }, - splitLine: false - } - ], - series: [ - { - name: '鎬诲簱瀛�', - type: 'bar', - barWidth: 8, - barGap: '60%', - label: { - show: false, - position: 'top', - color: '#fff', - }, - itemStyle: { - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 0, - color: '#5bc7d5' - }, - { - offset: 1, - color: '#1a3f55' - } - ], false), - lineStyle: { - width: 1, - type: 'solid' - }, - barBorderRadius: [30, 30, 0, 0], - }, - data: [900, 438, 485, 631, 689] - }, - { - name: '褰撳墠搴撳瓨', - type: 'bar', - barWidth: 8, - label: { - show: false, - position: 'top', - color: '#fff', - }, - itemStyle: { - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 0, - color: '#edaf3d' - }, - { - offset: 1, - color: '#323522' - } - ], false), - lineStyle: { - width: 1, - type: 'solid' - }, - barBorderRadius: [30, 30, 0, 0], - }, - data: [438, 485, 631, 689, 900] - }, - { - name: '搴撳瓨鍒╃敤鐜�', - type: 'line', - smooth: true, - showAllSymbol: true, - symbol: 'none', - lineStyle: { - color: "#3d87e5" - }, - label: { - show: false, - position: 'top', - color: '#fff', - }, - data: [485, 631, 389, 224, 287] - } - ] - }) - - window.addEventListener('resize', function () {//鎵ц - myChart.resize() - }) -} - +// +const mapList = ref([]) const mapEchart = ref() const initMap = () => { var myChart = echarts.init(mapEchart.value) echarts.registerMap('china', chinaJSON) var points = [ // 鐐瑰潗鏍� - { value: [110.81, 33.40], itemStyle: { color: '#c1bb1f' }, name: '11', total: 0, bj: 0, yj: 0, yx: 0, tj: 0, dw: 0 }, - { value: [116.55, 40.01], itemStyle: { color: '#3eef1d' }, name: '鍖椾含', total: 0, bj: 0, yj: 0, yx: 0, tj: 0, dw: 0 }, - { value: [113.11, 28.40], itemStyle: { color: '#3eef1d' }, name: '22', total: 5, bj: 0, yj: 0, yx: 5, tj: 0, dw: 0 }, - { value: [106.44, 29.50], itemStyle: { color: '#3eef1d' }, name: '33', total: 10, bj: 0, yj: 0, yx: 10, tj: 0, dw: 0 }, - { value: [112.85, 38.95], itemStyle: { color: '#3eef1d' }, name: '44', total: 8, bj: 0, yj: 0, yx: 8, tj: 0, dw: 0 }, - { value: [82.78, 43.27], itemStyle: { color: '#3eef1d' }, name: '55', total: 18, bj: 0, yj: 0, yx: 18, tj: 0, dw: 0 } + { value: [117.1582, 36.8701, 100], itemStyle: { color: '#6ae5e0' }, name: '灞变笢', total: 2, bj: 0, yj: 0, yx: 0, tj: 0, dw: 0 }, + { value: [117.29, 32.0581, 90], itemStyle: { color: '#6ae5e0' }, name: '瀹夊窘', total: 2, bj: 0, yj: 0, yx: 0, tj: 0, dw: 0 }, + { value: [114.3896, 30.6628, 1999], itemStyle: { color: '#6ae5e0' }, name: '婀栧寳', total: 5, bj: 0, yj: 0, yx: 5, tj: 0, dw: 0 }, + { value: [119.5313, 29.8773, 2], itemStyle: { color: '#6ae5e0' }, name: '娴欐睙', total: 10, bj: 0, yj: 0, yx: 10, tj: 0, dw: 0 }, + { value: [113.12244, 23.009505, 12], itemStyle: { color: '#6ae5e0' }, name: '骞夸笢', total: 8, bj: 0, yj: 0, yx: 8, tj: 0, dw: 0 }, + { value: [103.9526, 30.7617, 1901], itemStyle: { color: '#fff' }, name: '鍥涘窛', total: 18, bj: 0, yj: 0, yx: 18, tj: 0, dw: 0 } ] - var lineToLf = [ - { name: '11', coords: [[110.81, 33.40], [116.55, 40.01]], lineStyle: { color: '#c1bb1f' } }, - { name: '22', coords: [[113.11, 28.40], [116.55, 40.01]], lineStyle: { color: '#3eef1d' } }, - { name: '33', coords: [[106.44, 29.50], [116.55, 40.01]], lineStyle: { color: '#3eef1d' } }, - { name: '44', coords: [[112.85, 38.95], [116.55, 40.01]], lineStyle: { color: '#3eef1d' } }, - { name: '55', coords: [[82.78, 43.27], [116.55, 40.01]], lineStyle: { color: '#3eef1d' } } + const mapData = [ + { name: '鍖椾含甯�', code: '110000', value: 0 }, + { name: '澶╂触甯�', code: '120000', value: 0 }, + { name: '涓婃捣甯�', code: '310000', value: 0 }, + { name: '閲嶅簡甯�', code: '500000', value: 0 }, + { name: '娌冲寳鐪�', code: '130000', value: 0 }, + { name: '娌冲崡鐪�', code: '410000', value: 0 }, + { name: '浜戝崡鐪�', code: '530000', value: 0 }, + { name: '杈藉畞鐪�', code: '210000', value: 0 }, + { name: '榛戦緳姹熺渷', code: '230000', value: 0 }, + { name: '婀栧崡鐪�', code: '430000', value: 0 }, + { name: '瀹夊窘鐪�', code: '340000', value: 0 }, + { name: '灞变笢鐪�', code: '370000', value: 0 }, + { name: '鏂扮枂缁村惥灏旇嚜娌诲尯', code: '650000', value: 0 }, + { name: '姹熻嫃鐪�', code: '320000', value: 0 }, + { name: '娴欐睙鐪�', code: '330000', value: 0 }, + { name: '姹熻タ鐪�', code: '360000', value: 0 }, + { name: '婀栧寳鐪�', code: '420000', value: 0 }, + { name: '骞胯タ澹棌鑷不鍖�', code: '450000', value: 0 }, + { name: '鐢樿們鐪�', code: '620000', value: 0 }, + { name: '灞辫タ鐪�', code: '140000', value: 0 }, + { name: '鍐呰挋鍙よ嚜娌诲尯', code: '150000', value: 0 }, + { name: '闄曡タ鐪�', code: '610000', value: 0 }, + { name: '鍚夋灄鐪�', code: '220000', value: 0 }, + { name: '绂忓缓鐪�', code: '350000', value: 0 }, + { name: '璐靛窞鐪�', code: '520000', value: 0 }, + { name: '骞夸笢鐪�', code: '440000', value: 0 }, + { name: '闈掓捣鐪�', code: '630000', value: 0 }, + { name: '瑗胯棌鑷不鍖�', code: '540000', value: 0 }, + { name: '瀹佸鍥炴棌鑷不鍖�', code: '640000', value: 0 }, + { name: '鍥涘窛鐪�', code: '510000', value: 0 }, + { name: '瀹佸鐪�', code: '640000', value: 0 }, + { name: '娴峰崡鐪�', code: '460000', value: 0 }, + { name: '鍙版咕鐪�', code: '710000', value: 0 }, + { name: '棣欐腐鐗瑰埆琛屾斂鍖�', code: '810000', value: 0 }, + { name: '婢抽棬鐗瑰埆琛屾斂鍖�', code: '820003', value: 0 }, + { name: '鍗楁捣璇稿矝', code: '', value: 0 }, ] + let totalNum = 0 + mapList.value.forEach(i => { + totalNum += i.yearNum + }) + mapData.forEach(item => { + item.monthNum = 0 + item.yearNum = 0 + mapList.value.forEach(ite => { + if (item.code == ite.code) { + item.value = 0 + item.monthNum = ite.monthNum + item.yearNum = ite.yearNum + if (totalNum > 0) { + item.rate = ((ite.yearNum / totalNum) * 100).toFixed(2) + item.value = (ite.yearNum / totalNum).toFixed(4) + + } + } + }) + }) + const option = { - backgroundColor: 'transparent', // 璁剧疆鑳屾櫙鑹查�忔槑 - // 蹇呴』璁剧疆 - tooltip: { - show: false + //鏁版嵁鍒嗘 + visualMap: { + type: 'piecewise', + pieces: [ + { min: 0.05, max: 99999999999, label: '璋冩嫧閲忓崰姣�5%浠ヤ笂', color: '#be6f2b' }, + { min: 0.02, max: 0.05, label: '璋冩嫧閲忓崰姣�2%~5%', color: '#c39332' }, + { min: 0.01, max: 0.02, label: '璋冩嫧閲忓崰姣�1%~2%', color: '#5ecbaf' }, + { min: -1, max: 0.01, label: '璋冩嫧閲忓崰姣�1%浠ヤ笅', color: '#3561a4' }, + // { min: 100000, max: 99999999999, label: '鍑哄簱閲�10w浠ヤ笂', color: '#be6f2b' }, + // { min: 50000, max: 100000, label: '鍑哄簱閲�5-10w', color: '#c39332' }, + // { min: 20000, max: 50000, label: '鍑哄簱閲�2-5w', color: '#5ecbaf' }, + // { min: -1, max: 20000, label: '鍑哄簱閲�2w浠ヤ笅', color: '#3561a4' }, + ], + itemWidth: 22, + itemHeight: 22, + textStyle: { + color: '#fff', // 鏂囨湰棰滆壊 + fontSize: 14, // 瀛椾綋澶у皬 + }, }, - // 鍦板浘闃村奖閰嶇疆 + // 鎮诞绐� + tooltip: { + trigger: 'item', + backgroundColor: 'rgba(0,0,0,0.8)', //璁剧疆鑳屾櫙鍥剧墖 rgba鏍煎紡 + color: '#fff', + borderWidth: '1', //杈规瀹藉害璁剧疆1 + borderColor: 'gray', //璁剧疆杈规棰滆壊 + textStyle: { + color: '#fff', //璁剧疆鏂囧瓧棰滆壊 + }, + extraCssText: 'width:120px;height:40px', // 璁剧疆鎻愮ず妗嗗楂樼瓑css鏍峰紡 + formatter: function (params) { + return `${params.name}: <br /> ${params.value || 0}杈哷 + }, + }, geo: { - map: 'china', - // 杩欓噷蹇呴』瀹氫箟锛屼笉鐒跺悗闈eries閲岄潰涓嶇敓鏁� - tooltip: { - show: false - }, + // 杩欎釜鏄噸鐐� 鈥斺�� 杩欓噷璁剧疆涓哄湴鍥剧殑闃村奖 + map: 'china', // 琛ㄧず涓浗鍦板浘 + roam: false, // 绂佹鎷栨嫿 label: { - show: false + // 鏍囧織淇℃伅 + show: false, // 鏄惁鏄剧ず瀵瑰簲鍦板悕 }, - zoom: 1.5, - silent: true, // 涓嶅搷搴旈紶鏍囨椂闂� - show: true, - roam: false, // 鍦板浘缂╂斁鍜屽钩绉� - aspectScale: 0.75, // scale 鍦板浘鐨勯暱瀹芥瘮 + silent: true, // 绂佹hover鏁堟灉 + zoom: 1.4, // 鍦板浘姣斾緥 + aspectScale: 0.9, // 姣斾緥 + center: [105.194115019531, 36.582111640625], // 鍦板浘涓績浣嶇疆锛� 姝ゅ鐨勭含搴︿笌涓嬮潰鐨刢enter鐩稿樊1搴︽槸褰㈡垚闃村奖鐨勮窛绂伙紝鍙嚜宸遍殢鎰忚皟鏁� itemStyle: { - borderColor: '#2d5f9c', - borderWidth: 1, - areaColor: '#2d5f9c', - shadowColor: 'rgba(1,34,73,0.48)', - shadowBlur: 10, - shadowOffsetX: -10, // - shadowOffsetY: 10 - }, - select: { - disabled: true + areaColor: '#152e4a', //鍦板浘闃村奖鐨勯鑹� + borderColor: '#779dc8', // 鐪佷唤杈规棰滆壊 + borderWidth: 0.5, // 鐪佷唤杈规瀹藉害 + // shadowBlur: 5, // 鐪佷唤杈规鑱氱劍 }, emphasis: { - disabled: true, - areaColor: '#00F1FF' + show: false, }, - // 鍦板浘鍖哄煙鐨勫杈瑰舰 鍥惧舰鏍峰紡 闃村奖鏁堟灉 - // z鍊煎皬鐨勫浘褰細琚珃鍊煎ぇ鐨勫浘褰㈣鐩� - top: '30.2%', - left: 'center', - // 鍘婚櫎鍗楁捣璇稿矝闃村奖 series map閲岄潰娌℃湁姝ゅ睘鎬� - regions: [{ - name: '鍗楁捣璇稿矝', - selected: false, - emphasis: { - disabled: true + //鍦板浘鐨勯槾褰变笉鏄剧ず鍗楁矙璇稿矝 + regions: [ + { + name: '鍗楁捣璇稿矝', + itemStyle: { + // 闅愯棌鍦板浘 + normal: { + opacity: 0, // 涓� 0 鏃朵笉缁樺埗璇ュ浘褰� + }, + emphasis: { + opacity: 0, + }, + }, + label: { + show: false, // 闅愯棌鏂囧瓧 + }, }, - itemStyle: { - areaColor: '#00000000', - borderColor: '#00000000' - } - }], - z: 1 + ], }, + //閰嶇疆灞炴�� series: [ - // 鍦板浘閰嶇疆 { type: 'map', map: 'china', - zoom: 1.5, - tooltip: { - show: false - }, - label: { - show: true, // 鏄剧ず鐪佷唤鍚嶇О - color: '#fff', - fontSize: 13, - shadowColor: '#fff', - shadowBlur: 10, - shadowOffsetX: 2, - shadowOffsetY: 2, - textBorderColor: '#fff', - // rotate: 90, - align: 'center' - }, - top: '28%', - left: 'center', - aspectScale: 0.75, - roam: false, // 鍦板浘缂╂斁鍜屽钩绉� - itemStyle: { - borderColor: '#4278a3', // 鐪佸垎鐣岀嚎棰滆壊 闃村奖鏁堟灉鐨� - borderWidth: 1, - areaColor: '#1d3f71', - opacity: 1 - }, - // 鍘婚櫎閫変腑鐘舵�� - select: { - disabled: true - }, - emphasis: { // 鑱氱劍鍚庨鑹� - disabled: false, // 寮�鍚珮浜� + zoom: 1.4, + aspectScale: 0.9, // 姣斾緥 + zlevel: 1, // 璁剧疆鍦板浘鐨勫眰绾э紝灏嗚鍦板浘涓婄Щ锛堢被浼紌-index锛� + emphasis: { + // 榧犳爣hover鏄惁鏄剧ず鍐呭锛屽彲鑷繁璋冭妭 label: { - align: 'center', - color: '#04CFF5' + show: true, + color: '#fff', }, itemStyle: { - color: '#ffffff', - areaColor: '#3c87b2'// 闃村奖鏁堟灉 榧犳爣绉诲姩涓婂幓鐨勯鑹� - } + show: true, + color: '#fff', // 楂樹寒鏂囧瓧棰滆壊 + borderColor: '#a4d0ec', // 楂樹寒杈规棰滆壊 + areaColor: '#0056FF', //楂樹寒鍖哄煙棰滆壊 + }, }, - z: 2 - }, - // 鐐� - { - name: 'companyPoint', - type: 'effectScatter', - coordinateSystem: 'geo', - showEffectOn: 'render', - // zlevel: 2, // zlevel鐢ㄤ簬 Canvas 鍒嗗眰 鐩稿悓鐨勭粯鍒跺湪鍚屼竴涓猚anvas涓� - rippleEffect: { - number: 5, // 娉㈢汗鏁伴噺 - period: 4, // 鍔ㄧ敾鍛ㄦ湡 鏁板�艰秺澶э紝娉㈠姩瓒婃參 - scale: 3.5, // 鍔ㄧ敾涓尝绾圭殑鏈�澶х缉鏀炬瘮渚� - brushType: 'stroke' // 娉㈢汗鐨勭粯鍒舵柟寮� stroke fill - }, + selectedMode: false, label: { + // 鍦板浘鏍囨敞 show: false, - position: 'right', - formatter: '{b}', - color: '#97e9e1', - fontSize: 14 }, - symbol: 'circle', - symbolSize: 8, - data: points, tooltip: { show: true, + triggerOn: 'click', backgroundColor: 'rgba(0,0,0,0)', padding: 0, borderWidth: 0, extraCssText: 'box-shadow: 0 0 0 rgba(0, 0, 0, 0);', // 鍘婚櫎box-shadow闃村奖 formatter: (params) => { return `<div class="map-tip-box"> - <div class="company-name">${params.name}</div> - <div class="monitor-total">鐩戞祴鎬绘暟锛�${params.data.total}鍙�</div> + <div class="item-state-con title"> + <div class="icon"></div> + <span>${params.data.name}</span> + </div> <div class="item-state-con"> <span class="dot bj"></span> <span class="item-state-num"> - <span class="num">${params.data.bj}鍙�</span> - <span class="text">鎶ヨ</span> + <span class="text">鏈湀璋冩嫧閲忥細</span> + <span class="num">${params.data.monthNum}绠�</span> </span> </div> - <div class="item-state-con"> + <div class="item-state-con"> <span class="dot yj"></span> <span class="item-state-num"> - <span class="num">${params.data.yj}鍙�</span> - <span class="text">棰勮</span> + <span class="text">鏈勾璋冩嫧閲忥細</span> + <span class="num">${params.data.yearNum}绠�</span> </span> </div> - <div class="item-state-con"> - <span class="dot yx"></span> + <div class="item-state-con"> + <span class="dot yj"></span> <span class="item-state-num"> - <span class="num">${params.data.yx}鍙�</span> - <span class="text">杩愯</span> - </span> - </div> - <div class="item-state-con"> - <span class="dot tj"></span> - <span class="item-state-num"> - <span class="num">${params.data.tj}鍙�</span> - <span class="text">鍋滄満</span> - </span> - </div> - <div class="item-state-con"> - <span class="dot dw"></span> - <span class="item-state-num"> - <span class="num">${params.data.dw}鍙�</span> - <span class="text">鏂綉</span> + <span class="text">璋冩嫧閲忓崰姣旓細</span> + <span class="num">${params.data.rate || 0}%</span> </span> </div> </div>` } }, - z: 4 + itemStyle: { + borderColor: '#a4d0ec', // 鐪佷唤杈规棰滆壊 + borderWidth: 1, // 鐪佷唤杈规瀹藉害 + // shadowBlur: 5, // 鐪佷唤杈规鑱氱劍 + areaColor: '#3c5997', + }, + center: [105.194115019531, 35.582111640625], // 璁剧疆鍦板浘涓績 + data: mapData, }, - // 鍦板浘绾跨殑鍔ㄧ敾鏁堟灉 - { - name: 'arrowline', - type: 'lines', - // zlevel: 1, - effect: { - show: true, - period: 3, // 绠ご鎸囧悜閫熷害锛屽�艰秺灏忛�熷害瓒婂揩 - trailLength: 0.1, // 鐗规晥灏捐抗闀垮害[0,1]鍊艰秺澶э紝灏捐抗瓒婇暱閲� - symbol: 'arrow', // 绠ご鍥炬爣 - symbolSize: 6 // 鍥炬爣澶у皬 - }, - lineStyle: { - color: '#1DE9B6', - width: 2, // 绾挎潯瀹藉害 - opacity: 0.1, // 灏捐抗绾挎潯閫忔槑搴� - curveness: 0.2 // 灏捐抗绾挎潯鏇茬洿搴� - }, - data: lineToLf, - z: 3 - } - ] + ], } myChart.setOption(option) window.addEventListener('resize', function () {//鎵ц myChart.resize() + }) +} +const getMap = () => { + mapYearAndMonthOutList({ + factoryCode: activeCity.value.code + }).then(res => { + const temp = res.data || [] + mapList.value = temp.map(item => { + item.value = item.monthNum + item.name = item.provinceName + item.code = item.provinceCode + return item + }) + initMap() }) } const initEnergy = () => { @@ -934,15 +817,51 @@ borderColor: '#fff' }, }, + dataZoom: [ + { + type: 'slider', // 婊戝姩鏉$被鍨� + orient: 'vertical', + left: 'left', + start: 0, // 璧峰浣嶇疆锛堢櫨鍒嗘瘮锛� + end: 40, // 缁撴潫浣嶇疆锛堢櫨鍒嗘瘮锛夛紝鎺у埗鍒濆鏄剧ず鑼冨洿 + width: 1, + backgroundColor: '#04141d', // 婊戝姩鏉¤儗鏅壊 + // dataBackground: 'none', + dataBackground: { + areaStyle: { opacity: 0 }, // 璁剧疆鑳屾櫙閫忔槑 + lineStyle: { opacity: 0 } // 璁剧疆鑳屾櫙閫忔槑 + }, + borderColor: '#04141e', // 杈规棰滆壊 + moveOnMouseWheel: true, + // showDetail: false, // 闅愯棌閫変腑鑼冨洿鐨勬枃瀛� + }, + { + type: 'inside', // 鐢ㄤ簬鐩戝惉婊氳疆浜嬩欢 + orient: 'vertical', + start: 0, + end: 40, + minSpan: 40, + dataBackground: { + areaStyle: { opacity: 0 } // 璁剧疆鑳屾櫙閫忔槑 + }, + maxSpan: 40, + zoomLock: true, // 閿佸畾缂╂斁锛堜粎鍏佽骞崇Щ锛� + moveOnMouseWheel: true, // 鍚敤婊氳疆骞崇Щ + // zoomOnMouseWheel: false // 绂佺敤婊氳疆缂╂斁 + } + ], grid: { left: '3%', right: '4%', bottom: '3%', - top: '15%', + top: '16%', containLabel: true }, xAxis: { type: 'value', + axisLabel: { + color: '#D2E0FF' + }, splitLine: { show: true, lineStyle: { @@ -956,25 +875,32 @@ axisTick: { show: false, }, + axisLabel: { + color: '#D2E0FF' + }, type: 'category', axisLine: { show: false }, - data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] + data: dataList1.value.map(i => i.dateStr) }, series: [ { - name: '鍦ㄩ��', + name: '鏈惎杩�', type: 'bar', stack: 'total', barWidth: 14, label: { - show: true + show: true, + textStyle: { + color: '#000000', + fontSize: 12 + } }, emphasis: { focus: 'series' }, - data: [320, 302, 301, 334, 390, 330, 320], + data: dataList1.value.map(i => i.waitNum), itemStyle: { normal: { color: { @@ -985,10 +911,53 @@ y2: 0, colorStops: [{ offset: 0, - color: '#204d75' + color: '#fadf74' + }, + { + offset: 0.3, + color: '#f7cd5e' }, { offset: 1, - color: '#2f6eae' + color: '#eea33b' + }] + } + } + }, + }, + { + name: '鍦ㄩ��', + type: 'bar', + stack: 'total', + barWidth: 14, + label: { + show: true, + textStyle: { + color: '#000000', + fontSize: 12 + } + }, + emphasis: { + focus: 'series' + }, + textStyle: { + color: '#000000', + fontSize: 10 + }, + data: dataList1.value.map(i => i.ingNum), + itemStyle: { + normal: { + color: { + type: 'linear', + x: 0, + y: 0, + x2: 1, + y2: 0, + colorStops: [{ + offset: 0, + color: '#60d1f9' + }, { + offset: 1, + color: '#4eacf7' }] } } @@ -1000,7 +969,15 @@ barWidth: 14, stack: 'total', label: { - show: true + show: true, + textStyle: { + color: '#000000', + fontSize: 12 + } + }, + textStyle: { + color: '#000000', + fontSize: 10 }, itemStyle: { normal: { @@ -1012,50 +989,1053 @@ y2: 0, colorStops: [{ offset: 0, - color: '#3e8593' + color: '#73f7d1' }, { offset: 1, - color: '#5cc2d2' + color: '#58beaa' }] } - } + }, }, emphasis: { focus: 'series' }, - data: [120, 132, 101, 134, 90, 230, 210] + data: dataList1.value.map(i => i.doneNum) } ] + }) + myChart.on('click', function (params) { + // console.log(params.seriesName) + // console.log(params.name) + const item = dataList1.value.find(i => i.dateStr == params.name) + // console.log(params); + active1List.value = params.seriesName == '鍦ㄩ��' ? item.ingList : params.seriesName == '鍒拌揣' ? item.doneList : item.waitList + showModal1.value = true }) window.addEventListener('resize', function () {//鎵ц myChart.resize() }) } +const showModal1 = ref(false) +const active1List = ref([]) +const dataList1 = ref([]) +const getData1 = () => { + arriveGoodsList({ + factoryCode: activeCity.value.code + }).then(res => { + dataList1.value = res.data || [] + initEnergy() + }) +} + +const transportTask = ref([]) +const taskCode = ref('') +const showModal = ref(false) +const modalLoading = ref(false) +const modalInfo = ref({}) +const modalTab = ref(0) +const pager = ref({ + page: 0, + rows: 50 +}) +const taskClick = (item) => { + modalLoading.value = true + showModal.value = true + kzorderInfo({ contractNumber: item.contractNumber }).then(res => { + modalInfo.value = res.data + // const apiKey = 'd9a554b1808ce10a12a932ed9b0db1d0' + const apiKey = '3916a7b434e7f13ae1a0af64e88ec0a3' + if (modalInfo.value.gisList && modalInfo.value.gisList.length > 0) { + const gisInfo = modalInfo.value.gisList[0] + if (gisInfo && gisInfo.gisList && gisInfo.gisList.length > 0) { + const adsInfo = gisInfo.gisList[gisInfo.gisList.length - 1] + const location = adsInfo.lon1 + ',' + adsInfo.lat1 + axios.get(`https://restapi.amap.com/v3/geocode/regeo?key=${apiKey}&location=${location}`).then(res => { + console.log('res', res.data) + if (res.data.status == 1) { + modalInfo.value.position = res.data.regeocode.formatted_address + } + }) + } + } + + modalLoading.value = false + nextTick(() => { + initGdMap() + }) + }, () => { + modalLoading.value = false + }) +} +const closeModal = () => { + showModal.value = false + showModal1.value = false + modalInfo.value = {} +} + + +const mapContainer = ref(null) +function distance(obj) { + const lat1 = obj.deliveryLat + const lng1 = obj.deliveryLon + const lat2 = obj.receiveLat + const lng2 = obj.receiveLon + const radLat1 = rad(lat1) + const radLat2 = rad(lat2) + const a = radLat1 - radLat2 + const b = rad(lng1) - rad(lng2) + const Haversin = Math.pow(Math.sin(a / 2), 2) + Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), + 2) + const radius = 6378137 // 鍦扮悆鍗婂緞 + return 2 * radius * Math.asin(Math.sqrt(Haversin)) +} +function rad(d) { + return d * Math.PI / 180.0 +} +const initGdMap = () => { + const obj = modalInfo.value + let scale = 5 + console.log((obj.deliveryLon + obj.receiveLon)) + const distancet = distance(obj) + if (distancet > 1200000) { + scale = 3 + } else if (distancet < 1200000 && distancet > 500000) { + scale = 4 + } else if (distancet < 500000) { + scale = 5 + } else { + scale = 5 + } + console.log('distancet', distancet) + + const map = new AMap.Map(mapContainer.value, { + zoom: scale, // 鍒濆缂╂斁绾у埆 + center: [(Number(obj.deliveryLon) + Number(obj.receiveLon)) / 2, (Number(obj.deliveryLat) + Number(obj.receiveLat)) / 2], // 鍒濆涓績鐐癸紙鍖椾含鍧愭爣锛� + }) + AMap.plugin(['AMap.ToolBar'], () => { + const toolbar = new AMap.ToolBar() + map.addControl(toolbar) + }) + const marker1 = new AMap.Marker({ + position: [obj.deliveryLon, obj.deliveryLat], // 鏍囪鐐�1鍧愭爣 + icon: new AMap.Icon({ + size: new AMap.Size(28, 32), // 鍥炬爣澶у皬 + image: fahuoImg, // 鍥炬爣鍥剧墖URL + imageSize: new AMap.Size(28, 32), // 鍥炬爣瀹為檯澶у皬 + }), + title: obj.deliveryEnterprise, // 榧犳爣鎮仠鏃舵樉绀虹殑鏍囬 + }) + map.add(marker1) + const marker2 = new AMap.Marker({ + position: [obj.receiveLon, obj.receiveLat], // 鏍囪鐐�1鍧愭爣 + icon: new AMap.Icon({ + size: new AMap.Size(28, 32), // 鍥炬爣澶у皬 + image: shouImg, // 鍥炬爣鍥剧墖URL + imageSize: new AMap.Size(28, 32), // 鍥炬爣瀹為檯澶у皬 + }), + title: obj.receiveEnterprise, // 榧犳爣鎮仠鏃舵樉绀虹殑鏍囬 + }) + map.add(marker2) + // 缁樺埗杞ㄨ抗 + const polylineList = obj.gisList[0].gisList || [] + + const polyline = new AMap.Polyline({ + path: [ + polylineList.map(i => { + return [i.lon, i.lat] + }) + ], + strokeColor: 'red', // 绾跨殑棰滆壊 + strokeWeight: 3, // 绾跨殑瀹藉害 + strokeOpacity: 0.8, // 绾跨殑閫忔槑搴� + strokeStyle: 'solid', // 绾跨殑鏍峰紡 + lineJoin: 'round', // 鎶樼嚎鎷愮偣鐨勬牱寮� + }) + map.add(polyline) +} +const isLoadingTask = ref(false) +const getData2 = () => { + isLoadingTask.value = true + getStoreTaskList({ + pager: pager.value, + parameters: { + contractNumber: taskCode.value, + facrotyCodeList: activeCity.value.code ? [activeCity.value.code] : [] + } + }).then(res => { + isLoadingTask.value = false + let temp = res.data.rows || [] + transportTask.value = temp.map(item => { + if (item.createDate) { + item.createDate = item.createDate.slice(5, 16) + } + return item + }) + console.log('isLoadingTask', isLoadingTask.value) + + }, () => { + isLoadingTask.value = false + }) +} + +const cneterData = ref({}) +const showPro = ref(false) +const cityList = ref() +const getCity = () => { + kzfactoryList().then(res => { + cityList.value = [{ name: '鍏ㄧ渷', code: '' }, ...res.data] + }) +} +const activeCity = ref({ name: '鍏ㄧ渷', code: '' }) +const colors = ['#0193FE', '#FFB642'] +const cityClick = (item) => { + activeCity.value = item + showPro.value = false + changeCity() +} +const initEchart1 = () => { + const myChart = echarts.init(document.getElementById('echart1')) + + const option = { + tooltip: { + trigger: 'item' + }, + series: [ + { + type: 'pie', + radius: ['72%', '96%'], + label: { + show: false, + position: 'center' + }, + emphasis: { + // 璁剧疆鎮诞鏃舵牱寮忎负绌� + scale: false, // 鍏抽棴鏀惧ぇ鏁堟灉 + itemStyle: { + shadowBlur: 0, // 闃村奖妯$硦搴︿负 0 + shadowOffsetX: 0, + shadowColor: 'rgba(0, 0, 0, 0)', + }, + }, + color: colors, + labelLine: { + show: false + }, + data: StockOutData.value.arr + } + ] + } + myChart.setOption(option) + window.addEventListener('resize', function () { // 鎵ц + myChart.resize() + }) +} + +const activeTab1 = ref(0) +const loading1 = ref(false) +const StockOutData = ref({}) +const getStockOut = () => { + loading1.value = true + kztotalOutQtyNum({ type: activeTab1.value, factoryCode: activeCity.value.code }).then(res => { + loading1.value = false + if (res.code == 200) { + let obj = res.data + obj.currentNum = (obj.currentOutNum + obj.currentInNum).toFixed(0) * 1 + obj.lastNum = (obj.lastOutNum + obj.lastInNum).toFixed(0) * 1 + // obj.sameNum = (obj.sameOutNum + obj.sameInNum).toFixed(0) + let arr = [] + arr.push({ name: '鐪佸唴', value: obj.currentInNum, rate: obj.currentInNum == 0 && obj.currentOutNum == 0 ? 0 : (obj.currentInNum / (obj.currentInNum + obj.currentOutNum) * 100).toFixed(0) + '%' }) + arr.push({ name: '鐪佸', value: obj.currentOutNum, rate: obj.currentInNum == 0 && obj.currentOutNum == 0 ? 0 : (obj.currentOutNum / (obj.currentInNum + obj.currentOutNum) * 100).toFixed(0) + '%' }) + obj.arr = arr + + StockOutData.value = obj + initEchart1() + } + + }, () => { + loading1.value = false + }) +} +const tab1Click = (val) => { + activeTab1.value = val + getStockOut() +} +// footer +const getData3 = () => { + getStorecenterDataNew({ + factoryCode: activeCity.value.code + }).then(res => { + const obj = res.data || {} + console.log('obj', obj) + + // 8灏忔椂 璁″垝 浠婃棩 + // obj.hoursAbility = 6000 + // obj.maxAbility = 8000 + // obj.currentPlanNum = 22000 + // obj.crrentOutNum = 7000 + + obj.level1 = ((obj.hoursAbility / obj.maxAbility) * 100).toFixed(2) + '%' + if (obj.currentPlanNum >= obj.hoursAbility) { + obj.level2 = '100%' + obj.level22 = (((obj.currentPlanNum - obj.hoursAbility) / (obj.maxAbility - obj.hoursAbility)) * 100).toFixed(2) + obj.level22 = obj.level22 > 100 ? '100%' : obj.level22 + '%' + } else { + obj.level2 = ((obj.currentPlanNum / obj.hoursAbility) * 100).toFixed(2) + '%' + obj.level22 = 0 + } + if (obj.crrentOutNum >= obj.hoursAbility) { + obj.level3 = '100%' + obj.level33 = (((obj.crrentOutNum - obj.hoursAbility) / (obj.maxAbility - obj.hoursAbility)) * 100).toFixed(2) + obj.level33 = obj.level33 > 100 ? '100%' : obj.level33 + '%' + } else { + obj.level3 = ((obj.crrentOutNum / obj.hoursAbility) * 100).toFixed(2) + '%' + obj.level33 = 0 + } + + // console.log('obj1', obj.level1); + // console.log('obj2', obj.level2); + // console.log('obj22', obj.level22); + // console.log('obj3', obj.level3); + // console.log('obj33', obj.level33); + + cneterData.value = obj + + }) +} + +const data5 = ref({}) +const data6 = ref({}) +const data7 = ref({}) +const initEchart5 = () => { + // 鍩轰簬鍑嗗濂界殑dom锛屽垵濮嬪寲echarts瀹炰緥 + const myChart = echarts.init(document.getElementById('echart5')) + // 缁樺埗鍥捐〃 + myChart.setOption({ + legend: { + itemGap: 12, + // icon: 'circle', + right: '12%', + top: '0%', + data: ['鎬诲簱瀹�', '褰撳墠搴撳瓨', '搴撳瓨鍒╃敤鐜�'], + itemWidth: 20, + itemHeight: 10, + textStyle: { + color: '#fff', + borderColor: '#fff' + }, + }, + grid: { + left: '3%', + right: '0%', + bottom: '3%', + top: '18%', + containLabel: true + }, + tooltip: { + trigger: 'axis', + formatter: function (params) { + // 閬嶅巻鎮诞鏃剁殑鎵�鏈夌偣锛屽畾鍒跺寲鏄剧ず鍐呭 + let result = `<div style="width: 160px">${params[0].name}</div>` + params.forEach((item) => { + if (item.seriesName === '鎬诲簱瀹�') { + result += ` + <div style="display: flex;align-items: center;justify-content: space-between;margin-top: 2px;"> + <div style="display: flex;align-items: center;"><div style="width: 10px;height: 10px; border-radius: 50%;background-color: #5e9bca;margin-right: 4px;"></div><div>${item.seriesName}</div></div> + <div><strong>${item.value}</strong></div> + </div>` + } else if (item.seriesName === '褰撳墠搴撳瓨') { + result += ` + <div style="display: flex;align-items: center;justify-content: space-between;margin-top: 2px;"> + <div style="display: flex;align-items: center;"><div style="width: 10px;height: 10px; border-radius: 50%;background-color: #e2a44f;margin-right: 4px;"></div><div>${item.seriesName}</div></div> + <div><strong>${item.value}</strong></div> + </div>` + } else if (item.seriesName === '搴撳瓨鍒╃敤鐜�') { + result += ` + <div style="display: flex;align-items: center;justify-content: space-between;margin-top: 2px;"> + <div style="display: flex;align-items: center;"><div style="width: 10px;height: 10px; border-radius: 50%;background-color: #b2bcd1;margin-right: 4px;"></div><div>${item.seriesName}</div></div> + <div><strong>${item.value}%</strong></div> + </div>` + } + }) + return result + } + }, + xAxis: [{ + nameGap: 5, + type: 'category', + axisLine: { + show: true, + lineStyle: { + color: '#999' + }, + }, + axisLabel: { + color: '#869CC9' + }, + axisTick: { + show: false, + }, + data: data5.value.detailList.map(i => i.factoryName), + }], + yAxis: [ + { + nameTextStyle: { + color: '#869CC9', + }, + name: '绠�', + nameGap: 16, + type: 'value', + axisLabel: { + color: "#869CC9", + }, + axisLine: { + show: true, + }, + splitLine: { + show: true, + lineStyle: { + width: 1, + color: "rgba(49,105,129,0.4)", + type: 'dashed' + } + }, + }, + { + type: 'value', + name: '%', + nameGap: 16, + min: 0, + // max: 100, + axisLabel: { + color: "#869CC9", + }, + nameTextStyle: { + color: '#869CC9', + padding: [0, 0, 0, 12] + }, + splitLine: false + } + ], + series: [ + { + name: '鎬诲簱瀹�', + type: 'bar', + barWidth: 10, + barGap: '60%', + label: { + show: false, + position: 'top', + color: '#fff', + }, + yAxisIndex: 0, + itemStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: '#2e6bf3' + }, + { + offset: 1, + color: '#5fcbab' + } + ], false), + lineStyle: { + width: 1, + type: 'solid' + }, + barBorderRadius: [30, 30, 0, 0], + }, + data: data5.value.detailList.map(i => i.totalNum) + }, + { + name: '褰撳墠搴撳瓨', + type: 'bar', + barWidth: 10, + label: { + show: false, + position: 'top', + color: '#fff', + }, + yAxisIndex: 0, + itemStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: '#eda13a' + }, + { + offset: 0.6, + color: '#dfb44e' + }, + { + offset: 1, + color: '#ccc16c' + } + ], false), + lineStyle: { + width: 1, + type: 'solid' + }, + barBorderRadius: [30, 30, 0, 0], + }, + data: data5.value.detailList.map(i => i.currentNum) + }, + { + name: '搴撳瓨鍒╃敤鐜�', + type: 'line', + smooth: false, + showAllSymbol: true, + symbol: 'none', + lineStyle: { + color: "#9eabc2" + }, + yAxisIndex: 1, + tooltip: { + show: true, + formatter: '{c}' + '%', + }, + label: { + show: false, + position: 'top', + color: '#fff', + }, + data: data5.value.detailList.map(i => i.useRate) + } + ] + }) + + window.addEventListener('resize', function () {//鎵ц + myChart.resize() + }) +} +const initEchart6 = () => { + // 鍩轰簬鍑嗗濂界殑dom锛屽垵濮嬪寲echarts瀹炰緥 + const myChart = echarts.init(document.getElementById('echart6')) + // 缁樺埗鍥捐〃 + myChart.setOption({ + legend: { + itemGap: 12, + // icon: 'circle', + right: '10%', + top: '0', + data: ['鍑哄簱鑳藉姏', '褰撴棩鍑哄簱閲�', '鍑哄簱鍒╃敤鐜�'], + itemWidth: 20, + itemHeight: 10, + textStyle: { + color: '#fff', + borderColor: '#fff' + }, + }, + tooltip: { + trigger: 'axis', + formatter: function (params) { + // 閬嶅巻鎮诞鏃剁殑鎵�鏈夌偣锛屽畾鍒跺寲鏄剧ず鍐呭 + let result = `<div style="width: 160px">${params[0].name}</div>` + params.forEach((item) => { + if (item.seriesName === '鍑哄簱鑳藉姏') { + result += ` + <div style="display: flex;align-items: center;justify-content: space-between;margin-top: 2px;"> + <div style="display: flex;align-items: center;"><div style="width: 10px;height: 10px; border-radius: 50%;background-color: #487af3;margin-right: 4px;"></div><div>${item.seriesName}</div></div> + <div><strong>${item.value}</strong></div> + </div>` + } else if (item.seriesName === '褰撴棩鍑哄簱閲�') { + result += ` + <div style="display: flex;align-items: center;justify-content: space-between;margin-top: 2px;"> + <div style="display: flex;align-items: center;"><div style="width: 10px;height: 10px; border-radius: 50%;background-color: #e2a44f;margin-right: 4px;"></div><div>${item.seriesName}</div></div> + <div><strong>${item.value}</strong></div> + </div>` + } else if (item.seriesName === '鍑哄簱鍒╃敤鐜�') { + result += ` + <div style="display: flex;align-items: center;justify-content: space-between;margin-top: 2px;"> + <div style="display: flex;align-items: center;"><div style="width: 10px;height: 10px; border-radius: 50%;background-color: #b0bcd3;margin-right: 4px;"></div><div>${item.seriesName}</div></div> + <div><strong>${item.value}%</strong></div> + </div>` + } + }) + return result + } + }, + grid: { + left: '3%', + right: '0%', + bottom: '3%', + top: '18%', + containLabel: true + }, + xAxis: [{ + nameGap: 5, + type: 'category', + axisLine: { + show: true, + lineStyle: { + color: '#999' + }, + }, + axisLabel: { + color: "#869CC9", + }, + nameTextStyle: { + color: '#869CC9', + }, + axisTick: { + show: false, + }, + data: data6.value.detailList.map(i => i.factoryName), + }], + yAxis: [ + { + name: '绠�', + nameGap: 16, + type: 'value', + axisLabel: { + color: "#869CC9", + }, + nameTextStyle: { + color: '#869CC9', + padding: [0, 0, 0, 12] + }, + axisLine: { + show: true, + }, + splitLine: { + show: true, + lineStyle: { + width: 1, + color: "rgba(49,105,129,0.4)", + type: 'dashed' + } + }, + }, + { + type: 'value', + name: '%', + nameGap: 16, + min: 0, + axisLabel: { + color: "#869CC9", + }, + nameTextStyle: { + color: '#869CC9', + padding: [0, 0, 0, 12] + }, + splitLine: false + } + ], + series: [ + { + name: '鍑哄簱鑳藉姏', + type: 'bar', + barWidth: 14, + barGap: '60%', + label: { + show: false, + position: 'top', + color: '#fff', + }, + yAxisIndex: 0, + itemStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: '#2e6bf3' + }, + { + offset: 1, + color: '#5fcbab' + } + ], false), + lineStyle: { + width: 1, + type: 'solid' + }, + barBorderRadius: [30, 30, 0, 0], + }, + data: data6.value.detailList.map(i => i.totalNum), + barGap: '-100%' // 璁剧疆鏌卞瓙瀹屽叏閲嶅彔 + + }, + { + name: '褰撴棩鍑哄簱閲�', + type: 'bar', + barWidth: 14, + label: { + show: false, + position: 'top', + color: '#fff', + }, + yAxisIndex: 0, + itemStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: '#eda13a' + }, + { + offset: 0.6, + color: '#dfb44e' + }, + { + offset: 1, + color: '#ccc16c' + } + ], false), + lineStyle: { + width: 1, + type: 'solid' + }, + barBorderRadius: [30, 30, 0, 0], + }, + data: data6.value.detailList.map(i => i.currentNum), + barGap: '-100%' // 璁剧疆鏌卞瓙瀹屽叏閲嶅彔 + }, + { + name: '鍑哄簱鍒╃敤鐜�', + type: 'line', + smooth: false, + showAllSymbol: true, + symbol: 'none', + lineStyle: { + color: "#9eabc2" + }, + yAxisIndex: 1, + label: { + show: false, + position: 'top', + color: '#fff', + }, + data: data6.value.detailList.map(i => i.useRate) + } + ] + }) + + window.addEventListener('resize', function () {//鎵ц + myChart.resize() + }) +} +const initEchart7 = () => { + // 鍩轰簬鍑嗗濂界殑dom锛屽垵濮嬪寲echarts瀹炰緥 + const myChart = echarts.init(document.getElementById('echart7')) + // 缁樺埗鍥捐〃 + myChart.setOption({ + legend: { + itemGap: 12, + // icon: 'circle', + right: '10%', + top: '0%', + data: ['褰撴棩鍙敤杩愬姏', '褰撴棩鎻愭姤杩愬姏', '杞﹁締鍒╃敤鐜�'], + itemWidth: 20, + itemHeight: 10, + textStyle: { + color: '#fff', + borderColor: '#fff' + }, + }, + tooltip: { + trigger: 'axis', + formatter: function (params) { + // 閬嶅巻鎮诞鏃剁殑鎵�鏈夌偣锛屽畾鍒跺寲鏄剧ず鍐呭 + let result = `<div style="width: 160px">${params[0].name}</div>` + params.forEach((item) => { + if (item.seriesName === '褰撴棩鍙敤杩愬姏') { + result += ` + <div style="display: flex;align-items: center;justify-content: space-between;margin-top: 2px;"> + <div style="display: flex;align-items: center;"><div style="width: 10px;height: 10px; border-radius: 50%;background-color: #88d9cc;margin-right: 4px;"></div><div>${item.seriesName}</div></div> + <div><strong>${item.value}</strong></div> + </div>` + } else if (item.seriesName === '褰撴棩鎻愭姤杩愬姏') { + result += ` + <div style="display: flex;align-items: center;justify-content: space-between;margin-top: 2px;"> + <div style="display: flex;align-items: center;"><div style="width: 10px;height: 10px; border-radius: 50%;background-color: #e2a44f;margin-right: 4px;"></div><div>${item.seriesName}</div></div> + <div><strong>${item.value}</strong></div> + </div>` + } else if (item.seriesName === '杞﹁締鍒╃敤鐜�') { + result += ` + <div style="display: flex;align-items: center;justify-content: space-between;margin-top: 2px;"> + <div style="display: flex;align-items: center;"><div style="width: 10px;height: 10px; border-radius: 50%;background-color: #b0bcd3;margin-right: 4px;"></div><div>${item.seriesName}</div></div> + <div><strong>${item.value}%</strong></div> + </div>` + } + }) + return result + } + }, + grid: { + left: '3%', + right: '0%', + bottom: '3%', + top: '18%', + containLabel: true + }, + xAxis: [{ + nameGap: 5, + type: 'category', + axisLine: { + show: true, + lineStyle: { + color: '#999' + }, + }, + axisLabel: { + color: "#869CC9", + }, + nameTextStyle: { + color: '#869CC9', + padding: [0, 0, 0, 12] + }, + axisTick: { + show: false, + }, + data: data7.value.detailList.map(i => i.factoryName), + }], + yAxis: [ + { + nameTextStyle: { + color: '#869CC9', + }, + name: '杈�', + nameGap: 16, + type: 'value', + axisLabel: { + show: true, + color: "#869CC9", + }, + axisLine: { + show: true, + }, + splitLine: { + show: true, + lineStyle: { + width: 1, + color: "rgba(49,105,129,0.4)", + type: 'dashed' + } + }, + }, + { + type: 'value', + name: '%', + nameGap: 16, + min: 0, + axisLabel: { + color: "#869CC9", + }, + nameTextStyle: { + color: '#869CC9', + padding: [0, 0, 0, 12] + }, + splitLine: false + } + ], + series: [ + { + name: '褰撴棩鍙敤杩愬姏', + type: 'bar', + barWidth: 10, + barGap: '60%', + label: { + show: false, + position: 'top', + color: '#fff', + }, + yAxisIndex: 0, + itemStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: '#73f0c6' + }, + { + offset: 1, + color: '#3f8ca6' + } + ], false), + lineStyle: { + width: 1, + type: 'solid' + }, + barBorderRadius: [30, 30, 0, 0], + }, + data: data7.value.detailList.map(i => (i.totalNum - i.zaituNum)) + }, + { + name: '褰撴棩鎻愭姤杩愬姏', + type: 'bar', + barWidth: 10, + label: { + show: false, + position: 'top', + color: '#fff', + }, + yAxisIndex: 0, + itemStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: '#ed7e32' + }, + { + offset: 0.6, + color: '#e99b5c' + }, + { + offset: 1, + color: '#e7a774' + } + ], false), + lineStyle: { + width: 1, + type: 'solid' + }, + barBorderRadius: [30, 30, 0, 0], + }, + data: data7.value.detailList.map(i => i.currentNum) + }, + { + name: '杞﹁締鍒╃敤鐜�', + type: 'line', + smooth: false, + showAllSymbol: true, + symbol: 'none', + lineStyle: { + color: "#9eabc2" + }, + yAxisIndex: 1, + label: { + show: false, + position: 'top', + color: '#fff', + }, + data: data7.value.detailList.map(i => i.useRate) + } + ] + }) + + window.addEventListener('resize', function () {//鎵ц + myChart.resize() + }) +} +const getData5 = () => { + kzinventoryUseRate().then(res => { + data5.value = res.data + data5.value.detailList.forEach(item => { + if (item.useRate) { + item.useRate = (item.useRate * 100).toFixed(1) + } + + }) + initEchart5() + }) + outAbilityUseRate().then(res => { + data6.value = res.data + data6.value.detailList.forEach(item => { + if (item.useRate) { + item.useRate = (item.useRate * 100).toFixed(1) + } + }) + initEchart6() + }) + tranportAbilityUseRate().then(res => { + data7.value = res.data + data7.value.detailList.forEach(item => { + // item.useRate = item.useRate * 100 + if (item.useRate) { + item.useRate = (item.useRate * 100).toFixed(1) + } + }) + initEchart7() + }) + + // initEchart6() + // initEchart7() + +} + + +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: 5, + autoplay: autoplayFlag(transportTask.value, 5, 6000), + observer: true, //淇敼swiper鑷繁鎴栧瓙鍏冪礌鏃讹紝鑷姩鍒濆鍖杝wiper + }) +} + +const changeCity = () => { + getData1() + getStockOut() + getMap() + getData2() + getData3() +} onMounted(() => { - initEnergy() - initMap() - getStockOut() - initEchart2() - initEchart3() - initEchart4() - initEchart5() + getCity() + changeCity() + getData5() + setInterval(() => { + getCity() + changeCity() + getData5() + }, 1000 * 60 * 10) + setTimeout(() => { + loopFn1() + }, 12000) }) </script> -<style> -.map-tip-box{ - background-color: #1f3b57; - color: #fff; +<style lang="scss"> +.map-tip-box { + background-color: rgba(6, 25, 48, .8); + padding: 10px 30px; + padding-left: 20px; + border-radius: 4px; + backdrop-filter: blur(10px); + color: #D2E0FF; + font-size: 12px; + border: 1px solid #D2E0FF; + + .icon { + width: 12px; + height: 14px; + background-image: url('@/assets/images/FireFighting/ic_location@2x.png'); + background-repeat: no-repeat; + background-position: center; + background-size: cover; + margin-right: 6px; + } + + .title { + font-size: 14px; + font-weight: 600; + display: flex; + align-items: center + } + + .item-state-con { + margin-bottom: 6px; + } } </style> <style lang="scss" scoped> div { box-sizing: border-box; } + +.swiper-wrapper { + display: block !important; +} + .main_content { display: flex; padding: 20px 25px 0; @@ -1066,7 +2046,8 @@ .left_box_one { margin-top: 20px; padding: 0px 10px 30px 20px; - border: 1px solid; + position: relative; + height: 160px; .content_wrap { display: flex; @@ -1176,30 +2157,62 @@ .left_box_three { width: 440px; padding: 0 15px; - border: 1px solid; .second_title { margin-bottom: 10px; + + input { + font-size: 12px; + } } .list_wrap { + position: relative; + + .list { + height: 200px; + overflow: hidden; + } + + .empty { + display: flex; + justify-content: center; + align-items: center; + height: 200px; + + img { + width: 144px; + } + } + .line { display: flex; height: 40px; align-items: center; font-size: 14px; color: #D2E0FF; + cursor: pointer; &:nth-of-type(2n) { background: rgba(134, 156, 201, 0.05); } .item { - flex: 1; + flex: 4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } + + .status { + flex: 3.2; + } + } + + .avtive { + background: rgba(1, 171, 254, 0.2); + color: #01D9FE; + font-weight: 600; } .header { @@ -1213,7 +2226,7 @@ .center_box { flex: 1; padding: 0 20px; - margin: 0 40px; + margin: 0 20px; display: flex; flex-direction: column; @@ -1221,7 +2234,7 @@ background: rgba(255, 255, 255, 0.02); height: 230px; border-top: 2px solid #306ba1; - padding-top: 20px; + padding: 20px 20px 0; .header_wrap { display: flex; @@ -1229,17 +2242,22 @@ margin-bottom: 28px; font-weight: bold; font-size: 18px; - background-image: -webkit-linear-gradient(top, - #ffffff 0%, - #c8ddff 66%, - #85b4ff 72%, - #74a9ff 100%); + position: relative; + + /* background-image: -webkit-linear-gradient(top, + #ffffff 0%, + #c8ddff 66%, + #85b4ff 72%, + #74a9ff 100%); -webkit-background-clip: text; - -webkit-text-fill-color: transparent; + -webkit-text-fill-color: transparent; */ .left { display: flex; align-items: center; + position: relative; + + img { width: 16px; @@ -1251,6 +2269,7 @@ display: flex; align-items: center; cursor: pointer; + position: relative; .posi { width: 16px; @@ -1262,13 +2281,62 @@ margin-left: 2px; } } + + .select_op { + position: absolute; + top: 26px; + right: -10px; + width: 90px; + z-index: 1199999; + background: radial-gradient(64% 83% at 50% 50%, rgba(19, 88, 173, 0.8) 0%, rgba(5, 18, 32, 0.86) 100%); + color: #fff; + + .line { + display: flex; + justify-content: center; + align-items: center; + height: 36px; + font-size: 18px; + cursor: pointer; + color: #fff; + } + } } .static_wrap { display: flex; justify-content: space-between; - align-items: center; margin: 30px 0 14px; + + .tooltip_wrap { + position: relative; + + &:hover { + .tooltip { + display: block; + } + } + + .tooltip { + display: none; + background: rgba(0, 30, 63, 0.6); + border: 1px solid #003F82; + backdrop-filter: blur(3px); + padding: 10px; + font-size: 15px; + color: #fff; + line-height: 19px; + font-weight: 400; + border-radius: 6px; + width: 230px; + position: absolute; + line-height: 24px; + left: 100%; + top: 50%; + transform: translate(20px, -42%); + z-index: 999999999999999; + } + } .item { display: flex; @@ -1299,17 +2367,24 @@ -webkit-text-fill-color: transparent; } + .blue { + background-image: -webkit-linear-gradient(top, + #fff 0%, + #65a1fa 30%, + #3a84f6 100%); + } + .today { background-image: -webkit-linear-gradient(top, #fff 0%, - #20FFC5 50%, + #20FFC5 30%, #20FFC5 100%); } .finish { background-image: -webkit-linear-gradient(top, #fff 0%, - #FFB120 50%, + #FFB120 30%, #FFB120 100%); } } @@ -1324,16 +2399,154 @@ } .footer { - font-weight: 500; - font-size: 16px; - display: flex; - align-items: center; + .wrap { + display: flex; + align-items: center; + height: 76px; - .num { - font-weight: bold; - font-size: 24px; - color: #01D9FE; - margin-left: 8px; + .content { + width: 80%; + height: 16px; + background: rgba(255, 255, 255, 0.13); + border-radius: 8px; + margin-right: 6px; + display: flex; + position: relative; + + } + + .box { + width: 80%; + height: 16px; + background: linear-gradient(270deg, #FF9F02 0%, #FFEA70 100%); + border-radius: 8px; + position: absolute; + top: 0; + left: 0; + z-index: 9999; + + .tag { + position: absolute; + z-index: 99999; + bottom: -30px; + right: 0; + transform: translate(50%, 0); + height: 20px; + background: #FECE01; + color: #000000; + padding: 0 6px; + border-radius: 12px; + display: flex; + align-items: center; + justify-content: center; + min-width: 76px; + border: 1px solid #FECE01; + + .icon { + position: absolute; + top: 1px; + left: 50%; + /* transform: translate(-50%,0); */ + width: 10px; + height: 10px; + transform: rotate(45deg) translate(-50%, 0); + background: #FECE01; + z-index: -1; + } + } + + .tooltip_wrap { + .tooltip { + z-index: 9999999999; + top: 34px; + transform: translate(70px, -42%); + } + } + + .tag1 { + background-color: #28F0CC; + border: 1px solid #28F0CC; + + .icon { + background-color: #28F0CC; + } + } + } + + .box1 { + width: 10%; + z-index: 9; + background: linear-gradient(270deg, #68dfd3 0%, #006BFF 100%); + } + + .box11 { + background: linear-gradient(270deg, #75f8cc 0%, #68dfd3 100%); + } + + .box22 { + background: linear-gradient(270deg, #f2a43b 0%, #ecbb61 100%); + } + + .box23 { + background: linear-gradient(270deg, #f4b34a 0%, #FFEA70 100%); + } + + .tooltip_wrap { + /* position: relative; */ + + &:hover { + .tooltip { + display: block; + } + } + + .tooltip { + display: none; + background: #071b32; + border: 1px solid #003F82; + /* backdrop-filter: blur(3px); */ + padding: 10px; + font-size: 15px; + color: #fff; + line-height: 19px; + font-weight: 400; + border-radius: 6px; + width: 200px; + position: absolute; + z-index: 99999999; + left: 100%; + top: 50%; + transform: translate(30px, -42%); + } + } + + .scale { + position: absolute; + top: -24px; + left: 0; + font-size: 16px; + color: #D2E0FF; + + .tooltip_wrap { + .tooltip { + width: 240px; + transform: translate(20px, -50%); + } + } + } + + .scale1 { + left: 92%; + min-width: 36px; + } + + .side { + flex: 1; + height: 16px; + background: rgba(255, 255, 255, 0.13); + border-radius: 8px; + position: relative; + } } } } @@ -1341,13 +2554,62 @@ .center_box_two { width: 100%; flex: 1; + position: relative; - /* border: 1px solid; */ .echart_map { width: 100%; height: 100%; - border: 1px solid; /* transform: scale(.2); */ + } + + .modal1 { + width: 500px; + height: 192px; + background: rgba(0, 86, 255, 0.1); + backdrop-filter: blur(5px); + padding: 12px 30px; + position: absolute; + top: 36px; + left: 12px; + border: 1px solid #4ba7f7; + z-index: 999999; + + .content { + .list { + height: 128px; + overflow: auto; + } + + .line { + display: flex; + align-items: center; + height: 32px; + color: #fff; + font-size: 12px; + + &:nth-of-type(2n) { + background: rgba(134, 156, 201, 0.05); + } + + .item { + flex: 3; + } + + .addr { + flex: 5; + display: flex; + flex-wrap: nowrap; + overflow: hidden; + } + } + + .head { + font-weight: 500; + font-size: 13px; + color: #01D9FE; + } + } + } } } @@ -1355,134 +2617,132 @@ .right_box { width: 440px; - .right_box_one { - margin-top: 20px; - padding: 0px 10px 30px 20px; - border: 1px solid; - - .content_wrap { - display: flex; - justify-content: space-between; - - .num_wrap { - width: 280px; - - .num_list { - display: flex; - margin-bottom: 20px; - - .num { - width: 30px; - height: 46px; - display: flex; - justify-content: center; - align-items: center; - position: relative; - font-weight: 600; - font-size: 32px; - margin-right: 5px; - } - } - - .content { - display: flex; - color: #D2E0FF; - - .la { - color: #869CC9; - } - - .unit_wrap { - display: flex; - align-items: center; - } - - .icon { - width: 10px; - height: 12px; - margin-right: 6px; - margin-left: 4px; - } - } - } - - .static_wrap { - flex: 1; - - .echart_wrap { - width: 54px; - height: 54px; - position: relative; - margin-bottom: 12px; - - .echart3 { - width: 54px; - height: 54px; - } - - .pie_text { - width: 38px; - height: 38px; - border: 1px dashed rgba(210, 224, 255, 0.48); - border-radius: 50%; - position: absolute; - - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - z-index: 999; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - font-size: 12px; - - .fs30 { - font-weight: 600; - font-size: 14px; - color: #28F0C4; - } - } - - } - - .text { - font-size: 13px; - color: #869CC9; - } - } - } - } - - .right_box_two { - border: 1px solid; - padding: 10px 15px; - - .echart4_wrap { - width: 410px; - height: 216px; - - .echart4 { - width: 410px; - height: 216px; - } - } - } - .right_box_three { - border: 1px solid; + margin-top: 20px; .echart5_wrap { - height: 240px; + height: 192px; width: 410px; .echart5 { - height: 240px; + height: 192px; width: 410px; } } } } + + .question { + display: flex; + align-items: center; + + &:hover { + .hover_wrap { + display: block; + } + } + + .hover_wrap { + display: none; + position: absolute; + left: 130px; + z-index: 999; + top: -5px; + width: 420px; + height: 148px; + background: rgba(0, 30, 63, 0.6); + border: 1px solid #003F82; + backdrop-filter: blur(3px); + padding: 10px; + font-size: 13px; + color: #ebf1fb; + line-height: 19px; + font-weight: 400; + border-radius: 6px; + + div { + margin-bottom: 3px; + } + + .triangle { + width: 12px; + height: 12px; + position: absolute; + top: 10px; + left: -6px; + transform: rotate(45deg); + border-left: 1px solid #003F82; + border-bottom: 1px solid #003F82; + background: rgba(0, 30, 63, 0.6); + backdrop-filter: blur(3px); + } + + .title { + font-weight: bold; + font-size: 14px; + color: #e2ebfd; + } + } + } +} + +.question1 { + display: flex; + align-items: center; + + .hover_con { + position: relative; + + &:hover { + .hover_wrap { + display: block; + } + } + } + + + .hover_wrap { + display: none; + + position: absolute; + left: 108%; + z-index: 999; + top: -5px; + width: 212px; + height: 62px; + background: rgba(0, 30, 63, 0.6); + border: 1px solid #003F82; + backdrop-filter: blur(3px); + padding: 10px; + font-size: 15px; + color: #e9f0ff; + line-height: 19px; + font-weight: 400; + border-radius: 6px; + + div { + margin-bottom: 3px; + } + + + .title { + color: #e2ebfd; + } + } +} + +.triangle { + width: 12px; + height: 12px; + position: absolute; + top: 36%; + transform: translate(-50%, -50%); + left: -6px; + transform: rotate(45deg); + border-left: 1px solid #003F82; + border-bottom: 1px solid #003F82; + background: rgba(0, 30, 63, 0.6); + /* backdrop-filter: blur(3px); */ } .main_header { @@ -1588,6 +2848,248 @@ } } +.modal_wrap { + width: 600px; + height: 556px; + background: rgba(0, 30, 63, 0.5); + /* border: 1px solid #c6eef7; */ + backdrop-filter: blur(5px); + position: fixed; + top: 20%; + left: 50%; + transform: translate(-50%, 0); + z-index: 99999; + padding: 24px; + + #map-container { + width: 260px; + height: 320px; + position: absolute; + top: 190px; + right: 20px; + z-index: 999999; + border-radius: 2px; + + :deep(.amap-markers) { + left: -12px !important; + top: -32px !important; + } + } + + .stock { + display: flex; + align-items: center; + color: #dd5d2a; + margin-bottom: 8px; + + img { + margin-right: 6px; + width: 14px; + } + } + + .title_head { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 8px; + + .left { + display: flex; + align-items: center; + font-weight: bold; + font-size: 17px; + } + + .tit_status { + color: #af8832; + } + + img { + width: 20px; + margin-right: 4px; + } + } + + .info { + display: flex; + flex-wrap: wrap; + background-color: #0d2845; + border-radius: 4px; + padding: 10px 20px 0px; + margin-bottom: 16px; + + .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; + margin-top: 7px; + } + + .la { + color: #01D9FE; + width: 70px; + } + + .val { + flex: 1; + } + } + } + + .logistics_wrap { + .m_title { + display: flex; + align-items: center; + font-style: 16px; + font-weight: 600; + margin-bottom: 20px; + + img { + width: 24px; + margin-right: 4px; + } + } + + .fu_list { + height: 310px; + width: 290px; + margin-top: 20px; + overflow: auto; + + .fu_item { + position: relative; + + .item_title { + margin-bottom: 6px; + + .icon { + width: 36px; + display: flex; + + img { + width: 20px; + height: 20px; + } + } + } + } + + .separate { + height: calc(100% - 8px); + /* width: 1px; */ + border: 1px dashed #576783; + /* border: 1px dashed red; */ + position: absolute; + left: 10px; + top: 20px; + z-index: -1; + } + + .title { + font-weight: 500; + font-size: 16px; + color: #222222; + margin-bottom: 10px; + } + + .line { + display: flex; + margin-bottom: 12px; + + .label { + color: #becbe9; + margin-right: 20px; + } + + .val {} + } + + .item_title { + font-weight: 600; + font-size: 16px; + display: flex; + align-items: center; + display: flex; + + .icon {} + } + + .icon_wrap { + width: 24px; + margin-right: 15px; + display: flex; + align-items: center; + justify-content: center; + + .icon { + width: 24px; + height: 24px; + position: relative; + z-index: 2; + } + } + + .item { + position: relative; + color: #b1bfdc; + margin-bottom: 15px; + + .text { + color: #b1bfdc; + margin-bottom: 6px; + width: 100%; + } + + .icon { + width: 10px; + height: 10px; + position: relative; + z-index: 2; + } + + .h2 { + display: flex; + align-items: center; + } + + .h1 {} + + .time { + padding-left: 39px; + font-size: 12px; + } + } + } + } + + +} + +.modal_mask { + position: fixed; + width: 100%; + height: 100%; + top: 0; + left: 0; + z-index: 9999; + /* background-color: rgba(0, 0, 0, 0.0); */ + /* background-color: red; */ +} + .second_title { height: 24px; display: flex; @@ -1603,6 +3105,12 @@ font-weight: 500; font-size: 16px; color: #FFFFFF; + position: relative; + + .hover_wrap { + left: 175px; + height: 80px; + } .icon { width: 16px; @@ -1631,15 +3139,43 @@ align-items: center; font-size: 14px; color: #869CC9; - width: 96px; + width: 110px; height: 28px; border-radius: 14px; border: 1px solid #869CC9; + padding-left: 8px; + margin-right: 12px; img { width: 14px; height: 14px; margin-right: 3px; + } + + .input { + flex: 1; + } + } + + .side { + font-size: 14px; + color: #D2E0FF; + + span { + font-size: 16px; + font-weight: 600; + color: #3981ea; + background-image: -webkit-linear-gradient(top, + #fff 0%, + #65a5ff 30%, + #2c66b9 100%); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + + .unit { + font-weight: 400; + font-size: 12px; + } } } @@ -1648,6 +3184,10 @@ align-items: center; font-size: 14px; color: #d2e0ff; + + .tab { + cursor: pointer; + } .separate { width: 1px; @@ -1693,4 +3233,4 @@ object-fit: cover; z-index: -1; } -</style> \ No newline at end of file +</style> -- Gitblit v1.9.3