Browse Source

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

张保健 4 years ago
parent
commit
b76c0314eb
60 changed files with 17526 additions and 9764 deletions
  1. 15 0
      src/api/advice.js
  2. 22 2
      src/api/article.js
  3. 44 0
      src/api/config.js
  4. 1 0
      src/api/data.js
  5. 109 146
      src/api/dialysis.js
  6. 21 0
      src/api/inspection.js
  7. 49 5
      src/api/manage.js
  8. 3 1
      src/lang/zh.js
  9. 39 29
      src/router/modules/device.js
  10. 10 4
      src/router/modules/systems.js
  11. 51 48
      src/xt_pages/data/components/table.vue
  12. 2 1
      src/xt_pages/data/components/tableson.vue
  13. 61 10
      src/xt_pages/data/druguseTemplate.vue
  14. 901 0
      src/xt_pages/data/prescription.vue
  15. 2128 937
      src/xt_pages/dialysis/batch_print/batch_print_order.vue
  16. 2282 1161
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  17. 105 59
      src/xt_pages/dialysis/bloodPresssWatch.1.vue
  18. 149 147
      src/xt_pages/dialysis/bloodPresssWatch.vue
  19. 11 8
      src/xt_pages/dialysis/details/NavIgation.vue
  20. 20 4
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  21. 7 3
      src/xt_pages/dialysis/details/index.vue
  22. 2547 1422
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  23. 37 12
      src/xt_pages/management/components/ManageForm.vue
  24. 76 79
      src/xt_pages/management/components/PlanForm.vue
  25. 816 480
      src/xt_pages/management/components/QualityForm.vue
  26. 16 16
      src/xt_pages/management/components/RemanderForm.vue
  27. 52 23
      src/xt_pages/management/components/RepairForm.vue
  28. 806 675
      src/xt_pages/management/components/UserForm.vue
  29. 143 82
      src/xt_pages/management/home.vue
  30. 64 62
      src/xt_pages/management/index.vue
  31. 211 0
      src/xt_pages/mode/index.vue
  32. 15 1
      src/xt_pages/qcd/dialysisTotal.vue
  33. 15 1
      src/xt_pages/qcd/outcomeIndicators/control.vue
  34. 15 1
      src/xt_pages/qcd/patientAnalysis/total.vue
  35. 15 1
      src/xt_pages/qcd/processIndicators.vue
  36. 11 1
      src/xt_pages/stock/cancelStockOrder.vue
  37. 11 1
      src/xt_pages/stock/detail/cancelStockDetail.vue
  38. 11 1
      src/xt_pages/stock/detail/salesReturnDetail.vue
  39. 11 1
      src/xt_pages/stock/detail/stockInDetail.vue
  40. 11 1
      src/xt_pages/stock/detail/stockOutDetail.vue
  41. 11 1
      src/xt_pages/stock/otherCancelStockOrder.vue
  42. 125 127
      src/xt_pages/stock/otherSalesReturnOrder.vue
  43. 11 1
      src/xt_pages/stock/otherStockInOrder.vue
  44. 11 1
      src/xt_pages/stock/otherStockOutOrder.vue
  45. 11 0
      src/xt_pages/stock/salesReturnOrder.vue
  46. 0 2
      src/xt_pages/stock/stockInOrder.vue
  47. 127 117
      src/xt_pages/stock/stockOutOrder.vue
  48. 80 9
      src/xt_pages/upload/fast/FastCountry.vue
  49. 3 3
      src/xt_pages/upload/fast/FastPatientsSidebar.vue
  50. 2 1
      src/xt_pages/upload/fast/FastProvince.vue
  51. 0 1
      src/xt_pages/upload/fast/FastUploadDetail.vue
  52. 373 54
      src/xt_pages/upload/fast/One.vue
  53. 638 207
      src/xt_pages/upload/fast/Two.vue
  54. 73 3
      src/xt_pages/user/components/PatientDetail.vue
  55. 74 3
      src/xt_pages/user/components/PatientForm.vue
  56. 3 3
      src/xt_pages/user/components/PatientSidebar.vue
  57. 87 0
      src/xt_pages/user/dialysisSolution.vue
  58. 3431 2709
      src/xt_pages/user/doctorAdvice.vue
  59. 2 2
      src/xt_pages/user/inspection.vue
  60. 1551 1095
      src/xt_pages/workforce/components/tableData.vue

+ 15 - 0
src/api/advice.js View File

296
 
296
 
297
 
297
 
298
 
298
 
299
+export function getDoctorInitConfig() {
300
+  return request({
301
+    url: '/api/advicetemplate/init/get',
302
+    method: 'get',
303
+  })
304
+}
305
+
299
 
306
 
307
+export function PostInitAdviceTemplate(params) {
308
+  return request({
309
+    url: '/api/advicetemplate/init/commit',
310
+    method: 'post',
311
+    params:params
312
+
313
+  })
314
+}
300
 
315
 
301
 
316
 
302
 
317
 

+ 22 - 2
src/api/article.js View File

12
   return request({
12
   return request({
13
     url: '/article/detail',
13
     url: '/article/detail',
14
     method: 'get',
14
     method: 'get',
15
-    params: { id }
15
+    params: {
16
+      id
17
+    }
16
   })
18
   })
17
 }
19
 }
18
 
20
 
20
   return request({
22
   return request({
21
     url: '/article/pv',
23
     url: '/article/pv',
22
     method: 'get',
24
     method: 'get',
23
-    params: { pv }
25
+    params: {
26
+      pv
27
+    }
24
   })
28
   })
25
 }
29
 }
26
 
30
 
39
     data
43
     data
40
   })
44
   })
41
 }
45
 }
46
+
47
+export function handleUpdateTwo(id, params) {
48
+  return request({
49
+    url: '/article/hanleupdatetwo?id=' + id,
50
+    method: 'get',
51
+    params: params
52
+  })
53
+}
54
+
55
+export function updateDataTwo(id, data) {
56
+  return request({
57
+    url: '/article/updatedatatwo?id=' + id,
58
+    method: 'post',
59
+    data: data
60
+  })
61
+}

+ 44 - 0
src/api/config.js View File

48
   })
48
   })
49
 }
49
 }
50
 
50
 
51
+
52
+
53
+
54
+
55
+export function getAllSystemPrescription() {
56
+  return request({
57
+    url: '/api/systemprescription/all',
58
+    method: 'get',
59
+  })
60
+}
61
+
62
+
63
+export function getSystemPrescription(params) {
64
+  return request({
65
+    url: '/api/systemprescription/get',
66
+    method: 'get',
67
+    params:params
68
+
69
+  })
70
+}
71
+
72
+
73
+export function postSystemPrescription(params) {
74
+  return request({
75
+    url: '/api/systemprescription/commit',
76
+    method: 'post',
77
+    data: params
78
+
79
+  })
80
+}
81
+
82
+
83
+export function updateSystemPrescription(id,params) {
84
+  return request({
85
+    url: '/api/systemprescription/update?id='+id,
86
+    method: 'post',
87
+    data: params
88
+
89
+  })
90
+}
91
+
92
+
93
+
94
+

+ 1 - 0
src/api/data.js View File

65
     method: 'get',
65
     method: 'get',
66
   })
66
   })
67
 }
67
 }
68
+

+ 109 - 146
src/api/dialysis.js View File

1
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
 
2
 
3
-
4
-export function fetchList(params){
3
+export function fetchList(params) {
5
   return request({
4
   return request({
6
-    url:'/api/patients',
7
-    method:'get',
8
-    params:params
5
+    url: '/api/patients',
6
+    method: 'get',
7
+    params: params
9
   })
8
   })
10
 }
9
 }
11
 
10
 
12
-
13
-
14
-export function getSchedualPatient(params){
11
+export function getSchedualPatient(params) {
15
   return request({
12
   return request({
16
-    url:'/api/dialysis/patients',
17
-    method:'get',
18
-    params:params
13
+    url: '/api/dialysis/patients',
14
+    method: 'get',
15
+    params: params
19
   })
16
   })
20
 }
17
 }
21
 
18
 
22
-
23
-export function PatientInfo(params){
19
+export function PatientInfo(params) {
24
   return request({
20
   return request({
25
-    url:'/api/dialysis/info',
26
-    method:'get',
27
-    params:params
21
+    url: '/api/dialysis/info',
22
+    method: 'get',
23
+    params: params
28
   })
24
   })
29
 }
25
 }
30
 
26
 
31
-export function doctorAndNurseList(params){
27
+export function doctorAndNurseList(params) {
32
   return request({
28
   return request({
33
-    url:'/api/alldoctors',
34
-    method:'get',
35
-    params:params
29
+    url: '/api/alldoctors',
30
+    method: 'get',
31
+    params: params
36
   })
32
   })
37
 }
33
 }
38
 
34
 
39
-
40
-export function commitDailysisRecord(params){
35
+export function commitDailysisRecord(params) {
41
   return request({
36
   return request({
42
-    url:'/api/dialysis/record',
43
-    method:'post',
44
-    params:params
37
+    url: '/api/dialysis/record',
38
+    method: 'post',
39
+    params: params
45
   })
40
   })
46
 }
41
 }
47
 
42
 
48
-export function getGobelInfo(params){
43
+export function getGobelInfo(params) {
49
   return request({
44
   return request({
50
-    url:'/api/dialysis/golbal',
51
-    method:'post',
52
-    params:params
45
+    url: '/api/dialysis/golbal',
46
+    method: 'post',
47
+    params: params
53
   })
48
   })
54
 }
49
 }
55
 
50
 
56
-
57
-export function CreateDoctorAdvice(id,dialysisId,record_date,params){
51
+export function CreateDoctorAdvice(id, dialysisId, record_date, params) {
58
   return request({
52
   return request({
59
-    url:'/api/dialysis/advice/create?id='+id+"&dialysis_id="+dialysisId+"&record_date="+record_date,
60
-    method:'post',
61
-    data:params
53
+    url: '/api/dialysis/advice/create?id=' + id + '&dialysis_id=' + dialysisId + '&record_date=' + record_date,
54
+    method: 'post',
55
+    data: params
62
   })
56
   })
63
 }
57
 }
64
 
58
 
65
-export function getDoctorAdviceById(params){
59
+export function getDoctorAdviceById(params) {
66
   return request({
60
   return request({
67
-    url:'/api/dialysis/advice/get',
68
-    method:'get',
69
-    params:params
61
+    url: '/api/dialysis/advice/get',
62
+    method: 'get',
63
+    params: params
70
   })
64
   })
71
 }
65
 }
72
 
66
 
73
-export function editDoctorAdviceById(params){
67
+export function editDoctorAdviceById(params) {
74
   return request({
68
   return request({
75
-    url:'/api/dialysis/advice/edit',
76
-    method:'put',
77
-    params:params
69
+    url: '/api/dialysis/advice/edit',
70
+    method: 'put',
71
+    params: params
78
   })
72
   })
79
 }
73
 }
80
 
74
 
81
-
82
-export function CreateMonitor(params){
75
+export function CreateMonitor(params) {
83
   return request({
76
   return request({
84
-    url:'/api/dialysis/monitor/create',
85
-    method:'post',
86
-    params:params
77
+    url: '/api/dialysis/monitor/create',
78
+    method: 'post',
79
+    params: params
87
   })
80
   })
88
 }
81
 }
89
 
82
 
90
-export function DelMonitor(params){
83
+export function DelMonitor(params) {
91
   return request({
84
   return request({
92
-    url:'/api/dialysis/monitor/del',
93
-    method:'post',
94
-    params:params
85
+    url: '/api/dialysis/monitor/del',
86
+    method: 'post',
87
+    params: params
95
   })
88
   })
96
 }
89
 }
97
 
90
 
98
-
99
-export function GetAllZone(params){
91
+export function GetAllZone(params) {
100
   return request({
92
   return request({
101
-    url:'/api/dialysis/zone',
102
-    method:'get',
103
-    params:params
93
+    url: '/api/dialysis/zone',
94
+    method: 'get',
95
+    params: params
104
   })
96
   })
105
 }
97
 }
106
 
98
 
107
-
108
-export function PostStartRecordInfo(params){
99
+export function PostStartRecordInfo(params) {
109
   return request({
100
   return request({
110
-    url:'/api/dialysis/start',
111
-    method:'post',
112
-    params:params
101
+    url: '/api/dialysis/start',
102
+    method: 'post',
103
+    params: params
113
   })
104
   })
114
 }
105
 }
115
 
106
 
116
-export function GetGlobalInfo(params){
107
+export function GetGlobalInfo(params) {
117
   return request({
108
   return request({
118
-    url:'/api/dialysis/device',
119
-    method:'get',
120
-    params:params
109
+    url: '/api/dialysis/device',
110
+    method: 'get',
111
+    params: params
121
   })
112
   })
122
 }
113
 }
123
 
114
 
124
-export function GetDeviceInfo(params){
115
+export function GetDeviceInfo(params) {
125
   return request({
116
   return request({
126
-    url:'/api/dialysis/device',
127
-    method:'get',
128
-    params:params
117
+    url: '/api/dialysis/device',
118
+    method: 'get',
119
+    params: params
129
   })
120
   })
130
 }
121
 }
131
 
122
 
132
-
133
-export function commitDailysisSolution(params){
123
+export function commitDailysisSolution(params) {
134
   return request({
124
   return request({
135
-    url:'/api/dialysis/global',
136
-    method:'get',
137
-    params:params
125
+    url: '/api/dialysis/global',
126
+    method: 'get',
127
+    params: params
138
   })
128
   })
139
 }
129
 }
140
 
130
 
141
-
142
-export function delMonitor(params){
131
+export function delMonitor(params) {
143
   return request({
132
   return request({
144
-    url:'/api/dialysis/monitor/del',
145
-    method:'post',
146
-    params:params
133
+    url: '/api/dialysis/monitor/del',
134
+    method: 'post',
135
+    params: params
147
   })
136
   })
148
 }
137
 }
149
 
138
 
150
-
151
 export function getDialysisRecord(params) {
139
 export function getDialysisRecord(params) {
140
+  console.log('params容声哦', params)
152
   return request({
141
   return request({
153
-    url:'/api/dialysis/dialysisorder',
154
-    method:'Get',
155
-    params:params
142
+    url: '/api/dialysis/dialysisorder',
143
+    method: 'Get',
144
+    params: params
156
   })
145
   })
157
 }
146
 }
158
 
147
 
159
-
160
-
161
-
162
-
163
 export function postPrescription(params) {
148
 export function postPrescription(params) {
164
   return request({
149
   return request({
165
-    url:'/api/dialysis/prescription',
166
-    method:'Post',
167
-    params:params
150
+    url: '/api/dialysis/prescription',
151
+    method: 'Post',
152
+    params: params
168
   })
153
   })
169
 }
154
 }
170
 
155
 
171
-
172
-
173
 export function postSoulution(params) {
156
 export function postSoulution(params) {
174
   return request({
157
   return request({
175
-    url:'/api/dialysis/soulution',
176
-    method:'Post',
177
-    params:params
158
+    url: '/api/dialysis/soulution',
159
+    method: 'Post',
160
+    params: params
178
   })
161
   })
179
 }
162
 }
180
 
163
 
181
-
182
 export function postDoubleCheck(params) {
164
 export function postDoubleCheck(params) {
183
   return request({
165
   return request({
184
-    url:'/api/dialysis/dobule',
185
-    method:'Post',
186
-    params:params
166
+    url: '/api/dialysis/dobule',
167
+    method: 'Post',
168
+    params: params
187
   })
169
   })
188
 }
170
 }
189
 
171
 
190
-
191
 export function postAccepts(params) {
172
 export function postAccepts(params) {
192
   return request({
173
   return request({
193
-    url:'/api/dialysis/accepts',
194
-    method:'Post',
195
-    params:params
174
+    url: '/api/dialysis/accepts',
175
+    method: 'Post',
176
+    params: params
196
   })
177
   })
197
 }
178
 }
198
 
179
 
199
-
200
 export function postAssessmentBeforeDislysis(params) {
180
 export function postAssessmentBeforeDislysis(params) {
201
   return request({
181
   return request({
202
-    url:'/api/dialysis/assessmentbeforedislysis',
203
-    method:'Post',
204
-    params:params
182
+    url: '/api/dialysis/assessmentbeforedislysis',
183
+    method: 'Post',
184
+    params: params
205
   })
185
   })
206
 }
186
 }
207
 
187
 
208
 export function postTreatmentsummary(params) {
188
 export function postTreatmentsummary(params) {
209
   return request({
189
   return request({
210
     url: '/api/dialysis/treatmentsummary',
190
     url: '/api/dialysis/treatmentsummary',
211
-    method:'Post',
212
-    params:params
191
+    method: 'Post',
192
+    params: params
213
   })
193
   })
214
 }
194
 }
215
 
195
 
216
-
217
-
218
-
219
 export function postAssessmentAfterDislysis(params, data) {
196
 export function postAssessmentAfterDislysis(params, data) {
220
   return request({
197
   return request({
221
-    url:'/api/dialysis/assessmentafterdislysis',
222
-    method:'Post',
223
-    params:params,
224
-    data:data
198
+    url: '/api/dialysis/assessmentafterdislysis',
199
+    method: 'Post',
200
+    params: params,
201
+    data: data
225
   })
202
   })
226
 }
203
 }
227
 
204
 
228
-
229
 export function postDelMonitorInfo(params) {
205
 export function postDelMonitorInfo(params) {
230
   return request({
206
   return request({
231
-    url:'/api/dialysis/monitor/del',
232
-    method:'Post',
233
-    params:params,
234
-    data:data
207
+    url: '/api/dialysis/monitor/del',
208
+    method: 'Post',
209
+    params: params,
210
+    data: data
235
   })
211
   })
236
 }
212
 }
237
 
213
 
238
-
239
-
240
-
241
-
242
-export function CreateGroupAdvice(id, groupno, advices){
214
+export function CreateGroupAdvice(id, groupno, advices) {
243
   return request({
215
   return request({
244
-    url:'/api/advice_remind/create?id='+id + '&groupno=' + groupno,
245
-    method:'post',
246
-    data:advices,
216
+    url: '/api/advice_remind/create?id=' + id + '&groupno=' + groupno,
217
+    method: 'post',
218
+    data: advices
247
   })
219
   })
248
-
249
 }
220
 }
250
 
221
 
251
-
252
-
253
-
254
-
255
-export function GetSolution(params){
222
+export function GetSolution(params) {
256
   return request({
223
   return request({
257
-    url:"/api/solution/get",
258
-    method:'get',
259
-    params:params,
224
+    url: '/api/solution/get',
225
+    method: 'get',
226
+    params: params
260
   })
227
   })
261
-
262
 }
228
 }
263
 
229
 
264
-
265
-
266
-export function CreateDryWeight(params){
230
+export function CreateDryWeight(params) {
267
   return request({
231
   return request({
268
-    url:"/api/dryweight/commit",
269
-    method:'post',
270
-    params:params,
232
+    url: '/api/dryweight/commit',
233
+    method: 'post',
234
+    params: params
271
   })
235
   })
272
-
273
 }
236
 }

+ 21 - 0
src/api/inspection.js View File

38
         params:params,
38
         params:params,
39
     })
39
     })
40
 }
40
 }
41
+
42
+
43
+export function GetUploadInspections(params){
44
+  return request({
45
+    url:'/api/patient/inspection/get',
46
+    method:'get',
47
+    params:params,
48
+  })
49
+}
50
+
51
+export function GetInitInspections(params){
52
+  return request({
53
+    url:'/api/patient/inspectioninit/get',
54
+    method:'get',
55
+    params:params,
56
+  })
57
+}
58
+
59
+
60
+
61
+

+ 49 - 5
src/api/manage.js View File

39
   });
39
   });
40
 }
40
 }
41
 
41
 
42
-export function getAllMachine(zoneid, classid, deviceid) {
42
+export function getAllMachine(zoneid, deviceid) {
43
   const params = {
43
   const params = {
44
     zoneid: zoneid,
44
     zoneid: zoneid,
45
-    classid: classid,
46
     deviceid: deviceid
45
     deviceid: deviceid
47
   };
46
   };
48
   return request({
47
   return request({
61
 }
60
 }
62
 
61
 
63
 export function UpdateMachineInfo(data) {
62
 export function UpdateMachineInfo(data) {
63
+  console.log("data", data);
64
   return request({
64
   return request({
65
     url: "/api/management/updatemachineinfo",
65
     url: "/api/management/updatemachineinfo",
66
     method: "Post",
66
     method: "Post",
93
   });
93
   });
94
 }
94
 }
95
 
95
 
96
-export function getAllPlan(params) {
96
+export function getAllPlan(bedid) {
97
+  const params = {
98
+    bedid: bedid
99
+  };
97
   return request({
100
   return request({
98
     url: "/api/management/getallplan",
101
     url: "/api/management/getallplan",
99
     method: "Get",
102
     method: "Get",
101
   });
104
   });
102
 }
105
 }
103
 
106
 
104
-export function getAllPlanDetail(unitype) {
107
+export function getAllPlanDetail(unitype, bedid) {
105
   // eslint-disable-next-line no-redeclare
108
   // eslint-disable-next-line no-redeclare
106
   const params = {
109
   const params = {
107
-    unitype: unitype
110
+    unitype: unitype,
111
+    bedid: bedid
108
   };
112
   };
109
   return request({
113
   return request({
110
     url: "/api/management/getallplandetail",
114
     url: "/api/management/getallplandetail",
617
     params: params
621
     params: params
618
   });
622
   });
619
 }
623
 }
624
+
625
+export function SaveMode(data) {
626
+  return request({
627
+    url: "/api/manage/savemode",
628
+    method: "post",
629
+    data: data
630
+  });
631
+}
632
+
633
+export function getAllMode(params) {
634
+  return request({
635
+    url: "/api/manage/getallmode",
636
+    method: "get",
637
+    params: params
638
+  });
639
+}
640
+
641
+export function EditMode(id, params) {
642
+  return request({
643
+    url: "/api/manage/editmode?id=" + id,
644
+    method: "get",
645
+    params: params
646
+  });
647
+}
648
+
649
+export function UpdateMode(id, data) {
650
+  return request({
651
+    url: "/api/manage/updatemode?id=" + id,
652
+    method: "post",
653
+    data: data
654
+  });
655
+}
656
+
657
+export function DeleteMode(id, params) {
658
+  return request({
659
+    url: "/api/manage/deletemode?id=" + id,
660
+    method: "delete",
661
+    params: params
662
+  });
663
+}

+ 3 - 1
src/lang/zh.js View File

94
     dryWeight: '干体重',
94
     dryWeight: '干体重',
95
     device: '设备',
95
     device: '设备',
96
     deviceManage: '设备管理',
96
     deviceManage: '设备管理',
97
+    modemanagement:'型号管理',
97
     dialysisMachineManage: '设备管理',
98
     dialysisMachineManage: '设备管理',
98
     workforce: '排班管理',
99
     workforce: '排班管理',
99
     appointment: '排班管理',
100
     appointment: '排班管理',
164
     export: '一键导出',
165
     export: '一键导出',
165
     upload_config: '质控上报配置',
166
     upload_config: '质控上报配置',
166
     quality_control: '质控上报',
167
     quality_control: '质控上报',
167
-    remind_print: '排版提醒打印'
168
+    remind_print: '排版提醒打印',
169
+    system_prescription:"透析方案",
168
 
170
 
169
   },
171
   },
170
   navbar: {
172
   navbar: {

+ 39 - 29
src/router/modules/device.js View File

1
-import Layout from "@/views/layout/Layout";
2
-import { S_IFMT } from "constants";
1
+import Layout from '@/views/layout/Layout'
2
+import {
3
+  S_IFMT
4
+} from 'constants'
3
 
5
 
4
 export default {
6
 export default {
5
-  path: "/device",
7
+  path: '/device',
6
   component: Layout,
8
   component: Layout,
7
-  redirect: "/device/main",
8
-  name: "device",
9
+  redirect: '/device/main',
10
+  name: 'device',
9
   alwaysShow: true,
11
   alwaysShow: true,
10
   meta: {
12
   meta: {
11
-    title: "deviceManage",
12
-    icon: "shebei"
13
+    title: 'deviceManage',
14
+    icon: 'shebei'
13
   },
15
   },
14
-  children: [
16
+  children: [{
17
+      path: '/device/zones',
18
+      component: () => import('@/xt_pages/device/zone_main'),
19
+      name: 'deviceZoneManage',
20
+      meta: {
21
+        title: 'deviceZoneManage'
22
+      }
23
+    },
15
     {
24
     {
16
-      path: "/device/zones",
17
-      component: () => import("@/xt_pages/device/zone_main"),
18
-      name: "deviceZoneManage",
25
+      path: '/device/groups',
26
+      component: () => import('@/xt_pages/device/group_main'),
27
+      name: 'deviceGroupManage',
19
       meta: {
28
       meta: {
20
-        title: "deviceZoneManage"
29
+        title: 'deviceGroupManage'
21
       }
30
       }
22
     },
31
     },
23
     {
32
     {
24
-      path: "/device/groups",
25
-      component: () => import("@/xt_pages/device/group_main"),
26
-      name: "deviceGroupManage",
33
+      path: '/device/numbers',
34
+      component: () => import('@/xt_pages/device/number_main'),
35
+      name: 'deviceNumberManage',
27
       meta: {
36
       meta: {
28
-        title: "deviceGroupManage"
37
+        title: 'deviceNumberManage'
29
       }
38
       }
30
     },
39
     },
31
     {
40
     {
32
-      path: "/device/numbers",
33
-      component: () => import("@/xt_pages/device/number_main"),
34
-      name: "deviceNumberManage",
41
+      path: '/device/mode',
42
+      component: () => import('@/xt_pages/mode/index'),
43
+      name: 'modemanagement',
35
       meta: {
44
       meta: {
36
-        title: "deviceNumberManage"
45
+        title: 'modemanagement'
37
       }
46
       }
38
     },
47
     },
39
     {
48
     {
40
-      path: "/device/main",
41
-      component: () => import("@/xt_pages/management/index"),
49
+      path: '/device/main',
50
+      component: () => import('@/xt_pages/management/index'),
42
       // component: () => import("@/xt_pages/device/main"),
51
       // component: () => import("@/xt_pages/device/main"),
43
-      name: "dialysisMachineManage",
52
+      name: 'dialysisMachineManage',
44
       meta: {
53
       meta: {
45
-        title: "dialysisMachineManage"
54
+        title: 'dialysisMachineManage'
46
       }
55
       }
47
     },
56
     },
48
     {
57
     {
49
-      path: "/device/home",
50
-      component: () => import("@/xt_pages/management/home"),
51
-      name: "managementHome",
58
+      path: '/device/home',
59
+      component: () => import('@/xt_pages/management/home'),
60
+      name: 'managementHome',
52
       is_menu: false,
61
       is_menu: false,
53
       hidden: true,
62
       hidden: true,
54
       meta: {
63
       meta: {
55
-        title: "设备管理详情页"
64
+        title: '设备管理详情页'
56
       }
65
       }
57
     }
66
     }
67
+
58
   ]
68
   ]
59
-};
69
+}

+ 10 - 4
src/router/modules/systems.js View File

82
     meta: {
82
     meta: {
83
       title: 'template'
83
       title: 'template'
84
     }
84
     }
85
-  },
86
-  {
85
+  },{
86
+      path: '/data/prescription',
87
+      component: () => import('@/xt_pages/data/prescription'),
88
+      name: 'prescription',
89
+      meta: {
90
+        title: 'system_prescription'
91
+      }
92
+    }, {
87
     path: '/data/druguse',
93
     path: '/data/druguse',
88
     component: () => import('@/xt_pages/data/druguseTemplate'),
94
     component: () => import('@/xt_pages/data/druguseTemplate'),
89
     name: 'druguse',
95
     name: 'druguse',
97
     meta: {
103
     meta: {
98
       title: 'showconfig'
104
       title: 'showconfig'
99
     }
105
     }
100
-  }, {
106
+  },{
101
     path: '/data/print',
107
     path: '/data/print',
102
     component: () => import('@/xt_pages/data/printTemplate'),
108
     component: () => import('@/xt_pages/data/printTemplate'),
103
     name: 'printTemplate',
109
     name: 'printTemplate',
111
     meta: {
117
     meta: {
112
       title: 'hisconfig'
118
       title: 'hisconfig'
113
     }
119
     }
114
-  }
120
+  },
115
   ]
121
   ]
116
 }
122
 }

+ 51 - 48
src/xt_pages/data/components/table.vue View File

263
             }
263
             }
264
             const result = response.data.data.dataconfig;
264
             const result = response.data.data.dataconfig;
265
             // 更新store
265
             // 更新store
266
-            store.dispatch('updateConfigList',result).then(() => {
266
+            store.dispatch("updateConfigList", result).then(() => {});
267
 
267
 
268
-            })
268
+            this.dialogFormVisible = false;
269
 
269
 
270
-            this.dialogFormVisible = false
271
-
272
-            this.$message.success("创建成功")
273
-
274
-          })
270
+            this.$message.success("创建成功");
271
+          });
275
         }
272
         }
276
-      })
273
+      });
277
     },
274
     },
278
     handleUpdate(row) {
275
     handleUpdate(row) {
279
-      this.temp = Object.assign({}, row) // copy obj
280
-      this.temp.timestamp = new Date(this.temp.timestamp)
281
-      this.dialogStatus = 'update'
282
-      this.dialogFormVisible = true
276
+      this.temp = Object.assign({}, row); // copy obj
277
+      this.temp.timestamp = new Date(this.temp.timestamp);
278
+      this.dialogStatus = "update";
279
+      this.dialogFormVisible = true;
283
       this.$nextTick(() => {
280
       this.$nextTick(() => {
284
-        this.$refs['dataForm'].clearValidate()
285
-      })
281
+        this.$refs["dataForm"].clearValidate();
282
+      });
286
     },
283
     },
287
     updateData() {
284
     updateData() {
288
-      this.$refs['dataForm'].validate((valid) => {
285
+      this.$refs["dataForm"].validate(valid => {
289
         if (valid) {
286
         if (valid) {
290
-          const tempData = Object.assign({}, this.temp)
291
-          tempData.timestamp = +new Date(tempData.timestamp) // change Thu Nov 30 2017 16:41:05 GMT+0800 (CST) to 1512031311464
287
+          const tempData = Object.assign({}, this.temp);
288
+          tempData.timestamp = +new Date(tempData.timestamp); // change Thu Nov 30 2017 16:41:05 GMT+0800 (CST) to 1512031311464
292
           updateArticle(tempData).then(() => {
289
           updateArticle(tempData).then(() => {
293
             for (const v of this.list) {
290
             for (const v of this.list) {
294
               if (v.id === this.temp.id) {
291
               if (v.id === this.temp.id) {
295
-                const index = this.list.indexOf(v)
296
-                this.list.splice(index, 1, this.temp)
297
-                break
292
+                const index = this.list.indexOf(v);
293
+                this.list.splice(index, 1, this.temp);
294
+                break;
298
               }
295
               }
299
             }
296
             }
300
-            this.dialogFormVisible = false
301
-
302
-            this.$message.success("更新成功")
297
+            this.dialogFormVisible = false;
303
 
298
 
304
-          })
299
+            this.$message.success("更新成功");
300
+          });
305
         }
301
         }
306
-      })
302
+      });
307
     },
303
     },
308
     handleDelete(row) {
304
     handleDelete(row) {
305
+      this.$message.success("删除成功");
309
 
306
 
310
-      this.$message.success("删除成功")
311
-
312
-      const index = this.list.indexOf(row)
313
-      this.list.splice(index, 1)
307
+      const index = this.list.indexOf(row);
308
+      this.list.splice(index, 1);
314
     },
309
     },
315
     handleFetchPv(pv) {
310
     handleFetchPv(pv) {
316
       fetchPv(pv).then(response => {
311
       fetchPv(pv).then(response => {
317
-        this.pvData = response.data.pvData
318
-        this.dialogPvVisible = true
319
-      })
312
+        this.pvData = response.data.pvData;
313
+        this.dialogPvVisible = true;
314
+      });
320
     },
315
     },
321
     handleDownload() {
316
     handleDownload() {
322
-      this.downloadLoading = true
323
-      import('@/vendor/Export2Excel').then(excel => {
324
-        const tHeader = ['timestamp', 'title', 'type', 'importance', 'status']
325
-        const filterVal = ['timestamp', 'title', 'type', 'importance', 'status']
326
-        const data = this.formatJson(filterVal, this.list)
317
+      this.downloadLoading = true;
318
+      import("@/vendor/Export2Excel").then(excel => {
319
+        const tHeader = ["timestamp", "title", "type", "importance", "status"];
320
+        const filterVal = [
321
+          "timestamp",
322
+          "title",
323
+          "type",
324
+          "importance",
325
+          "status"
326
+        ];
327
+        const data = this.formatJson(filterVal, this.list);
327
         excel.export_json_to_excel({
328
         excel.export_json_to_excel({
328
           header: tHeader,
329
           header: tHeader,
329
           data,
330
           data,
330
-          filename: 'table-list'
331
-        })
332
-        this.downloadLoading = false
333
-      })
331
+          filename: "table-list"
332
+        });
333
+        this.downloadLoading = false;
334
+      });
334
     },
335
     },
335
     formatJson(filterVal, jsonData) {
336
     formatJson(filterVal, jsonData) {
336
-      return jsonData.map(v => filterVal.map(j => {
337
-        if (j === 'timestamp') {
338
-          return parseTime(v[j])
339
-        } else {
340
-          return v[j]
341
-        }
342
-      }))
337
+      return jsonData.map(v =>
338
+        filterVal.map(j => {
339
+          if (j === "timestamp") {
340
+            return parseTime(v[j]);
341
+          } else {
342
+            return v[j];
343
+          }
344
+        })
345
+      );
343
     }
346
     }
344
   }
347
   }
345
 };
348
 };

+ 2 - 1
src/xt_pages/data/components/tableson.vue View File

78
             <el-form-item label="排序" prop="order">
78
             <el-form-item label="排序" prop="order">
79
               <el-input
79
               <el-input
80
                 type="age"
80
                 type="age"
81
-                v-model.number="temp.order"
81
+                v-model="temp.order"
82
                 placeholder="请输入排序值,数值越大,排序越靠前"
82
                 placeholder="请输入排序值,数值越大,排序越靠前"
83
               ></el-input>
83
               ></el-input>
84
             </el-form-item>
84
             </el-form-item>
