Browse Source

统计跳转

zhengchengwu 6 years ago
parent
commit
83a8c6bf52

+ 11 - 12
package-lock.json View File

5216
       }
5216
       }
5217
     },
5217
     },
5218
     "fstream": {
5218
     "fstream": {
5219
-      "version": "1.0.11",
5220
-      "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz",
5221
-      "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=",
5219
+      "version": "1.0.12",
5220
+      "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz",
5221
+      "integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==",
5222
       "dev": true,
5222
       "dev": true,
5223
       "requires": {
5223
       "requires": {
5224
         "graceful-fs": "^4.1.2",
5224
         "graceful-fs": "^4.1.2",
6538
     },
6538
     },
6539
     "js-yaml": {
6539
     "js-yaml": {
6540
       "version": "3.7.0",
6540
       "version": "3.7.0",
6541
-      "resolved": "https://registry.npm.taobao.org/js-yaml/download/js-yaml-3.7.0.tgz",
6542
-      "integrity": "sha1-XJZ93YN6m/3KXy3oQlOr6KHAO4A=",
6541
+      "resolved": "",
6543
       "dev": true,
6542
       "dev": true,
6544
       "requires": {
6543
       "requires": {
6545
         "argparse": "^1.0.7",
6544
         "argparse": "^1.0.7",
12102
       }
12101
       }
12103
     },
12102
     },
12104
     "screenfull": {
12103
     "screenfull": {
12105
-      "version": "3.3.2",
12106
-      "resolved": "https://registry.npmjs.org/screenfull/-/screenfull-3.3.2.tgz",
12107
-      "integrity": "sha512-zrnT8EidEWGFkmXEa1d/YUYNvvJaMX05g4O82K+Oiy9jR6Fh3ZTsovsccJOjRJyhS0KPV7AQpDFQRAYXBl9a5A=="
12104
+      "version": "4.2.0",
12105
+      "resolved": "https://registry.npmjs.org/screenfull/-/screenfull-4.2.0.tgz",
12106
+      "integrity": "sha512-qpyI9XbwuMJElWRP5vTgxkFAl4k7HpyhIqBFOZEwX9QBXn0MAuRSpn7LOc6/4CeSwoz61oBu1VPV+2fbIWC+5Q=="
12108
     },
12107
     },
12109
     "script-loader": {
12108
     "script-loader": {
12110
       "version": "0.7.2",
12109
       "version": "0.7.2",
13345
       "dev": true
13344
       "dev": true
13346
     },
13345
     },
13347
     "tar": {
13346
     "tar": {
13348
-      "version": "2.2.1",
13349
-      "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz",
13350
-      "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=",
13347
+      "version": "2.2.2",
13348
+      "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.2.tgz",
13349
+      "integrity": "sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA==",
13351
       "dev": true,
13350
       "dev": true,
13352
       "requires": {
13351
       "requires": {
13353
         "block-stream": "*",
13352
         "block-stream": "*",
13354
-        "fstream": "^1.0.2",
13353
+        "fstream": "^1.0.12",
13355
         "inherits": "2"
13354
         "inherits": "2"
13356
       }
13355
       }
13357
     },
13356
     },

+ 1 - 1
package.json View File

55
     "nprogress": "0.2.0",
55
     "nprogress": "0.2.0",
56
     "print-js": "^1.0.50",
56
     "print-js": "^1.0.50",
57
     "qrcodejs2": "0.0.2",
57
     "qrcodejs2": "0.0.2",
58
-    "screenfull": "3.3.2",
58
+    "screenfull": "4.2.0",
59
     "serve-static": "1.13.2",
59
     "serve-static": "1.13.2",
60
     "showdown": "1.8.5",
60
     "showdown": "1.8.5",
61
     "simplemde": "1.11.2",
61
     "simplemde": "1.11.2",

+ 8 - 7
src/router/index.js View File

712
   // {
712
   // {
713
   //   path: '/sign',
713
   //   path: '/sign',
714
   //   component: Layout,
714
   //   component: Layout,
715
-  //   redirect: '/sign/index',
716
-  //   name: 'sign',
717
-  //   alwaysShow: true,
718
-  //   meta: { title: 'signWeight', icon: 'table' },
719
-  //   children: [
720
-  //     { path: '/sign/index', component: () => import('@/xt_pages/sign/index'), name: 'signWeight', meta: { title: 'signWeight' }}
721
-  //   ]
715
+  //   redirct: '/sign/index',
716
+  //   children: [{
717
+  //     path: '/sign',
718
+  //     component: () => import('@/xt_pages/sign/index'),
719
+  //     name: 'sign',
720
+  //     meta: { title: 'signWeight', icon: 'table', noCache: true }
721
+  //   }]
722
   // },
722
   // },
723
   // {
723
   // {
724
   //   path: '/dialysis/',
724
   //   path: '/dialysis/',
953
   //     { path: '/qcd/pa/person/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/weight'), name: 'paPersonWeight', meta: { title: '体重' }},
953
   //     { path: '/qcd/pa/person/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/weight'), name: 'paPersonWeight', meta: { title: '体重' }},
954
   //     { path: '/qcd/pa/person/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/bloodPressure'), name: 'paPersonBloodPressure', meta: { title: '血压' }},
954
   //     { path: '/qcd/pa/person/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/bloodPressure'), name: 'paPersonBloodPressure', meta: { title: '血压' }},
955
   //     { path: '/qcd/pa/person/indicators', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/indicators'), name: 'paPersonIndicators', meta: { title: '指标控制' }},
955
   //     { path: '/qcd/pa/person/indicators', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/indicators'), name: 'paPersonIndicators', meta: { title: '指标控制' }},
956
+  //     { path: '/qcd/pa/person/oralmedicine', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/oralMedicine'), name: 'paPersonOralMedicine', meta: { title: '口服药' }},
956
   //   ]
957
   //   ]
957
   // },
958
   // },
958
   // /////////////////////////////////////线在end
959
   // /////////////////////////////////////线在end

+ 282 - 7
src/xt_pages/dialysis/bulletinBoard.vue View File

4
       <bread-crumb :crumbs='crumbs'></bread-crumb>
4
       <bread-crumb :crumbs='crumbs'></bread-crumb>
5
       <el-button size="small" icon="el-icon-menu" @click="fullscreenboard" type="primary">全屏投影</el-button>
5
       <el-button size="small" icon="el-icon-menu" @click="fullscreenboard" type="primary">全屏投影</el-button>
6
     </div>
6
     </div>
7
-    <div class="app-container" id="dialysis-board-box">
8
-      <bulletinboard></bulletinboard>
7
+    <div class="app-container" id="dialysis-board-box" v-loading="loading" element-loading-text="加载中">
8
+        <el-menu  class="el-menu-demo" mode="horizontal" >
9
+            <el-menu-item >{{orgname}}</el-menu-item>
10
+            <el-menu-item :class="rightItem">{{week}}</el-menu-item>
11
+            <el-menu-item :class="rightItem">{{today}}</el-menu-item>
12
+        </el-menu>
13
+        <el-table
14
+            id="board-table-data"
15
+            :data="boardData"
16
+            border
17
+            :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
18
+            style="width: 100%">
19
+            <el-table-column
20
+                align="center"
21
+                prop="date"
22
+                label="姓名"
23
+                width="180">
24
+                <template slot-scope="scope">{{scope.row.patient.name}}</template>
25
+            </el-table-column>
26
+            <el-table-column
27
+                align="center"
28
+                prop="name"
29
+                label="透析号"
30
+                width="180">
31
+                <template slot-scope="scope">{{scope.row.patient.dialysis_no}}</template>
32
+            </el-table-column>
33
+            <el-table-column
34
+                align="center"
35
+                prop="address"
36
+                label="模式">
37
+                <template slot-scope="scope">{{modeName(scope.row.mode_id)}}</template>
38
+            </el-table-column>
39
+            <el-table-column
40
+                align="center"
41
+                prop="address"
42
+                label="分区">
43
+                <template slot-scope="scope">{{scope.row.device_zone?scope.row.device_zone.name:''}}</template>
44
+            </el-table-column>
45
+            <el-table-column
46
+                align="center"
47
+                prop="address"
48
+                label="床位">
49
+                <template slot-scope="scope">{{scope.row.device_number?scope.row.device_number.number:''}}</template>
50
+            </el-table-column>
51
+            <el-table-column
52
+                align="center"
53
+                prop="address"
54
+                label="状态">
55
+                <template slot-scope="scope">{{boradData(scope.row)}}</template>
56
+            </el-table-column>
57
+            <el-table-column
58
+                align="center"
59
+                prop="address"
60
+                label="下次透析时间">
61
+                <template slot-scope="scope">{{nextSchedule(scope.row.next_schedules)}}</template>
62
+            </el-table-column>
63
+        </el-table>
64
+    </div>
65
+
66
+    <div id="fullscreenbroad" v-show="dialogTableVisible" >
67
+      <el-row>
68
+          <el-button  @click="openSetting" icon="el-icon-setting" circle id="fullscreenbroad-setting"></el-button>
69
+          <el-button type="primary" icon="el-icon-rank" v-if="showSetting" id="fullscreenbroad-setting" @click="togglefullscreen">切换模式</el-button>
70
+          <el-button type="primary" icon="el-icon-menu"  v-if="showSetting" id="fullscreenbroad-setting"  @click="outfullscreenboard">退出全屏投影</el-button>
71
+
72
+      </el-row>
73
+      <el-menu  class="el-menu-demo" mode="horizontal" >
74
+          <el-menu-item >{{orgname}}</el-menu-item>
75
+          <el-menu-item :class="rightItem">{{week}}</el-menu-item>
76
+          <el-menu-item :class="rightItem">{{today}}</el-menu-item>
77
+      </el-menu>
78
+      <el-table :data="boardData" border style="width: 100%" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}">
79
+          <el-table-column
80
+              align="center"
81
+              prop="date"
82
+              label="姓名"
83
+              width="180">
84
+              <template slot-scope="scope">{{scope.row.patient.name}}</template>
85
+          </el-table-column>
86
+          <el-table-column
87
+              align="center"
88
+              prop="name"
89
+              label="透析号"
90
+              width="180">
91
+              <template slot-scope="scope">{{scope.row.patient.dialysis_no}}</template>
92
+          </el-table-column>
93
+          <el-table-column
94
+              align="center"
95
+              prop="address"
96
+              label="模式">
97
+              <template slot-scope="scope">{{modeName(scope.row.mode_id)}}</template>
98
+          </el-table-column>
99
+          <el-table-column
100
+              align="center"
101
+              prop="address"
102
+              label="分区">
103
+              <template slot-scope="scope">{{scope.row.device_zone?scope.row.device_zone.name:''}}</template>
104
+          </el-table-column>
105
+          <el-table-column
106
+              align="center"
107
+              prop="address"
108
+              label="床位">
109
+              <template slot-scope="scope">{{scope.row.device_number?scope.row.device_number.number:''}}</template>
110
+          </el-table-column>
111
+          <el-table-column
112
+              align="center"
113
+              prop="address"
114
+              label="状态">
115
+              <template slot-scope="scope">{{boradData(scope.row)}}</template>
116
+          </el-table-column>
117
+          <el-table-column
118
+              align="center"
119
+              prop="address"
120
+              label="下次透析时间">
121
+              <template slot-scope="scope">{{nextSchedule(scope.row.next_schedules)}}</template>
122
+          </el-table-column>
123
+      </el-table>
9
     </div>
124
     </div>
10
   </div>
125
   </div>
11
 
126
 
16
   import bulletinboard from './components/bulletinboard'
131
   import bulletinboard from './components/bulletinboard'
17
   import { parseTime } from '@/utils'
132
   import { parseTime } from '@/utils'
18
   import BreadCrumb from '../components/bread-crumb'
133
   import BreadCrumb from '../components/bread-crumb'
19
-
134
+  import screenfull from 'screenfull'
20
   export default {
135
   export default {
21
     components: { BreadCrumb, bulletinboard },
136
     components: { BreadCrumb, bulletinboard },
22
     name: 'bulletinBoard',
137
     name: 'bulletinBoard',
23
     data(){
138
     data(){
24
       return{
139
       return{
140
+        
141
+        dialogTableVisible:false,
142
+        showSetting:false,
25
         crumbs: [
143
         crumbs: [
26
           { path: false, name: '透析管理' },
144
           { path: false, name: '透析管理' },
27
           { path: 'dialysis/board', name: '数据看板' },
145
           { path: 'dialysis/board', name: '数据看板' },
28
         ],
146
         ],
29
-
147
+        orgname: '',
148
+        today:'今天',
149
+        week:'--',
150
+        rightItem:'board-right-menu-item',
151
+        boardData: [],
152
+        showTime:10,
153
+        currentPage:0,
154
+        loading:true,
155
+        weekDay:['周日','周一','周二','周三','周四','周五','周六',],
156
+        roonOptions:{1:'上午', 2:'下午', 3:'晚上'},
157
+        modeOptions: {},
30
       }
158
       }
31
     },
159
     },
32
-
160
+    created() {
161
+        // this.orgname = xtuser.org.org_name;
162
+        this.orgname = "遂溪方济医院";
163
+        this.modeOptions = this.$store.getters.treatment_mode;
164
+        this.initData();
165
+    },
33
     methods: {
166
     methods: {
34
       fullscreenboard: function() {
167
       fullscreenboard: function() {
35
-        let routeData = this.$router.resolve({ path: '/fullscreenboard' })
36
-        window.open(routeData.href, '_blank')
168
+        this.dialogTableVisible = true;
169
+        // let routeData = this.$router.resolve({ path: '/fullscreenboard' })
170
+        // window.open(routeData.href, '_blank')
171
+      },
172
+      outfullscreenboard:function(){
173
+        this.dialogTableVisible = false;
174
+        this.showSetting = false;
175
+      },
176
+      togglefullscreen:function(){
177
+        if (!screenfull.enabled) {
178
+          this.$message({
179
+            message: '你的浏览器不支持',
180
+            type: 'warning'
181
+          })
182
+          return false
183
+        }
184
+        screenfull.toggle();
185
+        this.showSetting = false;
186
+      },
187
+      openSetting(){
188
+        if(this.showSetting==false) {
189
+          this.showSetting = true;
190
+        }else {
191
+          this.showSetting=false
192
+        }
193
+      },
194
+      initData:function() {
195
+          var _this = this;
196
+          var timeOut = this.showTime * 1000;
197
+          this.currentPage++;
198
+          this.getBoards();
199
+          
200
+          setTimeout(function(){
201
+              _this.initData();
202
+          }, timeOut); 
203
+      },
204
+      getBoards:function(){
205
+          getBoards(this.currentPage).then(response=>{
206
+              this.loading = false;
207
+              var r = response.data;
208
+              if (r.state == 0) {
209
+                  this.$message.error(r.msg);
210
+                  return false;
211
+              } else {
212
+                  if(r.data.boards.length==0) {
213
+                      console.log("getBoards this.currentPage", this.currentPage);
214
+                      this.currentPage = 1;
215
+                      this.getBoards();
216
+                  }else {
217
+                      this.today = r.data.today;
218
+                      this.week = (r.data.week in this.weekDay)?this.weekDay[r.data.week]:'--';
219
+                      this.boardData = r.data.boards;
220
+                  }
221
+              }
222
+          })
223
+      },
224
+      modeName:function(mode_id) {
225
+          return (mode_id in this.modeOptions)? this.modeOptions[mode_id].name:'';
226
+      },
227
+      boradData:function(record) {
228
+          if(record.dialysis_order) {
229
+              if(record.dialysis_order.stage == 2) {
230
+                  return '已下机';
231
+              }else {
232
+                  return '透析中';
233
+              }
234
+          }else if(record.sign) {
235
+              return '已签到';
236
+          }else {
237
+              return '未签到';
238
+          }
239
+      },
240
+      nextSchedule:function(nextlist){
241
+          if(nextlist.length==0) {
242
+              return '——';
243
+          }
244
+          var dayTime = parseTime(nextlist[0].schedule_date, '{m}月{d}日');
245
+          var noon = (nextlist[0].schedule_type in this.roonOptions) ? ' ' + this.roonOptions[nextlist[0].schedule_type]:'';
246
+          return dayTime + noon;
37
       }
247
       }
38
     }
248
     }
39
   }
249
   }
40
 </script>
250
 </script>
251
+
252
+
253
+<style lang="scss" scoped>
254
+.board-right-menu-item{
255
+    float: right !important;
256
+}
257
+.el-menu--horizontal>.el-menu-item {
258
+    color: #000 !important;
259
+}
260
+.el-menu--horizontal {
261
+    border-bottom: 0px !important;
262
+}
263
+</style>
264
+
265
+<style >
266
+#fullscreenbroad {
267
+    position: fixed;
268
+    top: 0;
269
+    right: 0;
270
+    bottom: 0;
271
+    left: 0;
272
+    overflow: auto;
273
+    margin: 0;
274
+    background: #fff;
275
+    padding:20px;
276
+
277
+        /* width: 100%;
278
+    margin-top: 0;
279
+    margin-bottom: 0;
280
+    height: 100%;
281
+    overflow: auto; */
282
+}
283
+
284
+#fullscreenbroad #fullscreenbroad-setting {
285
+  float: right;
286
+}
287
+#fullscreenbroad {
288
+  z-index: 9999 !important;
289
+}
290
+
291
+#fullscreenbroad .el-button+.el-button {
292
+  margin-left: 0px; 
293
+}
294
+#fullscreenbroad .el-button:nth-child(1) {
295
+  margin-left: 10px; 
296
+}
297
+#fullscreenbroad .el-button:nth-child(2) {
298
+  margin-left: 10px; 
299
+}
300
+
301
+#fullscreenbroad .el-menu-item{
302
+    font-size: 30px !important;
303
+}
304
+
305
+#fullscreenbroad .board-right-menu-item{
306
+    font-size: 20px !important;
307
+}
308
+#fullscreenbroad .el-table th>.cell {
309
+    font-size: 20px !important;
310
+}
311
+#fullscreenbroad .el-table .cell{
312
+    font-size: 20px !important;
313
+}
314
+
315
+</style>

+ 23 - 10
src/xt_pages/qcd/outcomeIndicators/control.vue View File

71
       </div>
71
       </div>
72
 
72
 
73
       <div class="cell clearfix">
73
       <div class="cell clearfix">
74
-        <label class="title">
74
+        <!-- <label class="title">
75
           <span class="name">检验项目</span> :
75
           <span class="name">检验项目</span> :
76
         </label>
76
         </label>
77
         <el-select v-model="listQuery.project_id" placeholder="请选择" @change="changeModel()">
77
         <el-select v-model="listQuery.project_id" placeholder="请选择" @change="changeModel()">
78
           <el-option label="全部" value=""></el-option>
78
           <el-option label="全部" value=""></el-option>
79
           <el-option v-for="item in projectOptions" :key="item.project_id" :label="item.project_name" :value="item.project_id"></el-option>
79
           <el-option v-for="item in projectOptions" :key="item.project_id" :label="item.project_name" :value="item.project_id"></el-option>
80
         </el-select>
80
         </el-select>
81
-        &nbsp;&nbsp;&nbsp;&nbsp;
81
+        &nbsp;&nbsp;&nbsp;&nbsp; -->
82
         <label class="title">
82
         <label class="title">
83
           <span class="name">监测指标</span> :
83
           <span class="name">监测指标</span> :
