Browse Source

2023-11-15

master
guoxing 1 year ago
parent
commit
82d6bb59bf
  1. BIN
      src/assets/mprtgage/WarehousePlan.jpg
  2. BIN
      src/assets/mprtgage/WarehousePlan.png
  3. 2
      src/settings.js
  4. 58
      src/views/echarts/barlineEacharts.vue
  5. 2
      src/views/echarts/mixins/resize.js
  6. 6
      src/views/echarts/pieLineEacharts.vue
  7. 200
      src/views/mortgage/index.vue
  8. 2
      vue.config.js

BIN
src/assets/mprtgage/WarehousePlan.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

BIN
src/assets/mprtgage/WarehousePlan.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

2
src/settings.js

@ -1,6 +1,6 @@
module.exports = {
title: '门店展示',
title: '标准仓项目展示',
/**
* @type {boolean} true | false

58
src/views/echarts/barlineEacharts.vue

@ -75,14 +75,20 @@ export default {
serviceData2,
} = {}) {
this.chart.setOption({
color: ['#ff9900', '#10aeff'],
// color: ['#ff9900', '#10aeff','#ff9900', '#10aeff','#ff9900'],
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
legend: {},
legend: {
textStyle: {
color:'#fff',
fontSize:14,
padding:[0,10]
},
},
grid: {
left: '3%',
right: '4%',
@ -92,12 +98,27 @@ export default {
xAxis: [
{
type: 'category',
data: this.chartData.date
data: this.chartData.date,
axisLabel: {
textStyle: {
color:'#fff',
}
}
}
],
yAxis: [
{
type: 'value'
type: 'value',
name: '人民币/元',
min: 10000,
max: 25000000,
interval: 2000000,
axisLabel: {
formatter: '{value} 元',
textStyle: {
color:'#fff',
}
}
}
],
series: [
@ -119,7 +140,34 @@ export default {
focus: 'series'
},
data: this.chartData.gongyinglian
}
},
{
name: '门店',
type: 'bar',
stack: 'Search Engine',
emphasis: {
focus: 'series'
},
data: this.chartData.mendian
},
{
name: '烟草门店',
type: 'bar',
stack: 'Search Engine',
emphasis: {
focus: 'series'
},
data: this.chartData.ycMendian
},
{
name: '残次品',
type: 'bar',
stack: 'Search Engine',
emphasis: {
focus: 'series'
},
data: this.chartData.cancipin
}
]});
this.chart.on("click", function (param) {
this.callParents(param);

2
src/views/echarts/mixins/resize.js

@ -1,4 +1,4 @@
import { debounce } from '@/utils'
import debounce from '@/utils'
export default {
data() {

6
src/views/echarts/pieLineEacharts.vue

@ -110,11 +110,11 @@ export default {
orient: 'vertical',
left:'70%',
align:'left',
top:'0',
top:'80',
itemGap:30,
padding:[20,29,40,0],
padding:[20,0,20,10],
textStyle: {
color:'#333',
color:'#fff',
fontSize:14,
padding:[0,10]
},

200
src/views/mortgage/index.vue

@ -1,10 +1,10 @@
<template>
<div class="mortgage">
<div class="mortgage_tit">36524保证类贷款项目</div>
<div class="mortgage_tit">国大36524项目</div>
<div class="mortgage_top">
<div class="mortgage_top_item">
<div class="mortgage_top_item_tit">
<div class="mortgage_top_item_tit_left">
<div class="mortgage_top_item_tit_left" style="color: #fff;;">
<span>
<svg-icon slot="prefix" icon-class="word" class="el-input__icon"
style="height: 16px; width: 16px" />
@ -38,7 +38,7 @@
</span>
仓库安防
</div>
<div class="mortgage_top_item_tit_right">
<div class="mortgage_top_item_tit_right" style="color: #fff;">
<el-select v-model="wareValue" placeholder="请选择仓库">
<el-option v-for="item in warehouse" :key="item.value" :label="item.label"
:value="item.value">
@ -49,7 +49,7 @@
<div class="mortgage_top_item_cons">
<div class="mortgage_top_item_cons_left">
<div class="mortgage_top_item_top">
<img src="@/assets/mprtgage/WarehousePlan.jpg" alt="" />
<img src="@/assets/mprtgage/WarehousePlan.png" alt="" />
<img src="@/assets/mprtgage/camera.jpg" class="mortgage_top_item_top_btn1"
@click="cameraClock(0)" />
<img src="@/assets/mprtgage/camera.jpg" class="mortgage_top_item_top_btn2"
@ -147,7 +147,7 @@
<span>
<svg-icon icon-class="jianguan" class="el-input__icon" style="height: 16px; width: 16px" />
</span>
监管数据
关键数据
</div>
<div class="mortgage_bom_item_tit_right"></div>
</div>
@ -181,7 +181,7 @@
<span>
<svg-icon icon-class="data" class="el-input__icon" style="height: 16px; width: 16px" />
</span>
库存分析图
货值分析
</div>
<div class="mortgage_bom_item_tit_right">
<el-select v-model="dayValue" placeholder="请选择日期">
@ -200,22 +200,48 @@
<span>
<svg-icon icon-class="lines" class="el-input__icon" style="height: 16px; width: 16px" />
</span>
仓库库存表
库存货值
</div>
<div class="mortgage_bom_item_tit_right">
<span style="margin-right: 20px;border-bottom: solid 1px #58A55C;padding-bottom: 2px;
color: #58A55C;position: absolute;bottom: 12px;" @click="dialogVisible = true">门店市区分布图>></span>
</div>
<div class="mortgage_bom_item_tit_right"></div>
</div>
<div class="mortgage_bom_item_cont">
<div v-for="(item,index) in inventoryList" class="mortgage_bom_item_cont_list"
v-show="inventoryList.length>0">
<div class="mortgage_bom_item_cont_list_item" >
<div class="mortgage_bom_item_cont_list_item_left">{{item.name}}</div>
<div class="mortgage_bom_item_cont_list_item_right">{{item.amount}}</div>
</div>
</div>
<div style="width: 100%;height:300px; text-align: center;margin-top: 100px;
font-size: 18px;font-weight: 600;font-family: sans-serif;
color: #ccc;" v-show="inventoryList.length==0">当日无数据</div>
<!-- <div class="mortgage_bom_item_cont_item">
<div class="mortgage_bom_item_cont_item_left">门店</div>
<div class="mortgage_bom_item_cont_item_right">{{inventoryInfo.mendian}}</div>
</div>
<div class="mortgage_bom_item_cont_item">
<div class="mortgage_bom_item_cont_item_left">常温仓</div>
<div class="mortgage_bom_item_cont_item_right">{{inventoryInfo.changwencang}}</div>
<div class="mortgage_bom_item_cont_item_left">供应链</div>
<div class="mortgage_bom_item_cont_item_right">{{inventoryInfo.mendian}}</div>
</div>
<div class="mortgage_bom_item_cont_item">
<div class="mortgage_bom_item_cont_item_left">门店</div>
<div class="mortgage_bom_item_cont_item_right">{{inventoryInfo.mendian}}</div>
</div>
<div class="ditus" @click="dialogVisible = true">
<div class="mortgage_bom_item_cont_item">
<div class="mortgage_bom_item_cont_item_left">门店</div>
<div class="mortgage_bom_item_cont_item_right">{{inventoryInfo.mendian}}</div>
</div> -->
<!-- <div class="ditus" @click="dialogVisible = true">
<img src="@/assets/image/map.jpg" alt="">
</div>
</div> -->
</div>
</div>
</div>
@ -305,7 +331,10 @@
date: [],
changwencang: [],
gongyinglian: [],
}
},
inventoryList: [
]
};
},
created() {
@ -324,6 +353,9 @@
date: res.data.date,
changwencang: res.data.changwencang,
gongyinglian: res.data.gongyinglian,
cancipin: res.data.cancipin,
mendian: res.data.mendian,
ycMendian: res.data.ycMendian,
}
}).catch(e => {
@ -333,7 +365,8 @@
getInventory() {
req.getInventory(this.times).then(res => {
console.log('getInventory:', res)
this.inventoryInfo = res.data
this.inventoryList = res.data
}).catch(e => {
console.log('GdinventoryLog-loadList-ee:', e)
})
@ -508,6 +541,7 @@
</script>
<style lang="scss" scoped>
.mortgage {
background-color: #040C2B;
width: 100%;
height: 100%;
box-sizing: border-box;
@ -520,12 +554,12 @@
line-height: 50px;
font-size: 24px;
font-weight: bold;
color: #000;
color: #39D6FE;
}
.mortgage_top {
width: 100%;
height: calc((100% - 50px) / 2);
height: 60%;
position: relative;
display: flex;
justify-content: space-between;
@ -534,6 +568,9 @@
.mortgage_top_item {
height: 100%;
position: relative;
background-color: #031249;
padding: 15px;
&:nth-of-type(1) {
width: 26%;
@ -542,11 +579,13 @@
::v-deep .el-select {
width: 150px;
color: #fff;
.el-input {
.el-input__inner {
color: #fff;
background: transparent;
border: transparent;
border: none;
}
}
}
@ -556,10 +595,15 @@
position: relative;
justify-content: right;
.el-select {
color: #fff;
}
::v-deep .el-date-editor {
width: 150px;
.el-input__inner {
color: #fff;
background: transparent;
border: none;
}
@ -575,7 +619,7 @@
width: 100%;
height: 100%;
bottom: 5px;
border-bottom: solid 4px #dadada;
border-bottom: solid 4px #fff;
}
}
}
@ -589,6 +633,7 @@
.mortgage_top_item_tit_left {
width: auto;
margin-right: 10px;
color: #fff;
}
}
@ -597,8 +642,9 @@
.el-input {
.el-input__inner {
color: #fff;
background: transparent;
border: transparent;
border: none;
}
}
}
@ -608,6 +654,11 @@
flex: 1;
position: relative;
justify-content: right;
color: #fff;
.el-select {
color: #fff;
}
&::before {
content: "";
@ -615,7 +666,8 @@
width: 100%;
height: 100%;
bottom: 5px;
border-bottom: solid 4px #dadada;
border-bottom: solid 4px #fff;
;
}
}
@ -651,7 +703,12 @@
justify-content: right;
align-items: center;
.el-select {
color: #fff;
}
span {
color: #fff;
margin-right: 20px;
}
}
@ -669,8 +726,10 @@
.mortgage_top_item_coner_con {
width: 100%;
height: 10%;
height: 8%;
display: flex;
margin-top: -10px;
margin-bottom: 10px;
align-items: center;
box-sizing: border-box;
padding-left: 30px;
@ -693,17 +752,16 @@
img {
width: 100%;
height: 100%;
object-fit: cover;
}
.mortgage_top_item_top_btn1 {
//
// z-index: 100;
position: absolute;
top: 81%;
left: 75%;
width: 6%;
height: 13%;
top: 83%;
left: 71%;
width: 7.5%;
height: 9%;
background-color: #f0f;
/*设置透明度,0为完全透明,1为不透明*/
// opacity: 0;
@ -713,10 +771,10 @@
//
// z-index: 100;
position: absolute;
top: 77%;
left: 64.5%;
width: 5.5%;
height: 12%;
top: 83.5%;
left: 58.5%;
width: 8%;
height: 8%;
background-color: #ff0;
/*设置透明度,0为完全透明,1为不透明*/
// opacity: 0;
@ -726,10 +784,10 @@
//
// z-index: 100;
position: absolute;
top: 81%;
left: 54.5%;
width: 6%;
height: 13%;
top: 83%;
left: 47%;
width: 7%;
height: 9%;
background-color: #00f;
/*设置透明度,0为完全透明,1为不透明*/
// opacity: 0;
@ -739,10 +797,10 @@
//
// z-index: 100;
position: absolute;
top: 63%;
left: 81%;
width: 6%;
height: 11%;
top: 83.5%;
left: 82.5%;
width: 7.5%;
height: 8%;
background-color: #0ff;
/*设置透明度,0为完全透明,1为不透明*/
// opacity: 0;
@ -787,7 +845,7 @@
}
.mortgage_top_item_cons_right_top_foor {
margin-top: 75px;
margin-top: 35px;
width: 100%;
height: 10%;
display: flex;
@ -796,7 +854,7 @@
.invie {
width: auto;
height: 100%;
color: #999;
color: #fff;
display: flex;
align-items: center;
}
@ -806,7 +864,7 @@
z-index: 100;
height: 100%;
display: flex;
color: #999;
color: #fff;
align-items: center;
justify-content: right;
@ -821,7 +879,7 @@
height: calc(50% - 10px);
width: 100%;
position: relative;
margin-top: 80px;
margin-top: 50px;
.titele {
width: 100%;
@ -830,6 +888,7 @@
align-items: center;
.titele_left {
color: #fff;
width: auto;
height: 100%;
line-height: 40px;
@ -861,6 +920,7 @@
background: transparent;
justify-content: center;
flex-wrap: wrap;
margin-top: 10px;
.container_item1 {
width: 100%;
@ -897,7 +957,7 @@
}
.mortgage_top_item_bom {
margin-top: 5px;
height: 15%;
width: 100%;
display: flex;
@ -907,6 +967,7 @@
display: flex;
width: auto;
height: 100%;
margin-top: -25px;
align-items: flex-end;
.mortgage_top_item_bom_left_item {
@ -963,6 +1024,7 @@
.mortgage_top_item_bom_right {
flex: 1;
margin-top: -25px;
height: 100%;
display: flex;
align-items: flex-end;
@ -1037,11 +1099,12 @@
.mortgage_bom_item {
height: 100%;
background-color: #031249;
&:nth-of-type(1) {
width: 26%;
box-sizing: border-box;
padding-right: 30px;
padding: 15px;
.mortgage_bom_item_cont {
@ -1057,17 +1120,21 @@
border-bottom: none;
}
}
}
}
&:nth-of-type(2) {
width: 43%;
box-sizing: border-box;
padding: 0px 30px 0px 20px;
padding: 15px;
margin-left: 30px;
}
&:nth-of-type(3) {
width: 28%;
padding: 15px;
.mortgage_bom_item_cont {
box-sizing: border-box;
@ -1095,6 +1162,7 @@
margin-right: 5px;
height: 100%;
font-size: 20px;
color: #fff;
span {
margin-right: 10px;
@ -1113,8 +1181,9 @@
.el-input {
.el-input__inner {
color: #fff;
background: transparent;
border: transparent;
border: none;
}
}
}
@ -1136,6 +1205,41 @@
height: calc(100% - 100px);
position: relative;
.mortgage_bom_item_cont_list {
width: 100%;
height: calc(100% / 6);
padding-top: 15px;
.mortgage_bom_item_cont_list_item {
width: 100%;
margin-top: 15px;
height: calc(100% / 5);
position: relative;
display: flex;
padding-bottom: 20px;
border-bottom: solid 1px #dadada;
.mortgage_bom_item_cont_list_item_left {
width: 50%;
height: 100%;
display: flex;
align-items: center;
color: #0EC0B4;
margin-left: 10px;
}
.mortgage_bom_item_cont_list_item_right {
margin-right: 10px;
width: 50%;
height: 100%;
display: flex;
align-items: center;
justify-content: right;
color: #FF7E3F;
}
}
}
.mortgage_bom_item_cont_item {
width: 100%;
height: calc(100% / 5);
@ -1148,7 +1252,7 @@
height: 100%;
display: flex;
align-items: center;
color: #333;
color: #0EC0B4;
}
.mortgage_bom_item_cont_item_right {
@ -1157,7 +1261,7 @@
display: flex;
align-items: center;
justify-content: right;
color: #333;
color: #FF7E3F;
}
}
}

2
vue.config.js

@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, dir)
}
const name = defaultSettings.title || '门店展示' // page title
const name = defaultSettings.title || '标准仓项目展示' // page title
// 如果端口设置为80,
// 使用管理员权限执行命令行。

Loading…
Cancel
Save