385
       this.$refs["dataForm"].validate(valid => {
385
       this.$refs["dataForm"].validate(valid => {
386
         if (valid) {
386
         if (valid) {
387
           const tempData = Object.assign({}, this.temp);
387
           const tempData = Object.assign({}, this.temp);
388
+          console.log("tempData", tempData);
388
           updateChildConfig(tempData).then(response => {
389
           updateChildConfig(tempData).then(response => {
389
             if (!response.data) {
390
             if (!response.data) {
390
               // 由于mockjs 不支持自定义状态码只能这样hack
391
               // 由于mockjs 不支持自定义状态码只能这样hack

+ 61 - 10
src/xt_pages/data/druguseTemplate.vue View File

22
           <div>
22
           <div>
23
             <div class="filter-container">
23
             <div class="filter-container">
24
               <el-button size="small"
24
               <el-button size="small"
25
+                         :loading="loading"
25
                          style="float: right;"
26
                          style="float: right;"
27
+                         :disabled="is_init?true:false"
28
+                         @click="initAdvice()"
29
+                         type="primary">医嘱初始化
30
+              </el-button>
31
+
32
+              <el-button size="small"
33
+                         style="float: right;margin-left: 10px;margin-right: 10px"
26
                          @click="dialogConfigVisible = true"
34
                          @click="dialogConfigVisible = true"
27
                          type="primary">长期医嘱提醒配置
35
                          type="primary">长期医嘱提醒配置
28
               </el-button>
36
               </el-button>
172
 
180
 
173
               <el-table-column prop="blood_flow_volume" align="center" label="提醒频率">
181
               <el-table-column prop="blood_flow_volume" align="center" label="提醒频率">
174
                 <template slot-scope="scope">
182
                 <template slot-scope="scope">
175
-                  <span v-if="scope.row.frequency_type == 1">每次必推</span>
176
-                  <span v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/1次</span>
177
-                  <span v-if="scope.row.frequency_type == 3">每周{{scope.row.week_days}}</span>
183
+                  <span v-if="scope.row.advice_type == 1 &&scope.row.frequency_type == 1">每次必推</span>
184
+                  <span v-if="scope.row.advice_type == 1&&scope.row.frequency_type == 2">{{scope.row.day_count}}天/1次</span>
185
+                  <span v-if="scope.row.advice_type == 1&&scope.row.frequency_type == 3">每周{{scope.row.week_days}}</span>
178
                 </template>
186
                 </template>
179
               </el-table-column>
187
               </el-table-column>
180
 
188
 
276
 
284
 
277
                   <el-table-column prop="blood_flow_volume" align="center" label="提醒频率" v-if="form.advice_type == 1">
285
                   <el-table-column prop="blood_flow_volume" align="center" label="提醒频率" v-if="form.advice_type == 1">
278
                     <template slot-scope="scope">
286
                     <template slot-scope="scope">
279
-                      <span v-if="scope.row.frequency_type == 1">每次必推</span>
280
-                      <span v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/1次</span>
281
-                      <span v-if="scope.row.frequency_type == 3">每周{{scope.row.weekdays}}</span>
287
+                      <span v-if="scope.row.advice_type == 1 &&scope.row.frequency_type == 1">每次必推</span>
288
+                      <span v-if="scope.row.advice_type == 1 &&scope.row.frequency_type == 2">{{scope.row.day_count}}天/1次</span>
289
+                      <span v-if="scope.row.advice_type == 1 &&scope.row.frequency_type == 3">每周{{scope.row.weekdays}}</span>
282
                     </template>
290
                     </template>
283
                   </el-table-column>
291
                   </el-table-column>
284
 
292
 
1187
     UpdateExecutionFrequency,
1195
     UpdateExecutionFrequency,
1188
     updateTemplateName,
1196
     updateTemplateName,
1189
     getDoctorAdviceConfig,
1197
     getDoctorAdviceConfig,
1190
-    postDoctorAdviceConfig
1198
+    postDoctorAdviceConfig,
1199
+    PostInitAdviceTemplate,
1200
+    getDoctorInitConfig,
1191
   } from '@/api/advice'
1201
   } from '@/api/advice'
1192
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
1202
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
1193
 
1203
 
1219
         isEdit: false,
1229
         isEdit: false,
1220
         dialogTitle: '',
1230
         dialogTitle: '',
1221
         is_open_remind:0,
1231
         is_open_remind:0,
1232
+        is_init:0,
1222
         isAddChild: false,
1233
         isAddChild: false,
1223
         parent_id: 0,
1234
         parent_id: 0,
1224
         editDialogTitle: '编辑医嘱',
1235
         editDialogTitle: '编辑医嘱',
1242
           name: ''
1253
           name: ''
1243
 
1254
 
1244
         },
1255
         },
1245
-
1256
+        loading:false,
1246
         drugways: [],
1257
         drugways: [],
1247
         executionFrequencyOptions: [],
1258
         executionFrequencyOptions: [],
1248
         drugdicRules: {
1259
         drugdicRules: {
1350
       this.getAdviceConfig()
1361
       this.getAdviceConfig()
1351
       this.unitsOption = getDataConfig('hemodialysis', 'units')
1362
       this.unitsOption = getDataConfig('hemodialysis', 'units')
1352
       this.getDoctorAdviceConfig()
1363
       this.getDoctorAdviceConfig()
1364
+      this.getDoctorInitConfig()
1353
     },
1365
     },
1354
     methods: {
1366
     methods: {
1367
+      initAdvice(){
1368
+        this.$confirm('是否进行医嘱初始化操作?', '提示', {
1369
+          confirmButtonText: '确定',
1370
+          cancelButtonText: '取消',
1371
+          type: 'warning'
1372
+        }).then(() => {
1373
+          let params = {
1374
+            is_init:1
1375
+          }
1376
+          this.loading = true
1377
+          PostInitAdviceTemplate(params).then(response => {
1378
+            if (response.data.state == 1) {
1379
+                this.is_init = response.data.data.init_config.is_init
1380
+              this.getAdviceConfig()
1381
+              this.loading = false
1382
+
1383
+            } else {
1384
+              this.loading = false
1385
+              this.$message.error(response.data.msg)
1386
+            }
1387
+          })
1388
+        }).catch(() => {
1389
+          this.loading = false
1390
+        });
1391
+      },
1355
       getDoctorAdviceConfig(){
1392
       getDoctorAdviceConfig(){
1356
         getDoctorAdviceConfig().then(response => {
1393
         getDoctorAdviceConfig().then(response => {
1357
           if (response.data.state == 1) {
1394
           if (response.data.state == 1) {
1361
           }
1398
           }
1362
         })
1399
         })
1363
       },
1400
       },
1401
+      getDoctorInitConfig(){
1402
+        getDoctorInitConfig().then(response => {
1403
+          if (response.data.state == 1) {
1404
+            if(response.data.data.advice_init == null){
1405
+              this.is_init = 0
1406
+            }else{
1407
+              this.is_init = response.data.data.advice_init.is_init
1408
+            }
1409
+
1410
+          } else {
1411
+            this.$message.error(response.data.msg)
1412
+          }
1413
+        })
1414
+      },
1364
       adviceNameShow({ row, column, rowIndex, columnIndex }) {
1415
       adviceNameShow({ row, column, rowIndex, columnIndex }) {
1365
         if (columnIndex == 1) {
1416
         if (columnIndex == 1) {
1366
           return 'templateadvicenamedisplay'
1417
           return 'templateadvicenamedisplay'
1489
             this.$message.success('添加模版成功')
1540
             this.$message.success('添加模版成功')
1490
 
1541
 
1491
             var template = response.data.data.template
1542
             var template = response.data.data.template
1492
-            if (template.DoctorAdviceTemplate.length > 0) {
1493
-              for (let i = 0; i < template.DoctorAdviceTemplate.length; i++) {
1543
+            if (template.advice_templates.length > 0) {
1544
+              for (let i = 0; i < template.advice_templates.length; i++) {
1494
                 const object = {}
1545
                 const object = {}
1495
                 const DoctorAdviceTemplate = template.DoctorAdviceTemplate[i]
1546
                 const DoctorAdviceTemplate = template.DoctorAdviceTemplate[i]
1496
                 for (const key in DoctorAdviceTemplate) {
1547
                 for (const key in DoctorAdviceTemplate) {

+ 901 - 0
src/xt_pages/data/prescription.vue View File

1
+<template>
2
+  <div class="app-container ">
3
+
4
+    <div class="dataTitle">透析方案</div>
5
+
6
+    <div class="app-container" style="margin-left: -20px;margin-top: -20px" v-loading="pageLoading"
7
+         element-loading-text="拼命加载中">
8
+      <el-row :gutter="20">
9
+        <el-col :span="7">
10
+          <el-table
11
+            :header-cell-style="{
12
+              backgroundColor: 'rgb(245, 247, 250)',
13
+              color: '#606266'
14
+            }"
15
+            height="450"
16
+            :row-style="{ color: '#303133' }"
17
+            :data="treatment_mode"
18
+            border
19
+            style="width: 100%"
20
+            highlight-current-row
21
+            :row-class-name="tableRows"
22
+            @row-click="onRowClicks"
23
+            ref="singleTable"
24
+          >
25
+            <el-table-column
26
+              label="透析模式"
27
+              align="center">
28
+              <template slot-scope="scope">
29
+                {{ scope.row.name }}
30
+              </template>
31
+            </el-table-column>
32
+
33
+
34
+            <el-table-column
35
+              label="状态"
36
+              width="80"
37
+              align="center">
38
+              <template slot-scope="scope">
39
+                {{getModeStatus(scope.row.id)}}
40
+              </template>
41
+            </el-table-column>
42
+          </el-table>
43
+        </el-col>
44
+        <el-col :span="17" v-loading="itemLoading">
45
+          <div class="filter-container">
46
+
47
+            <el-row :gutter="20">
48
+              <el-col :span="16">
49
+                <div>{{mode_name}}</div>
50
+              </el-col>
51
+              <el-col :span="8">
52
+                <el-button style="float: right;visibility: hidden" size="small" class="filter-item" type="primary"
53
+                           icon="el-icon-edit-outline"
54
+                           @click="openEdit()">修改
55
+                </el-button>
56
+              </el-col>
57
+            </el-row>
58
+
59
+
60
+          </div>
61
+          <div class="filter-container" style="float:right">
62
+            <el-form ref="addPlan" :model="addPlan" label-width="160px" style="border: black">
63
+
64
+              <el-row :gutter="20">
65
+                <el-col :span="8">
66
+                  <el-form-item label="透析时长(h):" prop="dialysis_duration">
67
+                    <el-time-picker
68
+                      v-model="dialysisTimeShow"
69
+                      :picker-options="{
70
+                  selectableRange: '00:01:00 - 23:59:00'
71
+                }"
72
+                      placeholder="透析时长"
73
+                      style="width:100%;"
74
+                      value-format="H:m"
75
+                      format="H:m"
76
+                      @change="selectnDialysisTime"
77
+                    >
78
+                    </el-time-picker>
79
+
80
+                  </el-form-item>
81
+                </el-col>
82
+
83
+                <el-col :span="8">
84
+                  <el-form-item label="血流量(ml/min):" prop="blood_flow_volume">
85
+                    <el-input v-model="addPlan.blood_flow_volume" ></el-input>
86
+                  </el-form-item>
87
+                </el-col>
88
+                <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.template_id == 6">
89
+                  <el-form-item label="目标超滤量(ml) : ">
90
+                    <el-input v-model="addPlan.target_ultrafiltration" type="number" ></el-input>
91
+                  </el-form-item>
92
+                </el-col>
93
+
94
+                <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.template_id != 6">
95
+                  <el-form-item label="目标超滤量(L) : ">
96
+                    <el-input v-model="addPlan.target_ultrafiltration" type="number" ></el-input>
97
+                  </el-form-item>
98
+                </el-col>
99
+
100
+
101
+                <el-col :span="8">
102
+                  <el-form-item label="透析液配方:">
103
+                    <el-select v-model="addPlan.dialysate_formulation" >
104
+                      <el-option v-for="(item,index)  in dialysate_formulation" :label="item.name" :key="index"
105
+                                 :value="item.id"></el-option>
106
+                    </el-select>
107
+                  </el-form-item>
108
+                </el-col>
109
+
110
+                <el-col :span="8">
111
+                  <el-form-item label="抗凝剂:" prop="anticoagulant">
112
+                    <el-select v-model="addPlan.anticoagulant" @change="changeThisAnticoagulant" >
113
+                      <el-option v-for="(item,index)  in anticoagulantsConfit" :label="item.name" :key="index"
114
+                                 :value="item.id"></el-option>
115
+                    </el-select>
116
+                  </el-form-item>
117
+                </el-col>
118
+                <el-col :span="8" v-if="anticoagulant.shouji != -1">
119
+                  <el-form-item :label="'首剂('+anticoagulant.shouji_unit+'): '" prop="anticoagulant_shouji">
120
+                    <el-input v-model="addPlan.anticoagulant_shouji"
121
+                              :disabled="anticoagulant.shouji==1?false:true" type="number"></el-input>
122
+                  </el-form-item>
123
+                </el-col>
124
+                <el-col :span="8" v-if="anticoagulant.weichi != -1">
125
+                  <el-form-item :label="'维持('+anticoagulant.weichi_unit+'): '" prop="anticoagulant_weichi">
126
+                    <el-input v-model="addPlan.anticoagulant_weichi"
127
+                              :disabled="anticoagulant.weichi==1?false:true" type="number"></el-input>
128
+                  </el-form-item>
129
+                </el-col>
130
+                <el-col :span="8" v-if="anticoagulant.zongliang != -1">
131
+                  <el-form-item :label="'总量('+anticoagulant.zongliang_unit+'): '" prop="anticoagulant_zongliang">
132
+                    <el-input v-model="addPlan.anticoagulant_zongliang"
133
+                              :disabled="anticoagulant.zongliang==1?false:true" type="number"></el-input>
134
+                  </el-form-item>
135
+                </el-col>
136
+                <el-col :span="8" v-if="anticoagulant.gaimingcheng != -1">
137
+                  <el-form-item :label="'钙('+anticoagulant.gaimingcheng_unit+'): '" prop="anticoagulant_gaimingcheng">
138
+                    <el-input v-model="addPlan.anticoagulant_gaimingcheng"
139
+                              :disabled="anticoagulant.gaimingcheng==1?false:true"
140
+                              placeholder="钙名称"></el-input>
141
+                  </el-form-item>
142
+                </el-col>
143
+                <el-col :span="8" v-if="anticoagulant.gaijiliang != -1">
144
+                  <el-form-item prop="anticoagulant_gaijiliang">
145
+                    <el-input v-model="addPlan.anticoagulant_gaijiliang"
146
+                              :disabled="anticoagulant.gaijiliang==1?false:true"
147
+                              placeholder="钙剂量"></el-input>
148
+                  </el-form-item>
149
+                </el-col>
150
+                <el-col :span="8">
151
+                  <el-form-item label="置换量(L) : " prop="replacement_total">
152
+                    <el-input v-model="addPlan.replacement_total" type="number"></el-input>
153
+                  </el-form-item>
154
+                </el-col>
155
+
156
+
157
+                <el-col :span="8">
158
+                  <el-form-item label="钾(mmol/L): " prop="kalium">
159
+                    <el-input v-model="addPlan.kalium" ></el-input>
160
+                  </el-form-item>
161
+                </el-col>
162
+                <el-col :span="8">
163
+                  <el-form-item label="钠(mmol/L): " prop="sodium">
164
+                    <el-input v-model="addPlan.sodium" ></el-input>
165
+                  </el-form-item>
166
+                </el-col>
167
+                <el-col :span="8">
168
+                  <el-form-item label="钙(mmol/L): " prop="calcium">
169
+                    <el-input v-model="addPlan.calcium" ></el-input>
170
+                  </el-form-item>
171
+                </el-col>
172
+
173
+                <el-col :span="8">
174
+                  <el-form-item label="透析器/灌流器:">
175
+                    <el-input v-model="addPlan.dialyzer_perfusion_apparatus" ></el-input>
176
+                  </el-form-item>
177
+                </el-col>
178
+
179
+
180
+                <el-col :span="8">
181
+                  <el-form-item label="碳酸氢盐(mmol/L): " prop="bicarbonate">
182
+                    <el-input v-model="addPlan.bicarbonate" ></el-input>
183
+                  </el-form-item>
184
+                </el-col>
185
+                <el-col :span="8">
186
+                  <el-form-item label="葡萄糖(mmol/L): " prop="glucose">
187
+                    <el-input v-model="addPlan.glucose" ></el-input>
188
+                  </el-form-item>
189
+                </el-col>
190
+
191
+
192
+                <el-col :span="8">
193
+                  <el-form-item label="透析液流量(ml/min): " prop="dialysate_flow">
194
+                    <el-input v-model="addPlan.dialysate_flow" ></el-input>
195
+                  </el-form-item>
196
+                </el-col>
197
+                <el-col :span="8">
198
+                  <el-form-item label="透析液温度(℃): " prop="dialysate_temperature">
199
+                    <el-input v-model="addPlan.dialysate_temperature" ></el-input>
200
+                  </el-form-item>
201
+                </el-col>
202
+
203
+                <el-col :span="8">
204
+                  <el-form-item label="电导度(mS/cm): " prop="conductivity">
205
+                    <el-input v-model="addPlan.conductivity" ></el-input>
206
+                  </el-form-item>
207
+                </el-col>
208
+
209
+
210
+                <el-col :span="8">
211
+                  <el-form-item label="体液过多症状:">
212
+                    <el-select v-model="addPlan.body_fluid" >
213
+                      <el-option v-for="(item,index)  in body_fluid_option" :label="item.name" :key="index"
214
+                                 :value="item.id"></el-option>
215
+                    </el-select>
216
+                  </el-form-item>
217
+                </el-col>
218
+
219
+                <el-col :span="8">
220
+                  <el-form-item label="体液过多其他症状">
221
+                    <el-input v-model="addPlan.body_fluid_other" ></el-input>
222
+                  </el-form-item>
223
+                </el-col>
224
+
225
+
226
+                <el-col :span="8">
227
+                  <el-form-item label="透析前使用特殊药物">
228
+                    <el-select v-model="addPlan.special_medicine" placeholder="请选择" style="width:100%;"
229
+                               >
230
+                      <el-option :key="0" label="请选择" :value="0"></el-option>
231
+                      <el-option v-for="(item,index) in special_medicine_option" :label="item.name" :key="index"
232
+                                 :value="item.id"></el-option>
233
+                    </el-select>
234
+                  </el-form-item>
235
+                </el-col>
236
+
237
+                <el-col :span="8">
238
+                  <el-form-item label="使用其他特殊药物">
239
+                    <el-input v-model="addPlan.special_medicine_other" ></el-input>
240
+                  </el-form-item>
241
+                </el-col>
242
+
243
+
244
+                <el-col :span="8">
245
+                  <el-form-item label="置换液:"
246
+                                v-if="current_select == 2 &&this.$store.getters.xt_user.template_info.template_id != 6">
247
+                    <el-select v-model="addPlan.displace_liqui_part" placeholder="请选择">
248
+                      <el-option :key="0" label="请选择" :value="0"></el-option>
249
+                      <el-option v-for="(option, index) in displace_liqui_part_option" :key="index"
250
+                                 :label="option.name" :value="option.id"></el-option>
251
+                    </el-select>
252
+                  </el-form-item>
253
+
254
+
255
+                  <el-form-item label="置换方式:"
256
+                                v-if="current_select == 2 &&this.$store.getters.xt_user.template_info.template_id == 6">
257
+                    <el-select v-model="addPlan.displace_liqui_part" placeholder="请选择" >
258
+                      <el-option :key="0" label="请选择" :value="0"></el-option>
259
+                      <el-option v-for="(option, index) in displace_liqui_part_option" :key="index"
260
+                                 :label="option.name" :value="option.id"></el-option>
261
+                    </el-select>
262
+                  </el-form-item>
263
+
264
+                </el-col>
265
+
266
+                <el-col :span="8" v-if="current_select == 2">
267
+                  <el-form-item label="置换液总量(L)">
268
+                    <el-input v-model="addPlan.displace_liqui_value" ></el-input>
269
+                  </el-form-item>
270
+                </el-col>
271
+
272
+
273
+                <el-col :span="8">
274
+                  <el-form-item label="血管通路:">
275
+                    <el-select v-model="addPlan.blood_access" placeholder="请选择">
276
+                      <el-option :key="0" label="请选择" :value="0"></el-option>
277
+
278
+                      <el-option v-for="(option, index) in blood_access_option" :key="index"
279
+                                 :label="option.name" :value="option.id"></el-option>
280
+                    </el-select>
281
+                  </el-form-item>
282
+                </el-col>
283
+
284
+                <!-- </el-row>
285
+                <el-row :gutter="20" > -->
286
+                <el-col :span="8">
287
+                  <el-form-item label="实际超滤量(L)">
288
+                    <el-input v-model="addPlan.ultrafiltration" ></el-input>
289
+                  </el-form-item>
290
+                </el-col>
291
+
292
+
293
+                <el-col :span="8">
294
+                  <el-form-item label="目标KT/V">
295
+                    <el-input v-model="addPlan.target_ktv" ></el-input>
296
+                  </el-form-item>
297
+                </el-col>
298
+
299
+
300
+              </el-row>
301
+            </el-form>
302
+            <el-button style="float: right" size="small" class="filter-item" type="primary"
303
+                       icon="el-icon-edit-outline"
304
+                       @click="savePrescription()">保存
305
+            </el-button>
306
+          </div>
307
+        </el-col>
308
+      </el-row>
309
+    </div>
310
+
311
+
312
+  </div>
313
+</template>
314
+
315
+<script>
316
+  import { calculateAnticoagulantZL, uParseTime } from '@/utils/tools'
317
+  import {
318
+    getAllSystemPrescription,
319
+    getSystemPrescription,
320
+    postSystemPrescription,
321
+    updateSystemPrescription
322
+  } from '@/api/config'
323
+
324
+  export default {
325
+    name: 'prescription',
326
+    components: {},
327
+
328
+    data() {
329
+      return {
330
+        dialysisTimeShow: new Date(2018, 1, 1, 3, 0),
331
+        modeOptions: null,
332
+        current_select: 0,
333
+        mode_name: 'HD',
334
+        pageLoading: false,
335
+        itemLoading: false,
336
+        treatment_mode: [// 治疗模式
337
+          {
338
+            id: 1,
339
+            name: 'HD',
340
+            dialysis_duration: 1,
341
+            replacement_way: 2,
342
+            hemodialysis_machine: 1,
343
+            blood_filter: 2,
344
+            perfusion_apparatus: 2,
345
+            blood_flow_volume: 1,
346
+            dialysate_flow: 1,
347
+            kalium: 1,
348
+            sodium: 1,
349
+            calcium: 1,
350
+            bicarbonate: 1
351
+          },
352
+          {
353
+            id: 2,
354
+            name: 'HDF',
355
+            dialysis_duration: 1,
356
+            replacement_way: 1,
357
+            hemodialysis_machine: 2,
358
+            blood_filter: 1,
359
+            perfusion_apparatus: 2,
360
+            blood_flow_volume: 1,
361
+            dialysate_flow: 1,
362
+            kalium: 1,
363
+            sodium: 1,
364
+            calcium: 1,
365
+            bicarbonate: 1
366
+          },
367
+          {
368
+            id: 3,
369
+            name: 'HD+HP',
370
+            dialysis_duration: 1,
371
+            replacement_way: 2,
372
+            hemodialysis_machine: 1,
373
+            blood_filter: 2,
374
+            perfusion_apparatus: 1,
375
+            blood_flow_volume: 1,
376
+            dialysate_flow: 1,
377
+            kalium: 1,
378
+            sodium: 1,
379
+            calcium: 1,
380
+            bicarbonate: 1
381
+          },
382
+          {
383
+            id: 4,
384
+            name: 'HP',
385
+            dialysis_duration: 1,
386
+            replacement_way: 2,
387
+            hemodialysis_machine: 2,
388
+            blood_filter: 2,
389
+            perfusion_apparatus: 1,
390
+            blood_flow_volume: 1,
391
+            dialysate_flow: 2,
392
+            kalium: 2,
393
+            sodium: 2,
394
+            calcium: 2,
395
+            bicarbonate: 2
396
+          },
397
+          {
398
+            id: 5,
399
+            name: 'HF',
400
+            dialysis_duration: 1,
401
+            replacement_way: 1,
402
+            hemodialysis_machine: 2,
403
+            blood_filter: 1,
404
+            perfusion_apparatus: 2,
405
+            blood_flow_volume: 1,
406
+            dialysate_flow: 2,
407
+            kalium: 1,
408
+            sodium: 1,
409
+            calcium: 1,
410
+            bicarbonate: 1
411
+          },
412
+          {
413
+            id: 6,
414
+            name: 'SCUF',
415
+            dialysis_duration: 1,
416
+            replacement_way: 2,
417
+            hemodialysis_machine: 1,
418
+            blood_filter: 2,
419
+            perfusion_apparatus: 2,
420
+            blood_flow_volume: 1,
421
+            dialysate_flow: 2,
422
+            kalium: 2,
423
+            sodium: 2,
424
+            calcium: 2,
425
+            bicarbonate: 2
426
+          },
427
+          {
428
+            id: 7,
429
+            name: 'IUF',
430
+            dialysis_duration: 1,
431
+            replacement_way: 2,
432
+            hemodialysis_machine: 1,
433
+            blood_filter: 2,
434
+            perfusion_apparatus: 2,
435
+            blood_flow_volume: 2,
436
+            dialysate_flow: 2,
437
+            kalium: 2,
438
+            sodium: 2,
439
+            calcium: 2,
440
+            bicarbonate: 2
441
+          },
442
+          {
443
+            id: 8,
444
+            name: 'HFHD',
445
+            dialysis_duration: 1,
446
+            replacement_way: 2,
447
+            hemodialysis_machine: 1,
448
+            blood_filter: 2,
449
+            perfusion_apparatus: 2,
450
+            blood_flow_volume: 1,
451
+            dialysate_flow: 1,
452
+            kalium: 1,
453
+            sodium: 1,
454
+            calcium: 1,
455
+            bicarbonate: 1
456
+          },
457
+          {
458
+            id: 9,
459
+            name: 'HFHD+HP',
460
+            dialysis_duration: 1,
461
+            replacement_way: 2,
462
+            hemodialysis_machine: 1,
463
+            blood_filter: 2,
464
+            perfusion_apparatus: 1,
465
+            blood_flow_volume: 1,
466
+            dialysate_flow: 1,
467
+            kalium: 1,
468
+            sodium: 1,
469
+            calcium: 1,
470
+            bicarbonate: 1
471
+          },
472
+          {
473
+            id: 10,
474
+            name: 'PHF',
475
+            dialysis_duration: 1,
476
+            replacement_way: 1,
477
+            hemodialysis_machine: 2,
478
+            blood_filter: 1,
479
+            perfusion_apparatus: 2,
480
+            blood_flow_volume: 1,
481
+            dialysate_flow: 1,
482
+            kalium: 1,
483
+            sodium: 1,
484
+            calcium: 1,
485
+            bicarbonate: 1
486
+          },
487
+          {
488
+            id: 11,
489
+            name: 'HFR',
490
+            dialysis_duration: 1,
491
+            replacement_way: 2,
492
+            hemodialysis_machine: 2,
493
+            blood_filter: 1,
494
+            perfusion_apparatus: 1,
495
+            blood_flow_volume: 1,
496
+            dialysate_flow: 1,
497
+            kalium: 1,
498
+            sodium: 1,
499
+            calcium: 1,
500
+            bicarbonate: 1
501
+          },
502
+          {
503
+            id: 12,
504
+            name: 'HDF+HP',
505
+            dialysis_duration: 1,
506
+            replacement_way: 1,
507
+            hemodialysis_machine: 2,
508
+            blood_filter: 1,
509
+            perfusion_apparatus: 1,
510
+            blood_flow_volume: 1,
511
+            dialysate_flow: 1,
512
+            kalium: 1,
513
+            sodium: 1,
514
+            calcium: 1,
515
+            bicarbonate: 1
516
+          },
517
+          {
518
+            id: 13,
519
+            name: 'CRRT',
520
+            dialysis_duration: 1,
521
+            replacement_way: 1,
522
+            hemodialysis_machine: 2,
523
+            blood_filter: 1,
524
+            perfusion_apparatus: 2,
525
+            blood_flow_volume: 1,
526
+            dialysate_flow: 2,
527
+            kalium: 1,
528
+            sodium: 1,
529
+            calcium: 1,
530
+            bicarbonate: 1
531
+          },
532
+          {
533
+            id: 14,
534
+            name: '腹水回输',
535
+            dialysis_duration: 1,
536
+            replacement_way: 2,
537
+            hemodialysis_machine: 1,
538
+            blood_filter: 2,
539
+            perfusion_apparatus: 2,
540
+            blood_flow_volume: 2,
541
+            dialysate_flow: 2,
542
+            kalium: 2,
543
+            sodium: 2,
544
+            calcium: 2,
545
+            bicarbonate: 2
546
+          },
547
+          {
548
+            id: 15,
549
+            name: 'HD前置换',
550
+            dialysis_duration: 1,
551
+            replacement_way: 2,
552
+            hemodialysis_machine: 1,
553
+            blood_filter: 2,
554
+            perfusion_apparatus: 2,
555
+            blood_flow_volume: 1,
556
+            dialysate_flow: 1,
557
+            kalium: 1,
558
+            sodium: 1,
559
+            calcium: 1,
560
+            bicarbonate: 1
561
+          },
562
+          {
563
+            id: 16,
564
+            name: 'HD后置换',
565
+            dialysis_duration: 1,
566
+            replacement_way: 2,
567
+            hemodialysis_machine: 1,
568
+            blood_filter: 2,
569
+            perfusion_apparatus: 2,
570
+            blood_flow_volume: 1,
571
+            dialysate_flow: 1,
572
+            kalium: 1,
573
+            sodium: 1,
574
+            calcium: 1,
575
+            bicarbonate: 1
576
+          },
577
+          {
578
+            id: 17,
579
+            name: 'HDF前置换',
580
+            dialysis_duration: 1,
581
+            replacement_way: 1,
582
+            hemodialysis_machine: 2,
583
+            blood_filter: 1,
584
+            perfusion_apparatus: 2,
585
+            blood_flow_volume: 1,
586
+            dialysate_flow: 1,
587
+            kalium: 1,
588
+            sodium: 1,
589
+            calcium: 1,
590
+            bicarbonate: 1
591
+          },
592
+          {
593
+            id: 18,
594
+            name: 'HDF后置换',
595
+            dialysis_duration: 1,
596
+            replacement_way: 1,
597
+            hemodialysis_machine: 2,
598
+            blood_filter: 1,
599
+            perfusion_apparatus: 2,
600
+            blood_flow_volume: 1,
601
+            dialysate_flow: 1,
602
+            kalium: 1,
603
+            sodium: 1,
604
+            calcium: 1,
605
+            bicarbonate: 1
606
+          }
607
+
608
+        ],
609
+        addPlan: {
610
+          id: 0,
611
+          mode:'',
612
+          dialyzer: '',
613
+          dialysis_duration: '',
614
+          dialysis_duration_hour: '',
615
+          dialysis_duration_minute: '',
616
+          hemodialysis_machine: '',
617
+          perfusion_apparatus: '',
618
+          dialysate_formulation:'',
619
+          blood_flow_volume: '',
620
+          dewater: '',
621
+          displace_liqui: 0,
622
+          replacement_way: '',
623
+          anticoagulant: '',
624
+          anticoagulant_shouji: '',
625
+          anticoagulant_weichi: '',
626
+          anticoagulant_zongliang: '',
627
+          anticoagulant_gaimingcheng: '',
628
+          anticoagulant_gaijiliang: '',
629
+          kalium: '',
630
+          replacement_total: '',
631
+          sodium: '',
632
+          calcium: '',
633
+          bicarbonate: '',
634
+          glucose: '',
635
+          dry_weight: '',
636
+          dialysate_flow: '',
637
+          dialysate_temperature: '',
638
+          conductivity: '',
639
+          doctor: '',
640
+          remark: '',
641
+          target_ktv: '',
642
+          target_ultrafiltration: '',
643
+          dialyzer_perfusion_apparatus: '',
644
+          body_fluid: '',
645
+          body_fluid_other: '',
646
+          special_medicine: '',
647
+          special_medicine_other: '',
648
+          displace_liqui_part: '',
649
+          displace_liqui_value: '',
650
+          ultrafiltration: '',
651
+          blood_access: ''
652
+        },
653
+        system_prescription: [],
654
+        isEdit: false,
655
+        anticoagulant: {
656
+          id: 0,
657
+          name: '',
658
+          type: 1,
659
+          shouji: 1,
660
+          weichi: 1,
661
+          zongliang: 1,
662
+          gaimingcheng: -1,
663
+          gaijiliang: -1,
664
+          shouji_unit: 'mg',
665
+          weichi_unit: 'mg/h',
666
+          zongliang_unit: 'mg',
667
+          gaimingcheng_unit: '',
668
+          gaijiliang_unit: ''
669
+        },
670
+        anticoagulantsSet: {
671
+          type: 1
672
+        },
673
+        replacementWays: null,
674
+        anticoagulantsConfit: null,
675
+        dialysate_formulation: [],
676
+        body_fluid_option: [],
677
+        special_medicine_option: [],
678
+        displace_liqui_part_option: [],
679
+        blood_access_option: []
680
+
681
+      }
682
+    },
683
+    computed: {},
684
+    methods: {
685
+      openEdit() {
686
+
687
+      },
688
+      tableRows({ row, rowIndex }) {
689
+        // 把每一行的索引放进row
690
+        row.index = rowIndex
691
+      },
692
+      onRowClicks(row, event, column) {
693
+        this.current_select = row.id
694
+        this.mode_name = row.name
695
+        this.isEdit = false
696
+        this.addPlan.mode = row.id
697
+        this.getSystemPrescription(row.id)
698
+
699
+      },getSystemPrescription(id){
700
+
701
+
702
+       var tempAddPlan = {
703
+          id: 0,
704
+            mode:'',
705
+            dialyzer: '',
706
+            dialysis_duration: '',
707
+            dialysis_duration_hour: '',
708
+            dialysis_duration_minute: '',
709
+            hemodialysis_machine: '',
710
+            dialysate_formulation:'',
711
+            perfusion_apparatus: '',
712
+            blood_flow_volume: '',
713
+            dewater: '',
714
+            displace_liqui: 0,
715
+            replacement_way: '',
716
+            anticoagulant: '',
717
+            anticoagulant_shouji: '',
718
+            anticoagulant_weichi: '',
719
+            anticoagulant_zongliang: '',
720
+            anticoagulant_gaimingcheng: '',
721
+            anticoagulant_gaijiliang: '',
722
+            kalium: '',
723
+            replacement_total: '',
724
+            sodium: '',
725
+            calcium: '',
726
+            bicarbonate: '',
727
+            glucose: '',
728
+            dry_weight: '',
729
+            dialysate_flow: '',
730
+            dialysate_temperature: '',
731
+            conductivity: '',
732
+            doctor: '',
733
+            remark: '',
734
+            target_ktv: '',
735
+            target_ultrafiltration: '',
736
+            dialyzer_perfusion_apparatus: '',
737
+            body_fluid: '',
738
+            body_fluid_other: '',
739
+            special_medicine: '',
740
+            special_medicine_other: '',
741
+            displace_liqui_part: '',
742
+            displace_liqui_value: '',
743
+            ultrafiltration: '',
744
+            blood_access: ''
745
+        }
746
+
747
+        for (const key in  tempAddPlan) {
748
+          this.addPlan[key] = tempAddPlan[key]
749
+        }
750
+        this.isEdit = false
751
+        let params ={
752
+          id:id
753
+        }
754
+
755
+        this.dialysisTimeShow = new Date(2018, 1, 1, this.addPlan.dialysis_duration_hour, this.addPlan.dialysis_duration_minute)
756
+
757
+
758
+        getSystemPrescription(params).then(response => {
759
+          if (response.data.state == 0) {
760
+            this.$message.error(response.data.msg)
761
+            return false
762
+          } else {
763
+            if(response.data.data.prescription.id > 0) {
764
+              for (const key in  response.data.data.prescription) {
765
+                this.addPlan[key] = response.data.data.prescription[key]
766
+              }
767
+
768
+              this.dialysisTimeShow = new Date(2018, 1, 1, this.addPlan.dialysis_duration_hour, this.addPlan.dialysis_duration_minute)
769
+              if (this.addPlan.id > 0) {
770
+                this.isEdit = true
771
+              }
772
+            }
773
+            this.addPlan.mode = id
774
+          }
775
+        })
776
+      },
777
+      getModeStatus: function(id) {
778
+        for (let i = 0; i < this.system_prescription.length; i++) {
779
+          if (this.system_prescription[i].mode_id == id) {
780
+            return '已保存'
781
+          }
782
+        }
783
+        return '未保存'
784
+      }, getAllSystemPrescription() {
785
+        getAllSystemPrescription().then(response => {
786
+          if (response.data.state == 0) {
787
+            this.$message.error(response.data.msg)
788
+            return false
789
+          } else {
790
+            this.system_prescription = response.data.data.prescriptions
791
+            for (let i = 0; i < this.system_prescription.length; i++) {
792
+              if (this.system_prescription[i].mode == 1) {
793
+                this.isEdit = true
794
+              }
795
+            }
796
+
797
+          }
798
+        })
799
+
800
+      }, selectnDialysisTime(val) {
801
+        var valTime = val.split(':')
802
+        this.addPlan.dialysis_duration = parseFloat(valTime[0]) + parseFloat((valTime[1] / 60).toFixed(2))
803
+        this.addPlan.dialysis_duration_hour = valTime[0]
804
+        this.addPlan.dialysis_duration_minute = valTime[1]
805
+      }, changeThisAnticoagulant() {
806
+        var thismode = parseInt(this.addPlan.anticoagulant)
807
+        if (isNaN(thismode) || thismode <= 0) {
808
+          return false
809
+        }
810
+        if (typeof (this.anticoagulantsConfit[thismode]) == 'undefined' || this.anticoagulantsConfit[thismode] == null) {
811
+          return false
812
+        }
813
+        this.anticoagulant = this.anticoagulantsConfit[thismode]
814
+      }, savePrescription:function() {
815
+        this.addPlan.anticoagulant_zongliang = this.addPlan.anticoagulant_zongliang.toString()
816
+        if (!this.isEdit){
817
+          postSystemPrescription(this.addPlan).then(response => {
818
+            if (response.data.state == 0) {
819
+              this.$message.error(response.data.msg)
820
+              return false
821
+            } else {
822
+              this.$notify({
823
+                title: '成功',
824
+                message: '创建成功',
825
+                type: 'success',
826
+                duration: 2000
827
+              })
828
+              this.isEdit = true
829
+              this.system_prescription = []
830
+              this.system_prescription = response.data.data.prescriptions
831
+              this.addPlan.id  =  response.data.data.prescription.id
832
+              return false
833
+            }
834
+          })
835
+        }else{
836
+          updateSystemPrescription(this.addPlan.id, this.addPlan).then(response => {
837
+            if (response.data.state == 0) {
838
+              this.$message.error(response.data.msg)
839
+              return false
840
+            } else {
841
+              this.isEdit = true
842
+              this.addPlan.id  =  response.data.data.prescription.id
843
+              this.$notify({
844
+                title: '成功',
845
+                message: '编辑成功',
846
+                type: 'success',
847
+                duration: 2000
848
+              })
849
+              return false
850
+            }
851
+          })
852
+        }
853
+      }
854
+
855
+    }, mounted() {
856
+      this.$refs.singleTable.setCurrentRow(this.treatment_mode[0])
857
+      this.mode_name = this.treatment_mode[0].name
858
+      this.current_select = this.treatment_mode[0].id
859
+    },
860
+    created() {
861
+      this.anticoagulantsSet = this.$store.getters.anticoagulants_set
862
+      this.replacementWays = this.$store.getters.replacement_ways
863
+      this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
864
+      this.blood_filters = this.$store.getters.blood_filters
865
+      this.dialysate_formulation = this.$store.getters.dialysate_formulation
866
+      this.body_fluid_option = this.$store.getters.body_fluid
867
+      this.special_medicine_option = this.$store.getters.special_medicine
868
+      this.displace_liqui_part_option = this.$store.getters.displace_liqui
869
+      this.blood_access_option = this.$store.getters.blood_access
870
+      this.addPlan.mode = 1
871
+      this.getAllSystemPrescription()
872
+      this.getSystemPrescription(this.addPlan.mode)
873
+
874
+    }, watch: {
875
+      'addPlan.dialysis_duration': function() {
876
+        this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
877
+          this.addPlan.anticoagulant_shouji,
878
+          this.addPlan.dialysis_duration,
879
+          this.addPlan.anticoagulant_weichi
880
+        )
881
+      },
882
+      'addPlan.anticoagulant_shouji': function() {
883
+        this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
884
+          this.addPlan.anticoagulant_shouji,
885
+          this.addPlan.dialysis_duration,
886
+          this.addPlan.anticoagulant_weichi
887
+        )
888
+      },
889
+      'addPlan.anticoagulant_weichi': function() {
890
+        this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
891
+          this.addPlan.anticoagulant_shouji,
892
+          this.addPlan.dialysis_duration,
893
+          this.addPlan.anticoagulant_weichi
894
+        )
895
+      }
896
+    }
897
+  }
898
+</script>
899
+
900
+<style rel="stylesheet/scss" lang="scss" scoped>
901
+</style>

File diff suppressed because it is too large
+ 2128 - 937
src/xt_pages/dialysis/batch_print/batch_print_order.vue


File diff suppressed because it is too large
+ 2282 - 1161
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue


+ 105 - 59
src/xt_pages/dialysis/bloodPresssWatch.1.vue View File

1
 <template>
1
 <template>
2
- <div class="main-contain">
2
+  <div class="main-contain">
3
     <div class="position">
3
     <div class="position">
4
-      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
-      <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-button
6
+        size="small"
7
+        icon="el-icon-printer"
8
+        :disabled="selecting_schs.length == 0"
9
+        @click="batchPrintAction"
10
+        type="primary"
11
+        >打印</el-button
12
+      >
6
     </div>
13
     </div>
7
     <div class="app-container">
14
     <div class="app-container">
8
       <!-- <div class="filter-container">
15
       <!-- <div class="filter-container">
11
       </div>-->
18
       </div>-->
12
       <div class="cell clearfix">
19
       <div class="cell clearfix">
13
         <label class="title">
20
         <label class="title">
14
-          <span class="name">{{ search_mode == 1 ? "日期查询" : "病人查询" }}</span> :
21
+          <span class="name">{{
22
+            search_mode == 1 ? "日期查询" : "病人查询"
23
+          }}</span>
24
+          :
15
         </label>
25
         </label>
16
         <el-date-picker
26
         <el-date-picker
17
           v-show="search_mode == 1"
27
           v-show="search_mode == 1"
40
             @click="searchPatientAction"
50
             @click="searchPatientAction"
41
           ></el-button>
51
           ></el-button>
42
         </el-input>
52
         </el-input>
43
-        <el-button
44
-          type="primary"
45
-          @click="changeSearchMode"
46
-        >{{ search_mode == 1 ? "改为病人查询" : "改为日期查询" }}</el-button>
53
+        <el-button type="primary" @click="changeSearchMode">{{
54
+          search_mode == 1 ? "改为病人查询" : "改为日期查询"
55
+        }}</el-button>
47
         <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
56
         <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
48
       </div>
57
       </div>
49
       <div class="cell clearfix">
58
       <div class="cell clearfix">
50
-        <label class="title">
51
-          <span class="name">排班班次</span> :
52
-        </label>
59
+        <label class="title"> <span class="name">排班班次</span> : </label>
53
         <div class="time">
60
         <div class="time">
54
           <ul class>
61
           <ul class>
55
             <li
62
             <li
56
-              :class="item.value==schedulType?'active':''"
63
+              :class="item.value == schedulType ? 'active' : ''"
57
               @click="selectSchedulType(item.value)"
64
               @click="selectSchedulType(item.value)"
58
               v-for="item in schedulArr"
65
               v-for="item in schedulArr"
59
               :key="item.value"
66
               :key="item.value"
60
-            >{{item.label}}</li>
67
+            >
68
+              {{ item.label }}
69
+            </li>
61
           </ul>
70
           </ul>
62
         </div>
71
         </div>
63
       </div>
72
       </div>
64
       <div class="cell clearfix">
73
       <div class="cell clearfix">
65
-        <label class="title">
66
-          <span class="name">分区</span> :
67
-        </label>
74
+        <label class="title"> <span class="name">分区</span> : </label>
68
         <div class="time">
75
         <div class="time">
69
           <ul class>
76
           <ul class>
70
             <li
77
             <li
71
-              :class="item.id==partitionType?'active':''"
78
+              :class="item.id == partitionType ? 'active' : ''"
72
               @click="selectPartitionType(item.id)"
79
               @click="selectPartitionType(item.id)"
73
               v-for="item in partitionArr"
80
               v-for="item in partitionArr"
74
               :key="item.id"
81
               :key="item.id"
75
-            >{{item.name}}</li>
82
+            >
83
+              {{ item.name }}
84
+            </li>
76
           </ul>
85
           </ul>
77
         </div>
86
         </div>
78
       </div>
87
       </div>
79
 
88
 
80
-    <el-table
81
-      :data="SchedualPatientsTableData"
82
-      style="width: 100%"
83
-      v-loading="loading"
84
-      @current-change="handleSelectionChange"
85
-      :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
89
+      <el-table
90
+        :data="SchedualPatientsTableData"
91
+        style="width: 100%"
92
+        v-loading="loading"
93
+        @current-change="handleSelectionChange"
94
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
86
       >
95
       >
87
-        <el-table-column type="selection" width="45" align="center"></el-table-column>
88
-        <el-table-column prop="number" label="机号" align="center"></el-table-column>
89
-        <el-table-column label="排班日期" prop="sch_time" align="center" width="120"></el-table-column>
90
-        <el-table-column prop="dialysis_no" label="透析号" align="center"></el-table-column>
91
-        <el-table-column prop="name" label="姓名" align="center"></el-table-column>
96
+        <el-table-column
97
+          type="selection"
98
+          width="45"
99
+          align="center"
100
+        ></el-table-column>
101
+        <el-table-column
102
+          prop="number"
103
+          label="机号"
104
+          align="center"
105
+        ></el-table-column>
106
+        <el-table-column
107
+          label="排班日期"
108
+          prop="sch_time"
109
+          align="center"
110
+          width="120"
111
+        ></el-table-column>
112
+        <el-table-column
113
+          prop="dialysis_no"
114
+          label="透析号"
115
+          align="center"
116
+        ></el-table-column>
117
+        <el-table-column
118
+          prop="name"
119
+          label="姓名"
120
+          align="center"
121
+        ></el-table-column>
92
 
122
 
93
-        <el-table-column prop="mode_name" label="透析模式" align="center"></el-table-column>
123
+        <el-table-column
124
+          prop="mode_name"
125
+          label="透析模式"
126
+          align="center"
127
+        ></el-table-column>
94
 
128
 
95
-        <el-table-column prop="dialysis_before_weight" label="透前体重 (kg)" align="center"></el-table-column>
96
-        <el-table-column prop="dialysis_after_weight" label="透后体重 (kg)" align="center"></el-table-column>
129
+        <el-table-column
130
+          prop="dialysis_before_weight"
131
+          label="透前体重 (kg)"
132
+          align="center"
133
+        ></el-table-column>
134
+        <el-table-column
135
+          prop="dialysis_after_weight"
136
+          label="透后体重 (kg)"
137
+          align="center"
138
+        ></el-table-column>
97
         <el-table-column label="透中血压">
139
         <el-table-column label="透中血压">
98
-          <el-table-column v-for="(item, index) in labelArr" :key="index" :label="item">
140
+          <el-table-column
141
+            v-for="(item, index) in labelArr"
142
+            :key="index"
143
+            :label="item"
144
+          >
99
             <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
145
             <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
100
             <template slot-scope="scope">
146
             <template slot-scope="scope">
101
               <!--<span>{{scope.row.bp[index].value}}</span>-->
147
               <!--<span>{{scope.row.bp[index].value}}</span>-->
102
-              <span>{{getValue(scope.row.bp[index])}}</span>
148
+              <span>{{ getValue(scope.row.bp[index]) }}</span>
103
             </template>
149
             </template>
104
           </el-table-column>
150
           </el-table-column>
105
         </el-table-column>
151
         </el-table-column>
106
       </el-table>
152
       </el-table>
107
 
153
 
108
       <el-pagination
154
       <el-pagination
109
-      align="right"
155
+        align="right"
110
         @current-change="handleCurrentChange"
156
         @current-change="handleCurrentChange"
111
         :page-sizes="[10]"
157
         :page-sizes="[10]"
112
         :page-size="10"
158
         :page-size="10"
119
   </div>
165
   </div>
120
 </template>
166
 </template>
121
 
167
 
122
-
123
 <script>
168
 <script>
124
 import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
169
 import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
125
 import { parseTime } from "@/utils";
170
 import { parseTime } from "@/utils";
129
   name: "Patient",
174
   name: "Patient",
130
   data() {
175
   data() {
131
     return {
176
     return {
132
-      crumbs:[
133
-        {path:false, name:'透析管理'},
134
-        {path:false, name:'透析监测'},
177
+      crumbs: [
178
+        { path: false, name: "透析管理" },
179
+        { path: false, name: "透析监测" }
135
       ],
180
       ],
136
       loading: false,
181
       loading: false,
137
       time: "",
182
       time: "",
226
       });
271
       });
227
     },
272
     },
228
     handleSelectionChange(val) {
273
     handleSelectionChange(val) {
229
-      console.log(val);
230
       this.selecting_schs = val;
274
       this.selecting_schs = val;
231
-      console.log(this.selecting_schs,this.selecting_schs.length);
275
+      console.log(this.selecting_schs, this.selecting_schs.length);
232
     },
276
     },
233
 
277
 
234
     selectSchedulType(scheduleType) {
278
     selectSchedulType(scheduleType) {
278
           // console.log(response.data.data)
322
           // console.log(response.data.data)
279
           for (let i = 0; i < response.data.data.schedule.length; i++) {
323
           for (let i = 0; i < response.data.data.schedule.length; i++) {
280
             if (response.data.data.schedule[i].patient.id > 0) {
324
             if (response.data.data.schedule[i].patient.id > 0) {
281
-              let SchedualPatientsTable = {
325
+              const SchedualPatientsTable = {
282
                 bp: []
326
                 bp: []
283
               };
327
               };
284
 
328
 
285
-              SchedualPatientsTable["sch_id"] = response.data.data.schedule[i].id
329
+              SchedualPatientsTable["sch_id"] =
330
+                response.data.data.schedule[i].id;
286
               SchedualPatientsTable["sch_time_int"] =
331
               SchedualPatientsTable["sch_time_int"] =
287
                 response.data.data.schedule[i].schedule_date;
332
                 response.data.data.schedule[i].schedule_date;
288
               SchedualPatientsTable["sch_time"] = parseTime(
333
               SchedualPatientsTable["sch_time"] = parseTime(
326
                 a < response.data.data.schedule[i].monitoring_record.length;
371
                 a < response.data.data.schedule[i].monitoring_record.length;
327
                 a++
372
                 a++
328
               ) {
373
               ) {
329
-                let bp = {};
374
+                const bp = {};
330
                 bp["value"] =
375
                 bp["value"] =
331
                   response.data.data.schedule[i].monitoring_record[
376
                   response.data.data.schedule[i].monitoring_record[
332
                     a
377
                     a
372
       this.getSchedualPatientList();
417
       this.getSchedualPatientList();
373
     },
418
     },
374
     batchPrintAction: function() {
419
     batchPrintAction: function() {
375
-      var sch_ids = []
420
+      var sch_ids = [];
376
       for (let index = 0; index < this.selecting_schs.length; index++) {
421
       for (let index = 0; index < this.selecting_schs.length; index++) {
377
-        sch_ids.push(this.selecting_schs[index].sch_id)
422
+        sch_ids.push(this.selecting_schs[index].sch_id);
378
       }
423
       }
379
-      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids)
424
+      console.log("sch_ids", sch_ids);
425
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
380
       this.$router.push({ path: "/dialysis/print/batch" });
426
       this.$router.push({ path: "/dialysis/print/batch" });
381
     }
427
     }
382
   },
428
   },
383
   components: {
429
   components: {
384
-      BreadCrumb
430
+    BreadCrumb
385
   }
431
   }
386
 };
432
 };
387
 </script>
433
 </script>
388
 
434
 
389
 <style rel="stylesheet/scss" lang="scss" scoped>
435
 <style rel="stylesheet/scss" lang="scss" scoped>
390
 .app-container {
436
 .app-container {
391
-//   margin: 20px;
437
+  //   margin: 20px;
392
   font-size: 15px;
438
   font-size: 15px;
393
   .filter-container {
439
   .filter-container {
394
     padding-bottom: 5px;
440
     padding-bottom: 5px;
395
   }
441
   }
396
-  .cqd-dataTitle{
442
+  .cqd-dataTitle {
397
     color: #303133;
443
     color: #303133;
398
     font-size: 14px;
444
     font-size: 14px;
399
-    border-bottom: 2px #E4E7ED solid;
445
+    border-bottom: 2px #e4e7ed solid;
400
     height: 36px;
446
     height: 36px;
401
     line-height: 36px;
447
     line-height: 36px;
402
     margin: 0 0 25px 0;
448
     margin: 0 0 25px 0;
403
     position: relative;
449
     position: relative;
404
   }
450
   }
405
   .cqd-dataTitle::before {
451
   .cqd-dataTitle::before {
406
-      position: absolute;
407
-      left: 0;
408
-      bottom: -2px;
409
-      content: "";
410
-      width: 42px;
411
-      height: 2px;
412
-      background: #409eff;
452
+    position: absolute;
453
+    left: 0;
454
+    bottom: -2px;
455
+    content: "";
456
+    width: 42px;
457
+    height: 2px;
458
+    background: #409eff;
413
   }
459
   }
414
   .search-component {
460
   .search-component {
415
     width: 500px;
461
     width: 500px;
456
     }
502
     }
457
   }
503
   }
458
 }
504
 }
459
-</style>
505
+</style>

+ 149 - 147
src/xt_pages/dialysis/bloodPresssWatch.vue View File

157
 
157
 
158
 
158
 
159
 <script>
159
 <script>
160
-import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
161
-import { parseTime } from "@/utils";
162
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
160
+import { getSchedualPatient, GetAllZone } from '@/api/dialysis'
161
+import { parseTime } from '@/utils'
162
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
163
 import { getPrintTemplate } from '@/api/data'
163
 import { getPrintTemplate } from '@/api/data'
164
 
164
 
165
 export default {
165
 export default {
166
-  name: "Patient",
166
+  name: 'Patient',
167
   data() {
167
   data() {
168
     return {
168
     return {
169
-      crumbs:[
170
-        {path:false, name:'透析管理'},
171
-        {path:false, name:'透析监测'},
169
+      crumbs: [
170
+        { path: false, name: '透析管理' },
171
+        { path: false, name: '透析监测' }
172
       ],
172
       ],
173
       loading: false,
173
       loading: false,
174
-      time: "",
174
+      time: '',
175
 
175
 
176
       search_mode: 1, // 搜索模式 1.日期搜索 2.病人搜索
176
       search_mode: 1, // 搜索模式 1.日期搜索 2.病人搜索
177
-      patient_search_keyword: "",
177
+      patient_search_keyword: '',
178
 
178
 
179
       SchedualPatientsTableData: [],
179
       SchedualPatientsTableData: [],
180
       active: true,
180
       active: true,
181
       schedulType: 0,
181
       schedulType: 0,
182
       schedulArr: [
182
       schedulArr: [
183
-        { value: 0, label: "全部" },
184
-        { value: 1, label: "上午" },
185
-        { value: 2, label: "下午" },
186
-        { value: 3, label: "晚上" }
183
+        { value: 0, label: '全部' },
184
+        { value: 1, label: '上午' },
185
+        { value: 2, label: '下午' },
186
+        { value: 3, label: '晚上' }
187
       ],
187
       ],
188
-      template_id : 0,
188
+      template_id: 0,
189
 
189
 
190
       partitionType: 0,
190
       partitionType: 0,
191
 
191
 
192
-      labelArr: ['第1次', "第2次", "第3次", "第4次", "第5次", "第6次", "第7次"],
192
+      labelArr: ['第1次', '第2次', '第3次', '第4次', '第5次', '第6次', '第7次'],
193
 
193
 
194
       pickerOptions1: {
194
       pickerOptions1: {
195
         shortcuts: [
195
         shortcuts: [
196
           {
196
           {
197
-            text: "今天",
197
+            text: '今天',
198
             onClick(picker) {
198
             onClick(picker) {
199
-              picker.$emit("pick", new Date());
199
+              picker.$emit('pick', new Date())
200
             }
200
             }
201
           },
201
           },
202
           {
202
           {
203
-            text: "昨天",
203
+            text: '昨天',
204
             onClick(picker) {
204
             onClick(picker) {
205
-              const date = new Date();
206
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
207
-              picker.$emit("pick", date);
205
+              const date = new Date()
206
+              date.setTime(date.getTime() - 3600 * 1000 * 24)
207
+              picker.$emit('pick', date)
208
             }
208
             }
209
           },
209
           },
210
           {
210
           {
211
-            text: "一周前",
211
+            text: '一周前',
212
             onClick(picker) {
212
             onClick(picker) {
213
-              const date = new Date();
214
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
215
-              picker.$emit("pick", date);
213
+              const date = new Date()
214
+              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
215
+              picker.$emit('pick', date)
216
             }
216
             }
217
           },
217
           },
218
           {
218
           {
219
-            text: "清空",
219
+            text: '清空',
220
             onClick(picker) {
220
             onClick(picker) {
221
-              picker.$emit("pick");
221
+              picker.$emit('pick')
222
             }
222
             }
223
           }
223
           }
224
         ]
224
         ]
230
         limit: 10,
230
         limit: 10,
231
         schedul_type: 0,
231
         schedul_type: 0,
232
         partition_type: 0,
232
         partition_type: 0,
233
-        schedul_time: "",
234
-        keywords: ""
233
+        schedul_time: '',
234
+        keywords: ''
235
       },
235
       },
236
       selecting_schs: [],
236
       selecting_schs: [],
237
       partitionArr: []
237
       partitionArr: []
238
-    };
238
+    }
239
   },
239
   },
240
   created() {
240
   created() {
241
-    var date = new Date();
242
-    this.time = date;
243
-    var year = date.getFullYear();
244
-    var month = date.getMonth() + 1;
245
-    var day = date.getDate();
241
+    var date = new Date()
242
+    this.time = date
243
+    var year = date.getFullYear()
244
+    var month = date.getMonth() + 1
245
+    var day = date.getDate()
246
     if (month < 10) {
246
     if (month < 10) {
247
-      month = "0" + month;
247
+      month = '0' + month
248
     }
248
     }
249
     if (day < 10) {
249
     if (day < 10) {
250
-      day = "0" + day;
250
+      day = '0' + day
251
     }
251
     }
252
-    var nowDate = year + "-" + month + "-" + day;
253
-    var date = new Date(nowDate + " 00:00:00");
254
-    this.listQuery.schedul_time = date.getTime();
255
-    this.getAllZone();
256
-    this.getSchedualPatientList();
257
-    this.getTemplateInfo();
252
+    var nowDate = year + '-' + month + '-' + day
253
+    var date = new Date(nowDate + ' 00:00:00')
254
+    this.listQuery.schedul_time = date.getTime()
255
+    this.getAllZone()
256
+    this.getSchedualPatientList()
257
+    this.getTemplateInfo()
258
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
258
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
259
   },
259
   },
260
   methods: {
260
   methods: {
261
-    getTemplateInfo(){
261
+    getTemplateInfo() {
262
       getPrintTemplate().then(response => {
262
       getPrintTemplate().then(response => {
263
         if (response.data.state == 0) {
263
         if (response.data.state == 0) {
264
           this.$message.error(response.data.msg)
264
           this.$message.error(response.data.msg)
270
       })
270
       })
271
     },
271
     },
272
     clickCurrent(val) {
272
     clickCurrent(val) {
273
-      console.log(val);
273
+      console.log(val)
274
       this.$router.push({
274
       this.$router.push({
275
-        path: "/dialysis/details",
275
+        path: '/dialysis/details',
276
         query: { patient_id: val.patient_id, date: val.sch_time_int }
276
         query: { patient_id: val.patient_id, date: val.sch_time_int }
277
-      });
277
+      })
278
     },
278
     },
279
     handleSelectionChange(val) {
279
     handleSelectionChange(val) {
280
-      this.selecting_schs = val;
280
+      this.selecting_schs = val
281
     },
281
     },
282
 
282
 
283
     selectSchedulType(scheduleType) {
283
     selectSchedulType(scheduleType) {
284
       // alert(scheduleType);/
284
       // alert(scheduleType);/
285
-      this.schedulType = scheduleType;
286
-      this.listQuery.schedul_type = scheduleType;
287
-      this.getSchedualPatientList();
285
+      this.schedulType = scheduleType
286
+      this.listQuery.schedul_type = scheduleType
287
+      this.getSchedualPatientList()
288
     },
288
     },
289
     selectPartitionType(partitionType) {
289
     selectPartitionType(partitionType) {
290
-      this.partitionType = partitionType;
291
-      this.listQuery.partition_type = partitionType;
292
-      this.getSchedualPatientList();
290
+      this.partitionType = partitionType
291
+      this.listQuery.partition_type = partitionType
292
+      this.getSchedualPatientList()
293
     },
293
     },
294
 
294
 
295
     changeTime() {
295
     changeTime() {
296
-      this.listQuery.schedul_time = this.time;
297
-      this.getSchedualPatientList();
296
+      this.listQuery.schedul_time = this.time
297
+      this.getSchedualPatientList()
298
     },
298
     },
299
     getAllZone: function() {
299
     getAllZone: function() {
300
       GetAllZone().then(response => {
300
       GetAllZone().then(response => {
301
         if (response.data.state == 0) {
301
         if (response.data.state == 0) {
302
-          this.$message.error(response.data.msg);
303
-          return false;
302
+          this.$message.error(response.data.msg)
303
+          return false
304
         } else {
304
         } else {
305
-          this.partitionArr = response.data.data.zone;
306
-          this.partitionArr.unshift({ id: 0, name: "全部" });
305
+          this.partitionArr = response.data.data.zone
306
+          this.partitionArr.unshift({ id: 0, name: '全部' })
307
         }
307
         }
308
-      });
308
+      })
309
     },
309
     },
310
     getSchedualPatientList: function() {
310
     getSchedualPatientList: function() {
311
-      this.loading = true;
311
+      this.loading = true
312
       if (this.search_mode == 1) {
312
       if (this.search_mode == 1) {
313
-        this.listQuery.keywords = "";
313
+        this.listQuery.keywords = ''
314
       } else {
314
       } else {
315
-        this.listQuery.schedul_time = "";
315
+        this.listQuery.schedul_time = ''
316
       }
316
       }
317
-      this.SchedualPatientsTableData = [];
317
+      this.SchedualPatientsTableData = []
318
       getSchedualPatient(this.listQuery).then(response => {
318
       getSchedualPatient(this.listQuery).then(response => {
319
         if (response.data.state == 0) {
319
         if (response.data.state == 0) {
320
-          this.loading = false;
321
-          this.$message.error(response.data.msg);
322
-          return false;
320
+          this.loading = false
321
+          this.$message.error(response.data.msg)
322
+          return false
323
         } else {
323
         } else {
324
-          this.loading = false;
325
-          this.total = response.data.data.total;
324
+          this.loading = false
325
+          this.total = response.data.data.total
326
           // console.log(response.data.data)
326
           // console.log(response.data.data)
327
           for (let i = 0; i < response.data.data.schedule.length; i++) {
327
           for (let i = 0; i < response.data.data.schedule.length; i++) {
328
             if (response.data.data.schedule[i].patient.id > 0) {
328
             if (response.data.data.schedule[i].patient.id > 0) {
329
-              let SchedualPatientsTable = {
329
+              const SchedualPatientsTable = {
330
                 bp: []
330
                 bp: []
331
-              };
331
+              }
332
 
332
 
333
-              SchedualPatientsTable["sch_id"] = response.data.data.schedule[i].id
334
-              SchedualPatientsTable["sch_time_int"] =
335
-                response.data.data.schedule[i].schedule_date;
336
-              SchedualPatientsTable["sch_time"] = parseTime(
333
+              SchedualPatientsTable['sch_id'] = response.data.data.schedule[i].id
334
+              SchedualPatientsTable['sch_time_int'] =
335
+                response.data.data.schedule[i].schedule_date
336
+              SchedualPatientsTable['sch_time'] = parseTime(
337
                 response.data.data.schedule[i].schedule_date,
337
                 response.data.data.schedule[i].schedule_date,
338
-                "{y}-{m}-{d}"
339
-              );
340
-              SchedualPatientsTable["dialysis_no"] =
341
-                response.data.data.schedule[i].patient.dialysis_no;
342
-              SchedualPatientsTable["name"] =
343
-                response.data.data.schedule[i].patient.name;
344
-              SchedualPatientsTable["number"] =
345
-                response.data.data.schedule[i].device_number.number;
346
-              SchedualPatientsTable["gender"] =
347
-                response.data.data.schedule[i].patient.gender;
348
-              SchedualPatientsTable["source"] =
349
-                response.data.data.schedule[i].patient.source;
350
-              SchedualPatientsTable["patient_id"] =
351
-                response.data.data.schedule[i].patient_id;
352
-              SchedualPatientsTable["mode_name"] =
353
-                response.data.data.schedule[i].treatment_mode.name;
338
+                '{y}-{m}-{d}'
339
+              )
340
+              SchedualPatientsTable['dialysis_no'] =
341
+                response.data.data.schedule[i].patient.dialysis_no
342
+              SchedualPatientsTable['name'] =
343
+                response.data.data.schedule[i].patient.name
344
+              SchedualPatientsTable['number'] =
345
+                response.data.data.schedule[i].device_number.number
346
+              SchedualPatientsTable['gender'] =
347
+                response.data.data.schedule[i].patient.gender
348
+              SchedualPatientsTable['source'] =
349
+                response.data.data.schedule[i].patient.source
350
+              SchedualPatientsTable['patient_id'] =
351
+                response.data.data.schedule[i].patient_id
352
+              SchedualPatientsTable['mode_name'] =
353
+                response.data.data.schedule[i].treatment_mode.name
354
               if (
354
               if (
355
                 response.data.data.schedule[i].assessment_before_dislysis.id > 0
355
                 response.data.data.schedule[i].assessment_before_dislysis.id > 0
356
               ) {
356
               ) {
357
-                SchedualPatientsTable["dialysis_before_weight"] =
357
+                SchedualPatientsTable['dialysis_before_weight'] =
358
                   response.data.data.schedule[
358
                   response.data.data.schedule[
359
                     i
359
                     i
360
-                  ].assessment_before_dislysis.weight_before;
360
+                  ].assessment_before_dislysis.weight_before
361
               }
361
               }
362
               if (
362
               if (
363
                 response.data.data.schedule[i].assessment_after_dislysis.id > 0
363
                 response.data.data.schedule[i].assessment_after_dislysis.id > 0
364
               ) {
364
               ) {
365
-                SchedualPatientsTable["dialysis_after_weight"] =
365
+                SchedualPatientsTable['dialysis_after_weight'] =
366
                   response.data.data.schedule[
366
                   response.data.data.schedule[
367
                     i
367
                     i
368
-                  ].assessment_after_dislysis.weight_after;
368
+                  ].assessment_after_dislysis.weight_after
369
               }
369
               }
370
 
370
 
371
-              SchedualPatientsTable.bp = [];
371
+              SchedualPatientsTable.bp = []
372
               for (
372
               for (
373
                 let a = 0;
373
                 let a = 0;
374
                 a < response.data.data.schedule[i].monitoring_record.length;
374
                 a < response.data.data.schedule[i].monitoring_record.length;
375
                 a++
375
                 a++
376
               ) {
376
               ) {
377
-                let bp = {};
378
-                bp["value"] =
377
+                const bp = {}
378
+                bp['value'] =
379
                   response.data.data.schedule[i].monitoring_record[
379
                   response.data.data.schedule[i].monitoring_record[
380
                     a
380
                     a
381
                   ].systolic_blood_pressure.toString() +
381
                   ].systolic_blood_pressure.toString() +
382
-                  "/" +
382
+                  '/' +
383
                   response.data.data.schedule[i].monitoring_record[
383
                   response.data.data.schedule[i].monitoring_record[
384
                     a
384
                     a
385
-                  ].diastolic_blood_pressure.toString();
385
+                  ].diastolic_blood_pressure.toString()
386
 
386
 
387
-                SchedualPatientsTable.bp.unshift(bp);
387
+                SchedualPatientsTable.bp.unshift(bp)
388
               }
388
               }
389
 
389
 
390
-              this.SchedualPatientsTableData.push(SchedualPatientsTable);
390
+              this.SchedualPatientsTableData.push(SchedualPatientsTable)
391
             }
391
             }
392
           }
392
           }
393
         }
393
         }
394
-      });
394
+      })
395
     },
395
     },
396
     getValue: function(val) {
396
     getValue: function(val) {
397
       if (val != undefined) {
397
       if (val != undefined) {
398
-        return val.value;
398
+        return val.value
399
       } else {
399
       } else {
400
-        return "";
400
+        return ''
401
       }
401
       }
402
     },
402
     },
403
 
403
 
404
     handleCurrentChange(val) {
404
     handleCurrentChange(val) {
405
-      this.listQuery.page = val;
406
-      this.getSchedualPatientList();
405
+      this.listQuery.page = val
406
+      this.getSchedualPatientList()
407
     },
407
     },
408
     changeSearchMode: function() {
408
     changeSearchMode: function() {
409
       if (this.search_mode == 1) {
409
       if (this.search_mode == 1) {
410
-        this.search_mode = 2;
410
+        this.search_mode = 2
411
       } else {
411
       } else {
412
-        this.search_mode = 1;
412
+        this.search_mode = 1
413
       }
413
       }
414
     },
414
     },
415
     searchPatientAction: function() {
415
     searchPatientAction: function() {
416
-      this.listQuery.keywords = this.patient_search_keyword;
417
-      console.log(this.patient_search_keyword);
416
+      this.listQuery.keywords = this.patient_search_keyword
417
+      console.log(this.patient_search_keyword)
418
       if (this.patient_search_keyword.length == 0) {
418
       if (this.patient_search_keyword.length == 0) {
419
-        return;
419
+        return
420
       }
420
       }
421
-      this.getSchedualPatientList();
421
+      this.getSchedualPatientList()
422
     },
422
     },
423
     handleSizeChange(val) {
423
     handleSizeChange(val) {
424
       this.listQuery.limit = val
424
       this.listQuery.limit = val
425
-      this.getSchedualPatientList();
426
-
425
+      this.getSchedualPatientList()
427
     },
426
     },
428
     batchPrintAction: function() {
427
     batchPrintAction: function() {
428
+    // 模板ID为6
429
       var sch_ids = []
429
       var sch_ids = []
430
+
430
       for (let index = 0; index < this.selecting_schs.length; index++) {
431
       for (let index = 0; index < this.selecting_schs.length; index++) {
431
         sch_ids.push(this.selecting_schs[index].sch_id)
432
         sch_ids.push(this.selecting_schs[index].sch_id)
432
       }
433
       }
433
-      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids)
434
-      if (this.template_id == 2 ||this.template_id == 0 ){
435
-        this.$router.push({ path: "/dialysis/print/batch/other" });
436
-      }else if(this.template_id == 1) {
437
-        this.$router.push({ path: "/dialysis/print/batch" });
438
-      }
439
-      else if(this.template_id == 3) {
440
-        this.$router.push({ path: "/dialysis/print/batch/three" });
441
-      }
442
-      else if(this.template_id == 4) {
443
-        this.$router.push({ path: "/dialysis/print/batch/four" });
444
-      } else if (this.template_id == 5  ){
445
-        this.$router.push({ path: "/dialysis/print/batch/five" });
446
-      } else if (this.template_id == 6  ){
447
-        this.$router.push({ path: "/dialysis/print/batch/six" });
434
+      console.log('第一个', sch_ids)
435
+      console.log('模板id', this.template_id)
436
+      this.$store.dispatch('SetBatchPrintDialysisRecordIDs', sch_ids)
437
+      if (this.template_id == 2 || this.template_id == 0) {
438
+        this.$router.push({ path: '/dialysis/print/batch/other' })
439
+      } else if (this.template_id == 1) {
440
+        this.$router.push({ path: '/dialysis/print/batch' })
441
+      } else if (this.template_id == 3) {
442
+        this.$router.push({ path: '/dialysis/print/batch/three' })
443
+      } else if (this.template_id == 4) {
444
+        this.$router.push({ path: '/dialysis/print/batch/four' })
445
+      } else if (this.template_id == 5) {
446
+        this.$router.push({ path: '/dialysis/print/batch/five' })
447
+      } else if (this.template_id == 6) {
448
+        this.$router.push({ path: '/dialysis/print/batch/six' })
448
       }
449
       }
449
     },
450
     },
450
     batchPrintActionOne: function() {
451
     batchPrintActionOne: function() {
452
       for (let index = 0; index < this.selecting_schs.length; index++) {
453
       for (let index = 0; index < this.selecting_schs.length; index++) {
453
         sch_ids.push(this.selecting_schs[index].sch_id)
454
         sch_ids.push(this.selecting_schs[index].sch_id)
454
       }
455
       }
455
-      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids)
456
-      if (this.template_id == 2 ||this.template_id == 0){
457
-        this.$router.push({ path: "/dialysis/print/batch/otherone" });
458
-      }else if(this.template_id == 1) {
459
-        this.$router.push({ path: "/dialysis/print/batch" });
460
-      } else if (this.template_id == 5){
461
-        this.$router.push({ path: "/dialysis/print/batch/fiveone" });
456
+      console.log('第二个', sch_ids)
457
+      this.$store.dispatch('SetBatchPrintDialysisRecordIDs', sch_ids)
458
+      if (this.template_id == 2 || this.template_id == 0) {
459
+        this.$router.push({ path: '/dialysis/print/batch/otherone' })
460
+      } else if (this.template_id == 1) {
461
+        this.$router.push({ path: '/dialysis/print/batch' })
462
+      } else if (this.template_id == 5) {
463
+        this.$router.push({ path: '/dialysis/print/batch/fiveone' })
462
       }
464
       }
463
     },
465
     },
464
     batchPrintActionTwo: function() {
466
     batchPrintActionTwo: function() {
466
       for (let index = 0; index < this.selecting_schs.length; index++) {
468
       for (let index = 0; index < this.selecting_schs.length; index++) {
467
         sch_ids.push(this.selecting_schs[index].sch_id)
469
         sch_ids.push(this.selecting_schs[index].sch_id)
468
       }
470
       }
469
-      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids)
470
-      if (this.template_id == 2 ||this.template_id == 0 ){
471
-        this.$router.push({ path: "/dialysis/print/batch/othertwo" });
472
-      }else if(this.template_id == 1){
473
-        this.$router.push({ path: "/dialysis/print/batch" });
474
-      } else if (this.template_id == 5  ){
475
-        this.$router.push({ path: "/dialysis/print/batch/fivetwo" });
471
+      this.$store.dispatch('SetBatchPrintDialysisRecordIDs', sch_ids)
472
+      if (this.template_id == 2 || this.template_id == 0) {
473
+        this.$router.push({ path: '/dialysis/print/batch/othertwo' })
474
+      } else if (this.template_id == 1) {
475
+        this.$router.push({ path: '/dialysis/print/batch' })
476
+      } else if (this.template_id == 5) {
477
+        this.$router.push({ path: '/dialysis/print/batch/fivetwo' })
476
       }
478
       }
477
     }
479
     }
478
   },
480
   },
479
   components: {
481
   components: {
480
-      BreadCrumb
482
+    BreadCrumb
481
   }
483
   }
482
-};
484
+}
483
 </script>
485
 </script>
484
 
486
 
485
 <style rel="stylesheet/scss" lang="scss" scoped>
487
 <style rel="stylesheet/scss" lang="scss" scoped>

+ 11 - 8
src/xt_pages/dialysis/details/NavIgation.vue View File

253
       default: () => {
253
       default: () => {
254
         return { id: 0 };
254
         return { id: 0 };
255
       }
255
       }
256
+    },  system_prescribe: {
257
+      // 系统透析方案
258
+      type: Object,
259
+      default: () => {
260
+        return { id: 0 };
261
+      }
256
     },
262
     },
263
+
257
     receiver_treatment_access: {
264
     receiver_treatment_access: {
258
       // 接诊评估
265
       // 接诊评估
259
       type: Object,
266
       type: Object,
528
       lastAssessmentAfterDislysis,
535
       lastAssessmentAfterDislysis,
529
       lastDialysisPrescribe,
536
       lastDialysisPrescribe,
530
       lastDryWeightDislysis,
537
       lastDryWeightDislysis,
531
-      schedual
538
+      schedual,
539
+      system_prescribe
532
     ) {
540
     ) {
533
-      console.log(lastPredialysisEvaluation);
534
-      console.log(lastMonitorRecord);
535
-      console.log(lastAssessmentAfterDislysis);
536
-      console.log(lastDialysisPrescribe);
537
-      console.log(lastDryWeightDislysis);
538
-      console.log(schedual);
539
 
541
 
540
       this.$refs.assessmentBefore.setLastRecord(
542
       this.$refs.assessmentBefore.setLastRecord(
541
         lastPredialysisEvaluation,
543
         lastPredialysisEvaluation,
546
         lastAssessmentAfterDislysis,
548
         lastAssessmentAfterDislysis,
547
         lastPredialysisEvaluation,
549
         lastPredialysisEvaluation,
548
         lastDialysisPrescribe,
550
         lastDialysisPrescribe,
549
-        lastDryWeightDislysis
551
+        lastDryWeightDislysis,
552
+        system_prescribe
550
       );
553
       );
551
 
554
 
552
       // this.temp_schedual = schedual
555
       // this.temp_schedual = schedual

+ 20 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

909
           return true
909
           return true
910
         }
910
         }
911
       },
911
       },
912
-      setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis) {
912
+      setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis,system_prescribe) {
913
         this.treatment_mode = this.$store.getters.treatment_mode
913
         this.treatment_mode = this.$store.getters.treatment_mode
914
         this.perfusion_apparatus = getDataConfig('hemodialysis', 'perfusion_apparatus')
914
         this.perfusion_apparatus = getDataConfig('hemodialysis', 'perfusion_apparatus')
915
         this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
915
         this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
931
           }
931
           }
932
         } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id > 0) {
932
         } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id > 0) {
933
           for (const key in this.solution) {
933
           for (const key in this.solution) {
934
-            this.dialysisPrescription[key] = this.solution[key]
934
+            if (key != 'target_ultrafiltration') {
935
+              this.dialysisPrescription[key] = this.solution[key]
936
+            }
935
           }
937
           }
936
         } else if (lastDialysisPrescribe != null && typeof lastDialysisPrescribe.id !== 'undefined' && lastDialysisPrescribe.id > 0) {
938
         } else if (lastDialysisPrescribe != null && typeof lastDialysisPrescribe.id !== 'undefined' && lastDialysisPrescribe.id > 0) {
937
           for (const key in lastDialysisPrescribe) {
939
           for (const key in lastDialysisPrescribe) {
938
-            this.dialysisPrescription[key] = lastDialysisPrescribe[key]
940
+            if (key != 'target_ultrafiltration') {
941
+
942
+              this.dialysisPrescription[key] = lastDialysisPrescribe[key]
943
+            }
944
+          }
945
+        } else if (system_prescribe != null && typeof system_prescribe.id !== 'undefined' && system_prescribe.id > 0) {
946
+          for (const key in system_prescribe) {
947
+            if (key != 'target_ultrafiltration') {
948
+              this.dialysisPrescription[key] = system_prescribe[key]
949
+            }
939
           }
950
           }
940
         } else {
951
         } else {
941
           this.dialysisPrescription.mode_id = schedual.mode_id
952
           this.dialysisPrescription.mode_id = schedual.mode_id
942
         }
953
         }
943
 
954
 
944
-        console.log(this.dialysisPrescription.anticoagulant)
945
 
955
 
946
         var thismode = parseInt(this.dialysisPrescription.anticoagulant)
956
         var thismode = parseInt(this.dialysisPrescription.anticoagulant)
947
         if (isNaN(thismode) || thismode <= 0) {
957
         if (isNaN(thismode) || thismode <= 0) {
2055
                     this.dialysisPrescription[key] = response.data.data.prescription[key]
2065
                     this.dialysisPrescription[key] = response.data.data.prescription[key]
2056
                   }
2066
                   }
2057
                 }
2067
                 }
2068
+              } else if (response.data.data.system_prescription != null) { // 临时处方不为空
2069
+                for (const key in response.data.data.system_prescription) {
2070
+                  if (key != 'target_ultrafiltration') {
2071
+                    this.dialysisPrescription[key] = response.data.data.system_prescription[key]
2072
+                  }
2073
+                }
2058
               } else {
2074
               } else {
2059
                 for (const key in this.dialysisPrescription) { // 临时处方为空
2075
                 for (const key in this.dialysisPrescription) { // 临时处方为空
2060
                   if (key != 'target_ultrafiltration') {
2076
                   if (key != 'target_ultrafiltration') {

+ 7 - 3
src/xt_pages/dialysis/details/index.vue View File

59
         :last_dryWeight_dislysis = "lastDryWeightDislysis"
59
         :last_dryWeight_dislysis = "lastDryWeightDislysis"
60
         :special_premission = "headNurses"
60
         :special_premission = "headNurses"
61
         @assessmentAfterDislysis="assessmentAfterDislysisFunc"
61
         @assessmentAfterDislysis="assessmentAfterDislysisFunc"
62
-
62
+        :system_prescribe = "system_prescribe"
63
 
63
 
64
 
64
 
65
       >
65
       >
314
         schedual: { id: 0 }, // 患者排班信息
314
         schedual: { id: 0 }, // 患者排班信息
315
         prescription: { id: 0 }, // 透析处方
315
         prescription: { id: 0 }, // 透析处方
316
         solution: { id: 0 }, // 透析方案
316
         solution: { id: 0 }, // 透析方案
317
+        system_prescribe:{id:0},
317
         receiver_treatment_access: { id: 0 }, // 接诊评估
318
         receiver_treatment_access: { id: 0 }, // 接诊评估
318
         predialysis_evaluation: { id: 0 }, // 透前评估
319
         predialysis_evaluation: { id: 0 }, // 透前评估
319
         doctor_advices: [], // 临时医嘱
320
         doctor_advices: [], // 临时医嘱
505
             var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
506
             var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
506
 
507
 
507
 
508
 
508
-            this.$refs.nav.setLastRecord(lastPredialysisEvaluation,lastMonitorRecord,lastAssessmentAfterDislysis,lastDialysisPrescribe,lastDryWeightDislysis,schedual)
509
+            var system_prescribe = resp.data.system_prescribe
510
+
511
+
512
+            this.$refs.nav.setLastRecord(lastPredialysisEvaluation,lastMonitorRecord,lastAssessmentAfterDislysis,lastDialysisPrescribe,lastDryWeightDislysis,schedual,system_prescribe)
509
 
513
 
510
 
514
 
511
 
515
 
520
             this.lastDialysisPrescribe = lastDialysisPrescribe
524
             this.lastDialysisPrescribe = lastDialysisPrescribe
521
             this.lastDryWeightDislysis = lastDryWeightDislysis
525
             this.lastDryWeightDislysis = lastDryWeightDislysis
522
             this.headNurses = headNurses
526
             this.headNurses = headNurses
523
-
527
+            this.system_prescribe =  system_prescribe
524
 
528
 
525
 
529
 
526
 
530
 

File diff suppressed because it is too large
+ 2547 - 1422
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue


+ 37 - 12
src/xt_pages/management/components/ManageForm.vue View File

38
             <el-form-item
38
             <el-form-item
39
               label="机位号:"
39
               label="机位号:"
40
               v-show="bedShow"
40
               v-show="bedShow"
41
-              required 
41
+              required
42
               prop="bed_number"
42
               prop="bed_number"
43
             >
43
             >
44
               <el-select style="width:135px" v-model="form.bed_number">
44
               <el-select style="width:135px" v-model="form.bed_number">
52
             </el-form-item>
52
             </el-form-item>
53
 
53
 
54
             <el-form-item label="机位号:" v-show="bedShowTwo">
54
             <el-form-item label="机位号:" v-show="bedShowTwo">
55
-              <el-input
56
-                v-model="forms.beds"
57
-                style="width:135px"
58
-              ></el-input>
55
+              <el-input v-model="forms.beds" style="width:135px"></el-input>
59
             </el-form-item>
56
             </el-form-item>
60
           </el-col>
57
           </el-col>
61
         </el-row>
58
         </el-row>
88
         <el-row>
85
         <el-row>
89
           <el-col :span="8">
86
           <el-col :span="8">
90
             <el-form-item label="设备型号:" required prop="unit_type">
87
             <el-form-item label="设备型号:" required prop="unit_type">
91
-              <el-input style="width:135px" v-model="form.unit_type"></el-input>
88
+              <el-select style="width:135px" v-model="form.unit_type">
89
+                <el-option
90
+                  v-for="item in this.deviceMode"
91
+                  :key="item.id"
92
+                  :label="item.device_mode"
93
+                  :value="item.id"
94
+                ></el-option>
95
+              </el-select>
92
             </el-form-item>
96
             </el-form-item>
93
           </el-col>
97
           </el-col>
94
           <el-col :span="8">
98
           <el-col :span="8">
308
       </el-form>
312
       </el-form>
309
       <span slot="footer" class="dialog-footer">
313
       <span slot="footer" class="dialog-footer">
310
         <el-button @click="dialogVisible = false">取 消</el-button>
314
         <el-button @click="dialogVisible = false">取 消</el-button>
311
-        <el-button type="primary" @click="SaveManageInfo('form')" v-show="buttonShow"
315
+        <el-button
316
+          type="primary"
317
+          @click="SaveManageInfo('form')"
318
+          v-show="buttonShow"
319
+          >保存</el-button
320
+        >
321
+        <el-button
322
+          type="primary"
323
+          @click="SaveManageInfoTwo('form')"
324
+          v-show="buttonShowTwo"
312
           >保存</el-button
325
           >保存</el-button
313
         >
326
         >
314
-         <el-button type="primary" @click="SaveManageInfoTwo('form')" v-show="buttonShowTwo"
327
+        <el-button @click="SaveManageInfoThree('form')" v-show="buttonShowThree"
315
           >保存</el-button
328
           >保存</el-button
316
         >
329
         >
317
-        <el-button @click="SaveManageInfoThree('form')" v-show="buttonShowThree">保存</el-button>
318
       </span>
330
       </span>
319
     </el-dialog>
331
     </el-dialog>
320
   </div>
332
   </div>
321
 </template>
333
 </template>
322
 
334
 
323
 <script>
335
 <script>
324
-import { getAllSubregion, SaveManageInfo, SaveManageInfoTwo } from '@/api/manage'
336
+import {
337
+  getAllSubregion,
338
+  SaveManageInfo,
339
+  SaveManageInfoTwo,
340
+  getAllMode
341
+} from '@/api/manage'
325
 const treatmentmodes = [
342
 const treatmentmodes = [
326
   'HD',
343
   'HD',
327
   'HDF',
344
   'HDF',
432
       disa: true,
449
       disa: true,
433
       buttonShow: true,
450
       buttonShow: true,
434
       buttonShowTwo: false,
451
       buttonShowTwo: false,
435
-      buttonShowThree: false
452
+      buttonShowThree: false,
453
+      deviceMode: []
436
     }
454
     }
437
   },
455
   },
438
   methods: {
456
   methods: {
799
           })
817
           })
800
         }
