Browse Source

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

柳香萍 6 years ago
parent
commit
7477ed372d

+ 38 - 0
package-lock.json View File

@@ -2014,6 +2014,12 @@
2014 2014
       "integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==",
2015 2015
       "dev": true
2016 2016
     },
2017
+    "ci-info": {
2018
+      "version": "1.6.0",
2019
+      "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.6.0.tgz",
2020
+      "integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==",
2021
+      "dev": true
2022
+    },
2017 2023
     "cipher-base": {
2018 2024
       "version": "1.0.4",
2019 2025
       "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz",
@@ -5931,6 +5937,17 @@
5931 5937
       "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=",
5932 5938
       "dev": true
5933 5939
     },
5940
+    "husky": {
5941
+      "version": "0.14.3",
5942
+      "resolved": "https://registry.npmjs.org/husky/-/husky-0.14.3.tgz",
5943
+      "integrity": "sha512-e21wivqHpstpoiWA/Yi8eFti8E+sQDSS53cpJsPptPs295QTOQR0ZwnHo2TXy1XOpZFD9rPOd3NpmqTK6uMLJA==",
5944
+      "dev": true,
5945
+      "requires": {
5946
+        "is-ci": "^1.0.10",
5947
+        "normalize-path": "^1.0.0",
5948
+        "strip-indent": "^2.0.0"
5949
+      }
5950
+    },
5934 5951
     "iconv-lite": {
5935 5952
       "version": "0.4.24",
5936 5953
       "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
@@ -6192,6 +6209,15 @@
6192 6209
       "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==",
6193 6210
       "dev": true
6194 6211
     },
6212
+    "is-ci": {
6213
+      "version": "1.2.1",
6214
+      "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.2.1.tgz",
6215
+      "integrity": "sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg==",
6216
+      "dev": true,
6217
+      "requires": {
6218
+        "ci-info": "^1.5.0"
6219
+      }
6220
+    },
6195 6221
     "is-data-descriptor": {
6196 6222
       "version": "0.1.4",
6197 6223
       "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",
@@ -7785,6 +7811,12 @@
7785 7811
         "validate-npm-package-license": "^3.0.1"
7786 7812
       }
7787 7813
     },
7814
+    "normalize-path": {
7815
+      "version": "1.0.0",
7816
+      "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-1.0.0.tgz",
7817
+      "integrity": "sha1-MtDkcvkf80VwHBWoMRAY07CpA3k=",
7818
+      "dev": true
7819
+    },
7788 7820
     "normalize-range": {
7789 7821
       "version": "0.1.2",
7790 7822
       "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz",
@@ -12992,6 +13024,12 @@
12992 13024
       "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
12993 13025
       "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8="
12994 13026
     },
