|
@@ -27,22 +27,22 @@
|
|
</div>
|
|
</div>
|
|
<div class="content2">
|
|
<div class="content2">
|
|
<el-row class="content2-aside">
|
|
<el-row class="content2-aside">
|
|
- <h3 class="title">采购合同完成进度</h3>
|
|
|
|
|
|
+ <h3 class="title" @click="contract(0)">采购合同完成进度</h3>
|
|
<el-col :span="12" class="chart-card" >
|
|
<el-col :span="12" class="chart-card" >
|
|
<div style="font-weight: bold;" class="">
|
|
<div style="font-weight: bold;" class="">
|
|
- <div ref="myEchart1" style="height: 288px;" class="roseChart" @click="contract(0)"></div>
|
|
|
|
|
|
+ <div ref="myEchart1" style="height: 288px;" class="roseChart"></div>
|
|
<div class="bottom-tip">统计单位:吨</div>
|
|
<div class="bottom-tip">统计单位:吨</div>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12" class="chart-card" >
|
|
<el-col :span="12" class="chart-card" >
|
|
<div style="font-weight: bold;">
|
|
<div style="font-weight: bold;">
|
|
- <div ref="myEchart2" style="height: 288px;" class="roseChart" @click="contract(0)"></div>
|
|
|
|
|
|
+ <div ref="myEchart2" style="height: 288px;" class="roseChart"></div>
|
|
<div class="bottom-tip">统计单位:元</div>
|
|
<div class="bottom-tip">统计单位:元</div>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12" class="chart-card">
|
|
<el-col :span="12" class="chart-card">
|
|
<div style="font-weight: bold;">
|
|
<div style="font-weight: bold;">
|
|
- <div ref="myEchart3" style="height: 288px;" class="roseChart" @click="contract(0)"></div>
|
|
|
|
|
|
+ <div ref="myEchart3" style="height: 288px;" class="roseChart"></div>
|
|
<div class="bottom-tip">统计单位:元</div>
|
|
<div class="bottom-tip">统计单位:元</div>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -375,7 +375,7 @@
|
|
} else {
|
|
} else {
|
|
alert('当前浏览器不支持websocket')
|
|
alert('当前浏览器不支持websocket')
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
let that = this
|
|
let that = this
|
|
this.getChartsData()
|
|
this.getChartsData()
|
|
// this.timer = setInterval(function(){
|
|
// this.timer = setInterval(function(){
|
|
@@ -398,7 +398,7 @@
|
|
compId:localStorage.getItem('ws-pf_compId'),
|
|
compId:localStorage.getItem('ws-pf_compId'),
|
|
seachMoth:'2021'
|
|
seachMoth:'2021'
|
|
}).toPromise().then(res => {
|
|
}).toPromise().then(res => {
|
|
- console.log(res)
|
|
|
|
|
|
+ console.log('··············',res)
|
|
this.chartsData = res
|
|
this.chartsData = res
|
|
this.carCount1 = res[6].biViewInfoList[0].count
|
|
this.carCount1 = res[6].biViewInfoList[0].count
|
|
this.carCount2 = res[6].biViewInfoList[1].count
|
|
this.carCount2 = res[6].biViewInfoList[1].count
|
|
@@ -551,11 +551,11 @@
|
|
// 圆环图各环节的名称和值(系列中各数据项的名称和值)
|
|
// 圆环图各环节的名称和值(系列中各数据项的名称和值)
|
|
data = [{
|
|
data = [{
|
|
name: '已完成量',
|
|
name: '已完成量',
|
|
- value: this.chartsData[i].biViewInfoList[0].count,
|
|
|
|
|
|
+ value:Number(this.chartsData[i].biViewInfoList[0].count).toFixed(2) ,
|
|
type:'采购合同'
|
|
type:'采购合同'
|
|
}, {
|
|
}, {
|
|
name: '待完成量',
|
|
name: '待完成量',
|
|
- value: this.chartsData[i].biViewInfoList[1].count,
|
|
|
|
|
|
+ value:Number(this.chartsData[i].biViewInfoList[1].count).toFixed(2) ,
|
|
type:'采购合同'
|
|
type:'采购合同'
|
|
}]
|
|
}]
|
|
text = '合同总量'
|
|
text = '合同总量'
|
|
@@ -569,11 +569,11 @@
|
|
// 圆环图各环节的名称和值(系列中各数据项的名称和值)
|
|
// 圆环图各环节的名称和值(系列中各数据项的名称和值)
|
|
data = [{
|
|
data = [{
|
|
name: '已开票',
|
|
name: '已开票',
|
|
- value: this.chartsData[i].biViewInfoList[0].count,
|
|
|
|
|
|
+ value:Number(this.chartsData[i].biViewInfoList[0].count).toFixed(2),
|
|
type:'采购合同'
|
|
type:'采购合同'
|
|
}, {
|
|
}, {
|
|
name: '待开票',
|
|
name: '待开票',
|
|
- value: this.chartsData[i].biViewInfoList[1].count,
|
|
|
|
|
|
+ value:Number(this.chartsData[i].biViewInfoList[1].count).toFixed(2),
|
|
type:'采购合同'
|
|
type:'采购合同'
|
|
}]
|
|
}]
|
|
text = '合同总额'
|
|
text = '合同总额'
|
|
@@ -586,11 +586,11 @@
|
|
// 圆环图各环节的名称和值(系列中各数据项的名称和值)
|
|
// 圆环图各环节的名称和值(系列中各数据项的名称和值)
|
|
data = [{
|
|
data = [{
|
|
name: '已付款',
|
|
name: '已付款',
|
|
- value: this.chartsData[i].biViewInfoList[0].count,
|
|
|
|
|
|
+ value: Number(this.chartsData[i].biViewInfoList[0].count).toFixed(2),
|
|
type: '采购合同'
|
|
type: '采购合同'
|
|
}, {
|
|
}, {
|
|
name: '待付款',
|
|
name: '待付款',
|
|
- value: this.chartsData[i].biViewInfoList[1].count,
|
|
|
|
|
|
+ value:Number(this.chartsData[i].biViewInfoList[1].count).toFixed(2),
|
|
type: '采购合同'
|
|
type: '采购合同'
|
|
}]
|
|
}]
|
|
text = '合同总额'
|
|
text = '合同总额'
|
|
@@ -603,11 +603,11 @@
|
|
// 圆环图各环节的名称和值(系列中各数据项的名称和值)
|
|
// 圆环图各环节的名称和值(系列中各数据项的名称和值)
|
|
data = [{
|
|
data = [{
|
|
name: '已完成量',
|
|
name: '已完成量',
|
|
- value: this.chartsData[i].biViewInfoList[0].count,
|
|
|
|
|
|
+ value: Number(this.chartsData[i].biViewInfoList[0].count).toFixed(2),
|
|
type: '销售合同'
|
|
type: '销售合同'
|
|
}, {
|
|
}, {
|
|
name: '待完成量',
|
|
name: '待完成量',
|
|
- value: this.chartsData[i].biViewInfoList[1].count
|
|
|
|
|
|
+ value:Number(this.chartsData[i].biViewInfoList[1].count).toFixed(2),
|
|
}]
|
|
}]
|
|
text = '合同总量'
|
|
text = '合同总量'
|
|
formatter = '{b}{c}吨 </br> 占比{d}%'
|
|
formatter = '{b}{c}吨 </br> 占比{d}%'
|
|
@@ -619,10 +619,10 @@
|
|
// 圆环图各环节的名称和值(系列中各数据项的名称和值)
|
|
// 圆环图各环节的名称和值(系列中各数据项的名称和值)
|
|
data = [{
|
|
data = [{
|
|
name: '已开票',
|
|
name: '已开票',
|
|
- value: this.chartsData[i].biViewInfoList[0].count
|
|
|
|
|
|
+ value: Number(this.chartsData[i].biViewInfoList[0].count).toFixed(2),
|
|
}, {
|
|
}, {
|
|
name: '待开票',
|
|
name: '待开票',
|
|
- value: this.chartsData[i].biViewInfoList[1].count
|
|
|
|
|
|
+ value: Number(this.chartsData[i].biViewInfoList[1].count).toFixed(2),
|
|
}]
|
|
}]
|
|
text = '合同总额'
|
|
text = '合同总额'
|
|
formatter = '{b}{c}元 </br> 占比{d}%'
|
|
formatter = '{b}{c}元 </br> 占比{d}%'
|
|
@@ -634,10 +634,10 @@
|
|
// 圆环图各环节的名称和值(系列中各数据项的名称和值)
|
|
// 圆环图各环节的名称和值(系列中各数据项的名称和值)
|
|
data = [{
|
|
data = [{
|
|
name: '已付款',
|
|
name: '已付款',
|
|
- value: this.chartsData[i].biViewInfoList[0].count
|
|
|
|
|
|
+ value: Number(this.chartsData[i].biViewInfoList[0].count).toFixed(2),
|
|
}, {
|
|
}, {
|
|
name: '待付款',
|
|
name: '待付款',
|
|
- value: this.chartsData[i].biViewInfoList[1].count
|
|
|
|
|
|
+ value: Number(this.chartsData[i].biViewInfoList[1].count).toFixed(2),
|
|
}]
|
|
}]
|
|
text = '合同总额'
|
|
text = '合同总额'
|
|
formatter = '{b}{c}元 </br> 占比{d}%'
|
|
formatter = '{b}{c}元 </br> 占比{d}%'
|
|
@@ -1892,7 +1892,7 @@
|
|
.content2-middle {
|
|
.content2-middle {
|
|
width: calc(100% - 720px);
|
|
width: calc(100% - 720px);
|
|
margin: 0 20px 0 15px;
|
|
margin: 0 20px 0 15px;
|
|
-
|
|
|
|
|
|
+ min-width:910px ;
|
|
.left-card {
|
|
.left-card {
|
|
display: flex;
|
|
display: flex;
|
|
// background: green;
|
|
// background: green;
|