Commit 1209dc0c authored by 高滢's avatar 高滢

Merge remote-tracking branch 'origin/master'

parents 05eafbb9 7b7ce6d6
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<div class="bottomText"> <div class="bottomText">
<img src="../../../assets/data_statistics/ruzhuyiyuan_icon_shouquanyiyuan@2x.png" height="24" width="24"> <img src="../../../assets/data_statistics/ruzhuyiyuan_icon_shouquanyiyuan@2x.png" height="24" width="24">
<div class="bottom_font"> <div class="bottom_font">
当前长期授权医院数 当前长期授权医院数
</div> </div>
</div> </div>
</div> </div>
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
<span>{{ scope.$index + 1 }}</span> <span>{{ scope.$index + 1 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column sortable label="医院名称" align="left" prop="hospitalName" min-width="120" show-overflow-tooltip /> <el-table-column sortable label="医院名称" align="left" prop="hospitalName" min-width="100" show-overflow-tooltip />
<el-table-column sortable label="医院ID" align="left" prop="ownId" min-width="120" show-overflow-tooltip> <el-table-column sortable label="医院ID" align="left" prop="ownId" min-width="120" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.ownId || '-' }}</span> <span>{{ scope.row.ownId || '-' }}</span>
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column sortable label="联系人" align="left" min-width="60" prop="contactPerson" show-overflow-tooltip /> <el-table-column sortable label="联系人" align="left" min-width="60" prop="contactPerson" show-overflow-tooltip />
<el-table-column sortable label="联系人手机号" align="left" min-width="80" prop="phonenumber" /> <el-table-column sortable label="联系人手机号" align="left" min-width="100" prop="phonenumber" />
<el-table-column sortable label="医院地址" align="left" min-width="120" prop="hospitalAllAddress" show-overflow-tooltip> <el-table-column sortable label="医院地址" align="left" min-width="120" prop="hospitalAllAddress" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.hospitalAllAddress }}</span> <span>{{ scope.row.hospitalAllAddress }}</span>
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
<span>{{ parseTime(scope.row.createTime, '{y}/{m}/{d}') }}</span> <span>{{ parseTime(scope.row.createTime, '{y}/{m}/{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column sortable label="授权到期日期" align="left" min-width="120" prop="authorizationExpirationDate"> <el-table-column sortable label="授权到期日期" align="left" min-width="90" prop="authorizationExpirationDate">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="getHospitalExpireDays(showDueDate(scope.row.authorizationExpirationDate)) >= 30">{{ showDueDate(scope.row.authorizationExpirationDate) || '-' }}</span> <span v-if="getHospitalExpireDays(showDueDate(scope.row.authorizationExpirationDate)) >= 30">{{ showDueDate(scope.row.authorizationExpirationDate) || '-' }}</span>
<span v-else style="color: #FF9D4E">{{ showDueDate(scope.row.authorizationExpirationDate) || '-' }}</span> <span v-else style="color: #FF9D4E">{{ showDueDate(scope.row.authorizationExpirationDate) || '-' }}</span>
...@@ -341,7 +341,6 @@ import ColumnarChart from '@/views/data-statistics/echars-components/columnarCha ...@@ -341,7 +341,6 @@ import ColumnarChart from '@/views/data-statistics/echars-components/columnarCha
import RadarChartForHospital from '@/views/data-statistics/echars-components/radar-chart-for-hospital.vue' import RadarChartForHospital from '@/views/data-statistics/echars-components/radar-chart-for-hospital.vue'
import { getHospitalStatistics, listHospital } from '@/api/business/statistics' import { getHospitalStatistics, listHospital } from '@/api/business/statistics'
import { parseTime } from '@/utils/ruoyi' import { parseTime } from '@/utils/ruoyi'
import { testMsg } from '@/api/business/test'
import EmptyTool from '@/views/data-statistics/other-components/emptyTool.vue' import EmptyTool from '@/views/data-statistics/other-components/emptyTool.vue'
import { moneyFormat } from '@/utils' import { moneyFormat } from '@/utils'
...@@ -408,12 +407,13 @@ export default { ...@@ -408,12 +407,13 @@ export default {
}, },
methods: { methods: {
moneyFormat, moneyFormat,
justTest() { getMonthEmptyArray() {
testMsg().then(res => { const month = new Date().getMonth()
if (res) { const monthArray = []
console.log('测试结果', res) for (let i = 1; i <= month; i++) {
} monthArray.push(0)
}) }
return monthArray
}, },
parseTime, parseTime,
getStatistics() { getStatistics() {
...@@ -422,8 +422,8 @@ export default { ...@@ -422,8 +422,8 @@ export default {
console.log('dataRes', res) console.log('dataRes', res)
this.hospitalInfoStatistics = res.data.hospitalInfoStatistics this.hospitalInfoStatistics = res.data.hospitalInfoStatistics
this.hospitalPercentInfo = res.data.hospitalPercentInfo this.hospitalPercentInfo = res.data.hospitalPercentInfo
this.yData1.data = res.data.prestoredUndulateDTO.newPrestored this.yData1.data = res.data.prestoredUndulateDTO.newPrestored.length > 0 ? res.data.prestoredUndulateDTO.newPrestored : this.getMonthEmptyArray()
this.yData2.data = res.data.prestoredUndulateDTO.balanceArray this.yData2.data = res.data.prestoredUndulateDTO.balanceArray.length > 0 ? res.data.prestoredUndulateDTO.balanceArray : this.getMonthEmptyArray()
this.mapData = res.data.chinaMapDistributionList this.mapData = res.data.chinaMapDistributionList
this.hospitalPrestoredRank = res.data.prestoredRankList this.hospitalPrestoredRank = res.data.prestoredRankList
this.hospitalTimeRank = res.data.enterTimeRankList this.hospitalTimeRank = res.data.enterTimeRankList
...@@ -507,11 +507,8 @@ export default { ...@@ -507,11 +507,8 @@ export default {
}, },
/** 医院详情按钮操作 */ /** 医院详情按钮操作 */
handleDetail(row) { handleDetail(row) {
// console.log('详情', row)
// const authorizationExpirationDate = this.addDays(row.createTime, row.dueDate)
// row.authorizationExpirationDate = authorizationExpirationDate
const local = process.env.VUE_APP_WEB const local = process.env.VUE_APP_WEB
window.location.href = `${local}/hospital-management/hospital-details?detail=${row}` window.location.href = `${local}/hospital-management/hospital-details?detail=${row}&from='plat'`
localStorage.setItem('hospitalDetail', JSON.stringify(row)) localStorage.setItem('hospitalDetail', JSON.stringify(row))
}, },
handleSortChange(column) { handleSortChange(column) {
...@@ -614,13 +611,15 @@ export default { ...@@ -614,13 +611,15 @@ export default {
padding-top: 15px; padding-top: 15px;
display: flex; display: flex;
.bottom_font { .bottom_font {
//line-height: 24px;
font-size: 12px; font-size: 12px;
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
font-weight: 400; font-weight: 400;
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
...@@ -655,6 +654,9 @@ export default { ...@@ -655,6 +654,9 @@ export default {
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
...@@ -689,6 +691,9 @@ export default { ...@@ -689,6 +691,9 @@ export default {
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
...@@ -723,6 +728,9 @@ export default { ...@@ -723,6 +728,9 @@ export default {
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
......
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
<el-table-column sortable label="宠主ID" min-width="140" show-overflow-tooltip prop="ruleId" /> <el-table-column sortable label="宠主ID" min-width="140" show-overflow-tooltip prop="ruleId" />
<el-table-column sortable label="手机号" min-width="80" show-overflow-tooltip prop="phone" /> <el-table-column sortable label="手机号" min-width="80" show-overflow-tooltip prop="phone" />
<el-table-column sortable label="注册日期" min-width="80" show-overflow-tooltip prop="registrationDate" /> <el-table-column sortable label="注册日期" min-width="80" show-overflow-tooltip prop="registrationDate" />
<el-table-column sortable label="绑定医院数量" min-width="80" show-overflow-tooltip prop="hosNum"> <el-table-column sortable label="绑定医院数量" min-width="85" show-overflow-tooltip prop="hosNum">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.hosNum + ' 家' }} {{ scope.row.hosNum + ' 家' }}
</template> </template>
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
{{ scope.row.cardNum + ' 张' }} {{ scope.row.cardNum + ' 张' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column sortable label="绑定宠物数量" min-width="80" show-overflow-tooltip prop="petNum"> <el-table-column sortable label="绑定宠物数量" min-width="85" show-overflow-tooltip prop="petNum">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.petNum + ' 只' }} {{ scope.row.petNum + ' 只' }}
</template> </template>
...@@ -649,7 +649,7 @@ export default { ...@@ -649,7 +649,7 @@ export default {
fixNum: 0 fixNum: 0
}, },
yData2: { yData2: {
label: '活跃用户量', label: '活跃宠主量',
data: [], data: [],
line_color: '#5FB54B', line_color: '#5FB54B',
area_color: 'rgba(95,181,75,0.3)', area_color: 'rgba(95,181,75,0.3)',
...@@ -720,7 +720,7 @@ export default { ...@@ -720,7 +720,7 @@ export default {
startColor: '#7C39D2', startColor: '#7C39D2',
endColor: '#5266EA' endColor: '#5266EA'
}, },
cross_x_data: ['1只', '2只', '3~4只', '4~5只', '6只以上'], cross_x_data: ['1只', '2只', '3~4只', '5~6只', '6只以上'],
vip_analyze_y1_data: { vip_analyze_y1_data: {
name: '会员等级', name: '会员等级',
data: [], data: [],
...@@ -937,6 +937,9 @@ export default { ...@@ -937,6 +937,9 @@ export default {
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
...@@ -971,6 +974,9 @@ export default { ...@@ -971,6 +974,9 @@ export default {
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
...@@ -1005,6 +1011,9 @@ export default { ...@@ -1005,6 +1011,9 @@ export default {
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
...@@ -1039,6 +1048,9 @@ export default { ...@@ -1039,6 +1048,9 @@ export default {
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
...@@ -1073,6 +1085,9 @@ export default { ...@@ -1073,6 +1085,9 @@ export default {
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
......
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column sortable label="操作医院" show-overflow-tooltip prop="hospitalName" /> <el-table-column sortable label="操作医院" show-overflow-tooltip prop="hospitalName" />
<el-table-column sortable label="提交时间" show-overflow-tooltip prop="appointTime"> <el-table-column sortable label="提交时间" min-width="100" show-overflow-tooltip prop="appointTime">
<template slot-scope="scope"> <template slot-scope="scope">
{{ parseTime(scope.row.appointTime, '{y}/{m}/{d} {h}:{i}') }} {{ parseTime(scope.row.appointTime, '{y}/{m}/{d} {h}:{i}') }}
</template> </template>
...@@ -259,11 +259,11 @@ ...@@ -259,11 +259,11 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span <span
v-if="scope.row.checkSchedule >= 3" v-if="scope.row.checkSchedule >= 3"
style="font-size: 12px;font-family: Microsoft YaHei;ont-weight: 400;color: #5FB54B;" style="color: #5FB54B;"
> 已完成</span> > 已完成</span>
<span <span
v-else v-else
style="font-size: 12px;font-family: Microsoft YaHei;font-weight: 400;color: #FF9D4E;" style="color: #FF9D4E;"
> 待检查</span> > 待检查</span>
<!-- 过期--> <!-- 过期-->
</template> </template>
...@@ -637,7 +637,7 @@ ...@@ -637,7 +637,7 @@
</el-table-column> </el-table-column>
<el-table-column label="检查项目" min-width="120px" show-overflow-tooltip prop="itemName" /> <el-table-column label="检查项目" min-width="120px" show-overflow-tooltip prop="itemName" />
<el-table-column label="服务次数" show-overflow-tooltip prop="number" /> <el-table-column label="服务次数" show-overflow-tooltip prop="number" />
<el-table-column label="总服务金额(元)" show-overflow-tooltip prop="money"> <el-table-column label="总服务金额(元)" min-width="90px" show-overflow-tooltip prop="money">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.money.toFixed(2) }}</span> <span>{{ scope.row.money.toFixed(2) }}</span>
</template> </template>
...@@ -666,7 +666,7 @@ ...@@ -666,7 +666,7 @@
</el-table-column> </el-table-column>
<el-table-column label="治疗项目" min-width="120px" show-overflow-tooltip prop="itemName" /> <el-table-column label="治疗项目" min-width="120px" show-overflow-tooltip prop="itemName" />
<el-table-column label="服务次数" show-overflow-tooltip prop="number" /> <el-table-column label="服务次数" show-overflow-tooltip prop="number" />
<el-table-column label="总销售金额(元)" show-overflow-tooltip prop="money"> <el-table-column label="总销售金额(元)" min-width="90px" show-overflow-tooltip prop="money">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.money.toFixed(2) }}</span> <span>{{ scope.row.money.toFixed(2) }}</span>
</template> </template>
...@@ -1102,6 +1102,9 @@ export default { ...@@ -1102,6 +1102,9 @@ export default {
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
...@@ -1136,6 +1139,9 @@ export default { ...@@ -1136,6 +1139,9 @@ export default {
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
...@@ -1170,6 +1176,9 @@ export default { ...@@ -1170,6 +1176,9 @@ export default {
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
...@@ -1204,6 +1213,9 @@ export default { ...@@ -1204,6 +1213,9 @@ export default {
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
...@@ -1238,6 +1250,9 @@ export default { ...@@ -1238,6 +1250,9 @@ export default {
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
...@@ -1272,6 +1287,9 @@ export default { ...@@ -1272,6 +1287,9 @@ export default {
line-height: 30px; line-height: 30px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
...@@ -1306,6 +1324,9 @@ export default { ...@@ -1306,6 +1324,9 @@ export default {
line-height: 24px; line-height: 24px;
color: #333333; color: #333333;
margin-left: 5px; margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment