报表时间&经营性利润排序等bug
This commit is contained in:
4
.env.dev
4
.env.dev
@@ -12,9 +12,9 @@ VUE_APP_TITLE = 洛玻集团驾驶舱
|
|||||||
# 杨姗姗
|
# 杨姗姗
|
||||||
# VUE_APP_BASE_API = 'http://172.16.20.218:7070'
|
# VUE_APP_BASE_API = 'http://172.16.20.218:7070'
|
||||||
# 小田
|
# 小田
|
||||||
VUE_APP_BASE_API = 'http://172.16.19.232:7070'
|
# VUE_APP_BASE_API = 'http://172.16.19.232:7070'
|
||||||
# 测试
|
# 测试
|
||||||
# VUE_APP_BASE_API = 'http://192.168.0.35:8080'
|
VUE_APP_BASE_API = 'http://192.168.0.35:8080'
|
||||||
|
|
||||||
|
|
||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
'bg-green': item.currentValue >= item.targetValue
|
'bg-green': item.currentValue >= item.targetValue
|
||||||
}" style="font-size: 12px;display: flex;align-items: center;justify-content: flex-end;">
|
}" style="font-size: 12px;display: flex;align-items: center;justify-content: flex-end;">
|
||||||
<div class="title">完成率</div>
|
<div class="title">完成率</div>
|
||||||
<div class="yield" style="font-size: 22px;margin-bottom: 4px;">
|
<div class="yield" style="font-size: 18px;margin-bottom: 4px;">
|
||||||
{{ item.progress }}
|
{{ item.progress }}
|
||||||
</div>
|
</div>
|
||||||
<div class="unit">%</div>
|
<div class="unit">%</div>
|
||||||
@@ -359,12 +359,11 @@ export default {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
margin-top: 10px;
|
margin-top:4px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
margin-right: 8px;
|
|
||||||
color: #000000;
|
color: #000000;
|
||||||
line-height: 12px;
|
line-height: 12px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@@ -372,7 +371,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.unit {
|
.unit {
|
||||||
margin-top: 10px;
|
margin-top: 4px;
|
||||||
margin-right: 14px;
|
margin-right: 14px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
|
|||||||
@@ -149,7 +149,6 @@ export default {
|
|||||||
levelId:1,
|
levelId:1,
|
||||||
// timeDim: this.dateData.mode
|
// timeDim: this.dateData.mode
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log(res);
|
|
||||||
this.monData = res.data.currentMonthData
|
this.monData = res.data.currentMonthData
|
||||||
this.totalData = res.data.totalMonthData
|
this.totalData = res.data.totalMonthData
|
||||||
// this.totalData = res.data.totalData
|
// this.totalData = res.data.totalData
|
||||||
|
|||||||
@@ -121,6 +121,7 @@ export default {
|
|||||||
// 最终传递给图表的排序后数据
|
// 最终传递给图表的排序后数据
|
||||||
chartD() {
|
chartD() {
|
||||||
const data = this.currentDataSource;
|
const data = this.currentDataSource;
|
||||||
|
console.log('charData+++++++++++++++++++++++++++++',data)
|
||||||
const salesData = {
|
const salesData = {
|
||||||
allPlaceNames: this.locations,
|
allPlaceNames: this.locations,
|
||||||
series: [
|
series: [
|
||||||
@@ -143,7 +144,7 @@ export default {
|
|||||||
{ offset: 1, color: 'rgba(40, 138, 255, 0)' }
|
{ offset: 1, color: 'rgba(40, 138, 255, 0)' }
|
||||||
])
|
])
|
||||||
},
|
},
|
||||||
data: data.rate || [],
|
data: data.rates || [],
|
||||||
symbol: 'circle',
|
symbol: 'circle',
|
||||||
symbolSize: 6
|
symbolSize: 6
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -95,7 +95,6 @@ export default {
|
|||||||
meterialName:'',
|
meterialName:'',
|
||||||
materialOptions: [
|
materialOptions: [
|
||||||
{value:'硅砂',label:'硅砂'},
|
{value:'硅砂',label:'硅砂'},
|
||||||
{value:'海砂',label:'海砂'},
|
|
||||||
{value:'纯碱',label:'纯碱'},
|
{value:'纯碱',label:'纯碱'},
|
||||||
{value:'白云石',label:'白云石'},
|
{value:'白云石',label:'白云石'},
|
||||||
{value:'石灰石',label:'石灰石'}
|
{value:'石灰石',label:'石灰石'}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ export default {
|
|||||||
overheadName:'',
|
overheadName:'',
|
||||||
overheadOptions:[
|
overheadOptions:[
|
||||||
{value:'包材',label:'包材'},
|
{value:'包材',label:'包材'},
|
||||||
{value:'备品丶机物料',label:'备品丶机物料'},
|
{value:'备件、机物料',label:'备件、机物料'},
|
||||||
{value:'折旧',label:'折旧'},
|
{value:'折旧',label:'折旧'},
|
||||||
{value:'其他',label:'其他'}
|
{value:'其他',label:'其他'}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export default {
|
|||||||
profitOptions: [
|
profitOptions: [
|
||||||
'原片制造费用成本',
|
'原片制造费用成本',
|
||||||
'包材',
|
'包材',
|
||||||
'备品丶机物料',
|
'备件、机物料',
|
||||||
'折旧',
|
'折旧',
|
||||||
'其他',
|
'其他',
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ export default {
|
|||||||
selectedProfit: '制造费用', // 选中的名称,初始为null
|
selectedProfit: '制造费用', // 选中的名称,初始为null
|
||||||
profitOptions: [
|
profitOptions: [
|
||||||
'制造费用',
|
'制造费用',
|
||||||
'备品丶机物料',
|
'备件、机物料',
|
||||||
'折旧',
|
'折旧',
|
||||||
'其他',
|
'其他',
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<operatingSingleBar :detailData="packagingData"></operatingSingleBar>
|
<operatingSingleBar :detailData="packagingData"></operatingSingleBar>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dashboard right" @click="handleDashboardClick('备品丶机物料')">
|
<div class="dashboard right" @click="handleDashboardClick('备件、机物料')">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
备件、机物料·元/吨
|
备件、机物料·元/吨
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -13,12 +13,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 2. 海砂组件:传递对应筛选数据 -->
|
<!-- 2. 海砂组件:传递对应筛选数据 -->
|
||||||
<div class="dashboard right" @click="handleDashboardClick('海砂', 'SIMFRMCostAnalysis')">
|
<!-- <div class="dashboard right" @click="handleDashboardClick('海砂', 'SIMFRMCostAnalysis')">
|
||||||
<div class="title">海砂·元/㎡</div>
|
<div class="title">海砂·元/㎡</div>
|
||||||
<div class="line">
|
<div class="line">
|
||||||
<operatingSingleBar :detailData="seaSandData"></operatingSingleBar>
|
<operatingSingleBar :detailData="seaSandData"></operatingSingleBar>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
<!-- 3. 纯碱组件:传递对应筛选数据 -->
|
<!-- 3. 纯碱组件:传递对应筛选数据 -->
|
||||||
<div class="dashboard right" @click="handleDashboardClick('纯碱', 'SIMFRMCostAnalysis')">
|
<div class="dashboard right" @click="handleDashboardClick('纯碱', 'SIMFRMCostAnalysis')">
|
||||||
<div class="title">纯碱·元/㎡</div>
|
<div class="title">纯碱·元/㎡</div>
|
||||||
@@ -203,7 +203,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dashboard {
|
.dashboard {
|
||||||
width: 310px;
|
width: 390px;
|
||||||
height: 205px;
|
height: 205px;
|
||||||
background: #F9FCFF;
|
background: #F9FCFF;
|
||||||
padding: 16px 0 0 10px;
|
padding: 16px 0 0 10px;
|
||||||
|
|||||||
@@ -135,9 +135,9 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
let timeArr = []
|
let timeArr = []
|
||||||
if (this.$route.query.startTime && this.$route.query.endTime) {
|
if (this.$route.query.startTime && this.$route.query.endTime) {
|
||||||
timeArr = [moment(Number(this.$route.query.startTime)).format('YYYY-MM'), moment(Number(this.$route.query.endTime)).format('YYYY-MM')]
|
timeArr = [moment(Number(this.$route.query.startTime)).format('YYYY-MM-DD'), moment(Number(this.$route.query.endTime)).format('YYYY-MM-DD')]
|
||||||
}else{
|
}else{
|
||||||
timeArr = [moment().startOf('month').format('YYYY-MM'), moment().endOf('month').format('YYYY-MM')]
|
timeArr = [moment().startOf('month').format('YYYY-MM-DD'), moment().endOf('month').format('YYYY-MM-DD')]
|
||||||
};
|
};
|
||||||
this.$refs.searchBarForm.formInline.timeValMonth = timeArr
|
this.$refs.searchBarForm.formInline.timeValMonth = timeArr
|
||||||
this.listQuery.startTime = moment(timeArr[0]).startOf('day').valueOf();
|
this.listQuery.startTime = moment(timeArr[0]).startOf('day').valueOf();
|
||||||
@@ -195,8 +195,8 @@ export default {
|
|||||||
this.listQuery.pageNo = 1;
|
this.listQuery.pageNo = 1;
|
||||||
this.listQuery.pageSize = 20;
|
this.listQuery.pageSize = 20;
|
||||||
this.listQuery.status = val.status ? val.status : undefined;
|
this.listQuery.status = val.status ? val.status : undefined;
|
||||||
this.listQuery.startTime = moment(val.timeValMonth[0]).startOf('day').valueOf();
|
this.listQuery.startTime = moment(moment(val.timeValMonth[0]).startOf('month').format('YYYY-MM-DD')).startOf('day').valueOf();
|
||||||
this.listQuery.endTime = moment(val.timeValMonth[1]).endOf('day').valueOf();
|
this.listQuery.endTime = moment(moment(val.timeValMonth[1]).endOf('month').format('YYYY-MM-DD')).endOf('day').valueOf();
|
||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case 'search':
|
case 'search':
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
|
|||||||
Reference in New Issue
Block a user