818
         }
801
       })
819
       })
820
+    },
821
+    getAllMode() {
822
+      getAllMode().then(response => {
823
+        var mode = response.data.data.mode
824
+        this.deviceMode = mode
825
+        console.log('mode', mode)
826
+      })
802
     }
827
     }
803
   },
828
   },
804
   created() {
829
   created() {
805
     this.getAllSubregion()
830
     this.getAllSubregion()
831
+    this.getAllMode()
806
   }
832
   }
807
 }
833
 }
808
 </script>
834
 </script>
809
 
835
 
810
 <style lang="scss">
836
 <style lang="scss">
811
 .el-form-item__label {
837
 .el-form-item__label {
812
-  width: 100px;
813
   font-size: 14px;
838
   font-size: 14px;
814
 }
839
 }
815
 // .el-form-item {
840
 // .el-form-item {

+ 76 - 79
src/xt_pages/management/components/PlanForm.vue View File

14
                 <el-option
14
                 <el-option
15
                   v-for="item in this.DeviceType"
15
                   v-for="item in this.DeviceType"
16
                   :key="item.id"
16
                   :key="item.id"
17
-                  :label="item.equitment_name"
17
+                  :label="item.device_mode"
18
                   :value="item.id"
18
                   :value="item.id"
19
                 ></el-option>
