|
@ -124,7 +124,7 @@ |
|
|
<template #ready> |
|
|
<template #ready> |
|
|
<div class="content"> |
|
|
<div class="content"> |
|
|
<div class="title">资源动态时间轴</div> |
|
|
<div class="title">资源动态时间轴</div> |
|
|
<search v-model="roomId" v-model:date="date" @reSet="reSet"/> |
|
|
<search v-model="roomId" v-model:date="date" @reSet="reSet" v-model:type="type"/> |
|
|
<div class="time"/> |
|
|
<div class="time"/> |
|
|
<div class="info"> |
|
|
<div class="info"> |
|
|
<div class="title">房间人员信息</div> |
|
|
<div class="title">房间人员信息</div> |
|
@ -132,8 +132,8 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="result"> |
|
|
<div class="result"> |
|
|
<div class="title">本次查询结果</div> |
|
|
<div class="title">本次查询结果</div> |
|
|
<span class="amount" data-title="当前欠款(元)" @click="toPage('http://192.168.100.204:37799/webroot/decision/link/AdDS')">{{data?.chargeAmount||0}}</span> |
|
|
<span class="amount" data-title="当前欠款(元)" @click="data?.chargeAmount>0&&outData('0')">{{data?.chargeAmount||0}}</span> |
|
|
<span class="num" data-title="工单统计(条)" @click="toPage('http://192.168.100.204:37799/webroot/decision/link/JhhE')">{{data?.workOrderCount||0}}</span> |
|
|
<span class="num" data-title="工单统计(条)" @click="data?.workOrderCount>0&&outData('1')">{{data?.workOrderCount||0}}</span> |
|
|
</div> |
|
|
</div> |
|
|
<v-echarts :option="option" autoresize ref="echart" @mousedown="mouseDown=true" @mouseup="mouseDown=false"/> |
|
|
<v-echarts :option="option" autoresize ref="echart" @mousedown="mouseDown=true" @mouseup="mouseDown=false"/> |
|
|
</div> |
|
|
</div> |
|
@ -144,11 +144,13 @@ |
|
|
import request from '@/config/request' |
|
|
import request from '@/config/request' |
|
|
import { computed, inject, onMounted, onUnmounted, reactive, ref, shallowRef, watch } from 'vue' |
|
|
import { computed, inject, onMounted, onUnmounted, reactive, ref, shallowRef, watch } from 'vue' |
|
|
import search from './search.vue' |
|
|
import search from './search.vue' |
|
|
|
|
|
import {downFile} from '@/config/unit' |
|
|
|
|
|
|
|
|
var msg=inject("msg") |
|
|
var msg=inject("msg") |
|
|
|
|
|
|
|
|
var roomId=ref('')//1603212861432179257 |
|
|
var roomId=ref('') |
|
|
var date=ref(null) |
|
|
var date=ref(null) |
|
|
|
|
|
var type=ref("") |
|
|
|
|
|
|
|
|
var scrollBoard=ref() |
|
|
var scrollBoard=ref() |
|
|
var config=reactive({ |
|
|
var config=reactive({ |
|
@ -160,8 +162,13 @@ import search from './search.vue' |
|
|
evenRowBGC:"transpatent", |
|
|
evenRowBGC:"transpatent", |
|
|
}) |
|
|
}) |
|
|
var data=shallowRef({}) |
|
|
var data=shallowRef({}) |
|
|
var upData=computed(()=>data.value?.timeInfo?.filter?.((v,k)=>k%2==1)||[]) |
|
|
var list=computed(()=>{ |
|
|
var downData=computed(()=>data.value?.timeInfo?.filter?.((v,k)=>k%2==0)||[]) |
|
|
var arr=data.value?.timeInfo?.filter?.(v=>!type.value||v.type==type.value)||[] |
|
|
|
|
|
if(arr.length%2==1)return arr.concat({type:"none"}) |
|
|
|
|
|
else return arr |
|
|
|
|
|
}) |
|
|
|
|
|
var upData=computed(()=>list.value.filter((v,k)=>k%2==1)) |
|
|
|
|
|
var downData=computed(()=>list.value.filter((v,k)=>k%2==0)) |
|
|
|
|
|
|
|
|
function color(status){ |
|
|
function color(status){ |
|
|
if(/已收款/.test(status))return "#1CF162" |
|
|
if(/已收款/.test(status))return "#1CF162" |
|
@ -175,7 +182,7 @@ import search from './search.vue' |
|
|
type:"inside", |
|
|
type:"inside", |
|
|
startValue:0, |
|
|
startValue:0, |
|
|
endValue: max.value, |
|
|
endValue: max.value, |
|
|
xAxisIndex: data.value?.timeInfo?.length>12?[0,1]:[], |
|
|
xAxisIndex: list.value.length>12?[0,1]:[], |
|
|
zoomOnMouseWheel:false, |
|
|
zoomOnMouseWheel:false, |
|
|
moveOnMouseMove:true, |
|
|
moveOnMouseMove:true, |
|
|
moveOnMouseWheel:true, |
|
|
moveOnMouseWheel:true, |
|
@ -203,7 +210,7 @@ import search from './search.vue' |
|
|
axisLine:{show:false}, |
|
|
axisLine:{show:false}, |
|
|
axisTick:{show:false}, |
|
|
axisTick:{show:false}, |
|
|
axisLabel:{show:false}, |
|
|
axisLabel:{show:false}, |
|
|
max: data.value?.timeInfo?.length>12?null:5, |
|
|
max: upData.value?.length>6?null:5, |
|
|
data: upData.value.map(v=>'') |
|
|
data: upData.value.map(v=>'') |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -212,7 +219,7 @@ import search from './search.vue' |
|
|
axisLine:{show:false}, |
|
|
axisLine:{show:false}, |
|
|
axisTick:{show:false}, |
|
|
axisTick:{show:false}, |
|
|
axisLabel:{show:false}, |
|
|
axisLabel:{show:false}, |
|
|
max: data.value?.timeInfo?.length>12?null:5, |
|
|
max: downData.value?.length>6?null:5, |
|
|
data: downData.value.map(v=>'') |
|
|
data: downData.value.map(v=>'') |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
@ -378,9 +385,6 @@ import search from './search.vue' |
|
|
}) |
|
|
}) |
|
|
if(res.statu){ |
|
|
if(res.statu){ |
|
|
data.value=res.data |
|
|
data.value=res.data |
|
|
if(data.value.timeInfo.length%2==1){ |
|
|
|
|
|
data.value.timeInfo.push({type:"none"}) |
|
|
|
|
|
} |
|
|
|
|
|
}else{ |
|
|
}else{ |
|
|
msg.error(res.msg||"获取费用工单失败!") |
|
|
msg.error(res.msg||"获取费用工单失败!") |
|
|
} |
|
|
} |
|
@ -390,8 +394,21 @@ import search from './search.vue' |
|
|
}) |
|
|
}) |
|
|
var echart=ref() |
|
|
var echart=ref() |
|
|
|
|
|
|
|
|
function toPage(url){ |
|
|
async function outData(fileType){ |
|
|
window.open(url) |
|
|
var res=await request("/fileOutPut",{ |
|
|
|
|
|
responseType:"blob", |
|
|
|
|
|
params:{ |
|
|
|
|
|
roomId: roomId.value, |
|
|
|
|
|
startData: date.value?.[0]?.format?.('yyyy-MM-dd'), |
|
|
|
|
|
endDate: date.value?.[1]?.format?.('yyyy-MM-dd'), |
|
|
|
|
|
fileType, |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
if(res.status==200){ |
|
|
|
|
|
downFile(res.data,'excel', '当前欠费.xls') |
|
|
|
|
|
}else{ |
|
|
|
|
|
msg.error(res.msg||"导出数据失败!") |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
onMounted(()=>{ |
|
|
onMounted(()=>{ |
|
|