| | |
| | | <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 class="content_wrap"> |
| | | <div class="num_wrap"> |
| | | <div class="num_list" v-if="StockOutData.currentNum"> |
| | | <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 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=""> |
| | |
| | | </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> |
| | |
| | | <div class="icon icon2"></div> |
| | | </div> |
| | | </div> --> |
| | | <div :style="{width: cneterData.level3}" :class="{box23: cneterData.crrentOutNum >= cneterData.hoursAbility}" class="box" > |
| | | <div :style="{ width: cneterData.level3 }" |
| | | :class="{ box23: cneterData.crrentOutNum >= cneterData.hoursAbility }" class="box"> |
| | | <div v-if="cneterData.crrentOutNum < cneterData.hoursAbility" class="tag"> |
| | | <div class="icon"></div> |
| | | <span>今日出库</span> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="side"> |
| | | <div v-if="cneterData.crrentOutNum >= cneterData.hoursAbility" :style="{width: cneterData.level33}" class="box box22" > |
| | | <div v-if="cneterData.crrentOutNum >= cneterData.hoursAbility" :style="{ width: cneterData.level33 }" |
| | | class="box box22"> |
| | | <div class="tag"> |
| | | <div class="icon"></div> |
| | | <span>今日出库</span> |
| | | </div> |
| | | </div> |
| | | <div v-if="cneterData.hoursAbility <= cneterData.currentPlanNum" :style="{width: cneterData.level22}" class="box box1 box11"> |
| | | <div v-if="cneterData.hoursAbility <= cneterData.currentPlanNum" |
| | | :style="{ width: cneterData.level22 }" class="box box1 box11"> |
| | | <div class="tag tag1"> |
| | | <div class="icon"></div> |
| | | <span>当日计划</span> |
| | |
| | | <div class="list"> |
| | | <div class="head line"> |
| | | <div class="item">车牌号</div> |
| | | <div class="item contract">合同号</div> |
| | | <div class="item">目的地</div> |
| | | <div class="item">合同号</div> |
| | | <div class="item addr">目的地</div> |
| | | </div> |
| | | <div class="line" v-for="item in active1List"> |
| | | <div class="item">{{ item.platNumber }}</div> |
| | | <div class="item contract">{{ item.contractNumber }}</div> |
| | | <div class="item">{{ item.repertotyName }}</div> |
| | | <div class="item">{{ item.contractNumber }}</div> |
| | | <div class="item addr">{{ item.repertotyName }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="side"> |
| | | 全省: |
| | | <span>{{ data5.totalNum }}</span> |
| | | <span>{{ data5.currentNum }}</span> |
| | | <span class="unit">万支 | </span> |
| | | <span v-if="data5.totalNum">{{ ((data5.currentNum / data5.totalNum) * 100).toFixed(1) }}%</span> |
| | | </div> |
| | |
| | | <img src="@/assets/images/LogisticsCenter/ic_title@2x.png" class="icon" alt="" /> |
| | | <div>出库能力利用率</div> |
| | | </div> |
| | | <div class="side">全省:<span>100<span class="unit">万支 |</span> 40.6%</span></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> |
| | |
| | | <img src="@/assets/images/LogisticsCenter/ic_title@2x.png" class="icon" alt="" /> |
| | | <div>运用资源利用率</div> |
| | | </div> |
| | | <div class="side">全省:<span>100<span class="unit">万支 |</span> 40.6%</span></div> |
| | | <div class="side"> |
| | | 全省: |
| | | <span>{{ data7.currentNum }}</span> |
| | | <span class="unit">辆 | </span> |
| | | <span v-if="data7.totalNum">{{ ((data7.currentNum / data7.totalNum) * 100).toFixed(1) }}%</span> |
| | | </div> |
| | | </div> |
| | | <div class="echart5_wrap"> |
| | | <div class="echart5" id="echart7"></div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <Loading v-if="modalLoading" /> |
| | | </div> |
| | | <div class="modal_mask" v-if="showModal" @click="closeModal"></div> |
| | | </div> |
| | | <!-- <Loading v-if="isLoading" /> --> |
| | | </v-scale-screen> |
| | | </template> |
| | | |
| | |
| | | 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 'vue3-loading-spinner'; |
| | | // import 'vue3-loading-spinner/dist/style.css'; |
| | | // import Loading from 'vue-loading-overlay' |
| | | // import 'vue-loading-overlay/dist/css/index.css' |
| | | import Loading from '@/components/Loading.vue' |
| | | |
| | | import { |
| | | getStoreOperationList, |
| | | getStorearriveGoodsList, |
| | | getStorecenterData, |
| | | getStoreenergyDataList, |
| | | getStorelastMonthOil, |
| | |
| | | time.value = dayjs().format('HH:mm:ss') |
| | | |
| | | }, 1000) |
| | | const isLoading = ref(false); |
| | | // |
| | | const mapList = ref([]) |
| | | const mapEchart = ref() |
| | |
| | | }, |
| | | xAxis: { |
| | | type: 'value', |
| | | axisLabel: { |
| | | color: '#D2E0FF' |
| | | }, |
| | | splitLine: { |
| | | show: true, |
| | | lineStyle: { |
| | |
| | | yAxis: { |
| | | axisTick: { |
| | | show: false, |
| | | }, |
| | | axisLabel: { |
| | | color: '#D2E0FF' |
| | | }, |
| | | type: 'category', |
| | | axisLine: { |
| | |
| | | |
| | | const dataList1 = ref([]) |
| | | const getData1 = () => { |
| | | getStorearriveGoodsList({ |
| | | arriveGoodsList({ |
| | | factoryCode: activeCity.value.code |
| | | }).then(res => { |
| | | dataList1.value = res.data || [] |
| | |
| | | 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: 10 |
| | | rows: 50 |
| | | }) |
| | | const taskClick = (item) => { |
| | | isLoading.value = true |
| | | modalLoading.value = true |
| | | showModal.value = true |
| | | kzorderInfo({ contractNumber: item.contractNumber }).then(res => { |
| | | modalInfo.value = res.data |
| | | showModal.value = true |
| | | isLoading.value = false |
| | | |
| | | modalLoading.value = false |
| | | nextTick(() => { |
| | | initGdMap() |
| | | }) |
| | | }, () => { |
| | | isLoading.value = false |
| | | modalLoading.value = false |
| | | }) |
| | | } |
| | | const closeModal = () => { |
| | |
| | | }) |
| | | map.add(polyline) |
| | | } |
| | | const isLoadingTask = ref(false) |
| | | const getData2 = () => { |
| | | |
| | | isLoadingTask.value = true |
| | | getStoreTaskList({ |
| | | pager: pager.value, |
| | | parameters: { |
| | |
| | | facrotyCodeList: activeCity.value.code ? [activeCity.value.code] : [] |
| | | } |
| | | }).then(res => { |
| | | isLoadingTask.value = false |
| | | let temp = res.data.rows || [] |
| | | transportTask.value = temp.map(item => { |
| | | if (item.transportDate) { |
| | |
| | | } |
| | | return item |
| | | }) |
| | | console.log('isLoadingTask', isLoadingTask.value) |
| | | |
| | | }, () => { |
| | | isLoadingTask.value = false |
| | | }) |
| | | } |
| | | |
| | |
| | | const cityList = ref() |
| | | const getCity = () => { |
| | | kzfactoryList().then(res => { |
| | | cityList.value = res.data |
| | | cityList.value = [{ name: '全省', code: '' }, ...res.data] |
| | | }) |
| | | } |
| | | const activeCity = ref({ name: '全省', code: '' }) |
| | |
| | | } |
| | | |
| | | 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 |
| | |
| | | initEchart1() |
| | | } |
| | | |
| | | }, () => { |
| | | loading1.value = false |
| | | }) |
| | | } |
| | | const tab1Click = (val) => { |
| | |
| | | factoryCode: activeCity.value.code |
| | | }).then(res => { |
| | | const obj = res.data || {} |
| | | console.log('obj', obj); |
| | | console.log('obj', obj) |
| | | |
| | | // 8小时 计划 今日 |
| | | // obj.hoursAbility = 6000 |
| | |
| | | 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); |
| | | // 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 |
| | | |
| | |
| | | legend: { |
| | | itemGap: 12, |
| | | // icon: 'circle', |
| | | right: '16%', |
| | | right: '12%', |
| | | top: '0%', |
| | | data: ['总库存', '当前库存', '库存利用率'], |
| | | itemWidth: 20, |
| | |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | color: '#869CC9' |
| | | // fontSize: 24, |
| | | color: '#D2E0FF' |
| | | }, |
| | | axisTick: { |
| | | show: false, |
| | |
| | | nameGap: 16, |
| | | type: 'value', |
| | | axisLabel: { |
| | | show: true, |
| | | color: "#869CC9", |
| | | }, |
| | | axisLine: { |
| | |
| | | name: '%', |
| | | nameGap: 16, |
| | | min: 0, |
| | | max: 100, |
| | | interval: 25, |
| | | // max: 100, |
| | | axisLabel: { |
| | | formatter: '{value}' |
| | | color: "#869CC9", |
| | | }, |
| | | nameTextStyle: { |
| | | color: '#869CC9', |
| | | padding: [0, 0, 0, 12] |
| | | }, |
| | | splitLine: false |
| | | } |
| | |
| | | // icon: 'circle', |
| | | right: '10%', |
| | | top: '0', |
| | | data: ['出库能力', '当日出库量', '库存利用率'], |
| | | data: ['出库能力', '当日出库量', '出库利用率'], |
| | | itemWidth: 20, |
| | | itemHeight: 10, |
| | | textStyle: { |
| | |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | color: '#869CC9' |
| | | // fontSize: 24, |
| | | color: "#869CC9", |
| | | }, |
| | | nameTextStyle: { |
| | | color: '#869CC9', |
| | | }, |
| | | axisTick: { |
| | | show: false, |
| | |
| | | }], |
| | | yAxis: [ |
| | | { |
| | | nameTextStyle: { |
| | | color: '#869CC9', |
| | | }, |
| | | name: '万支', |
| | | nameGap: 16, |
| | | type: 'value', |
| | | axisLabel: { |
| | | show: true, |
| | | color: "#869CC9", |
| | | }, |
| | | nameTextStyle: { |
| | | color: '#869CC9', |
| | | padding: [0, 0, 0, 12] |
| | | }, |
| | | axisLine: { |
| | | show: true, |
| | |
| | | name: '%', |
| | | nameGap: 16, |
| | | min: 0, |
| | | max: 100, |
| | | interval: 25, |
| | | axisLabel: { |
| | | formatter: '{value}' |
| | | color: "#869CC9", |
| | | }, |
| | | nameTextStyle: { |
| | | color: '#869CC9', |
| | | padding: [0, 0, 0, 12] |
| | | }, |
| | | splitLine: false |
| | | } |
| | |
| | | barGap: '-100%' // 设置柱子完全重叠 |
| | | }, |
| | | { |
| | | name: '库存利用率', |
| | | name: '出库利用率', |
| | | type: 'line', |
| | | smooth: false, |
| | | showAllSymbol: true, |
| | |
| | | legend: { |
| | | itemGap: 12, |
| | | // icon: 'circle', |
| | | right: '16%', |
| | | right: '10%', |
| | | top: '0%', |
| | | data: ['总库存', '当前库存', '库存利用率'], |
| | | data: ['总运力资源', '当日提报运力', '车辆利用率'], |
| | | itemWidth: 20, |
| | | itemHeight: 10, |
| | | textStyle: { |
| | |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | color: '#869CC9' |
| | | // fontSize: 24, |
| | | color: "#869CC9", |
| | | }, |
| | | nameTextStyle: { |
| | | color: '#869CC9', |
| | | padding: [0, 0, 0, 12] |
| | | }, |
| | | axisTick: { |
| | | show: false, |
| | |
| | | nameTextStyle: { |
| | | color: '#869CC9', |
| | | }, |
| | | name: '万支', |
| | | name: '辆', |
| | | nameGap: 16, |
| | | type: 'value', |
| | | axisLabel: { |
| | |
| | | name: '%', |
| | | nameGap: 16, |
| | | min: 0, |
| | | max: 100, |
| | | interval: 25, |
| | | axisLabel: { |
| | | formatter: '{value}' |
| | | color: "#869CC9", |
| | | }, |
| | | nameTextStyle: { |
| | | color: '#869CC9', |
| | | padding: [0, 0, 0, 12] |
| | | }, |
| | | splitLine: false |
| | | } |
| | | ], |
| | | series: [ |
| | | { |
| | | name: '总库存', |
| | | name: '总运力资源', |
| | | type: 'bar', |
| | | barWidth: 10, |
| | | barGap: '60%', |
| | |
| | | color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { |
| | | offset: 0, |
| | | color: '#2e6bf3' |
| | | color: '#73f0c6' |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: '#5fcbab' |
| | | color: '#3f8ca6' |
| | | } |
| | | ], false), |
| | | lineStyle: { |
| | |
| | | data: data7.value.detailList.map(i => i.totalNum) |
| | | }, |
| | | { |
| | | name: '当前库存', |
| | | name: '当日提报运力', |
| | | type: 'bar', |
| | | barWidth: 10, |
| | | label: { |
| | |
| | | color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { |
| | | offset: 0, |
| | | color: '#eda13a' |
| | | color: '#ed7e32' |
| | | }, |
| | | { |
| | | offset: 0.6, |
| | | color: '#dfb44e' |
| | | color: '#e99b5c' |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: '#ccc16c' |
| | | color: '#e7a774' |
| | | } |
| | | ], false), |
| | | lineStyle: { |
| | |
| | | data: data7.value.detailList.map(i => i.currentNum) |
| | | }, |
| | | { |
| | | name: '库存利用率', |
| | | name: '车辆利用率', |
| | | type: 'line', |
| | | smooth: false, |
| | | showAllSymbol: true, |
| | |
| | | kzinventoryUseRate().then(res => { |
| | | data5.value = res.data |
| | | data5.value.detailList.forEach(item => { |
| | | item.useRate = item.useRate * 100 |
| | | if (item.useRate) { |
| | | item.useRate = (item.useRate * 100).toFixed(1) |
| | | } |
| | | |
| | | }) |
| | | initEchart5() |
| | | }) |
| | | outAbilityUseRate().then(res => { |
| | | data6.value = res.data |
| | | data6.value.detailList.forEach(item => { |
| | | item.useRate = item.useRate * 100 |
| | | 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 |
| | | // item.useRate = item.useRate * 100 |
| | | if (item.useRate) { |
| | | item.useRate = (item.useRate * 100).toFixed(1) |
| | | } |
| | | }) |
| | | initEchart7() |
| | | }) |
| | |
| | | .left_box_one { |
| | | margin-top: 20px; |
| | | padding: 0px 10px 30px 20px; |
| | | position: relative; |
| | | |
| | | .content_wrap { |
| | | display: flex; |
| | |
| | | } |
| | | |
| | | .list_wrap { |
| | | position: relative; |
| | | |
| | | .list { |
| | | height: 200px; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .empty { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | height: 200px; |
| | | |
| | | img { |
| | | width: 144px; |
| | | } |
| | | } |
| | | |
| | | .line { |
| | |
| | | } |
| | | |
| | | .status { |
| | | flex: 5; |
| | | flex: 3.2; |
| | | } |
| | | } |
| | | |
| | |
| | | justify-content: center; |
| | | min-width: 76px; |
| | | border: 1px solid #fff; |
| | | |
| | | .icon { |
| | | position: absolute; |
| | | top: 1px; |
| | |
| | | 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%); |
| | | } |
| | |
| | | } |
| | | |
| | | .item { |
| | | flex: 2; |
| | | flex: 3; |
| | | } |
| | | |
| | | .addr { |
| | | flex: 5; |
| | | display: flex; |
| | | flex-wrap: nowrap; |
| | | overflow: hidden; |
| | | } |
| | | } |
| | | |