19
                 ></el-option>
20
               </el-select>
20
               </el-select>
137
 </template>
137
 </template>
138
 
138
 
139
 <script>
139
 <script>
140
-import { getAllEquimentName, savePlan, getAllEquitType } from '@/api/manage'
140
+import { getAllEquimentName, savePlan, getAllEquitType } from "@/api/manage";
141
 export default {
141
 export default {
142
-  name: 'PlanForm',
142
+  name: "PlanForm",
143
   props: {
143
   props: {
144
     equimentid: Number
144
     equimentid: Number
145
   },
145
   },
147
     return {
147
     return {
148
       dialogVisible: false,
148
       dialogVisible: false,
149
       form: {
149
       form: {
150
-        device_type: '',
151
-        disinfec_time: '',
150
+        device_type: "",
151
+        disinfec_time: "",
152
         time: [],
152
         time: [],
153
         class_time: [],
153
         class_time: [],
154
         way: 0,
154
         way: 0,
158
       },
158
       },
159
       value: [],
159
       value: [],
160
       timeType: [
160
       timeType: [
161
-        { id: 1, name: '周一' },
162
-        { id: 2, name: '周二' },
163
-        { id: 3, name: '周三' },
164
-        { id: 4, name: '周四' },
165
-        { id: 5, name: '周五' },
166
-        { id: 6, name: '周六' },
167
-        { id: 7, name: '周日' }
161
+        { id: 1, name: "周一" },
162
+        { id: 2, name: "周二" },
163
+        { id: 3, name: "周三" },
164
+        { id: 4, name: "周四" },
165
+        { id: 5, name: "周五" },
166
+        { id: 6, name: "周六" },
167
+        { id: 7, name: "周日" }
168
       ],
168
       ],
169
       classType: [
169
       classType: [
170
-        { id: 1, name: '上午' },
171
-        { id: 2, name: '下午' },
172
-        { id: 3, name: '晚上' }
170
+        { id: 1, name: "上午" },
171
+        { id: 2, name: "下午" },
172
+        { id: 3, name: "晚上" }
173
       ],
173
       ],
174
       // 机表消毒方式
174
       // 机表消毒方式
175
       disinfectType: [
175
       disinfectType: [
176
-        { id: 0, name: '/' },
177
-        { id: 1, name: '擦拭' },
178
-        { id: 2, name: '化学消毒' }
176
+        { id: 0, name: "/" },
177
+        { id: 1, name: "擦拭" },
178
+        { id: 2, name: "化学消毒" }
179
       ],
179
       ],
180
       // 基表消毒液
180
       // 基表消毒液
181
       disinfectantType: [
181
       disinfectantType: [
182
-        { id: 0, name: '/' },
183
-        { id: 1, name: '0.22%季铵盐' },
184
-        { id: 2, name: '500mg/l含氯消毒剂' },
185
-        { id: 3, name: '1000mg/l含氯消毒剂' },
186
-        { id: 4, name: '1500mg/l含氯消毒剂' }
182
+        { id: 0, name: "/" },
183
+        { id: 1, name: "0.22%季铵盐" },
184
+        { id: 2, name: "500mg/l含氯消毒剂" },
185
+        { id: 3, name: "1000mg/l含氯消毒剂" },
186
+        { id: 4, name: "1500mg/l含氯消毒剂" }
187
       ],
187
       ],
188
       // 夜路消毒方式
188
       // 夜路消毒方式
189
       sterilizeType: [
189
       sterilizeType: [
190
-        { id: 0, name: '/' },
191
-        { id: 1, name: '热化学消毒' },
192
-        { id: 2, name: '化学消毒 + 除钙' },
193
-        { id: 3, name: '热化学消毒 + 除钙' },
194
-        { id: 4, name: '热消毒' },
195
-        { id: 5, name: '化学消毒' },
196
-        { id: 6, name: '除钙' },
197
-        { id: 7, name: '清洗' }
190
+        { id: 0, name: "/" },
191
+        { id: 1, name: "热化学消毒" },
192
+        { id: 2, name: "化学消毒 + 除钙" },
193
+        { id: 3, name: "热化学消毒 + 除钙" },
194
+        { id: 4, name: "热消毒" },
195
+        { id: 5, name: "化学消毒" },
196
+        { id: 6, name: "除钙" },
197
+        { id: 7, name: "清洗" }
198
       ],
198
       ],
199
       // 夜路消毒液
199
       // 夜路消毒液
200
       fluidPathType: [
200
       fluidPathType: [
201
-        { id: 0, name: '/' },
202
-        { id: 1, name: '20%柠檬酸' },
203
-        { id: 2, name: '25%柠檬酸' },
204
-        { id: 3, name: '50%柠檬酸' },
205
-        { id: 4, name: '50%柠檬酸 + 5%次氯酸钠' },
206
-        { id: 5, name: '20%柠檬酸 + 10%冰醋酸' },
207
-        { id: 6, name: '0.2%过氧化乙酸' },
208
-        { id: 7, name: '10%冰醋酸' },
209
-        { id: 8, name: '50%冰醋酸' },
210
-        { id: 9, name: '5%次氯酸钠' }
201
+        { id: 0, name: "/" },
202
+        { id: 1, name: "20%柠檬酸" },
203
+        { id: 2, name: "25%柠檬酸" },
204
+        { id: 3, name: "50%柠檬酸" },
205
+        { id: 4, name: "50%柠檬酸 + 5%次氯酸钠" },
206
+        { id: 5, name: "20%柠檬酸 + 10%冰醋酸" },
207
+        { id: 6, name: "0.2%过氧化乙酸" },
208
+        { id: 7, name: "10%冰醋酸" },
209
+        { id: 8, name: "50%冰醋酸" },
210
+        { id: 9, name: "5%次氯酸钠" }
211
       ],
211
       ],
212
       DeviceType: [],
212
       DeviceType: [],
213
       planid: 0,
213
       planid: 0,
214
       plandata: 0
214
       plandata: 0
215
-    }
215
+    };
216
   },
216
   },
217
   methods: {
217
   methods: {
218
     open: function() {
218
     open: function() {
219
-      this.dialogVisible = true
219
+      this.dialogVisible = true;
220
     },
220
     },
221
     getAllEquimentName() {
221
     getAllEquimentName() {
222
       getAllEquimentName().then(response => {
222
       getAllEquimentName().then(response => {
223
         if (response.data.state === 1) {
223
         if (response.data.state === 1) {
224
-          var equit = response.data.data.equit
224
+          var equit = response.data.data.equit;
225
           // console.log('equit', equit);
225
           // console.log('equit', equit);
226
           // this.DeviceType = equit;
226
           // this.DeviceType = equit;
227
         }
227
         }
228
-      })
228
+      });
229
     },
229
     },
230
     savePlan(formName) {
230
     savePlan(formName) {
231
-      var equimentid = this.equimentid
231
+      var equimentid = this.equimentid;
232
       // console.log('equimentid', equimentid);
232
       // console.log('equimentid', equimentid);
233
-      var devicetype = this.form.device_type
234
-      var devicetypes = parseInt(devicetype)
235
-      this.form.device_type = devicetypes
233
+      var devicetype = this.form.device_type;
234
+      var devicetypes = parseInt(devicetype);
235
+      this.form.device_type = devicetypes;
236
 
236
 
237
-      var ways = this.form.way
238
-      var way = parseInt(ways)
239
-      this.form.way = way
237
+      var ways = this.form.way;
238
+      var way = parseInt(ways);
239
+      this.form.way = way;
240
 
240
 
241
-      var machinedisinfectant = this.form.machine_disinfectant
242
-      var machinedisinfectants = parseInt(machinedisinfectant)
243
-      this.form.machine_disinfectant = machinedisinfectants
241
+      var machinedisinfectant = this.form.machine_disinfectant;
242
+      var machinedisinfectants = parseInt(machinedisinfectant);
243
+      this.form.machine_disinfectant = machinedisinfectants;
244
 
244
 
245
-      var disinfectantways = this.form.disinfectant_way
246
-      var disinfectantway = parseInt(disinfectantways)
247
-      this.form.disinfectant_way = disinfectantway
245
+      var disinfectantways = this.form.disinfectant_way;
246
+      var disinfectantway = parseInt(disinfectantways);
247
+      this.form.disinfectant_way = disinfectantway;
248
 
248
 
249
-      var disinfectants = this.form.disinfectant
250
-      var disinfectant = parseInt(disinfectants)
251
-      this.form.disinfectant = disinfectant
249
+      var disinfectants = this.form.disinfectant;
250
+      var disinfectant = parseInt(disinfectants);
251
+      this.form.disinfectant = disinfectant;
252
       savePlan(this.form, this.equimentid).then(response => {
252
       savePlan(this.form, this.equimentid).then(response => {
253
         if (response.data.state === 1) {
253
         if (response.data.state === 1) {
254
-          var msg = response.data.data.msg
254
+          var msg = response.data.data.msg;
255
           // console.log('msg', msg);
255
           // console.log('msg', msg);
256
-          this.$message.success('保存成功')
257
-          this.dialogVisible = false
258
-          this.$emit('getAllPlan')
259
-          this.$emit('getAllPlanDetail')
256
+          this.$message.success("保存成功");
257
+          this.dialogVisible = false;
258
+          this.$emit("getAllPlan");
259
+          this.$emit("getAllPlanDetail");
260
           // 如果保存成功通过状态值改变父组键表格的值
260
           // 如果保存成功通过状态值改变父组键表格的值
261
-          this.plandata = 1
262
-          this.$emit('func', this.plandata)
261
+          this.plandata = 1;
262
+          this.$emit("func", this.plandata);
263
         } else {
263
         } else {
264
-          this.$message.error('该消毒计划已存在')
264
+          this.$message.error("该消毒计划已存在");
265
         }
265
         }
266
-      })
266
+      });
267
     },
267
     },
268
     getAllEquitType() {
268
     getAllEquitType() {
269
       getAllEquitType().then(response => {
269
       getAllEquitType().then(response => {
270
         if (response.data.state === 1) {
270
         if (response.data.state === 1) {
271
-          var equitname = response.data.data.equitname
272
-          var name = response.data.data.name
273
-          console.log('name', name)
274
-          // console.log('equitname', equitname)
275
-          this.DeviceType = equitname
271
+          var equitname = response.data.data.mode;
272
+          this.DeviceType = equitname;
276
         }
273
         }
277
-      })
274
+      });
278
     }
275
     }
279
   },
276
   },
280
   created() {
277
   created() {
281
-    this.getAllEquimentName()
282
-    this.getAllEquitType()
278
+    this.getAllEquimentName();
279
+    this.getAllEquitType();
283
   }
280
   }
284
-}
281
+};
285
 </script>
282
 </script>
286
 
283
 
287
 <style scoped></style>
284
 <style scoped></style>

File diff suppressed because it is too large
+ 816 - 480
src/xt_pages/management/components/QualityForm.vue


+ 16 - 16
src/xt_pages/management/components/RemanderForm.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <el-dialog
3
     <el-dialog
4
-      title="使用登记系统自动录取数据开启提醒"
4
+      title="设备使用记录自动生成配置"
5
       :visible.sync="dialogVisible"
5
       :visible.sync="dialogVisible"
6
       width="30%"
6
       width="30%"
7
       center
7
       center
8
     >
8
     >
9
       <el-form :model="randerform" ref="randerform">
9
       <el-form :model="randerform" ref="randerform">
10
         <el-row>
10
         <el-row>
11
-          <el-form-item label="开启提醒:">
11
+          <el-form-item label="是否开启:">
12
             <el-radio-group v-model="randerform.run" @change="changeRun">
12
             <el-radio-group v-model="randerform.run" @change="changeRun">
13
               <el-radio
13
               <el-radio
14
                 :label="gender.id"
14
                 :label="gender.id"
27
 
27
 
28
 <script>
28
 <script>
29
 // eslint-disable-next-line no-unused-vars
29
 // eslint-disable-next-line no-unused-vars
30
-import { changeRun, getRemanderData } from '@/api/manage'
30
+import { changeRun, getRemanderData } from "@/api/manage";
31
 export default {
31
 export default {
32
-  name: 'RemanderForm',
32
+  name: "RemanderForm",
33
   data() {
33
   data() {
34
     return {
34
     return {
35
       dialogVisible: false,
35
       dialogVisible: false,
36
       Option: [
36
       Option: [
37
-        { id: 1, name: '是' },
38
-        { id: 2, name: '否' }
37
+        { id: 1, name: "是" },
38
+        { id: 2, name: "否" }
39
       ],
39
       ],
40
       randerform: {
40
       randerform: {
41
         run: 2
41
         run: 2
44
   },
44
   },
45
   methods: {
45
   methods: {
46
     open: function() {
46
     open: function() {
47
-      this.dialogVisible = true
47
+      this.dialogVisible = true;
48
     },
48
     },
49
     changeRun(id) {
49
     changeRun(id) {
50
       // eslint-disable-next-line no-undef
50
       // eslint-disable-next-line no-undef
51
       changeRun(id).then(response => {
51
       changeRun(id).then(response => {
52
         if (response.data.state === 1) {
52
         if (response.data.state === 1) {
53
-          var id = response.data.data.id
53
+          var id = response.data.data.id;
54
           // eslint-disable-next-line eqeqeq
54
           // eslint-disable-next-line eqeqeq
55
           if (id == 1) {
55
           if (id == 1) {
56
-            this.$message.success('开启成功')
56
+            this.$message.success("开启成功");
57
           }
57
           }
58
           // eslint-disable-next-line eqeqeq
58
           // eslint-disable-next-line eqeqeq
59
           if (id == 2) {
59
           if (id == 2) {
60
-            this.$message.success('关闭成功')
60
+            this.$message.success("关闭成功");
61
           }
61
           }
62
         }
62
         }
63
-      })
63
+      });
64
     },
64
     },
65
     getRemanderData() {
65
     getRemanderData() {
66
       getRemanderData().then(response => {
66
       getRemanderData().then(response => {
67
         // eslint-disable-next-line eqeqeq
67
         // eslint-disable-next-line eqeqeq
68
         if (response.data.state == 1) {
68
         if (response.data.state == 1) {
69
-          var remander = response.data.data.remander
70
-          //console.log('remander=================小夏', remander)
71
-          this.randerform.run = remander.is_run
69
+          var remander = response.data.data.remander;
70
+          // console.log('remander=================小夏', remander)
71
+          this.randerform.run = remander.is_run;
72
         }
72
         }
73
       });
73
       });
74
     }
74
     }
75
   },
75
   },
76
   created() {
76
   created() {
77
-    this.getRemanderData()
77
+    this.getRemanderData();
78
   }
78
   }
79
-}
79
+};
80
 </script>
80
 </script>
81
 
81
 
82
 <style scoped></style>
82
 <style scoped></style>

+ 52 - 23
src/xt_pages/management/components/RepairForm.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <el-row>
4
-      <el-col :span="2">
5
-        <el-checkbox v-model="checkAllStatus" @change="changeCheck"
6
-          >全选</el-checkbox
7
-        >
8
-      </el-col>
9
-      <el-col :span="2" class="a">
10
-        <el-button size="small" @click="BatchDelete">批量删除</el-button>
11
-      </el-col>
12
-      <el-col :span="4" class="a">
3
+    <el-row class="row">
4
+      <el-col :span="4">
13
         <span class="machineClass">机号:</span>
5
         <span class="machineClass">机号:</span>
14
         <el-select style="width:100px" v-model="forms.bed">
6
         <el-select style="width:100px" v-model="forms.bed">
15
           <el-option
7
           <el-option
20
           ></el-option>
12
           ></el-option>
21
         </el-select>
13
         </el-select>
22
       </el-col>
14
       </el-col>
23
-      <el-col :span="10" class="a">
15
+      <el-col :span="11">
24
         <span class="machineClass">日期查询:</span>
16
         <span class="machineClass">日期查询:</span>
25
         <el-date-picker
17
         <el-date-picker
26
           v-model="forms.start_time"
18
           v-model="forms.start_time"
46
         <el-button @click="queryRepair()">查询</el-button>
38
         <el-button @click="queryRepair()">查询</el-button>
47
       </el-col>
39
       </el-col>
48
     </el-row>
40
     </el-row>
41
+    <el-row>
42
+        <el-col :span="2">
43
+        <el-checkbox v-model="checkAllStatus" @change="changeCheck"
44
+          >全选</el-checkbox
45
+        >
46
+      </el-col>
47
+      <el-col :span="2" class="a">
48
+        <el-button size="small" @click="BatchDelete">批量删除</el-button>
49
+      </el-col>
50
+    </el-row>
49
     <el-row>
51
     <el-row>
50
       <el-table
52
       <el-table
51
         ref="multipleTable"
53
         ref="multipleTable"
63
           width="55"
65
           width="55"
64
         ></el-table-column>
66
         ></el-table-column>
65
         <el-table-column prop="date" label="机号" width="80" align="center">
67
         <el-table-column prop="date" label="机号" width="80" align="center">
66
-          <template slot-scope="scope">{{ scope.row.bed_number}}</template>
68
+          <template slot-scope="scope">{{ scope.row.bed_number }}</template>
67
         </el-table-column>
69
         </el-table-column>
68
         <el-table-column
70
         <el-table-column
69
           prop="name"
71
           prop="name"
357
                 action="https://upload.qiniup.com"
359
                 action="https://upload.qiniup.com"
358
                 :on-success="handleSuccess"
360
                 :on-success="handleSuccess"
359
                 :before-upload="beforeUploadFile"
361
                 :before-upload="beforeUploadFile"
360
-                multiple
361
-                :on-preview="handlePreview"
362
                 :limit="1"
362
                 :limit="1"
363
-                :on-exceed="handleExceed"
363
+                ref="upload"
364
               >
364
               >
365
                 <el-button size="small" type="primary">上传图片</el-button>
365
                 <el-button size="small" type="primary">上传图片</el-button>
366
-              </el-upload>            
366
+              </el-upload>
367
             </el-form-item>
367
             </el-form-item>
368
-            <a>{{this.guaForm.images}}</a>
368
+            <a class="el-upload-list__item-name">
369
+              <i
370
+                ><a @click="toLink()">{{ filename }}</a></i
371
+              >
372
+            </a>
369
           </el-col>
373
           </el-col>
370
         </el-row>
374
         </el-row>
371
         <el-row>
375
         <el-row>
445
         images: '',
449
         images: '',
446
         exclude: '',
450
         exclude: '',
447
         reason: '',
451
         reason: '',
448
-        code_information: ''
452
+        code_information: '',
453
+        image_name: ''
449
       },
454
       },
450
       isIndeterminate: false,
455
       isIndeterminate: false,
451
       checkAllStatus: false,
456
       checkAllStatus: false,
472
       filename: '',
477
       filename: '',
473
       limit: 10,
478
       limit: 10,
474
       page: 1,
479
       page: 1,
475
-      total: 0
480
+      total: 0,
481
+      filename: ''
476
     }
482
     }
477
   },
483
   },
478
   methods: {
484
   methods: {
561
       EditRepair(id).then(response => {
567
       EditRepair(id).then(response => {
562
         if (response.data.state === 1) {
568
         if (response.data.state === 1) {
563
           var repair = response.data.data.repair
569
           var repair = response.data.data.repair
570
+          console.log('repair', repair)
564
           this.guaForm.guarantee_date = uParseTime(
571
           this.guaForm.guarantee_date = uParseTime(
565
             repair.guarantee_date,
572
             repair.guarantee_date,
566
             '{y}-{m}-{d}'
573
             '{y}-{m}-{d}'
587
           this.guaForm.reason = repair.reason
594
           this.guaForm.reason = repair.reason
588
           this.guaForm.code_information = repair.code_information
595
           this.guaForm.code_information = repair.code_information
589
           this.guaForm.id = repair.id
596
           this.guaForm.id = repair.id
597
+          this.filename = repair.image_name
590
         }
598
         }
591
       })
599
       })
592
     },
600
     },
593
     handleSuccess(res, file, fileList) {
601
     handleSuccess(res, file, fileList) {
594
       this.guaForm.images = this.qiniuDomain + res.url
602
       this.guaForm.images = this.qiniuDomain + res.url
595
       console.log('图片上传', this.guaForm.images)
603
       console.log('图片上传', this.guaForm.images)
604
+      this.$refs.upload.clearFiles()
605
+      this.filename = file.name
606
+      this.guaForm.image_name = file.name
596
     },
607
     },
597
     beforeUploadFile(file) {
608
     beforeUploadFile(file) {
609
+      this.filename = file.name
610
+      this.guaForm.image_name = file.name
598
       const isLt2M = file.size / 1024 / 1024 <= 2048
611
       const isLt2M = file.size / 1024 / 1024 <= 2048
599
       console.log('filename', file)
612
       console.log('filename', file)
600
       // console.log('视频大小', file.size / 1024 / 1024)
613
       // console.log('视频大小', file.size / 1024 / 1024)
634
           })
647
           })
635
       })
648
       })
636
     },
649
     },
650
+    toLink() {
651
+      window.location.href = this.guaForm.images
652
+    },
637
     UpdateRepair(formName) {
653
     UpdateRepair(formName) {
638
       this.$refs[formName].validate(valid => {
654
       this.$refs[formName].validate(valid => {
639
-        this.guaForm.start_time = uParseTime(this.guaForm.start_time, '{y}-{m}-{d} {h}:{i}')
640
-        this.guaForm.arrive_time = uParseTime(this.guaForm.arrive_time, '{y}-{m}-{d} {h}:{i}')
641
-        this.guaForm.finish_time = uParseTime(this.guaForm.finish_time, '{y}-{m}-{d} {h}:{i}')
655
+        this.guaForm.start_time = uParseTime(
656
+          this.guaForm.start_time,
657
+          '{y}-{m}-{d} {h}:{i}'
658
+        )
659
+        this.guaForm.arrive_time = uParseTime(
660
+          this.guaForm.arrive_time,
661
+          '{y}-{m}-{d} {h}:{i}'
662
+        )
663
+        this.guaForm.finish_time = uParseTime(
664
+          this.guaForm.finish_time,
665
+          '{y}-{m}-{d} {h}:{i}'
666
+        )
642
 
667
 
643
         if (this.guaForm.failure_stage === '') {
668
         if (this.guaForm.failure_stage === '') {
644
           this.guaForm.failure_stage = 0
669
           this.guaForm.failure_stage = 0
747
 }
772
 }
748
 </script>
773
 </script>
749
 
774
 
750
-<style scoped></style>
775
+<style scoped>
776
+  .row{
777
+    margin-bottom:10px;
778
+  }
779
+</style>

File diff suppressed because it is too large
+ 806 - 675
src/xt_pages/management/components/UserForm.vue


+ 143 - 82
src/xt_pages/management/home.vue View File

9
                  <el-row>
9
                  <el-row>
10
                    <el-col :span="24">
10
                    <el-col :span="24">
11
                      <span class="zone">分&nbsp;&nbsp;&nbsp;&nbsp;区:</span>
11
                      <span class="zone">分&nbsp;&nbsp;&nbsp;&nbsp;区:</span>
12
-                      <el-select v-model="forms.zone_id" placeholder="请选择" class="a" @change="changeBedNumber" style="width:125px">
12
+                      <el-select v-model="forms.zone_id" placeholder="请选择" class="a" @change="changeBedNumber" style="width:125px" :disabled="zoneDisabled">
13
                         <el-option
13
                         <el-option
14
                          v-for="item in bedZone"
14
                          v-for="item in bedZone"
15
                          :key="item.id"
15
                          :key="item.id"
20
                       </el-select>
20
                       </el-select>
21
                      </el-col>
21
                      </el-col>
22
                   </el-row>
22
                   </el-row>
23
-                  <el-row>
24
-                   <el-col>
25
-                    <span class="zone">班&nbsp;&nbsp;&nbsp;&nbsp;次:</span>
26
-                      <el-select v-model="forms.class_id" placeholder="请选择" class="a" @change="changeClassId" style="width:125px">
27
-                        <el-option
28
-                         v-for="item in Classes"
29
-                         :key="item.id"
30
-                         :label="item.name"
31
-                         :value="item.id">
32
-                        </el-option>
33
-                      </el-select>
34
-                     </el-col>
35
-                  </el-row>
23
+<!--                  <el-row>-->
24
+<!--                   <el-col>-->
25
+<!--                    <span class="zone">班&nbsp;&nbsp;&nbsp;&nbsp;次:</span>-->
26
+<!--                      <el-select v-model="forms.class_id" placeholder="请选择" class="a" @change="changeClassId" style="width:125px">-->
27
+<!--                        <el-option-->
28
+<!--                         v-for="item in Classes"-->
29
+<!--                         :key="item.id"-->
30
+<!--                         :label="item.name"-->
31
+<!--                         :value="item.id">-->
32
+<!--                        </el-option>-->
33
+<!--                      </el-select>-->
34
+<!--                     </el-col>-->
35
+<!--                  </el-row>-->
36
                   <el-row>
36
                   <el-row>
37
                      <el-col>
37
                      <el-col>
38
                      <span>设备类型:</span>
38
                      <span>设备类型:</span>
53
                           highlight-current-row
53
                           highlight-current-row
54
                            border
54
                            border
55
                           @current-change="handleCurrentChange"
55
                           @current-change="handleCurrentChange"
56
-                           height="1050"
56
+                           height="440"
57
                         >
57
                         >
58
                      <el-table-column
58
                      <el-table-column
59
                        prop="date"
59
                        prop="date"
62
                       align="center"
62
                       align="center"
63
                       >
63
                       >
64
                       <template slot-scope="scope">
64
                       <template slot-scope="scope">
65
-                         <div @click="handleIndex(scope.$index)">{{scope.row.device_name}}</div> 
65
+                         <div @click="handleIndex(scope.$index)">{{scope.row.device_name}}</div>
66
                       </template>
66
                       </template>
67
                     </el-table-column>
67
                     </el-table-column>
68
                      <el-table-column
68
                      <el-table-column
71
                       width="90"
71
                       width="90"
72
                       align="center">
72
                       align="center">
73
                       <template slot-scope="scope">
73
                       <template slot-scope="scope">
74
-                        <div @click="handleIndex(scope.$index)">{{scope.row.unit_type}}</div> 
74
+                        <div @click="handleIndex(scope.$index)">{{scope.row.device_mode}}</div>
75
                       </template>
75
                       </template>
76
                      </el-table-column>
76
                      </el-table-column>
77
                       <el-table-column
77
                       <el-table-column
152
                              <el-row>
152
                              <el-row>
153
                                <el-col :span="7">
153
                                <el-col :span="7">
154
                                    <el-form-item label="设备型号:" required prop="unit_type">
154
                                    <el-form-item label="设备型号:" required prop="unit_type">
155
-                                       <el-input style="width:150px" v-model="form.unit_type" :disabled="disableThree"></el-input>
155
+                                        <el-select style="width:135px" v-model="form.unit_type" :disabled="disableThree">
156
+                                           <el-option
157
+                                             v-for="item in this.deviceMode"
158
+                                             :key="item.id"
159
+                                             :label="item.device_mode"
160
+                                             :value="item.id"
161
+                                           ></el-option>
162
+                                          </el-select>
156
                                    </el-form-item>
163
                                    </el-form-item>
157
                                </el-col>
164
                                </el-col>
158
                                <el-col :span="7">
165
                                <el-col :span="7">
353
                              <el-row>
360
                              <el-row>
354
                                <el-col :span="7">
361
                                <el-col :span="7">
355
                                    <el-form-item label="设备型号:" required prop="unit_type">
362
                                    <el-form-item label="设备型号:" required prop="unit_type">
356
-                                       <el-input style="width:150px" v-model="form.unit_type" :disabled="disableFour"></el-input>
363
+                                       <el-select style="width:135px" v-model="form.unit_type" :disabled="disableFour">
364
+                                        <el-option
365
+                                            v-for="item in this.deviceMode"
366
+                                            :key="item.id"
367
+                                            :label="item.device_mode"
368
+                                            :value="item.id"
369
+                                             ></el-option>
370
+                                           </el-select>
357
                                    </el-form-item>
371
                                    </el-form-item>
358
                                </el-col>
372
                                </el-col>
359
                                <el-col :span="7">
373
                                <el-col :span="7">
563
                               <el-row>
577
                               <el-row>
564
                                <el-col :span="7">
578
                                <el-col :span="7">
565
                                    <el-form-item label="设备型号:" required prop="unit_type">
579
                                    <el-form-item label="设备型号:" required prop="unit_type">
566
-                                       <el-input style="width:150px" v-model="form.unit_type" :disabled="disableFive"></el-input>
567
-                                   </el-form-item>
568
-                               </el-col>
580
+                                       <el-select style="width:135px" v-model="form.unit_type" :disabled="disableFive">
581
+                                        <el-option
582
+                                            v-for="item in this.deviceMode"
583
+                                            :key="item.id"
584
+                                            :label="item.device_mode"
585
+                                            :value="item.id"
586
+                                             ></el-option>
587
+                                           </el-select>
588
+                                       </el-form-item>
589
+                                    </el-col>
569
                                <el-col :span="7">
590
                                <el-col :span="7">
570
                                   <el-form-item label="使用科室:">
591
                                   <el-form-item label="使用科室:">
571
                                        <el-input style="width:150px" v-model="form.use_section" :disabled="disableFive"></el-input>
592
                                        <el-input style="width:150px" v-model="form.use_section" :disabled="disableFive"></el-input>
779
                                                     {{scope.row.disinfec_time}}
800
                                                     {{scope.row.disinfec_time}}
780
                                                  </template>
801
                                                  </template>
781
                                         </el-table-column>
802
                                         </el-table-column>
782
-                                         <el-table-column label="操作" align="center" min-width="120px">
803
+                                         <el-table-column label="操作" align="center" min-width="130px">
783
                                              <template slot-scope="scope">
804
                                              <template slot-scope="scope">
784
                                                  <el-tooltip class="item" effect="dark" content="编辑" placement="top">
805
                                                  <el-tooltip class="item" effect="dark" content="编辑" placement="top">
785
                                                   <el-button
806
                                                   <el-button
827
                                         <el-table-column align="center" type="selection" width="55"></el-table-column>
848
                                         <el-table-column align="center" type="selection" width="55"></el-table-column>
828
                                         <el-table-column label="型号" align="center" min-width="70px">
849
                                         <el-table-column label="型号" align="center" min-width="70px">
829
                                                 <template slot-scope="scope">
850
                                                 <template slot-scope="scope">
830
-                                                    {{scope.row.equitment_name}}
851
+                                                    {{scope.row.device_mode}}
831
                                                  </template>
852
                                                  </template>
832
                                         </el-table-column>
853
                                         </el-table-column>
833
                                          <el-table-column label="时间" align="center" min-width="70px" >
854
                                          <el-table-column label="时间" align="center" min-width="70px" >
865
                                                     {{scope.row.disinfec_time}}
886
                                                     {{scope.row.disinfec_time}}
866
                                                  </template>
887
                                                  </template>
867
                                         </el-table-column>
888
                                         </el-table-column>
868
-                                         <el-table-column label="操作" align="center" min-width="130px">
889
+                                         <el-table-column label="操作" align="center" width="130px">
869
                                              <template slot-scope="scope">
890
                                              <template slot-scope="scope">
870
                                                  <el-tooltip class="item" effect="dark" content="编辑" placement="top">
891
                                                  <el-tooltip class="item" effect="dark" content="编辑" placement="top">
871
                                                   <el-button
892
                                                   <el-button
901
 
922
 
902
                    <el-tab-pane label="使用登记" name="third">
923
                    <el-tab-pane label="使用登记" name="third">
903
                        <div class="userbutton">
924
                        <div class="userbutton">
904
-                          <el-button @click="ToReminders">使用登记提醒配置</el-button>
925
+                          <el-button @click="ToReminders">自动生成使用登记</el-button>
905
                        </div>
926
                        </div>
906
                      <div v-show="UserShow">
927
                      <div v-show="UserShow">
907
                         <el-tabs v-model="activeNameThree" @tab-click="handleClick">
928
                         <el-tabs v-model="activeNameThree" @tab-click="handleClick">
910
                              <el-form :model="userform" ref="userform" :rules="userRules">
931
                              <el-form :model="userform" ref="userform" :rules="userRules">
911
                                 <el-row>
932
                                 <el-row>
912
                                   <el-col :span="8">
933
                                   <el-col :span="8">
913
-                                     <el-form-item label="日期:" required prop="date">
934
+                                     <el-form-item label="日期:" required prop="date" class="st">
914
                                          <el-date-picker
935
                                          <el-date-picker
915
                                            v-model="userform.date"
936
                                            v-model="userform.date"
916
                                            prefix-icon="none"
937
                                            prefix-icon="none"
923
                                      </el-form-item>
944
                                      </el-form-item>
924
                                   </el-col>
945
                                   </el-col>
925
                                   <el-col :span="8">
946
                                   <el-col :span="8">
926
-                                     <el-form-item label="班次:" required prop="classtype">
947
+                                     <el-form-item label="班次:" required prop="classtype" class="st">
927
                                        <el-select v-model="userform.classtype" placeholder="请选择" class="a" @change="ChangeClass">
948
                                        <el-select v-model="userform.classtype" placeholder="请选择" class="a" @change="ChangeClass">
928
                                            <el-option
949
                                            <el-option
929
                                             v-for="item in classType"
950
                                             v-for="item in classType"
1251
                                          <el-radio-group v-model="userform.dialysis_concentration">
1272
                                          <el-radio-group v-model="userform.dialysis_concentration">
1252
                                                 <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in potency" :key="index">{{gender.name}}</el-radio>
1273
                                                 <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in potency" :key="index">{{gender.name}}</el-radio>
1253
                                          </el-radio-group>
1274
                                          </el-radio-group>
1254
-                                      
1275
+
1255
                                       </el-form-item>
1276
                                       </el-form-item>
1256
                                    </el-col>
1277
                                    </el-col>
1257
                                 </el-row>
1278
                                 </el-row>
1315
                                   </div>
1336
                                   </div>
1316
                                 </el-row>
1337
                                 </el-row>
1317
                              </el-form>
1338
                              </el-form>
1318
-                             
1339
+
1319
                           </el-tab-pane>
1340
                           </el-tab-pane>
1320
                            <el-tab-pane label="使用登记列表" name="second">
1341
                            <el-tab-pane label="使用登记列表" name="second">
1321
                              <user-form ref="userForm" :userdata="userdata"></user-form>
1342
                              <user-form ref="userForm" :userdata="userdata"></user-form>
1818
                                       action="https://upload.qiniup.com"
1839
                                       action="https://upload.qiniup.com"
1819
                                       :on-success="handleSuccess"
1840
                                       :on-success="handleSuccess"
1820
                                       :before-upload="beforeUploadFile"
1841
                                       :before-upload="beforeUploadFile"
1821
-                                       :limit="1">
1842
+                                      :limit="1"
1843
+                                      ref='upload'
1844
+                                      >
1822
                                         <el-button size="small" type="primary">上传图片</el-button>
1845
                                         <el-button size="small" type="primary">上传图片</el-button>
1823
                                       </el-upload>
1846
                                       </el-upload>
1824
                                      <a class="el-upload-list__item-name">
1847
                                      <a class="el-upload-list__item-name">
1825
-                                        <i><a href="guaForm.images">{{filename}}</a></i>
1848
+                                        <i><a @click="toLink()">{{filename}}</a></i>
1826
                                      </a>
1849
                                      </a>
1827
                                   </el-form-item>
1850
                                   </el-form-item>
1828
                                </el-col>
1851
                                </el-col>
1909
                 <el-option
1932
                 <el-option
1910
                   v-for="item in this.DeviceType"
1933
                   v-for="item in this.DeviceType"
1911
                   :key="item.id"
1934
                   :key="item.id"
1912
-                  :label="item.equitment_name"
1935
+                  :label="item.device_mode"
1913
                   :value="item.id"
1936
                   :value="item.id"
1914
                 ></el-option>
1937
                 ></el-option>
1915
               </el-select>
1938
               </el-select>
2028
   import { getAllSubregion, getAllMachine, getMachineDetailById,
2051
   import { getAllSubregion, getAllMachine, getMachineDetailById,
2029
     UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
2052
     UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
2030
     getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
2053
     getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
2031
-    ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin, getAutoData, getAllEquitType, UpdateMacheineTwo, getTotalNumber, getTimeWarning, getAllpatient, UpdateMachineInfoTwo, getPatientDetail, openDelete } from '@/api/manage'
2054
+    ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin, getAutoData, getAllEquitType, UpdateMacheineTwo, getTotalNumber, getTimeWarning, getAllpatient, UpdateMachineInfoTwo, getPatientDetail, openDelete, getAllMode } from '@/api/manage'
2032
   import { uParseTime } from '@/utils/tools'
2055
   import { uParseTime } from '@/utils/tools'
2033
   import { getToken } from '@/api/qiniu'
2056
   import { getToken } from '@/api/qiniu'
2034
   import PlanForm from './components/PlanForm'
2057
   import PlanForm from './components/PlanForm'
2155
         bedZone: [],
2178
         bedZone: [],
2156
         bedZoneTwo: [],
2179
         bedZoneTwo: [],
2157
         forms: {
2180
         forms: {
2158
-          zone_id: '', // 分区号
2181
+          zone_id: 0, // 分区号
2159
           class_id: '', // 班次
2182
           class_id: '', // 班次
2160
-          device_type: '', // 设备类型
2183
+          device_type: 0, // 设备类型
2161
           date: ''
2184
           date: ''
2162
         },
2185
         },
2163
         currentRow: null,
2186
         currentRow: null,
2469
           images: '',
2492
           images: '',
2470
           exclude: '',
2493
           exclude: '',
2471
           reason: '',
2494
           reason: '',
2472
-          code_information: ''
2495
+          code_information: '',
2496
+          imageName: ''
2473
         },
2497
         },
2498
+
2474
         filename: '',
2499
         filename: '',
2475
         qiniuDomain: 'https://images.shengws.com/',
2500
         qiniuDomain: 'https://images.shengws.com/',
2476
         uploadFileData: { token: '', key: '' },
2501
         uploadFileData: { token: '', key: '' },
2502
           { id: 1, name: '单级反渗' },
2527
           { id: 1, name: '单级反渗' },
2503
           { id: 2, name: '双级反渗' }
2528
           { id: 2, name: '双级反渗' }
2504
         ],
2529
         ],
2505
-        tabIndex: ''
2530
+        tabIndex: '',
2531
+        deviceMode: [],
2532
+        zoneDisabled: false,
2533
+        bedid: '',
2534
+        unitType: ''
2506
       }
2535
       }