13027
+    "strip-indent": {
13028
+      "version": "2.0.0",
13029
+      "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz",
13030
+      "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=",
13031
+      "dev": true
13032
+    },
12995 13033
     "strip-json-comments": {
12996 13034
       "version": "2.0.1",
12997 13035
       "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",

+ 1 - 0
package.json View File

@@ -94,6 +94,7 @@
94 94
     "file-loader": "1.1.5",
95 95
     "friendly-errors-webpack-plugin": "1.6.1",
96 96
     "html-webpack-plugin": "2.30.1",
97
+    "husky": "0.14.3",
97 98
     "lint-staged": "7.2.0",
98 99
     "node-notifier": "5.1.2",
99 100
     "node-sass": "^4.7.2",

+ 180 - 170
src/api/patient.js View File

@@ -1,236 +1,246 @@
1 1
 import request from '@/utils/request'
2 2
 
3
-export function fetchList(params){
4
-    return request({
5
-        url:'/api/patients',
6
-        method:'get',
7
-        params:params
8
-    })
3
+export function fetchList(params) {
4
+  return request({
5
+    url: '/api/patients',
6
+    method: 'get',
7
+    params: params
8
+  })
9 9
 }
10 10
 
11
-export function fetchAllList(){
12
-    return request({
13
-        url:'/api/patients/all',
14
-        method:'get',
15
-    })
11
+export function fetchAllList() {
12
+  return request({
13
+    url: '/api/patients/all',
14
+    method: 'get'
15
+  })
16 16
 }
17
-export function GetPatientTotal(){
18
-    return request({
19
-        url:'/api/patients/total',
20
-        method:'get',
21
-    })
17
+export function GetPatientTotal() {
18
+  return request({
19
+    url: '/api/patients/total',
20
+    method: 'get'
21
+  })
22 22
 }
23 23
 
24 24
 export function generateDialysisNo() {
25
-    return request({
26
-        url:'/api/patients/generatedialysisno',
27
-        method:'get'
28
-    })
25
+  return request({
26
+    url: '/api/patients/generatedialysisno',
27
+    method: 'get'
28
+  })
29 29
 }
30 30
 
31 31
 export function createPatient(patient) {
32
-    return request({
33
-        url:'/api/patients/create',
34
-        method:'post',
35
-        data:patient,
36
-    })
37
-}
38
-export function editPatient(id,patient) {
39
-    return request({
40
-        url:'/api/patients/edit?id='+id,
41
-        method:'put',
42
-        data:patient,
43
-    })
32
+  return request({
33
+    url: '/api/patients/create',
34
+    method: 'post',
35
+    data: patient
36
+  })
37
+}
38
+export function editPatient(id, patient) {
39
+  return request({
40
+    url: '/api/patients/edit?id=' + id,
41
+    method: 'put',
42
+    data: patient
43
+  })
44 44
 }
45 45
 export function fetchPatient(id) {
46
-    return request({
47
-        url:'/api/patients/get?id='+id,
48
-        method:'get',
49
-    })
46
+  return request({
47
+    url: '/api/patients/get?id=' + id,
48
+    method: 'get'
49
+  })
50 50
 }
51 51
 
52
-
53
-export function fetchPatientDialysisSolutions(params){
54
-    return request({
55
-        url:'/api/patients/dialysissolutions',
56
-        method:'Get',
57
-        params:params,
58
-    })
52
+export function fetchPatientDialysisSolutions(params) {
53
+  return request({
54
+    url: '/api/patients/dialysissolutions',
55
+    method: 'Get',
56
+    params: params
57
+  })
59 58
 }
60 59
 
61
-export function createPatientDialysisSolution(id,solution){
62
-    return request({
63
-        url:'/api/patients/dialysissolution/create?patient='+id,
64
-        method:'post',
65
-        data:solution,
66
-    })
60
+export function createPatientDialysisSolution(id, solution) {
61
+  return request({
62
+    url: '/api/patients/dialysissolution/create?patient=' + id,
63
+    method: 'post',
64
+    data: solution
65
+  })
67 66
 }
68 67
 
69
-export function editPatientDialysisSolution(patient, id,solution){
70
-    return request({
71
-        url:'/api/patients/dialysissolution/edit?patient='+patient + '&id='+id,
72
-        method:'put',
73
-        data:solution,
74
-    })
68
+export function editPatientDialysisSolution(patient, id, solution) {
69
+  return request({
70
+    url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id,
71
+    method: 'put',
72
+    data: solution
73
+  })
75 74
 }
76 75
 
77
-export function createChildPatientDialysisSolution(id,solution){
78
-    return request({
79
-        url:'/api/patients/dialysissolution/child/create?patient='+id,
80
-        method:'post',
81
-        data:solution,
82
-    })
76
+export function createChildPatientDialysisSolution(id, solution) {
77
+  return request({
78
+    url: '/api/patients/dialysissolution/child/create?patient=' + id,
79
+    method: 'post',
80
+    data: solution
81
+  })
83 82
 }
84 83
 
85
-
86
-export function editChildPatientDialysisSolution(patient, id, solution){
87
-    return request({
88
-        url:'/api/patients/dialysissolution/child/edit?patient='+patient + '&id='+id,
89
-        method:'put',
90
-        data:solution,
91
-    })
84
+export function editChildPatientDialysisSolution(patient, id, solution) {
85
+  return request({
86
+    url: '/api/patients/dialysissolution/child/edit?patient=' + patient + '&id=' + id,
87
+    method: 'put',
88
+    data: solution
89
+  })
92 90
 }
93 91
 
94
-export function editDialysisSolutionDetail(patient, id, solution){
95
-    return request({
96
-        url:'/api/patients/dialysissolution/detail/edit?patient='+patient + '&id='+id,
97
-        method:'put',
98
-        data:solution,
99
-    })
92
+export function editDialysisSolutionDetail(patient, id, solution) {
93
+  return request({
94
+    url: '/api/patients/dialysissolution/detail/edit?patient=' + patient + '&id=' + id,
95
+    method: 'put',
96
+    data: solution
97
+  })
100 98
 }
101 99
 
102
-
103
-export function deleteDialysisSolution(id){
104
-    return request({
105
-        url:'/api/patients/dialysissolution/delete?id='+id,
106
-        method:'delete',
107
-    })
100
+export function deleteDialysisSolution(id) {
101
+  return request({
102
+    url: '/api/patients/dialysissolution/delete?id=' + id,
103
+    method: 'delete'
104
+  })
108 105
 }
109 106
 
110
-export function createDryWeight(patient, weight){
111
-    return request({
112
-        url:'/api/patients/dryweight/create?id='+patient,
113
-        method:'post',
114
-        data:weight,
115
-    })
107
+export function createDryWeight(patient, weight) {
108
+  return request({
109
+    url: '/api/patients/dryweight/create?id=' + patient,
110
+    method: 'post',
111
+    data: weight
112
+  })
116 113
 }
117 114
 
118
-export function getDryWeights(params){
119
-    return request({
120
-        url:'/api/patients/dryweight/get',
121
-        method:'get',
122
-        params:params
123
-    })
115
+export function getDryWeights(params) {
116
+  return request({
117
+    url: '/api/patients/dryweight/get',
118
+    method: 'get',
119
+    params: params
120
+  })
124 121
 }
125 122
 
126 123
 export function getPatientDialysisRecords(params) {
127
-    return request({
128
-        url:'/api/patients/dialysisrecords',
129
-        method:'get',
130
-        params:params
131
-    })
124
+  return request({
125
+    url: '/api/patients/dialysisrecords',
126
+    method: 'get',
127
+    params: params
128
+  })
132 129
 }
133 130
 export function getPatientProEducation(params) {
134
-    return request({
135
-        url:'/api/patients/proeducation',
136
-        method:'get',
137
-        params:params
138
-    })
131
+  return request({
132
+    url: '/api/patients/proeducation',
133
+    method: 'get',
134
+    params: params
135
+  })
139 136
 }
140 137
 
141 138
 export function getCourseOfDiseaseRecords(patient_id, start_time_ymd, end_time_ymd) {
142
-    var params = {
143
-        patient_id: patient_id,
144
-        start_time: start_time_ymd,
145
-        end_time: end_time_ymd,
146
-    }
147
-    return request({
148
-        url: '/api/patient/courses',
149
-        method: 'get',
150
-        params: params,
151
-    })
139
+  var params = {
140
+    patient_id: patient_id,
141
+    start_time: start_time_ymd,
142
+    end_time: end_time_ymd
143
+  }
144
+  return request({
145
+    url: '/api/patient/courses',
146
+    method: 'get',
147
+    params: params
148
+  })
152 149
 }
153 150
 
154 151
 export function createCourseOfDiseaseRecord(patient_id, content) {
155
-    var params = {
156
-        patient_id: patient_id,
157
-        content: content,
158
-    }
159
-    return request({
160
-        url: '/api/patient/course/create',
161
-        method: 'post',
162
-        params: params,
163
-    })
152
+  var params = {
153
+    patient_id: patient_id,
154
+    content: content
155
+  }
156
+  return request({
157
+    url: '/api/patient/course/create',
158
+    method: 'post',
159
+    params: params
160
+  })
164 161
 }
165 162
 
166 163
 export function getRescueRecords(patient_id, start_time_ymd, end_time_ymd) {
167
-    var params = {
168
-        patient_id: patient_id,
169
-        start_time: start_time_ymd,
170
-        end_time: end_time_ymd,
171
-    }
172
-    return request({
173
-        url: '/api/patient/rescues',
174
-        method: 'get',
175
-        params: params,
176
-    })
164
+  var params = {
165
+    patient_id: patient_id,
166
+    start_time: start_time_ymd,
167
+    end_time: end_time_ymd
168
+  }
169
+  return request({
170
+    url: '/api/patient/rescues',
171
+    method: 'get',
172
+    params: params
173
+  })
177 174
 }
178 175
 
179 176
 export function createRescueRecord(patient_id, content) {
180
-    var params = {
181
-        patient_id: patient_id,
182
-        content: content,
183
-    }
184
-    return request({
185
-        url: '/api/patient/rescue/create',
186
-        method: 'post',
187
-        params: params,
188
-    })
177
+  var params = {
178
+    patient_id: patient_id,
179
+    content: content
180
+  }
181
+  return request({
182
+    url: '/api/patient/rescue/create',
183
+    method: 'post',
184
+    params: params
185
+  })
189 186
 }
190 187
 
191 188
 export function deleteCourseOfDiseaseRecords(patient_id, ids_str) {
192
-    var params = {
193
-        patient_id: patient_id,
194
-        ids: ids_str,
195
-    }
196
-    return request({
197
-        url: '/api/patient/course/delete',
198
-        method: 'post',
199
-        params: params,
200
-    })
189
+  var params = {
190
+    patient_id: patient_id,
191
+    ids: ids_str
192
+  }
193
+  return request({
194
+    url: '/api/patient/course/delete',
195
+    method: 'post',
196
+    params: params
197
+  })
201 198
 }
202 199
 
203 200
 export function deleteRescueRecords(patient_id, ids_str) {
204
-    var params = {
205
-        patient_id: patient_id,
206
-        ids: ids_str,
207
-    }
208
-    return request({
209
-        url: '/api/patient/rescue/delete',
210
-        method: 'post',
211
-        params: params,
212
-    })
201
+  var params = {
202
+    patient_id: patient_id,
203
+    ids: ids_str
204
+  }
205
+  return request({
206
+    url: '/api/patient/rescue/delete',
207
+    method: 'post',
208
+    params: params
209
+  })
213 210
 }
214 211
 
215 212
 export function EditLapseto(patient_id, data) {
216
-    return request({
217
-        url: '/api/patients/lapseto/edit?id='+patient_id,
218
-        method: 'post',
219
-        data: data,
220
-    })
221
-    
213
+  return request({
214
+    url: '/api/patients/lapseto/edit?id=' + patient_id,
215
+    method: 'post',
216
+    data: data
217
+  })
222 218
 }
223 219
 
224
-
225
-
226
-
227
-
228 220
 export function PostSearch(keyword) {
229 221
   return request({
230
-    url: '/api/patients/search?keyword='+keyword,
231
-    method: 'post',
222
+    url: '/api/patients/search?keyword=' + keyword,
223
+    method: 'post'
232 224
 
233 225
   })
226
+}
234 227
 
228
+export function OpenView(id) {
229
+  return request({
230
+    url: '/api/patients/querypatientbyId',
231
+    method: 'Get',
232
+    params: {
233
+      id: id
234
+    }
235
+  })
235 236
 }
236 237
 
238
+export function code(id) {
239
+  return request({
240
+    url: '/api/patients/codebyId',
241
+    method: 'Get',
242
+    params: {
243
+      id: id
244
+    }
245
+  })
246
+}

+ 1 - 1
src/api/qcd.js View File

@@ -41,4 +41,4 @@ export function GetPADialysisAgeData(params) {
41 41
     method: 'get',
42 42
     params: params
43 43
   })
44
-}
44
+}

+ 56 - 20
src/api/signandweigh.js View File

@@ -1,26 +1,62 @@
1
-import request from '@/utils/request';
1
+import request from '@/utils/request'
2 2
 
3
-export function fetchSignPatients(params){
4
-    return request({
5
-        url:'/api/sign/patients',
6
-        method:'get',
7
-        params:params,
8
-    })
3
+export function fetchSignPatients(params) {
4
+  return request({
5
+    url: '/api/sign/patients',
6
+    method: 'get',
7
+    params: params
8
+  })
9 9
 }
10 10
 
11
-export function getPatientSign(params){
12
-    return request({
13
-        url:'/api/sign/patientsign',
14
-        method:'get',
15
-        params:params,
16
-    })
11
+export function getPatientSign(params) {
12
+  return request({
13
+    url: '/api/sign/patientsign',
14
+    method: 'get',
15
+    params: params
16
+  })
17 17
 }
18 18
 
19 19
 export function SignWeigh(params, data) {
20
-    return request({
21
-        url:'/api/signweign',
22
-        params: params,
23
-        data: data,
24
-        method:"Post",
25
-    })
26
-}
20
+  return request({
21
+    url: '/api/signweign',
22
+    params: params,
23
+    data: data,
24
+    method: 'Post'
25
+  })
26
+}
27
+
28
+export function getDialysisInforInfomation(id) {
29
+  return request({
30
+    url: '/api/sign/getDialysisInforInfomation',
31
+    method: 'Get',
32
+    params: {
33
+      patient_id: id
34
+    }
35
+  })
36
+}
37
+
38
+export function getDialysisAfterInfomation(id) {
39
+  return request({
40
+    url: '/api/sign/getDialysisAfterInfomation',
41
+    method: 'Get',
42
+    params: {
43
+      patient_id: id
44
+    }
45
+  })
46
+}
47
+
48
+export function createdata(params) {
49
+  return request({
50
+    url: '/api/sign/savaData',
51
+    method: 'Post',
52
+    params: params
53
+  })
54
+}
55
+
56
+export function editdata(params) {
57
+  return request({
58
+    url: '/api/sign/editdata',
59
+    method: 'Post',
60
+    params: params
61
+  })
62
+}

+ 3 - 1
src/main.js View File

@@ -13,7 +13,7 @@ import '@/assets/icon/iconfont.css'
13 13
 import App from './App'
14 14
 import router from './router'
15 15
 import store from './store'
16
-
16
+import { Base64 } from 'js-base64'
17 17
 import i18n from './lang' // Internationalization
18 18
 import './icons' // icon
19 19
 import './errorLog'// error log
@@ -42,3 +42,5 @@ new Vue({
42 42
   i18n,
43 43
   render: h => h(App)
44 44
 })
45
+
46
+Vue.prototype.Base64 = require('js-base64').Base64

+ 85 - 56
src/router/index.js View File

@@ -769,94 +769,123 @@ export const xt_asyncRouterMap = [
769 769
   //     { path: '/device/numbers', component: () => import('@/xt_pages/device/number_main'), name: 'deviceNumberManage', meta: { title: 'deviceNumberManage' }},
770 770
   //     { path: '/device/main', component: () => import('@/xt_pages/device/main'), name: 'dialysisMachineManage', meta: { title: 'dialysisMachineManage' }}
771 771
   //   ]
772
-  // },{
772
+  // }, {
773 773
   //   path: '/stock/',
774 774
   //   component: Layout,
775 775
   //   redirect: 'noredirect',
776 776
   //   name: 'stockManage',
777
-  //   meta: {title: 'stockManage', icon: 'nested'},
777
+  //   meta: { title: 'stockManage', icon: 'excel' },
778 778
   //   children: [
779 779
   //     {
780
+  //       path: '/stock/config',
781
+  //       component: () => import('@/xt_pages/stock/index'),
782
+  //       name: 'config',
783
+  //       meta: { title: 'config' }
784
+  //     },
785
+  //     {
780 786
   //       path: '/stock/in',
781
-  //       component: () => import('@/xt_pages/stock/stockIn'),
782
-  //       name: 'stockIn',
783
-  //       meta: {title: 'stockIn',noCache: true }
784
-
787
+  //       component: () => import('@/xt_pages/stock/stockInOrder'),
788
+  //       name: 'stockInOrder',
789
+  //       meta: { title: 'stockInOrder', noCache: true }
790
+  //     }, {
791
+  //       path: '/stock/in/other',
792
+  //       component: () => import('@/xt_pages/stock/otherStockInOrder'),
793
+  //       name: 'otherStockInOrder',
794
+  //       meta: { title: 'otherStockInOrder', noCache: true }
795
+  //     }, {
796
+  //       path: '/stock/return',
797
+  //       component: () => import('@/xt_pages/stock/salesReturnOrder'),
798
+  //       name: 'salesReturnOrder',
799
+  //       meta: { title: 'salesReturnOrder', noCache: true }
800
+  //     }, {
801
+  //       path: '/stock/return/other',
802
+  //       component: () => import('@/xt_pages/stock/otherSalesReturnOrder'),
803
+  //       name: 'otherSalesReturnOrder',
804
+  //       meta: { title: 'otherSalesReturnOrder', noCache: true }
785 805
   //     },
786
-
787
-  //      {
806
+  //     {
788 807
   //       path: '/stock/out',
789
-  //       component: () => import('@/xt_pages/stock/stockOut'),
790
-  //       name: 'stockOut',
791
-  //       meta: {title: 'stockOut',noCache: true}
792
-  //     },{
808
+  //       component: () => import('@/xt_pages/stock/stockOutOrder'),
809
+  //       name: 'stockOutOrder',
810
+  //       meta: { title: 'stockOutOrder', noCache: true }
811
+  //     }, {
812
+  //       path: '/stock/out/other',
813
+  //       component: () => import('@/xt_pages/stock/otherStockOutOrder'),
814
+  //       name: 'otherStockOutOrder',
815
+  //       meta: { title: 'otherStockOutOrder', noCache: true }
816
+  //     }, {
817
+  //       path: '/stock/cancel',
818
+  //       component: () => import('@/xt_pages/stock/cancelStockOrder'),
819
+  //       name: 'cancelStockOrder',
820
+  //       meta: { title: 'cancelStockOrder', noCache: true }
821
+  //     }, {
822
+  //       path: '/stock/cancel/other',
823
+  //       component: () => import('@/xt_pages/stock/otherCancelStockOrder'),
824
+  //       name: 'otherCancelStockOrder',
825
+  //       meta: { title: 'otherCancelStockOrder', noCache: true }
826
+  //     }, {
793 827
   //       path: '/stock/query',
794 828
   //       component: () => import('@/xt_pages/stock/stockQuery'),
795 829
   //       name: 'stockQuery',
796
-  //       meta: {title: 'stockQuery',noCache: true}
797
-  //     },
798
-  //     {
799
-  //       path: '/stock/config',
800
-  //       component: () => import('@/xt_pages/stock/index'),
801
-  //       name: 'config',
802
-  //       meta: {title: 'config'},
803
-  //     },{
830
+  //       meta: { title: 'stockQuery' }
831
+  //     }, {
804 832
   //       path: '/stock/in/add',
805
-  //       component: () => import('@/xt_pages/stock/addStockIn'),
806
-  //       name: 'addStockIn',
833
+  //       component: () => import('@/xt_pages/stock/stockInOrderAdd'),
834
+  //       name: 'stockInOrderAdd',
807 835
   //       hidden: true,
808 836
   //       is_menu: false,
809
-  //       meta: {title: 'addStockIn',noCache: true}
837
+  //       meta: { title: 'stockInOrderAdd' }
810 838
   //     }, {
811
-  //       path: '/stock/out/add',
812
-  //       component: () => import('@/xt_pages/stock/addStockOut'),
813
-  //       name: 'addStockOut',
839
+  //       path: '/stock/in/detail',
840
+  //       component: () => import('@/xt_pages/stock/stockInDetail'),
841
+  //       name: 'stockInDetail',
814 842
   //       hidden: true,
815 843
   //       is_menu: false,
816
-  //       meta: {title: 'addStockOut',noCache: true }
817
-  //     },{
818
-  //       path: '/stock/return',
819
-  //       component: () => import('@/xt_pages/stock/salesReturn'),
820
-  //       name: 'salesReturn',
844
+  //       meta: { title: 'stockInDetail' }
845
+  //     }, {
846
+  //       path: '/stock/return/detail',
847
+  //       component: () => import('@/xt_pages/stock/salesReturnDetail'),
848
+  //       name: 'salesReturnDetail',
821 849
   //       hidden: true,
822 850
   //       is_menu: false,
823
-  //       meta: {title: 'salesReturn'}
824
-  //     },{
825
-  //       path: '/stock/return/record',
826
-  //       component: () => import('@/xt_pages/stock/salesReutrnRecord'),
827
-  //       name: 'salesReutrnRecord',
851
+  //       meta: { title: 'salesReturnDetail' }
852
+  //     }, {
853
+  //       path: '/stock/return/add',
854
+  //       component: () => import('@/xt_pages/stock/salesReturnOrderAdd'),
855
+  //       name: 'salesReturnOrderAdd',
828 856
   //       hidden: true,
829 857
   //       is_menu: false,
830
-  //       meta: {title: 'salesReutrnRecord'}
831
-  //     },{
832
-  //       path: '/stock/warehouse/record',
833
-  //       component: () => import('@/xt_pages/stock/warehouseRecord'),
834
-  //       name: 'warehouseRecord',
858
+  //       meta: { title: 'salesReturnOrderAdd' }
859
+  //     }, {
860
+  //       path: '/stock/out/add',
861
+  //       component: () => import('@/xt_pages/stock/stockOutOrderAdd'),
862
+  //       name: 'stockOutOrderAdd',
835 863
   //       hidden: true,
836 864
   //       is_menu: false,
837
-  //       meta: {title: 'warehouseRecord'}
838
-  //     },{
839
-  //       path: '/stock/cancel/',
840
-  //       component: () => import('@/xt_pages/stock/cancelStock'),
841
-  //       name: 'cancelStock',
865
+  //       meta: { title: 'stockOutOrderAdd', noCache: true }
866
+  //     }, {
867
+  //       path: '/stock/out/detail',
868
+  //       component: () => import('@/xt_pages/stock/stockOutDetail'),
869
+  //       name: 'stockOutDetail',
842 870
   //       hidden: true,
843 871
   //       is_menu: false,
844
-  //       meta: {title: 'cancelStock'}
872
+  //       meta: { title: 'stockOutDetail', noCache: true }
845 873
   //     }, {
846
-  //       path: '/stock/cancel/record',
847
-  //       component: () => import('@/xt_pages/stock/cancelStockRecord'),
848
-  //       name: 'cancelStockRecord',
874
+  //       path: '/stock/cancel/add',
875
+  //       component: () => import('@/xt_pages/stock/cancelStockOrderAdd'),
876
+  //       name: 'cancelStockOrderAdd',
849 877
   //       hidden: true,
850 878
   //       is_menu: false,
851
-  //       meta: {title: 'cancelStockRecord'}
879
+  //       meta: { title: 'cancelStockOrderAdd', noCache: true }
852 880
   //     }, {
853
-  //       path: '/stock/out/record',
854
-  //       component: () => import('@/xt_pages/stock/stockOutRecord'),
855
-  //       name: 'stockOutRecord',
881
+  //       path: '/stock/cancel/detail',
882
+  //       component: () => import('@/xt_pages/stock/cancelStockDetail'),
883
+  //       name: 'cancelStockDetail',
856 884
   //       hidden: true,
857 885
   //       is_menu: false,
858
-  //       meta: {title: 'stockOutRecord'}
859
-  //     },
886
+  //       meta: { title: 'cancelStockDetail', noCache: true }
887
+  //     }
888
+
860 889
   //   ]
861 890
   // },
862 891
   // {

+ 4 - 4
src/views/layout/components/Navbar.vue View File

@@ -41,7 +41,7 @@
41 41
           <span ><i class="icon iconfont icon-manbing-xuanzhong"></i> 慢病管理</span>
42 42
         </a>
43 43
       </div>
44
-      
44
+
45 45
       <div class="system-nav-menu">
46 46
         <a href="http://sso.kuyicloud.com/org/app/create">
47 47
         <!-- <a href="http://testsso.sgjyun.com/org/app/create"> -->
@@ -55,7 +55,7 @@
55 55
         <div class="avatar-wrapper">
56 56
           <img class="user-avatar" :src="avater">
57 57
           <span class="user-title">{{ this.$store.getters.xt_user.user.user_name }}</span>
58
-          <i class="el-icon-caret-bottom"></i>  
58
+          <i class="el-icon-caret-bottom"></i>
59 59
         </div>
60 60
         <el-dropdown-menu slot="dropdown">
61 61
           <el-dropdown-item>
@@ -72,10 +72,10 @@
72 72
 
73 73
       <!-- <screenfull class="screenfull right-menu-item"></screenfull> -->
74 74
       <modify-user-info-dialog ref="modify_user_info_dialog"></modify-user-info-dialog>
75
-      
75
+
76 76
     </div>
77 77
   </el-menu>
78
-</div>  
78
+</div>
79 79
 </template>
80 80
 
81 81
 <script>

+ 23 - 3
src/xt_pages/components/bread-crumb.vue View File

@@ -1,9 +1,13 @@
1 1
 <template>
2 2
     <el-breadcrumb separator="/">
3 3
     <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
4
-    <el-breadcrumb-item><a href="/">活动管理</a></el-breadcrumb-item>
4
+    <template v-for="(crumb, index) in crumbsList" >
5
+      <el-breadcrumb-item v-if="crumb.path" :to="{ path: crumb.path }" :key="index">{{crumb.name}}</el-breadcrumb-item>
6
+      <el-breadcrumb-item v-else :key="index">{{crumb.name}}</el-breadcrumb-item>
7
+    </template>
8
+    <!-- <el-breadcrumb-item><a href="/">活动管理</a></el-breadcrumb-item>
5 9
     <el-breadcrumb-item>活动列表</el-breadcrumb-item>
6
-    <el-breadcrumb-item>活动详情</el-breadcrumb-item>
10
+    <el-breadcrumb-item>活动详情</el-breadcrumb-item> -->
7 11
     </el-breadcrumb>
8 12
 </template>
9 13
 
@@ -12,9 +16,25 @@
12 16
 
13 17
 export default {
14 18
   name: "BreadCrumb",
19
+  props:{
20
+    crumbs:{
21
+        type:Array,
22
+    }
23
+  },
24
+  data(){
25
+      return{
26
+          crumbsList:[
27
+            {path:'/', name:'首页'}
28
+          ],
29
+      }
30
+  }, 
15 31
   components: {
16 32
     // BreadCrumb
17
-  }
33
+  },
34
+  
35
+  created(){
36
+      this.crumbsList = this.crumbs;
37
+  },
18 38
 };
19 39
 </script>
20 40
 

+ 19 - 2
src/xt_pages/dialysis/bulletinBoard.vue View File

@@ -1,26 +1,43 @@
1 1
 <template>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+    </div>
2 6
     <div class="app-container" id="dialysis-board-box" >
3 7
         <el-row>
4 8
             <el-button type="primary" @click="fullscreenboard"> 全屏投影</el-button>
5 9
         </el-row>
6 10
         <bulletinboard></bulletinboard>
7 11
     </div>
12
+ </div>
8 13
 </template>
9 14
 
10 15
 <script>
11 16
 import { getBoards } from "@/api/board";
12 17
 import bulletinboard from "./components/bulletinboard";
13 18
 import { parseTime } from "@/utils";
19
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
14 20
 
15 21
 export default {
16
-    components: { bulletinboard },
17 22
     name: 'bulletinBoard',
23
+    data() {
24
+        return {
25
+        crumbs:[
26
+            {path:false, name:'透析管理'},
27
+            {path:false, name:'数据看板'},
28
+        ],
29
+        }
30
+    },
18 31
     
19 32
     methods:{
20 33
         fullscreenboard:function(){
21 34
             let routeData = this.$router.resolve({ path: '/fullscreenboard'});
22 35
             window.open(routeData.href, '_blank');
23 36
         },
24
-    }
37
+    },
38
+  components: {
39
+      BreadCrumb,
40
+      bulletinboard
41
+  }
25 42
 }
26 43
 </script>

+ 223 - 248
src/xt_pages/qcd/dialysisTotal.vue View File

@@ -1,223 +1,228 @@
1 1
 <template>
2
-  <div class="app-container">
3
-    <div class="cell">
4
-      <label class="title">
5
-        <span class="name">日期查询</span> :
6
-      </label>
7
-      <el-date-picker
8
-        v-model="listQuery.start_time"
9
-        prefix-icon="el-icon-date"
10
-        @change="changeTime"
11
-        :editable="false"
12
-        style="width: 196px;"
13
-        type="date"
14
-        placeholder="选择日期时间"
15
-        align="right"
16
-        :picker-options="pickerOptions"
17
-        format="yyyy-MM-dd"
18
-        value-format="yyyy-MM-dd"
19
-      ></el-date-picker>
20
-      <span class>-</span>
21
-      <el-date-picker
22
-        v-model="listQuery.end_time"
23
-        prefix-icon="el-icon-date"
24
-        @change="changeTime"
25
-        :editable="false"
26
-        style="width: 196px;"
27
-        type="date"
28
-        placeholder="选择日期时间"
29
-        align="right"
30
-        :picker-options="pickerOptions"
31
-        format="yyyy-MM-dd"
32
-        value-format="yyyy-MM-dd"
33
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
34 5
     </div>
35
-    <div class="cell clearfix">
36
-      <label class="title">
37
-        <span class="name">统计方式</span> :
38
-      </label>
39
-      <div class="time">
40
-        <ul class>
41
-          <li
42
-            :class="item.value==statisticalMethod?'active':''"
43
-            @click="selectStatisticalMethod(item.value)"
44
-            v-for="item in statisticalMethods"
45
-            :key="item.value"
46
-          >{{item.label}}</li>
47
-        </ul>
6
+    <div class="app-container">
7
+      <div class="cell">
8
+        <label class="title">
9
+          <span class="name">日期查询</span> :
10
+        </label>
11
+        <el-date-picker
12
+          v-model="listQuery.start_time"
13
+          prefix-icon="el-icon-date"
14
+          @change="changeTime"
15
+          :editable="false"
16
+          style="width: 196px;"
17
+          type="date"
18
+          placeholder="选择日期时间"
19
+          align="right"
20
+          format="yyyy-MM-dd"
21
+          value-format="yyyy-MM-dd"
22
+        ></el-date-picker>
23
+        <span class>-</span>
24
+        <el-date-picker
25
+          v-model="listQuery.end_time"
26
+          prefix-icon="el-icon-date"
27
+          @change="changeTime"
28
+          :editable="false"
29
+          style="width: 196px;"
30
+          type="date"
31
+          placeholder="选择日期时间"
32
+          align="right"
33
+          format="yyyy-MM-dd"
34
+          value-format="yyyy-MM-dd"
35
+        ></el-date-picker>
48 36
       </div>
49
-    </div>
50
-    <div class="cell clearfix">
51
-      <label class="title">
52
-        <span class="name">转归状态</span> :
53
-      </label>
54
-      <div class="time">
55
-        <ul class>
56
-          <li
57
-            :class="item.lapseto==lapsetoType?'active':''"
58
-            @click="selectLapseTo( item.lapseto)"
59
-            v-for="item in lapsetoState"
60
-            :key="item.value"
61
-          >{{item.label}}</li>
62
-        </ul>
37
+      <div class="cell clearfix">
38
+        <label class="title">
39
+          <span class="name">统计方式</span> :
40
+        </label>
41
+        <div class="time">
42
+          <ul class>
43
+            <li
44
+              :class="item.value==statisticalMethod?'active':''"
45
+              @click="selectStatisticalMethod(item.value)"
46
+              v-for="item in statisticalMethods"
47
+              :key="item.value"
48
+            >{{item.label}}</li>
49
+          </ul>
50
+        </div>
51
+      </div>
52
+      <div class="cell clearfix">
53
+        <label class="title">
54
+          <span class="name">转归状态</span> :
55
+        </label>
56
+        <div class="time">
57
+          <ul class>
58
+            <li
59
+              :class="item.lapseto==lapsetoType?'active':''"
60
+              @click="selectLapseTo( item.lapseto)"
61
+              v-for="item in lapsetoState"
62
+              :key="item.value"
63
+            >{{item.label}}</li>
64
+          </ul>
65
+        </div>
63 66
       </div>
64
-    </div>
65 67
 
66
-    <div class="cell">
67
-      <label class="title">
68
-        <span class="name">透析模式</span> :
69
-      </label>
70
-      <el-select v-model="listQuery.mode_id" placeholder="请选择" @change="changeModel()">
71
-        <el-option label="全部" value></el-option>
72
-        <el-option v-for="item in modeOptions" :key="item.id" :label="item.name" :value="item.id"></el-option>
73
-      </el-select>
74
-    </div>
68
+      <div class="cell">
69
+        <label class="title">
70
+          <span class="name">透析模式</span> :
71
+        </label>
72
+        <el-select v-model="listQuery.mode_id" placeholder="请选择" @change="changeModel()">
73
+          <el-option label="全部" value></el-option>
74
+          <el-option v-for="item in modeOptions" :key="item.id" :label="item.name" :value="item.id"></el-option>
75
+        </el-select>
76
+      </div>
75 77
 
76
-    <h4 class="hui">统计图</h4>
77
-    <hr class="huixiao">
78
-    <el-row :gutter="32">
79
-      <el-col :xs="24" :sm="24" :lg="24">
80
-        <div class="chart-wrapper">
81
-            <bar-chart :title="totitle + batotal +'人次'" :options="modesData" />
82
-        </div>
83
-      </el-col>
84
-    </el-row>
78
+      <h4 class="hui">统计图</h4>
79
+      <hr class="huixiao">
80
+      <el-row :gutter="32">
81
+        <el-col :xs="24" :sm="24" :lg="24">
82
+          <div class="chart-wrapper">
83
+              <bar-chart :title="totitle + batotal +'人次'" :options="modesData" />
84
+          </div>
85
+        </el-col>
86
+      </el-row>
85 87
 
86
-    <h4 class="hui">统计表</h4>
87
-    <hr class="huixiao">
88
-    <el-table
89
-      ref="multipleTable"
90
-      :data="tableData"
91
-      border
92
-      fit
93
-      highlight-current-row
94
-      style="width: 100%;margin-top: 10px;"
95
-    >
96
-      <el-table-column label="日期" min-width="80" property="date" align="center"></el-table-column>
97
-      <el-table-column
98
-        :label="modeOptions[1].name"
99
-        v-if="listQuery.mode_id==1||listQuery.mode_id==''"
100
-        property="data[1].number"
101
-        align="center"
102
-      ></el-table-column>
103
-      <el-table-column
104
-        :label="modeOptions[2].name"
105
-        v-if="listQuery.mode_id==2||listQuery.mode_id==''"
106
-        property="data[2].number"
107
-        align="center"
108
-      ></el-table-column>
109
-      <el-table-column
110
-        :label="modeOptions[3].name"
111
-        v-if="listQuery.mode_id==3||listQuery.mode_id==''"
112
-        property="data[3].number"
113
-        align="center"
114
-      ></el-table-column>
115
-      <el-table-column
116
-        :label="modeOptions[4].name"
117
-        v-if="listQuery.mode_id==4||listQuery.mode_id==''"
118
-        property="data[4].number"
119
-        align="center"
120
-      ></el-table-column>
121
-      <el-table-column
122
-        :label="modeOptions[5].name"
123
-        v-if="listQuery.mode_id==5||listQuery.mode_id==''"
124
-        property="data[5].number"
125
-        align="center"
126
-      ></el-table-column>
127
-      <el-table-column
128
-        :label="modeOptions[6].name"
129
-        v-if="listQuery.mode_id==6||listQuery.mode_id==''"
130
-        property="data[6].number"
131
-        align="center"
132
-      ></el-table-column>
133
-      <el-table-column
134
-        :label="modeOptions[7].name"
135
-        v-if="listQuery.mode_id==7||listQuery.mode_id==''"
136
-        property="data[7].number"
137
-        align="center"
138
-      ></el-table-column>
139
-      <el-table-column
140
-        :label="modeOptions[8].name"
141
-        v-if="listQuery.mode_id==8||listQuery.mode_id==''"
142
-        property="data[8].number"
143
-        align="center"
144
-      ></el-table-column>
145
-      <el-table-column
146
-        :label="modeOptions[9].name"
147
-        v-if="listQuery.mode_id==9||listQuery.mode_id==''"
148
-        property="data[9].number"
149
-        align="center"
150
-      ></el-table-column>
151
-      <el-table-column
152
-        :label="modeOptions[10].name"
153
-        v-if="listQuery.mode_id==10||listQuery.mode_id==''"
154
-        property="data[10].number"
155
-        align="center"
156
-      ></el-table-column>
157
-      <el-table-column
158
-        :label="modeOptions[11].name"
159
-        v-if="listQuery.mode_id==11||listQuery.mode_id==''"
160
-        property="data[11].number"
161
-        align="center"
162
-      ></el-table-column>
163
-      <el-table-column
164
-        :label="modeOptions[12].name"
165
-        v-if="listQuery.mode_id==12||listQuery.mode_id==''"
166
-        property="data[12].number"
167
-        align="center"
168
-      ></el-table-column>
169
-      <el-table-column
170
-        :label="modeOptions[13].name"
171
-        v-if="listQuery.mode_id==13||listQuery.mode_id==''"
172
-        property="data[13].number"
173
-        align="center"
174
-      ></el-table-column>
175
-      <el-table-column
176
-        :label="modeOptions[14].name"
177
-        v-if="listQuery.mode_id==14||listQuery.mode_id==''"
178
-        property="data[14].number"
179
-        align="center"
180
-      ></el-table-column>
181
-      <el-table-column
182
-        :label="modeOptions[15].name"
183
-        v-if="listQuery.mode_id==15||listQuery.mode_id==''"
184
-        property="data[15].number"
185
-        align="center"
186
-      ></el-table-column>
187
-      <el-table-column
188
-        :label="modeOptions[16].name"
189
-        v-if="listQuery.mode_id==16||listQuery.mode_id==''"
190
-        property="data[16].number"
191
-        align="center"
192
-      ></el-table-column>
193
-      <el-table-column
194
-        :label="modeOptions[17].name"
195
-        v-if="listQuery.mode_id==17||listQuery.mode_id==''"
196
-        property="data[17].number"
197
-        align="center"
198
-      ></el-table-column>
199
-      <el-table-column
200
-        :label="modeOptions[18].name"
201
-        v-if="listQuery.mode_id==18||listQuery.mode_id==''"
202
-        property="data[18].number"
203
-        align="center"
204
-      ></el-table-column>
205
-      <el-table-column label="总数" min-width="80" property="total" align="center"></el-table-column>
206
-    </el-table>
88
+      <h4 class="hui">统计表</h4>
89
+      <hr class="huixiao">
90
+      <el-table
91
+        ref="multipleTable"
92
+        :data="tableData"
93
+        border
94
+        fit
95
+        highlight-current-row
96
+        style="width: 100%;margin-top: 10px;"
97
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
98
+      >
99
+        <el-table-column label="日期" min-width="80" property="date" align="center"></el-table-column>
100
+        <el-table-column
101
+          :label="modeOptions[1].name"
102
+          v-if="listQuery.mode_id==1||listQuery.mode_id==''"
103
+          property="data[1].number"
104
+          align="center"
105
+        ></el-table-column>
106
+        <el-table-column
107
+          :label="modeOptions[2].name"
108
+          v-if="listQuery.mode_id==2||listQuery.mode_id==''"
109
+          property="data[2].number"
110
+          align="center"
111
+        ></el-table-column>
112
+        <el-table-column
113
+          :label="modeOptions[3].name"
114
+          v-if="listQuery.mode_id==3||listQuery.mode_id==''"
115
+          property="data[3].number"
116
+          align="center"
117
+        ></el-table-column>
118
+        <el-table-column
119
+          :label="modeOptions[4].name"
120
+          v-if="listQuery.mode_id==4||listQuery.mode_id==''"
121
+          property="data[4].number"
122
+          align="center"
123
+        ></el-table-column>
124
+        <el-table-column
125
+          :label="modeOptions[5].name"
126
+          v-if="listQuery.mode_id==5||listQuery.mode_id==''"
127
+          property="data[5].number"
128
+          align="center"
129
+        ></el-table-column>
130
+        <el-table-column
131
+          :label="modeOptions[6].name"
132
+          v-if="listQuery.mode_id==6||listQuery.mode_id==''"
133
+          property="data[6].number"
134
+          align="center"
135
+        ></el-table-column>
136
+        <el-table-column
137
+          :label="modeOptions[7].name"
138
+          v-if="listQuery.mode_id==7||listQuery.mode_id==''"
139
+          property="data[7].number"
140
+          align="center"
141
+        ></el-table-column>
142
+        <el-table-column
143
+          :label="modeOptions[8].name"
144
+          v-if="listQuery.mode_id==8||listQuery.mode_id==''"
145
+          property="data[8].number"
146
+          align="center"
147
+        ></el-table-column>
148
+        <el-table-column
149
+          :label="modeOptions[9].name"
150
+          v-if="listQuery.mode_id==9||listQuery.mode_id==''"
151
+          property="data[9].number"
152
+          align="center"
153
+        ></el-table-column>
154
+        <el-table-column
155
+          :label="modeOptions[10].name"
156
+          v-if="listQuery.mode_id==10||listQuery.mode_id==''"
157
+          property="data[10].number"
158
+          align="center"
159
+        ></el-table-column>
160
+        <el-table-column
161
+          :label="modeOptions[11].name"
162
+          v-if="listQuery.mode_id==11||listQuery.mode_id==''"
163
+          property="data[11].number"
164
+          align="center"
165
+        ></el-table-column>
166
+        <el-table-column
167
+          :label="modeOptions[12].name"
168
+          v-if="listQuery.mode_id==12||listQuery.mode_id==''"
169
+          property="data[12].number"
170
+          align="center"
171
+        ></el-table-column>
172
+        <el-table-column
173
+          :label="modeOptions[13].name"
174
+          v-if="listQuery.mode_id==13||listQuery.mode_id==''"
175
+          property="data[13].number"
176
+          align="center"
177
+        ></el-table-column>
178
+        <el-table-column
179
+          :label="modeOptions[14].name"
180
+          v-if="listQuery.mode_id==14||listQuery.mode_id==''"
181
+          property="data[14].number"
182
+          align="center"
183
+        ></el-table-column>
184
+        <el-table-column
185
+          :label="modeOptions[15].name"
186
+          v-if="listQuery.mode_id==15||listQuery.mode_id==''"
187
+          property="data[15].number"
188
+          align="center"
189
+        ></el-table-column>
190
+        <el-table-column
191
+          :label="modeOptions[16].name"
192
+          v-if="listQuery.mode_id==16||listQuery.mode_id==''"
193
+          property="data[16].number"
194
+          align="center"
195
+        ></el-table-column>
196
+        <el-table-column
197
+          :label="modeOptions[17].name"
198
+          v-if="listQuery.mode_id==17||listQuery.mode_id==''"
199
+          property="data[17].number"
200
+          align="center"
201
+        ></el-table-column>
202
+        <el-table-column
203
+          :label="modeOptions[18].name"
204
+          v-if="listQuery.mode_id==18||listQuery.mode_id==''"
205
+          property="data[18].number"
206
+          align="center"
207
+        ></el-table-column>
208
+        <el-table-column label="总数" min-width="80" property="total" align="center"></el-table-column>
209
+      </el-table>
207 210
 
208
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
211
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
209 212
 
210
-    <el-pagination
211
-      @size-change="handleSizeChange"
212
-      @current-change="handleCurrentChange"
213
-      :current-page="listQuery.pate"
214
-      :page-sizes="[10, 20, 50, 100]"
215
-      :page-size="10"
216
-      background
217
-      style="margin-top:20px;"
218
-      layout="total, sizes, prev, pager, next, jumper"
219
-      :total="total"
220
-    ></el-pagination>
213
+      <el-pagination
214
+        align="right"
215
+        @size-change="handleSizeChange"
216
+        @current-change="handleCurrentChange"
217
+        :current-page="listQuery.pate"
218
+        :page-sizes="[10, 20, 50, 100]"
219
+        :page-size="10"
220
+        background
221
+        style="margin-top:20px;"
222
+        layout="total, sizes, prev, pager, next, jumper"
223
+        :total="total"
224
+      ></el-pagination>
225
+    </div>
221 226
   </div>
222 227
 </template>
223 228
 
@@ -225,10 +230,15 @@
225 230
 <script>
226 231
 import { getdialysistotaldata } from "@/api/qcd";
227 232
 import BarChart from "./components/BarChart";
233
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
228 234
 export default {
229 235
   name: "dialysisTotal",
230 236
   data() {
231 237
     return {
238
+      crumbs:[
239
+        {path:false, name:'科室质控'},
240
+        {path:'/qcd/dialysistotal', name:'透析总量'},
241
+      ],
232 242
       total: 0,
233 243
       totitle:'全部',
234 244
       batotal:0,
@@ -259,38 +269,6 @@ export default {
259 269
         { value: 1, label: "转出", source: 0, lapseto: 2 },
260 270
         { value: 2, label: "留治", source: 0, lapseto: 1 }
261 271
       ],
262
-      pickerOptions: {
263
-        shortcuts: [
264
-          {
265
-            text: "今天",
266
-            onClick(picker) {
267
-              picker.$emit("pick", new Date());
268
-            }
269
-          },
270
-          {
271
-            text: "昨天",
272
-            onClick(picker) {
273
-              const date = new Date();
274
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
275
-              picker.$emit("pick", date);
276
-            }
277
-          },
278
-          {
279
-            text: "一周前",
280
-            onClick(picker) {
281
-              const date = new Date();
282
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
283
-              picker.$emit("pick", date);
284
-            }
285
-          },
286
-          {
287
-            text: "清空",
288
-            onClick(picker) {
289
-              picker.$emit("pick");
290
-            }
291
-          }
292
-        ]
293
-      }
294 272
     };
295 273
   },
296 274
   created() {
@@ -417,7 +395,8 @@ export default {
417 395
     }
418 396
   },
419 397
   components: {
420
-    BarChart
398
+    BarChart,
399
+    BreadCrumb
421 400
   }
422 401
 };
423 402
 </script>
@@ -425,7 +404,6 @@ export default {
425 404
 <style rel="stylesheet/scss" lang="scss" scoped>
426 405
 .app-container {
427 406
 //   margin: 20px;
428
-    margin-bottom: 50px;
429 407
   font-size: 15px;
430 408
   .filter-container {
431 409
     padding-bottom: 5px;
@@ -437,9 +415,6 @@ export default {
437 415
   .huixiao {
438 416
     border: solid 1px #ebeef5;
439 417
   }
440
-  .el-pagination {
441
-    float: right !important;
442
-  }
443 418
   .search-component {
444 419
     width: 500px;
445 420
     .searchBox {

+ 142 - 166
src/xt_pages/qcd/outcomeIndicators/control.vue View File

@@ -1,141 +1,146 @@
1 1
 <template>
2
-  <div class="app-container">
3
-    <el-tabs v-model="tabActiveName" @tab-click="handleTabClick">
4
-        <el-tab-pane label="指标控制" name="control"></el-tab-pane>
5
-        <el-tab-pane label="指标查询" name="query"></el-tab-pane>
6
-    </el-tabs>
7
-
8
-    <div class="cell">
9
-      <label class="title">
10
-        <span class="name">日期查询</span> :
11
-      </label>
12
-      <el-date-picker
13
-        v-model="listQuery.start_time"
14
-        prefix-icon="el-icon-date"
15
-        @change="changeTime"
16
-        :editable="false"
17
-        style="width: 196px;"
18
-        type="date"
19
-        placeholder="选择日期时间"
20
-        align="right"
21
-        :picker-options="pickerOptions"
22
-        format="yyyy-MM-dd"
23
-        value-format="yyyy-MM-dd"
24
-      ></el-date-picker>
25
-      <span class>-</span>
26
-      <el-date-picker
27
-        v-model="listQuery.end_time"
28
-        prefix-icon="el-icon-date"
29
-        @change="changeTime"
30
-        :editable="false"
31
-        style="width: 196px;"
32
-        type="date"
33
-        placeholder="选择日期时间"
34
-        align="right"
35
-        :picker-options="pickerOptions"
36
-        format="yyyy-MM-dd"
37
-        value-format="yyyy-MM-dd"
38
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
39 5
     </div>
40
-    <div class="cell clearfix">
41
-      <label class="title">
42
-        <span class="name">透析龄</span> :
43
-      </label>
44
-      <div class="time">
45
-        <ul class>
46
-          <li
47
-            :class="item.value==dialysisAge?'active':''"
48
-            @click="selectdialysisAges(item.value)"
49
-            v-for="item in dialysisAgeOptions"
50
-            :key="item.value"
51
-          >{{item.label}}</li>
52
-        </ul>
6
+    <div class="app-container">
7
+      <el-tabs v-model="tabActiveName" @tab-click="handleTabClick">
8
+          <el-tab-pane label="指标控制" name="control"></el-tab-pane>
9
+          <el-tab-pane label="指标查询" name="query"></el-tab-pane>
10
+      </el-tabs>
11
+
12
+      <div class="cell">
13
+        <label class="title">
14
+          <span class="name">日期查询</span> :
15
+        </label>
16
+        <el-date-picker
17
+          v-model="listQuery.start_time"
18
+          prefix-icon="el-icon-date"
19
+          @change="changeTime"
20
+          :editable="false"
21
+          style="width: 196px;"
22
+          type="date"
23
+          placeholder="选择日期时间"
24
+          align="right"
25
+          format="yyyy-MM-dd"
26
+          value-format="yyyy-MM-dd"
27
+        ></el-date-picker>
28
+        <span class>-</span>
29
+        <el-date-picker
30
+          v-model="listQuery.end_time"
31
+          prefix-icon="el-icon-date"
32
+          @change="changeTime"
33
+          :editable="false"
34
+          style="width: 196px;"
35
+          type="date"
36
+          placeholder="选择日期时间"
37
+          align="right"
38
+          format="yyyy-MM-dd"
39
+          value-format="yyyy-MM-dd"
40
+        ></el-date-picker>
53 41
       </div>
54
-    </div>
55
-    <div class="cell clearfix">
56
-      <label class="title">
57
-        <span class="name">转归状态</span> :
58
-      </label>
59
-      <div class="time">
60
-        <ul class>
61
-          <li
62
-            :class="item.lapseto==lapsetoType?'active':''"
63
-            @click="selectLapseTo( item.lapseto)"
64
-            v-for="item in lapsetoState"
65
-            :key="item.value"
66
-          >{{item.label}}</li>
67
-        </ul>
42
+      <div class="cell clearfix">
43
+        <label class="title">
44
+          <span class="name">透析龄</span> :
45
+        </label>
46
+        <div class="time">
47
+          <ul class>
48
+            <li
49
+              :class="item.value==dialysisAge?'active':''"
50
+              @click="selectdialysisAges(item.value)"
51
+              v-for="item in dialysisAgeOptions"
52
+              :key="item.value"
53
+            >{{item.label}}</li>
54
+          </ul>
55
+        </div>
56
+      </div>
57
+      <div class="cell clearfix">
58
+        <label class="title">
59
+          <span class="name">转归状态</span> :
60
+        </label>
61
+        <div class="time">
62
+          <ul class>
63
+            <li
64
+              :class="item.lapseto==lapsetoType?'active':''"
65
+              @click="selectLapseTo( item.lapseto)"
66
+              v-for="item in lapsetoState"
67
+              :key="item.value"
68
+            >{{item.label}}</li>
69
+          </ul>
70
+        </div>
68 71
       </div>
69
-    </div>
70 72
 
71
-    <div class="cell">
72
-      <label class="title">
73
-        <span class="name">检验项目</span> :
74
-      </label>
75
-      <el-select v-model="listQuery.project_id" placeholder="请选择" @change="changeModel()">
76
-        <el-option label="全部" value=""></el-option>
77
-        <el-option v-for="item in projectOptions" :key="item.project_id" :label="item.project_name" :value="item.project_id"></el-option>
78
-      </el-select>
79
-      &nbsp;&nbsp;&nbsp;&nbsp;
80
-      <label class="title">
81
-        <span class="name">监测指标</span> :
82
-      </label>
83
-      <el-select v-model="listQuery.item_id" placeholder="请选择" @change="changeItem()">
84
-        <el-option label="全部" value=""></el-option>
85
-        <el-option v-for="item in itemOptions" :key="item.id" :label="item.item_name" :value="item.id"></el-option>
86
-      </el-select>
87
-    </div>
73
+      <div class="cell">
74
+        <label class="title">
75
+          <span class="name">检验项目</span> :
76
+        </label>
77
+        <el-select v-model="listQuery.project_id" placeholder="请选择" @change="changeModel()">
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>
80
+        </el-select>
81
+        &nbsp;&nbsp;&nbsp;&nbsp;
82
+        <label class="title">
83
+          <span class="name">监测指标</span> :
84
+        </label>
85
+        <el-select v-model="listQuery.item_id" placeholder="请选择" @change="changeItem()">
86
+          <el-option label="全部" value=""></el-option>
87
+          <el-option v-for="item in itemOptions" :key="item.id" :label="item.item_name" :value="item.id"></el-option>
88
+        </el-select>
89
+      </div>
88 90
 
89
-    <h4 class="hui">统计图</h4>
90
-    <hr class="huixiao">
91
-    <el-row :gutter="32">
92
-      <el-col :xs="24" :sm="24" :lg="24">
93
-        <div class="chart-wrapper">
94
-            <pie-chart title="" :options="CompletionOptions"/>
95
-        </div>
96
-      </el-col>
97
-    </el-row>
91
+      <h4 class="hui">统计图</h4>
92
+      <hr class="huixiao">
93
+      <el-row :gutter="32">
94
+        <el-col :xs="24" :sm="24" :lg="24">
95
+          <div class="chart-wrapper">
96
+              <pie-chart title="" :options="CompletionOptions"/>
97
+          </div>
98
+        </el-col>
99
+      </el-row>
98 100
 
99
-    <h4 class="hui">统计表</h4>
100
-    <hr class="huixiao">
101
-    <el-table
102
-      ref="multipleTable"
103
-      :data="tableData"
104
-      id="oictable"
105
-      border
106
-      fit
107
-      highlight-current-row
108
-      style="width: 100%;margin-top: 10px;"
109
-    >
110
-      
111
-      <el-table-column fixed label="透析号" width="80" property="patient_id" align="center">
112
-        <template slot-scope="scope"><span>{{getPatientDialysisNo(scope.row.patient_id)}}</span></template>
113
-      </el-table-column>
114
-      <el-table-column fixed label="姓名" width="100" property="patient_id" align="center">
115
-        <template slot-scope="scope"><span>{{getPatientName(scope.row.patient_id)}}</span></template>
116
-      </el-table-column>
117
-      <el-table-column fixed label="检查日期" width="100" property="inspect_date" align="center">
118
-        <template slot-scope="scope"><span>{{getTime(scope.row.inspect_date, '{y}{m}{d}')}}</span></template>
119
-      </el-table-column>
120
-      
121
-      <el-table-column :label="reference.item_name+'//'+reference.unit" min-width="120" align="center" v-if="showTableColumn(reference)" v-for="(reference, index) in references" :key="index"  :render-header="renderheader">
122
-        <template slot-scope="scope"><span>{{getItemVulue(reference.project_id, reference.id, scope.row)}}</span></template>
123
-      </el-table-column>
124
-    </el-table>
101
+      <h4 class="hui">统计表</h4>
102
+      <hr class="huixiao">
103
+      <el-table
104
+        ref="multipleTable"
105
+        :data="tableData"
106
+        id="oictable"
107
+        border
108
+        fit
109
+        highlight-current-row
110
+        style="width: 100%;margin-top: 10px;"
111
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
112
+      >
113
+        
114
+        <el-table-column fixed label="透析号" width="80" property="patient_id" align="center">
115
+          <template slot-scope="scope"><span>{{getPatientDialysisNo(scope.row.patient_id)}}</span></template>
116
+        </el-table-column>
117
+        <el-table-column fixed label="姓名" width="100" property="patient_id" align="center">
118
+          <template slot-scope="scope"><span>{{getPatientName(scope.row.patient_id)}}</span></template>
119
+        </el-table-column>
120
+        <el-table-column fixed label="检查日期" width="100" property="inspect_date" align="center">
121
+          <template slot-scope="scope"><span>{{getTime(scope.row.inspect_date, '{y}{m}{d}')}}</span></template>
122
+        </el-table-column>
123
+        
124
+        <el-table-column :label="reference.item_name+'//'+reference.unit" min-width="120" align="center" v-if="showTableColumn(reference)" v-for="(reference, index) in references" :key="index"  :render-header="renderheader">
125
+          <template slot-scope="scope"><span>{{getItemVulue(reference.project_id, reference.id, scope.row)}}</span></template>
126
+        </el-table-column>
127
+      </el-table>
125 128
 
126
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
129
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
127 130
 
128
-    <el-pagination
129
-      @size-change="handleSizeChange"
130
-      @current-change="handleCurrentChange"
131
-      :current-page="listQuery.pate"
132
-      :page-sizes="[10, 20, 50, 100]"
133
-      :page-size="10"
134
-      background
135
-      style="margin-top:20px;"
136
-      layout="total, sizes, prev, pager, next, jumper"
137
-      :total="total"
138
-    ></el-pagination>
131
+      <el-pagination
132
+        align="right"
133
+        @size-change="handleSizeChange"
134
+        @current-change="handleCurrentChange"
135
+        :current-page="listQuery.pate"
136
+        :page-sizes="[10, 20, 50, 100]"
137
+        :page-size="10"
138
+        background
139
+        style="margin-top:20px;"
140
+        layout="total, sizes, prev, pager, next, jumper"
141
+        :total="total"
142
+      ></el-pagination>
143
+    </div>
139 144
   </div>
140 145
 </template>
141 146
 
@@ -144,10 +149,16 @@
144 149
 import { GetOICData  } from "@/api/qcd";
145 150
 import PieChart from '../components/PieChart'
146 151
 import {uParseTime} from "@/utils/tools";
152
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
147 153
 export default {
148 154
   name: "dialysisTotal",
149 155
   data() {
150 156
     return {
157
+      crumbs:[
158
+        {path:false, name:'科室质控'},
159
+        {path:false, name:'结果指标'},
160
+        {path:false, name:'指标控制'},
161
+      ],
151 162
       tabActiveName:'control',
152 163
       total: 0,
153 164
       projectOptions:{},
@@ -181,38 +192,6 @@ export default {
181 192
         { value: 1, label: "大于三个月" },
182 193
         { value: 2, label: "小于三个月" }
183 194
       ],
184
-      pickerOptions: {
185
-        shortcuts: [
186
-          {
187
-            text: "今天",
188
-            onClick(picker) {
189
-              picker.$emit("pick", new Date());
190
-            }
191
-          },
192
-          {
193
-            text: "昨天",
194
-            onClick(picker) {
195
-              const date = new Date();
196
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
197
-              picker.$emit("pick", date);
198
-            }
199
-          },
200
-          {
201
-            text: "一周前",
202
-            onClick(picker) {
203
-              const date = new Date();
204
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
205
-              picker.$emit("pick", date);
206
-            }
207
-          },
208
-          {
209
-            text: "清空",
210
-            onClick(picker) {
211
-              picker.$emit("pick");
212
-            }
213
-          }
214
-        ]
215
-      }
216 195
     };
217 196
   },
218 197
   created() {
@@ -390,7 +369,8 @@ export default {
390 369
     }
391 370
   },
392 371
   components: {
393
-      PieChart
372
+    PieChart,
373
+    BreadCrumb
394 374
   }
395 375
 };
396 376
 </script>
@@ -404,7 +384,6 @@ export default {
404 384
 <style rel="stylesheet/scss" lang="scss" scoped>
405 385
 .app-container {
406 386
 //   margin: 20px;
407
-    margin-bottom: 50px;
408 387
   font-size: 15px;
409 388
   .filter-container {
410 389
     padding-bottom: 5px;
@@ -416,9 +395,6 @@ export default {
416 395
   .huixiao {
417 396
     border: solid 1px #ebeef5;
418 397
   }
419
-  .el-pagination {
420
-    float: right !important;
421
-  }
422 398
   .search-component {
423 399
     width: 500px;
424 400
     .searchBox {

+ 109 - 133
src/xt_pages/qcd/outcomeIndicators/query.vue View File

@@ -1,106 +1,111 @@
1 1
 <template>
2
-  <div class="app-container" id="outcome-indicators-query">
3
-    <el-tabs v-model="tabActiveName" @tab-click="handleTabClick">
4
-        <el-tab-pane label="指标控制" name="control"></el-tab-pane>
5
-        <el-tab-pane label="指标查询" name="query"></el-tab-pane>
6
-    </el-tabs>
7
-
8
-    <div class="cell">
9
-      <el-form :inline="true" :model="listQuery" >
10
-        <el-form-item label="">
11
-          <el-input v-model="listQuery.search" placeholder="姓名/透析号"></el-input>
12
-        </el-form-item>
13
-        <el-form-item>
14
-          <el-button type="primary" @click="onSearch">搜索</el-button>
15
-        </el-form-item>
16
-      </el-form>
17
-    </div>
18
-    <div class="cell">
19
-      <label class="title">
20
-        <span class="name">日期查询</span> :
21
-      </label>
22
-      <el-date-picker
23
-        v-model="listQuery.start_time"
24
-        prefix-icon="el-icon-date"
25
-        @change="changeTime"
26
-        :editable="false"
27
-        style="width: 196px;"
28
-        type="date"
29
-        placeholder="选择日期时间"
30
-        align="right"
31
-        :picker-options="pickerOptions"
32
-        format="yyyy-MM-dd"
33
-        value-format="yyyy-MM-dd"
34
-      ></el-date-picker>
35
-      <span class>-</span>
36
-      <el-date-picker
37
-        v-model="listQuery.end_time"
38
-        prefix-icon="el-icon-date"
39
-        @change="changeTime"
40
-        :editable="false"
41
-        style="width: 196px;"
42
-        type="date"
43
-        placeholder="选择日期时间"
44
-        align="right"
45
-        :picker-options="pickerOptions"
46
-        format="yyyy-MM-dd"
47
-        value-format="yyyy-MM-dd"
48
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
49 5
     </div>
6
+    <div class="app-container" id="outcome-indicators-query">
7
+      <el-tabs v-model="tabActiveName" @tab-click="handleTabClick">
8
+          <el-tab-pane label="指标控制" name="control"></el-tab-pane>
9
+          <el-tab-pane label="指标查询" name="query"></el-tab-pane>
10
+      </el-tabs>
50 11
 
51
-    <div class="cell">
52
-      <label class="title">
53
-        <span class="name">检验项目</span> :
54
-      </label>
55
-      <el-select v-model="listQuery.project_id" placeholder="请选择" @change="changeModel()">
56
-        <el-option v-for="item in projectOptions" :key="item.project_id" :label="item.project_name" :value="item.project_id"></el-option>
57
-      </el-select>
58
-    </div>
12
+      <div class="cell">
13
+        <el-form :inline="true" :model="listQuery" >
14
+          <el-form-item label="">
15
+            <el-input v-model="listQuery.search" placeholder="姓名/透析号"></el-input>
16
+          </el-form-item>
17
+          <el-form-item>
18
+            <el-button type="primary" @click="onSearch">搜索</el-button>
19
+          </el-form-item>
20
+        </el-form>
21
+      </div>
22
+      <div class="cell">
23
+        <label class="title">
24
+          <span class="name">日期查询</span> :
25
+        </label>
26
+        <el-date-picker
27
+          v-model="listQuery.start_time"
28
+          prefix-icon="el-icon-date"
29
+          @change="changeTime"
30
+          :editable="false"
31
+          style="width: 196px;"
32
+          type="date"
33
+          placeholder="选择日期时间"
34
+          align="right"
35
+          format="yyyy-MM-dd"
36
+          value-format="yyyy-MM-dd"
37
+        ></el-date-picker>
38
+        <span class>-</span>
39
+        <el-date-picker
40
+          v-model="listQuery.end_time"
41
+          prefix-icon="el-icon-date"
42
+          @change="changeTime"
43
+          :editable="false"
44
+          style="width: 196px;"
45
+          type="date"
46
+          placeholder="选择日期时间"
47
+          align="right"
48
+          format="yyyy-MM-dd"
49
+          value-format="yyyy-MM-dd"
50
+        ></el-date-picker>
51
+      </div>
59 52
 
60
-    <h4 class="hui">统计表</h4>
61
-    <hr class="huixiao">
62
-    <el-table
63
-      ref="multipleTable"
64
-      :data="tableData"
65
-      id="oictable"
66
-      border
67
-      fit
68
-      highlight-current-row
69
-      style="width: 100%;margin-top: 10px;"
70
-    >
71
-      
72
-      <el-table-column fixed label="透析号" width="80" property="patient_id" align="center">
73
-        <template slot-scope="scope"><span>{{getPatientDialysisNo(scope.row.patient_id)}}</span></template>
74
-      </el-table-column>
75
-      <el-table-column fixed label="姓名" width="100" property="patient_id" align="center">
76
-        <template slot-scope="scope"><span>{{getPatientName(scope.row.patient_id)}}</span></template>
77
-      </el-table-column>
78
-      <el-table-column fixed label="性别" width="100" property="patient_id" align="center">
79
-        <template slot-scope="scope"><span>{{getPatientGender(scope.row.patient_id)}}</span></template>
80
-      </el-table-column>
81
-      
82
-      <el-table-column fixed label="检查日期" width="100" property="inspect_date" align="center">
83
-        <template slot-scope="scope"><span>{{getTime(scope.row.inspect_date, '{y}{m}{d}')}}</span></template>
84
-      </el-table-column>
85
-      
86
-      <el-table-column :label="reference.item_name+'//'+reference.unit" min-width="120" align="center" v-if="showTableColumn(reference)" v-for="(reference, index) in references" :key="index"  :render-header="renderheader">
87
-        <template slot-scope="scope"><span>{{getItemVulue(reference.project_id, reference.id, scope.row)}}</span></template>
88
-      </el-table-column>
89
-    </el-table>
53
+      <div class="cell">
54
+        <label class="title">
55
+          <span class="name">检验项目</span> :
56
+        </label>
57
+        <el-select v-model="listQuery.project_id" placeholder="请选择" @change="changeModel()">
58
+          <el-option v-for="item in projectOptions" :key="item.project_id" :label="item.project_name" :value="item.project_id"></el-option>
59
+        </el-select>
60
+      </div>
90 61
 
91
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
62
+      <h4 class="hui">统计表</h4>
63
+      <hr class="huixiao">
64
+      <el-table
65
+        ref="multipleTable"
66
+        :data="tableData"
67
+        id="oictable"
68
+        border
69
+        fit
70
+        highlight-current-row
71
+        style="width: 100%;margin-top: 10px;"
72
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
73
+      >
74
+        
75
+        <el-table-column fixed label="透析号" width="80" property="patient_id" align="center">
76
+          <template slot-scope="scope"><span>{{getPatientDialysisNo(scope.row.patient_id)}}</span></template>
77
+        </el-table-column>
78
+        <el-table-column fixed label="姓名" width="100" property="patient_id" align="center">
79
+          <template slot-scope="scope"><span>{{getPatientName(scope.row.patient_id)}}</span></template>
80
+        </el-table-column>
81
+        <el-table-column fixed label="性别" width="100" property="patient_id" align="center">
82
+          <template slot-scope="scope"><span>{{getPatientGender(scope.row.patient_id)}}</span></template>
83
+        </el-table-column>
84
+        
85
+        <el-table-column fixed label="检查日期" width="100" property="inspect_date" align="center">
86
+          <template slot-scope="scope"><span>{{getTime(scope.row.inspect_date, '{y}{m}{d}')}}</span></template>
87
+        </el-table-column>
88
+        
89
+        <el-table-column :label="reference.item_name+'//'+reference.unit" min-width="120" align="center" v-if="showTableColumn(reference)" v-for="(reference, index) in references" :key="index"  :render-header="renderheader">
90
+          <template slot-scope="scope"><span>{{getItemVulue(reference.project_id, reference.id, scope.row)}}</span></template>
91
+        </el-table-column>
92
+      </el-table>
92 93
 
93
-    <el-pagination
94
-      @size-change="handleSizeChange"
95
-      @current-change="handleCurrentChange"
96
-      :current-page="listQuery.pate"
97
-      :page-sizes="[10, 20, 50, 100]"
98
-      :page-size="10"
99
-      background
100
-      style="margin-top:20px;"
101
-      layout="total, sizes, prev, pager, next, jumper"
102
-      :total="total"
103
-    ></el-pagination>
94
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
95
+
96
+      <el-pagination
97
+        align="right"
98
+        @size-change="handleSizeChange"
99
+        @current-change="handleCurrentChange"
100
+        :current-page="listQuery.pate"
101
+        :page-sizes="[10, 20, 50, 100]"
102
+        :page-size="10"
103
+        background
104
+        style="margin-top:20px;"
105
+        layout="total, sizes, prev, pager, next, jumper"
106
+        :total="total"
107
+      ></el-pagination>
108
+    </div>
104 109
   </div>
105 110
 </template>
106 111
 
@@ -108,10 +113,16 @@
108 113
 <script>
109 114
 import { GetOIQData  } from "@/api/qcd";
110 115
 import {uParseTime} from "@/utils/tools";
116
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
111 117
 export default {
112 118
   name: "dialysisTotal",
113 119
   data() {
114 120
     return {
121
+      crumbs:[
122
+        {path:false, name:'科室质控'},
123
+        {path:false, name:'结果指标'},
124
+        {path:false, name:'指标查询'},
125
+      ],
115 126
       tabActiveName:'query',
116 127
       total: 0,
117 128
       projectOptions:{},
@@ -132,38 +143,6 @@ export default {
132 143
         { value: 1, label: "转出", source: 0, lapseto: 2 },
133 144
         { value: 2, label: "留治", source: 0, lapseto: 1 }
134 145
       ],
135
-      pickerOptions: {
136
-        shortcuts: [
137
-          {
138
-            text: "今天",
139
-            onClick(picker) {
140
-              picker.$emit("pick", new Date());
141
-            }
142
-          },
143
-          {
144
-            text: "昨天",
145
-            onClick(picker) {
146
-              const date = new Date();
147
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
148
-              picker.$emit("pick", date);
149
-            }
150
-          },
151
-          {
152
-            text: "一周前",
153
-            onClick(picker) {
154
-              const date = new Date();
155
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
156
-              picker.$emit("pick", date);
157
-            }
158
-          },
159
-          {
160
-            text: "清空",
161
-            onClick(picker) {
162
-              picker.$emit("pick");
163
-            }
164
-          }
165
-        ]
166
-      }
167 146
     };
168 147
   },
169 148
   created() {
@@ -315,6 +294,7 @@ export default {
315 294
     }
316 295
   },
317 296
   components: {
297
+    BreadCrumb
318 298
   }
319 299
 };
320 300
 </script>
@@ -331,7 +311,6 @@ export default {
331 311
 <style rel="stylesheet/scss" lang="scss" scoped>
332 312
 .app-container {
333 313
 //   margin: 20px;
334
-    margin-bottom: 50px;
335 314
   font-size: 15px;
336 315
   .filter-container {
337 316
     padding-bottom: 5px;
@@ -343,9 +322,6 @@ export default {
343 322
   .huixiao {
344 323
     border: solid 1px #ebeef5;
345 324
   }
346
-  .el-pagination {
347
-    float: right !important;
348
-  }
349 325
   .search-component {
350 326
     width: 500px;
351 327
     .searchBox {

+ 119 - 143
src/xt_pages/qcd/patientAnalysis/bloodPressure.vue View File

@@ -1,118 +1,123 @@
1 1
 <template>
2
-  <div class="app-container" id="outcome-indicators-query">
3
-    <analysis-nav activeName="bloodpressure"></analysis-nav>
4
-
5
-    <div class="cell">
6
-      <label class="title">
7
-        <span class="name">日期查询</span> :
8
-      </label>
9
-      <el-date-picker
10
-        v-model="listQuery.start_time"
11
-        prefix-icon="el-icon-date"
12
-        @change="changeTime"
13
-        :editable="false"
14
-        style="width: 196px;"
15
-        type="date"
16
-        placeholder="选择日期时间"
17
-        align="right"
18
-        :picker-options="pickerOptions"
19
-        format="yyyy-MM-dd"
20
-        value-format="yyyy-MM-dd"
21
-      ></el-date-picker>
22
-      <span class>-</span>
23
-      <el-date-picker
24
-        v-model="listQuery.end_time"
25
-        prefix-icon="el-icon-date"
26
-        @change="changeTime"
27
-        :editable="false"
28
-        style="width: 196px;"
29
-        type="date"
30
-        placeholder="选择日期时间"
31
-        align="right"
32
-        :picker-options="pickerOptions"
33
-        format="yyyy-MM-dd"
34
-        value-format="yyyy-MM-dd"
35
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
36 5
     </div>
37
-    <div class="cell clearfix">
38
-      <label class="title">
39
-        <span class="name">转归状态</span> :
40
-      </label>
41
-      <div class="time">
42
-        <ul class>
43
-          <li
44
-            :class="item.lapseto==lapsetoType?'active':''"
45
-            @click="selectLapseTo( item.lapseto)"
46
-            v-for="item in lapsetoState"
47
-            :key="item.value"
48
-          >{{item.label}}</li>
49
-        </ul>
6
+    <div class="app-container" id="outcome-indicators-query">
7
+      <analysis-nav activeName="bloodpressure"></analysis-nav>
8
+
9
+      <div class="cell">
10
+        <label class="title">
11
+          <span class="name">日期查询</span> :
12
+        </label>
13
+        <el-date-picker
14
+          v-model="listQuery.start_time"
15
+          prefix-icon="el-icon-date"
16
+          @change="changeTime"
17
+          :editable="false"
18
+          style="width: 196px;"
19
+          type="date"
20
+          placeholder="选择日期时间"
21
+          align="right"
22
+          format="yyyy-MM-dd"
23
+          value-format="yyyy-MM-dd"
24
+        ></el-date-picker>
25
+        <span class>-</span>
26
+        <el-date-picker
27
+          v-model="listQuery.end_time"
28
+          prefix-icon="el-icon-date"
29
+          @change="changeTime"
30
+          :editable="false"
31
+          style="width: 196px;"
32
+          type="date"
33
+          placeholder="选择日期时间"
34
+          align="right"
35
+          format="yyyy-MM-dd"
36
+          value-format="yyyy-MM-dd"
37
+        ></el-date-picker>
50 38
       </div>
51
-    </div>
52
-    <div class="cell clearfix">
53
-      <label class="title">
54
-        <span class="name">年龄</span> :
55
-      </label>
56
-      <div class="time">
57
-        <ul class>
58
-          <li
59
-            :class="item.age==ageType?'active':''"
60
-            @click="selectAge( item.age)"
61
-            v-for="item in ageOptions"
62
-            :key="item.value"
63
-          >{{item.label}}</li>
64
-        </ul>
39
+      <div class="cell clearfix">
40
+        <label class="title">
41
+          <span class="name">转归状态</span> :
42
+        </label>
43
+        <div class="time">
44
+          <ul class>
45
+            <li
46
+              :class="item.lapseto==lapsetoType?'active':''"
47
+              @click="selectLapseTo( item.lapseto)"
48
+              v-for="item in lapsetoState"
49
+              :key="item.value"
50
+            >{{item.label}}</li>
51
+          </ul>
52
+        </div>
53
+      </div>
54
+      <div class="cell clearfix">
55
+        <label class="title">
56
+          <span class="name">年龄</span> :
57
+        </label>
58
+        <div class="time">
59
+          <ul class>
60
+            <li
61
+              :class="item.age==ageType?'active':''"
62
+              @click="selectAge( item.age)"
63
+              v-for="item in ageOptions"
64
+              :key="item.value"
65
+            >{{item.label}}</li>
66
+          </ul>
67
+        </div>
65 68
       </div>
66
-    </div>
67 69
 
68 70
 
69
-    <h4 class="hui">统计图</h4>
70
-    <hr class="huixiao">
71
-    <el-row :gutter="32">
72
-      <el-col :xs="24" :sm="24" :lg="24">
73
-        <div class="chart-wrapper">
74
-            <pie-chart title="留治情况" :options="CompletionOptions"/>
75
-        </div>
76
-      </el-col>
77
-    </el-row>
71
+      <h4 class="hui">统计图</h4>
72
+      <hr class="huixiao">
73
+      <el-row :gutter="32">
74
+        <el-col :xs="24" :sm="24" :lg="24">
75
+          <div class="chart-wrapper">
76
+              <pie-chart title="留治情况" :options="CompletionOptions"/>
77
+          </div>
78
+        </el-col>
79
+      </el-row>
78 80
 
79
-    <h4 class="hui">统计表</h4>
80
-    <hr class="huixiao">
81
-    <el-table
82
-      ref="multipleTable"
83
-      :data="tableData"
84
-      border
85
-      fit
86
-      highlight-current-row
87
-      style="width: 100%;margin-top: 10px;"
88
-    >
89
-      
90
-      <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
91
-      </el-table-column>
92
-      <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
93
-      </el-table-column>
94
-      <el-table-column  label="性别" min-width="80" property="gender" align="center">
95
-        <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
96
-      </el-table-column>
97
-      <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
98
-        <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
99
-      </el-table-column>
100
-      
101
-    </el-table>
81
+      <h4 class="hui">统计表</h4>
82
+      <hr class="huixiao">
83
+      <el-table
84
+        ref="multipleTable"
85
+        :data="tableData"
86
+        border
87
+        fit
88
+        highlight-current-row
89
+        style="width: 100%;margin-top: 10px;"
90
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
91
+      >
92
+        
93
+        <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
94
+        </el-table-column>
95
+        <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
96
+        </el-table-column>
97
+        <el-table-column  label="性别" min-width="80" property="gender" align="center">
98
+          <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
99
+        </el-table-column>
100
+        <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
101
+          <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
102
+        </el-table-column>
103
+        
104
+      </el-table>
102 105
 
103
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
106
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
104 107
 
105
-    <el-pagination
106
-      @size-change="handleSizeChange"
107
-      @current-change="handleCurrentChange"
108
-      :current-page="listQuery.pate"
109
-      :page-sizes="[10, 20, 50, 100]"
110
-      :page-size="10"
111
-      background
112
-      style="margin-top:20px;"
113
-      layout="total, sizes, prev, pager, next, jumper"
114
-      :total="total"
115
-    ></el-pagination>
108
+      <el-pagination
109
+      align='right'
110
+        @size-change="handleSizeChange"
111
+        @current-change="handleCurrentChange"
112
+        :current-page="listQuery.pate"
113
+        :page-sizes="[10, 20, 50, 100]"
114
+        :page-size="10"
115
+        background
116
+        style="margin-top:20px;"
117
+        layout="total, sizes, prev, pager, next, jumper"
118
+        :total="total"
119
+      ></el-pagination>
120
+    </div>
116 121
   </div>
117 122
 </template>
118 123
 
@@ -122,10 +127,16 @@ import { GetPATotalData  } from "@/api/qcd";
122 127
 import PieChart from '../components/PieChart'
123 128
 import {jsGetAge, uParseTime} from "@/utils/tools";
124 129
 import analysisNav from './components/analysisNav'
130
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
125 131
 export default {
126 132
   name: "totalAnalysis",
127 133
   data() {
128 134
     return {
135
+      crumbs:[
136
+        {path:false, name:'科室质控'},
137
+        {path:false, name:'患者分析'},
138
+        {path:false, name:'总量分析'},
139
+      ],
129 140
       total: 0,
130 141
       patientMap:{},
131 142
       listQuery: {
@@ -153,38 +164,6 @@ export default {
153 164
         { value: 3, label: "40~50", age: 3 },
154 165
         { value: 4, label: "其他", age: 4 },
155 166
       ],
156
-      pickerOptions: {
157
-        shortcuts: [
158
-          {
159
-            text: "今天",
160
-            onClick(picker) {
161
-              picker.$emit("pick", new Date());
162
-            }
163
-          },
164
-          {
165
-            text: "昨天",
166
-            onClick(picker) {
167
-              const date = new Date();
168
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
169
-              picker.$emit("pick", date);
170
-            }
171
-          },
172
-          {
173
-            text: "一周前",
174
-            onClick(picker) {
175
-              const date = new Date();
176
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
177
-              picker.$emit("pick", date);
178
-            }
179
-          },
180
-          {
181
-            text: "清空",
182
-            onClick(picker) {
183
-              picker.$emit("pick");
184
-            }
185
-          }
186
-        ]
187
-      }
188 167
     };
189 168
   },
190 169
   created() {
@@ -307,7 +286,8 @@ export default {
307 286
   },
308 287
   components: {
309 288
       analysisNav,
310
-      PieChart
289
+      PieChart,
290
+      BreadCrumb
311 291
   }
312 292
 };
313 293
 </script>
@@ -324,7 +304,6 @@ export default {
324 304
 <style rel="stylesheet/scss" lang="scss" scoped>
325 305
 .app-container {
326 306
 //   margin: 20px;
327
-    margin-bottom: 50px;
328 307
   font-size: 15px;
329 308
   .filter-container {
330 309
     padding-bottom: 5px;
@@ -336,9 +315,6 @@ export default {
336 315
   .huixiao {
337 316
     border: solid 1px #ebeef5;
338 317
   }
339
-  .el-pagination {
340
-    float: right !important;
341
-  }
342 318
   .search-component {
343 319
     width: 500px;
344 320
     .searchBox {

+ 142 - 166
src/xt_pages/qcd/patientAnalysis/dialysisAge.vue View File

@@ -1,142 +1,147 @@
1 1
 <template>
2
-  <div class="app-container" id="outcome-indicators-query">
3
-    <analysis-nav activeName="dialysisage"></analysis-nav>
4
-
5
-    <div class="cell">
6
-      <label class="title">
7
-        <span class="name">日期查询</span> :
8
-      </label>
9
-      <el-date-picker
10
-        v-model="listQuery.start_time"
11
-        prefix-icon="el-icon-date"
12
-        @change="changeTime"
13
-        :editable="false"
14
-        style="width: 196px;"
15
-        type="date"
16
-        placeholder="选择日期时间"
17
-        align="right"
18
-        :picker-options="pickerOptions"
19
-        format="yyyy-MM-dd"
20
-        value-format="yyyy-MM-dd"
21
-      ></el-date-picker>
22
-      <span class>-</span>
23
-      <el-date-picker
24
-        v-model="listQuery.end_time"
25
-        prefix-icon="el-icon-date"
26
-        @change="changeTime"
27
-        :editable="false"
28
-        style="width: 196px;"
29
-        type="date"
30
-        placeholder="选择日期时间"
31
-        align="right"
32
-        :picker-options="pickerOptions"
33
-        format="yyyy-MM-dd"
34
-        value-format="yyyy-MM-dd"
35
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
36 5
     </div>
37
-    <div class="cell clearfix">
38
-      <label class="title">
39
-        <span class="name">转归状态</span> :
40
-      </label>
41
-      <div class="time">
42
-        <ul class>
43
-          <li
44
-            :class="item.lapseto==lapsetoType?'active':''"
45
-            @click="selectLapseTo( item.lapseto)"
46
-            v-for="item in lapsetoState"
47
-            :key="item.value"
48
-          >{{item.label}}</li>
49
-        </ul>
6
+    <div class="app-container" id="outcome-indicators-query">
7
+      <analysis-nav activeName="dialysisage"></analysis-nav>
8
+
9
+      <div class="cell">
10
+        <label class="title">
11
+          <span class="name">日期查询</span> :
12
+        </label>
13
+        <el-date-picker
14
+          v-model="listQuery.start_time"
15
+          prefix-icon="el-icon-date"
16
+          @change="changeTime"
17
+          :editable="false"
18
+          style="width: 196px;"
19
+          type="date"
20
+          placeholder="选择日期时间"
21
+          align="right"
22
+          format="yyyy-MM-dd"
23
+          value-format="yyyy-MM-dd"
24
+        ></el-date-picker>
25
+        <span class>-</span>
26
+        <el-date-picker
27
+          v-model="listQuery.end_time"
28
+          prefix-icon="el-icon-date"
29
+          @change="changeTime"
30
+          :editable="false"
31
+          style="width: 196px;"
32
+          type="date"
33
+          placeholder="选择日期时间"
34
+          align="right"
35
+          format="yyyy-MM-dd"
36
+          value-format="yyyy-MM-dd"
37
+        ></el-date-picker>
50 38
       </div>
51
-    </div>
52
-    <div class="cell clearfix">
53
-      <label class="title">
54
-        <span class="name">年龄</span> :
55
-      </label>
56
-      <div class="time">
57
-        <ul class>
58
-          <li
59
-            :class="item.age==ageType?'active':''"
60
-            @click="selectAge( item.age)"
61
-            v-for="item in ageOptions"
62
-            :key="item.value"
63
-          >{{item.label}}</li>
64
-        </ul>
39
+      <div class="cell clearfix">
40
+        <label class="title">
41
+          <span class="name">转归状态</span> :
42
+        </label>
43
+        <div class="time">
44
+          <ul class>
45
+            <li
46
+              :class="item.lapseto==lapsetoType?'active':''"
47
+              @click="selectLapseTo( item.lapseto)"
48
+              v-for="item in lapsetoState"
49
+              :key="item.value"
50
+            >{{item.label}}</li>
51
+          </ul>
52
+        </div>
65 53
       </div>
66
-    </div>
67
-    <div class="cell clearfix">
68
-      <label class="title">
69
-        <span class="name">透析龄</span> :
70
-      </label>
71
-      <div class="time">
72
-        <ul class>
73
-          <li
74
-            :class="item.age==dialysisAgeType?'active':''"
75
-            @click="selectDialysisAge( item.age)"
76
-            v-for="item in dialysisAgeOptions"
77
-            :key="item.value"
78
-          >{{item.label}}</li>
79
-        </ul>
54
+      <div class="cell clearfix">
55
+        <label class="title">
56
+          <span class="name">年龄</span> :
57
+        </label>
58
+        <div class="time">
59
+          <ul class>
60
+            <li
61
+              :class="item.age==ageType?'active':''"
62
+              @click="selectAge( item.age)"
63
+              v-for="item in ageOptions"
64
+              :key="item.value"
65
+            >{{item.label}}</li>
66
+          </ul>
67
+        </div>
68
+      </div>
69
+      <div class="cell clearfix">
70
+        <label class="title">
71
+          <span class="name">透析龄</span> :
72
+        </label>
73
+        <div class="time">
74
+          <ul class>
75
+            <li
76
+              :class="item.age==dialysisAgeType?'active':''"
77
+              @click="selectDialysisAge( item.age)"
78
+              v-for="item in dialysisAgeOptions"
79
+              :key="item.value"
80
+            >{{item.label}}</li>
81
+          </ul>
82
+        </div>
80 83
       </div>
81
-    </div>
82 84
 
83 85
 
84
-    <h4 class="hui">统计图</h4>
85
-    <hr class="huixiao">
86
-    <el-row :gutter="32">
87
-      <el-col :xs="24" :sm="24" :lg="24">
88
-        <div class="chart-wrapper">
89
-            <pie-chart title="透析龄分布情况(人):" :options="CompletionOptions"/>
90
-        </div>
91
-      </el-col>
92
-    </el-row>
86
+      <h4 class="hui">统计图</h4>
87
+      <hr class="huixiao">
88
+      <el-row :gutter="32">
89
+        <el-col :xs="24" :sm="24" :lg="24">
90
+          <div class="chart-wrapper">
91
+              <pie-chart title="透析龄分布情况(人):" :options="CompletionOptions"/>
92
+          </div>
93
+        </el-col>
94
+      </el-row>
93 95
 
94
-    <h4 class="hui">统计表</h4>
95
-    <hr class="huixiao">
96
-    <el-table
97
-      ref="multipleTable"
98
-      :data="tableData"
99
-      border
100
-      fit
101
-      highlight-current-row
102
-      style="width: 100%;margin-top: 10px;"
103
-    >
104
-      
105
-      <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
106
-      </el-table-column>
107
-      <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
108
-      </el-table-column>
109
-      <el-table-column  label="性别" min-width="80" property="gender" align="center">
110
-        <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
111
-      </el-table-column>
112
-      <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
113
-        <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
114
-      </el-table-column>
115
-      <el-table-column  label="归转状态" min-width="80" property="lapseto" align="center">
116
-        <template slot-scope="scope"><span>{{tranLapseto(scope.row.lapseto)}}</span></template>
117
-      </el-table-column>
118
-      <el-table-column  label="首次透析日期" min-width="80" property="first_dialysis_date" align="center">
119
-        <template slot-scope="scope"><span>{{getFirstDialysisDate(scope.row.first_dialysis_date)}}</span></template>
120
-      </el-table-column>
121
-      <el-table-column  label="透析龄" min-width="80" property="first_dialysis_date" align="center">
122
-        <template slot-scope="scope"><span>{{dialysisAge(scope.row.first_dialysis_date)}}</span></template>
123
-      </el-table-column>
124
-      
125
-    </el-table>
96
+      <h4 class="hui">统计表</h4>
97
+      <hr class="huixiao">
98
+      <el-table
99
+        ref="multipleTable"
100
+        :data="tableData"
101
+        border
102
+        fit
103
+        highlight-current-row
104
+        style="width: 100%;margin-top: 10px;"
105
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
106
+      >
107
+        
108
+        <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
109
+        </el-table-column>
110
+        <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
111
+        </el-table-column>
112
+        <el-table-column  label="性别" min-width="80" property="gender" align="center">
113
+          <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
114
+        </el-table-column>
115
+        <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
116
+          <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
117
+        </el-table-column>
118
+        <el-table-column  label="归转状态" min-width="80" property="lapseto" align="center">
119
+          <template slot-scope="scope"><span>{{tranLapseto(scope.row.lapseto)}}</span></template>
120
+        </el-table-column>
121
+        <el-table-column  label="首次透析日期" min-width="80" property="first_dialysis_date" align="center">
122
+          <template slot-scope="scope"><span>{{getFirstDialysisDate(scope.row.first_dialysis_date)}}</span></template>
123
+        </el-table-column>
124
+        <el-table-column  label="透析龄" min-width="80" property="first_dialysis_date" align="center">
125
+          <template slot-scope="scope"><span>{{dialysisAge(scope.row.first_dialysis_date)}}</span></template>
126
+        </el-table-column>
127
+        
128
+      </el-table>
126 129
 
127
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
130
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
128 131
 
129
-    <el-pagination
130
-      @size-change="handleSizeChange"
131
-      @current-change="handleCurrentChange"
132
-      :current-page="listQuery.pate"
133
-      :page-sizes="[10, 20, 50, 100]"
134
-      :page-size="10"
135
-      background
136
-      style="margin-top:20px;"
137
-      layout="total, sizes, prev, pager, next, jumper"
138
-      :total="total"
139
-    ></el-pagination>
132
+      <el-pagination
133
+      align="right"
134
+        @size-change="handleSizeChange"
135
+        @current-change="handleCurrentChange"
136
+        :current-page="listQuery.pate"
137
+        :page-sizes="[10, 20, 50, 100]"
138
+        :page-size="10"
139
+        background
140
+        style="margin-top:20px;"
141
+        layout="total, sizes, prev, pager, next, jumper"
142
+        :total="total"
143
+      ></el-pagination>
144
+    </div>
140 145
   </div>
141 146
 </template>
142 147
 
@@ -146,10 +151,16 @@ import { GetPADialysisAgeData  } from "@/api/qcd";
146 151
 import PieChart from '../components/PieChart'
147 152
 import {jsGetAge, uParseTime, dialysisAge} from "@/utils/tools";
148 153
 import analysisNav from './components/analysisNav'
154
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
149 155
 export default {
150 156
   name: "totalAnalysis",
151 157
   data() {
152 158
     return {
159
+      crumbs:[
160
+        {path:false, name:'科室质控'},
161
+        {path:false, name:'患者分析'},
162
+        {path:false, name:'透析龄分析'},
163
+      ],
153 164
       total: 0,
154 165
       patientMap:{},
155 166
       listQuery: {
@@ -194,38 +205,6 @@ export default {
194 205
         4: { value: 4, label: "大于10年", age: 4 },
195 206
         5: { value: 5, label: "大于20年", age: 5 },
196 207
       },
197
-      pickerOptions: {
198
-        shortcuts: [
199
-          {
200
-            text: "今天",
201
-            onClick(picker) {
202
-              picker.$emit("pick", new Date());
203
-            }
204
-          },
205
-          {
206
-            text: "昨天",
207
-            onClick(picker) {
208
-              const date = new Date();
209
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
210
-              picker.$emit("pick", date);
211
-            }
212
-          },
213
-          {
214
-            text: "一周前",
215
-            onClick(picker) {
216
-              const date = new Date();
217
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
218
-              picker.$emit("pick", date);
219
-            }
220
-          },
221
-          {
222
-            text: "清空",
223
-            onClick(picker) {
224
-              picker.$emit("pick");
225
-            }
226
-          }
227
-        ]
228
-      }
229 208
     };
230 209
   },
231 210
   created() {
@@ -375,7 +354,8 @@ export default {
375 354
   },
376 355
   components: {
377 356
       analysisNav,
378
-      PieChart
357
+      PieChart,
358
+      BreadCrumb
379 359
   }
380 360
 };
381 361
 </script>
@@ -392,7 +372,6 @@ export default {
392 372
 <style rel="stylesheet/scss" lang="scss" scoped>
393 373
 .app-container {
394 374
 //   margin: 20px;
395
-    margin-bottom: 50px;
396 375
   font-size: 15px;
397 376
   .filter-container {
398 377
     padding-bottom: 5px;
@@ -404,9 +383,6 @@ export default {
404 383
   .huixiao {
405 384
     border: solid 1px #ebeef5;
406 385
   }
407
-  .el-pagination {
408
-    float: right !important;
409
-  }
410 386
   .search-component {
411 387
     width: 500px;
412 388
     .searchBox {

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

@@ -1,136 +1,141 @@
1 1
 <template>
2
-  <div class="app-container" id="outcome-indicators-query">
3
-    <analysis-nav activeName="lapseto"></analysis-nav>
4
-
5
-    <div class="cell">
6
-      <label class="title">
7
-        <span class="name">日期查询</span> :
8
-      </label>
9
-      <el-date-picker
10
-        v-model="listQuery.start_time"
11
-        prefix-icon="el-icon-date"
12
-        @change="changeTime"
13
-        :editable="false"
14
-        style="width: 196px;"
15
-        type="date"
16
-        placeholder="选择日期时间"
17
-        align="right"
18
-        :picker-options="pickerOptions"
19
-        format="yyyy-MM-dd"
20
-        value-format="yyyy-MM-dd"
21
-      ></el-date-picker>
22
-      <span class>-</span>
23
-      <el-date-picker
24
-        v-model="listQuery.end_time"
25
-        prefix-icon="el-icon-date"
26
-        @change="changeTime"
27
-        :editable="false"
28
-        style="width: 196px;"
29
-        type="date"
30
-        placeholder="选择日期时间"
31
-        align="right"
32
-        :picker-options="pickerOptions"
33
-        format="yyyy-MM-dd"
34
-        value-format="yyyy-MM-dd"
35
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
36 5
     </div>
37
-    <div class="cell clearfix">
38
-      <label class="title">
39
-        <span class="name">转归状态</span> :
40
-      </label>
41
-      <div class="time">
42
-        <ul class>
43
-          <li
44
-            :class="item.lapseto==lapsetoType?'active':''"
45
-            @click="selectLapseTo( item.lapseto)"
46
-            v-for="item in lapsetoState"
47
-            :key="item.value"
48
-          >{{item.label}}</li>
49
-        </ul>
6
+    <div class="app-container" id="outcome-indicators-query">
7
+      <analysis-nav activeName="lapseto"></analysis-nav>
8
+
9
+      <div class="cell">
10
+        <label class="title">
11
+          <span class="name">日期查询</span> :
12
+        </label>
13
+        <el-date-picker
14
+          v-model="listQuery.start_time"
15
+          prefix-icon="el-icon-date"
16
+          @change="changeTime"
17
+          :editable="false"
18
+          style="width: 196px;"
19
+          type="date"
20
+          placeholder="选择日期时间"
21
+          align="right"
22
+          format="yyyy-MM-dd"
23
+          value-format="yyyy-MM-dd"
24
+        ></el-date-picker>
25
+        <span class>-</span>
26
+        <el-date-picker
27
+          v-model="listQuery.end_time"
28
+          prefix-icon="el-icon-date"
29
+          @change="changeTime"
30
+          :editable="false"
31
+          style="width: 196px;"
32
+          type="date"
33
+          placeholder="选择日期时间"
34
+          align="right"
35
+          format="yyyy-MM-dd"
36
+          value-format="yyyy-MM-dd"
37
+        ></el-date-picker>
50 38
       </div>
51
-    </div>
52
-    <div class="cell clearfix">
53
-      <label class="title">
54
-        <span class="name">患者来源</span> :
55
-      </label>
56
-      <div class="time">
57
-        <ul class>
58
-          <li
59
-            :class="item.source==sourceType?'active':''"
60
-            @click="selectSource( item.source)"
61
-            v-for="item in sourceOptions"
62
-            :key="item.value"
63
-          >{{item.label}}</li>
64
-        </ul>
39
+      <div class="cell clearfix">
40
+        <label class="title">
41
+          <span class="name">转归状态</span> :
42
+        </label>
43
+        <div class="time">
44
+          <ul class>
45
+            <li
46
+              :class="item.lapseto==lapsetoType?'active':''"
47
+              @click="selectLapseTo( item.lapseto)"
48
+              v-for="item in lapsetoState"
49
+              :key="item.value"
50
+            >{{item.label}}</li>
51
+          </ul>
52
+        </div>
65 53
       </div>
66
-    </div>
67
-    <div class="cell clearfix">
68
-      <label class="title">
69
-        <span class="name">年龄</span> :
70
-      </label>
71
-      <div class="time">
72
-        <ul class>
73
-          <li
74
-            :class="item.age==ageType?'active':''"
75
-            @click="selectAge( item.age)"
76
-            v-for="item in ageOptions"
77
-            :key="item.value"
78
-          >{{item.label}}</li>
79
-        </ul>
54
+      <div class="cell clearfix">
55
+        <label class="title">
56
+          <span class="name">患者来源</span> :
57
+        </label>
58
+        <div class="time">
59
+          <ul class>
60
+            <li
61
+              :class="item.source==sourceType?'active':''"
62
+              @click="selectSource( item.source)"
63
+              v-for="item in sourceOptions"
64
+              :key="item.value"
65
+            >{{item.label}}</li>
66
+          </ul>
67
+        </div>
68
+      </div>
69
+      <div class="cell clearfix">
70
+        <label class="title">
71
+          <span class="name">年龄</span> :
72
+        </label>
73
+        <div class="time">
74
+          <ul class>
75
+            <li
76
+              :class="item.age==ageType?'active':''"
77
+              @click="selectAge( item.age)"
78
+              v-for="item in ageOptions"
79
+              :key="item.value"
80
+            >{{item.label}}</li>
81
+          </ul>
82
+        </div>
80 83
       </div>
81
-    </div>
82 84
 
83 85
 
84
-    <h4 class="hui">统计图</h4>
85
-    <hr class="huixiao">
86
-    <el-row :gutter="32">
87
-      <el-col :xs="24" :sm="24" :lg="24">
88
-        <div class="chart-wrapper">
89
-            <pie-chart title="" :options="CompletionOptions"/>
90
-        </div>
91
-      </el-col>
92
-    </el-row>
86
+      <h4 class="hui">统计图</h4>
87
+      <hr class="huixiao">
88
+      <el-row :gutter="32">
89
+        <el-col :xs="24" :sm="24" :lg="24">
90
+          <div class="chart-wrapper">
91
+              <pie-chart title="" :options="CompletionOptions"/>
92
+          </div>
93
+        </el-col>
94
+      </el-row>
93 95
 
94
-    <h4 class="hui">统计表</h4>
95
-    <hr class="huixiao">
96
-    <el-table
97
-      ref="multipleTable"
98
-      :data="tableData"
99
-      border
100
-      fit
101
-      highlight-current-row
102
-      style="width: 100%;margin-top: 10px;"
103
-    >
104
-      
105
-      <el-table-column  label="日期" min-width="80" property="created_time" align="center">
106
-        <template slot-scope="scope"><span>{{getTime(scope.row.created_time,'{y}-{m}-{d}')}}</span></template>
107
-      </el-table-column>
108
-      <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
109
-      </el-table-column>
110
-      <el-table-column  label="姓名" min-width="100" property="name" align="center">
111
-      </el-table-column>
112
-      <el-table-column  label="患者来源" min-width="80" property="source" align="center">
113
-        <template slot-scope="scope"><span>{{getPatientSource(scope.row.source)}}</span></template>
114
-      </el-table-column>
115
-      <el-table-column  label="归转状态" min-width="80" property="lapseto" align="center">
116
-        <template slot-scope="scope"><span>{{getPatientLapseto(scope.row.lapseto)}}</span></template>
117
-      </el-table-column>
118
-      
119
-    </el-table>
96
+      <h4 class="hui">统计表</h4>
97
+      <hr class="huixiao">
98
+      <el-table
99
+        ref="multipleTable"
100
+        :data="tableData"
101
+        border
102
+        fit
103
+        highlight-current-row
104
+        style="width: 100%;margin-top: 10px;"
105
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
106
+      >
107
+        
108
+        <el-table-column  label="日期" min-width="80" property="created_time" align="center">
109
+          <template slot-scope="scope"><span>{{getTime(scope.row.created_time,'{y}-{m}-{d}')}}</span></template>
110
+        </el-table-column>
111
+        <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
112
+        </el-table-column>
113
+        <el-table-column  label="姓名" min-width="100" property="name" align="center">
114
+        </el-table-column>
115
+        <el-table-column  label="患者来源" min-width="80" property="source" align="center">
116
+          <template slot-scope="scope"><span>{{getPatientSource(scope.row.source)}}</span></template>
117
+        </el-table-column>
118
+        <el-table-column  label="归转状态" min-width="80" property="lapseto" align="center">
119
+          <template slot-scope="scope"><span>{{getPatientLapseto(scope.row.lapseto)}}</span></template>
120
+        </el-table-column>
121
+        
122
+      </el-table>
120 123
 
121
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
124
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
122 125
 
123
-    <el-pagination
124
-      @size-change="handleSizeChange"
125
-      @current-change="handleCurrentChange"
126
-      :current-page="listQuery.pate"
127
-      :page-sizes="[10, 20, 50, 100]"
128
-      :page-size="10"
129
-      background
130
-      style="margin-top:20px;"
131
-      layout="total, sizes, prev, pager, next, jumper"
132
-      :total="total"
133
-    ></el-pagination>
126
+      <el-pagination
127
+      align="right"
128
+        @size-change="handleSizeChange"
129
+        @current-change="handleCurrentChange"
130
+        :current-page="listQuery.pate"
131
+        :page-sizes="[10, 20, 50, 100]"
132
+        :page-size="10"
133
+        background
134
+        style="margin-top:20px;"
135
+        layout="total, sizes, prev, pager, next, jumper"
136
+        :total="total"
137
+      ></el-pagination>
138
+    </div>
134 139
   </div>
135 140
 </template>
136 141
 
@@ -140,10 +145,16 @@ import { GetPATotalData  } from "@/api/qcd";
140 145
 import PieChart from '../components/PieChart'
141 146
 import {jsGetAge, uParseTime} from "@/utils/tools";
142 147
 import analysisNav from './components/analysisNav'
148
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
143 149
 export default {
144 150
   name: "totalAnalysis",
145 151
   data() {
146 152
     return {
153
+      crumbs:[
154
+        {path:false, name:'科室质控'},
155
+        {path:false, name:'患者分析'},
156
+        {path:false, name:'转归分析'},
157
+      ],
147 158
       total: 0,
148 159
       patientMap:{},
149 160
       listQuery: {
@@ -178,38 +189,6 @@ export default {
178 189
         { value: 3, label: "40~50", age: 3 },
179 190
         { value: 4, label: "其他", age: 4 },
180 191
       ],
181
-      pickerOptions: {
182
-        shortcuts: [
183
-          {
184
-            text: "今天",
185
-            onClick(picker) {
186
-              picker.$emit("pick", new Date());
187
-            }
188
-          },
189
-          {
190
-            text: "昨天",
191
-            onClick(picker) {
192
-              const date = new Date();
193
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
194
-              picker.$emit("pick", date);
195
-            }
196
-          },
197
-          {
198
-            text: "一周前",
199
-            onClick(picker) {
200
-              const date = new Date();
201
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
202
-              picker.$emit("pick", date);
203
-            }
204
-          },
205
-          {
206
-            text: "清空",
207
-            onClick(picker) {
208
-              picker.$emit("pick");
209
-            }
210
-          }
211
-        ]
212
-      }
213 192
     };
214 193
   },
215 194
   created() {
@@ -357,7 +336,8 @@ export default {
357 336
   },
358 337
   components: {
359 338
       analysisNav,
360
-      PieChart
339
+      PieChart,
340
+      BreadCrumb
361 341
   }
362 342
 };
363 343
 </script>
@@ -374,7 +354,6 @@ export default {
374 354
 <style rel="stylesheet/scss" lang="scss" scoped>
375 355
 .app-container {
376 356
 //   margin: 20px;
377
-    margin-bottom: 50px;
378 357
   font-size: 15px;
379 358
   .filter-container {
380 359
     padding-bottom: 5px;
@@ -386,9 +365,6 @@ export default {
386 365
   .huixiao {
387 366
     border: solid 1px #ebeef5;
388 367
   }
389
-  .el-pagination {
390
-    float: right !important;
391
-  }
392 368
   .search-component {
393 369
     width: 500px;
394 370
     .searchBox {

+ 129 - 153
src/xt_pages/qcd/patientAnalysis/total.vue View File

@@ -1,128 +1,133 @@
1 1
 <template>
2
-  <div class="app-container" id="outcome-indicators-query">
3
-    <analysis-nav activeName="total"></analysis-nav>
4
-
5
-    <div class="cell">
6
-      <el-form :inline="true" :model="listQuery" >
7
-        <el-form-item label="">
8
-          <el-input v-model="listQuery.search" placeholder="姓名/透析号"></el-input>
9
-        </el-form-item>
10
-        <el-form-item>
11
-          <el-button type="primary" @click="onSearch">搜索</el-button>
12
-        </el-form-item>
13
-      </el-form>
14
-    </div>
15
-    <div class="cell">
16
-      <label class="title">
17
-        <span class="name">日期查询</span> :
18
-      </label>
19
-      <el-date-picker
20
-        v-model="listQuery.start_time"
21
-        prefix-icon="el-icon-date"
22
-        @change="changeTime"
23
-        :editable="false"
24
-        style="width: 196px;"
25
-        type="date"
26
-        placeholder="选择日期时间"
27
-        align="right"
28
-        :picker-options="pickerOptions"
29
-        format="yyyy-MM-dd"
30
-        value-format="yyyy-MM-dd"
31
-      ></el-date-picker>
32
-      <span class>-</span>
33
-      <el-date-picker
34
-        v-model="listQuery.end_time"
35
-        prefix-icon="el-icon-date"
36
-        @change="changeTime"
37
-        :editable="false"
38
-        style="width: 196px;"
39
-        type="date"
40
-        placeholder="选择日期时间"
41
-        align="right"
42
-        :picker-options="pickerOptions"
43
-        format="yyyy-MM-dd"
44
-        value-format="yyyy-MM-dd"
45
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
46 5
     </div>
47
-    <div class="cell clearfix">
48
-      <label class="title">
49
-        <span class="name">转归状态</span> :
50
-      </label>
51
-      <div class="time">
52
-        <ul class>
53
-          <li
54
-            :class="item.lapseto==lapsetoType?'active':''"
55
-            @click="selectLapseTo( item.lapseto)"
56
-            v-for="item in lapsetoState"
57
-            :key="item.value"
58
-          >{{item.label}}</li>
59
-        </ul>
6
+    <div class="app-container" id="outcome-indicators-query">
7
+      <analysis-nav activeName="total"></analysis-nav>
8
+
9
+      <div class="cell">
10
+        <el-form :inline="true" :model="listQuery" >
11
+          <el-form-item label="">
12
+            <el-input v-model="listQuery.search" placeholder="姓名/透析号"></el-input>
13
+          </el-form-item>
14
+          <el-form-item>
15
+            <el-button type="primary" @click="onSearch">搜索</el-button>
16
+          </el-form-item>
17
+        </el-form>
60 18
       </div>
61
-    </div>
62
-    <div class="cell clearfix">
63
-      <label class="title">
64
-        <span class="name">年龄</span> :
65
-      </label>
66
-      <div class="time">
67
-        <ul class>
68
-          <li
69
-            :class="item.age==ageType?'active':''"
70
-            @click="selectAge( item.age)"
71
-            v-for="item in ageOptions"
72
-            :key="item.value"
73
-          >{{item.label}}</li>
74
-        </ul>
19
+      <div class="cell">
20
+        <label class="title">
21
+          <span class="name">日期查询</span> :
22
+        </label>
23
+        <el-date-picker
24
+          v-model="listQuery.start_time"
25
+          prefix-icon="el-icon-date"
26
+          @change="changeTime"
27
+          :editable="false"
28
+          style="width: 196px;"
29
+          type="date"
30
+          placeholder="选择日期时间"
31
+          align="right"
32
+          format="yyyy-MM-dd"
33
+          value-format="yyyy-MM-dd"
34
+        ></el-date-picker>
35
+        <span class>-</span>
36
+        <el-date-picker
37
+          v-model="listQuery.end_time"
38
+          prefix-icon="el-icon-date"
39
+          @change="changeTime"
40
+          :editable="false"
41
+          style="width: 196px;"
42
+          type="date"
43
+          placeholder="选择日期时间"
44
+          align="right"
45
+          format="yyyy-MM-dd"
46
+          value-format="yyyy-MM-dd"
47
+        ></el-date-picker>
48
+      </div>
49
+      <div class="cell clearfix">
50
+        <label class="title">
51
+          <span class="name">转归状态</span> :
52
+        </label>
53
+        <div class="time">
54
+          <ul class>
55
+            <li
56
+              :class="item.lapseto==lapsetoType?'active':''"
57
+              @click="selectLapseTo( item.lapseto)"
58
+              v-for="item in lapsetoState"
59
+              :key="item.value"
60
+            >{{item.label}}</li>
61
+          </ul>
62
+        </div>
63
+      </div>
64
+      <div class="cell clearfix">
65
+        <label class="title">
66
+          <span class="name">年龄</span> :
67
+        </label>
68
+        <div class="time">
69
+          <ul class>
70
+            <li
71
+              :class="item.age==ageType?'active':''"
72
+              @click="selectAge( item.age)"
73
+              v-for="item in ageOptions"
74
+              :key="item.value"
75
+            >{{item.label}}</li>
76
+          </ul>
77
+        </div>
75 78
       </div>
76
-    </div>
77 79
 
78 80
 
79
-    <h4 class="hui">统计图</h4>
80
-    <hr class="huixiao">
81
-    <el-row :gutter="32">
82
-      <el-col :xs="24" :sm="24" :lg="24">
83
-        <div class="chart-wrapper">
84
-            <pie-chart title="" :options="CompletionOptions"/>
85
-        </div>
86
-      </el-col>
87
-    </el-row>
81
+      <h4 class="hui">统计图</h4>
82
+      <hr class="huixiao">
83
+      <el-row :gutter="32">
84
+        <el-col :xs="24" :sm="24" :lg="24">
85
+          <div class="chart-wrapper">
86
+              <pie-chart title="" :options="CompletionOptions"/>
87
+          </div>
88
+        </el-col>
89
+      </el-row>
88 90
 
89
-    <h4 class="hui">统计表</h4>
90
-    <hr class="huixiao">
91
-    <el-table
92
-      ref="multipleTable"
93
-      :data="tableData"
94
-      border
95
-      fit
96
-      highlight-current-row
97
-      style="width: 100%;margin-top: 10px;"
98
-    >
99
-      
100
-      <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
101
-      </el-table-column>
102
-      <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
103
-      </el-table-column>
104
-      <el-table-column  label="性别" min-width="80" property="gender" align="center">
105
-        <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
106
-      </el-table-column>
107
-      <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
108
-        <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
109
-      </el-table-column>
110
-      
111
-    </el-table>
91
+      <h4 class="hui">统计表</h4>
92
+      <hr class="huixiao">
93
+      <el-table
94
+        ref="multipleTable"
95
+        :data="tableData"
96
+        border
97
+        fit
98
+        highlight-current-row
99
+        style="width: 100%;margin-top: 10px;"
100
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
101
+      >
102
+        
103
+        <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
104
+        </el-table-column>
105
+        <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
106
+        </el-table-column>
107
+        <el-table-column  label="性别" min-width="80" property="gender" align="center">
108
+          <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
109
+        </el-table-column>
110
+        <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
111
+          <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
112
+        </el-table-column>
113
+        
114
+      </el-table>
112 115
 
113
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
116
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
114 117
 
115
-    <el-pagination
116
-      @size-change="handleSizeChange"
117
-      @current-change="handleCurrentChange"
118
-      :current-page="listQuery.pate"
119
-      :page-sizes="[10, 20, 50, 100]"
120
-      :page-size="10"
121
-      background
122
-      style="margin-top:20px;"
123
-      layout="total, sizes, prev, pager, next, jumper"
124
-      :total="total"
125
-    ></el-pagination>
118
+      <el-pagination
119
+      align='right'
120
+        @size-change="handleSizeChange"
121
+        @current-change="handleCurrentChange"
122
+        :current-page="listQuery.pate"
123
+        :page-sizes="[10, 20, 50, 100]"
124
+        :page-size="10"
125
+        background
126
+        style="margin-top:20px;"
127
+        layout="total, sizes, prev, pager, next, jumper"
128
+        :total="total"
129
+      ></el-pagination>
130
+    </div>
126 131
   </div>
127 132
 </template>
128 133
 
@@ -132,10 +137,16 @@ import { GetPATotalData  } from "@/api/qcd";
132 137
 import PieChart from '../components/PieChart'
133 138
 import {jsGetAge, uParseTime} from "@/utils/tools";
134 139
 import analysisNav from './components/analysisNav'
140
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
135 141
 export default {
136 142
   name: "totalAnalysis",
137 143
   data() {
138 144
     return {
145
+      crumbs:[
146
+        {path:false, name:'科室质控'},
147
+        {path:false, name:'患者分析'},
148
+        {path:false, name:'总量分析'},
149
+      ],
139 150
       total: 0,
140 151
       patientMap:{},
141 152
       listQuery: {
@@ -163,38 +174,6 @@ export default {
163 174
         { value: 3, label: "40~50", age: 3 },
164 175
         { value: 4, label: "其他", age: 4 },
165 176
       ],
166
-      pickerOptions: {
167
-        shortcuts: [
168
-          {
169
-            text: "今天",
170
-            onClick(picker) {
171
-              picker.$emit("pick", new Date());
172
-            }
173
-          },
174
-          {
175
-            text: "昨天",
176
-            onClick(picker) {
177
-              const date = new Date();
178
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
179
-              picker.$emit("pick", date);
180
-            }
181
-          },
182
-          {
183
-            text: "一周前",
184
-            onClick(picker) {
185
-              const date = new Date();
186
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
187
-              picker.$emit("pick", date);
188
-            }
189
-          },
190
-          {
191
-            text: "清空",
192
-            onClick(picker) {
193
-              picker.$emit("pick");
194
-            }
195
-          }
196
-        ]
197
-      }
198 177
     };
199 178
   },
200 179
   created() {
@@ -320,7 +299,8 @@ export default {
320 299
   },
321 300
   components: {
322 301
       analysisNav,
323
-      PieChart
302
+      PieChart,
303
+      BreadCrumb
324 304
   }
325 305
 };
326 306
 </script>
@@ -337,7 +317,6 @@ export default {
337 317
 <style rel="stylesheet/scss" lang="scss" scoped>
338 318
 .app-container {
339 319
 //   margin: 20px;
340
-    margin-bottom: 50px;
341 320
   font-size: 15px;
342 321
   .filter-container {
343 322
     padding-bottom: 5px;
@@ -349,9 +328,6 @@ export default {
349 328
   .huixiao {
350 329
     border: solid 1px #ebeef5;
351 330
   }
352
-  .el-pagination {
353
-    float: right !important;
354
-  }
355 331
   .search-component {
356 332
     width: 500px;
357 333
     .searchBox {

+ 119 - 143
src/xt_pages/qcd/patientAnalysis/weight.vue View File

@@ -1,118 +1,123 @@
1 1
 <template>
2
-  <div class="app-container" id="outcome-indicators-query">
3
-    <analysis-nav activeName="weight"></analysis-nav>
4
-
5
-    <div class="cell">
6
-      <label class="title">
7
-        <span class="name">日期查询</span> :
8
-      </label>
9
-      <el-date-picker
10
-        v-model="listQuery.start_time"
11
-        prefix-icon="el-icon-date"
12
-        @change="changeTime"
13
-        :editable="false"
14
-        style="width: 196px;"
15
-        type="date"
16
-        placeholder="选择日期时间"
17
-        align="right"
18
-        :picker-options="pickerOptions"
19
-        format="yyyy-MM-dd"
20
-        value-format="yyyy-MM-dd"
21
-      ></el-date-picker>
22
-      <span class>-</span>
23
-      <el-date-picker
24
-        v-model="listQuery.end_time"
25
-        prefix-icon="el-icon-date"
26
-        @change="changeTime"
27
-        :editable="false"
28
-        style="width: 196px;"
29
-        type="date"
30
-        placeholder="选择日期时间"
31
-        align="right"
32
-        :picker-options="pickerOptions"
33
-        format="yyyy-MM-dd"
34
-        value-format="yyyy-MM-dd"
35
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
36 5
     </div>
37
-    <div class="cell clearfix">
38
-      <label class="title">
39
-        <span class="name">转归状态</span> :
40
-      </label>
41
-      <div class="time">
42
-        <ul class>
43
-          <li
44
-            :class="item.lapseto==lapsetoType?'active':''"
45
-            @click="selectLapseTo( item.lapseto)"
46
-            v-for="item in lapsetoState"
47
-            :key="item.value"
48
-          >{{item.label}}</li>
49
-        </ul>
6
+    <div class="app-container" id="outcome-indicators-query">
7
+      <analysis-nav activeName="weight"></analysis-nav>
8
+
9
+      <div class="cell">
10
+        <label class="title">
11
+          <span class="name">日期查询</span> :
12
+        </label>
13
+        <el-date-picker
14
+          v-model="listQuery.start_time"
15
+          prefix-icon="el-icon-date"
16
+          @change="changeTime"
17
+          :editable="false"
18
+          style="width: 196px;"
19
+          type="date"
20
+          placeholder="选择日期时间"
21
+          align="right"
22
+          format="yyyy-MM-dd"
23
+          value-format="yyyy-MM-dd"
24
+        ></el-date-picker>
25
+        <span class>-</span>
26
+        <el-date-picker
27
+          v-model="listQuery.end_time"
28
+          prefix-icon="el-icon-date"
29
+          @change="changeTime"
30
+          :editable="false"
31
+          style="width: 196px;"
32
+          type="date"
33
+          placeholder="选择日期时间"
34
+          align="right"
35
+          format="yyyy-MM-dd"
36
+          value-format="yyyy-MM-dd"
37
+        ></el-date-picker>
50 38
       </div>
51
-    </div>
52
-    <div class="cell clearfix">
53
-      <label class="title">
54
-        <span class="name">年龄</span> :
55
-      </label>
56
-      <div class="time">
57
-        <ul class>
58
-          <li
59
-            :class="item.age==ageType?'active':''"
60
-            @click="selectAge( item.age)"
61
-            v-for="item in ageOptions"
62
-            :key="item.value"
63
-          >{{item.label}}</li>
64
-        </ul>
39
+      <div class="cell clearfix">
40
+        <label class="title">
41
+          <span class="name">转归状态</span> :
42
+        </label>
43
+        <div class="time">
44
+          <ul class>
45
+            <li
46
+              :class="item.lapseto==lapsetoType?'active':''"
47
+              @click="selectLapseTo( item.lapseto)"
48
+              v-for="item in lapsetoState"
49
+              :key="item.value"
50
+            >{{item.label}}</li>
51
+          </ul>
52
+        </div>
53
+      </div>
54
+      <div class="cell clearfix">
55
+        <label class="title">
56
+          <span class="name">年龄</span> :
57
+        </label>
58
+        <div class="time">
59
+          <ul class>
60
+            <li
61
+              :class="item.age==ageType?'active':''"
62
+              @click="selectAge( item.age)"
63
+              v-for="item in ageOptions"
64
+              :key="item.value"
65
+            >{{item.label}}</li>
66
+          </ul>
67
+        </div>
65 68
       </div>
66
-    </div>
67 69
 
68 70
 
69
-    <h4 class="hui">统计图</h4>
70
-    <hr class="huixiao">
71
-    <el-row :gutter="32">
72
-      <el-col :xs="24" :sm="24" :lg="24">
73
-        <div class="chart-wrapper">
74
-            <pie-chart title="留治情况" :options="CompletionOptions"/>
75
-        </div>
76
-      </el-col>
77
-    </el-row>
71
+      <h4 class="hui">统计图</h4>
72
+      <hr class="huixiao">
73
+      <el-row :gutter="32">
74
+        <el-col :xs="24" :sm="24" :lg="24">
75
+          <div class="chart-wrapper">
76
+              <pie-chart title="留治情况" :options="CompletionOptions"/>
77
+          </div>
78
+        </el-col>
79
+      </el-row>
78 80
 
79
-    <h4 class="hui">统计表</h4>
80
-    <hr class="huixiao">
81
-    <el-table
82
-      ref="multipleTable"
83
-      :data="tableData"
84
-      border
85
-      fit
86
-      highlight-current-row
87
-      style="width: 100%;margin-top: 10px;"
88
-    >
89
-      
90
-      <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
91
-      </el-table-column>
92
-      <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
93
-      </el-table-column>
94
-      <el-table-column  label="性别" min-width="80" property="gender" align="center">
95
-        <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
96
-      </el-table-column>
97
-      <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
98
-        <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
99
-      </el-table-column>
100
-      
101
-    </el-table>
81
+      <h4 class="hui">统计表</h4>
82
+      <hr class="huixiao">
83
+      <el-table
84
+        ref="multipleTable"
85
+        :data="tableData"
86
+        border
87
+        fit
88
+        highlight-current-row
89
+        style="width: 100%;margin-top: 10px;"
90
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
91
+      >
92
+        
93
+        <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
94
+        </el-table-column>
95
+        <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
96
+        </el-table-column>
97
+        <el-table-column  label="性别" min-width="80" property="gender" align="center">
98
+          <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
99
+        </el-table-column>
100
+        <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
101
+          <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
102
+        </el-table-column>
103
+        
104
+      </el-table>
102 105
 
103
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
106
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
104 107
 
105
-    <el-pagination
106
-      @size-change="handleSizeChange"
107
-      @current-change="handleCurrentChange"
108
-      :current-page="listQuery.pate"
109
-      :page-sizes="[10, 20, 50, 100]"
110
-      :page-size="10"
111
-      background
112
-      style="margin-top:20px;"
113
-      layout="total, sizes, prev, pager, next, jumper"
114
-      :total="total"
115
-    ></el-pagination>
108
+      <el-pagination
109
+      align="right"
110
+        @size-change="handleSizeChange"
111
+        @current-change="handleCurrentChange"
112
+        :current-page="listQuery.pate"
113
+        :page-sizes="[10, 20, 50, 100]"
114
+        :page-size="10"
115
+        background
116
+        style="margin-top:20px;"
117
+        layout="total, sizes, prev, pager, next, jumper"
118
+        :total="total"
119
+      ></el-pagination>
120
+    </div>
116 121
   </div>
117 122
 </template>
118 123
 
@@ -122,10 +127,16 @@ import { GetPATotalData  } from "@/api/qcd";
122 127
 import PieChart from '../components/PieChart'
123 128
 import {jsGetAge, uParseTime} from "@/utils/tools";
124 129
 import analysisNav from './components/analysisNav'
130
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
125 131
 export default {
126 132
   name: "totalAnalysis",
127 133
   data() {
128 134
     return {
135
+      crumbs:[
136
+        {path:false, name:'科室质控'},
137
+        {path:false, name:'患者分析'},
138
+        {path:false, name:'体重分析'},
139
+      ],
129 140
       total: 0,
130 141
       patientMap:{},
131 142
       listQuery: {
@@ -153,38 +164,6 @@ export default {
153 164
         { value: 3, label: "40~50", age: 3 },
154 165
         { value: 4, label: "其他", age: 4 },
155 166
       ],
156
-      pickerOptions: {
157
-        shortcuts: [
158
-          {
159
-            text: "今天",
160
-            onClick(picker) {
161
-              picker.$emit("pick", new Date());
162
-            }
163
-          },
164
-          {
165
-            text: "昨天",
166
-            onClick(picker) {
167
-              const date = new Date();
168
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
169
-              picker.$emit("pick", date);
170
-            }
171
-          },
172
-          {
173
-            text: "一周前",
174
-            onClick(picker) {
175
-              const date = new Date();
176
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
177
-              picker.$emit("pick", date);
178
-            }
179
-          },
180
-          {
181
-            text: "清空",
182
-            onClick(picker) {
183
-              picker.$emit("pick");
184
-            }
185
-          }
186
-        ]
187
-      }
188 167
     };
189 168
   },
190 169
   created() {
@@ -307,7 +286,8 @@ export default {
307 286
   },
308 287
   components: {
309 288
       analysisNav,
310
-      PieChart
289
+      PieChart,
290
+      BreadCrumb
311 291
   }
312 292
 };
313 293
 </script>
@@ -324,7 +304,6 @@ export default {
324 304
 <style rel="stylesheet/scss" lang="scss" scoped>
325 305
 .app-container {
326 306
 //   margin: 20px;
327
-    margin-bottom: 50px;
328 307
   font-size: 15px;
329 308
   .filter-container {
330 309
     padding-bottom: 5px;
@@ -336,9 +315,6 @@ export default {
336 315
   .huixiao {
337 316
     border: solid 1px #ebeef5;
338 317
   }
339
-  .el-pagination {
340
-    float: right !important;
341
-  }
342 318
   .search-component {
343 319
     width: 500px;
344 320
     .searchBox {

+ 127 - 152
src/xt_pages/qcd/processIndicators.vue View File

@@ -1,127 +1,132 @@
1 1
 <template>
2
-  <div class="app-container">
3
-    <div class="cell">
4
-      <label class="title">
5
-        <span class="name">日期查询</span> :
6
-      </label>
7
-      <el-date-picker
8
-        v-model="listQuery.start_time"
9
-        prefix-icon="el-icon-date"
10
-        @change="changeTime"
11
-        :editable="false"
12
-        style="width: 196px;"
13
-        type="date"
14
-        placeholder="选择日期时间"
15
-        align="right"
16
-        :picker-options="pickerOptions"
17
-        format="yyyy-MM-dd"
18
-        value-format="yyyy-MM-dd"
19
-      ></el-date-picker>
20
-      <span class>-</span>
21
-      <el-date-picker
22
-        v-model="listQuery.end_time"
23
-        prefix-icon="el-icon-date"
24
-        @change="changeTime"
25
-        :editable="false"
26
-        style="width: 196px;"
27
-        type="date"
28
-        placeholder="选择日期时间"
29
-        align="right"
30
-        :picker-options="pickerOptions"
31
-        format="yyyy-MM-dd"
32
-        value-format="yyyy-MM-dd"
33
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
34 5
     </div>
35
-    <div class="cell clearfix">
36
-      <label class="title">
37
-        <span class="name">透析龄</span> :
38
-      </label>
39
-      <div class="time">
40
-        <ul class>
41
-          <li
42
-            :class="item.value==dialysisAge?'active':''"
43
-            @click="selectdialysisAges(item.value)"
44
-            v-for="item in dialysisAgeOptions"
45
-            :key="item.value"
46
-          >{{item.label}}</li>
47
-        </ul>
6
+    <div class="app-container">
7
+      <div class="cell">
8
+        <label class="title">
9
+          <span class="name">日期查询</span> :
10
+        </label>
11
+        <el-date-picker
12
+          v-model="listQuery.start_time"
13
+          prefix-icon="el-icon-date"
14
+          @change="changeTime"
15
+          :editable="false"
16
+          style="width: 196px;"
17
+          type="date"
18
+          placeholder="选择日期时间"
19
+          align="right"
20
+          format="yyyy-MM-dd"
21
+          value-format="yyyy-MM-dd"
22
+        ></el-date-picker>
23
+        <span class>-</span>
24
+        <el-date-picker
25
+          v-model="listQuery.end_time"
26
+          prefix-icon="el-icon-date"
27
+          @change="changeTime"
28
+          :editable="false"
29
+          style="width: 196px;"
30
+          type="date"
31
+          placeholder="选择日期时间"
32
+          align="right"
33
+          format="yyyy-MM-dd"
34
+          value-format="yyyy-MM-dd"
35
+        ></el-date-picker>
48 36
       </div>
49
-    </div>
50
-    <div class="cell clearfix">
51
-      <label class="title">
52
-        <span class="name">转归状态</span> :
53
-      </label>
54
-      <div class="time">
55
-        <ul class>
56
-          <li
57
-            :class="item.lapseto==lapsetoType?'active':''"
58
-            @click="selectLapseTo( item.lapseto)"
59
-            v-for="item in lapsetoState"
60
-            :key="item.value"
61
-          >{{item.label}}</li>
62
-        </ul>
37
+      <div class="cell clearfix">
38
+        <label class="title">
39
+          <span class="name">透析龄</span> :
40
+        </label>
41
+        <div class="time">
42
+          <ul class>
43
+            <li
44
+              :class="item.value==dialysisAge?'active':''"
45
+              @click="selectdialysisAges(item.value)"
46
+              v-for="item in dialysisAgeOptions"
47
+              :key="item.value"
48
+            >{{item.label}}</li>
49
+          </ul>
50
+        </div>
51
+      </div>
52
+      <div class="cell clearfix">
53
+        <label class="title">
54
+          <span class="name">转归状态</span> :
55
+        </label>
56
+        <div class="time">
57
+          <ul class>
58
+            <li
59
+              :class="item.lapseto==lapsetoType?'active':''"
60
+              @click="selectLapseTo( item.lapseto)"
61
+              v-for="item in lapsetoState"
62
+              :key="item.value"
63
+            >{{item.label}}</li>
64
+          </ul>
65
+        </div>
63 66
       </div>
64
-    </div>
65 67
 
66
-    <div class="cell">
67
-      <label class="title">
68
-        <span class="name">检验项目</span> :
69
-      </label>
70
-      <el-select v-model="listQuery.project_id" placeholder="请选择" @change="changeModel()">
71
-        <el-option label="全部" value=""></el-option>
72
-        <el-option v-for="item in projectOptions" :key="item.project_id" :label="item.project_name" :value="item.project_id"></el-option>
73
-      </el-select>
74
-    </div>
68
+      <div class="cell">
69
+        <label class="title">
70
+          <span class="name">检验项目</span> :
71
+        </label>
72
+        <el-select v-model="listQuery.project_id" placeholder="请选择" @change="changeModel()">
73
+          <el-option label="全部" value=""></el-option>
74
+          <el-option v-for="item in projectOptions" :key="item.project_id" :label="item.project_name" :value="item.project_id"></el-option>
75
+        </el-select>
76
+      </div>
75 77
 
76
-    <h4 class="hui">统计图</h4>
77
-    <hr class="huixiao">
78
-    <el-row :gutter="32">
79
-      <el-col :xs="24" :sm="24" :lg="24">
80
-        <div class="chart-wrapper">
81
-            <pie-chart title="" :options="CompletionOptions"/>
82
-        </div>
83
-      </el-col>
84
-    </el-row>
78
+      <h4 class="hui">统计图</h4>
79
+      <hr class="huixiao">
80
+      <el-row :gutter="32">
81
+        <el-col :xs="24" :sm="24" :lg="24">
82
+          <div class="chart-wrapper">
83
+              <pie-chart title="" :options="CompletionOptions"/>
84
+          </div>
85
+        </el-col>
86
+      </el-row>
85 87
 
86
-    <h4 class="hui">统计表</h4>
87
-    <hr class="huixiao">
88
-    <el-table
89
-      ref="multipleTable"
90
-      :data="tableData"
91
-      :span-method="mergeSpan"
92
-      border
93
-      fit
94
-      highlight-current-row
95
-      style="width: 100%;margin-top: 10px;"
96
-    >
97
-      
98
-      <el-table-column label="透析号" min-width="80" property="patient_id" align="center">
99
-        <template slot-scope="scope"><span>{{getPatientDialysisNo(scope.row.patient_id)}}</span></template>
100
-      </el-table-column>
101
-      <el-table-column label="姓名" min-width="80" property="patient_id" align="center">
102
-        <template slot-scope="scope"><span>{{getPatientName(scope.row.patient_id)}}</span></template>
103
-      </el-table-column>
104
-      <el-table-column label="检查项目" min-width="80" property="project_id" align="center">
105
-        <template slot-scope="scope"><span>{{getProjectName(scope.row.project_id)}}</span></template>
106
-      </el-table-column>
107
-      <el-table-column label="检查日期" min-width="80" property="inspect_date" align="center">
108
-        <template slot-scope="scope"><span>{{getTime(scope.row.inspect_date, '{y}{m}{d}')}}</span></template>
109
-      </el-table-column>
110
-    </el-table>
88
+      <h4 class="hui">统计表</h4>
89
+      <hr class="huixiao">
90
+      <el-table
91
+        ref="multipleTable"
92
+        :data="tableData"
93
+        :span-method="mergeSpan"
94
+        border
95
+        fit
96
+        highlight-current-row
97
+        style="width: 100%;margin-top: 10px;"
98
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
99
+      >
100
+        
101
+        <el-table-column label="透析号" min-width="80" property="patient_id" align="center">
102
+          <template slot-scope="scope"><span>{{getPatientDialysisNo(scope.row.patient_id)}}</span></template>
103
+        </el-table-column>
104
+        <el-table-column label="姓名" min-width="80" property="patient_id" align="center">
105
+          <template slot-scope="scope"><span>{{getPatientName(scope.row.patient_id)}}</span></template>
106
+        </el-table-column>
107
+        <el-table-column label="检查项目" min-width="80" property="project_id" align="center">
108
+          <template slot-scope="scope"><span>{{getProjectName(scope.row.project_id)}}</span></template>
109
+        </el-table-column>
110
+        <el-table-column label="检查日期" min-width="80" property="inspect_date" align="center">
111
+          <template slot-scope="scope"><span>{{getTime(scope.row.inspect_date, '{y}{m}{d}')}}</span></template>
112
+        </el-table-column>
113
+      </el-table>
111 114
 
112
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
115
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
113 116
 
114
-    <el-pagination
115
-      @size-change="handleSizeChange"
116
-      @current-change="handleCurrentChange"
117
-      :current-page="listQuery.pate"
118
-      :page-sizes="[10, 20, 50, 100]"
119
-      :page-size="10"
120
-      background
121
-      style="margin-top:20px;"
122
-      layout="total, sizes, prev, pager, next, jumper"
123
-      :total="total"
124
-    ></el-pagination>
117
+      <el-pagination
118
+        align="right"
119
+        @size-change="handleSizeChange"
120
+        @current-change="handleCurrentChange"
121
+        :current-page="listQuery.pate"
122
+        :page-sizes="[10, 20, 50, 100]"
123
+        :page-size="10"
124
+        background
125
+        style="margin-top:20px;"
126
+        layout="total, sizes, prev, pager, next, jumper"
127
+        :total="total"
128
+      ></el-pagination>
129
+    </div>
125 130
   </div>
126 131
 </template>
127 132
 
@@ -130,10 +135,15 @@
130 135
 import { GetProcessIndicatorsData  } from "@/api/qcd";
131 136
 import PieChart from './components/PieChart'
132 137
 import {uParseTime} from "@/utils/tools";
138
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
133 139
 export default {
134 140
   name: "dialysisTotal",
135 141
   data() {
136 142
     return {
143
+      crumbs:[
144
+        {path:false, name:'科室质控'},
145
+        {path:'/qcd/processindicators', name:'过程指标'},
146
+      ],
137 147
       total: 0,
138 148
       projectOptions:{},
139 149
       patientMap:{},
@@ -164,38 +174,6 @@ export default {
164 174
         { value: 1, label: "大于三个月" },
165 175
         { value: 2, label: "小于三个月" }
166 176
       ],
167
-      pickerOptions: {
168
-        shortcuts: [
169
-          {
170
-            text: "今天",
171
-            onClick(picker) {
172
-              picker.$emit("pick", new Date());
173
-            }
174
-          },
175
-          {
176
-            text: "昨天",
177
-            onClick(picker) {
178
-              const date = new Date();
179
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
180
-              picker.$emit("pick", date);
181
-            }
182
-          },
183
-          {
184
-            text: "一周前",
185
-            onClick(picker) {
186
-              const date = new Date();
187
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
188
-              picker.$emit("pick", date);
189
-            }
190
-          },
191
-          {
192
-            text: "清空",
193
-            onClick(picker) {
194
-              picker.$emit("pick");
195
-            }
196
-          }
197
-        ]
198
-      }
199 177
     };
200 178
   },
201 179
   created() {
@@ -347,7 +325,8 @@ export default {
347 325
     },
348 326
   },
349 327
   components: {
350
-      PieChart
328
+      PieChart,
329
+      BreadCrumb
351 330
   }
352 331
 };
353 332
 </script>
@@ -355,7 +334,6 @@ export default {
355 334
 <style rel="stylesheet/scss" lang="scss" scoped>
356 335
 .app-container {
357 336
 //   margin: 20px;
358
-    margin-bottom: 50px;
359 337
   font-size: 15px;
360 338
   .filter-container {
361 339
     padding-bottom: 5px;
@@ -367,9 +345,6 @@ export default {
367 345
   .huixiao {
368 346
     border: solid 1px #ebeef5;
369 347
   }
370
-  .el-pagination {
371
-    float: right !important;
372
-  }
373 348
   .search-component {
374 349
     width: 500px;
375 350
     .searchBox {

+ 445 - 382
src/xt_pages/sign/index.vue View File

@@ -1,8 +1,4 @@
1 1
 <template>
2
-<div class="main-contain">
3
-    <div class="position">
4
-        <bread-crumb></bread-crumb>
5
-    </div>
6 2
     <div class="app-container sign-and-weigh-box">
7 3
         <el-row :gutter="20">
8 4
             <el-col :span="7">
@@ -10,16 +6,17 @@
10 6
                 <div style="margin-bottom: 10px;">
11 7
                     <el-input v-model="queryParams.keywords" placeholder="姓名/透析号" style="width: 180px;" @change="changeSearch"></el-input>
12 8
                     <el-select v-model="queryParams.schedule_type" style="width: 100px;" @change="changeSearch">
13
-                        <el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>
9
+                    <el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>
14 10
                     </el-select>
15 11
                 </div>
16
-                <el-table :data="patients" :class="signAndWeighBoxPatients" style="width: 100%" border highlight-current-row :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" max-height="300"  @current-change="handleCurrentChange"> 
12
+                <el-table  :data="patients" :class="signAndWeighBoxPatients" style="width: 100%" border highlight-current-row :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" max-height="300" @current-change="handleCurrentChange">  
17 13
                     <el-table-column type="index" label="序号" min-width="20" align="center"></el-table-column>
18
-                    <el-table-column prop="name" label="姓名" min-width="50" align="center" >
19
-                        <template slot-scope="scope">
14
+                   <el-table-column prop="name" label="姓名" min-width="50" align="center">
15
+                       <template slot-scope="scope">
20 16
                             {{scope.row.name}}({{scope.row.dialysis_no}})
21
-                        </template>
22
-                    </el-table-column>
17
+                        </template> 
18
+                    </el-table-column> 
19
+
23 20
                     <el-table-column prop="state" label="状态" min-width="30" align="center" >
24 21
                         <template slot-scope="scope">
25 22
                             <span v-if="scope.row.signin.id==0">未签到</span>
@@ -29,11 +26,11 @@
29 26
                     </el-table-column>
30 27
                 </el-table>
31 28
             
32
-                <el-table :data="schedules" style="width: 100%; margin:15px 0 0 0;" border highlight-current-row :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}">
29
+                <el-table  :data="schedules" style="width: 100%; margin:15px 0 0 0;" border highlight-current-row :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}">
33 30
                     <el-table-column prop="shift" label="班次" min-width="30" align="center"></el-table-column>
34 31
                     <el-table-column prop="arrange" label="排班" min-width="30" align="center" ></el-table-column>
35 32
                     <el-table-column prop="sign" label="签到" min-width="30" align="center" ></el-table-column>
36
-                    <el-table-column prop="weight" label="称重" min-width="50" align="center" >
33
+                    <el-table-column prop="weight" label="称重(透前/透后)" min-width="50" align="center" >
37 34
                         <template slot-scope="scope">
38 35
                             {{scope.row.before}} / {{scope.row.after}}
39 36
                         </template>
@@ -43,75 +40,45 @@
43 40
 
44 41
             <el-col :span="17">
45 42
                 <div class="title">患者信息</div>
46
-
47 43
                 <el-form class="information" label-position="left">
48
-                    <el-row :gutter="20">
49
-                        <el-col :span="8">
50
-                            <el-form-item label="姓 名:" label-width="50px">
51
-                                <el-input v-model="weigh_form.name" disabled></el-input>
52
-                            </el-form-item>
53
-                        </el-col>
54
-                        <el-col :span="8">
55
-                            <el-form-item label="干体重(kg):" label-width="85px">
56
-                                <el-input v-model="weigh_form.dry_weight" ></el-input>
57
-                            </el-form-item>
58
-                        </el-col>
59
-                        <el-col :span="8">
60
-                            <el-form-item label="衣物重(kg):" label-width="85px">
61
-                                <el-input v-model="weigh_form.clothes_weight"></el-input>
62
-                            </el-form-item>
63
-                        </el-col>
64
-                    </el-row>
65
-
44
+                   <div class="patient-app-container">
45
+                     <span>姓名:{{weigh_form.name}} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;透析号:{{weigh_form.dialysis_no}} &nbsp;&nbsp;</span> <span class="button"><el-button  @click="change()">修改</el-button></span>
46
+                    </div>
66 47
                     <div class="border"></div>
67 48
 
68 49
                     <el-row :gutter="20">
69 50
                         <el-col :span="8">
70 51
                             <el-form-item label="透前称重(kg):" label-width="100px">
71
-                                <el-input v-model="weigh_form.weigh_before"></el-input>
52
+                                <el-input v-model="weigh_list.weight_before"></el-input>
72 53
                             </el-form-item>
73 54
                         </el-col> 
74 55
                         <el-col :span="8">
75
-                            <el-form-item label="目标脱水(kg):" label-width="100px">
76
-                                <el-input v-model="weigh_form.dehydrated_weight" disabled></el-input>
77
-                            </el-form-item>
78
-                        </el-col>
79
-                        <el-col :span="8">
80
-                            <el-form-item label="脱水百分比:" label-width="90px">
81
-                                <el-input v-model="weigh_form.dehydrated_percent" disabled></el-input>
82
-                            </el-form-item>
83
-                        </el-col>
84
-                    </el-row>
85
-
86
-                    <el-row :gutter="20">
87
-                        <el-col :span="8">
88
-                            <el-form-item label="透前体重(kg):" label-width="100px">
89
-                                <el-input v-model="weigh_form.weight_before" disabled></el-input>
56
+                            <el-form-item label="干体重(kg):" label-width="100px">
57
+                                <el-input v-model="weigh_list.dry_weight"></el-input>
90 58
                             </el-form-item>
91 59
                         </el-col>
92 60
                     </el-row>
93
-
94 61
                     <el-row :gutter="20">
95 62
                         <el-col :span="4">
96
-                            <el-form-item label="T(℃):" label-width="45px">
97
-                                <el-input v-model="weigh_form.temperature_before"></el-input>
63
+                            <el-form-item label="体温(℃):" label-width="80px">
64
+                               <el-input v-model="weigh_list.temperature"></el-input>
98 65
                             </el-form-item>
99 66
                         </el-col>
100 67
                         <el-col :span="5">
101
-                            <el-form-item label="P(次/分):" label-width="70px">
102
-                                <el-input v-model="weigh_form.pulse_rate_before"></el-input>
68
+                            <el-form-item label="脉搏(次/分):" label-width="90px">
69
+                                <el-input v-model="weigh_list.pulse_frequency"></el-input>
103 70
                             </el-form-item>
104 71
                         </el-col>
105 72
                         <el-col :span="5">
106
-                            <el-form-item label="R(次/分):" label-width="70px">
107
-                                <el-input v-model="weigh_form.respiratory_rate_before"></el-input>
73
+                            <el-form-item label="呼吸(次/分):" label-width="100px">
74
+                                <el-input v-model="weigh_list.breathing_rate"></el-input>
108 75
                             </el-form-item>
109 76
                         </el-col>
110 77
                         <el-col :span="9">
111
-                            <el-form-item label="BP(mmHg):" label-width="80px">
112
-                                <el-input v-model="weigh_form.DBP_before" style="width: 70px"></el-input>
78
+                            <el-form-item label="血压(mmHg):" label-width="100px">
79
+                                <el-input v-model="weigh_list.systolic_blood_pressure" style="width: 70px"></el-input>
113 80
                                 <span> / </span>
114
-                                <el-input v-model="weigh_form.SBP_before" style="width: 70px"></el-input>
81
+                                <el-input v-model="weigh_list.diastolic_blood_pressure" style="width: 70px"></el-input>
115 82
                             </el-form-item>
116 83
                         </el-col>
117 84
                     </el-row>
@@ -121,381 +88,465 @@
121 88
                     <el-row :gutter="20">
122 89
                         <el-col :span="8">
123 90
                             <el-form-item label="透后称重(kg):" label-width="100px">
124
-                                <el-input v-model="weigh_form.weigh_after" :disabled="dialysis_stege==2?false:true"></el-input> 
125
-                            </el-form-item>
126
-                        </el-col>
127
-                        <el-col :span="8">
128
-                            <el-form-item label="体重减少(kg):" label-width="100px">
129
-                                <el-input v-model="weigh_form.weight_reduce_after"  :disabled="dialysis_stege==2?false:true"></el-input>
91
+                                <el-input v-model="weigh_infor.weight_after"></el-input>
130 92
                             </el-form-item>
131 93
                         </el-col>
132
-                    </el-row>
133
-
134
-                    <el-row :gutter="20">
135 94
                         <el-col :span="8">
136
-                            <el-form-item label="透后体重(kg):" label-width="100px">
137
-                                <el-input v-model="weigh_form.weight_after"  :disabled="dialysis_stege==2?false:true"></el-input>
95
+                            <el-form-item label="干体重(kg):" label-width="100px">
96
+                                <el-input v-model="weigh_list.dry_weight"></el-input>
138 97
                             </el-form-item>
139 98
                         </el-col>
140 99
                     </el-row>
141
-
142 100
                     <el-row :gutter="20">
143 101
                         <el-col :span="4">
144
-                            <el-form-item label="T(℃):" label-width="45px">
145
-                                <el-input v-model="weigh_form.temperature_after"  :disabled="dialysis_stege==2?false:true"></el-input>
102
+                            <el-form-item label="体温(℃):" label-width="80px">
103
+                                <el-input v-model="weigh_infor.temperature"></el-input>
146 104
                             </el-form-item>
147 105
                         </el-col>
148 106
                         <el-col :span="5">
149
-                            <el-form-item label="P(次/分):" label-width="70px">
150
-                                <el-input v-model="weigh_form.pulse_rate_after"  :disabled="dialysis_stege==2?false:true"></el-input>
107
+                            <el-form-item label="脉搏(次/分):" label-width="90px">
108
+                                <el-input v-model="weigh_infor.pulse_frequency"></el-input>
151 109
                             </el-form-item>
152 110
                         </el-col>
153 111
                         <el-col :span="5">
154
-                            <el-form-item label="R(次/分):" label-width="70px">
155
-                                <el-input v-model="weigh_form.respiratory_rate_after"  :disabled="dialysis_stege==2?false:true"></el-input>
112
+                            <el-form-item label="呼吸(次/分):" label-width="100px">
113
+                                <el-input v-model="weigh_infor.breathing_rate"></el-input>
156 114
                             </el-form-item>
157 115
                         </el-col>
158 116
                         <el-col :span="9">
159
-                            <el-form-item label="BP(mmHg):" label-width="80px">
160
-                                <el-input v-model="weigh_form.DBP_after" style="width: 70px"  :disabled="dialysis_stege==2?false:true"></el-input>
117
+                            <el-form-item label="血压(mmHg):" label-width="100px">
118
+                                <el-input v-model="weigh_infor.systolic_blood_pressure" style="width: 70px" ></el-input>
161 119
                                 <span> / </span>
162
-                                <el-input v-model="weigh_form.SBP_after" style="width: 70px"  :disabled="dialysis_stege==2?false:true"></el-input>
120
+                                <el-input v-model="weigh_infor.diastolic_blood_pressure" style="width: 70px" ></el-input>
163 121
                             </el-form-item>
164 122
                         </el-col>
165 123
                     </el-row>
166 124
                     
167 125
                     <div class="border"></div>
168
-                    
126
+                    <div v-if="show">
169 127
                     <el-row :gutter="20">
170 128
                         <el-col :span="23" align="right">
171
-                            <el-button @click="submitSign" :disabled="weigh_form.choose?false:true" type="primary">保 存</el-button>
129
+                            <el-button  @click="hide()">取消</el-button>
130
+                            <el-button @click="savedata();updatedata()" type="primary">保存</el-button>
172 131
                         </el-col>
173 132
                     </el-row>
133
+                   </div>
174 134
                 </el-form>
175 135
             </el-col>
176 136
         </el-row>
177 137
     </div>
178
- </div>
179 138
 </template>
180 139
 
181 140
 <script>
182
-import {fetchSignPatients,getPatientSign,SignWeigh} from '@/api/signandweigh';
183
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
184
-
141
+import { fetchSignPatients, getPatientSign, SignWeigh, getDialysisInforInfomation, getDialysisAfterInfomation, createdata, editdata } from '@/api/signandweigh'
185 142
 export default {
186
-  name: "sign",
143
+  name: 'sign',
187 144
   data() {
188 145
     return {
189
-        signAndWeighBoxPatients:'sign-and-weigh-box-patients',
190
-        queryParams:{
191
-            keywords: '',
192
-            schedule_type: '',
193
-            need_schedule_type:0,
194
-        },
195
-        querySignParams:{
196
-            patient_id:0,
197
-            date_time:'',
198
-        },
199
-        weigh_form: {
200
-            choose:false,
201
-            name: '',
202
-            dry_weight: '',
203
-            clothes_weight: '',
204
-            // 透前
205
-            weigh_before: '',
206
-            dehydrated_weight: '',
207
-            dehydrated_percent: '',
208
-            weight_before: '',
209
-            temperature_before: '',
210
-            pulse_rate_before: '',  // P 脉率
211
-            respiratory_rate_before: '', // R 呼吸频率
212
-            DBP_before: '', // 舒张压
213
-            SBP_before: '', // 收缩压
214
-            // 透后
215
-            weigh_after: '',
216
-            weight_reduce_after: '',
217
-            weight_after: '',
218
-            temperature_after: '',
219
-            pulse_rate_after: '', // P 脉率
220
-            respiratory_rate_after: '', // R 呼吸频率
221
-            DBP_after: '', // 舒张压
222
-            SBP_after: '', // 收缩压
223
-        },
224
-        shiftOptions:[
225
-            { value:0, label:'全部' },
226
-            { value:1, label:'上午' },
227
-            { value:2, label:'下午' },
228
-            { value:3, label:'晚上' },
229
-        ],
230
-        schedules: [{
231
-            type:1,
232
-            shift: "上午",
233
-            arrange: 0,
234
-            sign: 0,
235
-            before:0,
236
-            after:0,
237
-        }, {
238
-            type:2,
239
-            shift: "下午",
240
-            arrange: 0,
241
-            sign: 0,
242
-            before:0,
243
-            after:0,
244
-        }, {
245
-            type:3,
246
-            shift: "晚上",
247
-            arrange: 0,
248
-            sign: 0,
249
-            before:0,
250
-            after:0,
251
-        }],
252
-        patients: [],
253
-        dialysis_stege:0,
254
-    };
255
-  },
256
-  components:{
257
-    BreadCrumb
258
-  },
259
-  methods:{
260
-      fetchSignPatients(){
261
-          fetchSignPatients(this.queryParams).then(response=>{
262
-              this.patients = [];
263
-              if (response.data.state==1) {
264
-                  this.patients = response.data.data.patients;
265
-                  this.queryParams.schedule_type = response.data.data.schedule_type;
266
-                  this.querySignParams.date_time = response.data.data.today;
267
-
268
-                  if(this.queryParams.need_schedule_type == 1) {
269
-                      var sl = this.schedules.length;
270
-                      for (let index = 0; index < sl; index++) {
271
-                          if(this.schedules[index].type in response.data.data.panel) {
272
-                                this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule;
273
-                                this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign;
274
-                                this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before;
275
-                                this.schedules[index].after = response.data.data.panel[this.schedules[index].type].after;
276
-                          }
277
-                      }
278
-                  }
279
-
280
-              }
281
-          });
146
+      patientlist: [],
147
+      signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
148
+      queryParams: {
149
+        keywords: '',
150
+        schedule_type: '',
151
+        need_schedule_type: 0
282 152
       },
283
-      getPatientSign(){
284
-          getPatientSign(this.querySignParams).then(response=>{
285
-              if (response.data.state==1) {
286
-                  if (response.data.data.sign != null) {
287
-                      var sign = response.data.data.sign;
288
-                      this.weigh_form.dry_weight = sign.dry_weight;
289
-                      this.weigh_form.clothes_weight = sign.clothes_weight;
290
-                        // 透前
291
-                      this.weigh_form.weigh_before = sign.weigh_before;
292
-                      this.weigh_form.dehydrated_weight = sign.dehydrated_weight;
293
-                      this.weigh_form.dehydrated_percent = sign.dehydrated_percent;
294
-                      this.weigh_form.weight_before = sign.weight_before;
295
-                      this.weigh_form.temperature_before = sign.temperature_before;
296
-                      this.weigh_form.pulse_rate_before = sign.pulse_rate_before;  // P 脉率
297
-                      this.weigh_form.respiratory_rate_before = sign.respiratory_rate_before; // R 呼吸频率
298
-                      this.weigh_form.DBP_before = sign.DBP_before; // 舒张压
299
-                      this.weigh_form.SBP_before = sign.SBP_before // 收缩压
300
-                        // 透后
301
-                      this.weigh_form.weigh_after = sign.weigh_after;
302
-                      this.weigh_form.weight_reduce_after = sign.weight_reduce_after;
303
-                      this.weigh_form.weight_after = sign.weight_after
304
-                      this.weigh_form.temperature_after = sign.temperature_after;
305
-                      this.weigh_form.pulse_rate_after = sign.pulse_rate_after; // P 脉率
306
-                      this.weigh_form.respiratory_rate_after = sign.respiratory_rate_after; // R 呼吸频率
307
-                      this.weigh_form.DBP_after = sign.DBP_after; // 舒张压
308
-                      this.weigh_form.SBP_after = sign.SBP_after; // 收缩压
309
-                      this.weigh_form.id=sign.id;
310
-                  }
311
-              }
312
-          });
153
+      querySignParams: {
154
+        patient_id: 0,
155
+        date_time: ''
313 156
       },
314
-      changeSearch(){
315
-            this.queryParams.need_schedule_type = 0;
316
-            this.fetchSignPatients();
157
+      weigh_form: {
158
+        choose: false,
159
+        name: '',
160
+        dry_weight: '',
161
+        clothes_weight: '',
162
+        // 透前
163
+        weigh_before: '',
164
+        dehydrated_weight: '',
165
+        dehydrated_percent: '',
166
+        weight_before: '',
167
+        temperature_before: '',
168
+        pulse_rate_before: '', // P 脉率
169
+        respiratory_rate_before: '', // R 呼吸频率
170
+        DBP_before: '', // 舒张压
171
+        SBP_before: '', // 收缩压
172
+        // 透后
173
+        weigh_after: '',
174
+        weight_reduce_after: '',
175
+        weight_after: '',
176
+        temperature_after: '',
177
+        pulse_rate_after: '', // P 脉率
178
+        respiratory_rate_after: '', // R 呼吸频率
179
+        DBP_after: '', // 舒张压
180
+        SBP_after: '', // 收缩压
181
+        dialysis_no: ''
317 182
       },
318
-      handleCurrentChange(row, old){
319
-            this.weigh_form = {
320
-            id:0,
321
-            choose:false,
322
-            name: '',
323
-            dry_weight: '',
324
-            clothes_weight: '',
325
-            // 透前
326
-            weigh_before: '',
327
-            dehydrated_weight: '',
328
-            dehydrated_percent: '',
329
-            weight_before: '',
330
-            temperature_before: '',
331
-            pulse_rate_before: '',  // P 脉率
332
-            respiratory_rate_before: '', // R 呼吸频率
333
-            DBP_before: '', // 舒张压
334
-            SBP_before: '', // 收缩压
335
-            // 透后
336
-            weigh_after: '',
337
-            weight_reduce_after: '',
338
-            weight_after: '',
339
-            temperature_after: '',
340
-            pulse_rate_after: '', // P 脉率
341
-            respiratory_rate_after: '', // R 呼吸频率
342
-            DBP_after: '', // 舒张压
343
-            SBP_after: '', // 收缩压
344
-            patient_id: 0,
345
-        };
346
-
347
-          this.weigh_form.choose = true;
348
-          this.weigh_form.name = row.name;
349
-          if (row.alias.length>0) {
350
-              this.weigh_form.name += "("+row.alias+")";
183
+      weigh_list: {
184
+        weight_before: '', // 透前体重
185
+        temperature: '', // 体温
186
+        pulse_frequency: '', // 脉搏
187
+        breathing_rate: '', // 呼吸频率
188
+        dry_weight: '', // 干体重
189
+        systolic_blood_pressure: '', // 收缩压
190
+        diastolic_blood_pressure: ''// 舒张压
191
+      },
192
+      weigh_infor: {
193
+        weight_after: '', // 透后体重
194
+        temperature: '',
195
+        pulse_frequency: '',
196
+        breathing_rate: '',
197
+        dry_weight: '',
198
+        systolic_blood_pressure: '',
199
+        diastolic_blood_pressure: ''
200
+      },
201
+      shiftOptions: [
202
+        { value: 0, label: '班次' },
203
+        { value: 1, label: '上午' },
204
+        { value: 2, label: '下午' },
205
+        { value: 3, label: '晚上' }
206
+      ],
207
+      schedules: [{
208
+        type: 1,
209
+        shift: '上午',
210
+        arrange: 0,
211
+        sign: 0,
212
+        before: 0,
213
+        after: 0
214
+      }, {
215
+        type: 2,
216
+        shift: '下午',
217
+        arrange: 0,
218
+        sign: 0,
219
+        before: 0,
220
+        after: 0
221
+      }, {
222
+        type: 3,
223
+        shift: '晚上',
224
+        arrange: 0,
225
+        sign: 0,
226
+        before: 0,
227
+        after: 0
228
+      }],
229
+      patients: [],
230
+      dialysis_stege: 0,
231
+      show: false
232
+    }
233
+  },
234
+  methods: {
235
+    fetchSignPatients() {
236
+      fetchSignPatients(this.queryParams).then(response => {
237
+        this.patients = []
238
+        if (response.data.state === 1) {
239
+          this.patients = response.data.data.patients
240
+          this.queryParams.schedule_type = response.data.data.schedule_type
241
+          this.querySignParams.date_time = response.data.data.today
242
+
243
+          if (this.queryParams.need_schedule_type === 1) {
244
+            var sl = this.schedules.length
245
+            for (let index = 0; index < sl; index++) {
246
+              if (this.schedules[index].type in response.data.data.panel) {
247
+                this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule
248
+                this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
249
+                this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
250
+                this.schedules[index].after = response.data.data.panel[this.schedules[index].type].after
251
+              }
252
+            }
351 253
           }
352
-          this.weigh_form.patient_id = row.id;
353
-          this.querySignParams.patient_id = row.id;
354
-          this.dialysis_stege = row.dialysis_order.stage;
355
-
356
-          if (row.signin != null) {
357
-               this.weigh_form.dry_weight = '' + row.signin.dry_weight;
358
-               this.weigh_form.clothes_weight = '' + row.signin.clothing_weight;
359
-                // 透前
360
-                this.weigh_form.weigh_before = '' + row.signin.weighing_before;
361
-                this.weigh_form.dehydrated_weight = '' + row.signin.target_dewatering;
362
-            
363
-                if (this.weigh_form.dry_weight == 0) {
364
-                    this.weigh_form.dehydrated_percent  = '';
365
-                }else {
366
-                    var dehydrated_percent = ((this.weigh_form.dehydrated_weight/this.weigh_form.dry_weight) * 100).toFixed(2);
367
-                    if (isNaN(dehydrated_percent)) {
368
-                        this.weigh_form.dehydrated_percent  = '';
369
-                    }else {
370
-                        this.weigh_form.dehydrated_percent  = dehydrated_percent + "%";
254
+        }
255
+      })
256
+    },
257
+    //   getPatientSign(){
258
+    //       getPatientSign(this.querySignParams).then(response=>{
259
+    //           if (response.data.state==1) {
260
+    //               if (response.data.data.sign != null) {
261
+    //                   var sign = response.data.data.sign;
262
+    //                   this.weigh_form.dry_weight = sign.dry_weight;
263
+    //                   this.weigh_form.clothes_weight = sign.clothes_weight;
264
+    //                     // 透前
265
+    //                   this.weigh_form.weigh_before = sign.weigh_before;
266
+    //                   this.weigh_form.dehydrated_weight = sign.dehydrated_weight;
267
+    //                   this.weigh_form.dehydrated_percent = sign.dehydrated_percent;
268
+    //                   this.weigh_form.weight_before = sign.weight_before;
269
+    //                   this.weigh_form.temperature_before = sign.temperature_before;
270
+    //                   this.weigh_form.pulse_rate_before = sign.pulse_rate_before;  // P 脉率
271
+    //                   this.weigh_form.respiratory_rate_before = sign.respiratory_rate_before; // R 呼吸频率
272
+    //                   this.weigh_form.DBP_before = sign.DBP_before; // 舒张压
273
+    //                   this.weigh_form.SBP_before = sign.SBP_before // 收缩压
274
+    //                     // 透后
275
+    //                   this.weigh_form.weigh_after = sign.weigh_after;
276
+    //                   this.weigh_form.weight_reduce_after = sign.weight_reduce_after;
277
+    //                   this.weigh_form.weight_after = sign.weight_after
278
+    //                   this.weigh_form.temperature_after = sign.temperature_after;
279
+    //                   this.weigh_form.pulse_rate_after = sign.pulse_rate_after; // P 脉率
280
+    //                   this.weigh_form.respiratory_rate_after = sign.respiratory_rate_after; // R 呼吸频率
281
+    //                   this.weigh_form.DBP_after = sign.DBP_after; // 舒张压
282
+    //                   this.weigh_form.SBP_after = sign.SBP_after; // 收缩压
283
+    //                   this.weigh_form.id=sign.id;
284
+    //               }
285
+    //           }
286
+    //       });
287
+    //   },
288
+    changeSearch() {
289
+      this.queryParams.need_schedule_type = 0
290
+      this.fetchSignPatients()
291
+    },
292
+    handleCurrentChange(row, old) {
293
+      //     this.weigh_form = {
294
+      //     id:0,
295
+      //     choose:false,
296
+      //     name: '',
297
+      //     dry_weight: '',
298
+      //     clothes_weight: '',
299
+      //     // 透前
300
+      //     weigh_before: '',
301
+      //     dehydrated_weight: '',
302
+      //     dehydrated_percent: '',
303
+      //     weight_before: '',
304
+      //     temperature_before: '',
305
+      //     pulse_rate_before: '',  // P 脉率
306
+      //     respiratory_rate_before: '', // R 呼吸频率
307
+      //     DBP_before: '', // 舒张压
308
+      //     SBP_before: '', // 收缩压
309
+      //     // 透后
310
+      //     weigh_after: '',
311
+      //     weight_reduce_after: '',
312
+      //     weight_after: '',
313
+      //     temperature_after: '',
314
+      //     pulse_rate_after: '', // P 脉率
315
+      //     respiratory_rate_after: '', // R 呼吸频率
316
+      //     DBP_after: '', // 舒张压
317
+      //     SBP_after: '', // 收缩压
318
+      //     patient_id: 0,
319
+      //     dialysis_no:'',
320
+      // };
321
+
322
+      this.weigh_form.choose = true
323
+      this.weigh_form.name = row.name
324
+      this.weigh_form.dialysis_no = row.dialysis_no
325
+      //   if (row.alias.length>0) {
326
+      //       this.weigh_form.name += "("+row.alias+")";
327
+      //   }
328
+      this.weigh_form.patient_id = row.id
329
+      this.querySignParams.patient_id = row.id
330
+      this.dialysis_stege = row.dialysis_order.stage
331
+      this.getDialysisInforInfomation(row.id)
332
+      this.getDialysisAfterInfomation(row.id)
333
+      //   if (row.signin != null) {
334
+      //        this.weigh_form.dry_weight = '' + row.signin.dry_weight;
335
+      //        this.weigh_form.clothes_weight = '' + row.signin.clothing_weight;
336
+      //         // 透前
337
+      //         this.weigh_form.weigh_before = '' + row.signin.weighing_before;
338
+      //         this.weigh_form.dehydrated_weight = '' + row.signin.target_dewatering;
339
+
340
+      //         if (this.weigh_form.dry_weight == 0) {
341
+      //             this.weigh_form.dehydrated_percent  = '';
342
+      //         }else {
343
+      //             var dehydrated_percent = ((this.weigh_form.dehydrated_weight/this.weigh_form.dry_weight) * 100).toFixed(2);
344
+      //             if (isNaN(dehydrated_percent)) {
345
+      //                 this.weigh_form.dehydrated_percent  = '';
346
+      //             }else {
347
+      //                 this.weigh_form.dehydrated_percent  = dehydrated_percent + "%";
348
+      //             }
349
+      //         }
350
+
351
+      //         this.weigh_form.weight_before = '' + row.signin.weight_before;
352
+      //         this.weigh_form.temperature_before = '' + row.signin.temperature_before;
353
+      //         this.weigh_form.pulse_rate_before = '' + row.signin.pulse_frequency_before;
354
+      //         this.weigh_form.respiratory_rate_before = '' + row.signin.breathing_rate_before;
355
+      //         this.weigh_form.DBP_before = '' + row.signin.diastolic_blood_pressure_before;
356
+      //         this.weigh_form.SBP_before = '' + row.signin.systolic_blood_pressure_before;
357
+
358
+      //         this.weigh_form.weigh_after = '' + row.signin.weighing_after;
359
+      //         this.weigh_form.weight_reduce_after = '' + row.signin.weight_loss;
360
+      //         this.weigh_form.weight_after = '' + row.signin.weight_after;
361
+      //         this.weigh_form.temperature_after = '' + row.signin.temperature_after;
362
+      //         this.weigh_form.pulse_rate_after = '' + row.signin.pulse_frequency_after;
363
+      //         this.weigh_form.respiratory_rate_after = '' + row.signin.breathing_rate_after;
364
+      //         this.weigh_form.DBP_after = '' + row.signin.diastolic_blood_pressure_after;
365
+      //         this.weigh_form.SBP_after = '' + row.signin.systolic_blood_pressure_after;
366
+      //         this.weigh_form.id = row.signin.id;
367
+      //   }
368
+    },
369
+    submitSign() {
370
+      SignWeigh(this.querySignParams, this.weigh_form).then(response => {
371
+        if (response.data.state === 1) {
372
+          this.$message({
373
+            type: 'success',
374
+            message: '成功!'
375
+          })
376
+
377
+          var tlen = this.patients.length
378
+          for (let index = 0; index < tlen; index++) {
379
+            if (this.patients[index].id === this.querySignParams.patient_id) {
380
+              var signin = this.patients[index].signin
381
+              this.patients[index].signin = response.data.data.sign
382
+
383
+              if (this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)) {
384
+                var sl = this.schedules.length
385
+                for (let j = 0; j < sl; j++) {
386
+                  if (this.schedules[j].type === this.patients[index].schedule.schedule_type) {
387
+                    if (this.weigh_form.id <= 0) {
388
+                      this.schedules[j].sign++
389
+                    }
390
+                    if (signin.weigh_before_time === 0 && response.data.data.sign.weigh_before_time > 0) {
391
+                      this.schedules[j].before++
371 392
                     }
372
-                }
373
-
374
-                this.weigh_form.weight_before = '' + row.signin.weight_before;
375
-                this.weigh_form.temperature_before = '' + row.signin.temperature_before;
376
-                this.weigh_form.pulse_rate_before = '' + row.signin.pulse_frequency_before;
377
-                this.weigh_form.respiratory_rate_before = '' + row.signin.breathing_rate_before;
378
-                this.weigh_form.DBP_before = '' + row.signin.diastolic_blood_pressure_before;
379
-                this.weigh_form.SBP_before = '' + row.signin.systolic_blood_pressure_before;
380
-
381
-                this.weigh_form.weigh_after = '' + row.signin.weighing_after;
382
-                this.weigh_form.weight_reduce_after = '' + row.signin.weight_loss;
383
-                this.weigh_form.weight_after = '' + row.signin.weight_after;
384
-                this.weigh_form.temperature_after = '' + row.signin.temperature_after;
385
-                this.weigh_form.pulse_rate_after = '' + row.signin.pulse_frequency_after;
386
-                this.weigh_form.respiratory_rate_after = '' + row.signin.breathing_rate_after;
387
-                this.weigh_form.DBP_after = '' + row.signin.diastolic_blood_pressure_after;
388
-                this.weigh_form.SBP_after = '' + row.signin.systolic_blood_pressure_after;
389
-                this.weigh_form.id = row.signin.id;
390
-          }
391
-
392
-      },
393
-      submitSign(){
394
-          SignWeigh(this.querySignParams, this.weigh_form).then(response=>{
395
-              if(response.data.state==1){
396
-                this.$message({
397
-                    type: 'success',
398
-                    message: '成功!'
399
-                });
400
-
401
-
402
-                var tlen = this.patients.length;
403
-                for (let index = 0; index < tlen; index++) {
404
-                    if (this.patients[index].id == this.querySignParams.patient_id) {
405
-                        var signin = this.patients[index].signin;
406
-                        this.patients[index].signin = response.data.data.sign;
407
-
408
-                        if (this.patients[index].schedule.id>0 && (this.patients[index].schedule.schedule_type>=1 || this.patients[index].schedule.schedule_type <= 3)) {
409
-                            var sl = this.schedules.length;
410
-                            for (let j = 0; j < sl; j++) {
411
-                                if(this.schedules[j].type == this.patients[index].schedule.schedule_type) {
412
-                                    if(this.weigh_form.id <= 0) {
413
-                                        this.schedules[j].sign ++;
414
-                                    }
415
-                                    if (signin.weigh_before_time==0 && response.data.data.sign.weigh_before_time>0) {
416
-                                        this.schedules[j].before ++;
417
-                                    }
418
-
419
-                                    if(signin.weigh_time==0 && response.data.data.sign.weigh_time>0) {
420
-                                        this.schedules[j].after ++;
421
-                                    }
422 393
 
423
-                                }
424
-                            }
425
-                        }
426
-                        break;
394
+                    if (signin.weigh_time === 0 && response.data.data.sign.weigh_time > 0) {
395
+                      this.schedules[j].after++
427 396
                     }
428
-                    
397
+                  }
429 398
                 }
430
-                this.weigh_form.id = response.data.data.sign.id;
431
-
432
-              }else {
433
-                this.$message.error(response.data.msg);
434
-                return false;
435 399
               }
436
-          });
437
-      }
438
-
439
-  },
440
-  watch:{
441
-      "weigh_form.weigh_before":function () {
442
-          this.weigh_form.weight_before = this.weigh_form.weigh_before - this.weigh_form.clothes_weight;
443
-          this.weigh_form.dehydrated_weight = this.weigh_form.weigh_before - this.weigh_form.dry_weight  - this.weigh_form.clothes_weight;
444
-          this.weigh_form.weight_before += '';
445
-          this.weigh_form.dehydrated_weight += '';
446
-
447
-          if (this.dialysis_stege == 2) {
448
-              this.weigh_form.weight_reduce_after = this.weigh_form.weigh_before - this.weigh_form.weigh_after;
449
-              this.weigh_form.weight_reduce_after += '';
450
-          }
451
-      },
452
-      "weigh_form.weigh_after":function () {
453
-          if (this.dialysis_stege == 2) {
454
-              this.weigh_form.weight_reduce_after = this.weigh_form.weigh_before - this.weigh_form.weigh_after; 
455
-              this.weigh_form.weight_reduce_after += '';
456
-              
457
-              this.weigh_form.weight_after = this.weigh_form.weigh_after - this.weigh_form.clothes_weight; 
458
-              this.weigh_form.weight_after += '';
400
+              break
401
+            }
459 402
           }
460
-      },
461
-      "weigh_form.clothes_weight":function () {
462
-          this.weigh_form.weight_before = this.weigh_form.weigh_before - this.weigh_form.clothes_weight;
463
-          this.weigh_form.dehydrated_weight = this.weigh_form.weigh_before - this.weigh_form.dry_weight  - this.weigh_form.clothes_weight;
464
-          this.weigh_form.weight_before += '';
465
-          this.weigh_form.dehydrated_weight += '';
403
+          this.weigh_form.id = response.data.data.sign.id
404
+        } else {
405
+          this.$message.error(response.data.msg)
406
+          return false
407
+        }
408
+      })
409
+    },
410
+
411
+    getDialysisInforInfomation(id) {
412
+      getDialysisInforInfomation(id).then(response => {
413
+        if (response.data.data.patientlist != null) {
414
+          var patientlist = response.data.data.patientlist
415
+          this.weigh_list.dry_weight = patientlist.dry_weight
416
+          this.weigh_list.weight_before = patientlist.weight_before
417
+          this.weigh_list.temperature = patientlist.temperature
418
+          this.weigh_list.pulse_frequency = patientlist.pulse_frequency
419
+          this.weigh_list.breathing_rate = patientlist.breathing_rate
420
+          this.weigh_list.systolic_blood_pressure = patientlist.systolic_blood_pressure
421
+          this.weigh_list.diastolic_blood_pressure = patientlist.diastolic_blood_pressure
422
+          console.log('報恩 ')
423
+          console.log(patientlist)
424
+        }
425
+      })
426
+    },
427
+
428
+    getDialysisAfterInfomation(id) {
429
+      getDialysisAfterInfomation(id).then(response => {
430
+        if (response.data.data.patientinfor != null) {
431
+          var patientinfor = response.data.data.patientinfor
432
+          console.log(patientinfor)
433
+          this.weigh_infor.dry_weight = patientinfor.dry_weight
434
+          this.weigh_infor.weight_after = patientinfor.weight_after
435
+          console.log(patientinfor.weight_after)
436
+          this.weigh_infor.temperature = patientinfor.temperature
437
+          this.weigh_infor.pulse_frequency = patientinfor.pulse_frequency
438
+          this.weigh_infor.breathing_rate = patientinfor.breathing_rate
439
+          this.weigh_infor.systolic_blood_pressure = patientinfor.systolic_blood_pressure
440
+          this.weigh_infor.diastolic_blood_pressure = patientinfor.diastolic_blood_pressure
441
+        }
442
+      })
443
+    },
444
+    change() {
445
+      this.show = true
446
+    },
447
+    savedata() {
448
+      var params = new Object()
449
+      params.patient_id = this.weigh_form.patient_id
450
+      params.dry_weight = this.weigh_list.dry_weight
451
+      params.weight_before = this.weigh_list.weight_before
452
+      params.temperature = this.weigh_list.temperature
453
+      params.pulse_frequency = this.weigh_list.pulse_frequency
454
+      params.breathing_rate = this.weigh_list.breathing_rate
455
+      params.systolic_blood_pressure = this.weigh_list.systolic_blood_pressure
456
+      params.diastolic_blood_pressure = this.weigh_list.diastolic_blood_pressure
457
+      createdata(params).then(response => {
458
+        if (response.data.state === 1) {
459
+          this.$message({
460
+            type: 'success',
461
+            message: '成功!'
462
+          })
463
+        }
464
+      })
465
+      console.log('aaaaaaaaaaaaaaaaaa')
466
+      console.log(params)
467
+    },
468
+    hide() {
469
+      this.show = false
470
+    },
471
+    updatedata() {
472
+      var params = new Object()
473
+      params.patient_id = this.weigh_form.patient_id
474
+      params.dry_weight = this.weigh_infor.dry_weight
475
+      params.weight_after = this.weigh_infor.weight_after
476
+      params.temperature = this.weigh_infor.temperature
477
+      params.pulse_frequency = this.weigh_infor.pulse_frequency
478
+      params.breathing_rate = this.weigh_infor.breathing_rate
479
+      params.systolic_blood_pressure = this.weigh_infor.systolic_blood_pressure
480
+      params.diastolic_blood_pressure = this.weigh_infor.diastolic_blood_pressure
481
+      editdata(params).then(response => {
482
+        if (response.data.state === 1) {
483
+          this.$message({
484
+            type: 'success',
485
+            message: '成功!'
486
+          })
487
+        }
488
+      })
489
+      console.log('hahahahah')
490
+      console.log(params)
491
+    }
492
+  },
493
+  watch: {
494
+    'weigh_form.weigh_before': function() {
495
+      this.weigh_form.weight_before = this.weigh_form.weigh_before - this.weigh_form.clothes_weight
496
+      this.weigh_form.dehydrated_weight = this.weigh_form.weigh_before - this.weigh_form.dry_weight - this.weigh_form.clothes_weight
497
+      this.weigh_form.weight_before += ''
498
+      this.weigh_form.dehydrated_weight += ''
499
+
500
+      if (this.dialysis_stege === 2) {
501
+        this.weigh_form.weight_reduce_after = this.weigh_form.weigh_before - this.weigh_form.weigh_after
502
+        this.weigh_form.weight_reduce_after += ''
503
+      }
504
+    },
505
+    'weigh_form.weigh_after': function() {
506
+      if (this.dialysis_stege === 2) {
507
+        this.weigh_form.weight_reduce_after = this.weigh_form.weigh_before - this.weigh_form.weigh_after
508
+        this.weigh_form.weight_reduce_after += ''
509
+
510
+        this.weigh_form.weight_after = this.weigh_form.weigh_after - this.weigh_form.clothes_weight
511
+        this.weigh_form.weight_after += ''
512
+      }
513
+    },
514
+    'weigh_form.clothes_weight': function() {
515
+      this.weigh_form.weight_before = this.weigh_form.weigh_before - this.weigh_form.clothes_weight
516
+      this.weigh_form.dehydrated_weight = this.weigh_form.weigh_before - this.weigh_form.dry_weight - this.weigh_form.clothes_weight
517
+      this.weigh_form.weight_before += ''
518
+      this.weigh_form.dehydrated_weight += ''
519
+
520
+      if (this.dialysis_stege === 2) {
521
+        this.weigh_form.weight_after = this.weigh_form.weigh_after - this.weigh_form.clothes_weight
522
+        this.weigh_form.weight_after += ''
523
+      }
524
+    },
525
+    'weigh_form.dry_weight': function() {
526
+      this.weigh_form.dehydrated_weight = this.weigh_form.weigh_before - this.weigh_form.dry_weight - this.weigh_form.clothes_weight
527
+
528
+      this.weigh_form.dehydrated_weight += ''
529
+    },
530
+    'weigh_form.dehydrated_weight': function() {
531
+      if (this.weigh_form.dry_weight === 0) {
532
+        this.weigh_form.dehydrated_percent = ''
533
+      } else {
534
+        var dehydrated_percent = ((this.weigh_form.dehydrated_weight / this.weigh_form.dry_weight) * 100).toFixed(2)
535
+        if (isNaN(dehydrated_percent)) {
536
+          this.weigh_form.dehydrated_percent = ''
537
+        } else {
538
+          this.weigh_form.dehydrated_percent = dehydrated_percent + '%'
539
+        }
540
+      }
541
+    }
466 542
 
467
-          if (this.dialysis_stege == 2) {
468
-              
469
-              this.weigh_form.weight_after = this.weigh_form.weigh_after - this.weigh_form.clothes_weight; 
470
-              this.weigh_form.weight_after += '';
471
-          }
472
-      },
473
-      "weigh_form.dry_weight":function () {
474
-          this.weigh_form.dehydrated_weight = this.weigh_form.weigh_before - this.weigh_form.dry_weight  - this.weigh_form.clothes_weight;
475
-          
476
-          this.weigh_form.dehydrated_weight += '';
477
-      },
478
-      "weigh_form.dehydrated_weight":function () {
479
-          if (this.weigh_form.dry_weight == 0) {
480
-              this.weigh_form.dehydrated_percent  = '';
481
-          }else {
482
-                var dehydrated_percent = ((this.weigh_form.dehydrated_weight/this.weigh_form.dry_weight) * 100).toFixed(2);
483
-                if (isNaN(dehydrated_percent)) {
484
-                    this.weigh_form.dehydrated_percent  = '';
485
-                }else {
486
-                    this.weigh_form.dehydrated_percent  = dehydrated_percent + "%";
487
-                }
488
-          }
489
-          
490
-      },
491
-      
492 543
   },
493
-  created(){
494
-      this.queryParams.schedule_type = -1;
495
-      this.queryParams.need_schedule_type = 1;
496
-      this.fetchSignPatients();
544
+  created() {
545
+    this.queryParams.schedule_type = -1
546
+    this.queryParams.need_schedule_type = 1
547
+    this.fetchSignPatients()
497 548
   }
498
-};
549
+}
499 550
 </script>
500 551
 
501 552
 <style rel="stylesheet/css" lang="scss" scoped>
@@ -535,4 +586,16 @@ export default {
535 586
     background: #6fb5fa;
536 587
 }
537 588
 
589
+ .patient-app-container {
590
+    margin-left: 10px;
591
+    padding-left: 20px;
592
+    margin-bottom: 4px;
593
+    height: 36px;
594
+    line-height: 36px;
595
+  }
596
+
597
+  .button{
598
+      float: right;
599
+      margin-bottom:0px
600
+  }
538 601
 </style>

File diff suppressed because it is too large
+ 0 - 1169
src/xt_pages/user/components/PatientDetail.vue


+ 3 - 3
src/xt_pages/user/courseOfDisease.vue View File

@@ -1,8 +1,8 @@
1 1
 <template>
2
-<div class="main-contain">
2
+<!-- <div class="main-contain">
3 3
     <div class="position">
4 4
        <bread-crumb></bread-crumb>
5
-    </div>
5
+    </div> -->
6 6
     <div class="patient-container ">
7 7
         <patient-sidebar :id="patient_id" defaultActive="1-2"></patient-sidebar>
8 8
         <div class="container" v-loading="loading">
@@ -64,7 +64,7 @@
64 64
             </div>
65 65
         </el-dialog>
66 66
     </div>
67
-</div>
67
+<!-- </div> -->
68 68
 </template>
69 69
 
70 70
 <script>

+ 1 - 0
src/xt_pages/user/dialysisRecord.vue View File

@@ -79,6 +79,7 @@
79 79
               </el-table-column>
80 80
           </el-table>
81 81
           <el-pagination
82
+          align="right"
82 83
             @size-change="handleSizeChange"
83 84
             @current-change="handleCurrentChange"
84 85
             :current-page="queryParams.page"

+ 1 - 0
src/xt_pages/user/dialysisSolution.vue View File

@@ -111,6 +111,7 @@
111 111
     </el-table-column>
112 112
    </el-table>
113 113
   <el-pagination
114
+  align="right"
114 115
           @size-change="handleSizeChange"
115 116
           @current-change="handleCurrentChange"
116 117
           :current-page="queryParams.page"

+ 1 - 0
src/xt_pages/user/inspection.vue View File

@@ -65,6 +65,7 @@
65 65
             </el-table-column>
66 66
           </el-table>
67 67
           <el-pagination
68
+          align="right"
68 69
             @current-change="handleCurrentChangePage"
69 70
             :current-page="queryParams.page"
70 71
             :page-size="1"

File diff suppressed because it is too large
+ 692 - 437
src/xt_pages/user/patients.vue


+ 1 - 0
src/xt_pages/user/proeducation.vue View File

@@ -19,6 +19,7 @@
19 19
             </el-table>
20 20
             
21 21
             <el-pagination
22
+          align="right"
22 23
                 @size-change="handleSizeChange"
23 24
                 @current-change="handleCurrentChange"
24 25
                 :current-page="listQuery.page"