|
@@ -1,43 +1,51 @@
|
1
|
1
|
<template>
|
2
|
|
-<div class="main-contain">
|
3
|
|
- <!-- <div class="position">
|
|
2
|
+ <div class="main-contain">
|
|
3
|
+ <!-- <div class="position">
|
4
|
4
|
<bread-crumb></bread-crumb>
|
5
|
|
- </div> -->
|
6
|
|
- <section class=" app-container app-main-bg">
|
7
|
|
- <div class="home-page">
|
8
|
|
- <div class="search clearfix">
|
9
|
|
- <input type="text" class="search-input" placeholder="病人姓名/透析号" v-model="searchKey" >
|
10
|
|
- <button class="search-button" @click="clickSearch">搜索</button>
|
11
|
|
- </div>
|
12
|
|
- <div class="ui-step clearfix">
|
13
|
|
- <h2 class="ui-step-tit">病人透析治疗流程</h2>
|
14
|
|
- <ul class="ui-step-ul">
|
15
|
|
- <li v-for="(item, index) in steps" :key="index" class="ui-step-done">
|
16
|
|
- <div class="ui-step-number"><i /></div>
|
17
|
|
- <div class="ui-step-title">{{ item.title }}</div>
|
18
|
|
- </li>
|
19
|
|
- </ul>
|
20
|
|
- </div>
|
21
|
|
- <!-- <el-steps :active="5" align-center>
|
|
5
|
+ </div>-->
|
|
6
|
+ <section class="app-container app-main-bg">
|
|
7
|
+ <div class="home-page">
|
|
8
|
+ <div class="search clearfix">
|
|
9
|
+ <input type="text" class="search-input" placeholder="病人姓名/透析号" v-model="searchKey" />
|
|
10
|
+ <button class="search-button" @click="clickSearch">搜索</button>
|
|
11
|
+ </div>
|
|
12
|
+ <div class="ui-step clearfix">
|
|
13
|
+ <h2 class="ui-step-tit">病人透析治疗流程</h2>
|
|
14
|
+ <ul class="ui-step-ul">
|
|
15
|
+ <li v-for="(item, index) in steps" :key="index" class="ui-step-done">
|
|
16
|
+ <div class="ui-step-number">
|
|
17
|
+ <i />
|
|
18
|
+ </div>
|
|
19
|
+ <div class="ui-step-title">{{ item.title }}</div>
|
|
20
|
+ </li>
|
|
21
|
+ </ul>
|
|
22
|
+ </div>
|
|
23
|
+ <!-- <el-steps :active="5" align-center>
|
22
|
24
|
<el-step v-for="(item, index) in steps" :key="index" :title="item.title"></el-step>
|
23
|
|
- </el-steps> -->
|
24
|
|
- <div class="config-process">
|
25
|
|
- <h2 class="title">系统使用配置流程</h2>
|
26
|
|
- <ul class="process">
|
27
|
|
- <router-link v-for="(item, index) in process" tag="li" class="items" :key="index" :to="item.link">
|
28
|
|
- <img :src="item.imgUrl" >
|
|
25
|
+ </el-steps>-->
|
|
26
|
+ <div class="config-process">
|
|
27
|
+ <h2 class="title">系统使用配置流程</h2>
|
|
28
|
+ <ul class="process">
|
|
29
|
+ <router-link
|
|
30
|
+ v-for="(item, index) in process"
|
|
31
|
+ tag="li"
|
|
32
|
+ class="items"
|
|
33
|
+ :key="index"
|
|
34
|
+ :to="item.link"
|
|
35
|
+ >
|
|
36
|
+ <img :src="item.imgUrl" />
|
29
|
37
|
<p class="name">{{ item.name }}</p>
|
30
|
|
- </router-link>
|
31
|
|
- </ul>
|
|
38
|
+ </router-link>
|
|
39
|
+ </ul>
|
|
40
|
+ </div>
|
32
|
41
|
</div>
|
33
|
|
- </div>
|
34
|
|
- <div class="main-r">
|
|
42
|
+ <div class="main-r">
|
35
|
43
|
<div class="res-widget">
|
36
|
44
|
<ul>
|
37
|
45
|
<li class="taocan-title clearfix">
|
38
|
|
- <div class="taocan-h2 ">{{subscibeBan.used}}</div>
|
|
46
|
+ <div class="taocan-h2">{{subscibeBan.used}}</div>
|
39
|
47
|
<div class="bar"></div>
|
40
|
|
- <div class="taocan-h1 ">{{subscibeBan.name}}</div>
|
|
48
|
+ <div class="taocan-h1">{{subscibeBan.name}}</div>
|
41
|
49
|
</li>
|
42
|
50
|
<li class="taocan-item">
|
43
|
51
|
<div class="ng-binding" :title="subscibeBan.desc">{{subscibeBan.desc}}</div>
|
|
@@ -56,18 +64,16 @@
|
56
|
64
|
<div class="taocan-use clearfix" :style="subscibeBan.pce"></div>
|
57
|
65
|
</div>
|
58
|
66
|
<a class="btn clearfix" v-if="subscibeBan.pay_status" href="javascript:0" @click="openPay">立即购买</a>
|
59
|
|
- </li> -->
|
|
67
|
+ </li>-->
|
60
|
68
|
</ul>
|
61
|
69
|
</div>
|
62
|
70
|
|
63
|
71
|
<div class="res-widget" v-if="patientData.length > 0">
|
64
|
|
-
|
65
|
72
|
<ul>
|
66
|
73
|
<li class="taocan-title clearfix">
|
67
|
74
|
<div class="bar"></div>
|
68
|
|
- <div class="taocan-h1 ">传染病检查提醒通知</div>
|
|
75
|
+ <div class="taocan-h1">传染病检查提醒通知</div>
|
69
|
76
|
</li>
|
70
|
|
-
|
71
|
77
|
</ul>
|
72
|
78
|
<el-table
|
73
|
79
|
:data="patientData"
|
|
@@ -75,30 +81,25 @@
|
75
|
81
|
highlight-current-row
|
76
|
82
|
:header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
|
77
|
83
|
>
|
78
|
|
-
|
79
|
84
|
<el-table-column label="姓名" align="center">
|
80
|
|
- <template slot-scope="scope">
|
81
|
|
- {{scope.row.name}}
|
82
|
|
- </template>
|
|
85
|
+ <template slot-scope="scope">{{scope.row.name}}</template>
|
83
|
86
|
</el-table-column>
|
84
|
87
|
|
85
|
|
-
|
86
|
88
|
<el-table-column label="检查日期" align="center">
|
87
|
89
|
<template slot-scope="scope">
|
88
|
|
- <span v-if="dateCompare(scope.row.infectious_next_record_time) == 1">{{ scope.row.infectious_next_record_time | parseTime('{y}-{m}-{d}')}}</span>
|
89
|
|
- <span v-if="dateCompare(scope.row.infectious_next_record_time) == 2" style="color: red">{{ scope.row.infectious_next_record_time | parseTime('{y}-{m}-{d}')}}</span>
|
90
|
|
-
|
|
90
|
+ <span
|
|
91
|
+ v-if="dateCompare(scope.row.infectious_next_record_time) == 1"
|
|
92
|
+ >{{ scope.row.infectious_next_record_time | parseTime('{y}-{m}-{d}')}}</span>
|
|
93
|
+ <span
|
|
94
|
+ v-if="dateCompare(scope.row.infectious_next_record_time) == 2"
|
|
95
|
+ style="color: red"
|
|
96
|
+ >{{ scope.row.infectious_next_record_time | parseTime('{y}-{m}-{d}')}}</span>
|
91
|
97
|
</template>
|
92
|
98
|
</el-table-column>
|
93
|
99
|
|
94
|
100
|
<el-table-column label="操作" align="center">
|
95
|
101
|
<template slot-scope="scope">
|
96
|
|
- <el-button
|
97
|
|
- size="mini"
|
98
|
|
- type="primary"
|
99
|
|
- @click="jump(scope.row.id)"
|
100
|
|
- >查看
|
101
|
|
- </el-button>
|
|
102
|
+ <el-button size="mini" type="primary" @click="jump(scope.row.id)">查看</el-button>
|
102
|
103
|
</template>
|
103
|
104
|
</el-table-column>
|
104
|
105
|
</el-table>
|
|
@@ -108,297 +109,353 @@
|
108
|
109
|
:page-size="5"
|
109
|
110
|
background
|
110
|
111
|
style="margin-top:20px;float: right"
|
111
|
|
- :total="total">
|
112
|
|
- </el-pagination>
|
|
112
|
+ :total="total"
|
|
113
|
+ ></el-pagination>
|
113
|
114
|
</div>
|
114
|
115
|
|
115
|
|
- </div>
|
116
|
|
-
|
117
|
|
-
|
118
|
|
- </section>
|
|
116
|
+ <el-button type="text" @click="dialogVisible = true">点击打开 Dialog</el-button>
|
|
117
|
+
|
|
118
|
+ <el-dialog
|
|
119
|
+ title="病人姓名"
|
|
120
|
+ :visible.sync="dialogVisible"
|
|
121
|
+ width="30%"
|
|
122
|
+ :before-close="handleClose"
|
|
123
|
+ >
|
|
124
|
+ <div class="newLine">
|
|
125
|
+ <span>本次透析日期</span>
|
|
126
|
+ <span>123</span>
|
|
127
|
+ </div>
|
|
128
|
+ <div class="newLine">
|
|
129
|
+ <span>透前体重(kg)</span>
|
|
130
|
+ <span>123</span>
|
|
131
|
+ </div>
|
|
132
|
+ <div class="newLine">
|
|
133
|
+ <span>干体重(kg)</span>
|
|
134
|
+ <span>123</span>
|
|
135
|
+ </div>
|
|
136
|
+ <div class="newLine">
|
|
137
|
+ <span>衣物重(kg)</span>
|
|
138
|
+ <span>123</span>
|
|
139
|
+ </div>
|
|
140
|
+ <div class="newLine">
|
|
141
|
+ <span>体重增加(kg)</span>
|
|
142
|
+ <span>123</span>
|
|
143
|
+ </div>
|
|
144
|
+ <div class="newLine">
|
|
145
|
+ <span>透后体重(kg)</span>
|
|
146
|
+ <span>123</span>
|
|
147
|
+ </div>
|
|
148
|
+ <div class="newLine">
|
|
149
|
+ <span>体重减少(kg)</span>
|
|
150
|
+ <span>123</span>
|
|
151
|
+ </div>
|
|
152
|
+ <div class="newLine">
|
|
153
|
+ <span>上次透后体重(kg)</span>
|
|
154
|
+ <span>123</span>
|
|
155
|
+ </div>
|
|
156
|
+
|
|
157
|
+ <span slot="footer" class="dialog-footer">
|
|
158
|
+ <el-button @click="dialogVisible = false">取 消</el-button>
|
|
159
|
+ <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
|
|
160
|
+ </span>
|
|
161
|
+ </el-dialog>
|
|
162
|
+ </div>
|
|
163
|
+ </section>
|
119
|
164
|
</div>
|
120
|
|
-
|
121
|
165
|
</template>
|
122
|
166
|
<script>
|
123
|
|
-import { GetServerTime } from '@/api/public'
|
124
|
|
-import { GetPatientTotal,GetRemind } from '@/api/patient'
|
125
|
|
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
167
|
+import { GetServerTime } from "@/api/public";
|
|
168
|
+import { GetPatientTotal, GetRemind } from "@/api/patient";
|
|
169
|
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
126
|
170
|
export default {
|
127
|
|
- name: 'Home',
|
|
171
|
+ name: "Home",
|
128
|
172
|
components: {
|
129
|
173
|
BreadCrumb
|
130
|
174
|
},
|
131
|
175
|
data() {
|
132
|
176
|
return {
|
133
|
|
- searchKey: '',
|
|
177
|
+ dialogVisible: false,
|
|
178
|
+
|
|
179
|
+ searchKey: "",
|
134
|
180
|
patientTotal: 0,
|
135
|
|
- patientData:[],
|
|
181
|
+ patientData: [],
|
136
|
182
|
steps: [
|
137
|
|
- { title: '透析处方' },
|
138
|
|
- { title: '接诊评估' },
|
139
|
|
- { title: '透前评估' },
|
140
|
|
- { title: '临时医嘱' },
|
141
|
|
- { title: '双人核对' },
|
142
|
|
- { title: '透析上机' },
|
143
|
|
- { title: '透析监测' },
|
144
|
|
- { title: '透析下机' },
|
145
|
|
- { title: '透后评估' },
|
146
|
|
- { title: '治疗小结' }
|
|
183
|
+ { title: "透析处方" },
|
|
184
|
+ { title: "接诊评估" },
|
|
185
|
+ { title: "透前评估" },
|
|
186
|
+ { title: "临时医嘱" },
|
|
187
|
+ { title: "双人核对" },
|
|
188
|
+ { title: "透析上机" },
|
|
189
|
+ { title: "透析监测" },
|
|
190
|
+ { title: "透析下机" },
|
|
191
|
+ { title: "透后评估" },
|
|
192
|
+ { title: "治疗小结" }
|
147
|
193
|
],
|
148
|
194
|
process: [
|
149
|
195
|
{
|
150
|
|
- imgUrl: require('../../assets/home/equipment.png'),
|
151
|
|
- name: '设备管理',
|
152
|
|
- link: '/device/main'
|
|
196
|
+ imgUrl: require("../../assets/home/equipment.png"),
|
|
197
|
+ name: "设备管理",
|
|
198
|
+ link: "/device/main"
|
153
|
199
|
},
|
154
|
200
|
{
|
155
|
|
- imgUrl: require('../../assets/home/user.png'),
|
156
|
|
- name: '病人管理',
|
157
|
|
- link: '/patients/patients'
|
|
201
|
+ imgUrl: require("../../assets/home/user.png"),
|
|
202
|
+ name: "病人管理",
|
|
203
|
+ link: "/patients/patients"
|
158
|
204
|
},
|
159
|
205
|
// { imgUrl: require('../../assets/home/sick.png'), name: '登记病人', link: '/patients/create' },
|
160
|
206
|
// { imgUrl: require('../../assets/home/prescription.png'), name: '透析处方', link: '/dialysis/paper' },
|
161
|
207
|
{
|
162
|
|
- imgUrl: require('../../assets/home/scheduling.png'),
|
163
|
|
- name: '病人排班',
|
164
|
|
- link: '/workforce/appointment'
|
|
208
|
+ imgUrl: require("../../assets/home/scheduling.png"),
|
|
209
|
+ name: "病人排班",
|
|
210
|
+ link: "/workforce/appointment"
|
165
|
211
|
},
|
166
|
212
|
{
|
167
|
|
- imgUrl: require('../../assets/home/record.png'),
|
168
|
|
- name: '透析记录',
|
169
|
|
- link: '/dialysis/dialysisrecord'
|
|
213
|
+ imgUrl: require("../../assets/home/record.png"),
|
|
214
|
+ name: "透析记录",
|
|
215
|
+ link: "/dialysis/dialysisrecord"
|
170
|
216
|
},
|
171
|
217
|
{
|
172
|
|
- imgUrl: require('../../assets/home/analyze.png'),
|
173
|
|
- name: '透析监控',
|
174
|
|
- link: '/dialysis/watch'
|
|
218
|
+ imgUrl: require("../../assets/home/analyze.png"),
|
|
219
|
+ name: "透析监控",
|
|
220
|
+ link: "/dialysis/watch"
|
175
|
221
|
}
|
176
|
222
|
],
|
177
|
223
|
subscibe: {},
|
178
|
224
|
subscibeBan: {
|
179
|
|
- used: '已使用0天',
|
180
|
|
- name: '免费版本',
|
181
|
|
- desc: '当前为免费版',
|
182
|
|
- detail: '可管理100位(含)以下患者',
|
183
|
|
- leave: '剩余0天',
|
|
225
|
+ used: "已使用0天",
|
|
226
|
+ name: "免费版本",
|
|
227
|
+ desc: "当前为免费版",
|
|
228
|
+ detail: "可管理100位(含)以下患者",
|
|
229
|
+ leave: "剩余0天",
|
184
|
230
|
pay_status: false
|
185
|
231
|
},
|
186
|
232
|
serverTime: 0,
|
187
|
233
|
leftTime: false,
|
188
|
|
- total:0,
|
|
234
|
+ total: 0,
|
189
|
235
|
page: 0,
|
190
|
|
- limit:5,
|
191
|
|
- }
|
|
236
|
+ limit: 5
|
|
237
|
+ };
|
192
|
238
|
},
|
193
|
239
|
methods: {
|
194
|
|
- dateCompare(date){
|
195
|
|
- var date1 = Date.parse(new Date())/1000;
|
196
|
|
- console.log(date)
|
197
|
|
- console.log(date1)
|
198
|
|
- if (date > date1){
|
199
|
|
- return 1
|
200
|
|
- }else{
|
201
|
|
- return 2
|
202
|
|
-
|
203
|
|
- }
|
204
|
|
-
|
205
|
|
-
|
|
240
|
+ dateCompare(date) {
|
|
241
|
+ var date1 = Date.parse(new Date()) / 1000;
|
|
242
|
+ console.log(date);
|
|
243
|
+ console.log(date1);
|
|
244
|
+ if (date > date1) {
|
|
245
|
+ return 1;
|
|
246
|
+ } else {
|
|
247
|
+ return 2;
|
|
248
|
+ }
|
206
|
249
|
},
|
207
|
|
- jump(id){
|
208
|
|
- this.$router.push({ path: "patients/inspection?id="+id});
|
|
250
|
+ jump(id) {
|
|
251
|
+ this.$router.push({ path: "patients/inspection?id=" + id });
|
209
|
252
|
},
|
210
|
|
- handleSizeChange(val) {
|
211
|
|
-
|
212
|
|
- }, handleCurrentChange(val) {
|
213
|
|
- this.page = val
|
214
|
|
- let params = {
|
215
|
|
- page : this.page,
|
216
|
|
- limit: 5,
|
217
|
|
- }
|
218
|
|
- this.GetRemindPatientList(params)
|
|
253
|
+ handleSizeChange(val) {},
|
|
254
|
+ handleCurrentChange(val) {
|
|
255
|
+ this.page = val;
|
|
256
|
+ const params = {
|
|
257
|
+ page: this.page,
|
|
258
|
+ limit: 5
|
|
259
|
+ };
|
|
260
|
+ this.GetRemindPatientList(params);
|
219
|
261
|
},
|
220
|
|
- GetRemindPatientList(params){
|
221
|
|
- GetRemind(params).then(response => {
|
222
|
|
- if (response.data.state == 1) {
|
223
|
|
- this.patientData = response.data.data.patients
|
224
|
|
- this.total = response.data.data.total
|
225
|
|
- } else {
|
226
|
|
- this.$message.error(response.data.msg)
|
227
|
|
- }
|
228
|
|
- }).catch(e => {
|
229
|
|
- })
|
|
262
|
+ GetRemindPatientList(params) {
|
|
263
|
+ GetRemind(params)
|
|
264
|
+ .then(response => {
|
|
265
|
+ if (response.data.state == 1) {
|
|
266
|
+ this.patientData = response.data.data.patients;
|
|
267
|
+ this.total = response.data.data.total;
|
|
268
|
+ } else {
|
|
269
|
+ this.$message.error(response.data.msg);
|
|
270
|
+ }
|
|
271
|
+ })
|
|
272
|
+ .catch(e => {});
|
230
|
273
|
},
|
231
|
274
|
GetPatientTotal() {
|
232
|
|
- GetPatientTotal().then(response => {
|
233
|
|
- if (response.data.state == 1) {
|
234
|
|
- this.patientTotal = response.data.data.total
|
235
|
|
- } else {
|
236
|
|
- this.$message.error(response.data.msg)
|
237
|
|
- }
|
238
|
|
- }).catch(e => {
|
239
|
|
-
|
240
|
|
- })
|
|
275
|
+ GetPatientTotal()
|
|
276
|
+ .then(response => {
|
|
277
|
+ if (response.data.state == 1) {
|
|
278
|
+ this.patientTotal = response.data.data.total;
|
|
279
|
+ } else {
|
|
280
|
+ this.$message.error(response.data.msg);
|
|
281
|
+ }
|
|
282
|
+ })
|
|
283
|
+ .catch(e => {});
|
241
|
284
|
},
|
242
|
285
|
clickSearch() {
|
243
|
286
|
if (this.searchKey.length > 0) {
|
244
|
|
- this.$router.push('/patients/patients?keyword=' + this.searchKey)
|
|
287
|
+ this.$router.push("/patients/patients?keyword=" + this.searchKey);
|
245
|
288
|
} else {
|
246
|
|
- this.$router.push('/patients/patients')
|
|
289
|
+ this.$router.push("/patients/patients");
|
247
|
290
|
}
|
248
|
291
|
},
|
249
|
292
|
openPay() {
|
250
|
|
- this.$router.push('/service/buy')
|
|
293
|
+ this.$router.push("/service/buy");
|
251
|
294
|
},
|
252
|
295
|
GetServerTime() {
|
253
|
|
- GetServerTime().then(response => {
|
254
|
|
- if (response.data.state == 1) {
|
255
|
|
- this.serverTime = response.data.data.timestamp
|
256
|
|
- } else {
|
257
|
|
- this.serverTime = Math.round(new Date().getTime() / 1000)
|
258
|
|
- }
|
259
|
|
- }).catch(() => {
|
260
|
|
- this.serverTime = Math.round(new Date().getTime() / 1000)
|
261
|
|
- })
|
|
296
|
+ GetServerTime()
|
|
297
|
+ .then(response => {
|
|
298
|
+ if (response.data.state == 1) {
|
|
299
|
+ this.serverTime = response.data.data.timestamp;
|
|
300
|
+ } else {
|
|
301
|
+ this.serverTime = Math.round(new Date().getTime() / 1000);
|
|
302
|
+ }
|
|
303
|
+ })
|
|
304
|
+ .catch(() => {
|
|
305
|
+ this.serverTime = Math.round(new Date().getTime() / 1000);
|
|
306
|
+ });
|
262
|
307
|
},
|
263
|
308
|
initSubscibe() {
|
264
|
309
|
// state:1正版(标准),2试用(免费),3其他无效状态,8专业,9(永久免费),标准版和专业版会过期
|
265
|
|
- var used = Math.ceil((this.serverTime - this.subscibe.period_start) / 86400)
|
|
310
|
+ var used = Math.ceil(
|
|
311
|
+ (this.serverTime - this.subscibe.period_start) / 86400
|
|
312
|
+ );
|
266
|
313
|
|
267
|
|
- var leave = ''
|
268
|
|
- var pce = ''
|
|
314
|
+ var leave = "";
|
|
315
|
+ var pce = "";
|
269
|
316
|
|
270
|
|
- var leaveTime = 0
|
|
317
|
+ var leaveTime = 0;
|
271
|
318
|
|
272
|
|
- this.subscibe.state = 2// 强制改为免费版
|
|
319
|
+ this.subscibe.state = 2; // 强制改为免费版
|
273
|
320
|
|
274
|
321
|
switch (this.subscibe.state) {
|
275
|
322
|
case 9:
|
276
|
323
|
this.subscibeBan = {
|
277
|
|
- used: '已使用' + used + '天',
|
278
|
|
- name: '永久版',
|
279
|
|
- desc: '当前为永久免费版本',
|
280
|
|
- detail: '该版本不会过期,并可使用所有功能',
|
281
|
|
- leave: '',
|
|
324
|
+ used: "已使用" + used + "天",
|
|
325
|
+ name: "永久版",
|
|
326
|
+ desc: "当前为永久免费版本",
|
|
327
|
+ detail: "该版本不会过期,并可使用所有功能",
|
|
328
|
+ leave: "",
|
282
|
329
|
pay_status: false,
|
283
|
|
- pce: 'width:100%'
|
284
|
|
- }
|
285
|
|
- break
|
|
330
|
+ pce: "width:100%"
|
|
331
|
+ };
|
|
332
|
+ break;
|
286
|
333
|
case 2:
|
287
|
334
|
// 免费版本不会过期,但有人数限制,免费版,可以管理20位(含)以下患者,当患者数过了20位,系统不能正常使用,达到18位时,要提醒购买,超过60位,要购买专业版
|
288
|
|
- pce = 0
|
|
335
|
+ pce = 0;
|
289
|
336
|
if (this.patientTotal > 200) {
|
290
|
|
- leave = '管理患者数已达' + this.patientTotal + '位,请购买专业版'
|
291
|
|
- pce = 100
|
|
337
|
+ leave = "管理患者数已达" + this.patientTotal + "位,请购买专业版";
|
|
338
|
+ pce = 100;
|
292
|
339
|
} else if (this.patientTotal > 100) {
|
293
|
|
- leave = '管理患者数已达' + this.patientTotal + '位,请购买标准版'
|
294
|
|
- pce = 100
|
|
340
|
+ leave = "管理患者数已达" + this.patientTotal + "位,请购买标准版";
|
|
341
|
+ pce = 100;
|
295
|
342
|
} else if (this.patientTotal >= 90) {
|
296
|
|
- leave = '管理患者数已达' + this.patientTotal + '位,建议购买标准版'
|
297
|
|
- pce = Math.round(this.patientTotal / 100 * 100)
|
|
343
|
+ leave = "管理患者数已达" + this.patientTotal + "位,建议购买标准版";
|
|
344
|
+ pce = Math.round((this.patientTotal / 100) * 100);
|
298
|
345
|
}
|
299
|
|
- pce = 'width:' + pce + '%'
|
|
346
|
+ pce = "width:" + pce + "%";
|
300
|
347
|
this.subscibeBan = {
|
301
|
|
- used: '已使用' + used + '天',
|
302
|
|
- name: '免费版',
|
303
|
|
- desc: '当前为免费版',
|
304
|
|
- detail: '可管理100位(含)以下患者',
|
|
348
|
+ used: "已使用" + used + "天",
|
|
349
|
+ name: "免费版",
|
|
350
|
+ desc: "当前为免费版",
|
|
351
|
+ detail: "可管理100位(含)以下患者",
|
305
|
352
|
leave: leave,
|
306
|
353
|
pay_status: !!leave,
|
307
|
354
|
pce: pce
|
308
|
|
- }
|
309
|
|
- break
|
|
355
|
+ };
|
|
356
|
+ break;
|
310
|
357
|
case 8:
|
311
|
|
- leaveTime = this.subscibe.period_end - this.serverTime
|
312
|
|
- this.leftTime = leaveTime
|
|
358
|
+ leaveTime = this.subscibe.period_end - this.serverTime;
|
|
359
|
+ this.leftTime = leaveTime;
|
313
|
360
|
if (leaveTime < 0) {
|
314
|
|
- leave = '已经过期'
|
315
|
|
- pce = '100'
|
|
361
|
+ leave = "已经过期";
|
|
362
|
+ pce = "100";
|
316
|
363
|
} else {
|
317
|
|
- leave = Math.floor(leaveTime / 86400)
|
318
|
|
- leave = leave > 30 ? '' : '剩余' + leave + '天'
|
319
|
|
- pce = 100 - Math.round(leaveTime / (this.subscibe.period_end - this.subscibe.period_start) * 100)
|
|
364
|
+ leave = Math.floor(leaveTime / 86400);
|
|
365
|
+ leave = leave > 30 ? "" : "剩余" + leave + "天";
|
|
366
|
+ pce =
|
|
367
|
+ 100 -
|
|
368
|
+ Math.round(
|
|
369
|
+ (leaveTime /
|
|
370
|
+ (this.subscibe.period_end - this.subscibe.period_start)) *
|
|
371
|
+ 100
|
|
372
|
+ );
|
320
|
373
|
}
|
321
|
|
- pce = 'width:' + pce + '%'
|
|
374
|
+ pce = "width:" + pce + "%";
|
322
|
375
|
|
323
|
376
|
this.subscibeBan = {
|
324
|
|
- used: '已使用' + used + '天',
|
325
|
|
- name: '专业版',
|
326
|
|
- desc: '当前为专业版',
|
327
|
|
- detail: '不限患者',
|
|
377
|
+ used: "已使用" + used + "天",
|
|
378
|
+ name: "专业版",
|
|
379
|
+ desc: "当前为专业版",
|
|
380
|
+ detail: "不限患者",
|
328
|
381
|
leave: leave,
|
329
|
382
|
pay_status: !!leave,
|
330
|
383
|
pce: pce
|
331
|
|
- }
|
332
|
|
- break
|
|
384
|
+ };
|
|
385
|
+ break;
|
333
|
386
|
case 1:
|
334
|
|
- leaveTime = this.subscibe.period_end - this.serverTime
|
335
|
|
- this.leftTime = leaveTime
|
|
387
|
+ leaveTime = this.subscibe.period_end - this.serverTime;
|
|
388
|
+ this.leftTime = leaveTime;
|
336
|
389
|
if (leaveTime < 0) {
|
337
|
|
- leave = '已经过期'
|
338
|
|
- pce = '100'
|
|
390
|
+ leave = "已经过期";
|
|
391
|
+ pce = "100";
|
339
|
392
|
} else if (this.patientTotal > 200) {
|
340
|
|
- leave = '管理患者数已达' + this.patientTotal + '位,请购买专业版'
|
341
|
|
- pce = 'width:100%'
|
|
393
|
+ leave = "管理患者数已达" + this.patientTotal + "位,请购买专业版";
|
|
394
|
+ pce = "width:100%";
|
342
|
395
|
} else if (this.patientTotal >= 190) {
|
343
|
|
- leave = '管理患者数已达' + this.patientTotal + '位,建议购买专业版'
|
344
|
|
- pce = Math.round(this.patientTotal / 200 * 100)
|
|
396
|
+ leave = "管理患者数已达" + this.patientTotal + "位,建议购买专业版";
|
|
397
|
+ pce = Math.round((this.patientTotal / 200) * 100);
|
345
|
398
|
} else {
|
346
|
|
- leave = Math.floor(leaveTime / 86400)
|
347
|
|
- leave = leave > 30 ? '' : '剩余' + leave + '天,建议购买标准版'
|
348
|
|
- pce = 100 - Math.round(leaveTime / (this.subscibe.period_end - this.subscibe.period_start) * 100)
|
|
399
|
+ leave = Math.floor(leaveTime / 86400);
|
|
400
|
+ leave = leave > 30 ? "" : "剩余" + leave + "天,建议购买标准版";
|
|
401
|
+ pce =
|
|
402
|
+ 100 -
|
|
403
|
+ Math.round(
|
|
404
|
+ (leaveTime /
|
|
405
|
+ (this.subscibe.period_end - this.subscibe.period_start)) *
|
|
406
|
+ 100
|
|
407
|
+ );
|
349
|
408
|
}
|
350
|
|
- pce = 'width:' + pce + '%'
|
|
409
|
+ pce = "width:" + pce + "%";
|
351
|
410
|
|
352
|
411
|
this.subscibeBan = {
|
353
|
|
- used: '已使用' + used + '天',
|
354
|
|
- name: '标准版',
|
355
|
|
- desc: '当前为标准版',
|
356
|
|
- detail: '可管理200位(含)以下患者',
|
|
412
|
+ used: "已使用" + used + "天",
|
|
413
|
+ name: "标准版",
|
|
414
|
+ desc: "当前为标准版",
|
|
415
|
+ detail: "可管理200位(含)以下患者",
|
357
|
416
|
leave: leave,
|
358
|
417
|
pay_status: !!leave,
|
359
|
418
|
pce: pce
|
360
|
|
- }
|
361
|
|
- break
|
|
419
|
+ };
|
|
420
|
+ break;
|
362
|
421
|
|
363
|
422
|
default:
|
364
|
423
|
this.subscibeBan = {
|
365
|
|
- used: '',
|
366
|
|
- name: '未订阅服务',
|
367
|
|
- desc: '当前未订阅服务',
|
368
|
|
- detail: '无法使用血透系统',
|
369
|
|
- leave: '',
|
|
424
|
+ used: "",
|
|
425
|
+ name: "未订阅服务",
|
|
426
|
+ desc: "当前未订阅服务",
|
|
427
|
+ detail: "无法使用血透系统",
|
|
428
|
+ leave: "",
|
370
|
429
|
pay_status: true,
|
371
|
|
- pce: ''
|
372
|
|
- }
|
373
|
|
- break
|
|
430
|
+ pce: ""
|
|
431
|
+ };
|
|
432
|
+ break;
|
374
|
433
|
}
|
375
|
434
|
}
|
376
|
|
-
|
377
|
435
|
},
|
378
|
436
|
created() {
|
379
|
|
- this.subscibe = this.$store.getters.xt_user.subscibe
|
380
|
|
- this.GetPatientTotal()
|
381
|
|
- this.GetServerTime()
|
382
|
|
- let params = {
|
383
|
|
- page : this.page+1,
|
384
|
|
- limit: this.limit,
|
385
|
|
- }
|
386
|
|
- this.GetRemindPatientList(params)
|
|
437
|
+ this.subscibe = this.$store.getters.xt_user.subscibe;
|
|
438
|
+ this.GetPatientTotal();
|
|
439
|
+ this.GetServerTime();
|
|
440
|
+ const params = {
|
|
441
|
+ page: this.page + 1,
|
|
442
|
+ limit: this.limit
|
|
443
|
+ };
|
|
444
|
+ this.GetRemindPatientList(params);
|
387
|
445
|
},
|
388
|
446
|
watch: {
|
389
|
447
|
serverTime: function() {
|
390
|
448
|
if (this.serverTime > 0 && this.patientTotal > 0) {
|
391
|
|
- this.initSubscibe()
|
|
449
|
+ this.initSubscibe();
|
392
|
450
|
}
|
393
|
451
|
},
|
394
|
452
|
patientTotal: function() {
|
395
|
453
|
if (this.serverTime > 0 && this.patientTotal > 0) {
|
396
|
|
- this.initSubscibe()
|
|
454
|
+ this.initSubscibe();
|
397
|
455
|
}
|
398
|
456
|
}
|
399
|
457
|
}
|
400
|
|
-
|
401
|
|
-}
|
|
458
|
+};
|
402
|
459
|
</script>
|
403
|
460
|
|
404
|
461
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
@@ -410,7 +467,7 @@ export default {
|
410
|
467
|
display: -ms-flexbox;
|
411
|
468
|
display: flex;
|
412
|
469
|
padding: 10px;
|
413
|
|
- margin-top:15px;
|
|
470
|
+ margin-top: 15px;
|
414
|
471
|
.home-page {
|
415
|
472
|
font-family: "Microsoft Yahei";
|
416
|
473
|
-webkit-box-flex: 1;
|
|
@@ -483,7 +540,8 @@ export default {
|
483
|
540
|
left: 0;
|
484
|
541
|
top: 21px;
|
485
|
542
|
display: block;
|
486
|
|
- content: " ";content: " ";
|
|
543
|
+ content: " ";
|
|
544
|
+ content: " ";
|
487
|
545
|
width: 50%;
|
488
|
546
|
height: 1px;
|
489
|
547
|
background: #409eff;
|
|
@@ -566,7 +624,7 @@ export default {
|
566
|
624
|
flex: 1;
|
567
|
625
|
margin: 0 6px;
|
568
|
626
|
background: #fff;
|
569
|
|
- padding: 22px 0 ;
|
|
627
|
+ padding: 22px 0;
|
570
|
628
|
cursor: pointer;
|
571
|
629
|
.name {
|
572
|
630
|
font-size: 14px;
|
|
@@ -581,15 +639,14 @@ export default {
|
581
|
639
|
min-width: 290px;
|
582
|
640
|
margin: 0 0 0 10px;
|
583
|
641
|
.res-widget {
|
584
|
|
-
|
585
|
642
|
min-height: 80px;
|
586
|
643
|
background: #fff;
|
587
|
644
|
padding: 10px 20px;
|
588
|
645
|
margin-bottom: 15px;
|
589
|
646
|
border-radius: 2px;
|
590
|
647
|
// box-shadow: 0 0 4px 0 rgba(200, 200, 200, 0.5);
|
591
|
|
- -webkit-box-shadow: 0 4px 12px rgba(135, 135, 135, 0.15);
|
592
|
|
- box-shadow: 0 4px 12px rgba(135, 135, 135, 0.15);
|
|
648
|
+ -webkit-box-shadow: 0 4px 12px rgba(135, 135, 135, 0.15);
|
|
649
|
+ box-shadow: 0 4px 12px rgba(135, 135, 135, 0.15);
|
593
|
650
|
background-color: #fff;
|
594
|
651
|
color: #34495e;
|
595
|
652
|
font-size: 12px;
|
|
@@ -759,4 +816,11 @@ export default {
|
759
|
816
|
width: 16.66666667%;
|
760
|
817
|
}
|
761
|
818
|
}
|
|
819
|
+.newLine {
|
|
820
|
+ display: flex;
|
|
821
|
+ justify-content: space-between;
|
|
822
|
+ height: 40px;
|
|
823
|
+ line-height: 40px;
|
|
824
|
+ border-bottom: 1px solid #ccc;
|
|
825
|
+}
|
762
|
826
|
</style>
|