84
         </label>
84
         </label>
162
       total: 0,
162
       total: 0,
163
       projectOptions:{},
163
       projectOptions:{},
164
       itemOptions:[],
164
       itemOptions:[],
165
+      itemOptionsMap:{17:1,35:1,36:1,37:1,49:1,46:1,48:1},
165
       patientMap:{},
166
       patientMap:{},
166
         CompletionOptions:{
167
         CompletionOptions:{
167
             legend:[],
168
             legend:[],
245
         
246
         
246
           var references = response.data.data.references;
247
           var references = response.data.data.references;
247
           this.references = response.data.data.references;
248
           this.references = response.data.data.references;
248
-          this.projectOptions = {};
249
+
250
+          this.itemOptions = [];
249
           for (const index in references) {
251
           for (const index in references) {
250
-            if (!(references[index].project_id in this.projectOptions)) {
251
-              this.$set(this.projectOptions, references[index].project_id, {project_id:references[index].project_id, project_name:references[index].project_name}); 
252
-            }
253
-            if (!('children' in this.projectOptions[references[index].project_id])) {
254
-                this.projectOptions[references[index].project_id]['children'] = [];
252
+            if (references[index].id in this.itemOptionsMap) {
253
+              this.itemOptions.push(references[index]);
255
             }
254
             }
256
-            this.projectOptions[references[index].project_id]['children'].push(references[index]);
257
           }
255
           }
256
+          // this.projectOptions = {};
257
+          // for (const index in references) {
258
+          //   if (!(references[index].project_id in this.projectOptions)) {
259
+          //     this.$set(this.projectOptions, references[index].project_id, {project_id:references[index].project_id, project_name:references[index].project_name}); 
260
+          //   }
261
+          //   if (!('children' in this.projectOptions[references[index].project_id])) {
262
+          //       this.projectOptions[references[index].project_id]['children'] = [];
263
+          //   }
264
+          //   this.projectOptions[references[index].project_id]['children'].push(references[index]);
265
+          // }
258
 
266
 
259
           var patients = response.data.data.patients;
267
           var patients = response.data.data.patients;
260
           for (const index in patients) {
268
           for (const index in patients) {
371
     activeReferences:function(){
379
     activeReferences:function(){
372
       var references = [];
380
       var references = [];
373
       for (const index in this.references) {
381
       for (const index in this.references) {
374
-        if (this.listQuery.project_id == '' || (this.listQuery.item_id == '' && this.references[index].project_id == this.listQuery.project_id) || this.references[index].id == this.listQuery.item_id) {
382
+        if(this.listQuery.item_id == '' && this.references[index].id in this.itemOptionsMap) {
375
           references.push(this.references[index]);
383
           references.push(this.references[index]);
384
+        } else if (this.references[index].id == this.listQuery.item_id) {
385
+          references.push(this.references[index]); 
376
         }
386
         }
387
+        // if (this.listQuery.project_id == '' || (this.listQuery.item_id == '' && this.references[index].project_id == this.listQuery.project_id) || this.references[index].id == this.listQuery.item_id) {
388
+        //   references.push(this.references[index]);
389
+        // }
377
       }
390
       }
378
       return references;
391
       return references;
379
     }
392
     }

+ 10 - 0
src/xt_pages/qcd/patientAnalysis/bloodPressure.vue View File

120
         <el-table-column  label="透后血压//mmHg" min-width="80" property="assessment_after_dislysis" align="center" :render-header="renderheader">
120
         <el-table-column  label="透后血压//mmHg" min-width="80" property="assessment_after_dislysis" align="center" :render-header="renderheader">
121
           <template slot-scope="scope"><span>{{scope.row.assessment_after_dislysis&&scope.row.assessment_after_dislysis.systolic_blood_pressure&&scope.row.assessment_after_dislysis.diastolic_blood_pressure? scope.row.assessment_after_dislysis.systolic_blood_pressure +'/'+scope.row.assessment_after_dislysis.diastolic_blood_pressure:'--'}}</span></template>
121
           <template slot-scope="scope"><span>{{scope.row.assessment_after_dislysis&&scope.row.assessment_after_dislysis.systolic_blood_pressure&&scope.row.assessment_after_dislysis.diastolic_blood_pressure? scope.row.assessment_after_dislysis.systolic_blood_pressure +'/'+scope.row.assessment_after_dislysis.diastolic_blood_pressure:'--'}}</span></template>
122
         </el-table-column>
122
         </el-table-column>
123
+        <el-table-column  label="统计" min-width="80" property="patient" align="center">
124
+          <template slot-scope="scope">
125
+            <el-tooltip class="item" effect="dark" content="统计" placement="top">
126
+              <el-button type="primary" icon="el-icon-share" size="small" @click="OpenPage(scope.row.patient.id)"></el-button>
127
+            </el-tooltip>
128
+          </template>
129
+        </el-table-column>
123
       </el-table>
130
       </el-table>
124
 
131
 
125
       <!-- <pagi-nation title="分页"></pagi-nation> -->
132
       <!-- <pagi-nation title="分页"></pagi-nation> -->
208
     this.getList();
215
     this.getList();
209
   },
216
   },
210
   methods: {
217
   methods: {
218
+    OpenPage(id) {
219
+      this.$router.push({ path: "/qcd/pa/person/bloodpressure?id="+id });
220
+    },
211
     getList() {
221
     getList() {
212
       GetPABloodPressureData(this.listQuery).then(response => {
222
       GetPABloodPressureData(this.listQuery).then(response => {
213
         if (response.data.state == 0) {
223
         if (response.data.state == 0) {

+ 3 - 0
src/xt_pages/qcd/patientAnalysis/complication.vue View File

205
     this.getList();
205
     this.getList();
206
   },
206
   },
207
   methods: {
207
   methods: {
208
+    OpenPage(id) {
209
+      this.$router.push({ path: "/qcd/pa/person/lapseto?id="+id });
210
+    },
208
     getList() {
211
     getList() {
209
       GetPAComplicationData(this.listQuery).then(response => {
212
       GetPAComplicationData(this.listQuery).then(response => {
210
         if (response.data.state == 0) {
213
         if (response.data.state == 0) {

+ 10 - 0
src/xt_pages/qcd/patientAnalysis/dialysisAge.vue View File

122
         <el-table-column  label="透析龄" min-width="80" property="first_dialysis_date" align="center">
122
         <el-table-column  label="透析龄" min-width="80" property="first_dialysis_date" align="center">
123
           <template slot-scope="scope"><span>{{dialysisAge(scope.row.first_dialysis_date)}}</span></template>
123
           <template slot-scope="scope"><span>{{dialysisAge(scope.row.first_dialysis_date)}}</span></template>
124
         </el-table-column>
124
         </el-table-column>
125
+        <el-table-column  label="统计" min-width="80" property="patient" align="center">
126
+          <template slot-scope="scope">
127
+            <el-tooltip class="item" effect="dark" content="统计" placement="top">
128
+              <el-button type="primary" icon="el-icon-share" size="small" @click="OpenPage(scope.row.id)"></el-button>
129
+            </el-tooltip>
130
+          </template>
131
+        </el-table-column>
125
         
132
         
126
       </el-table>
133
       </el-table>
127
 
134
 
230
     this.getList();
237
     this.getList();
231
   },
238
   },
232
   methods: {
239
   methods: {
240
+    OpenPage(id) {
241
+      this.$router.push({ path: "/qcd/pa/person/lapseto?id="+id });
242
+    },
233
     getList() {
243
     getList() {
234
       GetPADialysisAgeData(this.listQuery).then(response => {
244
       GetPADialysisAgeData(this.listQuery).then(response => {
235
         if (response.data.state == 0) {
245
         if (response.data.state == 0) {

+ 10 - 0
src/xt_pages/qcd/patientAnalysis/infectiousDiseases.vue View File

131
         <el-table-column  label="传染病" min-width="80" property="lapseto" align="center">
131
         <el-table-column  label="传染病" min-width="80" property="lapseto" align="center">
132
           <template slot-scope="scope"><span>{{getPatientInfectiousDiseases(scope.row.contagions)}}</span></template>
132
           <template slot-scope="scope"><span>{{getPatientInfectiousDiseases(scope.row.contagions)}}</span></template>
133
         </el-table-column>
133
         </el-table-column>
134
+        <el-table-column  label="统计" min-width="80" property="patient" align="center">
135
+          <template slot-scope="scope">
136
+            <el-tooltip class="item" effect="dark" content="统计" placement="top">
137
+              <el-button type="primary" icon="el-icon-share" size="small" @click="OpenPage(scope.row.id)"></el-button>
138
+            </el-tooltip>
139
+          </template>
140
+        </el-table-column>
134
         
141
         
135
       </el-table>
142
       </el-table>
136
 
143
 
239
     this.getList();
246
     this.getList();
240
   },
247
   },
241
   methods: {
248
   methods: {
249
+    OpenPage(id) {
250
+      this.$router.push({ path: "/qcd/pa/person/lapseto?id="+id });
251
+    },
242
     getList() {
252
     getList() {
243
       GetPAInfectiousDiseasesData(this.listQuery).then(response => {
253
       GetPAInfectiousDiseasesData(this.listQuery).then(response => {
244
         if (response.data.state == 0) {
254
         if (response.data.state == 0) {

+ 2 - 2
src/xt_pages/qcd/patientAnalysis/lapseto.vue View File

116
         <el-table-column  label="归转状态" min-width="80" property="lapseto" align="center">
116
         <el-table-column  label="归转状态" min-width="80" property="lapseto" align="center">
117
           <template slot-scope="scope"><span>{{getPatientLapseto(scope.row.lapseto)}}</span></template>
117
           <template slot-scope="scope"><span>{{getPatientLapseto(scope.row.lapseto)}}</span></template>
118
         </el-table-column>
118
         </el-table-column>
119
-        <el-table-column  label="统计" min-width="80" property="id" align="center">
119
+        <!-- <el-table-column  label="统计" min-width="80" property="id" align="center">
120
           <template slot-scope="scope">
120
           <template slot-scope="scope">
121
             <el-tooltip class="item" effect="dark" content="统计" placement="top">
121
             <el-tooltip class="item" effect="dark" content="统计" placement="top">
122
               <el-button type="primary" icon="el-icon-share" size="small" @click="OpenPage(scope.row.id)"></el-button>
122
               <el-button type="primary" icon="el-icon-share" size="small" @click="OpenPage(scope.row.id)"></el-button>
123
             </el-tooltip>
123
             </el-tooltip>
124
           </template>
124
           </template>
125
-        </el-table-column>
125
+        </el-table-column> -->
126
         
126
         
127
       </el-table>
127
       </el-table>
128
 
128
 

+ 9 - 7
src/xt_pages/qcd/patientAnalysis/person/oralMedicine.vue View File

54
           </ul>
54
           </ul>
55
         </div>
55
         </div>
56
       </div>
56
       </div>
57
-      <div class="cell clearfix">
57
+      <!-- <div class="cell clearfix">
58
         <label class="title">
58
         <label class="title">
59
           <span class="name">药品类型</span> :
59
           <span class="name">药品类型</span> :
60
         </label>
60
         </label>
66
             :value="item.id">
66
             :value="item.id">
67
           </el-option>
67
           </el-option>
68
         </el-select>
68
         </el-select>
69
-      </div>
69
+      </div> -->
70
       
70
       
71
-      <div class="cqd-dataTitle">统计图</div>
71
+      <!-- <div class="cqd-dataTitle">统计图</div>
72
       <el-row :gutter="32">
72
       <el-row :gutter="32">
73
         <el-col :xs="24" :sm="24" :lg="24">
73
         <el-col :xs="24" :sm="24" :lg="24">
74
           <div class="chart-wrapper">
74
           <div class="chart-wrapper">
77
         </el-col>
77
         </el-col>
78
       </el-row>
78
       </el-row>
79
 
79
 
80
-      <div style="height:20px">&nbsp;</div>
80
+      <div style="height:20px">&nbsp;</div> -->
81
       <div class="cqd-dataTitle">统计表</div>
81
       <div class="cqd-dataTitle">统计表</div>
82
       <el-table
82
       <el-table
83
         ref="multipleTable"
83
         ref="multipleTable"
105
             </template>
105
             </template>
106
         </el-table-column>
106
         </el-table-column>
107
         
107
         
108
-        <el-table-column  label="GROUP" width="180" property="groupno" align="center">
109
-        </el-table-column>
110
         <el-table-column  label="开始时间" width="180" property="start_time" align="center">
108
         <el-table-column  label="开始时间" width="180" property="start_time" align="center">
109
+            <template slot-scope="scope">
110
+                {{scope.row.start_time | parseTime("{y}-{m}-{d} {h}:{i}")}}
111
+            </template>
111
         </el-table-column>
112
         </el-table-column>
112
         <el-table-column label="停止时间" width="180"  property="stop_time" align="center">
113
         <el-table-column label="停止时间" width="180"  property="stop_time" align="center">
113
             <template slot-scope="scope">
114
             <template slot-scope="scope">
114
-                <span v-if="scope.row.stop_state==1"> {{scope.row.stop_time | parseTime("{y}-{m}-{d} {h}:{i}")}}</span>
115
+                <span v-if="scope.row.advice_type==2&&scope.row.execution_state==1"> {{scope.row.execution_time | parseTime("{y}-{m}-{d} {h}:{i}")}}</span>
116
+                <span v-if="scope.row.advice_type==1&&scope.row.stop_state==1"> {{scope.row.stop_time | parseTime("{y}-{m}-{d} {h}:{i}")}}</span>
115
             </template>
117
             </template>
116
         </el-table-column>
118
         </el-table-column>
117
         
119
         

+ 10 - 0
src/xt_pages/qcd/patientAnalysis/total.vue View File

107
         <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
107
         <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
108
           <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
108
           <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
109
         </el-table-column>
109
         </el-table-column>
110
+        <el-table-column  label="统计" min-width="80" property="id" align="center">
111
+          <template slot-scope="scope">
112
+            <el-tooltip class="item" effect="dark" content="统计" placement="top">
113
+              <el-button type="primary" icon="el-icon-share" size="small" @click="OpenPage(scope.row.id)"></el-button>
114
+            </el-tooltip>
115
+          </template>
116
+        </el-table-column>
110
         
117
         
111
       </el-table>
118
       </el-table>
112
 
119
 
198
     this.getList();
205
     this.getList();
199
   },
206
   },
200
   methods: {
207
   methods: {
208
+    OpenPage(id) {
209
+      this.$router.push({ path: "/qcd/pa/person/lapseto?id="+id });
210
+    },
201
     getList() {
211
     getList() {
202
       GetPATotalData(this.listQuery).then(response => {
212
       GetPATotalData(this.listQuery).then(response => {
203
         if (response.data.state == 0) {
213
         if (response.data.state == 0) {

+ 10 - 0
src/xt_pages/qcd/patientAnalysis/weight.vue View File

130
           <template slot-scope="scope"><span>{{scope.row.assessment_after_dislysis?scope.row.assessment_after_dislysis.weight_after+ 'Kg':'--'}}</span></template>
130
           <template slot-scope="scope"><span>{{scope.row.assessment_after_dislysis?scope.row.assessment_after_dislysis.weight_after+ 'Kg':'--'}}</span></template>
131
         </el-table-column>
131
         </el-table-column>
132
         
132
         
133
+        <el-table-column  label="统计" min-width="80" property="patient" align="center">
134
+          <template slot-scope="scope">
135
+            <el-tooltip class="item" effect="dark" content="统计" placement="top">
136
+              <el-button type="primary" icon="el-icon-share" size="small" @click="OpenPage(scope.row.patient.id)"></el-button>
137
+            </el-tooltip>
138
+          </template>
139
+        </el-table-column>
133
       </el-table>
140
       </el-table>
134
 
141
 
135
       <!-- <pagi-nation title="分页"></pagi-nation> -->
142
       <!-- <pagi-nation title="分页"></pagi-nation> -->
228
     this.getList();
235
     this.getList();
229
   },
236
   },
230
   methods: {
237
   methods: {
238
+    OpenPage(id) {
239
+      this.$router.push({ path: "/qcd/pa/person/weight?id="+id });
240
+    },
231
     getList() {
241
     getList() {
232
       GetPAWeightData(this.listQuery).then(response => {
242
       GetPAWeightData(this.listQuery).then(response => {
233
         if (response.data.state == 0) {
243
         if (response.data.state == 0) {