2507
     },
2536
     },
2508
     methods: {
2537
     methods: {
2578
           this.bedZoneTwo = zones
2607
           this.bedZoneTwo = zones
2579
           this.bedZoneThree = zoness
2608
           this.bedZoneThree = zoness
2580
           this.bedNumber = numbers
2609
           this.bedNumber = numbers
2581
-  
2610
+
2582
           // this.Number = devicenumber
2611
           // this.Number = devicenumber
2583
         })
2612
         })
2584
       },
2613
       },
2592
         this.getAllMachine()
2621
         this.getAllMachine()
2593
       },
2622
       },
2594
       changeDeviceId(val) {
2623
       changeDeviceId(val) {
2624
+        if (val === 1) {
2625
+          this.zoneDisabled = false
2626
+        } else {
2627
+          this.zoneDisabled = true
2628
+        }
2595
         this.forms.device_type = val
2629
         this.forms.device_type = val
2596
         this.getAllMachine()
2630
         this.getAllMachine()
2597
       },
2631
       },
2598
       getAllMachine() {
2632
       getAllMachine() {
2599
-        getAllMachine(this.forms.zone_id, this.forms.class_id, this.forms.device_type).then(response => {
2633
+        getAllMachine(this.forms.zone_id, this.forms.device_type).then(response => {
2600
           if (response.data.state === 1) {
2634
           if (response.data.state === 1) {
2601
             var addmahcer = response.data.data.addmahcer
2635
             var addmahcer = response.data.data.addmahcer
2636
+            console.log('addmacher是', addmahcer)
2602
             this.tableDatatwo = addmahcer
2637
             this.tableDatatwo = addmahcer
2603
             this.tabIndex = this.$route.query.index
2638
             this.tabIndex = this.$route.query.index
2604
             this.$refs.singleTable.setCurrentRow(this.tableDatatwo[this.tabIndex])
2639
             this.$refs.singleTable.setCurrentRow(this.tableDatatwo[this.tabIndex])
2609
         this.tabIndex = index
2644
         this.tabIndex = index
2610
       },
2645
       },
2611
       handleCurrentChange(val) {
2646
       handleCurrentChange(val) {
2647
+        this.unitType = val.unit_type
2612
         // console.log('val是什么', val)
2648
         // console.log('val是什么', val)
2613
         this.currentRow = val
2649
         this.currentRow = val
2614
         this.$forceUpdate()
2650
         this.$forceUpdate()
2615
         this.getMachineDetailById(val.id)
2651
         this.getMachineDetailById(val.id)
2616
         this.equimentid = val.id
2652
         this.equimentid = val.id
2617
         this.userdata = val.id
2653
         this.userdata = val.id
2618
-        this.getAllPlanDetail(val.unit_type)
2654
+        this.getAllPlanDetail(val.unit_type, val.bed_id)
2619
         this.getPatientInfo(val.id)
2655
         this.getPatientInfo(val.id)
2620
         // 获取基本信息
2656
         // 获取基本信息
2621
         this.getUserRegister(val.id)
2657
         this.getUserRegister(val.id)
2635
         getMachineDetailById(id).then(response => {
2671
         getMachineDetailById(id).then(response => {
2636
           if (response.data.state === 1) {
2672
           if (response.data.state === 1) {
2637
             var addmacher = response.data.data.addmacher
2673
             var addmacher = response.data.data.addmacher
2638
-            console.log('addmacher', addmacher)
2674
+            console.log('设备详情', addmacher)
2639
             var warning = response.data.data.warning
2675
             var warning = response.data.data.warning
2640
-            console.log('warning', warning)
2676
+            // console.log('warning', warning)
2641
             var time = this.getTimestamp(this.userform.date) - warning.stime
2677
             var time = this.getTimestamp(this.userform.date) - warning.stime
2642
-            console.log('时间', time)
2678
+            // console.log('时间', time)
2643
             if (time < 2678400 && warning.dialysis_checked === 1) {
2679
             if (time < 2678400 && warning.dialysis_checked === 1) {
2644
               this.warnShow = false
2680
               this.warnShow = false
2645
             } else {
2681
             } else {
2646
               this.warnShow = true
2682
               this.warnShow = true
2647
             }
2683
             }
2648
             var germ = response.data.data.germ
2684
             var germ = response.data.data.germ
2649
-            console.log('germ', germ)
2685
+            // console.log('germ', germ)
2650
             var timetwo = this.getTimestamp(this.userform.date) - germ.stime
2686
             var timetwo = this.getTimestamp(this.userform.date) - germ.stime
2651
-            console.log('时间', timetwo)
2687
+            // console.log('时间', timetwo)
2652
             if (timetwo < 2678400 && germ.germ_checked === 1) {
2688
             if (timetwo < 2678400 && germ.germ_checked === 1) {
2653
               this.warnShowTwo = false
2689
               this.warnShowTwo = false
2654
             } else {
2690
             } else {
2656
             }
2692
             }
2657
             var clean = response.data.data.clean
2693
             var clean = response.data.data.clean
2658
             var timethree = this.getTimestamp(this.userform.date) - clean.stime
2694
             var timethree = this.getTimestamp(this.userform.date) - clean.stime
2659
-            console.log('时间', timethree)
2695
+            // console.log('时间', timethree)
2660
             if (timethree < 2678400 && clean.clean === 1) {
2696
             if (timethree < 2678400 && clean.clean === 1) {
2661
               this.warnShowThree = false
2697
               this.warnShowThree = false
2662
             } else {
2698
             } else {
2771
             this.form.device_name = addmacher.device_name
2807
             this.form.device_name = addmacher.device_name
2772
             this.form.manufacture_factory = addmacher.manufacture_factory
2808
             this.form.manufacture_factory = addmacher.manufacture_factory
2773
             this.form.service_manufacturer = addmacher.service_manufacturer
2809
             this.form.service_manufacturer = addmacher.service_manufacturer
2774
-            this.form.unit_type = addmacher.unit_type
2810
+
2811
+            // this.form.unit_type = addmacher.unit_type
2812
+  
2813
+            this.form.unit_type = parseInt(addmacher.device_mode)
2775
             this.form.use_section = addmacher.use_section
2814
             this.form.use_section = addmacher.use_section
2776
             this.form.section_number = addmacher.section_number
2815
             this.form.section_number = addmacher.section_number
2777
             if (addmacher.buy_date !== 0) {
2816
             if (addmacher.buy_date !== 0) {
2798
             this.form.rubbish_reason = addmacher.rubbish_reason
2837
             this.form.rubbish_reason = addmacher.rubbish_reason
2799
             this.form.user_year = addmacher.user_year
2838
             this.form.user_year = addmacher.user_year
2800
             this.form.work_time = addmacher.work_time
2839
             this.form.work_time = addmacher.work_time
2801
-  
2840
+
2802
             // eslint-disable-next-line eqeqeq
2841
             // eslint-disable-next-line eqeqeq
2803
             if (addmacher.disinfection_mode == 0) {
2842
             if (addmacher.disinfection_mode == 0) {
2804
               this.form.Disinfection_mode = 0
2843
               this.form.Disinfection_mode = 0
2898
         this.form.bed_number = bed_numberss
2937
         this.form.bed_number = bed_numberss
2899
         this.$refs[formName].validate(valid => {
2938
         this.$refs[formName].validate(valid => {
2900
           UpdateMachineInfo(this.form).then(response => {
2939
           UpdateMachineInfo(this.form).then(response => {
2901
-            console.log('form', this.form)
2940
+            // console.log('form', this.form)
2902
             if (response.data.state === 1) {
2941
             if (response.data.state === 1) {
2903
               var addmacher = response.data.data.addmacher
2942
               var addmacher = response.data.data.addmacher
2904
               this.$message.success('修改成功')
2943
               this.$message.success('修改成功')
2929
         var machine_status = this.form.machine_status
2968
         var machine_status = this.form.machine_status
2930
         var machine_statuss = parseInt(machine_status)
2969
         var machine_statuss = parseInt(machine_status)
2931
         this.form.machine_status = machine_statuss
2970
         this.form.machine_status = machine_statuss
2932
-  
2971
+
2933
         var revers_mode = this.form.revers_mode
2972
         var revers_mode = this.form.revers_mode
2934
         var revers_modes = parseInt(revers_mode)
2973
         var revers_modes = parseInt(revers_mode)
2935
         this.form.revers_mode = revers_modes
2974
         this.form.revers_mode = revers_modes
2937
         var disinfecction_modes = this.form.Disinfection_mode
2976
         var disinfecction_modes = this.form.Disinfection_mode
2938
         var disinfecction_modess = parseInt(disinfecction_modes)
2977
         var disinfecction_modess = parseInt(disinfecction_modes)
2939
         this.form.Disinfection_mode = disinfecction_modess
2978
         this.form.Disinfection_mode = disinfecction_modess
2940
-  
2979
+
2941
         this.$refs[formName].validate(valid => {
2980
         this.$refs[formName].validate(valid => {
2942
           if (valid) {
2981
           if (valid) {
2943
             UpdateMachineInfoTwo(this.form).then(response => {
2982
             UpdateMachineInfoTwo(this.form).then(response => {
2968
         var machine_status = this.form.machine_status
3007
         var machine_status = this.form.machine_status
2969
         var machine_statuss = parseInt(machine_status)
3008
         var machine_statuss = parseInt(machine_status)
2970
         this.form.machine_status = machine_statuss
3009
         this.form.machine_status = machine_statuss
2971
-  
3010
+
2972
         this.$refs[formName].validate(valid => {
3011
         this.$refs[formName].validate(valid => {
2973
           UpdateMacheineTwo(this.form).then(response => {
3012
           UpdateMacheineTwo(this.form).then(response => {
2974
             if (response.data.state === 1) {
3013
             if (response.data.state === 1) {
3031
           this.form.rubbish_reason = ''
3070
           this.form.rubbish_reason = ''
3032
         }
3071
         }
3033
       },
3072
       },
3034
-      getAllPlan() {
3035
-        getAllPlan().then(response => {
3073
+      getAllPlan(bedid) {
3074
+        getAllPlan(bedid).then(response => {
3036
           if (response.data.state === 1) {
3075
           if (response.data.state === 1) {
3037
             var plan = response.data.data.plan
3076
             var plan = response.data.data.plan
3038
-  
3077
+
3039
             for (let index = 0; index < plan.length; index++) {
3078
             for (let index = 0; index < plan.length; index++) {
3040
               if (plan[index].time === 1) {
3079
               if (plan[index].time === 1) {
3041
                 plan[index].time = '周一'
3080
                 plan[index].time = '周一'
3165
           }
3204
           }
3166
         })
3205
         })
3167
       },
3206
       },
3168
-      getAllPlanDetail(unit_type) {
3169
-        getAllPlanDetail(unit_type).then(response => {
3207
+      getAllPlanDetail(unit_type, bedid) {
3208
+        getAllPlanDetail(unit_type, bedid).then(response => {
3170
           if (response.data.state === 1) {
3209
           if (response.data.state === 1) {
3171
             var plandetail = response.data.data.plandetail
3210
             var plandetail = response.data.data.plandetail
3172
-            // console.log('plandetail=====================', plandetail)
3211
+            console.log('plandetail', plandetail)
3173
             for (let index = 0; index < plandetail.length; index++) {
3212
             for (let index = 0; index < plandetail.length; index++) {
3174
               if (plandetail[index].time === 1) {
3213
               if (plandetail[index].time === 1) {
3175
                 plandetail[index].time = '周一'
3214
                 plandetail[index].time = '周一'
3313
             this.machineform.machine_disinfectant = plan.machine_disinfectant
3352
             this.machineform.machine_disinfectant = plan.machine_disinfectant
3314
             this.machineform.disinfectant_way = plan.disinfectan_way
3353
             this.machineform.disinfectant_way = plan.disinfectan_way
3315
             this.machineform.disinfectant = plan.disinfectant
3354
             this.machineform.disinfectant = plan.disinfectant
3355
+            this.getPatientDetail(this.unitType, this.$route.query.bedid)
3316
           }
3356
           }
3317
         })
3357
         })
3318
       },
3358
       },
3349
         var disinfectant = parseInt(disinfectants)
3389
         var disinfectant = parseInt(disinfectants)
3350
         this.machineform.disinfectant = disinfectant
3390
         this.machineform.disinfectant = disinfectant
3351
         UpdatePlanInfo(this.machineform).then(response => {
3391
         UpdatePlanInfo(this.machineform).then(response => {
3352
-          if (response.data.state == 1) {
3392
+          if (response.data.state === 1) {
3353
             var plan = response.data.data.plan
3393
             var plan = response.data.data.plan
3354
             this.dialogVisible = false
3394
             this.dialogVisible = false
3355
             this.$message.success('修改成功')
3395
             this.$message.success('修改成功')
3356
-            this.getAllPlanDetail(this.equimentid)
3357
-            this.getAllPlan()
3396
+            this.getAllPlanDetail(this.unitType, this.$route.query.bedid)
3397
+            this.getAllPlan(this.$route.query.bedid)
3358
           }
3398
           }
3359
         })
3399
         })
3360
       },
3400
       },
3509
         ChangeClass(this.equimentid, id).then(response => {
3549
         ChangeClass(this.equimentid, id).then(response => {
3510
           if (response.data.state === 1) {
3550
           if (response.data.state === 1) {
3511
             var patients = response.data.data.patients
3551
             var patients = response.data.data.patients
3512
-  
3552
+
3513
             if (patients.is_infectious === 0) {
3553
             if (patients.is_infectious === 0) {
3514
               this.userform.contagion = ''
3554
               this.userform.contagion = ''
3515
             }
3555
             }
3656
         var hyperfiltratio = this.userform.hyperfiltratio
3696
         var hyperfiltratio = this.userform.hyperfiltratio
3657
         var hyperfiltratios = parseInt(hyperfiltratio)
3697
         var hyperfiltratios = parseInt(hyperfiltratio)
3658
         this.userform.hyperfiltratio = hyperfiltratios
3698
         this.userform.hyperfiltratio = hyperfiltratios
3659
-  
3699
+
3660
         if (this.userform.weight_loss === '') {
3700
         if (this.userform.weight_loss === '') {
3661
           this.userform.weight_loss = 0
3701
           this.userform.weight_loss = 0
3662
         }
3702
         }
3663
         var weightloss = this.userform.weight_loss
3703
         var weightloss = this.userform.weight_loss
3664
         var weidht = parseInt(weightloss)
3704
         var weidht = parseInt(weightloss)
3665
         this.userform.weight_loss = weidht
3705
         this.userform.weight_loss = weidht
3666
-  
3706
+
3667
         if (this.userform.user_total === '0') {
3707
         if (this.userform.user_total === '0') {
3668
           this.userform.user_total = 0
3708
           this.userform.user_total = 0
3669
         }
3709
         }
3687
           }
3727
           }
3688
         })
3728
         })
3689
       },
3729
       },
3730
+      toLink() {
3731
+        window.location.href = this.guaForm.images
3732
+      },
3690
       // changStartTime(val) {
3733
       // changStartTime(val) {
3691
       //   this.userform.starttime = val
3734
       //   this.userform.starttime = val
3692
       // },
3735
       // },
3727
             // console.log('role', role)
3770
             // console.log('role', role)
3728
             // eslint-disable-next-line eqeqeq
3771
             // eslint-disable-next-line eqeqeq
3729
             var dislysis = response.data.data.dislysis
3772
             var dislysis = response.data.data.dislysis
3730
-  
3773
+
3731
             this.userform.id = information.id
3774
             this.userform.id = information.id
3732
-            if (information.date == 0) {
3775
+            if (information.date === 0) {
3733
               this.userform.date = moment(new Date()).format('YYYY-MM-DD')
3776
               this.userform.date = moment(new Date()).format('YYYY-MM-DD')
3734
             } else {
3777
             } else {
3735
               this.userform.date = uParseTime(information.date, '{y}-{m}-{d}')
3778
               this.userform.date = uParseTime(information.date, '{y}-{m}-{d}')
3790
             this.userform.dialysis_name = information.dialysis_name
3833
             this.userform.dialysis_name = information.dialysis_name
3791
             this.userform.norms = information.norms
3834
             this.userform.norms = information.norms
3792
             this.userform.dialysis_concentration = information.dialysis_concentration
3835
             this.userform.dialysis_concentration = information.dialysis_concentration
3793
-  
3836
+
3794
             if (information.germ_checked === 0) {
3837
             if (information.germ_checked === 0) {
3795
               this.userform.germ_checked = false
3838
               this.userform.germ_checked = false
3796
             }
3839
             }
3802
             if (information.germ_checked === 1) {
3845
             if (information.germ_checked === 1) {
3803
               this.userform.germ_checked = true
3846
               this.userform.germ_checked = true
3804
             }
3847
             }
3805
-  
3848
+
3806
             this.userform.germ_name = information.germ_name
3849
             this.userform.germ_name = information.germ_name
3807
             this.userform.germ_number = information.germ_number
3850
             this.userform.germ_number = information.germ_number
3808
             if (information.clean === 1) {
3851
             if (information.clean === 1) {
3994
       },
4037
       },
3995
       beforeUploadFile(file) {
4038
       beforeUploadFile(file) {
3996
         this.filename = file.name
4039
         this.filename = file.name
4040
+        this.guaForm.imageName = file.name
3997
         const isLt2M = file.size / 1024 / 1024 <= 2048
4041
         const isLt2M = file.size / 1024 / 1024 <= 2048
3998
         var date = new Date()
4042
         var date = new Date()
3999
         var ext = getFileExtension(file.name)
4043
         var ext = getFileExtension(file.name)
4014
       },
4058
       },
4015
       handleSuccess(res, file, fileList) {
4059
       handleSuccess(res, file, fileList) {
4016
         this.guaForm.images = this.qiniuDomain + res.url
4060
         this.guaForm.images = this.qiniuDomain + res.url
4061
+        console.log('图片路径', this.guaForm.images)
4062
+        this.$refs.upload.clearFiles()
4017
         this.filename = file.name
4063
         this.filename = file.name
4064
+        this.guaForm.imageName = file.name
4018
       },
4065
       },
4019
       // eslint-disable-next-line no-dupe-keys
4066
       // eslint-disable-next-line no-dupe-keys
4020
       getTime(value, temp) {
4067
       getTime(value, temp) {
4126
       getAllEquitType() {
4173
       getAllEquitType() {
4127
         getAllEquitType().then(response => {
4174
         getAllEquitType().then(response => {
4128
           if (response.data.state === 1) {
4175
           if (response.data.state === 1) {
4129
-            var equitname = response.data.data.equitname
4176
+            var equitname = response.data.data.mode
4130
             this.DeviceType = equitname
4177
             this.DeviceType = equitname
4131
           }
4178
           }
4132
         })
4179
         })
4148
         getAllpatient().then(response => {
4195
         getAllpatient().then(response => {
4149
           if (response.data.state === 1) {
4196
           if (response.data.state === 1) {
4150
             var allpatient = response.data.data.allpatient
4197
             var allpatient = response.data.data.allpatient
4151
-  
4198
+
4152
             this.patientName = allpatient
4199
             this.patientName = allpatient
4153
           }
4200
           }
4154
         })
4201
         })
4157
         getTimeWarning(id).then(response => {
4204
         getTimeWarning(id).then(response => {
4158
           if (response.data.state === 1) {
4205
           if (response.data.state === 1) {
4159
             var information = response.data.data.informations
4206
             var information = response.data.data.informations
4160
-            console.log('码字', information)
4161
-            console.log('当前时间', this.getTimestamp(this.userform.date))
4162
-            console.log('存入时间', information.stime)
4207
+            // console.log('码字', information)
4208
+            // console.log('当前时间', this.getTimestamp(this.userform.date))
4209
+            // console.log('存入时间', information.stime)
4163
             var time = this.getTimestamp(this.userform.date) - information.stime
4210
             var time = this.getTimestamp(this.userform.date) - information.stime
4164
             console.log('时间', time)
4211
             console.log('时间', time)
4165
             // if (time < 2678400) {
4212
             // if (time < 2678400) {
4171
             // if (timetwo < 2678400) {
4218
             // if (timetwo < 2678400) {
4172
             //  this.warnShowTwo = false
4219
             //  this.warnShowTwo = false
4173
             // }
4220
             // }
4174
-  
4221
+
4175
             var clean = response.data.data.clean
4222
             var clean = response.data.data.clean
4176
             // var timethree = this.getTimestamp(this.userform.date) - clean.stime
4223
             // var timethree = this.getTimestamp(this.userform.date) - clean.stime
4177
             // if (timethree < 2678400) {
4224
             // if (timethree < 2678400) {
4188
       // 通过自组建传值改变表格数据
4235
       // 通过自组建传值改变表格数据
4189
       getPlanData(data) {
4236
       getPlanData(data) {
4190
         if (data === 1) {
4237
         if (data === 1) {
4191
-          this.getAllPlanDetail(this.equimentid)
4238
+          this.getAllPlanDetail(this.unitType, this.$route.query.bedid)
4192
         }
4239
         }
4240
+      },
4241
+      getAllMode() {
4242
+        getAllMode().then(response => {
4243
+          var mode = response.data.data.mode
4244
+          this.deviceMode = mode
4245
+        })
4193
       }
4246
       }
4194
     },
4247
     },
4195
     created() {
4248
     created() {
4196
       this.getAllSubregion()
4249
       this.getAllSubregion()
4197
       this.getAllMachine()
4250
       this.getAllMachine()
4198
       var index = this.$route.query.index
4251
       var index = this.$route.query.index
4252
+      var bedid = this.$route.query.bedid
4199
       // var id = this.$route.query.id
4253
       // var id = this.$route.query.id
4200
       // this.equimentid = id
4254
       // this.equimentid = id
4201
-      this.getAllPlan()
4255
+      this.bedid = bedid
4256
+      this.getAllPlan(bedid)
4202
       this.getAllEquimentName()
4257
       this.getAllEquimentName()
4203
       this.getAllOrganization()
4258
       this.getAllOrganization()
4204
       this.getOrgName()
4259
       this.getOrgName()
4205
       this.getAllEquitType()
4260
       this.getAllEquitType()
4206
       this.getAllpatient()
4261
       this.getAllpatient()
4207
-    }
4262
+      this.getAllMode()
4263
+  }
4208
   }
4264
   }
4209
 </script>
4265
 </script>
4210
 <style lang="scss" scoped>
4266
 <style lang="scss" scoped>
4240
       width: 460px;
4296
       width: 460px;
4241
       height: 50px;
4297
       height: 50px;
4242
       // border:solid 1px red;
4298
       // border:solid 1px red;
4243
-      margin-left:780px;
4299
+      margin-left:650px;
4244
     }
4300
     }
4245
 
4301
 
4246
   .zClass{
4302
   .zClass{
4256
   }
4312
   }
4257
 
4313
 
4258
   .userbutton{
4314
   .userbutton{
4259
-    margin-left:985px;
4315
+   margin-left:700px;
4260
   }
4316
   }
4261
 
4317
 
4262
 </style>
4318
 </style>
4270
 
4326
 
4271
    .b{
4327
    .b{
4272
     .el-button{
4328
     .el-button{
4273
-      margin-left: 850px;
4329
+      margin-left: 820px;
4274
       margin-bottom: 10px;
4330
       margin-bottom: 10px;
4275
     }
4331
     }
4276
    }
4332
    }
4280
        width:190px;
4336
        width:190px;
4281
      }
4337
      }
4282
    }
4338
    }
4339
+   .st{
4340
+     .el-form-item__label{
4341
+       width:-10px;
4342
+     }
4343
+   }
4283
    .main{
4344
    .main{
4284
      position: relative;
4345
      position: relative;
4285
      .newButtonOne{
4346
      .newButtonOne{
4293
       // border: solid 1px red;
4354
       // border: solid 1px red;
4294
       height: 50px;
4355
       height: 50px;
4295
       width: 400px;
4356
       width: 400px;
4296
-      margin-left: 750px;
4357
+      margin-left: 650px;
4297
     }
4358
     }
4298
   // .el-form-item__label {
4359
   // .el-form-item__label {
4299
   //   width: 130px;
4360
   //   width: 130px;

+ 64 - 62
src/xt_pages/management/index.vue View File

101
           <template slot-scope="scope">{{ scope.row.device_name }}</template>
101
           <template slot-scope="scope">{{ scope.row.device_name }}</template>
102
         </el-table-column>
102
         </el-table-column>
103
         <el-table-column label="设备型号" align="center">
103
         <el-table-column label="设备型号" align="center">
104
-          <template slot-scope="scope">{{ scope.row.unit_type }}</template>
104
+          <template slot-scope="scope">{{ scope.row.device_mode }}</template>
105
         </el-table-column>
105
         </el-table-column>
106
 
106
 
107
         <el-table-column label="分区" align="center">
107
         <el-table-column label="分区" align="center">
123
         <el-table-column label="操作" align="center">
123
         <el-table-column label="操作" align="center">
124
           <template slot-scope="scope">
124
           <template slot-scope="scope">
125
             <el-button
125
             <el-button
126
-              @click="handleClick(scope.row.id, scope.$index)"
126
+              @click="handleClick(scope.row.id, scope.$index, scope.row.bed_id)"
127
               type="text"
127
               type="text"
128
               size="small"
128
               size="small"
129
               >查看
129
               >查看
152
 </template>
152
 </template>
153
 
153
 
154
 <script>
154
 <script>
155
-import BreadCrumb from "../components/bread-crumb";
156
-import { getAllMachineInfo, getAllSubregion } from "@/api/manage";
157
-import ManageForm from "./components/ManageForm";
155
+import BreadCrumb from '../components/bread-crumb'
156
+import { getAllMachineInfo, getAllSubregion } from '@/api/manage'
157
+import ManageForm from './components/ManageForm'
158
 
158
 
159
 export default {
159
 export default {
160
-  name: "index.vue",
160
+  name: 'index.vue',
161
   components: {
161
   components: {
162
     BreadCrumb,
162
     BreadCrumb,
163
     ManageForm
163
     ManageForm
165
   data() {
165
   data() {
166
     return {
166
     return {
167
       crumbs: [
167
       crumbs: [
168
-        { path: false, name: "设备管理" },
169
-        { path: false, name: "设备管理" }
168
+        { path: false, name: '设备管理' },
169
+        { path: false, name: '设备管理' }
170
       ],
170
       ],
171
-      searchKey: "",
172
-      zones: [{ id: 0, name: "全部" }],
171
+      searchKey: '',
172
+      zones: [{ id: 0, name: '全部' }],
173
       schedulType: 0,
173
       schedulType: 0,
174
       schedulTypeone: 0,
174
       schedulTypeone: 0,
175
       schedulTypetwo: 0,
175
       schedulTypetwo: 0,
176
       DeviceType: [
176
       DeviceType: [
177
-        { id: 0, name: "全部" },
178
-        { id: 1, name: "透析机" },
179
-        { id: 2, name: "水处理机" },
180
-        { id: 3, name: "其他" }
177
+        { id: 0, name: '全部' },
178
+        { id: 1, name: '透析机' },
179
+        { id: 2, name: '水处理机' },
180
+        { id: 3, name: '其他' }
181
       ],
181
       ],
182
 
182
 
183
       AllStatus: [
183
       AllStatus: [
184
-        { id: 0, name: "全部" },
185
-        { id: 1, name: "使用机" },
186
-        { id: 2, name: "备用机" },
187
-        { id: 3, name: "急诊机" },
188
-        { id: 4, name: "报废机" }
184
+        { id: 0, name: '全部' },
185
+        { id: 1, name: '使用机' },
186
+        { id: 2, name: '备用机' },
187
+        { id: 3, name: '急诊机' },
188
+        { id: 4, name: '报废机' }
189
       ],
189
       ],
190
       tableData: [],
190
       tableData: [],
191
       listQuery: {
191
       listQuery: {
192
         page: 1,
192
         page: 1,
193
         limit: 10,
193
         limit: 10,
194
-        searchKey: "",
195
-        zoneid: "",
196
-        equipmentid: "",
197
-        statusid: ""
194
+        searchKey: '',
195
+        zoneid: '',
196
+        equipmentid: '',
197
+        statusid: ''
198
       },
198
       },
199
       total: 0
199
       total: 0
200
-    };
200
+    }
201
   },
201
   },
202
   methods: {
202
   methods: {
203
     getAllSubregion() {
203
     getAllSubregion() {
204
       getAllSubregion().then(response => {
204
       getAllSubregion().then(response => {
205
         if (response.data.state === 1) {
205
         if (response.data.state === 1) {
206
-          var zone = response.data.data.zones;
207
-          var zones = [{ id: 0, name: "全部" }];
206
+          var zone = response.data.data.zones
207
+          var zones = [{ id: 0, name: '全部' }]
208
           for (let i = 0; i < zone.length; i++) {
208
           for (let i = 0; i < zone.length; i++) {
209
-            const item = zone[i];
210
-            zones.push({ id: item.id, name: item.name });
209
+            const item = zone[i]
210
+            zones.push({ id: item.id, name: item.name })
211
           }
211
           }
212
           // console.log('zones', zones)
212
           // console.log('zones', zones)
213
-          this.zones = zones;
213
+          this.zones = zones
214
         }
214
         }
215
-      });
215
+      })
216
     },
216
     },
217
     selectSchedulType(scheduleType) {
217
     selectSchedulType(scheduleType) {
218
-      this.schedulType = scheduleType;
219
-      this.listQuery.zoneid = scheduleType;
220
-      this.getAllMachineInfo();
218
+      this.schedulType = scheduleType
219
+      this.listQuery.zoneid = scheduleType
220
+      this.getAllMachineInfo()
221
     },
221
     },
222
     selectSchedulTypeOne(scheduleType) {
222
     selectSchedulTypeOne(scheduleType) {
223
-      this.schedulTypeone = scheduleType;
224
-      this.listQuery.equipmentid = scheduleType;
225
-      this.getAllMachineInfo();
223
+      this.schedulTypeone = scheduleType
224
+      this.listQuery.equipmentid = scheduleType
225
+      this.getAllMachineInfo()
226
     },
226
     },
227
     selectSchedulTypeTwo(scheduleType) {
227
     selectSchedulTypeTwo(scheduleType) {
228
-      this.schedulTypetwo = scheduleType;
229
-      this.listQuery.statusid = scheduleType;
230
-      this.getAllMachineInfo();
228
+      this.schedulTypetwo = scheduleType
229
+      this.listQuery.statusid = scheduleType
230
+      this.getAllMachineInfo()
231
     },
231
     },
232
     seahcerMacherInfo() {
232
     seahcerMacherInfo() {
233
-      this.getAllMachineInfo();
233
+      this.getAllMachineInfo()
234
     },
234
     },
235
     AddManage() {
235
     AddManage() {
236
-      this.$refs.manageForm.open();
236
+      this.$refs.manageForm.open()
237
     },
237
     },
238
     getAllMachineInfo() {
238
     getAllMachineInfo() {
239
       getAllMachineInfo(
239
       getAllMachineInfo(
245
         this.listQuery.statusid
245
         this.listQuery.statusid
246
       ).then(response => {
246
       ).then(response => {
247
         if (response.data.state === 1) {
247
         if (response.data.state === 1) {
248
-          var addmahcer = response.data.data.addmahcer;
248
+          var addmahcer = response.data.data.addmahcer
249
           for (let index = 0; index < addmahcer.length; index++) {
249
           for (let index = 0; index < addmahcer.length; index++) {
250
             if (addmahcer[index].device_type === 1) {
250
             if (addmahcer[index].device_type === 1) {
251
-              addmahcer[index].device_type = "透析机";
251
+              addmahcer[index].device_type = '透析机'
252
             }
252
             }
253
             if (addmahcer[index].device_type === 2) {
253
             if (addmahcer[index].device_type === 2) {
254
-              addmahcer[index].device_type = "水处理机";
254
+              addmahcer[index].device_type = '水处理机'
255
             }
255
             }
256
 
256
 
257
             if (addmahcer[index].device_type === 3) {
257
             if (addmahcer[index].device_type === 3) {
258
-              addmahcer[index].device_type = "其他";
258
+              addmahcer[index].device_type = '其他'
259
             }
259
             }
260
 
260
 
261
             if (addmahcer[index].machine_status === 1) {
261
             if (addmahcer[index].machine_status === 1) {
262
-              addmahcer[index].machine_status = "使用机";
262
+              addmahcer[index].machine_status = '使用机'
263
             }
263
             }
264
             if (addmahcer[index].machine_status === 2) {
264
             if (addmahcer[index].machine_status === 2) {
265
-              addmahcer[index].machine_status = "备用机";
265
+              addmahcer[index].machine_status = '备用机'
266
             }
266
             }
267
             if (addmahcer[index].machine_status === 3) {
267
             if (addmahcer[index].machine_status === 3) {
268
-              addmahcer[index].machine_status = "急诊机";
268
+              addmahcer[index].machine_status = '急诊机'
269
             }
269
             }
270
             if (addmahcer[index].machine_status === 4) {
270
             if (addmahcer[index].machine_status === 4) {
271
-              addmahcer[index].machine_status = "报废机";
271
+              addmahcer[index].machine_status = '报废机'
272
             }
272
             }
273
           }
273
           }
274
-          this.tableData = addmahcer;
274
+          this.tableData = addmahcer
275
           // console.log('addmacher', addmahcer)
275
           // console.log('addmacher', addmahcer)
276
-          var total = response.data.data.total;
276
+          var total = response.data.data.total
277
           // console.log('total', total)
277
           // console.log('total', total)
278
-          this.total = total;
278
+          this.total = total
279
         }
279
         }
280
-      });
280
+      })
281
     },
281
     },
282
     handleSizeChange(limit) {
282
     handleSizeChange(limit) {
283
-      this.listQuery.limit = limit;
284
-      this.getAllMachineInfo();
283
+      this.listQuery.limit = limit
284
+      this.getAllMachineInfo()
285
     },
285
     },
286
     handleCurrentChange(page) {
286
     handleCurrentChange(page) {
287
-      this.listQuery.page = page;
288
-      this.getAllMachineInfo();
287
+      this.listQuery.page = page
288
+      this.getAllMachineInfo()
289
     },
289
     },
290
-    handleClick(id, index) {
291
-      this.$router.push({ path: '/device/home?index=' + index })
290
+    handleClick(id, index, bedid) {
291
+      this.$router.push({
292
+        path: '/device/home?index=' + index + '&' + 'bedid=' + bedid + '&' + 'id=' + id
293
+      })
292
       // this.$router.push({ path: '/device/home?index=' + index + '&' + 'id=' + id })
294
       // this.$router.push({ path: '/device/home?index=' + index + '&' + 'id=' + id })
293
     }
295
     }
294
   },
296
   },
295
   created() {
297
   created() {
296
     // 获取所有的分区
298
     // 获取所有的分区
297
-    this.getAllSubregion();
298
-    this.getAllMachineInfo();
299
+    this.getAllSubregion()
300
+    this.getAllMachineInfo()
299
   }
301
   }
300
-};
302
+}
301
 </script>
303
 </script>
302
 
304
 
303
 <style scoped></style>
305
 <style scoped></style>

+ 211 - 0
src/xt_pages/mode/index.vue View File

1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+
6
+      <el-button
7
+        size="small"
8
+        icon="el-icon-circle-plus-outline"
9
+        type="primary"
10
+        @click="addMode"
11
+        >新增</el-button
12
+      >
13
+    </div>
14
+    <div class="app-container">
15
+      <el-row>
16
+        <el-col :span="24">
17
+          <el-table
18
+            :data="tableData"
19
+            :row-style="{ color: '#303133' }"
20
+            :header-cell-style="{
21
+              backgroundColor: 'rgb(245, 247, 250)',
22
+              color: '#606266'
23
+            }"
24
+            border
25
+          >
26
+            <el-table-column label="型号名称" align="center">
27
+              <template slot-scope="scope">
28
+                <span>{{ scope.row.device_mode }}</span>
29
+              </template>
30
+            </el-table-column>
31
+            <el-table-column label="操作" align="center">
32
+              <template slot-scope="scope">
33
+                <el-tooltip
34
+                  class="item"
35
+                  effect="dark"
36
+                  content="编辑"
37
+                  placement="top"
38
+                >
39
+                  <el-button
40
+                    type="primary"
41
+                    icon="el-icon-edit-outline"
42
+                    size="small"
43
+                    @click="EditMode(scope.row.id)"
44
+                  ></el-button>
45
+                </el-tooltip>
46
+                <el-tooltip
47
+                  class="item"
48
+                  effect="dark"
49
+                  content="删除"
50
+                  placement="top"
51
+                >
52
+                  <el-button
53
+                    type="danger"
54
+                    icon="el-icon-delete"
55
+                    size="small"
56
+                    @click="DeleteMode(scope.row.id, scope.$index)"
57
+                  ></el-button>
58
+                </el-tooltip>
59
+              </template>
60
+            </el-table-column>
61
+          </el-table>
62
+        </el-col>
63
+      </el-row>
64
+
65
+      <el-dialog
66
+        title="添加设备型号"
67
+        :visible.sync="dialogVisible"
68
+        width="30%"
69
+        center
70
+      >
71
+        <el-form :model="form" ref="form" :rules="ModeRules">
72
+          <el-form-item label="设备型号:" required prop="device_mode">
73
+            <el-input style="width:200px" v-model="form.device_mode"></el-input>
74
+          </el-form-item>
75
+        </el-form>
76
+        <span slot="footer" class="dialog-footer">
77
+          <el-button @click="dialogVisible = false">取 消</el-button>
78
+          <el-button type="primary" @click="SaveMode('form')">保存</el-button>
79
+        </span>
80
+      </el-dialog>
81
+
82
+      <el-dialog
83
+        title="编辑设备型号"
84
+        :visible.sync="editDialogVisible"
85
+        width="30%"
86
+        center
87
+      >
88
+        <el-form :model="form" ref="form" :rules="ModeRules">
89
+          <el-form-item label="设备型号:">
90
+            <el-input style="width:200px" v-model="form.device_mode"></el-input>
91
+          </el-form-item>
92
+        </el-form>
93
+        <span slot="footer" class="dialog-footer">
94
+          <el-button @click="editDialogVisible = false">取 消</el-button>
95
+          <el-button type="primary" @click="UpdateMode('form')">保存</el-button>
96
+        </span>
97
+      </el-dialog>
98
+    </div>
99
+  </div>
100
+</template>
101
+
102
+<script>
103
+// eslint-disable-next-line no-unused-vars
104
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
105
+import {
106
+  SaveMode,
107
+  getAllMode,
108
+  EditMode,
109
+  UpdateMode,
110
+  DeleteMode
111
+} from "@/api/manage";
112
+export default {
113
+  name: "index.vue",
114
+  data() {
115
+    return {
116
+      crumbs: [
117
+        { path: false, name: "设备管理" },
118
+        { path: "/device/mode", name: "型号管理" }
119
+      ],
120
+      dialogVisible: false,
121
+      editDialogVisible: false,
122
+      tableData: [],
123
+      form: {
124
+        id: "",
125
+        device_mode: ""
126
+      },
127
+      ModeRules: {
128
+        device_mode: [{ required: true, message: "请填写设备型号" }]
129
+      }
130
+    };
131
+  },
132
+  methods: {
133
+    addMode() {
134
+      this.dialogVisible = true;
135
+    },
136
+    SaveMode(formName) {
137
+      this.$refs[formName].validate(valid => {
138
+        if (valid) {
139
+          // eslint-disable-next-line no-undef
140
+          SaveMode(this.form).then(response => {
141
+            // eslint-disable-next-line no-empty
142
+            if (response.data.state === 1) {
143
+              var mode = response.data.data.mode;
144
+              this.form.device_mode = "";
145
+              this.dialogVisible = false;
146
+              this.getAllMode();
147
+            }
148
+          });
149
+        }
150
+      });
151
+    },
152
+    getAllMode() {
153
+      getAllMode().then(response => {
154
+        if (response.data.state === 1) {
155
+          var mode = response.data.data.mode;
156
+          this.tableData = mode;
157
+          console.log(mode);
158
+        }
159
+      });
160
+    },
161
+    EditMode(id) {
162
+      this.editDialogVisible = true;
163
+      EditMode(id).then(response => {
164
+        if (response.data.state === 1) {
165
+          var mode = response.data.data.mode;
166
+          this.form.id = mode.id;
167
+          this.form.device_mode = mode.device_mode;
168
+        }
169
+      });
170
+    },
171
+    UpdateMode(formName) {
172
+      this.$refs[formName].validate(valid => {
173
+        if (valid) {
174
+          UpdateMode(this.form.id, this.form).then(response => {
175
+            if (response.data.state === 1) {
176
+              var mode = response.data.data.mode;
177
+              this.editDialogVisible = false;
178
+              this.getAllMode();
179
+            }
180
+          });
181
+        }
182
+      });
183
+    },
184
+    DeleteMode(id, index) {
185
+      this.$confirm(
186
+        "确认要删除所选信息吗? <br>删除后,信息将无法恢复",
187
+        "删除提示",
188
+        {
189
+          dangerouslyUseHTMLString: true,
190
+          confirmButtonText: "确定",
191
+          cancelButtonText: "取消",
192
+          type: "warning"
193
+        }
194
+      ).then(() => {
195
+        DeleteMode(id, index).then(response => {
196
+          if (response.data.state === 1) {
197
+            var msg = response.data.data.msg;
198
+            this.tableData.splice(index, 1);
199
+          }
200
+        });
201
+      });
202
+    }
203
+  },
204
+
205
+  created() {
206
+    this.getAllMode();
207
+  }
208
+};
209
+</script>
210
+
211
+<style scoped></style>

+ 15 - 1
src/xt_pages/qcd/dialysisTotal.vue View File

22
         <el-date-picker
22
         <el-date-picker
23
           v-model="listQuery.end_time"
23
           v-model="listQuery.end_time"
24
           prefix-icon="el-icon-date"
24
           prefix-icon="el-icon-date"
25
-          @change="changeTime"
25
+          @change="changeEndTime"
26
           :editable="false"
26
           :editable="false"
27
           style="width: 196px;"
27
           style="width: 196px;"
28
           type="date"
28
           type="date"
301
     changeTime() {
301
     changeTime() {
302
       this.getList();
302
       this.getList();
303
     },
303
     },
304
+    changeEndTime(val) {
305
+      var time =
306
+        this.getTimestamp(val) - this.getTimestamp(this.listQuery.start_time);
307
+      if (time < 0) {
308
+        this.$message.error("结束时间不能小于开始时间");
309
+        this.listQuery.end_time = "";
310
+      } else {
311
+        this.getList();
312
+      }
313
+    },
314
+    getTimestamp(time) {
315
+      // 把时间日期转成时间戳
316
+      return new Date(time).getTime() / 1000;
317
+    },
304
     selectStatisticalMethod(type) {
318
     selectStatisticalMethod(type) {
305
       this.statisticalMethod = type;
319
       this.statisticalMethod = type;
306
       this.listQuery.statistical_method = type;
320
       this.listQuery.statistical_method = type;

+ 15 - 1
src/xt_pages/qcd/outcomeIndicators/control.vue View File

31
         <el-date-picker
31
         <el-date-picker
32
           v-model="listQuery.end_time"
32
           v-model="listQuery.end_time"
33
           prefix-icon="el-icon-date"
33
           prefix-icon="el-icon-date"
34
-          @change="changeTime"
34
+          @change="changeEndTime"
35
           :editable="false"
35
           :editable="false"
36
           style="width: 196px;"
36
           style="width: 196px;"
37
           type="date"
37
           type="date"
376
     changeTime() {
376
     changeTime() {
377
       this.getList();
377
       this.getList();
378
     },
378
     },
379
+    changeEndTime(val) {
380
+      var time =
381
+        this.getTimestamp(val) - this.getTimestamp(this.listQuery.start_time);
382
+      if (time < 0) {
383
+        this.$message.error("结束时间不能小于开始时间");
384
+        this.listQuery.end_time = "";
385
+      } else {
386
+        this.getList();
387
+      }
388
+    },
389
+    getTimestamp(time) {
390
+      // 把时间日期转成时间戳
391
+      return new Date(time).getTime() / 1000;
392
+    },
379
     selectLapseTo(lapseto) {
393
     selectLapseTo(lapseto) {
380
       this.lapsetoType = lapseto;
394
       this.lapsetoType = lapseto;
381
       this.listQuery.lapseto = lapseto;
395
       this.listQuery.lapseto = lapseto;

+ 15 - 1
src/xt_pages/qcd/patientAnalysis/total.vue View File

38
         <el-date-picker
38
         <el-date-picker
39
           v-model="listQuery.end_time"
39
           v-model="listQuery.end_time"
40
           prefix-icon="el-icon-date"
40
           prefix-icon="el-icon-date"
41
-          @change="changeTime"
41
+          @change="changeEndTime"
42
           :editable="false"
42
           :editable="false"
43
           style="width: 196px;"
43
           style="width: 196px;"
44
           type="date"
44
           type="date"
283
     changeTime() {
283
     changeTime() {
284
       this.getList();
284
       this.getList();
285
     },
285
     },
286
+    changeEndTime(val) {
287
+      var time =
288
+        this.getTimestamp(val) - this.getTimestamp(this.listQuery.start_time);
289
+      if (time < 0) {
290
+        this.$message.error("结束时间不能小于开始时间");
291
+        this.listQuery.end_time = "";
292
+      } else {
293
+        this.getList();
294
+      }
295
+    },
296
+    getTimestamp(time) {
297
+      // 把时间日期转成时间戳
298
+      return new Date(time).getTime() / 1000;
299
+    },
286
     onSearch() {
300
     onSearch() {
287
       this.getList();
301
       this.getList();
288
     },
302
     },

+ 15 - 1
src/xt_pages/qcd/processIndicators.vue View File

22
         <el-date-picker
22
         <el-date-picker
23
           v-model="listQuery.end_time"
23
           v-model="listQuery.end_time"
24
           prefix-icon="el-icon-date"
24
           prefix-icon="el-icon-date"
25
-          @change="changeTime"
25
+          @change="changeEndTime"
26
           :editable="false"
26
           :editable="false"
27
           style="width: 196px;"
27
           style="width: 196px;"
28
           type="date"
28
           type="date"
321
     changeTime() {
321
     changeTime() {
322
       this.getList();
322
       this.getList();
323
     },
323
     },
324
+    changeEndTime(val) {
325
+      var time =
326
+        this.getTimestamp(val) - this.getTimestamp(this.listQuery.start_time);
327
+      if (time < 0) {
328
+        this.$message.error("结束时间不能小于开始时间");
329
+        this.listQuery.end_time = "";
330
+      } else {
331
+        this.getList();
332
+      }
333
+    },
334
+    getTimestamp(time) {
335
+      // 把时间日期转成时间戳
336
+      return new Date(time).getTime() / 1000;
337
+    },
324
     selectLapseTo(lapseto) {
338
     selectLapseTo(lapseto) {
325
       this.lapsetoType = lapseto;
339
       this.lapsetoType = lapseto;
326
       this.listQuery.lapseto = lapseto;
340
       this.listQuery.lapseto = lapseto;

+ 11 - 1
src/xt_pages/stock/cancelStockOrder.vue View File

339
       this.GetCancelStock();
339
       this.GetCancelStock();
340
     },
340
     },
341
     endTimeChange(val) {
341
     endTimeChange(val) {
342
-      this.GetCancelStock();
342
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
343
+      if (time < 0) {
344
+        this.$message.error("结束时间不能小于开始时间");
345
+        this.end_time = "";
346
+      } else {
347
+        this.GetCancelStock();
348
+      }
349
+    },
350
+    getTimestamp(time) {
351
+      // 把时间日期转成时间戳
352
+      return new Date(time).getTime() / 1000;
343
     },
353
     },
344
     calculate: function(val) {
354
     calculate: function(val) {
345
       return Math.round(parseFloat(val) * 100) / 100;
355
       return Math.round(parseFloat(val) * 100) / 100;

+ 11 - 1
src/xt_pages/stock/detail/cancelStockDetail.vue View File

381
       this.GetCancelStock();
381
       this.GetCancelStock();
382
     },
382
     },
383
     endTimeChange(val) {
383
     endTimeChange(val) {
384
-      this.GetCancelStock();
384
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
385
+      if (time < 0) {
386
+        this.$message.error("结束时间不能小于开始时间");
387
+        this.end_time = "";
388
+      } else {
389
+        this.GetCancelStock();
390
+      }
391
+    },
392
+    getTimestamp(time) {
393
+      // 把时间日期转成时间戳
394
+      return new Date(time).getTime() / 1000;
385
     },
395
     },
386
     calculate: function(val) {
396
     calculate: function(val) {
387
       return Math.round(parseFloat(val) * 100) / 100;
397
       return Math.round(parseFloat(val) * 100) / 100;

+ 11 - 1
src/xt_pages/stock/detail/salesReturnDetail.vue View File

380
       this.GetCancelStock();
380
       this.GetCancelStock();
381
     },
381
     },
382
     endTimeChange(val) {
382
     endTimeChange(val) {
383
-      this.GetCancelStock();
383
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
384
+      if (time < 0) {
385
+        this.$message.error("结束时间不能小于开始时间");
386
+        this.end_time = "";
387
+      } else {
388
+        this.GetCancelStock();
389
+      }
390
+    },
391
+    getTimestamp(time) {
392
+      // 把时间日期转成时间戳
393
+      return new Date(time).getTime() / 1000;
384
     },
394
     },
385
     calculate: function(val) {
395
     calculate: function(val) {
386
       return Math.round(parseFloat(val) * 100) / 100;
396
       return Math.round(parseFloat(val) * 100) / 100;

+ 11 - 1
src/xt_pages/stock/detail/stockInDetail.vue View File

422
       this.GetCancelStock();
422
       this.GetCancelStock();
423
     },
423
     },
424
     endTimeChange(val) {
424
     endTimeChange(val) {
425
-      this.GetCancelStock();
425
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
426
+      if (time < 0) {
427
+        this.$message.error("结束时间不能小于开始时间");
428
+        this.end_time = "";
429
+      } else {
430
+        this.GetCancelStock();
431
+      }
432
+    },
433
+    getTimestamp(time) {
434
+      // 把时间日期转成时间戳
435
+      return new Date(time).getTime() / 1000;
426
     },
436
     },
427
     calculate: function(val) {
437
     calculate: function(val) {
428
       return Math.round(parseFloat(val) * 100) / 100;
438
       return Math.round(parseFloat(val) * 100) / 100;

+ 11 - 1
src/xt_pages/stock/detail/stockOutDetail.vue View File

404
       this.GetCancelStock();
404
       this.GetCancelStock();
405
     },
405
     },
406
     endTimeChange(val) {
406
     endTimeChange(val) {
407
-      this.GetCancelStock();
407
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
408
+      if (time < 0) {
409
+        this.$message.error("结束时间不能小于开始时间");
410
+        this.end_time = "";
411
+      } else {
412
+        this.GetCancelStock();
413
+      }
414
+    },
415
+    getTimestamp(time) {
416
+      // 把时间日期转成时间戳
417
+      return new Date(time).getTime() / 1000;
408
     },
418
     },
409
     calculate: function(val) {
419
     calculate: function(val) {
410
       return Math.round(parseFloat(val) * 100) / 100;
420
       return Math.round(parseFloat(val) * 100) / 100;

+ 11 - 1
src/xt_pages/stock/otherCancelStockOrder.vue View File

337
       this.GetCancelStock();
337
       this.GetCancelStock();
338
     },
338
     },
339
     endTimeChange(val) {
339
     endTimeChange(val) {
340
-      this.GetCancelStock();
340
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
341
+      if (time < 0) {
342
+        this.$message.error("结束时间不能小于开始时间");
343
+        this.end_time = "";
344
+      } else {
345
+        this.GetCancelStock();
346
+      }
347
+    },
348
+    getTimestamp(time) {
349
+      // 把时间日期转成时间戳
350
+      return new Date(time).getTime() / 1000;
341
     },
351
     },
342
     calculate: function(val) {
352
     calculate: function(val) {
343
       return Math.round(parseFloat(val) * 100) / 100;
353
       return Math.round(parseFloat(val) * 100) / 100;

+ 125 - 127
src/xt_pages/stock/otherSalesReturnOrder.vue View File

174
 </template>
174
 </template>
175
 
175
 
176
 <script>
176
 <script>
177
-import { uParseTime } from '@/utils/tools'
178
-import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from '@/api/doctor'
177
+import { uParseTime } from "@/utils/tools";
178
+import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
179
 import {
179
 import {
180
   deleteSalesReturn,
180
   deleteSalesReturn,
181
   GetAllConfig,
181
   GetAllConfig,
182
   getSalesReturnList,
182
   getSalesReturnList,
183
   getWarehouseInfoList,
183
   getWarehouseInfoList,
184
   getWarehouseList
184
   getWarehouseList
185
-} from '@/api/stock'
186
-import BreadCrumb from '../components/bread-crumb'
185
+} from "@/api/stock";
186
+import BreadCrumb from "../components/bread-crumb";
187
 
187
 
188
 export default {
188
 export default {
189
-  name: 'salesReturnOrder',
189
+  name: "salesReturnOrder",
190
   components: { BreadCrumb },
190
   components: { BreadCrumb },
191
   created() {
191
   created() {
192
-    var nowDate = new Date()
193
-    var nowYear = nowDate.getFullYear()
194
-    var nowMonth = nowDate.getMonth() + 1
195
-    var nowDay = nowDate.getDate()
192
+    var nowDate = new Date();
193
+    var nowYear = nowDate.getFullYear();
194
+    var nowMonth = nowDate.getMonth() + 1;
195
+    var nowDay = nowDate.getDate();
196
     this.end_time =
196
     this.end_time =
197
       nowYear +
197
       nowYear +
198
-      '-' +
199
-      (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
200
-      '-' +
201
-      (nowDay < 10 ? '0' + nowDay : nowDay)
202
-    nowDate.setMonth(nowDate.getMonth() - 1)
203
-    nowYear = nowDate.getFullYear()
204
-    nowMonth = nowDate.getMonth() + 1
205
-    nowDay = nowDate.getDate()
198
+      "-" +
199
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
200
+      "-" +
201
+      (nowDay < 10 ? "0" + nowDay : nowDay);
202
+    nowDate.setMonth(nowDate.getMonth() - 1);
203
+    nowYear = nowDate.getFullYear();
204
+    nowMonth = nowDate.getMonth() + 1;
205
+    nowDay = nowDate.getDate();
206
     this.start_time =
206
     this.start_time =
207
       nowYear +
207
       nowYear +
208
-      '-' +
209
-      (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
210
-      '-' +
211
-      (nowDay < 10 ? '0' + nowDay : nowDay)
212
-    this.GetSalesReturn()
213
-    this.GetConfigInfo()
214
-    this.fetchAllAdminUsers()
208
+      "-" +
209
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
210
+      "-" +
211
+      (nowDay < 10 ? "0" + nowDay : nowDay);
212
+    this.GetSalesReturn();
213
+    this.GetConfigInfo();
214
+    this.fetchAllAdminUsers();
215
   },
215
   },
216
   data() {
216
   data() {
217
     return {
217
     return {
218
-      searchKey: '',
218
+      searchKey: "",
219
       crumbs: [
219
       crumbs: [
220
-        { path: false, name: '库存管理' },
221
-        { path: false, name: '其他退货单' }
220
+        { path: false, name: "库存管理" },
221
+        { path: false, name: "其他退货单" }
222
       ],
222
       ],
223
       type: 2,
223
       type: 2,
224
       page: 1,
224
       page: 1,
229
       pageSelect: 0,
229
       pageSelect: 0,
230
       adminUserOptions: [],
230
       adminUserOptions: [],
231
       multipleSelection: [],
231
       multipleSelection: [],
232
-      signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
233
-      start_time: '',
232
+      signAndWeighBoxPatients: "sign-and-weigh-box-patients",
233
+      start_time: "",
234
       saleReturnDate: [],
234
       saleReturnDate: [],
235
-      end_time: '',
235
+      end_time: "",
236
       goodType: [],
236
       goodType: [],
237
       goodInfo: [],
237
       goodInfo: [],
238
       manufacturer: [],
238
       manufacturer: [],
239
       selectedTableData: [],
239
       selectedTableData: [],
240
       dealer: [],
240
       dealer: [],
241
-      startTime: ''
242
-    }
241
+      startTime: ""
242
+    };
243
   },
243
   },
244
   methods: {
244
   methods: {
245
     search: function() {
245
     search: function() {
250
         end_time: this.end_time,
250
         end_time: this.end_time,
251
         type: this.type,
251
         type: this.type,
252
         keywords: this.searchKey
252
         keywords: this.searchKey
253
-      }
254
-      this.saleReturnDate = []
253
+      };
254
+      this.saleReturnDate = [];
255
       getSalesReturnList(Params).then(response => {
255
       getSalesReturnList(Params).then(response => {
256
         if (response.data.state == 0) {
256
         if (response.data.state == 0) {
257
-          this.$message.error(response.data.msg)
258
-          return false
257
+          this.$message.error(response.data.msg);
258
+          return false;
259
         } else {
259
         } else {
260
-          this.total = response.data.data.total
260
+          this.total = response.data.data.total;
261
           for (let i = 0; i < response.data.data.list.length; i++) {
261
           for (let i = 0; i < response.data.data.list.length; i++) {
262
-            this.saleReturnDate.push(response.data.data.list[i])
262
+            this.saleReturnDate.push(response.data.data.list[i]);
263
           }
263
           }
264
         }
264
         }
265
-      })
265
+      });
266
     },
266
     },
267
     AddNewOrder: function() {
267
     AddNewOrder: function() {
268
       this.$router.push({
268
       this.$router.push({
269
-        name: 'salesReturnOrderAdd',
269
+        name: "salesReturnOrderAdd",
270
         query: { type: this.type }
270
         query: { type: this.type }
271
-      })
271
+      });
272
     },
272
     },
273
     GetSalesReturn: function() {
273
     GetSalesReturn: function() {
274
       const Params = {
274
       const Params = {
277
         start_time: this.start_time,
277
         start_time: this.start_time,
278
         end_time: this.end_time,
278
         end_time: this.end_time,
279
         type: this.type
279
         type: this.type
280
-      }
281
-      this.saleReturnDate = []
280
+      };
281
+      this.saleReturnDate = [];
282
       getSalesReturnList(Params).then(response => {
282
       getSalesReturnList(Params).then(response => {
283
         if (response.data.state == 0) {
283
         if (response.data.state == 0) {
284
-          this.$message.error(response.data.msg)
285
-          return false
284
+          this.$message.error(response.data.msg);
285
+          return false;
286
         } else {
286
         } else {
287
-          this.total = response.data.data.total
287
+          this.total = response.data.data.total;
288
           for (let i = 0; i < response.data.data.list.length; i++) {
288
           for (let i = 0; i < response.data.data.list.length; i++) {
289
-            this.saleReturnDate.push(response.data.data.list[i])
289
+            this.saleReturnDate.push(response.data.data.list[i]);
290
           }
290
           }
291
         }
291
         }
292
-      })
292
+      });
293
     },
293
     },
294
     getXuserName(id) {
294
     getXuserName(id) {
295
       if (id <= 0) {
295
       if (id <= 0) {
296
-        return ''
296
+        return "";
297
       }
297
       }
298
-      var name = ''
298
+      var name = "";
299
       if (
299
       if (
300
         this.adminUserOptions == null ||
300
         this.adminUserOptions == null ||
301
-        typeof this.adminUserOptions.length === 'undefined'
301
+        typeof this.adminUserOptions.length === "undefined"
302
       ) {
302
       ) {
303
-        return name
303
+        return name;
304
       }
304
       }
305
-      var leng = this.adminUserOptions.length
305
+      var leng = this.adminUserOptions.length;
306
       if (leng == 0) {
306
       if (leng == 0) {
307
-        return name
307
+        return name;
308
       }
308
       }
309
       for (let index = 0; index < leng; index++) {
309
       for (let index = 0; index < leng; index++) {
310
         if (this.adminUserOptions[index].id == id) {
310
         if (this.adminUserOptions[index].id == id) {
311
-          name = this.adminUserOptions[index].name
312
-          break
311
+          name = this.adminUserOptions[index].name;
312
+          break;
313
         }
313
         }
314
       }
314
       }
315
-      return name
315
+      return name;
316
     },
316
     },
317
     fetchAllAdminUsers() {
317
     fetchAllAdminUsers() {
318
       fetchAllAdminUsers().then(response => {
318
       fetchAllAdminUsers().then(response => {
319
-        console.log(response)
319
+        console.log(response);
320
         if (response.data.state == 1) {
320
         if (response.data.state == 1) {
321
-          this.adminUserOptions = response.data.data.users
322
-          var alen = this.adminUserOptions.length
321
+          this.adminUserOptions = response.data.data.users;
322
+          var alen = this.adminUserOptions.length;
323
           for (let index = 0; index < alen; index++) {
323
           for (let index = 0; index < alen; index++) {
324
             if (this.adminUserOptions[index].user_type == 2) {
324
             if (this.adminUserOptions[index].user_type == 2) {
325
               // this.doctorOptions.push(this.adminUserOptions[index]);
325
               // this.doctorOptions.push(this.adminUserOptions[index]);
326
             }
326
             }
327
           }
327
           }
328
         }
328
         }
329
-      })
329
+      });
330
     },
330
     },
331
     handleSelectionChange: function(val) {
331
     handleSelectionChange: function(val) {
332
-      this.multipleSelection = val
332
+      this.multipleSelection = val;
333
     },
333
     },
334
     handleSizeChange(val) {
334
     handleSizeChange(val) {
335
-      this.limit = val
336
-      this.GetSalesReturn()
335
+      this.limit = val;
336
+      this.GetSalesReturn();
337
     },
337
     },
338
     handleCurrentChange(val) {
338
     handleCurrentChange(val) {
339
-      this.page = val
340
-      this.GetSalesReturn()
339
+      this.page = val;
340
+      this.GetSalesReturn();
341
     },
341
     },
342
     startTimeChange(val) {
342
     startTimeChange(val) {
343
-      this.startTime = this.getTimestamp(val)
344
-      this.GetSalesReturn()
343
+      this.startTime = this.getTimestamp(val);
344
+      this.GetSalesReturn();
345
     },
345
     },
346
     endTimeChange(val) {
346
     endTimeChange(val) {
347
-      var time = this.getTimestamp(val) - this.startTime
348
-      console.log('开始时间', this.startTime)
349
-      console.log('结束', this.getTimestamp(val))
350
-      console.log('时间差', time)
347
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
351
       if (time < 0) {
348
       if (time < 0) {
352
-        this.$message.error('结束时间不能小于开始时间')
353
-        this.end_time = ''
349
+        this.$message.error("结束时间不能小于开始时间");
350
+        this.end_time = "";
354
       } else {
351
       } else {
355
-        this.GetSalesReturn()
352
+        this.GetSalesReturn();
356
       }
353
       }
357
     },
354
     },
358
-    getTimestamp(time) { // 把时间日期转成时间戳
359
-      return (new Date(time)).getTime() / 1000
355
+    getTimestamp(time) {
356
+      // 把时间日期转成时间戳
357
+      return new Date(time).getTime() / 1000;
360
     },
358
     },
361
     calculate: function(val) {
359
     calculate: function(val) {
362
-      return Math.round(parseFloat(val) * 100) / 100
360
+      return Math.round(parseFloat(val) * 100) / 100;
363
     },
361
     },
364
     GetConfigInfo: function() {
362
     GetConfigInfo: function() {
365
       GetAllConfig().then(response => {
363
       GetAllConfig().then(response => {
366
         if (response.data.state == 0) {
364
         if (response.data.state == 0) {
367
-          this.$message.error(response.data.msg)
368
-          return false
365
+          this.$message.error(response.data.msg);
366
+          return false;
369
         } else {
367
         } else {
370
-          this.manufacturer = response.data.data.manufacturer
371
-          this.dealer = response.data.data.dealer
368
+          this.manufacturer = response.data.data.manufacturer;
369
+          this.dealer = response.data.data.dealer;
372
         }
370
         }
373
-      })
371
+      });
374
     },
372
     },
375
     getManufactuerName: function(manufacturer_id) {
373
     getManufactuerName: function(manufacturer_id) {
376
       for (let i = 0; i < this.manufacturer.length; i++) {
374
       for (let i = 0; i < this.manufacturer.length; i++) {
377
         if (this.manufacturer[i].id == manufacturer_id) {
375
         if (this.manufacturer[i].id == manufacturer_id) {
378
-          return this.manufacturer[i].manufacturer_name
376
+          return this.manufacturer[i].manufacturer_name;
379
         }
377
         }
380
       }
378
       }
381
     },
379
     },
382
     getDealerName: function(dealer_id) {
380
     getDealerName: function(dealer_id) {
383
       for (let i = 0; i < this.dealer.length; i++) {
381
       for (let i = 0; i < this.dealer.length; i++) {
384
         if (this.dealer[i].id == dealer_id) {
382
         if (this.dealer[i].id == dealer_id) {
385
-          return this.dealer[i].dealer_name
383
+          return this.dealer[i].dealer_name;
386
         }
384
         }
387
       }
385
       }
388
     },
386
     },
389
     handleEdit: function(index, row) {
387
     handleEdit: function(index, row) {
390
       this.$router.push({
388
       this.$router.push({
391
-        name: 'salesReturnDetail',
389
+        name: "salesReturnDetail",
392
         query: { id: row.id, type: this.type }
390
         query: { id: row.id, type: this.type }
393
-      })
391
+      });
394
     },
392
     },
395
     handleDelete: function(index, row) {
393
     handleDelete: function(index, row) {
396
-      const ids = []
397
-      ids.push(row.id)
398
-      const idStr = ids.join(',')
394
+      const ids = [];
395
+      ids.push(row.id);
396
+      const idStr = ids.join(",");
399
 
397
 
400
       const params = {
398
       const params = {
401
         ids: idStr
399
         ids: idStr
402
-      }
400
+      };
403
 
401
 
404
-      this.$confirm('确认删除退货单记录?', '删除退货单记录', {
405
-        confirmButtonText: '确定',
406
-        cancelButtonText: '取消',
407
-        type: 'warning'
402
+      this.$confirm("确认删除退货单记录?", "删除退货单记录", {
403
+        confirmButtonText: "确定",
404
+        cancelButtonText: "取消",
405
+        type: "warning"
408
       })
406
       })
409
         .then(() => {
407
         .then(() => {
410
           deleteSalesReturn(params).then(response => {
408
           deleteSalesReturn(params).then(response => {
411
             if (response.data.state == 0) {
409
             if (response.data.state == 0) {
412
-              this.$message.error(response.data.msg)
413
-              return false
410
+              this.$message.error(response.data.msg);
411
+              return false;
414
             } else {
412
             } else {
415
               this.$notify({
413
               this.$notify({
416
-                title: '成功',
417
-                message: '删除成功',
418
-                type: 'success',
414
+                title: "成功",
415
+                message: "删除成功",
416
+                type: "success",
419
                 duration: 2000
417
                 duration: 2000
420
-              })
418
+              });
421
               for (let i = 0; i < ids.length; i++) {
419
               for (let i = 0; i < ids.length; i++) {
422
                 for (let y = 0; y < this.saleReturnDate.length; y++) {
420
                 for (let y = 0; y < this.saleReturnDate.length; y++) {
423
                   if (ids[i] == this.saleReturnDate[y].id) {
421
                   if (ids[i] == this.saleReturnDate[y].id) {
424
-                    this.saleReturnDate.splice(y, 1)
422
+                    this.saleReturnDate.splice(y, 1);
425
                   }
423
                   }
426
                 }
424
                 }
427
               }
425
               }
428
             }
426
             }
429
-          })
427
+          });
430
         })
428
         })
431
-        .catch(() => {})
429
+        .catch(() => {});
432
     },
430
     },
433
     changeAllSelected: function(val) {
431
     changeAllSelected: function(val) {
434
       if (val) {
432
       if (val) {
435
-        this.$refs.multipleTable.toggleAllSelection()
433
+        this.$refs.multipleTable.toggleAllSelection();
436
       } else {
434
       } else {
437
-        this.$refs.multipleTable.clearSelection()
435
+        this.$refs.multipleTable.clearSelection();
438
       }
436
       }
439
     },
437
     },
440
     select(selection) {
438
     select(selection) {
441
-      this.selectedTableData = selection
439
+      this.selectedTableData = selection;
442
     },
440
     },
443
     batchDelete() {
441
     batchDelete() {
444
       if (this.selectedTableData.length <= 0) {
442
       if (this.selectedTableData.length <= 0) {
445
-        this.$message.error('请选择要删除的记录')
446
-        return
443
+        this.$message.error("请选择要删除的记录");
444
+        return;
447
       }
445
       }
448
-      const ids = []
446
+      const ids = [];
449
       for (let i = 0; i < this.selectedTableData.length; i++) {
447
       for (let i = 0; i < this.selectedTableData.length; i++) {
450
-        ids.push(this.selectedTableData[i].id)
448
+        ids.push(this.selectedTableData[i].id);
451
       }
449
       }
452
-      const idStr = ids.join(',')
450
+      const idStr = ids.join(",");
453
       const params = {
451
       const params = {
454
         ids: idStr
452
         ids: idStr
455
-      }
456
-      this.$confirm('确认删除退货单记录?', '删除退货单记录', {
457
-        confirmButtonText: '确定',
458
-        cancelButtonText: '取消',
459
-        type: 'warning'
453
+      };
454
+      this.$confirm("确认删除退货单记录?", "删除退货单记录", {
455
+        confirmButtonText: "确定",
456
+        cancelButtonText: "取消",
457
+        type: "warning"
460
       })
458
       })
461
         .then(() => {
459
         .then(() => {
462
           deleteSalesReturn(params).then(response => {
460
           deleteSalesReturn(params).then(response => {
463
             if (response.data.state == 0) {
461
             if (response.data.state == 0) {
464
-              this.$message.error(response.data.msg)
465
-              return false
462
+              this.$message.error(response.data.msg);
463
+              return false;
466
             } else {
464
             } else {
467
               this.$notify({
465
               this.$notify({
468
-                title: '成功',
469
-                message: '删除成功',
470
-                type: 'success',
466
+                title: "成功",
467
+                message: "删除成功",
468
+                type: "success",
471
                 duration: 2000
469
                 duration: 2000
472
-              })
470
+              });
473
 
471
 
474
               for (let i = 0; i < ids.length; i++) {
472
               for (let i = 0; i < ids.length; i++) {
475
                 for (let y = 0; y < this.saleReturnDate.length; y++) {
473
                 for (let y = 0; y < this.saleReturnDate.length; y++) {
476
                   if (ids[i] == this.saleReturnDate[y].id) {
474
                   if (ids[i] == this.saleReturnDate[y].id) {
477
-                    this.saleReturnDate.splice(y, 1)
475
+                    this.saleReturnDate.splice(y, 1);
478
                   }
476
                   }
479
                 }
477
                 }
480
               }
478
               }
481
             }
479
             }
482
-          })
480
+          });
483
         })
481
         })
484
-        .catch(() => {})
482
+        .catch(() => {});
485
     }
483
     }
486
   }
484
   }
487
-}
485
+};
488
 </script>
486
 </script>
489
 
487
 
490
 <style rel="stylesheet/css" lang="scss" scoped>
488
 <style rel="stylesheet/css" lang="scss" scoped>

+ 11 - 1
src/xt_pages/stock/otherStockInOrder.vue View File

453
       this.GetWarehouse();
453
       this.GetWarehouse();
454
     },
454
     },
455
     endTimeChange(val) {
455
     endTimeChange(val) {
456
-      this.GetWarehouse();
456
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
457
+      if (time < 0) {
458
+        this.$message.error("结束时间不能小于开始时间");
459
+        this.end_time = "";
460
+      } else {
461
+        this.GetWarehouse();
462
+      }
463
+    },
464
+    getTimestamp(time) {
465
+      // 把时间日期转成时间戳
466
+      return new Date(time).getTime() / 1000;
457
     },
467
     },
458
     calculate: function(val) {
468
     calculate: function(val) {
459
       return Math.round(parseFloat(val) * 100) / 100;
469
       return Math.round(parseFloat(val) * 100) / 100;

+ 11 - 1
src/xt_pages/stock/otherStockOutOrder.vue View File

336
       this.GetWarehouseOut();
336
       this.GetWarehouseOut();
337
     },
337
     },
338
     endTimeChange(val) {
338
     endTimeChange(val) {
339
-      this.GetWarehouseOut();
339
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
340
+      if (time < 0) {
341
+        this.$message.error("结束时间不能小于开始时间");
342
+        this.end_time = "";
343
+      } else {
344
+        this.GetWarehouseOut();
345
+      }
346
+    },
347
+    getTimestamp(time) {
348
+      // 把时间日期转成时间戳
349
+      return new Date(time).getTime() / 1000;
340
     },
350
     },
341
     calculate: function(val) {
351
     calculate: function(val) {
342
       return Math.round(parseFloat(val) * 100) / 100;
352
       return Math.round(parseFloat(val) * 100) / 100;

+ 11 - 0
src/xt_pages/stock/salesReturnOrder.vue View File

338
       this.GetSalesReturn();
338
       this.GetSalesReturn();
339
     },
339
     },
340
     endTimeChange(val) {
340
     endTimeChange(val) {
341
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
342
+      if (time < 0) {
343
+        this.$message.error("结束时间不能小于开始时间");
344
+        this.end_time = "";
345
+      } else {
346
+        this.GetWarehouse();
347
+      }
341
       this.GetSalesReturn();
348
       this.GetSalesReturn();
342
     },
349
     },
350
+    getTimestamp(time) {
351
+      // 把时间日期转成时间戳
352
+      return new Date(time).getTime() / 1000;
353
+    },
343
     calculate: function(val) {
354
     calculate: function(val) {
344
       return Math.round(parseFloat(val) * 100) / 100;
355
       return Math.round(parseFloat(val) * 100) / 100;
345
     },
356
     },

+ 0 - 2
src/xt_pages/stock/stockInOrder.vue View File

483
       this.startTime = this.getTimestamp(val);
483
       this.startTime = this.getTimestamp(val);
484
     },
484
     },
485
     endTimeChange(val) {
485
     endTimeChange(val) {
486
-      console.log("开始时间", this.start_time);
487
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
486
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
488
-      console.log("time", time);
489
       if (time < 0) {
487
       if (time < 0) {
490
         this.$message.error("结束时间不能小于开始时间");
488
         this.$message.error("结束时间不能小于开始时间");
491
         this.end_time = "";
489
         this.end_time = "";

+ 127 - 117
src/xt_pages/stock/stockOutOrder.vue View File

168
 </template>
168
 </template>
169
 
169
 
170
 <script>
170
 <script>
171
-import { uParseTime } from "@/utils/tools";
172
-import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
171
+import { uParseTime } from '@/utils/tools'
172
+import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from '@/api/doctor'
173
 
173
 
174
 import {
174
 import {
175
   deleteWarehouseOut,
175
   deleteWarehouseOut,
176
   GetAllConfig,
176
   GetAllConfig,
177
   getWarehouseOutList
177
   getWarehouseOutList
178
-} from "@/api/stock";
179
-import BreadCrumb from "../components/bread-crumb";
178
+} from '@/api/stock'
179
+import BreadCrumb from '../components/bread-crumb'
180
 
180
 
181
 export default {
181
 export default {
182
-  name: "salesReturnOrder",
182
+  name: 'salesReturnOrder',
183
   components: { BreadCrumb },
183
   components: { BreadCrumb },
184
   created() {
184
   created() {
185
-    var nowDate = new Date();
186
-    var nowYear = nowDate.getFullYear();
187
-    var nowMonth = nowDate.getMonth() + 1;
188
-    var nowDay = nowDate.getDate();
185
+    var nowDate = new Date()
186
+    var nowYear = nowDate.getFullYear()
187
+    var nowMonth = nowDate.getMonth() + 1
188
+    var nowDay = nowDate.getDate()
189
     this.end_time =
189
     this.end_time =
190
       nowYear +
190
       nowYear +
191
-      "-" +
192
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
193
-      "-" +
194
-      (nowDay < 10 ? "0" + nowDay : nowDay);
195
-    nowDate.setMonth(nowDate.getMonth() - 1);
196
-    nowYear = nowDate.getFullYear();
197
-    nowMonth = nowDate.getMonth() + 1;
198
-    nowDay = nowDate.getDate();
191
+      '-' +
192
+      (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
193
+      '-' +
194
+      (nowDay < 10 ? '0' + nowDay : nowDay)
195
+    nowDate.setMonth(nowDate.getMonth() - 1)
196
+    nowYear = nowDate.getFullYear()
197
+    nowMonth = nowDate.getMonth() + 1
198
+    nowDay = nowDate.getDate()
199
     this.start_time =
199
     this.start_time =
200
       nowYear +
200
       nowYear +
201
-      "-" +
202
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
203
-      "-" +
204
-      (nowDay < 10 ? "0" + nowDay : nowDay);
205
-    this.GetWarehouseOut();
206
-    this.GetConfigInfo();
207
-    this.fetchAllAdminUsers();
201
+      '-' +
202
+      (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
203
+      '-' +
204
+      (nowDay < 10 ? '0' + nowDay : nowDay)
205
+    this.GetWarehouseOut()
206
+    this.GetConfigInfo()
207
+    this.fetchAllAdminUsers()
208
   },
208
   },
209
   data() {
209
   data() {
210
     return {
210
     return {
211
-      searchKey: "",
211
+      searchKey: '',
212
       crumbs: [
212
       crumbs: [
213
-        { path: false, name: "库存管理" },
214
-        { path: false, name: "出库单" }
213
+        { path: false, name: '库存管理' },
214
+        { path: false, name: '出库单' }
215
       ],
215
       ],
216
       page: 1,
216
       page: 1,
217
       limit: 10,
217
       limit: 10,
221
       pageSelect: 0,
221
       pageSelect: 0,
222
       adminUserOptions: [],
222
       adminUserOptions: [],
223
       multipleSelection: [],
223
       multipleSelection: [],
224
-      signAndWeighBoxPatients: "sign-and-weigh-box-patients",
225
-      start_time: "",
224
+      signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
225
+      start_time: '',
226
       warehouseOutDate: [],
226
       warehouseOutDate: [],
227
-      end_time: "",
227
+      end_time: '',
228
       goodType: [],
228
       goodType: [],
229
       goodInfo: [],
229
       goodInfo: [],
230
       manufacturer: [],
230
       manufacturer: [],
231
       selectedTableData: [],
231
       selectedTableData: [],
232
       dealer: [],
232
       dealer: [],
233
       type: 1
233
       type: 1
234
-    };
234
+    }
235
   },
235
   },
236
   methods: {
236
   methods: {
237
     search: function() {
237
     search: function() {
242
         end_time: this.end_time,
242
         end_time: this.end_time,
243
         type: this.type,
243
         type: this.type,
244
         keywords: this.searchKey
244
         keywords: this.searchKey
245
-      };
246
-      this.warehouseOutDate = [];
245
+      }
246
+      this.warehouseOutDate = []
247
       getWarehouseOutList(Params).then(response => {
247
       getWarehouseOutList(Params).then(response => {
248
         if (response.data.state == 0) {
248
         if (response.data.state == 0) {
249
-          this.$message.error(response.data.msg);
250
-          return false;
249
+          this.$message.error(response.data.msg)
250
+          return false
251
         } else {
251
         } else {
252
-          this.total = response.data.data.total;
252
+          this.total = response.data.data.total
253
           for (let i = 0; i < response.data.data.list.length; i++) {
253
           for (let i = 0; i < response.data.data.list.length; i++) {
254
-            this.warehouseOutDate.push(response.data.data.list[i]);
254
+            this.warehouseOutDate.push(response.data.data.list[i])
255
           }
255
           }
256
         }
256
         }
257
-      });
257
+      })
258
     },
258
     },
259
     AddNewOrder: function() {
259
     AddNewOrder: function() {
260
       this.$router.push({
260
       this.$router.push({
261
-        name: "stockOutOrderAdd",
261
+        name: 'stockOutOrderAdd',
262
         query: { type: this.type }
262
         query: { type: this.type }
263
-      });
263
+      })
264
     },
264
     },
265
     GetWarehouseOut: function() {
265
     GetWarehouseOut: function() {
266
       const Params = {
266
       const Params = {
269
         start_time: this.start_time,
269
         start_time: this.start_time,
270
         end_time: this.end_time,
270
         end_time: this.end_time,
271
         type: this.type
271
         type: this.type
272
-      };
273
-      this.warehouseOutDate = [];
272
+      }
273
+      this.warehouseOutDate = []
274
       getWarehouseOutList(Params).then(response => {
274
       getWarehouseOutList(Params).then(response => {
275
         if (response.data.state == 0) {
275
         if (response.data.state == 0) {
276
-          this.$message.error(response.data.msg);
277
-          return false;
276
+          this.$message.error(response.data.msg)
277
+          return false
278
         } else {
278
         } else {
279
-          this.total = response.data.data.total;
279
+          this.total = response.data.data.total
280
           for (let i = 0; i < response.data.data.list.length; i++) {
280
           for (let i = 0; i < response.data.data.list.length; i++) {
281
-            this.warehouseOutDate.push(response.data.data.list[i]);
281
+            this.warehouseOutDate.push(response.data.data.list[i])
282
           }
282
           }
283
         }
283
         }
284
-      });
284
+      })
285
     },
285
     },
286
     getXuserName(id) {
286
     getXuserName(id) {
287
       if (id <= 0) {
287
       if (id <= 0) {
288
-        return "";
288
+        return ''
289
       }
289
       }
290
-      var name = "";
290
+      var name = ''
291
       if (
291
       if (
292
         this.adminUserOptions == null ||
292
         this.adminUserOptions == null ||
293
-        typeof this.adminUserOptions.length === "undefined"
293
+        typeof this.adminUserOptions.length === 'undefined'
294
       ) {
294
       ) {
295
-        return name;
295
+        return name
296
       }
296
       }
297
-      var leng = this.adminUserOptions.length;
297
+      var leng = this.adminUserOptions.length
298
       if (leng == 0) {
298
       if (leng == 0) {
299
-        return name;
299
+        return name
300
       }
300
       }
301
       for (let index = 0; index < leng; index++) {
301
       for (let index = 0; index < leng; index++) {
302
         if (this.adminUserOptions[index].id == id) {
302
         if (this.adminUserOptions[index].id == id) {
303
-          name = this.adminUserOptions[index].name;
304
-          break;
303
+          name = this.adminUserOptions[index].name
304
+          break
305
         }
305
         }
306
       }
306
       }
307
-      return name;
307
+      return name
308
     },
308
     },
309
     fetchAllAdminUsers() {
309
     fetchAllAdminUsers() {
310
       fetchAllAdminUsers().then(response => {
310
       fetchAllAdminUsers().then(response => {
311
-        console.log(response);
311
+        console.log(response)
312
         if (response.data.state == 1) {
312
         if (response.data.state == 1) {
313
-          this.adminUserOptions = response.data.data.users;
314
-          var alen = this.adminUserOptions.length;
313
+          this.adminUserOptions = response.data.data.users
314
+          var alen = this.adminUserOptions.length
315
           for (let index = 0; index < alen; index++) {
315
           for (let index = 0; index < alen; index++) {
316
             if (this.adminUserOptions[index].user_type == 2) {
316
             if (this.adminUserOptions[index].user_type == 2) {
317
               // this.doctorOptions.push(this.adminUserOptions[index]);
317
               // this.doctorOptions.push(this.adminUserOptions[index]);
318
             }
318
             }
319
           }
319
           }
320
         }
320
         }
321
-      });
321
+      })
322
     },
322
     },
323
     handleSelectionChange: function(val) {
323
     handleSelectionChange: function(val) {
324
-      this.multipleSelection = val;
324
+      this.multipleSelection = val
325
     },
325
     },
326
     handleSizeChange(val) {
326
     handleSizeChange(val) {
327
-      this.limit = val;
328
-      this.GetWarehouseOut();
327
+      this.limit = val
328
+      this.GetWarehouseOut()
329
     },
329
     },
330
     handleCurrentChange(val) {
330
     handleCurrentChange(val) {
331
-      this.page = val;
332
-      this.GetWarehouseOut();
331
+      this.page = val
332
+      this.GetWarehouseOut()
333
     },
333
     },
334
     startTimeChange(val) {
334
     startTimeChange(val) {
335
-      this.GetWarehouseOut();
335
+      this.GetWarehouseOut()
336
     },
336
     },
337
     endTimeChange(val) {
337
     endTimeChange(val) {
338
-      this.GetWarehouseOut();
338
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time)
339
+      if (time < 0) {
340
+        this.$message.error('结束时间不能小于开始时间')
341
+        this.end_time = ''
342
+      } else {
343
+        this.GetWarehouseOut()
344
+      }
345
+    },
346
+    getTimestamp(time) {
347
+      // 把时间日期转成时间戳
348
+      return new Date(time).getTime() / 1000
339
     },
349
     },
340
     calculate: function(val) {
350
     calculate: function(val) {
341
-      return Math.round(parseFloat(val) * 100) / 100;
351
+      return Math.round(parseFloat(val) * 100) / 100
342
     },
352
     },
343
     GetConfigInfo: function() {
353
     GetConfigInfo: function() {
344
       GetAllConfig().then(response => {
354
       GetAllConfig().then(response => {
345
         if (response.data.state == 0) {
355
         if (response.data.state == 0) {
346
-          this.$message.error(response.data.msg);
347
-          return false;
356
+          this.$message.error(response.data.msg)
357
+          return false
348
         } else {
358
         } else {
349
-          this.manufacturer = response.data.data.manufacturer;
350
-          this.dealer = response.data.data.dealer;
359
+          this.manufacturer = response.data.data.manufacturer
360
+          this.dealer = response.data.data.dealer
351
         }
361
         }
352
-      });
362
+      })
353
     },
363
     },
354
     getManufactuerName: function(manufacturer_id) {
364
     getManufactuerName: function(manufacturer_id) {
355
       for (let i = 0; i < this.manufacturer.length; i++) {
365
       for (let i = 0; i < this.manufacturer.length; i++) {
356
         if (this.manufacturer[i].id == manufacturer_id) {
366
         if (this.manufacturer[i].id == manufacturer_id) {
357
-          return this.manufacturer[i].manufacturer_name;
367
+          return this.manufacturer[i].manufacturer_name
358
         }
368
         }
359
       }
369
       }
360
     },
370
     },
361
     getDealerName: function(dealer_id) {
371
     getDealerName: function(dealer_id) {
362
       for (let i = 0; i < this.dealer.length; i++) {
372
       for (let i = 0; i < this.dealer.length; i++) {
363
         if (this.dealer[i].id == dealer_id) {
373
         if (this.dealer[i].id == dealer_id) {
364
-          return this.dealer[i].dealer_name;
374
+          return this.dealer[i].dealer_name
365
         }
375
         }
366
       }
376
       }
367
     },
377
     },
368
     handleEdit: function(index, row) {
378
     handleEdit: function(index, row) {
369
       this.$router.push({
379
       this.$router.push({
370
-        name: "stockOutDetail",
380
+        name: 'stockOutDetail',
371
         query: { id: row.id, type: this.type }
381
         query: { id: row.id, type: this.type }
372
-      });
382
+      })
373
     },
383
     },
374
     handleDelete: function(index, row) {
384
     handleDelete: function(index, row) {
375
-      const ids = [];
376
-      ids.push(row.id);
377
-      const idStr = ids.join(",");
385
+      const ids = []
386
+      ids.push(row.id)
387
+      const idStr = ids.join(',')
378
 
388
 
379
       const params = {
389
       const params = {
380
         ids: idStr
390
         ids: idStr
381
-      };
391
+      }
382
 
392
 
383
-      this.$confirm("确认删除出库单记录?", "删除出库单记录", {
384
-        confirmButtonText: "确定",
385
-        cancelButtonText: "取消",
386
-        type: "warning"
393
+      this.$confirm('确认删除出库单记录?', '删除出库单记录', {
394
+        confirmButtonText: '确定',
395
+        cancelButtonText: '取消',
396
+        type: 'warning'
387
       })
397
       })
388
         .then(() => {
398
         .then(() => {
389
           deleteWarehouseOut(params).then(response => {
399
           deleteWarehouseOut(params).then(response => {
390
             if (response.data.state == 0) {
400
             if (response.data.state == 0) {
391
-              this.$message.error(response.data.msg);
392
-              return false;
401
+              this.$message.error(response.data.msg)
402
+              return false
393
             } else {
403
             } else {
394
               this.$notify({
404
               this.$notify({
395
-                title: "成功",
396
-                message: "删除成功",
397
-                type: "success",
405
+                title: '成功',
406
+                message: '删除成功',
407
+                type: 'success',
398
                 duration: 2000
408
                 duration: 2000
399
-              });
409
+              })
400
               for (let i = 0; i < ids.length; i++) {
410
               for (let i = 0; i < ids.length; i++) {
401
                 for (let y = 0; y < this.warehouseOutDate.length; y++) {
411
                 for (let y = 0; y < this.warehouseOutDate.length; y++) {
402
                   if (ids[i] == this.warehouseOutDate[y].id) {
412
                   if (ids[i] == this.warehouseOutDate[y].id) {
403
-                    this.warehouseOutDate.splice(y, 1);
413
+                    this.warehouseOutDate.splice(y, 1)
404
                   }
414
                   }
405
                 }
415
                 }
406
               }
416
               }
407
             }
417
             }
408
-          });
418
+          })
409
         })
419
         })
410
-        .catch(() => {});
420
+        .catch(() => {})
411
     },
421
     },
412
     changeAllSelected: function(val) {
422
     changeAllSelected: function(val) {
413
       if (val) {
423
       if (val) {
414
-        this.$refs.multipleTable.toggleAllSelection();
424
+        this.$refs.multipleTable.toggleAllSelection()
415
       } else {
425
       } else {
416
-        this.$refs.multipleTable.clearSelection();
426
+        this.$refs.multipleTable.clearSelection()
417
       }
427
       }
418
     },
428
     },
419
     select(selection) {
429
     select(selection) {
420
-      this.selectedTableData = selection;
430
+      this.selectedTableData = selection
421
     },
431
     },
422
     batchDelete() {
432
     batchDelete() {
423
       if (this.selectedTableData.length <= 0) {
433
       if (this.selectedTableData.length <= 0) {
424
-        this.$message.error("请选择要删除的记录");
425
-        return;
434
+        this.$message.error('请选择要删除的记录')
435
+        return
426
       }
436
       }
427
-      const ids = [];
437
+      const ids = []
428
       for (let i = 0; i < this.selectedTableData.length; i++) {
438
       for (let i = 0; i < this.selectedTableData.length; i++) {
429
-        ids.push(this.selectedTableData[i].id);
439
+        ids.push(this.selectedTableData[i].id)
430
       }
440
       }
431
-      const idStr = ids.join(",");
441
+      const idStr = ids.join(',')
432
       const params = {
442
       const params = {
433
         ids: idStr
443
         ids: idStr
434
-      };
435
-      this.$confirm("确认删除退货单记录?", "删除退货单记录", {
436
-        confirmButtonText: "确定",
437
-        cancelButtonText: "取消",
438
-        type: "warning"
444
+      }
445
+      this.$confirm('确认删除退货单记录?', '删除退货单记录', {
446
+        confirmButtonText: '确定',
447
+        cancelButtonText: '取消',
448
+        type: 'warning'
439
       })
449
       })
440
         .then(() => {
450
         .then(() => {
441
           deleteWarehouseOut(params).then(response => {
451
           deleteWarehouseOut(params).then(response => {
442
             if (response.data.state == 0) {
452
             if (response.data.state == 0) {
443
-              this.$message.error(response.data.msg);
444
-              return false;
453
+              this.$message.error(response.data.msg)
454
+              return false
445
             } else {
455
             } else {
446
               this.$notify({
456
               this.$notify({
447
-                title: "成功",
448
-                message: "删除成功",
449
-                type: "success",
457
+                title: '成功',
458
+                message: '删除成功',
459
+                type: 'success',
450
                 duration: 2000
460
                 duration: 2000
451
-              });
461
+              })
452
 
462
 
453
               for (let i = 0; i < ids.length; i++) {
463
               for (let i = 0; i < ids.length; i++) {
454
                 for (let y = 0; y < this.warehouseOutDate.length; y++) {
464
                 for (let y = 0; y < this.warehouseOutDate.length; y++) {
455
                   if (ids[i] == this.warehouseOutDate[y].id) {
465
                   if (ids[i] == this.warehouseOutDate[y].id) {
456
-                    this.warehouseOutDate.splice(y, 1);
466
+                    this.warehouseOutDate.splice(y, 1)
457
                   }
467
                   }
458
                 }
468
                 }
459
               }
469
               }
460
             }
470
             }
461
-          });
471
+          })
462
         })
472
         })
463
-        .catch(() => {});
473
+        .catch(() => {})
464
     }
474
     }
465
   }
475
   }
466
-};
476
+}
467
 </script>
477
 </script>
468
 
478
 
469
 <style rel="stylesheet/scss" lang="scss">
479
 <style rel="stylesheet/scss" lang="scss">

+ 80 - 9
src/xt_pages/upload/fast/FastCountry.vue View File

6
       v-on:inspection="inspectionClick()"
6
       v-on:inspection="inspectionClick()"
7
     ></fast-patients-sidebar>
7
     ></fast-patients-sidebar>
8
     <!-- <fast-upload-detail v-if="isShow == 1"  :id="patientID"  :is-edit='true' :class='panelClass'></fast-upload-detail> -->
8
     <!-- <fast-upload-detail v-if="isShow == 1"  :id="patientID"  :is-edit='true' :class='panelClass'></fast-upload-detail> -->
9
-    <one v-if="isShow == 1" :id="patientID" :is-edit='true' :class='panelClass'></one>
10
-    <two v-if="isShow == 2"
9
+    <one ref="one" v-if="isShow == 1" :patientID="patientID" :is-edit='true' :class='panelClass' @></one>
10
+    <two ref="two" v-if="isShow == 2"
11
          :id="patientID"
11
          :id="patientID"
12
          :is-edit="true"
12
          :is-edit="true"
13
          :class="panelClass"></two>
13
          :class="panelClass"></two>
14
-    <!--<fast-upload-inspectiton-detail-->
15
-    <!--v-if="isShow == 2"-->
16
-    <!--:id="patientID"-->
17
-    <!--:is-edit="true"-->
18
-    <!--:class="panelClass"-->
19
-    <!--&gt;</fast-upload-inspectiton-detail>-->
20
   </div>
14
   </div>
21
 </template>
15
 </template>
22
 
16
 
39
     },
33
     },
40
     data() {
34
     data() {
41
       return {
35
       return {
42
-        patientID: 1,
36
+        patientID: 0,
43
         panelClass: 'patient-app-container',
37
         panelClass: 'patient-app-container',
44
         patientInfo: {
38
         patientInfo: {
45
           id: 0
39
           id: 0
64
             this.patientsList = response.data.data.patients
58
             this.patientsList = response.data.data.patients
65
             if (type == 1) {
59
             if (type == 1) {
66
               this.patientID = this.patientsList[0].id
60
               this.patientID = this.patientsList[0].id
61
+
67
             } else {
62
             } else {
68
               this.patientID = this.$route.query.id
63
               this.patientID = this.$route.query.id
69
             }
64
             }
65
+            this.$nextTick(() => {
66
+              this.$refs.one.fetchPatient(this.patientID)
67
+
68
+            })
70
           }
69
           }
71
         })
70
         })
72
       },
71
       },
73
       patientInfoClick: function() {
72
       patientInfoClick: function() {
74
         this.isShow = 1
73
         this.isShow = 1
74
+        this.$nextTick(() => {
75
+          this.$refs.one.fetchPatient(this.patientID)
76
+
77
+        })
78
+
75
       },
79
       },
76
       inspectionClick: function() {
80
       inspectionClick: function() {
77
         this.isShow = 2
81
         this.isShow = 2
82
+        this.$nextTick(() => {
83
+          var start_time = new Date(this.getQuarterStartDate().replace(/-/g, '/')).getTime() / 1000
84
+          var end_time = new Date(this.getQuarterEndDate().replace(/-/g, '/')).getTime() / 1000
85
+          this.$refs.two.GetInitInspections()
86
+          this.$refs.two.GetUploadInspections(this.patientID,start_time,end_time,1,"1")
87
+          this.$refs.two.GetUploadInspections(this.patientID,start_time,end_time,2,"2-4-20")
88
+          this.$refs.two.GetUploadInspections(this.patientID,start_time,end_time,3,"21")
89
+          this.$refs.two.GetUploadInspections(this.patientID,start_time,end_time,4,"2-4-15-24-25")
90
+          this.$refs.two.GetUploadInspections(this.patientID,start_time,end_time,5,"15-23")
91
+          this.$refs.two.GetUploadInspections(this.patientID,start_time,end_time,6,"14")
92
+          this.$refs.two.GetUploadInspections(this.patientID,start_time,end_time,7,"22")
93
+        })
94
+
95
+      }, getQuarterStartDate: function() {
96
+        var now = new Date() //当前日期
97
+        var nowYear = now.getFullYear() //当前年
98
+        nowYear += (nowYear < 2000) ? 1900 : 0
99
+
100
+        var quarterStartDate = new Date(nowYear, this.getQuarterStartMonth(), 1)
101
+        return this.formatDate(quarterStartDate)
102
+      }, getQuarterEndDate: function() {
103
+        var now = new Date() //当前日期
104
+        var nowYear = now.getFullYear() //当前年
105
+        nowYear += (nowYear < 2000) ? 1900 : 0
106
+        var quarterEndMonth = this.getQuarterStartMonth() + 2
107
+        var quarterStartDate = new Date(nowYear, quarterEndMonth, this.getMonthDays(quarterEndMonth))
108
+        return this.formatDate(quarterStartDate)
109
+      }, formatDate: function(date) {
110
+        var myyear = date.getFullYear()
111
+        var mymonth = date.getMonth() + 1
112
+        var myweekday = date.getDate()
113
+
114
+        if (mymonth < 10) {
115
+          mymonth = '0' + mymonth
116
+        }
117
+        if (myweekday < 10) {
118
+          myweekday = '0' + myweekday
119
+        }
120
+        return (myyear + '-' + mymonth + '-' + myweekday)
121
+      }, getQuarterStartMonth: function() {
122
+        var now = new Date() //当前日期
123
+        var nowMonth = now.getMonth() //当前月
124
+
125
+        var quarterStartMonth = 0
126
+        if (nowMonth < 3) {
127
+          quarterStartMonth = 0
128
+        }
129
+        if (2 < nowMonth && nowMonth < 6) {
130
+          quarterStartMonth = 3
131
+        }
132
+        if (5 < nowMonth && nowMonth < 9) {
133
+          quarterStartMonth = 6
134
+        }
135
+        if (nowMonth > 8) {
136
+          quarterStartMonth = 9
137
+        }
138
+        return quarterStartMonth
139
+      },  //获得某月的天数
140
+      getMonthDays(myMonth) {
141
+        var now = new Date() //当前日期
142
+        var nowYear = now.getYear() //当前年
143
+        nowYear += (nowYear < 2000) ? 1900 : 0
144
+        var monthStartDate = new Date(nowYear, myMonth, 1)
145
+        var monthEndDate = new Date(nowYear, myMonth + 1, 1)
146
+        var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24)
147
+        return days
78
       }
148
       }
149
+
79
     }
150
     }
80
   }
151
   }
81
 </script>
152
 </script>

+ 3 - 3
src/xt_pages/upload/fast/FastPatientsSidebar.vue View File

87
     handleNodeClick(data) {
87
     handleNodeClick(data) {
88
       var name = data.name;
88
       var name = data.name;
89
       if (name == "1-1") {
89
       if (name == "1-1") {
90
-        this.$emit("patient");
90
+        this.$emit("patient",this.selectID);
91
       } else if (name == "1-2") {
91
       } else if (name == "1-2") {
92
-        this.$emit("inspection");
92
+        this.$emit("inspection",this.selectID);
93
       }
93
       }
94
     },
94
     },
95
 
95
 
102
             for (let index = 0; index < len; index++) {
102
             for (let index = 0; index < len; index++) {
103
               if (this.patientsList[index].id == this.id) {
103
               if (this.patientsList[index].id == this.id) {
104
                 this.currentPatient = this.patientsList[index];
104
                 this.currentPatient = this.patientsList[index];
105
-
106
                 this.selectID = this.patientsList[index].id;
105
                 this.selectID = this.patientsList[index].id;
107
                 this.$emit("tran-patient", this.currentPatient);
106
                 this.$emit("tran-patient", this.currentPatient);
108
                 break;
107
                 break;
108
+
109
               }
109
               }
110
             }
110
             }
111
           }
111
           }

+ 2 - 1
src/xt_pages/upload/fast/FastProvince.vue View File

29
               :value="item.id">
29
               :value="item.id">
30
             </el-option>
30
             </el-option>
31
           </el-select>
31
           </el-select>
32
-          <el-select v-model="form.city" disabled filterable placeholder="请选择" @change="changeCity">
32
+          <el-select v-model="form.city" disabled filterable placeholder="请选择" >
33
             <el-option
33
             <el-option
34
               v-for="item in citys"
34
               v-for="item in citys"
35
               :key="item.id"
35
               :key="item.id"
57
         dialogVisible: false,
57
         dialogVisible: false,
58
         end_time: '',
58
         end_time: '',
59
         provinces: [],
59
         provinces: [],
60
+        citys:[],
60
         form: {
61
         form: {
61
           province: '',
62
           province: '',
62
           city: ''
63
           city: ''

+ 0 - 1
src/xt_pages/upload/fast/FastUploadDetail.vue View File

384
       fetchPatient(id) {
384
       fetchPatient(id) {
385
         fetchPatient(id)
385
         fetchPatient(id)
386
           .then(response => {
386
           .then(response => {
387
-            console.log(response.data.data)
388
             if (response.data.state === 1) {
387
             if (response.data.state === 1) {
389
               this.$emit('tran-patient-info', response.data.data.patient)
388
               this.$emit('tran-patient-info', response.data.data.patient)
390
               var patietInfo = response.data.data.patient
389
               var patietInfo = response.data.data.patient

+ 373 - 54
src/xt_pages/upload/fast/One.vue View File

7
       <div class="row">
7
       <div class="row">
8
         <div class="rowOne">
8
         <div class="rowOne">
9
           <p class="rowName">首次诊治时间:</p>
9
           <p class="rowName">首次诊治时间:</p>
10
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
10
+          <el-input placeholder="请输入内容" v-model="form.first_treatment_date" :disabled="true">
11
           </el-input>
11
           </el-input>
12
-          <div class="btn">复制</div>
12
+          <div class="btn" v-clipboard:copy="form.first_treatment_date"
13
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
13
         </div>
14
         </div>
14
         <div class="rowOne">
15
         <div class="rowOne">
15
           <p class="rowName1">
16
           <p class="rowName1">
16
             首次肾脏替代治疗时间 :
17
             首次肾脏替代治疗时间 :
17
           </p>
18
           </p>
18
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
19
+          <el-input placeholder="请输入内容" v-model="form.firstDialysisDate" :disabled="true">
19
           </el-input>
20
           </el-input>
20
-          <div class="btn">复制</div>
21
+          <div class="btn" v-clipboard:copy="form.firstDialysisDate"
22
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
21
         </div>
23
         </div>
22
         <div class="rowOne">
24
         <div class="rowOne">
23
           <p class="rowName">创建者:</p>
25
           <p class="rowName">创建者:</p>
24
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
26
+          <el-input placeholder="请输入内容" v-model="form.registrars" :disabled="true">
25
           </el-input>
27
           </el-input>
26
-          <div class="btn">复制</div>
28
+          <div class="btn" v-clipboard:copy="form.registrars"
29
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
27
         </div>
30
         </div>
28
         <div class="rowOne">
31
         <div class="rowOne">
29
           <p class="rowName">创建日期:</p>
32
           <p class="rowName">创建日期:</p>
30
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
33
+          <el-input placeholder="请输入内容" v-model="form.create_time" :disabled="true">
31
           </el-input>
34
           </el-input>
32
-          <div class="btn">复制</div>
35
+          <div class="btn" v-clipboard:copy="form.create_time"
36
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
33
         </div>
37
         </div>
34
       </div>
38
       </div>
35
       <div class="row">
39
       <div class="row">
36
         <div class="rowOne">
40
         <div class="rowOne">
37
           <p class="rowName">姓名:</p>
41
           <p class="rowName">姓名:</p>
38
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
42
+          <el-input placeholder="请输入内容" v-model="form.name" :disabled="true">
39
           </el-input>
43
           </el-input>
40
-          <div class="btn">复制</div>
44
+          <div class="btn" v-clipboard:copy="form.name"
45
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
41
         </div>
46
         </div>
42
         <div class="rowOne">
47
         <div class="rowOne">
43
           <p class="rowName">性别:</p>
48
           <p class="rowName">性别:</p>
44
           <div class="radioOne">
49
           <div class="radioOne">
45
             <template>
50
             <template>
46
-              <el-radio v-model="radio" label="1">男</el-radio>
47
-              <el-radio v-model="radio" label="2">女</el-radio>
51
+              <el-radio v-model="form.gender" label="1">男</el-radio>
52
+              <el-radio v-model="form.gender" label="2">女</el-radio>
48
             </template>
53
             </template>
49
           </div>
54
           </div>
50
         </div>
55
         </div>
51
         <div class="rowOne">
56
         <div class="rowOne">
52
           <p class="rowName">证件类型:</p>
57
           <p class="rowName">证件类型:</p>
53
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
58
+          <el-input placeholder="请输入内容" :disabled="true" v-model="form.id_type">
54
           </el-input>
59
           </el-input>
55
-          <div class="btn">复制</div>
60
+          <div class="btn" v-clipboard:copy="form.id_type"
61
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
56
         </div>
62
         </div>
57
       </div>
63
       </div>
58
       <div class="row">
64
       <div class="row">
59
         <div class="rowOne">
65
         <div class="rowOne">
60
           <p class="rowName">身份证号:</p>
66
           <p class="rowName">身份证号:</p>
61
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
67
+          <el-input placeholder="请输入内容" style="width: 200px;" v-model="form.idCardNo" :disabled="true">
62
           </el-input>
68
           </el-input>
63
-          <div class="btn">复制</div>
69
+          <div class="btn" v-clipboard:copy="form.idCardNo"
70
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
64
         </div>
71
         </div>
65
       </div>
72
       </div>
66
       <div class="row">
73
       <div class="row">
67
         <div class="rowOne">
74
         <div class="rowOne">
68
-          <p class="rowName">族:</p>
69
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
75
+          <p class="rowName">族:</p>
76
+          <el-input placeholder="请输入内容" v-model="form.nation" :disabled="true">
70
           </el-input>
77
           </el-input>
71
         </div>
78
         </div>
72
         <div class="rowOne">
79
         <div class="rowOne">
73
           <p class="rowName">
80
           <p class="rowName">
74
             婚姻状况:
81
             婚姻状况:
75
           </p>
82
           </p>
76
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
83
+          <el-input placeholder="请输入内容"  :disabled="true" v-model="form.maritalStatus">
77
           </el-input>
84
           </el-input>
85
+
78
         </div>
86
         </div>
79
         <div class="rowOne">
87
         <div class="rowOne">
80
           <p class="rowName">年龄:</p>
88
           <p class="rowName">年龄:</p>
81
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
89
+          <el-input placeholder="请输入内容" v-model="form.age" :disabled="true">
82
           </el-input>
90
           </el-input>
83
-          <div class="btn">复制</div>
91
+          <div class="btn" v-clipboard:copy="form.age"
92
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
84
         </div>
93
         </div>
85
         <div class="rowOne">
94
         <div class="rowOne">
86
           <p class="rowName">出生日期:</p>
95
           <p class="rowName">出生日期:</p>
87
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
96
+          <el-input placeholder="请输入内容" v-model="form.birth" :disabled="true">
88
           </el-input>
97
           </el-input>
89
         </div>
98
         </div>
90
       </div>
99
       </div>
91
       <div class="row">
100
       <div class="row">
92
         <div class="rowOne">
101
         <div class="rowOne">
93
           <p class="rowName">教育程度:</p>
102
           <p class="rowName">教育程度:</p>
94
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
103
+          <el-input placeholder="请输入内容" style="width: 270px;" v-model="form.education" :disabled="true">
95
           </el-input>
104
           </el-input>
96
         </div>
105
         </div>
97
         <div class="rowOne">
106
         <div class="rowOne">
98
           <p class="rowName">
107
           <p class="rowName">
99
             职业:
108
             职业:
100
           </p>
109
           </p>
101
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
110
+          <el-input placeholder="请输入内容"  style="width: 270px;" v-model="form.profession" :disabled="true">
102
           </el-input>
111
           </el-input>
103
         </div>
112
         </div>
104
       </div>
113
       </div>
105
       <div class="row">
114
       <div class="row">
106
         <div class="rowOne">
115
         <div class="rowOne">
107
           <p class="rowName">门诊号:</p>
116
           <p class="rowName">门诊号:</p>
108
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
117
+          <el-input placeholder="请输入内容" v-if="form.source == 1" v-model="form.admissionNumber" :disabled="true">
118
+          </el-input>
119
+          <el-input placeholder="请输入内容" v-if="form.source == 2"  :disabled="true">
109
           </el-input>
120
           </el-input>
110
-          <div class="btn">复制</div>
121
+          <div class="btn"  v-clipboard:copy="form.admissionNumber"
122
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
111
         </div>
123
         </div>
112
         <div class="rowOne">
124
         <div class="rowOne">
113
           <p class="rowName">
125
           <p class="rowName">
114
             住院号:
126
             住院号:
115
           </p>
127
           </p>
116
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
128
+          <el-input placeholder="请输入内容" v-if="form.source == 2" v-model="form.admissionNumber" :disabled="true">
129
+          </el-input>
130
+          <el-input placeholder="请输入内容" v-if="form.source == 1"  :disabled="true">
117
           </el-input>
131
           </el-input>
132
+          <div class="btn"  v-clipboard:copy="form.admissionNumber"
133
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
118
         </div>
134
         </div>
119
         <div class="rowOne">
135
         <div class="rowOne">
120
           <p class="rowName">透析病案号:</p>
136
           <p class="rowName">透析病案号:</p>
121
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
137
+          <el-input placeholder="请输入内容" v-model="form.dialysisNo" :disabled="true">
122
           </el-input>
138
           </el-input>
123
-          <div class="btn">复制</div>
139
+          <div class="btn" v-clipboard:copy="form.dialysisNo"
140
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
124
         </div>
141
         </div>
125
         <div class="rowOne">
142
         <div class="rowOne">
126
           <p class="rowName">透析龄(月):</p>
143
           <p class="rowName">透析龄(月):</p>
127
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
144
+          <el-input placeholder="请输入内容" v-model="form.dialysis_age" :disabled="true">
128
           </el-input>
145
           </el-input>
129
-          <div class="btn">复制</div>
146
+          <div class="btn" v-clipboard:copy="form.dialysis_age"
147
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
130
         </div>
148
         </div>
131
       </div>
149
       </div>
132
       <div class="row1">
150
       <div class="row1">
134
           <p class="rowName">费别:</p>
152
           <p class="rowName">费别:</p>
135
           <div class="radioOne">
153
           <div class="radioOne">
136
             <template>
154
             <template>
137
-              <el-radio v-model="radio" label="1">基本医保</el-radio>
138
-              <el-radio v-model="radio" label="2">新农合</el-radio>
139
-              <el-radio v-model="radio" label="2">自费医疗</el-radio>
140
-              <el-radio v-model="radio" label="2">公费医疗</el-radio>
141
-              <el-radio v-model="radio" label="2">商业保险</el-radio>
142
-              <el-radio v-model="radio" label="2">军队医疗</el-radio>
143
-              <el-radio v-model="radio" label="2">其他</el-radio>
155
+              <el-radio v-model="form.expense_kind"  label="1">基本医保</el-radio>
156
+              <el-radio  v-model="form.expense_kind" label="2">新农合</el-radio>
157
+              <el-radio  v-model="form.expense_kind" label="3">自费医疗</el-radio>
158
+              <el-radio  v-model="form.expense_kind" label="4">公费医疗</el-radio>
159
+              <el-radio v-model="form.expense_kind" label="5">商业保险</el-radio>
160
+              <el-radio  v-model="form.expense_kind" label="6">军队医疗</el-radio>
161
+              <el-radio  v-model="form.expense_kind" label="7">其他</el-radio>
144
             </template>
162
             </template>
145
           </div>
163
           </div>
146
         </div>
164
         </div>
148
       <div class="row1">
166
       <div class="row1">
149
         <div class="line">
167
         <div class="line">
150
           <p class="rowName">通信地址:</p>
168
           <p class="rowName">通信地址:</p>
151
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
169
+          <el-input placeholder="请输入内容"  :disabled="true">
152
           </el-input
170
           </el-input
153
-          ><el-input placeholder="请输入内容" v-model="input" :disabled="true">
171
+          ><el-input placeholder="请输入内容" :disabled="true">
154
           </el-input
172
           </el-input
155
-          ><el-input placeholder="请输入内容" v-model="input" :disabled="true">
173
+          ><el-input placeholder="请输入内容"  :disabled="true">
156
           </el-input>
174
           </el-input>
157
         </div>
175
         </div>
158
         <div class="rowOne">
176
         <div class="rowOne">
159
-          <p class="rowName">门诊号:</p>
160
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
177
+          <p class="rowName">具体地址:</p>
178
+          <el-input placeholder="请输入内容" v-model="form.homeAddress" :disabled="true">
161
           </el-input>
179
           </el-input>
162
-          <div class="btn">复制</div>
180
+          <div class="btn" v-clipboard:copy="form.homeAddress"
181
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
163
         </div>
182
         </div>
164
       </div>
183
       </div>
165
       <div class="row">
184
       <div class="row">
166
         <div class="rowOne">
185
         <div class="rowOne">
167
           <p class="rowName">联系人姓名:</p>
186
           <p class="rowName">联系人姓名:</p>
168
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
187
+          <el-input placeholder="请输入内容" v-model="form.contact_name" :disabled="true">
169
           </el-input>
188
           </el-input>
170
-          <div class="btn">复制</div>
189
+          <div class="btn" v-clipboard:copy="form.contact_name"
190
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
171
         </div>
191
         </div>
172
         <div class="rowTwo">
192
         <div class="rowTwo">
173
           <p class="rowName1">
193
           <p class="rowName1">
174
             固定电话 &ensp;&ensp;&ensp;&ensp;(电话):
194
             固定电话 &ensp;&ensp;&ensp;&ensp;(电话):
175
           </p>
195
           </p>
176
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
177
-          </el-input>
178
-          <div class="btn">复制</div>
179
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
196
+          <el-input placeholder="请输入内容" v-model="form.tell_phone" :disabled="true">
180
           </el-input>
197
           </el-input>
181
-          <div class="btn">复制</div>
198
+          <div class="btn" v-clipboard:copy="form.tell_phone"
199
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
182
         </div>
200
         </div>
183
         <div class="rowOne">
201
         <div class="rowOne">
184
           <p class="rowName1">
202
           <p class="rowName1">
185
             联系电话 &ensp;&ensp;&ensp;&ensp;(电话):
203
             联系电话 &ensp;&ensp;&ensp;&ensp;(电话):
186
           </p>
204
           </p>
187
-          <el-input placeholder="请输入内容" v-model="input" :disabled="true">
205
+          <el-input placeholder="请输入内容" v-model="form.homeTelephone" :disabled="true">
188
           </el-input>
206
           </el-input>
189
-          <div class="btn">复制</div>
207
+          <div class="btn" v-clipboard:copy="form.homeTelephone"
208
+               v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
190
         </div>
209
         </div>
191
       </div>
210
       </div>
192
     </div>
211
     </div>
194
   </div>
213
   </div>
195
 
214
 
196
 </template>
215
 </template>
216
+<script>
217
+  import { getDataConfig } from '@/utils/data'
218
+  import {
219
+    uParseTime
220
+  } from '@/utils/tools'
221
+  import {
222
+    fetchPatient
223
+  } from '@/api/patient'
224
+  import { fetchAllAdminUsers } from '@/api/doctor'
225
+  const defaultForm = {
226
+    avatar: '',
227
+    patientType: '',
228
+    dialysisNo: '',
229
+    admissionNumber: '',
230
+    source: '',
231
+    lapseto: '',
232
+    partition: '',
233
+    bed: '',
234
+    name: '',
235
+    gender: '',
236
+    nation: '',
237
+    native_place: '',
238
+    maritalStatus: '',
239
+    idCardNo: '',
240
+    birth: '',
241
+    age: '',
242
+    reimbursementWayID: '',
243
+    healthCareNo: '',
244
+    healthCareDueDate: '',
245
+    height: '',
246
+    blood: '',
247
+    rh: '',
248
+    healthCareDueAlertDate: '',
249
+    education: '',
250
+    profession: '',
251
+    phone: '',
252
+    homeTelephone: '',
253
+    homeAddress: '',
254
+    work: '',
255
+    receivingDate: '',
256
+    firstDialysisDate: '',
257
+    dialysisAge: '',
258
+    induction: '',
259
+    initial: '',
260
+    dialysisTotal: '',
261
+    contagions: [],
262
+    doctor: '',
263
+    nurse: '',
264
+    assessment: '',
265
+    diseases: [],
266
+    diagnose: '',
267
+    registrars: '',
268
+    patient_complains: '',
269
+    present_history: '',
270
+    past_history: '',
271
+    temperature: '',
272
+    pulse: '',
273
+    respiratory: '',
274
+    sbp: '',
275
+    dbp: '',
276
+    record_date: '',
277
+    response_result: '',
278
+    is_infectious: '',
279
+    formItem: [],
280
+    tell_phone:'',
281
+    first_treatment_date:'',
282
+    dialysis_age:'',
283
+    expense_kind:'',
284
+    contact_name:'',
285
+    create_time:'',
286
+    id_type:"身份证"
287
+  }
288
+
289
+  export default {
290
+    name: 'One',
291
+    components: { },
292
+
293
+    data() {
294
+      return {
295
+        expenseOptions:[
296
+          {id:1,name:"基本医保"},
297
+          {id:2,name:"新农合"},
298
+          {id:3,name:"自费医疗"},
299
+          {id:4,name:"公费医疗"},
300
+          {id:5,name:"商业保险"},
301
+          {id:6,name:"军队医疗"},
302
+          {id:7,name:"其他"},
303
+        ],
304
+        form: Object.assign({}, defaultForm),
305
+        adminUserOptions:[],
306
+        maritalOptions:[],
307
+        educationOptions: [],
308
+        professionOptions:[],
309
+
310
+      }
311
+    },
312
+    created() {
313
+      this.maritalOptions = getDataConfig('patient', 'marital_options')
314
+      this.educationOptions = getDataConfig('patient', 'education_types')
315
+      this.professionOptions = getDataConfig('patient', 'profession_options')
316
+      this.fetchAllAdminUsers()
317
+    },
318
+    methods: {
319
+      getTime(val){
320
+        return uParseTime(val, '{y}年{m}月{d}日')
321
+      },
322
+
323
+      getZones() {
324
+        getZones().then(response => {
325
+          if (response.data.state === 1) {
326
+            this.partitionOptions = response.data.data.zones
327
+          }
328
+        })
329
+      },
330
+      fetchPatient(id) {
331
+        fetchPatient(id)
332
+          .then(response => {
333
+            if (response.data.state === 1) {
334
+              var patietInfo = response.data.data.patient
335
+              this.form.avatar = patietInfo.avatar
336
+              this.form.name = patietInfo.name
337
+              this.form.alias = patietInfo.alias
338
+              this.form.lapseto = patietInfo.lapseto
339
+              this.form.idCardNo = patietInfo.id_card_no
340
+              this.form.dialysisNo = patietInfo.dialysis_no
341
+              this.form.gender = patietInfo.gender
342
+              this.form.is_infectious = patietInfo.is_infectious
343
+              // this.form.record_date = patietInfo.is_infectious
344
+              this.form.response_result = patietInfo.response_result
345
+              this.form.remind_cycle = patietInfo.remind_cycle
346
+              this.infections = response.data.data.infections
347
+              this.form.formItem = this.infections
348
+              if (patietInfo.gender === 1 || patietInfo.gender === 2) {
349
+                this.form.gender = patietInfo.gender.toString()
350
+              }
351
+              this.form.nation = patietInfo.nation
352
+              this.form.native_place = patietInfo.native_place
353
+              this.form.birth = uParseTime(patietInfo.birthday, '{y}-{m}-{d}')
354
+              this.form.create_time = uParseTime(patietInfo.created_time, '{y}-{m}-{d}')
355
+
356
+              this.form.firstDialysisDate = uParseTime(patietInfo.first_dialysis_date, '{y}-{m}-{d}')
357
+              this.form.height = patietInfo.height + ''
358
+              if (patietInfo.marital_status > 0) {
359
+                this.form.maritalStatus = patietInfo.marital_status
360
+              }
361
+              this.form.children = patietInfo.children
362
+              this.form.admissionNumber = patietInfo.admission_number
363
+              if (patietInfo.reimbursement_way_id > 0) {
364
+                this.form.reimbursementWayID = patietInfo.reimbursement_way_id
365
+              }
366
+              this.form.healthCareNo = patietInfo.health_care_no
367
+              this.form.phone = patietInfo.phone
368
+              this.form.homeTelephone = patietInfo.home_telephone
369
+              this.form.relative_phone = patietInfo.relative_phone
370
+              this.form.relative_relations = patietInfo.relative_relations
371
+              this.form.homeAddress = patietInfo.home_address
372
+              this.form.work = patietInfo.work_unit
373
+              this.form.unit_address = patietInfo.unit_address
374
+
375
+              if (patietInfo.age == 0) {
376
+                this.form.age = jsGetAge(this.form.birth, '-')
377
+              } else {
378
+                this.form.age = patietInfo.age
379
+              }
380
+
381
+              if (patietInfo.profession > 0) {
382
+                this.form.profession = patietInfo.profession
383
+              }
384
+              if (patietInfo.education_level > 0) {
385
+                this.form.education = patietInfo.education_level
386
+              }
387
+              if (patietInfo.source === 1 || patietInfo.source === 2) {
388
+                this.form.source = patietInfo.source
389
+              }
390
+              console.log("source:"+this.form.source)
391
+              if (patietInfo.lapseto === 1 || patietInfo.lapseto === 2) {
392
+                this.form.lapseto = patietInfo.lapseto
393
+              }
394
+              if (patietInfo.is_hospital_first_dialysis === 1 || patietInfo.is_hospital_first_dialysis === 2) {
395
+                this.form.is_hospital_first_dialysis = patietInfo.is_hospital_first_dialysis
396
+              }
397
+              if (patietInfo.first_dialysis_date !== 0) {
398
+                this.form.firstDialysisDate = uParseTime(
399
+                  patietInfo.first_dialysis_date,
400
+                  '{y}-{m}-{d}'
401
+                )
402
+              }
403
+              this.form.first_dialysis_hospital = patietInfo.first_dialysis_hospital
404
+              if (patietInfo.predialysis_condition.length > 0) {
405
+                this.form.predialysis_condition = patietInfo.predialysis_condition.split(',')
406
+              }
407
+              this.form.pre_hospital_dialysis_frequency = patietInfo.pre_hospital_dialysis_frequency
408
+              this.form.pre_hospital_dialysis_times = patietInfo.pre_hospital_dialysis_times
409
+              if (patietInfo.hospital_first_dialysis_date !== 0) {
410
+                this.form.hospital_first_dialysis_date = uParseTime(
411
+                  patietInfo.hospital_first_dialysis_date,
412
+                  '{y}-{m}-{d}'
413
+                )
414
+              }
415
+              this.form.contagions = response.data.data.contagions
416
+              this.form.diseases = response.data.data.diseases
417
+              this.form.remark = patietInfo.remark
418
+              this.form.diagnose = patietInfo.diagnose
419
+
420
+              this.form.patient_complains = patietInfo.patient_complains
421
+              this.form.present_history = patietInfo.present_history
422
+              this.form.past_history = patietInfo.past_history
423
+              this.form.temperature = patietInfo.temperature
424
+              this.form.pulse = patietInfo.pulse
425
+              this.form.respiratory = patietInfo.respiratory
426
+              this.form.sbp = patietInfo.sbp
427
+              this.form.dbp = patietInfo.dbp
428
+
429
+              this.form.contact_name = patietInfo.contact_name
430
+              this.form.tell_phone = patietInfo.tell_phone
431
+              this.form.dialysis_age = patietInfo.dialysis_age
432
+              if( patietInfo.expense_kind == 0){
433
+                this.form.expense_kind = ""
434
+              }else{
435
+                this.form.expense_kind = patietInfo.expense_kind.toString()
436
+              }
437
+
438
+
439
+
440
+              this.form.first_treatment_date =  uParseTime(
441
+                patietInfo.first_treatment_date,
442
+                '{y}-{m}-{d}'
443
+              )
444
+
445
+              if (patietInfo.registrars_id > 0) {
446
+                var eLen = this.adminUserOptions.length
447
+                for (let index = 0; index < eLen; index++) {
448
+                  if (this.adminUserOptions[index].id === patietInfo.registrars_id) {
449
+                    this.form.registrars = this.adminUserOptions[index].name
450
+                    break
451
+                  }
452
+                }
453
+              } else {
454
+                this.form.registrars = ''
455
+              }
456
+
457
+
458
+              this.form.maritalStatus = this.getMaritalType(patietInfo.marital_status)
459
+              this.form.education = this.getEducationType(patietInfo.education_level)
460
+              this.form.profession = this.getProfessionType(patietInfo.profession)
461
+
462
+
463
+
464
+
465
+
466
+
467
+            } else {
468
+              console.log('patient get err state')
469
+              this.$notify.error({
470
+                title: '错误',
471
+                message: '网络异常'
472
+              })
473
+            }
474
+          }).catch(err => {
475
+          this.$notify.error({
476
+            title: '错误',
477
+            message: '网络异常'
478
+          })
479
+        })
480
+      },
481
+      fetchAllAdminUsers() {
482
+        fetchAllAdminUsers().then(response => {
483
+          if (response.data.state === 1) {
484
+            this.adminUserOptions = response.data.data.users
485
+          }
486
+        })
487
+      },getMaritalType(id){
488
+        for(let i = 0; i < this.maritalOptions.length; i++){
489
+          if(this.maritalOptions[i].id == id){
490
+            return this.maritalOptions[i].name
491
+          }
492
+        }
493
+      },getEducationType(id){
494
+        for(let i = 0; i < this.educationOptions.length; i++){
495
+          if(this.educationOptions[i].id == id){
496
+            return this.educationOptions[i].name
497
+          }
498
+        }
499
+      },getProfessionType(id){
500
+        for(let i = 0; i < this.professionOptions.length; i++){
501
+          if(this.professionOptions[i].id == id){
502
+            return this.professionOptions[i].name
503
+          }
504
+        }
505
+      },onCopy(){
506
+        this.$message.success('复制成功')
507
+
508
+      },onError(){
509
+        this.$message.success('复制失败,请重试')
510
+      },
511
+
512
+    }
513
+  }
514
+</script>
515
+
197
 
516
 
198
 <style lang="scss">
517
 <style lang="scss">
199
 .basicInfo {
518
 .basicInfo {
216
     .rowOne {
535
     .rowOne {
217
       float: left;
536
       float: left;
218
       height: 36px;
537
       height: 36px;
219
-      width: 262px;
538
+      width: 350px;
220
       // line-height: 36px;
539
       // line-height: 36px;
221
       margin-right: 12px;
540
       margin-right: 12px;
222
       margin-bottom: 20px;
541
       margin-bottom: 20px;

File diff suppressed because it is too large
+ 638 - 207
src/xt_pages/upload/fast/Two.vue


+ 73 - 3
src/xt_pages/user/components/PatientDetail.vue View File

82
                   <el-date-picker v-model="form.birth" type="date" disabled placeholder="选择日期" :suffix-icon="'el-icon-menu'" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
82
                   <el-date-picker v-model="form.birth" type="date" disabled placeholder="选择日期" :suffix-icon="'el-icon-menu'" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
83
               </el-form-item>
83
               </el-form-item>
84
             </el-col>
84
             </el-col>
85
+
86
+
87
+            <el-col :span="8">
88
+              <el-form-item label="首次肾脏治疗时间 : " label-width="150px"  class="is-required" prop="birth" >
89
+                <el-date-picker v-model="form.firstDialysisDate" type="date" disabled placeholder="选择日期" :suffix-icon="'el-icon-menu'" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
90
+              </el-form-item>
91
+            </el-col>
92
+
93
+
94
+
85
             <el-col :span="8">
95
             <el-col :span="8">
86
               <el-form-item label="本人电话: " class="is-required" prop="phone">
96
               <el-form-item label="本人电话: " class="is-required" prop="phone">
87
                 <el-input v-model="form.phone" maxlength="20" disabled></el-input>
97
                 <el-input v-model="form.phone" maxlength="20" disabled></el-input>
88
               </el-form-item>
98
               </el-form-item>
89
             </el-col>
99
             </el-col>
100
+            <el-col :span="8">
101
+              <el-form-item label="家属姓名: " >
102
+                <el-input v-model="form.contact_name" maxlength="20" disabled></el-input>
103
+              </el-form-item>
104
+            </el-col>
90
             <el-col :span="8">
105
             <el-col :span="8">
91
               <el-form-item label="家属电话: " prop="homeTelephone">
106
               <el-form-item label="家属电话: " prop="homeTelephone">
92
                 <el-input v-model="form.homeTelephone" maxlength="20" disabled></el-input>
107
                 <el-input v-model="form.homeTelephone" maxlength="20" disabled></el-input>
239
                 </el-select>
254
                 </el-select>
240
               </el-form-item>
255
               </el-form-item>
241
             </el-col>
256
             </el-col>
257
+
258
+
259
+              <el-col :span="8">
260
+                <el-form-item label="固定电话 : ">
261
+                  <el-input v-model="form.tell_phone" maxlength="20" disabled></el-input>
262
+                </el-form-item>
263
+              </el-col>
264
+
265
+              <el-col :span="8">
266
+                <el-form-item label="费别 : ">
267
+                  <el-select v-model="form.expense_kind" disabled>
268
+                    <el-option v-for="item in expenseOptions" :key="item.id" :label="item.name" :value="item.id" />
269
+                  </el-select>
270
+                </el-form-item>
271
+              </el-col>
272
+
273
+              <el-col :span="8" >
274
+                <el-form-item label="透析龄(月): ">
275
+                  <el-input v-model="form.dialysis_age"  disabled></el-input>
276
+                </el-form-item>
277
+              </el-col>
278
+
279
+
242
             <el-col :span="8" >
280
             <el-col :span="8" >
243
               <el-form-item label="亲友电话: " prop="relative_phone">
281
               <el-form-item label="亲友电话: " prop="relative_phone">
244
                 <el-input v-model="form.relative_phone" maxlength="20" disabled></el-input>
282
                 <el-input v-model="form.relative_phone" maxlength="20" disabled></el-input>
354
         </el-form-item>
392
         </el-form-item>
355
       </el-col>
393
       </el-col>
356
       <el-col :span="6">
394
       <el-col :span="6">
357
-        <el-form-item label="首次透析日期 : "  prop="firstDialysisDate">
358
-            <el-date-picker v-model="form.firstDialysisDate" type="date" disabled format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
395
+        <el-form-item label="首次诊治日期 : "  >
396
+            <el-date-picker v-model="form.first_treatment_date" type="date" disabled format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
359
         </el-form-item>
397
         </el-form-item>
360
       </el-col>
398
       </el-col>
361
       <el-col :span="6" >
399
       <el-col :span="6" >
596
   record_date: '',
634
   record_date: '',
597
   response_result: '',
635
   response_result: '',
598
   is_infectious: '',
636
   is_infectious: '',
599
-  formItem: []
637
+  formItem: [],
638
+  tell_phone:'',
639
+  first_treatment_date:'',
640
+  dialysis_age:'',
641
+  expense_kind:'',
642
+  contact_name:'',
600
 }
643
 }
601
 
644
 
602
 export default {
645
 export default {
605
 
648
 
606
   data() {
649
   data() {
607
     return {
650
     return {
651
+      expenseOptions:[
652
+        {id:1,name:"基本医保"},
653
+        {id:2,name:"新农合"},
654
+        {id:3,name:"自费医疗"},
655
+        {id:4,name:"公费医疗"},
656
+        {id:5,name:"商业保险"},
657
+        {id:6,name:"军队医疗"},
658
+        {id:7,name:"其他"},
659
+      ],
660
+
608
       generic_info_fold: true,
661
       generic_info_fold: true,
609
       treat_info_fold: true,
662
       treat_info_fold: true,
610
       dialogFormVisible: false,
663
       dialogFormVisible: false,
642
       patientPrint: {},
695
       patientPrint: {},
643
       print_time: '',
696
       print_time: '',
644
 
697
 
698
+
699
+
645
       rules: {
700
       rules: {
646
         contagions: [
701
         contagions: [
647
           { type: 'array', required: false, trigger: 'change' }
702
           { type: 'array', required: false, trigger: 'change' }
776
             this.form.nation = patietInfo.nation
831
             this.form.nation = patietInfo.nation
777
             this.form.native_place = patietInfo.native_place
832
             this.form.native_place = patietInfo.native_place
778
             this.form.birth = uParseTime(patietInfo.birthday, '{y}-{m}-{d}')
833
             this.form.birth = uParseTime(patietInfo.birthday, '{y}-{m}-{d}')
834
+            this.form.firstDialysisDate = uParseTime(patietInfo.first_dialysis_date, '{y}-{m}-{d}')
779
             this.form.height = patietInfo.height + ''
835
             this.form.height = patietInfo.height + ''
780
             // this.form.age = jsGetAge(this.form.birth, "-");
836
             // this.form.age = jsGetAge(this.form.birth, "-");
781
             if (patietInfo.marital_status > 0) {
837
             if (patietInfo.marital_status > 0) {
848
             this.form.sbp = patietInfo.sbp
904
             this.form.sbp = patietInfo.sbp
849
             this.form.dbp = patietInfo.dbp
905
             this.form.dbp = patietInfo.dbp
850
 
906
 
907
+            this.form.contact_name = patietInfo.contact_name
908
+            this.form.tell_phone = patietInfo.tell_phone
909
+            this.form.dialysis_age = patietInfo.dialysis_age
910
+            if( patietInfo.expense_kind == 0){
911
+              this.form.expense_kind = ""
912
+            }else{
913
+              this.form.expense_kind = patietInfo.expense_kind
914
+            }
915
+
916
+            this.form.first_treatment_date =  uParseTime(
917
+              patietInfo.first_treatment_date,
918
+              '{y}-{m}-{d}'
919
+            )
920
+
851
             // this.form.initial = patietInfo.initial_dialysis + "";
921
             // this.form.initial = patietInfo.initial_dialysis + "";
852
             // this.form.dialysisTotal = patietInfo.total_dialysis + "";
922
             // this.form.dialysisTotal = patietInfo.total_dialysis + "";
853
             // this.form.assessment = patietInfo.evaluate;
923
             // this.form.assessment = patietInfo.evaluate;

+ 74 - 3
src/xt_pages/user/components/PatientForm.vue View File

137
                                   value-format="yyyy-MM-dd"></el-date-picker>
137
                                   value-format="yyyy-MM-dd"></el-date-picker>
138
                 </el-form-item>
138
                 </el-form-item>
139
               </el-col>
139
               </el-col>
140
+
141
+              <el-col :span="6" :style="isEdit?'width:380px':''">
142
+                <el-form-item label="首次肾脏治疗时间:" prop="firstDialysisDate" label-width="150px">
143
+                  <el-date-picker v-model="form.firstDialysisDate" type="date" format="yyyy-MM-dd"
144
+                                  value-format="yyyy-MM-dd"></el-date-picker>
145
+                </el-form-item>
146
+              </el-col>
140
               <el-col :span="8" :style="isEdit?'width:360px':''">
147
               <el-col :span="8" :style="isEdit?'width:360px':''">
141
                 <el-form-item label="本人电话 : " class="is-required" prop="phone">
148
                 <el-form-item label="本人电话 : " class="is-required" prop="phone">
142
                   <el-input v-model="form.phone" maxlength="20"></el-input>
149
                   <el-input v-model="form.phone" maxlength="20"></el-input>
143
                 </el-form-item>
150
                 </el-form-item>
144
               </el-col>
151
               </el-col>
152
+              <el-col :span="8" :style="isEdit?'width:360px':''">
153
+                <el-form-item label="家属姓名 : ">
154
+                  <el-input v-model="form.contact_name" maxlength="20"></el-input>
155
+                </el-form-item>
156
+              </el-col>
145
               <el-col :span="8" :style="isEdit?'width:360px':''">
157
               <el-col :span="8" :style="isEdit?'width:360px':''">
146
                 <el-form-item label="家属电话 : " prop="homeTelephone">
158
                 <el-form-item label="家属电话 : " prop="homeTelephone">
147
                   <el-input v-model="form.homeTelephone" maxlength="20"></el-input>
159
                   <el-input v-model="form.homeTelephone" maxlength="20"></el-input>
148
                 </el-form-item>
160
                 </el-form-item>
149
               </el-col>
161
               </el-col>
162
+
163
+
164
+
150
               <el-col :span="8" :style="isEdit?'width:360px':''">
165
               <el-col :span="8" :style="isEdit?'width:360px':''">
151
                 <el-form-item label="患者来源 : " class="is-required" prop="source">
166
                 <el-form-item label="患者来源 : " class="is-required" prop="source">
152
                   <el-radio-group v-model="form.source">
167
                   <el-radio-group v-model="form.source">
287
                     </el-select>
302
                     </el-select>
288
                   </el-form-item>
303
                   </el-form-item>
289
                 </el-col>
304
                 </el-col>
305
+
306
+                <el-col :span="8" :style="isEdit?'width:360px':''">
307
+                  <el-form-item label="固定电话 : ">
308
+                    <el-input v-model="form.tell_phone" maxlength="20"></el-input>
309
+                  </el-form-item>
310
+                </el-col>
311
+
312
+                <el-col :span="8" :style="isEdit?'width:360px':''">
313
+                  <el-form-item label="费别 : ">
314
+                    <el-select v-model="form.expense_kind">
315
+                      <el-option v-for="item in expenseOptions" :key="item.id" :label="item.name" :value="item.id"/>
316
+                    </el-select>
317
+                  </el-form-item>
318
+                </el-col>
319
+
320
+                <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
321
+                  <el-form-item label="透析龄(月): ">
322
+                    <el-input v-model="form.dialysis_age" ></el-input>
323
+                  </el-form-item>
324
+                </el-col>
325
+
290
                 <el-col :span="8" :style="isEdit?'width:360px':''">
326
                 <el-col :span="8" :style="isEdit?'width:360px':''">
291
                   <el-form-item label="亲友电话 : " prop="relative_phone">
327
                   <el-form-item label="亲友电话 : " prop="relative_phone">
292
                     <el-input v-model="form.relative_phone" maxlength="20"></el-input>
328
                     <el-input v-model="form.relative_phone" maxlength="20"></el-input>
447
                 </el-radio-group>
483
                 </el-radio-group>
448
               </el-form-item>
484
               </el-form-item>
449
             </el-col>
485
             </el-col>
486
+
450
             <el-col :span="6" :style="isEdit?'width:360px':''">
487
             <el-col :span="6" :style="isEdit?'width:360px':''">
451
-              <el-form-item label="首次透析日期 : " prop="firstDialysisDate">
452
-                <el-date-picker v-model="form.firstDialysisDate" type="date" format="yyyy-MM-dd"
453
-                                value-format="yyyy-MM-dd" @change="selectFirstDialysisDate"></el-date-picker>
488
+              <el-form-item label="首次诊治时间 : " >
489
+                <el-date-picker v-model="form.first_treatment_date" type="date" format="yyyy-MM-dd"
490
+                                value-format="yyyy-MM-dd"></el-date-picker>
454
               </el-form-item>
491
               </el-form-item>
455
             </el-col>
492
             </el-col>
456
             <el-col :span="6" :style="isEdit?'width:360px':''">
493
             <el-col :span="6" :style="isEdit?'width:360px':''">
566
     diagnose: '',
603
     diagnose: '',
567
     is_infectious:1,
604
     is_infectious:1,
568
     age: '',
605
     age: '',
606
+
569
     response_result:'',
607
     response_result:'',
570
     remind_cycle:0,
608
     remind_cycle:0,
571
     record_date:'',
609
     record_date:'',
610
+
611
+    tell_phone:'',
612
+    first_treatment_date:'',
613
+    dialysis_age:'',
614
+    expense_kind:'',
615
+    contact_name:'',
616
+
617
+
618
+
572
     formItem:[
619
     formItem:[
573
       { id: 0,
620
       { id: 0,
574
         item: "",
621
         item: "",
743
       }
790
       }
744
 
791
 
745
       return {
792
       return {
793
+
746
         crumbs: [
794
         crumbs: [
747
           { path: false, name: '病人管理' },
795
           { path: false, name: '病人管理' },
748
           { path: false, name: '新增病人' }
796
           { path: false, name: '新增病人' }
787
         submitMsg: '',
835
         submitMsg: '',
788
         patientID: 0,
836
         patientID: 0,
789
         formLoading:false,
837
         formLoading:false,
838
+        expenseOptions:[
839
+          {id:1,name:"基本医保"},
840
+          {id:2,name:"新农合"},
841
+          {id:3,name:"自费医疗"},
842
+          {id:4,name:"公费医疗"},
843
+          {id:5,name:"商业保险"},
844
+          {id:6,name:"军队医疗"},
845
+          {id:7,name:"其他"},
846
+        ],
790
 
847
 
791
 
848
 
792
         subscibe: {},
849
         subscibe: {},
804
           idCardNo: [{ required: true, message: '请填写身份证号', trigger: 'blur' }],
861
           idCardNo: [{ required: true, message: '请填写身份证号', trigger: 'blur' }],
805
           birth: [{ required: true, message: '请填写生日', trigger: 'blur' }],
862
           birth: [{ required: true, message: '请填写生日', trigger: 'blur' }],
806
           age: [{ required: true, message: '请填写年龄', trigger: 'blur' }],
863
           age: [{ required: true, message: '请填写年龄', trigger: 'blur' }],
864
+          firstDialysisDate:[{ required: true, message: '请选择日期', trigger: 'blur' }],
807
 
865
 
808
 
866
 
809
           // homeTelephone: [{ validator: checkFamilyPhone, trigger: "blur" }],
867
           // homeTelephone: [{ validator: checkFamilyPhone, trigger: "blur" }],
1207
               this.form.remind_cycle = patietInfo.remind_cycle
1265
               this.form.remind_cycle = patietInfo.remind_cycle
1208
               this.form.is_infectious = patietInfo.is_infectious
1266
               this.form.is_infectious = patietInfo.is_infectious
1209
 
1267
 
1268
+              this.form.tell_phone = patietInfo.tell_phone
1269
+              this.form.dialysis_age = patietInfo.dialysis_age
1270
+              this.form.contact_name = patietInfo.contact_name
1271
+              if( patietInfo.expense_kind == 0){
1272
+                this.form.expense_kind = ""
1273
+              }else{
1274
+                this.form.expense_kind = patietInfo.expense_kind
1275
+              }
1276
+
1277
+              this.form.first_treatment_date =  uParseTime(
1278
+                patietInfo.first_treatment_date,
1279
+                '{y}-{m}-{d}'
1280
+              )
1210
 
1281
 
1211
 
1282
 
1212
 
1283
 

+ 3 - 3
src/xt_pages/user/components/PatientSidebar.vue View File

27
       <el-tree
27
       <el-tree
28
         :data="treeData"
28
         :data="treeData"
29
         accordion
29
         accordion
30
-        node-key="name" 
31
-        :key="treeKey" 
32
-        :current-node-key="treeKey" 
30
+        node-key="name"
31
+        :key="treeKey"
32
+        :current-node-key="treeKey"
33
         :default-expanded-keys="[defaultActive]"
33
         :default-expanded-keys="[defaultActive]"
34
         @node-click="handleNodeClick"
34
         @node-click="handleNodeClick"
35
         >
35
         >

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

453
     editPatientDialysisSolution,
453
     editPatientDialysisSolution,
454
     fetchPatientDialysisSolutions
454
     fetchPatientDialysisSolutions
455
   } from '@/api/patient'
455
   } from '@/api/patient'
456
+
457
+  import {
458
+    getSystemPrescription,
459
+  } from '@/api/config'
460
+
461
+
462
+
463
+
456
   import { calculateAnticoagulantZL, uParseTime } from '@/utils/tools'
464
   import { calculateAnticoagulantZL, uParseTime } from '@/utils/tools'
457
   import store from '@/store'
465
   import store from '@/store'
458
 
466
 
1198
         }
1206
         }
1199
         // this.current_model = this.modeOptions[thismode];
1207
         // this.current_model = this.modeOptions[thismode];
1200
         this.addPlan.mode_name = this.modeOptions[thismode].name
1208
         this.addPlan.mode_name = this.modeOptions[thismode].name
1209
+        let params = {
1210
+          id: thismode
1211
+        }
1212
+
1213
+
1214
+
1215
+        getSystemPrescription(params).then(response => {
1216
+          if (response.data.state == 1) {
1217
+            if(response.data.data.prescription.id > 0) {
1218
+              for (const key in  response.data.data.prescription) {
1219
+                //因为el-input特性整数类型或者浮点数类型需要转换成字符串,所以加上toString()
1220
+                this.$set(this.addPlan, key, response.data.data.prescription[key].toString())
1221
+              }
1222
+
1223
+              //因为el-select特性,整数类型不能转字符串,所以额外处理这些数据
1224
+              this.$set(this.addPlan, "dialysate_formulation", response.data.data.prescription['dialysate_formulation'])
1225
+              this.$set(this.addPlan, "anticoagulant", response.data.data.prescription['anticoagulant'])
1226
+              this.$set(this.addPlan, "body_fluid", response.data.data.prescription['body_fluid'])
1227
+              this.$set(this.addPlan, "special_medicine", response.data.data.prescription['special_medicine'])
1228
+              this.$set(this.addPlan, "displace_liqui_part", response.data.data.prescription['displace_liqui_part'])
1229
+              this.$set(this.addPlan, "blood_access", response.data.data.prescription['blood_access'])
1230
+
1231
+
1232
+
1233
+              this.dialysisTimeShow = new Date(2018, 1, 1, this.addPlan.dialysis_duration_hour, this.addPlan.dialysis_duration_minute)
1234
+
1235
+            }else{
1236
+              var tempAddPlan = {
1237
+                id: 0,
1238
+                dialyzer: '',
1239
+                dialysis_duration: '',
1240
+                dialysis_duration_hour: '',
1241
+                dialysis_duration_minute: '',
1242
+                hemodialysis_machine: '',
1243
+                dialysate_formulation:'',
1244
+                perfusion_apparatus: '',
1245
+                blood_flow_volume: '',
1246
+                dewater: '',
1247
+                displace_liqui: 0,
1248
+                replacement_way: '',
1249
+                anticoagulant: '',
1250
+                anticoagulant_shouji: '',
1251
+                anticoagulant_weichi: '',
1252
+                anticoagulant_zongliang: '',
1253
+                anticoagulant_gaimingcheng: '',
1254
+                anticoagulant_gaijiliang: '',
1255
+                kalium: '',
1256
+                replacement_total: '',
1257
+                sodium: '',
1258
+                calcium: '',
1259
+                bicarbonate: '',
1260
+                glucose: '',
1261
+                dry_weight: '',
1262
+                dialysate_flow: '',
1263
+                dialysate_temperature: '',
1264
+                conductivity: '',
1265
+                doctor: '',
1266
+                remark: '',
1267
+                target_ktv: '',
1268
+                target_ultrafiltration: '',
1269
+                dialyzer_perfusion_apparatus: '',
1270
+                body_fluid: '',
1271
+                body_fluid_other: '',
1272
+                special_medicine: '',
1273
+                special_medicine_other: '',
1274
+                displace_liqui_part: '',
1275
+                displace_liqui_value: '',
1276
+                ultrafiltration: '',
1277
+                blood_access: ''
1278
+              }
1279
+
1280
+              for (const key in  tempAddPlan) {
1281
+                this.addPlan[key] = tempAddPlan[key]
1282
+              }
1283
+
1284
+
1285
+            }
1286
+          }
1287
+        })
1201
       },
1288
       },
1202
       setCurrentMode(id) {
1289
       setCurrentMode(id) {
1203
         if (typeof (this.modeOptions[id]) == 'undefined' || this.modeOptions[id] == null) {
1290
         if (typeof (this.modeOptions[id]) == 'undefined' || this.modeOptions[id] == null) {

File diff suppressed because it is too large
+ 3431 - 2709
src/xt_pages/user/doctorAdvice.vue


+ 2 - 2
src/xt_pages/user/inspection.vue View File

106
 
106
 
107
       <el-form :model="form"  ref="form" label-position="top">
107
       <el-form :model="form"  ref="form" label-position="top">
108
 
108
 
109
-        <el-row v-if="form.formItem[0].project_id == 14">
110
-          <el-col :span="24">
109
+        <el-row >
110
+          <el-col :span="24" v-if="form.formItem[0].project_id == 14">
111
             <el-form-item label="传染病周期提醒: " >
111
             <el-form-item label="传染病周期提醒: " >
112
               <el-radio-group v-model="form.remind_cycle">
112
               <el-radio-group v-model="form.remind_cycle">
113
                 <el-radio :label="1">一月一次</el-radio>
113
                 <el-radio :label="1">一月一次</el-radio>

File diff suppressed because it is too large
+ 1551 - 1095
src/xt_pages/workforce/components/tableData.vue