浏览代码

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

csx 5 年前
父节点
当前提交
f58bb6221c

+ 8 - 0
src/api/dialysis.js 查看文件

@@ -263,3 +263,11 @@ export function GetSolution(params){
263 263
 
264 264
 
265 265
 
266
+export function CreateDryWeight(params){
267
+  return request({
268
+    url:"/api/dryweight/commit",
269
+    method:'post',
270
+    params:params,
271
+  })
272
+
273
+}

+ 52 - 4
src/api/dialysis_record.js 查看文件

@@ -43,7 +43,7 @@ export function editMonitor(patient_id, schedule_date, data) {
43 43
   })
44 44
 }
45 45
 
46
-export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time) {
46
+export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time,schedual_type) {
47 47
   var params = {
48 48
     patient_id: patient_id,
49 49
     date: schedule_date,
@@ -51,7 +51,8 @@ export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_
51 51
     bed: bed_id,
52 52
     puncture_nurse: puncture_nurse_id,
53 53
     start_time: start_time,
54
-    lood_drawing: lood_drawing
54
+    lood_drawing: lood_drawing,
55
+    schedual_type:schedual_type,
55 56
   }
56 57
   return request({
57 58
     url: '/api/dialysis/start_record',
@@ -60,11 +61,12 @@ export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_
60 61
   })
61 62
 }
62 63
 
63
-export function finishDialysis(patient_id, schedule_date, nurse_id) {
64
+export function finishDialysis(patient_id, schedule_date,end_time, nurse_id) {
64 65
   var params = {
65 66
     patient_id: patient_id,
66 67
     date: schedule_date,
67
-    nurse: nurse_id
68
+    nurse: nurse_id,
69
+    end_time:end_time,
68 70
   }
69 71
   return request({
70 72
     url: '/api/dialysis/finish',
@@ -94,5 +96,51 @@ export function getLongAdvice(params) {
94 96
 }
95 97
 
96 98
 
99
+export function GetSchedualNumber(params) {
100
+  return request({
101
+    url:'/api/schedule/get',
102
+    method:'Get',
103
+    params:params,
104
+  })
105
+}
106
+
107
+
108
+
109
+export function PostModifyStartDialysis(params) {
110
+  return request({
111
+    url:'/api/start_dialysis/modify',
112
+    method:'Post',
113
+    params:params,
114
+  })
115
+}
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+export function PostModifyFinishDialysis(params) {
124
+  return request({
125
+    url:'/api/finish_dialysis/modify',
126
+    method:'Post',
127
+    params:params,
128
+  })
129
+}
130
+
131
+
132
+
133
+export function getTodayMonitor(params) {
134
+  return request({
135
+    url:'/api/today_monitor/get',
136
+    method:'Get',
137
+    params:params,
138
+  })
139
+}
140
+
141
+
142
+
143
+
144
+
97 145
 
98 146
 

+ 11 - 0
src/api/patient.js 查看文件

@@ -332,3 +332,14 @@ export function getAllData(id, page, limit) {
332 332
   })
333 333
 }
334 334
 
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+

+ 3 - 3
src/store/modules/globalConfig.js 查看文件

@@ -104,10 +104,10 @@ const global_config = {
104 104
     },
105 105
     anticoagulants_confit: {// 抗凝剂
106 106
       1: { id: 1, name: '无肝素', type: 1, shouji: 2, weichi: 2, zongliang: 2, gaimingcheng: -1, gaijiliang: -1, shouji_unit: 'mg', weichi_unit: 'mg/h', zongliang_unit: 'mg', gaimingcheng_unit: '', gaijiliang_unit: '' },
107
-      2: { id: 2, name: '普通肝素', type: 1, shouji: 1, weichi: 1, zongliang: 1, gaimingcheng: -1, gaijiliang: -1, shouji_unit: 'mg', weichi_unit: 'mg/h', zongliang_unit: 'mg', gaimingcheng_unit: '', gaijiliang_unit: '' },
108
-      3: { id: 3, name: '低分子肝素', type: 1, shouji: -1, weichi: -1, zongliang: 1, gaimingcheng: -1, gaijiliang: -1, shouji_unit: 'lu', weichi_unit: 'lu', zongliang_unit: 'lu', gaimingcheng_unit: '', gaijiliang_unit: '' },
107
+      2: { id: 2, name: '普通肝素', type: 1, shouji: 1, weichi: 1, zongliang: 1, gaimingcheng: -1, gaijiliang: -1, shouji_unit: 'iu', weichi_unit: 'iu/h', zongliang_unit: 'iu', gaimingcheng_unit: '', gaijiliang_unit: '' },
108
+      3: { id: 3, name: '低分子肝素', type: 1, shouji: 1, weichi: 1, zongliang: 1, gaimingcheng: -1, gaijiliang: -1, shouji_unit: 'iu', weichi_unit: 'iu/h', zongliang_unit: 'iu', gaimingcheng_unit: '', gaijiliang_unit: '' },
109 109
       4: { id: 4, name: '阿加曲班', type: 1, shouji: 1, weichi: 1, zongliang: 1, gaimingcheng: -1, gaijiliang: -1, shouji_unit: 'mg', weichi_unit: 'mg/h', zongliang_unit: 'mg', gaimingcheng_unit: '', gaijiliang_unit: '' },
110
-      5: { id: 5, name: '枸橼酸钠', type: 1, shouji: -1, weichi: 1, zongliang: -1, gaimingcheng: 1, gaijiliang: 1, shouji_unit: '', weichi_unit: 'ml/h', zongliang_unit: '', gaimingcheng_unit: 'ml/h', gaijiliang_unit: '' }
110
+      5: { id: 5, name: '枸橼酸钠', type: 1, shouji: -1, weichi: 1, zongliang: -1, gaimingcheng: 1, gaijiliang: 1, shouji_unit: '', weichi_unit: 'ml/h', zongliang_unit: '', gaimingcheng_unit: 'ml', gaijiliang_unit: '' }
111 111
     },
112 112
     anticoagulants_set: {
113 113
       type: 2

+ 5 - 4
src/xt_pages/dialysis/details/BasicInfor.vue 查看文件

@@ -10,7 +10,7 @@
10 10
         </ul>
11 11
       </div>
12 12
       <ul class="info clearfix">
13
-        <li>  
13
+        <li>
14 14
           <label>姓名 : </label>
15 15
           <span>{{ patient.id == 0 ? "" : patient.name }}</span>
16 16
         </li>
@@ -56,7 +56,7 @@ export default {
56 56
   data() {
57 57
     return {
58 58
       title: '基本信息',
59
-      dialysis_time: moment(new Date()).format('YYYY-MM-DD')
59
+      dialysis_time:0,
60 60
       // steps: [
61 61
       //   { title: "透析处方" },
62 62
       //   { title: "接诊评估" },
@@ -106,7 +106,8 @@ export default {
106 106
     }
107 107
   },
108 108
   created() {
109
-    console.log('patinents是什么ha ', this.patient)
109
+    this.dialysis_time = parseTime(this.$route.query.date, '{y}-{m}-{d}')
110
+
110 111
   }
111 112
 }
112 113
 </script>
@@ -206,7 +207,7 @@ export default {
206 207
   }
207 208
 }
208 209
 .info {
209
-    padding:20px 40px;  
210
+    padding:20px 40px;
210 211
     li {
211 212
       float: left;
212 213
       width: 28%;

+ 139 - 69
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

@@ -11,93 +11,149 @@
11 11
           <label>目标超滤量 : </label>
12 12
           <span class="content">{{target_ultrafiltration != '0'?target_ultrafiltration:''}}</span>
13 13
           <span class="unit">{{target_ultrafiltration != '0'?"L":''}}</span>
14
+        </li>
15
+
16
+
14 17
 
18
+
19
+        <li v-if="isShow('抗凝剂')">
20
+          <label>抗凝剂 : </label>
21
+          <span class="content">{{anticoagulant}}</span>
15 22
         </li>
16
-        <li v-if="isShow('首剂')">
17
-          <label>首剂 : </label>
18
-          <span class="content">{{anticoagulant_shouji != '0'?anticoagulant_shouji:''}}</span>
19
-          <span class="unit">{{anticoagulant_shouji != '0'?"mg":''}}</span>
23
+
24
+
25
+
26
+        <li v-if="isShow('总量')&&getValueStr('anticoagulant','anticoagulant') != 5">
27
+          <label>总量: </label>
28
+          <span class="content" v-if="getValueStr('anticoagulant','anticoagulant') != 1">{{anticoagulant_zongliang != '0'?anticoagulant_zongliang:""}}</span>
29
+          <span class="content" v-if="getValueStr('anticoagulant','anticoagulant') == 1"></span>
30
+
31
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 2">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
32
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 3">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
33
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 1">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
34
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 4">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
35
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{anticoagulant_zongliang != '0'?"ml":""}}</span>
20 36
         </li>
21
-        <li v-if="isShow('钙')">
22
-          <label>钙: </label>
23
-          <span class="content">{{calcium != '0'?calcium:""}}</span>
24
-          <span class="unit">{{calcium != '0'?"mmol/L":""}}</span>
37
+
38
+
39
+
40
+        <li v-if="isShow('钙剂量')&&getValueStr('anticoagulant','anticoagulant') == 5">
41
+          <label>钙剂量: </label>
42
+          <span class="content">{{getValueStr('anticoagulant_gaijiliang','anticoagulant_gaijiliang')}}</span>
43
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{'ml'}}</span>
44
+        </li>
45
+
46
+
47
+        <li v-if="isShow('钠')">
48
+          <label>钠 : </label>
49
+          <span class="content">{{sodium != '0'?sodium:""}}</span>
50
+          <span class="unit">{{sodium != '0'?"mmol/L":""}}</span>
25 51
         </li>
52
+
53
+        <li v-if="isShow('体液过多症状')">
54
+          <label>体液过多症状 : </label>
55
+          <span class="content">{{body_fluid}}</span>
56
+          <span class="unit"></span>
57
+        </li>
58
+
59
+
60
+
26 61
         <li v-if="isShow('置换量')">
27 62
           <label>置换量 : </label>
28 63
           <span class="content">{{replacement_total != '0'?replacement_total:""}}</span>
29 64
           <span class="unit">{{replacement_total != '0'?"L":""}}</span>
30 65
         </li>
31 66
 
67
+
68
+        <li v-if="isShow('透析前使用其他特殊药物')">
69
+          <label>透析前使用其他特殊药物: </label>
70
+          <span class="content">{{special_medicine_other}}</span>
71
+          <span class="unit"></span>
72
+        </li>
73
+
32 74
         <li v-if="isShow('葡萄糖')">
33 75
           <label>葡萄糖 : </label>
34 76
           <span class="content">{{glucose != '0'?glucose:""}}</span>
35 77
           <span class="unit">{{glucose != '0'?"mmol/l":""}}</span>
36 78
         </li>
37
-         <li v-if="isShow('透析时长')">
79
+
80
+
81
+      </ul>
82
+
83
+
84
+      <ul>
85
+        <li v-if="isShow('透析时长')">
38 86
           <label>透析时长 : </label>
39 87
           <span class="content">{{dialysis_duration != '0'?dialysis_duration:""}}</span>
40 88
         </li>
41
-         <li v-if="isShow('透析液配方')">
42
-          <label>透析液配方 : </label>
43
-          <span class="content">{{dialysate_formulation}}</span>
89
+        <li v-if="isShow('透析液温度')">
90
+          <label>透析液温度 : </label>
91
+          <span class="content">{{dialysate_temperature != '0'?dialysate_temperature:""}}</span>
92
+          <span class="unit">{{dialysate_temperature != '0'?"℃":""}}</span>
44 93
         </li>
45
-         <li v-if="isShow('维持')">
46
-          <label>维持 : </label>
47
-          <span class="content">{{anticoagulant_weichi != '0'?anticoagulant_weichi:""}}</span>
48
-          <span class="unit">{{anticoagulant_weichi != '0'?"mg/h":""}}</span>
94
+
95
+
96
+        <li v-if="isShow('首剂')&&getValueStr('anticoagulant','anticoagulant') != 5">
97
+          <label>首剂 : </label>
98
+          <span class="content" v-if="getValueStr('anticoagulant','anticoagulant') != 1">{{anticoagulant_shouji != '0'?anticoagulant_shouji:''}}</span>
99
+          <span class="content" v-if="getValueStr('anticoagulant','anticoagulant') == 1"></span>
100
+
101
+          <!--<span class="unit">{{anticoagulant_shouji != '0'?"mg":''}}</span>-->
102
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 2">{{anticoagulant_shouji != '0'?"iu":""}}</span>
103
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 3">{{anticoagulant_shouji != '0'?"iu":""}}</span>
104
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 1">{{anticoagulant_shouji != '0'?"mg":""}}</span>
105
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 4">{{anticoagulant_shouji != '0'?"mg":""}}</span>
106
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{anticoagulant_shouji != '0'?"mg":""}}</span>
107
+
49 108
         </li>
50
-      </ul>
51
-      <ul>
109
+
110
+        <li v-if="isShow('钙名称')&&getValueStr('anticoagulant','anticoagulant') == 5">
111
+          <label>钙名称: </label>
112
+          <span class="content">{{getValueStr('anticoagulant_gaimingcheng','anticoagulant_gaimingcheng')}}</span>
113
+        </li>
114
+
52 115
         <li v-if="isShow('钾')">
53 116
           <label>钾 : </label>
54 117
           <span class="content">{{kalium != '0'?kalium:""}}</span>
55 118
           <span class="unit">{{kalium != '0'?"mmol/L":""}}</span>
56 119
         </li>
120
+
121
+
122
+
57 123
         <li v-if="isShow('碳酸氢盐')">
58 124
           <label>碳酸氢盐 : </label>
59 125
           <span class="content">{{bicarbonate != '0'?bicarbonate:""}}</span>
60 126
           <span class="unit">{{bicarbonate != '0'?"mmol/L":""}}</span>
61 127
         </li>
62
-        <!-- <li>
63
-          <label>干体重 : </label>
64
-          <span class="content">{{dry_weight}}</span>
65
-          <span class="unit">kg</span>
66
-        </li> -->
67
-        <li v-if="isShow('透析液温度')">
68
-          <label>透析液温度 : </label>
69
-          <span class="content">{{dialysate_temperature != '0'?dialysate_temperature:""}}</span>
70
-          <span class="unit">{{dialysate_temperature != '0'?"℃":""}}</span>
128
+
129
+        <li v-if="isShow('体液过多其他症状')">
130
+          <label>体液过多其他症状 : </label>
131
+          <span class="content">{{body_fluid_other}}</span>
132
+          <span class="unit"></span>
71 133
         </li>
72
-         <li v-if="isShow('血流量')">
134
+
135
+
136
+
137
+
138
+
139
+        <li v-if="isShow('血流量')">
73 140
           <label>血流量 : </label>
74 141
           <span class="content">{{blood_flow_volume != '0'?blood_flow_volume:''}}</span>
75 142
           <span class="unit">{{blood_flow_volume != '0'?"ml/min":''}}</span>
76 143
         </li>
77
-        <li v-if="isShow('抗凝剂')">
78
-          <label>抗凝剂 : </label>
79
-          <span class="content">{{anticoagulant}}</span>
80
-        </li>
81
-          <li v-if="isShow('总量')">
82
-          <label>总量: </label>
83
-          <span class="content">{{anticoagulant_zongliang != '0'?anticoagulant_zongliang:""}}</span>
84
-          <span class="unit">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
85
-        </li>
86
-        <li v-if="isShow('钠')">
87
-          <label>钠 : </label>
88
-          <span class="content">{{sodium != '0'?sodium:""}}</span>
89
-          <span class="unit">{{sodium != '0'?"mmol/L":""}}</span>
144
+
145
+        <li v-if="isShow('透析液配方')">
146
+          <label>透析液配方 : </label>
147
+          <span class="content">{{dialysate_formulation}}</span>
90 148
         </li>
149
+
150
+
91 151
           <li v-if="isShow('透析液流量')">
92 152
           <label>透析液流量 : </label>
93 153
           <span class="content">{{dialysate_flow != '0'?dialysate_flow:""}}</span>
94 154
           <span class="unit">{{dialysate_flow != '0'?"ml/min":""}}</span>
95 155
         </li>
96
-           <li v-if="isShow('电导度')">
97
-          <label>电导度 : </label>
98
-          <span class="content">{{conductivity != '0'?conductivity:""}}</span>
99
-          <span class="unit">{{conductivity != '0'?"mS/m":""}}</span>
100
-        </li>
156
+
101 157
       </ul>
102 158
       <ul>
103 159
 
@@ -106,44 +162,58 @@
106 162
           <span class="content">{{dialyzer_perfusion_apparatus}}</span>
107 163
           <span class="unit"></span>
108 164
         </li>
109
-
110
-        <li v-if="isShow('体液过多症状')">
111
-          <label>体液过多症状 : </label>
112
-          <span class="content">{{body_fluid}}</span>
113
-          <span class="unit"></span>
165
+        <li v-if="isShow('实际超滤量')">
166
+          <label>实际超滤量: </label>
167
+          <span class="content">{{ultrafiltration != '0'? ultrafiltration:''}}</span>
168
+          <span class="unit">{{ultrafiltration != '0'?"L":""}}</span>
114 169
         </li>
115
-        <li v-if="isShow('体液过多其他症状')">
116
-          <label>体液过多其他症状 : </label>
117
-          <span class="content">{{body_fluid_other}}</span>
118
-          <span class="unit"></span>
170
+        <li v-if="isShow('维持')&&getValueStr('anticoagulant','anticoagulant') != 5">
171
+          <label>维持 : </label>
172
+          <span class="content" v-if="getValueStr('anticoagulant','anticoagulant') != 1">{{anticoagulant_weichi != '0'?anticoagulant_weichi:""}}</span>
173
+          <span class="content" v-if="getValueStr('anticoagulant','anticoagulant') == 1"></span>
174
+
175
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 2">{{anticoagulant_weichi != '0'?"iu":""}}</span>
176
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 3">{{anticoagulant_weichi != '0'?"iu":""}}</span>
177
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 1">{{anticoagulant_weichi != '0'?"mg":""}}</span>
178
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 4">{{anticoagulant_weichi != '0'?"mg":""}}</span>
179
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{anticoagulant_weichi != '0'?"ml":""}}</span>
119 180
         </li>
120
-        <li v-if="isShow('透析前使用特殊药物')">
121
-          <label>透析前使用特殊药物: </label>
122
-          <span class="content">{{special_medicine}}</span>
123
-          <span class="unit"></span>
181
+
182
+        <li v-if="isShow('钙')">
183
+          <label>钙: </label>
184
+          <span class="content">{{calcium != '0'?calcium:""}}</span>
185
+          <span class="unit">{{calcium != '0'?"mmol/L":""}}</span>
124 186
         </li>
125
-        <li v-if="isShow('透析前使用其他特殊药物')">
126
-          <label>透析前使用其他特殊药物: </label>
127
-          <span class="content">{{special_medicine_other}}</span>
128
-          <span class="unit"></span>
187
+
188
+        <li v-if="isShow('电导度')">
189
+          <label>电导度 : </label>
190
+          <span class="content">{{conductivity != '0'?conductivity:""}}</span>
191
+          <span class="unit">{{conductivity != '0'?"mS/m":""}}</span>
129 192
         </li>
193
+
194
+
130 195
         <li v-if="isShow('置换液')">
131 196
           <label v-if="this.$store.getters.xt_user.template_info.template_id != 6">置换液: </label>
132 197
           <label v-if="this.$store.getters.xt_user.template_info.template_id == 6">置换方式: </label>
133 198
 
134
-          <span class="content">{{displace_liqui}}</span>
199
+          <span class="content">{{displace_liqui != '0'?displace_liqui:''}}</span>
200
+          <span class="unit">{{displace_liqui != '0'?'L':''}}</span>
201
+        </li>
202
+
203
+
204
+        <li v-if="isShow('透析前使用特殊药物')">
205
+          <label>透析前使用特殊药物: </label>
206
+          <span class="content">{{special_medicine}}</span>
135 207
           <span class="unit"></span>
136 208
         </li>
209
+
210
+
137 211
         <li v-if="isShow('血管通路')">
138 212
           <label>血管通路: </label>
139 213
           <span class="content">{{blood_access}}</span>
140 214
           <span class="unit"></span>
141 215
         </li>
142
-        <li v-if="isShow('实际超滤量')">
143
-          <label>实际超滤量: </label>
144
-          <span class="content">{{ultrafiltration != '0'? ultrafiltration:''}}</span>
145
-          <span class="unit">{{ultrafiltration != '0'?"L":""}}</span>
146
-        </li>
216
+
147 217
         <li v-if="isShow('目标KT/V')">
148 218
           <label>目标KT/V: </label>
149 219
           <span class="content">{{target_ktv != '0'? target_ktv:''}}</span>

+ 38 - 8
src/xt_pages/dialysis/details/NavIgation.vue 查看文件

@@ -83,8 +83,9 @@
83 83
     <accepts-treatment-dialog title="接诊评估" ref="accepts" :patient="patient"
84 84
                               :receiver_treatment_access="receiver_treatment_access"></accepts-treatment-dialog>
85 85
 
86
-    <assessment-before-dislysis-dialog title="透前评估" ref="assessmentBefore" :patient="patient"
87
-                                       :predialysis_evaluation="predialysis_evaluation"></assessment-before-dislysis-dialog>
86
+    <assessment-before-dislysis-dialog title="透前评估" ref="assessmentBefore" :patient="patient" :last_predialysis="last_predialysis_evaluation"
87
+                                       :predialysis_evaluation="predialysis_evaluation" :admin_users="admin_users"  :dry_weight="last_dryWeight_dislysis"
88
+    ></assessment-before-dislysis-dialog>
88 89
 
89 90
     <treatment-summary-dialog title="治疗小结" ref="treatmentSummary" :patient="patient"
90 91
                               :treatment_summary="treatment_summary"></treatment-summary-dialog>
@@ -92,13 +93,13 @@
92 93
     <doctor-advice-dialog title="临时医嘱" ref="doctor_advice" :doctor_advices="doctor_advices" :patient="patient"
93 94
                           :admin_users="admin_users" :dialysis_order="dialysis_order"></doctor-advice-dialog>
94 95
 
95
-    <computer-dialog title="透析上机" ref="computer_dialog" :dialysis_order="dialysis_order" :schedule="schedual"
96
-                     :admins="admin_users" :device_numbers="device_numbers"></computer-dialog>
96
+    <computer-dialog title="透析上机" ref="computer_dialog" :dialysis_order="dialysis_order" :schedule="schedual" @monitor="add_monitor"
97
+                     :admins="admin_users" :device_numbers="device_numbers" :special_premission="special_premission"></computer-dialog>
97 98
 
98
-    <monitor-dialog title="透析监测" ref="monitor_dialog" :monitors="monitor_records"></monitor-dialog>
99
+    <monitor-dialog title="透析监测" ref="monitor_dialog" :monitors="monitor_records" ></monitor-dialog>
99 100
 
100 101
     <finish-dialog title="透析下机" ref="finish_dialog" :dialysis_order="dialysis_order" :schedule="schedual"
101
-                   :admins="admin_users"></finish-dialog>
102
+                   :admins="admin_users"  @assessmentAfterDislysis="assessmentAfterDislysisFunc" :special_premission="special_premission"></finish-dialog>
102 103
 
103 104
     <assessment-after-dislysis title="透后评估" ref="assessment_after_dislysis"
104 105
                                :assessment_after_dislysis="assessment_after_dislysis" :patient="patient"
@@ -132,9 +133,14 @@
132 133
       ComputerDialog,
133 134
       FinishDialog
134 135
     },
136
+
135 137
     data() {
136
-      return {}
138
+      return {
139
+
140
+      }
141
+    },mounted(){
137 142
     },
143
+
138 144
     props: {
139 145
       longAdvices: { // 临时医嘱
140 146
         type: Array,
@@ -390,10 +396,28 @@
390 396
         default: () => {
391 397
           return { id: 0 }
392 398
         }
393
-      }
399
+      }, special_premission: {
400
+        type: Array,
401
+        default: () => {
402
+          return []
403
+        }
404
+      },
394 405
 
395 406
     },
396 407
     methods: {
408
+      setLastRecord:function(lastPredialysisEvaluation,lastMonitorRecord,lastAssessmentAfterDislysis,lastDialysisPrescribe,lastDryWeightDislysis){
409
+           this.$refs.assessmentBefore.setLastRecord(lastPredialysisEvaluation,lastDryWeightDislysis)
410
+
411
+      },
412
+
413
+      add_monitor:function(monitor){
414
+
415
+
416
+        this.monitor_records.push(monitor)
417
+        this.monitor_records.sort((a, b) => b.operate_time - a.operate_time)
418
+        this.monitor_records.reverse()
419
+        this.$refs.monitor_dialog.setRecords(this.monitor_records)
420
+      },
397 421
       adviceFunc: function() {
398 422
 
399 423
         this.$emit('advice')
@@ -427,6 +451,12 @@
427 451
       },
428 452
       showrTeatmentSummary: function() {
429 453
         this.$refs.treatmentSummary.show()
454
+      },assessmentAfterDislysisFunc:function(val) {
455
+        this.assessment_after_dislysis = val
456
+        this.$refs.assessment_after_dislysis.setRecords(this.assessment_after_dislysis)
457
+        this.$emit('assessmentAfterDislysis', this.assessment_after_dislysis)
458
+
459
+
430 460
       }
431 461
     }
432 462
   }

+ 33 - 33
src/xt_pages/dialysis/details/assessmentAfter.vue 查看文件

@@ -16,7 +16,8 @@
16 16
         <li v-if="isShow('实际超滤量')">
17 17
           <label>实际超滤量: </label>
18 18
           <span class="content" v-if="actual_ultrafiltration!='0'">{{ actual_ultrafiltration }}</span>
19
-          <span class="unit" v-if="actual_ultrafiltration!='0'">ml</span>
19
+          <span class="unit" v-if="actual_ultrafiltration!='0'&& this.$store.getters.xt_user.template_info.template_id == 6">ml</span>
20
+          <span class="unit" v-if="actual_ultrafiltration!='0'&& this.$store.getters.xt_user.template_info.template_id != 6">L</span>
20 21
         </li>
21 22
         <li v-if="isShow('凝血')">
22 23
           <label>透析器凝血 : </label>
@@ -75,7 +76,7 @@
75 76
         </li>
76 77
         <li v-if="isShow('压迫后内瘘震颤')">
77 78
           <label>压迫后内瘘震颤: </label>
78
-          <span class="content">{{ internal_fistula_tremor_ac_name }}</span>
79
+          <span class="content">{{ getInternal() }}</span>
79 80
         </li>
80 81
 
81 82
         <li v-if="isShow('交待病房护士/患者/陪人观察内容')&&patient_gose==3">
@@ -84,24 +85,24 @@
84 85
         </li>
85 86
         <li v-if="isShow('体温')">
86 87
           <label>体温 : </label>
87
-          <span class="content" v-if="this.record.temperature">{{ temperature }}</span>
88
+          <span class="content" v-if="this.record.temperature">{{ this.record.temperature }}</span>
88 89
           <span class="unit" v-if="this.record.temperature">℃</span>
89 90
         </li>
90 91
         <li v-if="isShow('脉率')">
91 92
           <label>脉率 : </label>
92
-          <span class="content" v-if="this.record.pulse_frequency">{{ pulse_frequency }}</span>
93
+          <span class="content" v-if="this.record.pulse_frequency">{{ this.record.pulse_frequency }}</span>
93 94
           <span class="unit" v-if="this.record.pulse_frequency">次/分</span>
94 95
         </li>
95 96
         <li v-if="isShow('呼吸频率')">
96 97
           <label>呼吸频率 : </label>
97
-          <span class="content" v-if="this.record.breathing_rate">{{ breathing_rate }}</span>
98
+          <span class="content" v-if="this.record.breathing_rate">{{ this.record.breathing_rate }}</span>
98 99
           <span class="unit" v-if="this.record.breathing_rate">次/min</span>
99 100
         </li>
100 101
 
101 102
         <li v-if="isShow('实际治疗时长')">
102 103
           <label>实际治疗时长 : </label>
103
-          <span class="content" v-if="this.record.actual_treatment_hour">{{ actual_treatment_hour }}时</span>
104
-          <span class="content" v-if="this.record.actual_treatment_minute">{{ actual_treatment_minute }}分</span>
104
+          <span class="content" v-if="this.record.actual_treatment_hour">{{ this.record.actual_treatment_hour }}时</span>
105
+          <span class="content" v-if="this.record.actual_treatment_minute">{{ this.record.actual_treatment_minute }}分</span>
105 106
         </li>
106 107
         <li v-if="isShow('透析中入量')">
107 108
           <label>透析中入量: </label>
@@ -121,28 +122,25 @@
121 122
         </li>
122 123
         <li v-if="isShow('其他观察内容')&&patient_gose==3">
123 124
           <label>其他观察内容 : </label>
124
-          <span class="content">{{ observation_content_other }}</span>
125
-        </li>
126
-        <li v-if="isShow('拔针后穿刺点渗血')">
127
-          <label for="bzh">拔针后穿刺点渗血: </label>
128
-          <span id="bzh" class="content">{{puncture_point_oozing_blood_name}}</span>
125
+          <span class="content">{{observation_content_other }}</span>
129 126
         </li>
127
+
130 128
       </ul>
131 129
       <ul>
132 130
         <li v-if="isShow('透析过程')">
133 131
           <label for="tw">透析过程 : </label>
134 132
           <span class="content" id="tw" v-if="this.record.dialysis_process == 1">完成</span>
135
-          <span class="content" id="tw" v-if="this.record.dialysis_process == 2">提前{{in_advance_minute}}min</span>
133
+          <span class="content" id="tw" v-if="this.record.dialysis_process == 2">提前{{this.record.in_advance_minute}}min</span>
136 134
         </li>
137 135
         <li v-if="this.record.dialysis_process == 2&&isShow('透析过程提前原因')">
138 136
           <label for="tw">透析过程提前原因 : </label>
139
-          <span class="content" id="tw">{{in_advance_reason}}</span>
137
+          <span class="content" id="tw">{{this.record.in_advance_reason}}</span>
140 138
         </li>
141 139
 
142 140
 
143 141
         <li v-if="isShow('内瘘管拔针后压迫止血时间')">
144 142
           <label for="ml">内瘘管拔针后压迫止血时间 : </label>
145
-          <span id="ml" class="content" v-if="this.record.hemostasis_minute">{{hemostasis_minute}}min</span>
143
+          <span id="ml" class="content" v-if="this.record.hemostasis_minute">{{this.record.hemostasis_minute}}min</span>
146 144
           <span id="ml" class="content" v-else>-min</span>
147 145
         </li>
148 146
         <li v-if="isShow('内瘘管拔针后压迫止血操作')">
@@ -341,6 +339,7 @@
341 339
           return '-'
342 340
         }
343 341
         const vascular_access = this.$store.getters.vascular_access_desc
342
+        console.log(vascular_access)
344 343
         let name = '-'
345 344
         for (var index in vascular_access) {
346 345
           if (vascular_access[index].id == this.record.blood_access_part_opera_id) {
@@ -421,25 +420,7 @@
421 420
       }
422 421
       return this.record.complication
423 422
     },
424
-    internal_fistula_tremor_ac_name: function() {
425
-      if (this.record.id == 0) {
426
-        return '-'
427
-      }
428
-      switch (this.record.internal_fistula_tremor_ac) {
429
-        case 1:
430
-          return '存在'
431
-          break
432
-        case 2:
433
-          return '减弱'
434
-          break
435
-        case 3:
436
-          return '无'
437
-          break
438
-        default:
439
-          return '-'
440
-      }
441 423
 
442
-    },
443 424
     temperature: function() {
444 425
       if (this.record.id == 0) {
445 426
         return '-'
@@ -522,6 +503,25 @@
522 503
       return this.record.in_advance_reason_other
523 504
     },
524 505
     methods: {
506
+      getInternal: function() {
507
+        if (this.record.id == 0) {
508
+          return '-'
509
+        }
510
+        switch (this.record.internal_fistula_tremor_ac) {
511
+          case 1:
512
+            return '存在'
513
+            break
514
+          case 2:
515
+            return '减弱'
516
+            break
517
+          case 3:
518
+            return '无'
519
+            break
520
+          default:
521
+            return '-'
522
+        }
523
+
524
+      },
525 525
       getOpera: function(id) {
526 526
         var hemostasis_opera = this.$store.getters.hemostasis_opera
527 527
         var hemostasisOperaName = ''

+ 18 - 9
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

@@ -52,7 +52,10 @@
52 52
 
53 53
         <el-row :gutter="20"> -->
54 54
           <el-col :span="8" v-if="isShow('实际超滤量')">
55
-            <el-form-item label="实际超滤量(L): " >
55
+            <el-form-item label="实际超滤量(L): " v-if="this.template_id != 6" >
56
+              <el-input v-model="form.actual_ultrafiltration"></el-input>
57
+            </el-form-item>
58
+            <el-form-item label="实际超滤量(ml): " v-if="this.template_id == 6" >
56 59
               <el-input v-model="form.actual_ultrafiltration"></el-input>
57 60
             </el-form-item>
58 61
           </el-col>
@@ -61,14 +64,15 @@
61 64
               <el-input v-model="form.actual_displacement"></el-input>
62 65
             </el-form-item>
63 66
           </el-col>
67
+
68
+
69
+
70
+
64 71
           <el-col :span="8"  v-if="isShow('实际治疗时长')">
65 72
             <el-form-item label="实际治疗时长(时):">
66 73
               <!-- <el-input v-model="form.actual_treatment_hour"></el-input> -->
67 74
               <el-time-picker
68 75
                 v-model="actualTreatmentHourShow"
69
-                :picker-options="{
70
-                                        selectableRange: '00:01:00 - 23:59:00'
71
-                                    }"
72 76
                 placeholder="透析时长"
73 77
                 style="width:100%;"
74 78
                 value-format="H:m"
@@ -423,8 +427,7 @@ export default {
423 427
         loading: false,
424 428
         record_date: '',
425 429
         isVisibility: false,
426
-
427
-        actualTreatmentHourShow: new Date(2018, 1, 1, 3, 0),
430
+        template_id:0,
428 431
         cruorOptions: [],
429 432
         symptomsOptions: [],
430 433
         internalFistulaOptions: [],
@@ -433,6 +436,7 @@ export default {
433 436
           {id: 1, name: 'g'},
434 437
           {id: 2, name: 'ml'},
435 438
         ],
439
+        actualTreatmentHourShow:'',
436 440
         vascularAccessDescOptions: [],
437 441
         catheterOptions: [],
438 442
         complicationOptions: [],
@@ -758,6 +762,7 @@ export default {
758 762
 
759 763
       show() {
760 764
         this.isVisibility = true
765
+
761 766
       },
762 767
 
763 768
       hide() {
@@ -771,7 +776,12 @@ export default {
771 776
           }
772 777
         }
773 778
         return false
774
-      }
779
+      },  setRecords (records) {
780
+        for (var index in records) {
781
+          this.$set(this.assessment_after_dislysis, index, records[index])
782
+        }
783
+        this.actualTreatmentHourShow = new Date(2018, 1, 1, this.assessment_after_dislysis['actual_treatment_hour'], this.assessment_after_dislysis['actual_treatment_minute'])
784
+      },
775 785
     },
776 786
     created() {
777 787
       console.log('this.form', this.form)
@@ -785,8 +795,7 @@ export default {
785 795
       this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac
786 796
       this.patientGoseOptions = this.$store.getters.patient_gose
787 797
       this.observationContentOptions = this.$store.getters.observation_content
788
-
789
-      console.log(this.patient)
798
+      this.template_id = this.$store.getters.xt_user.template_info.template_id;
790 799
 
791 800
       var date = this.$route.query && this.$route.query.date
792 801
       this.record_date = uParseTime(date, '{y}-{m}-{d}')

+ 0 - 88
src/xt_pages/dialysis/details/dialog/MsgTip.vue 查看文件

@@ -168,95 +168,7 @@
168 168
 </script>
169 169
 
170 170
 <style  scoped>
171
-  .DialogTit {
172
-  @include box-sizing;
173
-  @include display-flex;
174
-  @include align-items-center;
175
-  @include text-align;
176
-  @include justify-content-between;
177
-    padding: 0.3rem 0.36rem;
178
-    z-index: 999;
179
-    background: #fff;
180
-    box-shadow: 3px 3px 3px #d7dce2;
181
-    margin-bottom: 0.24rem;
182 171
 
183
-  .iconfont {
184
-    font-size: 0.6rem;
185
-    color: $ main-color;
186
-    font-weight: bold;
187 172
 
188
-  .back {
189
-    font-size: 0.45rem;
190
-    color: $ main-color;
191
-  @include display-flex;
192
-  @include align-items-center;
193
-    font-weight: 600;
194
-
195
-  .iconfont {
196
-    font-size: 0.5rem;
197
-    font-weight: 700;
198
-    color: $ main-color;
199
-    margin-top: 0.06rem;
200
-  }
201
-
202
-  }
203
-  .name {
204
-    font-size: 0.45rem;
205
-    color: $ main-color;
206
-    font-weight: 600;
207
-  }
208
-
209
-  .success {
210
-    font-size: 0.45rem;
211
-    font-weight: 600;
212
-    color: $ title-color;
213
-  }
214
-
215
-  }
216
-  }
217
-
218
-  .DialogContent {
219
-    height: 11.8rem !important;
220
-    overflow-y: scroll;
221
-    background: #fff;
222
-  .item {
223
-    padding: 0 0.32rem;
224
-    border-bottom: 1px #e5e5e5 solid;
225
-  @include box-sizing;
226
-  @include display-flex;
227
-  @include align-items-center;
228
-  @include text-align;
229
-  @include justify-content-between;
230
-    color: $title-color;
231
-  .name {
232
-    font-size: 0.45rem;
233
-    height: 1.2rem;
234
-    line-height: 1.2rem;
235
-    color: $title-color;
236
-  }
237
-  .content {
238
-  @include flex;
239
-    text-align: right;
240
-    margin-left: 0.2rem;
241
-  .iconfont {
242
-    font-size: 0.5rem;
243
-  }
244
-  input {
245
-    height: 1rem;
246
-    line-height: 1rem;
247
-    border: none;
248
-    font-size: 0.45rem;
249
-  @include flex;
250
-    text-align: right;
251
-    width: 100%;
252
-  }
253
-  .text {
254
-    height: 1rem;
255
-    line-height: 0.5rem;
256
-    font-size: 0.45rem;
257
-  }
258
-  }
259
-  }
260
-  }
261 173
 
262 174
 </style>

文件差异内容过多而无法显示
+ 548 - 422
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue


+ 195 - 29
src/xt_pages/dialysis/details/dialog/computer_dialog.vue 查看文件

@@ -2,28 +2,34 @@
2 2
   <div>
3 3
     <el-dialog title="透析上机" :visible.sync="visible" width="854px" :modal-append-to-body="false">
4 4
       <el-form :model="form" label-width="100px">
5
+
6
+        <el-form-item label="班次">
7
+          <el-select v-model="schedual_type" placeholder="请选择班次" @change="changeSchedualType">
8
+            <el-option v-for="(item, index) in schedules_type" :key="index" :value="item.id" :label="item.name" ></el-option>
9
+          </el-select>
10
+        </el-form-item>
11
+
5 12
         <el-form-item label="上机床位">
6
-          <el-select v-model="form.bed_id" placeholder="" :disabled="dialysis_order.id != 0">
13
+          <el-select v-model="form.bed_id" placeholder="请选择上机床位" >
7 14
             <el-option v-for="(bed, index) in zone_beds" :key="index" :value="bed.id" :label="bed.number"></el-option>
8 15
           </el-select>
9 16
         </el-form-item>
10 17
         <el-form-item label="上机护士">
11
-          <el-select v-model="form.nurse_id" placeholder="" :disabled="dialysis_order.id != 0">
18
+          <el-select v-model="form.nurse_id" placeholder="请选择上机护士" >
12 19
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
13 20
           </el-select>
14 21
         </el-form-item>
15 22
         <el-form-item label="穿刺护士">
16
-          <el-select v-model="form.puncture_nurse_id" placeholder="" :disabled="dialysis_order.id != 0">
23
+          <el-select v-model="form.puncture_nurse_id" placeholder="请选择穿刺护士" >
17 24
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
18 25
           </el-select>
19 26
         </el-form-item>
20 27
         <el-form-item label="引血(ml/min)" v-if="template_id == 6" >
21
-          <el-input type="number" v-model="form.lood_drawing" style="width:200px;"></el-input>
28
+          <el-input type="number" v-model="form.blood_drawing" style="width:200px;"></el-input>
22 29
         </el-form-item>
23
-    
30
+
24 31
         <el-form-item label="上机时间 :" style="width:300px">
25 32
           <el-date-picker
26
-            :disabled="dialysis_order.id != 0"
27 33
             type="datetime"
28 34
             format="yyyy-MM-dd HH:mm"
29 35
             value-format="yyyy-MM-dd HH:mm"
@@ -35,6 +41,8 @@
35 41
         <el-form-item>
36 42
           <el-button v-if="dialysis_order.id == 0" @click="submit" type="primary" :loading="loading">执行上机</el-button>
37 43
           <el-button v-else type="info" :disabled="true">已上机</el-button>
44
+          <el-button v-if="dialysis_order.id > 0 && (isPremission || this.$store.getters.xt_user.user.id == this.creator)" type="primary" @click="editOrder">修改上机</el-button>
45
+
38 46
         </el-form-item>
39 47
       </el-form>
40 48
     </el-dialog>
@@ -43,26 +51,35 @@
43 51
 </template>
44 52
 
45 53
 <script>
46
-  import { startDialysis } from '@/api/dialysis_record'
54
+  import { startDialysis,GetSchedualNumber,PostModifyStartDialysis } from '@/api/dialysis_record'
47 55
   import { parseTime } from '@/utils'
48 56
 
49 57
   export default {
50 58
     name: 'ComputerDialog',
51 59
     data() {
52 60
       return {
61
+        zone_beds:[],
53 62
         visible: false,
54 63
         loading: false,
55 64
         template_id: 0,
56 65
         patient_id: 0,
57 66
         schedule_date: 0,
58 67
         start_time: 0,
68
+        creator:0,
59 69
         form: {
60 70
           bed_id: '',
61 71
           nurse_id: '',
62 72
           start_time: '',
63 73
           puncture_nurse_id: '',
64
-          lood_drawing: 100
65
-        }
74
+          blood_drawing: 100
75
+        },
76
+        schedual_type:0,
77
+        schedules_type: [
78
+          {id: 1, name:"上午"},
79
+          {id: 2, name:"下午"},
80
+          {id: 3, name:"晚上"},
81
+        ], // 该排班的区里的床位
82
+        isPremission:false,
66 83
       }
67 84
     },
68 85
     props: {
@@ -77,29 +94,41 @@
77 94
       },
78 95
       device_numbers: {
79 96
         type: Array
80
-      }
97
+      },
98
+      special_premission: {
99
+        type: Array,
100
+      },
101
+    },mounted(){
102
+
103
+
104
+
105
+
81 106
     },
82 107
     created() {
108
+
83 109
       this.template_id = this.$store.getters.xt_user.template_info.template_id
84 110
       this.patient_id = this.$route.query.patient_id
85 111
       this.schedule_date = this.$route.query.date
86
-
87
-      this.form.bed_id = this.dialysis_order.id == 0 ? this.schedule.bed_id : this.dialysis_order.bed_id
88 112
       this.form.nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.start_nurse
89 113
       this.form.puncture_nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.puncture_nurse
90
-      this.form.lood_drawing = 0
91
-
92 114
       if (this.form.puncture_nurse_id == 0) {
93 115
         this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id
94 116
       }
117
+
118
+
119
+
120
+
121
+
122
+
123
+
95 124
     },
96 125
     watch: {
97 126
       'schedule.id': function() {
98
-        this.form.bed_id = this.dialysis_order.id == 0 ? this.schedule.bed_id : this.dialysis_order.bed_id
99 127
       },
100 128
       'dialysis_order.id': function() {
101
-        console.log(this.dialysis_order)
102
-        this.form.bed_id = this.dialysis_order.id == 0 ? this.schedule.bed_id : this.dialysis_order.bed_id
129
+
130
+
131
+
103 132
         this.form.nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.start_nurse
104 133
         this.form.puncture_nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.puncture_nurse
105 134
 
@@ -117,21 +146,90 @@
117 146
           '-' +
118 147
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
119 148
         this.form.start_time = this.dialysis_order.id == 0 ? time : this.getTime(this.dialysis_order.start_time, '{y}-{m}-{d} {h}:{i}')
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
120 157
       }
121 158
     },
122 159
     computed: {
123
-      zone_beds: function() {
124
-        var beds = []
125
-        for (let index = 0; index < this.device_numbers.length; index++) {
126
-          const device_number = this.device_numbers[index]
127
-          if (device_number.zone_id == this.schedule.partition_id) {
128
-            beds.push(device_number)
129
-          }
130
-        }
131
-        return beds
132
-      }
160
+      // zone_beds: function() {
161
+      //   var beds = []
162
+      //   for (let index = 0; index < this.device_numbers.length; index++) {
163
+      //     const device_number = this.device_numbers[index]
164
+      //     beds.push(device_number)
165
+      //   }
166
+      //   console.log(this.device_numbers)
167
+      //   return beds
168
+      // }
133 169
     },
134 170
     methods: {
171
+      changeSchedualType:function(schedual_type){
172
+        let ParamsQuery = {}
173
+        ParamsQuery['schedual_type'] = schedual_type
174
+        GetSchedualNumber(ParamsQuery).then(response => {
175
+          if (response.data.state == 0) {
176
+            return false
177
+          } else {
178
+            this.temp_device_numbers = response.data.data.number
179
+            for (let index = 0; index < this.temp_device_numbers.length; index++) {
180
+              const device_number = this.temp_device_numbers[index]
181
+              this.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
182
+            }
183
+            this.zone_beds = this.temp_device_numbers
184
+            this.form.bed_id = this.zone_beds[0].id
185
+
186
+          }
187
+        })
188
+
189
+      },
190
+      GetSchedualNumber:function(){
191
+        let ParamsQuery = {}
192
+        ParamsQuery['schedual_type'] = this.schedual_type
193
+        GetSchedualNumber(ParamsQuery).then(response => {
194
+          if (response.data.state == 0) {
195
+            this.$message.error(response.data.msg)
196
+            return false
197
+          } else {
198
+            this.temp_device_numbers = response.data.data.number
199
+            for (let index = 0; index < this.temp_device_numbers.length; index++) {
200
+              const device_number = this.temp_device_numbers[index]
201
+              this.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
202
+            }
203
+            this.zone_beds = this.temp_device_numbers
204
+
205
+            this.form.bed_id = this.dialysis_order.id == 0 ? this.schedule.bed_id : this.dialysis_order.bed_id
206
+            if(this.dialysis_order.id == 0) {
207
+              let isFilter = true
208
+              for (let i = 0; i < this.zone_beds.length; i++) {
209
+                if(this.zone_beds[i].id == this.schedule.bed_id ){
210
+                  isFilter = false
211
+
212
+                }
213
+              }
214
+              if(isFilter){
215
+                this.form.bed_id = this.zone_beds[0].id
216
+              }
217
+            }else{
218
+              for (let i = 0; i < this.device_numbers.length; i++){
219
+                if (this.device_numbers[i].id == this.dialysis_order.bed_id){
220
+                  let obj = {}
221
+                  obj = this.device_numbers[i]
222
+                  if(obj['number'].indexOf(this.device_numbers[i]['zone_name']) == -1) {
223
+                    obj['number'] = this.device_numbers[i]['zone_name'] + "-" + this.device_numbers[i]['number']
224
+                  }
225
+                  this.zone_beds.unshift(obj)
226
+                  this.zone_beds.sort((a, b) => a.id -b.id)
227
+                }
228
+              }
229
+            }
230
+          }
231
+        })
232
+      },
135 233
       getTime(value, temp) {
136 234
         if (value != undefined) {
137 235
           return parseTime(value, temp)
@@ -159,13 +257,51 @@
159 257
             '-' +
160 258
             (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
161 259
         }
260
+
261
+        if (this.dialysis_order.id == 0) {
262
+          let now = new Date()
263
+          let hour = now.getHours()
264
+          if (hour >= 6 && hour < 12){
265
+            this.schedual_type = 1
266
+
267
+          }else if(hour >= 12 && hour < 18){
268
+
269
+            this.schedual_type = 2
270
+
271
+
272
+          }else if(hour >= 18){
273
+            this.schedual_type = 3
274
+          }
275
+        } else {
276
+
277
+          this.schedual_type = this.dialysis_order.schedual_type
278
+        }
279
+
280
+
281
+        if (this.dialysis_order.id > 0) {
282
+          for (let i = 0; i < this.special_premission.length; i++) {
283
+            if (this.$store.getters.xt_user.user.id == this.special_premission[i].admin_user_id) {
284
+              this.isPremission = true
285
+            }
286
+          }
287
+        }
288
+
289
+        if (this.dialysis_order.id > 0) {
290
+          if (this.dialysis_order.creator == 0) {
291
+            this.creator = this.dialysis_order.start_nurse
292
+          } else {
293
+            this.creator = this.dialysis_order.creator
294
+          }
295
+        }
296
+
297
+        this.GetSchedualNumber()
162 298
       },
163 299
       hide: function() {
164 300
         this.visible = false
165 301
       },
166 302
       submit: function() {
167 303
         this.loading = true
168
-        startDialysis(this.patient_id, parseTime(this.schedule_date, '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time).then(rs => {
304
+        startDialysis(this.patient_id, parseTime(this.schedule_date, '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time,this.schedual_type).then(rs => {
169 305
           this.loading = false
170 306
           var resp = rs.data
171 307
           if (resp.state == 1) {
@@ -174,11 +310,41 @@
174 310
             for (const key in resp_dialysis_order) {
175 311
               this.$set(this_order, key, resp_dialysis_order[key])
176 312
             }
313
+            this.hide()
314
+            this.$emit('monitor',  resp.data.monitor)
315
+            this.$message.success("上机成功")
316
+
177 317
           } else {
178 318
             this.$message.error(resp.msg)
179 319
           }
180 320
         })
181
-      }
321
+      }, editOrder(){
322
+        let ParamsQuery = {}
323
+        ParamsQuery['schedual_type'] = this.schedual_type
324
+        ParamsQuery['id'] = this.dialysis_order.id
325
+        ParamsQuery['nurse'] = this.form.nurse_id
326
+        ParamsQuery['bed'] = this.form.bed_id
327
+        ParamsQuery['start_time'] =  this.form.start_time
328
+        ParamsQuery['puncture_nurse'] = this.form.puncture_nurse_id
329
+        PostModifyStartDialysis(ParamsQuery).then(rs => {
330
+          var resp = rs.data
331
+          if (resp.state == 1) {
332
+            this.$message.success("修改成功")
333
+
334
+            var resp_dialysis_order = resp.data.dialysis_order
335
+            var this_order = this.dialysis_order
336
+            for (const key in resp_dialysis_order) {
337
+              this.$set(this_order, key, resp_dialysis_order[key])
338
+              this.$emit('assessmentAfterDislysis', resp.data.after)
339
+
340
+            }
341
+
342
+          } else {
343
+            this.$message.error(resp.msg)
344
+          }
345
+        })
346
+      },
347
+
182 348
     }
183 349
   }
184 350
 </script>

+ 229 - 23
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -7,7 +7,7 @@
7 7
       :modal-append-to-body="false"
8 8
       :append-to-body="true"
9 9
     >
10
-      <el-button @click="handlePatientInfo">{{patient.name}}</el-button>
10
+      <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo">{{patient.name}}</el-button>
11 11
 
12 12
       <el-form ref="dialysisPrescription" :model="dialysisPrescription" label-width="148px">
13 13
         <el-row :gutter="24">
@@ -86,20 +86,26 @@
86 86
 
87 87
           <el-col :span="8" v-if="anticoagulant.shouji != -1&&isShows('首剂')">
88 88
             <el-form-item :label="'首剂('+anticoagulant.shouji_unit+') : '">
89
-              <el-input type="number" v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
89
+              <el-input type="number"  v-if="dialysisPrescription.anticoagulant != 1"  v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
90
+              <el-input type="number" disabled   v-if="dialysisPrescription.anticoagulant == 1" v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
91
+
90 92
             </el-form-item>
91 93
           </el-col>
92 94
 
93 95
 
94 96
           <el-col :span="8" v-if="anticoagulant.weichi != -1&&isShows('维持')">
95 97
             <el-form-item :label="'维持('+anticoagulant.weichi_unit+') : '" v-if="anticoagulant.weichi != -1">
96
-              <el-input type="number" v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
98
+              <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"  v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
99
+              <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"  v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
100
+
97 101
             </el-form-item>
98 102
           </el-col>
99 103
 
100 104
           <el-col :span="8" v-if="anticoagulant.zongliang != -1&&isShows('总量')">
101 105
             <el-form-item :label="'总量('+anticoagulant.zongliang_unit+') : '">
102
-              <el-input type="number" v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
106
+              <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1" v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
107
+              <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1" v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
108
+
103 109
             </el-form-item>
104 110
           </el-col>
105 111
 
@@ -111,7 +117,7 @@
111 117
             </el-form-item>
112 118
           </el-col>
113 119
           <el-col :span="8" v-if="anticoagulant.gaijiliang != -1&&isShows('钙剂量')">
114
-            <el-form-item label="钙剂量(ml/h) : ">
120
+            <el-form-item label="钙剂量(ml) : ">
115 121
               <el-input type="number" v-model="dialysisPrescription.anticoagulant_gaijiliang"
116 122
                         :disabled="anticoagulant.gaijiliang==1?false:true" placeholder="钙剂量"></el-input>
117 123
             </el-form-item>
@@ -463,7 +469,7 @@
463 469
     >
464 470
 
465 471
       <el-checkbox-group v-model="checkedCities">
466
-        <el-checkbox style="display:block;vertical-align: middle" v-for="(advice, index) in targetAdvices"
472
+        <el-checkbox  style="display: flex;align-items: center" v-for="(advice, index) in targetAdvices"
467 473
                      :label="advice.id"
468 474
                      :key="index"
469 475
                      :value="advice.id"
@@ -487,17 +493,54 @@
487 493
     </el-dialog>
488 494
 
489 495
 
490
-    <!--<msg-tip-->
491
-      <!--:visibility="msgtip_visibility"-->
492
-      <!--:predialysis="predialysis"-->
493
-      <!--:last_predialysis="last_predialysis"-->
494
-      <!--:record="record"-->
495
-      <!--:last_record="last_record"-->
496
-      <!--:patient_prop="patient"-->
497
-      <!--:prescription_prop="prescription"-->
498
-      <!--v-on:menu-msg-tip="menuMsgTip"-->
499
-    <!--&gt;-->
500
-    <!--</msg-tip>-->
496
+    <el-dialog
497
+      :title="patient.name"
498
+      :visible.sync="msgtip_visibility"
499
+      :close-on-click-modal="false"
500
+      :close-on-press-escape="false"
501
+      :show-close="false"
502
+      width="30%"
503
+    >
504
+      <div class="newLine">
505
+        <span>本次透析日期</span>
506
+        <span>{{dialysis_date}}</span>
507
+      </div>
508
+      <div class="newLine">
509
+        <span>透前体重(kg)</span>
510
+        <span>{{ predialysis.weight_before }}</span>
511
+      </div>
512
+      <div class="newLine">
513
+        <span>干体重(kg)</span>
514
+        <span>{{ last_predialysis?last_predialysis.dry_weight:''}}</span>
515
+      </div>
516
+      <div class="newLine">
517
+        <span>衣物重(kg)</span>
518
+        <span>{{
519
+            predialysis.additional_weight
520
+          }}</span>
521
+      </div>
522
+      <div class="newLine">
523
+        <span>体重增加(kg)</span>
524
+        <span>{{ add_weight }}</span>
525
+      </div>
526
+      <div class="newLine">
527
+        <span>透后体重(kg)</span>
528
+        <span>{{ record.weight_after }}</span>
529
+      </div>
530
+      <div class="newLine">
531
+        <span>体重减少(kg)</span>
532
+        <span>{{ record.weight_loss }}</span>
533
+      </div>
534
+      <div class="newLine">
535
+        <span>上次透后体重(kg)</span>
536
+        <span>{{last_record?last_record.weight_after:''}}</span>
537
+      </div>
538
+
539
+      <span slot="footer" class="dialog-footer">
540
+            <el-button @click="cancleMsg()">取 消</el-button>
541
+            <el-button type="primary" @click="cancleMsg()">确 定</el-button>
542
+          </span>
543
+    </el-dialog>
501 544
 
502 545
   </div>
503 546
 
@@ -509,6 +552,7 @@
509 552
   import { uParseTime } from '@/utils/tools'
510 553
   import store from '@/store'
511 554
   import MsgTip from './MsgTip'
555
+  import { calculateAnticoagulantZL} from '@/utils/tools'
512 556
 
513 557
   export default {
514 558
     name: 'dialysisPrescriptionDialog',
@@ -697,12 +741,17 @@
697 741
       },
698 742
 
699 743
     },
744
+    computed: {
745
+      dialysis_date: function() {
746
+        return uParseTime(this.$route.query.date, '{y}/{m}/{d}')
747
+      }
748
+    },
700 749
     data() {
701 750
       return {
702 751
         zhiShow: false,
703 752
         totalShow: false,
704 753
         huShow: false,
705
-
754
+        showName:'',
706 755
         isShowRemindAdvice: false,
707 756
         checkedCities: [],
708 757
         isVisibility: false,
@@ -717,12 +766,14 @@
717 766
         replacement_ways: [],
718 767
         anticoagulantsConfit: {},
719 768
         dialysate_formulation_options: [],
720
-
769
+        add_weight:0,
721 770
         body_fluid_option: [],
722 771
         special_medicine_option: [],
723 772
         displace_liqui_part_option: [],
724 773
         blood_access_option: [],
725 774
         is_pre: 0,
775
+        msgtip_visibility: false,
776
+
726 777
         dialysisPrescription: {
727 778
           replacement_total: '',
728 779
           mode_id: '',
@@ -781,7 +832,12 @@
781 832
           package: '',
782 833
           a_liquid: '',
783 834
 
784
-          msgtip_visibility: false
835
+
836
+          no_anticoagulant_shouji: '0',
837
+          no_anticoagulant_weichi: '0',
838
+          no_anticoagulant_zongliang: '0',
839
+
840
+
785 841
 
786 842
         },
787 843
 
@@ -1898,9 +1954,23 @@
1898 1954
       }, handlePatientInfo() {
1899 1955
         this.isVisibility = false
1900 1956
         this.msgtip_visibility = true
1957
+      },cancleMsg(){
1958
+
1959
+        this.isVisibility = true
1960
+        this.msgtip_visibility = false
1901 1961
       }
1902 1962
     },
1903 1963
     created() {
1964
+
1965
+
1966
+      if (
1967
+        this.predialysis.weight_before > 0 &&
1968
+        this.last_record.weight_after > 0
1969
+      ) {
1970
+        this.add_weight = parseFloat(
1971
+          this.predialysis.weight_before - this.last_record.weight_after
1972
+        ).toFixed(2)
1973
+      }
1904 1974
       this.treatment_mode = this.$store.getters.treatment_mode
1905 1975
       this.perfusion_apparatus = getDataConfig('hemodialysis', 'perfusion_apparatus')
1906 1976
       this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
@@ -1917,10 +1987,137 @@
1917 1987
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
1918 1988
     },
1919 1989
     watch: {
1920
-      isVisibility(val) {
1990
+      "dialysisPrescription.dialysis_duration_hour":function(){
1991
+        let  dialysis_duration_minute = 0
1992
+        let dialysis_duration_hour = 0
1993
+        let duration = 0
1994
+
1995
+        if (this.dialysisPrescription.dialysis_duration_minute == ''){
1996
+          dialysis_duration_minute = 0
1997
+        }else{
1998
+          dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
1999
+        }
2000
+
2001
+        if (this.dialysisPrescription.dialysis_duration_hour == ''){
2002
+          dialysis_duration_hour = 0
2003
+
2004
+        }else{
2005
+
2006
+          dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
2007
+
2008
+        }
2009
+        duration = parseFloat(dialysis_duration_hour) * 60 + parseFloat(dialysis_duration_minute)
2010
+
2011
+
2012
+
2013
+
2014
+        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2015
+          this.dialysisPrescription.anticoagulant_shouji,
2016
+          duration,
2017
+          this.dialysisPrescription.anticoagulant_weichi
2018
+        );
2019
+        if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2020
+          this.dialysisPrescription.anticoagulant_zongliang = ''
2021
+        }
2022
+      },
2023
+      "dialysisPrescription.dialysis_duration_minute":function(){
2024
+        let  dialysis_duration_minute = 0
2025
+        let dialysis_duration_hour = 0
2026
+        let duration = 0
2027
+
2028
+        if (this.dialysisPrescription.dialysis_duration_minute == ''){
2029
+          dialysis_duration_minute = 0
2030
+        }else{
2031
+          dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
2032
+        }
2033
+
2034
+        if (this.dialysisPrescription.dialysis_duration_hour == ''){
2035
+          dialysis_duration_hour = 0
2036
+
2037
+        }else{
2038
+
2039
+          dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
2040
+
2041
+        }
2042
+        duration = parseFloat(dialysis_duration_hour) * 60 + parseFloat(dialysis_duration_minute)
2043
+
2044
+
2045
+
2046
+        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2047
+          this.dialysisPrescription.anticoagulant_shouji,
2048
+          duration,
2049
+          this.dialysisPrescription.anticoagulant_weichi
2050
+        );
2051
+        if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2052
+          this.dialysisPrescription.anticoagulant_zongliang = ''
2053
+        }
2054
+      },
2055
+      "dialysisPrescription.anticoagulant_shouji":function(){
2056
+
2057
+        let  dialysis_duration_minute = 0
2058
+        let dialysis_duration_hour = 0
2059
+        let duration = 0
2060
+
2061
+        if (this.dialysisPrescription.dialysis_duration_minute == ''){
2062
+          dialysis_duration_minute = 0
2063
+        }else{
2064
+          dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
2065
+        }
2066
+
2067
+        if (this.dialysisPrescription.dialysis_duration_hour == ''){
2068
+          dialysis_duration_hour = 0
2069
+
2070
+        }else{
2071
+
2072
+          dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
1921 2073
 
2074
+        }
2075
+        duration = parseFloat(dialysis_duration_hour) * 60 + parseFloat(dialysis_duration_minute)
2076
+
2077
+
2078
+        console.log(duration)
2079
+
2080
+        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2081
+          this.dialysisPrescription.anticoagulant_shouji,
2082
+          duration,
2083
+          this.dialysisPrescription.anticoagulant_weichi
2084
+        );
2085
+        if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2086
+          this.dialysisPrescription.anticoagulant_zongliang = ''
2087
+        }
1922 2088
       },
1923
-      'prescription.id': function() {
2089
+      "dialysisPrescription.anticoagulant_weichi":function(){
2090
+        let  dialysis_duration_minute = 0
2091
+        let dialysis_duration_hour = 0
2092
+        let duration = 0
2093
+
2094
+        if (this.dialysisPrescription.dialysis_duration_minute == ''){
2095
+          dialysis_duration_minute = 0
2096
+        }else{
2097
+          dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
2098
+        }
2099
+
2100
+        if (this.dialysisPrescription.dialysis_duration_hour == ''){
2101
+          dialysis_duration_hour = 0
2102
+
2103
+        }else{
2104
+
2105
+          dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
2106
+
2107
+        }
2108
+        duration = parseFloat(dialysis_duration_hour) * 60 + parseFloat(dialysis_duration_minute)
2109
+
2110
+        console.log(duration)
2111
+
2112
+        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2113
+          this.dialysisPrescription.anticoagulant_shouji,
2114
+          duration,
2115
+          this.dialysisPrescription.anticoagulant_weichi
2116
+        );
2117
+        if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2118
+          this.dialysisPrescription.anticoagulant_zongliang = ''
2119
+        }
2120
+      }, 'prescription.id': function() {
1924 2121
         if (this.prescription.id > 0) {
1925 2122
           for (var index in this.dialysisPrescription) {
1926 2123
             this.dialysisPrescription[index] = this.prescription[index]
@@ -2160,9 +2357,18 @@
2160 2357
 
2161 2358
 </script>
2162 2359
 
2163
-<style scoped>
2360
+<style rel="stylesheet/scss" lang="scss" scoped>
2164 2361
   .el-checkbox, .el-checkbox__input {
2165 2362
     vertical-align: middle;
2166 2363
   }
2167 2364
 
2365
+
2366
+  .newLine {
2367
+    display: flex;
2368
+    justify-content: space-between;
2369
+    height: 40px;
2370
+    line-height: 40px;
2371
+    border-bottom: 1px solid #ccc;
2372
+  }
2373
+
2168 2374
 </style>

+ 282 - 98
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue 查看文件

@@ -43,6 +43,16 @@
43 43
       </el-form-item>
44 44
     </el-form>
45 45
 
46
+    <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
47
+    <el-form-item label="核对时间 : ">
48
+        <el-time-picker
49
+          v-model="time"
50
+          format='HH:mm'
51
+          value-format="HH:mm"
52
+          placeholder="请输入核对时间">
53
+        </el-time-picker>
54
+      </el-form-item>
55
+    </el-form>
46 56
 
47 57
 
48 58
     <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
@@ -51,7 +61,6 @@
51 61
     </el-form>
52 62
 
53 63
 
54
-
55 64
     <div slot="footer" class="dialog-footer">
56 65
       <el-button @click="handleCancle">取 消</el-button>
57 66
       <el-button type="primary" @click="handleComfirm">保 存</el-button>
@@ -62,134 +71,286 @@
62 71
 </template>
63 72
 
64 73
 <script>
65
-  import {postDoubleCheck} from "@/api/dialysis";
66
-  import {uParseTime} from "@/utils/tools";
74
+  import { postDoubleCheck } from '@/api/dialysis'
75
+  import { uParseTime } from '@/utils/tools'
67 76
 
68 77
   export default {
69
-    name: "doubleCheckDialog",
78
+    name: 'doubleCheckDialog',
70 79
     data() {
71 80
       return {
72 81
         isVisibility: false,
73
-
82
+        time:'',
74 83
         isClose: false,
75 84
         doubleReview: {
76
-          dialysis_item_check: "1",
77
-          dialysis_parameter_check: "1",
78
-          vascular_access_verification: "1",
79
-          pipeline_connection_check: "1",
80
-          dialysis_item_desc: "",
81
-          dialysis_parameter_desc: "",
82
-          vascular_access_desc: "",
83
-          pipeline_connection_desc: "",
84
-          collator: "",
85
+          dialysis_item_check: '1',
86
+          dialysis_parameter_check: '1',
87
+          vascular_access_verification: '1',
88
+          pipeline_connection_check: '1',
89
+          dialysis_item_desc: '',
90
+          dialysis_parameter_desc: '',
91
+          vascular_access_desc: '',
92
+          pipeline_connection_desc: '',
93
+          collator: '',
85 94
 
86 95
           creater: 0,
87 96
           modifier: 0,
88 97
           created_time: 0,
89 98
           updated_time: 0,
99
+          check_time: 0,
100
+          first_check_time: 0
90 101
         },
91 102
 
92
-        record_date: ""
93
-      };
103
+        record_date: ''
104
+      }
94 105
     }, methods: {
95 106
       show() {
96
-        this.isVisibility = true;
107
+        this.isVisibility = true
108
+
109
+
110
+
111
+
97 112
       },
98 113
       hide() {
99
-        this.isVisibility = false;
114
+        this.isVisibility = false
100 115
       },
101
-      handleCancle: function () {
102
-        this.isVisibility = false;
116
+      handleCancle: function() {
117
+        this.isVisibility = false
103 118
 
104
-      }, handleComfirm: function () {
119
+      }, handleComfirm: function() {
105 120
 
106 121
         if (this.patient.id <= 0) {
107
-          this.$message.error("没有选择患者")
122
+          this.$message.error('没有选择患者')
108 123
           return
109 124
         }
110 125
 
111
-        let ParamsQuery = this.doubleReview;
112
-        ParamsQuery["patient"] = this.patient.id;
113
-        ParamsQuery["record_date"] = this.record_date;
126
+        let ParamsQuery = this.doubleReview
127
+        ParamsQuery['patient'] = this.patient.id
128
+        ParamsQuery['record_date'] = this.record_date
129
+        ParamsQuery['check_time'] = this.record_date +" "+ this.time
130
+
114 131
         postDoubleCheck(ParamsQuery).then(response => {
115 132
           if (response.data.state == 0) {
116
-            this.$message.error(response.data.msg);
117
-            return false;
133
+            this.$message.error(response.data.msg)
134
+            return false
118 135
           } else {
119 136
             this.$notify({
120
-              title: "成功",
121
-              message: "提交成功",
122
-              type: "success",
137
+              title: '成功',
138
+              message: '提交成功',
139
+              type: 'success',
123 140
               duration: 2000
124
-            });
125
-            this.doubleReview.created_time =   response.data.data.doubleCheck.created_time
126
-            this.doubleReview.creater =  response.data.data.doubleCheck.creater
127
-            this.doubleReview.updated_time =  response.data.data.doubleCheck.updated_time
128
-            this.doubleReview.modifier =   response.data.data.doubleCheck.modifier
141
+            })
142
+
143
+            this.doubleReview.creater = response.data.data.doubleCheck.creater;
144
+            this.doubleReview.check_time =
145
+              response.data.data.doubleCheck.check_time;
146
+            this.doubleReview.first_check_time =
147
+              response.data.data.doubleCheck.first_check_time;
148
+            this.doubleReview.modifier = response.data.data.doubleCheck.modifier;
129 149
 
130 150
 
131
-            let doublecheck_resp = response.data.data.doubleCheck;
132
-            var doubleCheck = this.double_check;
151
+            let doublecheck_resp = response.data.data.doubleCheck
152
+            var doubleCheck = this.double_check
133 153
             for (var index in doublecheck_resp) {
134 154
               // doubleCheck[index] = doublecheck_resp[index];
135 155
               this.$set(doubleCheck, index, doublecheck_resp[index])
136 156
             }
137 157
             this.hide()
138 158
           }
139
-        });
159
+        })
140 160
 
141
-      }, getFirstCheckDesc: function () {
142
-        let time = uParseTime(this.doubleReview.created_time, "{y}-{m}-{d}  {h}:{i}")
143
-        if (this.doubleReview.creater <= 0) {
144
-          return "";
145
-        }
161
+      },
162
+      getFirstCheckDesc: function() {
163
+        if (
164
+          this.doubleReview.first_check_time > 0 &&
165
+          this.doubleReview.check_time > 0
166
+        ) {
167
+          if (this.doubleReview.first_check_time < this.doubleReview.check_time) {
168
+            let time = uParseTime(
169
+              this.doubleReview.first_check_time,
170
+              "{y}-{m}-{d}  {h}:{i}"
171
+            );
172
+            if (this.doubleReview.creater <= 0) {
173
+              return "";
174
+            }
146 175
 
147
-        var desc = "";
148
-        if (this.admin_users == null || typeof this.admin_users == "undefined") {
149
-          return "";
150
-        }
176
+            var desc = "";
177
+            if (
178
+              this.admin_users == null ||
179
+              typeof this.admin_users.length == "undefined"
180
+            ) {
181
+              return "";
182
+            }
151 183
 
152
-        var leng = this.admin_users.length;
153
-        if (leng == 0) {
154
-          return "";
155
-        }
184
+            var leng = this.admin_users.length;
185
+            if (leng == 0) {
186
+              return "";
187
+            }
188
+
189
+            for (let index = 0; index < leng; index++) {
190
+              if (this.admin_users[index].id == this.doubleReview.creater) {
191
+                let name = this.admin_users[index].name;
192
+                desc = "首次核对人员:" + name + " 首次核对时间:" + time;
193
+
194
+                break;
195
+              }
196
+            }
197
+            return desc;
198
+          } else {
199
+            let time = uParseTime(
200
+              this.doubleReview.check_time,
201
+              "{y}-{m}-{d}  {h}:{i}"
202
+            );
203
+            if (this.doubleReview.modifier <= 0) {
204
+              return "";
205
+            }
206
+
207
+            var desc = "";
208
+            if (
209
+              this.admin_users == null ||
210
+              typeof this.admin_users.length == "undefined"
211
+            ) {
212
+              return "";
213
+            }
214
+
215
+            var leng = this.admin_users.length;
216
+            if (leng == 0) {
217
+              return "";
218
+            }
219
+
220
+            for (let index = 0; index < leng; index++) {
221
+              if (this.admin_users[index].id == this.doubleReview.modifier) {
222
+                let name = this.admin_users[index].name;
223
+                desc = "首次核对人员:" + name + " 首次核对时间:" + time;
156 224
 
157
-        for (let index = 0; index < leng; index++) {
158
-          if (this.admin_users[index].id == this.doubleReview.creater) {
159
-            let name = this.admin_users[index].name;
160
-            desc = "首次核对人员:"+name +"  首次核对时间:"+time
161
-            break;
225
+                break;
226
+              }
227
+            }
228
+            return desc;
229
+          }
230
+        } else {
231
+          let time = uParseTime(
232
+            this.doubleReview.first_check_time,
233
+            "{y}-{m}-{d}  {h}:{i}"
234
+          );
235
+          if (this.doubleReview.creater <= 0) {
236
+            return "";
162 237
           }
163
-        }
164
-        return desc;
165 238
 
166
-      }, getScondCheckDesc: function () {
239
+          var desc = "";
240
+          if (
241
+            this.admin_users == null ||
242
+            typeof this.admin_users.length == "undefined"
243
+          ) {
244
+            return "";
245
+          }
167 246
 
168
-        let time = uParseTime(this.doubleReview.updated_time, "{y}-{m}-{d} {h}:{i}")
169
-        if (this.doubleReview.modifier <= 0) {
170
-          return "";
171
-        }
172
-        var desc = "";
173
-        if (this.admin_users == null || typeof this.admin_users.length == "undefined") {
174
-          return desc;
175
-        }
176
-        var leng = this.admin_users.length;
177
-        if (leng == 0) {
247
+          var leng = this.admin_users.length;
248
+          if (leng == 0) {
249
+            return "";
250
+          }
251
+
252
+          for (let index = 0; index < leng; index++) {
253
+            if (this.admin_users[index].id == this.doubleReview.creater) {
254
+              let name = this.admin_users[index].name;
255
+              desc = "首次核对人员:" + name + " 首次核对时间:" + time;
256
+
257
+              break;
258
+            }
259
+          }
178 260
           return desc;
179 261
         }
180
-        for (let index = 0; index < leng; index++) {
181
-          if (this.admin_users[index].id == this.doubleReview.modifier) {
182
-            let name = this.admin_users[index].name;
183
-            desc = "第二次核对人员:"+name +"  第二次核对时间:"+time
184
-            break;
262
+      },
263
+      getScondCheckDesc: function() {
264
+        if (
265
+          this.doubleReview.first_check_time > 0 &&
266
+          this.doubleReview.check_time > 0
267
+        ) {
268
+          if (this.doubleReview.first_check_time < this.doubleReview.check_time) {
269
+            let time = uParseTime(
270
+              this.doubleReview.check_time,
271
+              "{y}-{m}-{d} {h}:{i}"
272
+            );
273
+            if (this.doubleReview.modifier <= 0) {
274
+              return "";
275
+            }
276
+            var desc = "";
277
+            if (
278
+              this.admin_users == null ||
279
+              typeof this.admin_users.length == "undefined"
280
+            ) {
281
+              return desc;
282
+            }
283
+            var leng = this.admin_users.length;
284
+            if (leng == 0) {
285
+              return desc;
286
+            }
287
+            for (let index = 0; index < leng; index++) {
288
+              if (this.admin_users[index].id == this.doubleReview.modifier) {
289
+                let name = this.admin_users[index].name;
290
+                desc = "第二次核对人员:" + name + " 第二次核对时间:" + time;
291
+                break;
292
+              }
293
+            }
294
+            return desc;
295
+          } else {
296
+            let time = uParseTime(
297
+              this.doubleReview.first_check_time,
298
+              "{y}-{m}-{d} {h}:{i}"
299
+            );
300
+            if (this.doubleReview.creater <= 0) {
301
+              return "";
302
+            }
303
+            var desc = "";
304
+            if (
305
+              this.admin_users == null ||
306
+              typeof this.admin_users.length == "undefined"
307
+            ) {
308
+              return desc;
309
+            }
310
+            var leng = this.admin_users.length;
311
+            if (leng == 0) {
312
+              return desc;
313
+            }
314
+            for (let index = 0; index < leng; index++) {
315
+              if (this.admin_users[index].id == this.doubleReview.creater) {
316
+                let name = this.admin_users[index].name;
317
+                desc = "第二次核对人员:" + name + " 第二次核对时间:" + time;
318
+                break;
319
+              }
320
+            }
321
+            return desc;
322
+          }
323
+        } else {
324
+          let time = uParseTime(
325
+            this.doubleReview.check_time,
326
+            "{y}-{m}-{d} {h}:{i}"
327
+          );
328
+          if (this.doubleReview.modifier <= 0) {
329
+            return "";
185 330
           }
331
+          var desc = "";
332
+          if (
333
+            this.admin_users == null ||
334
+            typeof this.admin_users.length == "undefined"
335
+          ) {
336
+            return desc;
337
+          }
338
+          var leng = this.admin_users.length;
339
+          if (leng == 0) {
340
+            return desc;
341
+          }
342
+          for (let index = 0; index < leng; index++) {
343
+            if (this.admin_users[index].id == this.doubleReview.modifier) {
344
+              let name = this.admin_users[index].name;
345
+              desc = "第二次核对人员:" + name + " 第二次核对时间:" + time;
346
+              break;
347
+            }
348
+          }
349
+          return desc;
186 350
         }
187
-        return desc;
188
-
189
-      }
190
-
191
-
351
+      },
192 352
     },
353
+
193 354
     props: {
194 355
       admin_users: { //系统用户列表
195 356
         type: Array,
@@ -201,49 +362,72 @@
201 362
       double_check: { // 双人核对
202 363
         type: Object,
203 364
         default: () => {
204
-          return {id: 0}
365
+          return { id: 0 }
205 366
         }
206 367
       },
207 368
       patient: { // 患者信息
208 369
         type: Object,
209 370
         default: () => {
210
-          return {id: 0}
371
+          return { id: 0 }
211 372
         }
212
-      },
373
+      }
213 374
 
214 375
     },
215 376
     watch: {
216 377
       isVisibility(val) {
217 378
 
218
-      }, "double_check.id": function () {
379
+      }, 'double_check.id': function() {
219 380
         if (this.double_check.id > 0) {
220 381
           for (var index in this.doubleReview) {
221
-            this.doubleReview[index] = this.double_check[index] + "";
382
+            this.doubleReview[index] = this.double_check[index] + ''
222 383
           }
223
-          this.doubleReview.created_time =   this.double_check['created_time']
224
-          this.doubleReview.creater =  this.double_check['creater']
225
-          this.doubleReview.updated_time =  this.double_check['updated_time']
226
-          this.doubleReview.modifier =   this.double_check['modifier']
384
+          this.doubleReview.created_time = this.double_check['created_time']
385
+          this.doubleReview.creater = this.double_check['creater']
386
+          this.doubleReview.updated_time = this.double_check['updated_time']
387
+          this.doubleReview.modifier = this.double_check['modifier']
227 388
 
228 389
 
229
-          console.log( this.doubleReview)
390
+          this.doubleReview.dialysis_item_desc = this.double_check['dialysis_item_desc'];
391
+          this.doubleReview.dialysis_parameter_desc = this.double_check['dialysis_parameter_desc'];
392
+          this.doubleReview.vascular_access_desc = this.double_check['vascular_access_desc'];
393
+          this.doubleReview.pipeline_connection_desc = this.double_check['pipeline_connection_desc'];
230 394
 
231 395
 
396
+          this.doubleReview.created_time =this.double_check['created_time']
397
+          this.doubleReview.creater =this.double_check['creater']
398
+          this.doubleReview.updated_time = this.double_check['updated_time']
399
+          this.doubleReview.modifier = this.double_check['modifier']
400
+          this.doubleReview.check_time = this.double_check['check_time']
401
+          this.doubleReview.first_check_time =  this.double_check['first_check_time']
232 402
 
233 403
         } else {
234
-          this.dialysis_item_check = "1"
235
-          this.dialysis_parameter_check = "1"
236
-          this.vascular_access_verification = "1"
237
-          this.pipeline_connection_check = "1"
238
-
404
+          this.dialysis_item_check = '1'
405
+          this.dialysis_parameter_check = '1'
406
+          this.vascular_access_verification = '1'
407
+          this.pipeline_connection_check = '1'
408
+
409
+          this.doubleReview.dialysis_item_desc = "";
410
+          this.doubleReview.dialysis_parameter_desc = "";
411
+          this.doubleReview.vascular_access_desc = "";
412
+          this.doubleReview.pipeline_connection_desc = "";
239 413
         }
240
-      },
414
+      }
241 415
 
242 416
     },
243 417
     created() {
244
-      var date = this.$route.query && this.$route.query.date;
245
-      this.record_date = uParseTime(date, '{y}-{m}-{d}');
246
-    },
418
+      var date = this.$route.query && this.$route.query.date
419
+      this.record_date = uParseTime(date, '{y}-{m}-{d}')
420
+
421
+      var nowDate = new Date()
422
+      var nowYear = nowDate.getFullYear()
423
+      var nowMonth = nowDate.getMonth() + 1
424
+      var nowDay = nowDate.getDate()
425
+      var nowHours = nowDate.getHours()
426
+      var nowMinutes = nowDate.getMinutes()
427
+      var time =  (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
428
+      this.time = time
429
+
430
+    }
247 431
 
248 432
   }
249 433
 </script>

+ 174 - 97
src/xt_pages/dialysis/details/dialog/finish_dialog.vue 查看文件

@@ -1,124 +1,201 @@
1 1
 <template>
2
-    <div>
3
-        <el-dialog title="透析下机" :visible.sync="visible" width="854px" :modal-append-to-body="false" >
4
-            <div class="txsj">
5
-            </div>
6
-            <el-form :model="form" label-width="80px">
7
-                <el-form-item label="下机护士">
8
-                    <el-select v-model="form.nurse_id" :disabled="!(dialysis_order.id != 0 && dialysis_order.stage == 1)">
9
-                        <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
10
-                    </el-select>
11
-                </el-form-item>
12
-
13
-              <el-form-item label="下机时间 :"  style="width:275px">
14
-                <el-date-picker
15
-                  type="datetime"
16
-                  format="yyyy-MM-dd HH"
17
-                  value-format="yyyy-MM-dd HH"
18
-                  placeholder="选择时间"
19
-                  v-model="start_time"
20
-                  style="width:100%;"
21
-                ></el-date-picker>
22
-              </el-form-item>
23
-
24
-                <el-form-item>
25
-                    <el-button v-if="(dialysis_order.id != 0 && dialysis_order.stage == 1)" @click="submit" :loading="loading" type="primary">执行下机</el-button>
26
-                    <el-button v-else-if="(dialysis_order.id != 0 && dialysis_order.stage == 2)" :disabled="true" type="info">已下机</el-button>
27
-                    <el-button v-else :disabled="true" type="info">未上机</el-button>
28
-                </el-form-item>
29
-
30
-            </el-form>
31
-        </el-dialog>
32
-    </div>
2
+  <div>
3
+    <el-dialog title="透析下机" :visible.sync="visible" width="854px" :modal-append-to-body="false">
4
+      <div class="txsj">
5
+      </div>
6
+      <el-form :model="form" label-width="80px">
7
+        <el-form-item label="下机护士">
8
+          <el-select v-model="form.nurse_id" :disabled="!(dialysis_order.id != 0)">
9
+            <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
10
+          </el-select>
11
+        </el-form-item>
12
+
13
+        <el-form-item label="下机时间 :" style="width:275px">
14
+          <el-date-picker
15
+            type="datetime"
16
+            format="yyyy-MM-dd HH:mm"
17
+            value-format="yyyy-MM-dd HH:mm"
18
+            placeholder="选择时间"
19
+            v-model="end_time"
20
+            style="width:100%;"
21
+          ></el-date-picker>
22
+        </el-form-item>
23
+
24
+        <el-form-item>
25
+          <el-button v-if="(dialysis_order.id != 0 && dialysis_order.stage == 1)" @click="submit" :loading="loading"
26
+                     type="primary">执行下机
27
+          </el-button>
28
+          <!--<el-button v-else-if="(dialysis_order.id != 0 && dialysis_order.stage == 2)" :disabled="true" type="info">-->
29
+            <!--已下机-->
30
+          <!--</el-button>-->
31
+          <!--<el-button v-else :disabled="true" type="info">未上机</el-button>-->
32
+          <el-button
33
+            v-if="dialysis_order.stage == 2 && (isPremission || this.$store.getters.xt_user.user.id == this.creator)"
34
+            type="primary" @click="modifyFinish">修改下机
35
+          </el-button>
36
+
37
+
38
+        </el-form-item>
39
+
40
+      </el-form>
41
+    </el-dialog>
42
+  </div>
33 43
 </template>
34 44
 
35 45
 <script>
36
-import { finishDialysis } from "@/api/dialysis_record"
37
-import { parseTime } from "@/utils"
46
+  import { finishDialysis,PostModifyFinishDialysis } from '@/api/dialysis_record'
47
+  import { parseTime } from '@/utils'
38 48
 
39
-export default {
40
-    name: "FinishDialog",
49
+  export default {
50
+    name: 'FinishDialog',
41 51
     data() {
42
-        return {
43
-            visible: false,
44
-            loading: false,
52
+      return {
53
+        visible: false,
54
+        loading: false,
55
+        creator: 0,
56
+        patient_id: 0,
57
+        schedule_date: 0,
58
+        isPremission:false,
59
+        end_time: '',
45 60
 
46
-            patient_id: 0,
47
-            schedule_date: 0,
48
-            start_time: '',
49
-
50
-            form: {
51
-                nurse_id: 0,
52
-            }
61
+        form: {
62
+          nurse_id: 0
53 63
         }
64
+      }
54 65
     },
55 66
     props: {
56
-        dialysis_order: {
57
-            type: Object,
58
-        },
59
-        schedule: {
60
-            type: Object,
61
-        },
62
-        admins: {
63
-            type: Array,
64
-        },
67
+      dialysis_order: {
68
+        type: Object
69
+      },
70
+      schedule: {
71
+        type: Object
72
+      },
73
+      admins: {
74
+        type: Array
75
+      }, special_premission: {
76
+        type: Array,
77
+      },
65 78
     },
66 79
     created() {
80
+
81
+    },
82
+    watch: {
83
+      'dialysis_order.id': function() {
84
+        if (this.dialysis_order.id == 0) {
85
+          this.form.nurse_id = 0
86
+        } else if (this.dialysis_order.stage == 1) {
87
+          this.form.nurse_id = this.$store.getters.xt_user.user.id
88
+        } else {
89
+          this.form.nurse_id = this.dialysis_order.finish_nurse
90
+        }
91
+      }
92
+    },
93
+    methods: {
94
+      show: function() {
95
+        this.visible = true
96
+        var nowDate = new Date()
97
+        var nowYear = nowDate.getFullYear()
98
+        var nowMonth = nowDate.getMonth() + 1
99
+        var nowDay = nowDate.getDate()
100
+        var nowHours = nowDate.getHours()
101
+        var nowMinutes = nowDate.getMinutes()
102
+        var time =
103
+          nowYear +
104
+          '-' +
105
+          (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
106
+          '-' +
107
+          (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
67 108
         this.patient_id = this.$route.query.patient_id
68 109
         this.schedule_date = this.$route.query.date
110
+        console.log(this.dialysis_order.end_time)
111
+
112
+        this.end_time = this.dialysis_order.finish_creator == 0 ? time : this.getTime(this.dialysis_order.end_time, '{y}-{m}-{d} {h}:{i}')
69 113
 
70 114
         if (this.dialysis_order.id == 0) {
71
-            this.form.nurse_id = 0
115
+          this.form.nurse_id = 0
72 116
         } else if (this.dialysis_order.stage == 1) {
73
-            this.form.nurse_id = this.$store.getters.xt_user.user.id
117
+          this.form.nurse_id = this.$store.getters.xt_user.user.id
74 118
         } else {
75
-            this.form.nurse_id = this.dialysis_order.finish_nurse
119
+          this.form.nurse_id = this.dialysis_order.finish_nurse
76 120
         }
77
-    },
78
-    watch: {
79
-        "dialysis_order.id": function() {
80
-            if (this.dialysis_order.id == 0) {
81
-                this.form.nurse_id = 0
82
-            } else if (this.dialysis_order.stage == 1) {
83
-                this.form.nurse_id = this.$store.getters.xt_user.user.id
84
-            } else {
85
-                this.form.nurse_id = this.dialysis_order.finish_nurse
121
+
122
+
123
+        if (this.dialysis_order.finish_creator > 0) {
124
+          for (let i = 0; i < this.special_premission.length; i++) {
125
+            if (this.$store.getters.xt_user.user.id == this.special_premission[i].admin_user_id) {
126
+              this.isPremission = true
86 127
             }
87
-        },
88
-    },
89
-    methods: {
90
-        show: function() {
91
-            this.visible = true
92
-        },
93
-        hide: function() {
94
-            this.visible = false
95
-        },
96
-        submit: function() {
97
-            this.loading = true
98
-            finishDialysis(this.patient_id, parseTime(this.schedule_date, "{y}-{m}-{d}"), this.form.nurse_id).then(rs => {
99
-                this.loading = false
100
-                var resp = rs.data
101
-                if (resp.state == 1) {
102
-                    var dialysis_order = resp.data.dialysis_order
103
-                    var this_order = this.dialysis_order
104
-                    for (const key in dialysis_order) {
105
-                        // this.dialysis_order[key] = dialysis_order[key]
106
-                        this.$set(this_order, key, dialysis_order[key])
107
-                    }
108
-
109
-                } else {
110
-                    this.$message.error(resp.msg)
111
-                }
112
-            })
113
-        },
114
-    },
115
-}
128
+          }
129
+        }
130
+
131
+        if (this.dialysis_order.finish_creator > 0) {
132
+            this.creator = this.dialysis_order.finish_creator
133
+        }
134
+
135
+
136
+        console.log(this.creator)
137
+        console.log(this.isPremission)
138
+
139
+
140
+
141
+      },
142
+      hide: function() {
143
+        this.visible = false
144
+      },modifyFinish:function(){
145
+        let ParamsQuery = {};
146
+        ParamsQuery["id"] = this.dialysis_order.id;
147
+        ParamsQuery["nurse"] = this.form.nurse_id;
148
+        ParamsQuery["end_time"] = this.end_time;
149
+        PostModifyFinishDialysis(ParamsQuery).then(response => {
150
+          if (response.data.state == 0) {
151
+            this.$message.error(response.data.msg)
152
+
153
+            return false;
154
+          } else {
155
+            this.$message.success("修改成功")
156
+            var record = this.dialysis_order;
157
+            for (const key in response.data.data.dialysis_order) {
158
+              this.$set(record, key, response.data.data.dialysis_order[key]);
159
+            }
160
+            console.log(response.data.data.after)
161
+            this.$emit('assessmentAfterDislysis', response.data.data.after)
162
+          }
163
+        });
164
+
165
+
166
+      },
167
+      submit: function() {
168
+        this.loading = true
169
+        finishDialysis(this.patient_id, parseTime(this.schedule_date, '{y}-{m}-{d}'), this.end_time, this.form.nurse_id).then(rs => {
170
+          this.loading = false
171
+          var resp = rs.data
172
+          if (resp.state == 1) {
173
+            var dialysis_order = resp.data.dialysis_order
174
+            var this_order = this.dialysis_order
175
+            for (const key in dialysis_order) {
176
+              this.$set(this_order, key, dialysis_order[key])
177
+            }
178
+            this.hide()
179
+            this.$emit('assessmentAfterDislysis', resp.data.assessmentAfterDislysis)
180
+
181
+          } else {
182
+            this.$message.error(resp.msg)
183
+          }
184
+        })
185
+      }, getTime(value, temp) {
186
+        if (value != undefined) {
187
+          return parseTime(value, temp)
188
+        }
189
+        return ''
190
+      }
191
+    }
192
+  }
116 193
 </script>
117 194
 
118 195
 
119 196
 <style scoped>
120
-.txsj{
197
+  .txsj {
121 198
     text-align: center;
122 199
     margin-bottom: 20px;
123
-}
200
+  }
124 201
 </style>

+ 47 - 4
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -317,7 +317,7 @@
317 317
 <script>
318 318
   import { parseTime } from '@/utils'
319 319
   import { getDataConfig } from '@/utils/data'
320
-  import { editMonitor, postDelMonitorInfo } from '@/api/dialysis_record'
320
+  import { editMonitor, postDelMonitorInfo,getTodayMonitor } from '@/api/dialysis_record'
321 321
   import store from '@/store'
322 322
 
323 323
 export default {
@@ -331,7 +331,7 @@ export default {
331 331
         patient_id: 0,
332 332
         schedule_date: 0,
333 333
         template_id: 0,
334
-
334
+        isAdd:false,
335 335
         // monitoring_date: 0,
336 336
 
337 337
         form: {
@@ -421,7 +421,45 @@ export default {
421 421
         this.setEditMonitor(null)
422 422
         this.$refs.table.setCurrentRow(null)
423 423
         this.edit = true
424
+        this.isAdd = true
425
+        this.getLastRecordTody()
426
+
427
+      },
428
+      getLastRecordTody () {
429
+        let params = {
430
+          patient_id: this.patient_id
431
+        }
432
+
433
+        getTodayMonitor(params).then(rs => {
434
+          var resp = rs.data.data
435
+          this.form.operate_time = resp.monitor.operate_time  ? (resp.monitor.operate_time + 3600) * 1000 : Date.parse(new Date())
436
+          this.form.pulse_frequency = '' // this.last_monitor_record.pulse_frequency;
437
+          this.form.breathing_rated = resp.monitor.breathing_rate ? resp.monitor.breathing_rate : ''
438
+          this.form.systolic_bp = '' // this.last_monitor_record.systolic_blood_pressure;
439
+          this.form.diastolic_bp = '' // this.last_monitor_record.diastolic_blood_pressure;
440
+          this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : ''
441
+          this.form.venous_pressure = '' // this.last_monitor_record.venous_pressure;
442
+          this.form.arterial_pressure = '' // this.last_monitor_record.arterial_pressure;
443
+          this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
444
+          this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate ? resp.monitor.ultrafiltration_rate : ''
445
+          this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : ''
446
+          this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : ''
447
+          this.form.dialysate_temperature = resp.monitor.dialysate_temperature  ? resp.monitor.dialysate_temperature : ''
448
+          this.form.temperature = resp.monitor.temperature ? resp.monitor.temperature : ''
449
+          this.form.replacement_rate = resp.monitor.replacement_rate ? resp.monitor.replacement_rate : ''
450
+          this.form.displacement_quantity = '' // this.last_monitor_record.displacement_quantity;
451
+          this.form.conductivity = ''
452
+          this.form.displacement_flow_quantity = ''
453
+
454
+          this.form.ktv = '' // this.last_monitor_record.ktv;
455
+          this.form.symptom = '' // this.last_monitor_record.symptom;
456
+          this.form.dispose = '' // this.last_monitor_record.dispose;
457
+          this.form.result = '' // this.last_monitor_record.result;
458
+
459
+
460
+        })
424 461
       },
462
+
425 463
       modifyRecordAction: function() {
426 464
         if (this.table_current_row == null) {
427 465
           this.$message.error('请选择一条监测记录')
@@ -430,6 +468,7 @@ export default {
430 468
         this.setEditMonitor(this.table_current_row)
431 469
         this.$refs.table.setCurrentRow(null)
432 470
         this.edit = true
471
+        this.isAdd = false
433 472
       },
434 473
       cancelEditAction: function() {
435 474
         this.setEditMonitor(null)
@@ -507,7 +546,7 @@ export default {
507 546
 
508 547
       submitAction: function() {
509 548
         // TODO loading
510
-        var is_new = this.form.id == 0
549
+        var is_new = this.form.id
511 550
         this.form.operate_time = parseInt(this.form.operate_time / 1000)
512 551
         this.form.systolic_bp = parseFloat(this.form.systolic_bp) == NaN ? 0 : parseFloat(this.form.systolic_bp)
513 552
         this.form.diastolic_bp = parseFloat(this.form.diastolic_bp) == NaN ? 0 : parseFloat(this.form.diastolic_bp)
@@ -534,7 +573,8 @@ export default {
534 573
           var resp = rs.data
535 574
           if (resp.state == 1) {
536 575
             var monitor = resp.data.monitor
537
-            if (is_new) {
576
+
577
+            if (this.isAdd) {
538 578
               this.monitors.unshift(monitor)
539 579
             } else {
540 580
               for (let index = 0; index < this.monitors.length; index++) {
@@ -589,6 +629,9 @@ export default {
589 629
           this.result_selecteds = []
590 630
         }
591 631
       },
632
+      setRecords (records) {
633
+        this.monitors = records
634
+      },
592 635
       resultSelectorChange: function() {
593 636
         if (this.result_selecteds.length > 0) {
594 637
           this.form.result = this.result_selecteds.join(',') + ','

+ 1 - 1
src/xt_pages/dialysis/details/dialysisComputer.vue 查看文件

@@ -1,4 +1,4 @@
1
-<template>
1
+ <template>
2 2
   <div class="plate-box">
3 3
     <h2 class="DetailsTit"><span>{{ title }}</span></h2>
4 4
     <div class="plate " >

+ 10 - 8
src/xt_pages/dialysis/details/index.vue 查看文件

@@ -8,6 +8,7 @@
8 8
     </div>
9 9
     <div class="details-bg" v-loading.fullscreen.lock="loading">
10 10
       <nav-igation
11
+        ref="nav"
11 12
         title="弹窗导航"
12 13
         @advice="adviceFunc"
13 14
         :patient="patient"
@@ -45,13 +46,13 @@
45 46
         :longAdvices="longAdvices"
46 47
         :waitUploadAdvices="waitUploadAdvices"
47 48
         :is_open="is_open"
48
-
49 49
         :last_predialysis_evaluation = "lastPredialysisEvaluation"
50 50
         :last_monitor_record = "lastMonitorRecord"
51 51
         :last_assessment_after_dislysis = "lastAssessmentAfterDislysis"
52 52
         :last_dialysis_prescribe = "lastDialysisPrescribe"
53 53
         :last_dryWeight_dislysis = "lastDryWeightDislysis"
54
-        :headNurses = "headNurses"
54
+        :special_premission = "headNurses"
55
+        @assessmentAfterDislysis="assessmentAfterDislysisFunc"
55 56
 
56 57
 
57 58
 
@@ -376,7 +377,7 @@
376 377
 
377 378
         steps[4].finish = this.double_check.id > 0 && this.double_check.creater > 0 && this.double_check.modifier > 0
378 379
         steps[6].finish = this.monitor_records.length > 0
379
-        steps[8].finish = this.assessment_after_dislysis.id > 0
380
+        steps[8].finish = this.assessment_after_dislysis.id > 0 && this.assessment_after_dislysis.creater > 0
380 381
         steps[9].finish = this.treatment_summary.id > 0
381 382
 
382 383
         return steps
@@ -446,6 +447,10 @@
446 447
           this.loading = false
447 448
         })
448 449
 
450
+      },assessmentAfterDislysisFunc:function(val){
451
+        for (var index in val) {
452
+          this.$set(this.assessment_after_dislysis, index, val[index])
453
+        }
449 454
       },
450 455
       didDelMonitor(record_id) {
451 456
         var mrl = this.monitor_records.length
@@ -496,21 +501,18 @@
496 501
             var lastAssessmentAfterDislysis = resp.data.lastAssessmentAfterDislysis
497 502
             var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
498 503
             var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
499
-            var headNurses = resp.data.headNurse
500
-
501 504
 
502 505
 
506
+            this.$refs.nav.setLastRecord(lastPredialysisEvaluation,lastMonitorRecord,lastAssessmentAfterDislysis,lastDialysisPrescribe,lastDryWeightDislysis)
503 507
 
504 508
 
505 509
 
506 510
 
511
+            var headNurses = resp.data.headNurse
507 512
 
508 513
 
509 514
             var config = resp.data.config
510
-
511
-
512 515
             this.lastPredialysisEvaluation = lastPredialysisEvaluation
513
-
514 516
             this.lastMonitorRecord = lastMonitorRecord
515 517
             this.lastAssessmentAfterDislysis = lastAssessmentAfterDislysis
516 518
             this.lastDialysisPrescribe = lastDialysisPrescribe

+ 368 - 342
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

@@ -21,27 +21,27 @@
21 21
         </div>
22 22
         <div class="inline_block">
23 23
           门诊:
24
-            <div class="under_line" style="width: 30px;text-align: center;">
25
-                <check-box  :checked="patientInfo_source_1 "></check-box>
26
-            </div>
24
+          <div class="under_line" style="width: 30px;text-align: center;">
25
+            <check-box  :checked="patientInfo_source_1 "></check-box>
26
+          </div>
27 27
         </div>
28 28
         <div class="inline_block">
29 29
           病区:
30
-            <div class="under_line" style="width: 50px;text-align: center;">
31
-                {{'/'}}
32
-            </div>
30
+          <div class="under_line" style="width: 50px;text-align: center;">
31
+            {{'/'}}
32
+          </div>
33 33
         </div>
34 34
         <div class="inline_block">
35 35
           床号:
36
-            <div class="under_line" style="width: 50px;text-align: center;">
37
-                {{'/'}}
38
-            </div>
36
+          <div class="under_line" style="width: 50px;text-align: center;">
37
+            {{'/'}}
38
+          </div>
39 39
         </div>
40 40
         <div class="inline_block">
41 41
           透析号:
42
-            <div class="under_line" style="width: 70px;text-align: center;">
43
-              {{patientInfo.dialysis_no}}
44
-            </div>
42
+          <div class="under_line" style="width: 70px;text-align: center;">
43
+            {{patientInfo.dialysis_no}}
44
+          </div>
45 45
         </div>
46 46
         <div class="inline_block" style="margin-left: 5px;">
47 47
           住院号/门诊号:
@@ -73,310 +73,336 @@
73 73
       <div class="row" :style=" this.totollength > 13?'margin-bottom:400px;':''">
74 74
         <table class="proj_table" >
75 75
           <tbody>
76
-            <tr><td colspan="2" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">透析前情况</td></tr>
77
-            <tr>
78
-              <td colspan="2">
79
-                <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
80
-                  <div class="inline_block" style="flex:1;">
81
-                    本次透析日期:
82
-                    <div class="under_line" style="width: 100px;text-align: center">
83
-                      {{xtdate}}
84
-                    </div>
76
+          <tr><td colspan="2" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">透析前情况</td></tr>
77
+          <tr>
78
+            <td colspan="2">
79
+              <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
80
+                <div class="inline_block" style="flex:1;">
81
+                  本次透析日期:
82
+                  <div class="under_line" style="width: 100px;text-align: center">
83
+                    {{xtdate}}
85 84
                   </div>
86
-                  <div class="inline_block" style="flex:1;">
87
-                    透析次数:
88
-                    <div class="under_line" style="width: 70px;text-align: center">
89
-                      {{patientInfo.total_dialysis?patientInfo.total_dialysis:'/'}}
90
-                    </div>
85
+                </div>
86
+                <div class="inline_block" style="flex:1;">
87
+                  透析次数:
88
+                  <div class="under_line" style="width: 70px;text-align: center">
89
+                    {{patientInfo.total_dialysis?patientInfo.total_dialysis:'/'}}
91 90
                   </div>
92
-                  <div class="inline_block" style="flex:1;">
93
-                    透前症状:
94
-                    <div class="under_line" style="width: 150px;text-align: center">
95
-                      {{predialysis.symptom_before_dialysis?predialysis.symptom_before_dialysis:'/'}}
96
-                    </div>
91
+                </div>
92
+                <div class="inline_block" style="flex:1;">
93
+                  透前症状:
94
+                  <div class="under_line" style="width: 150px;text-align: center">
95
+                    {{predialysis.symptom_before_dialysis?predialysis.symptom_before_dialysis:'/'}}
97 96
                   </div>
98 97
                 </div>
98
+              </div>
99 99
 
100
-                <div class="row" style="padding: 2px 0;line-height:23px;">
101
-                  <div class="inline_block" >
102
-                    T:
103
-                    <div class="under_line" style="width: 50px;text-align: center">
104
-                      {{predialysis.temperature?predialysis.temperature:'/'}}
105
-                    </div>
106
-                    °C
100
+              <div class="row" style="padding: 2px 0;line-height:23px;">
101
+                <div class="inline_block" >
102
+                  T:
103
+                  <div class="under_line" style="width: 50px;text-align: center">
104
+                    {{predialysis.temperature?predialysis.temperature:'/'}}
107 105
                   </div>
108
-                  <div class="inline_block" style="margin-left:10px;">
109
-                    P:
110
-                    <div class="under_line" style="width: 50px;text-align: center;">
111
-                      {{predialysis.pulse_frequency?predialysis.pulse_frequency:'/'}}
112
-                    </div>
113
-                    次/分
106
+                  °C
107
+                </div>
108
+                <div class="inline_block" style="margin-left:10px;">
109
+                  P:
110
+                  <div class="under_line" style="width: 50px;text-align: center;">
111
+                    {{predialysis.pulse_frequency?predialysis.pulse_frequency:'/'}}
114 112
                   </div>
115
-                  <div class="inline_block" style="margin-left:10px;">
116
-                    R:
117
-                    <div class="under_line" style="width: 50px;text-align: center;">
118
-                      {{predialysis.breathing_rate?predialysis.breathing_rate:'/'}}
119
-                    </div>
120
-                    次/分
113
+                  次/分
114
+                </div>
115
+                <div class="inline_block" style="margin-left:10px;">
116
+                  R:
117
+                  <div class="under_line" style="width: 50px;text-align: center;">
118
+                    {{predialysis.breathing_rate?predialysis.breathing_rate:'/'}}
121 119
                   </div>
122
-                  <div class="inline_block" style="margin-left:10px;">
123
-                    BP:
124
-                    <div class="under_line" style="width: 50px;text-align: center;">
125
-                      {{predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:'/'}}
126
-                    </div>
127
-                    /
128
-                    <div class="under_line" style="width: 50px;text-align: center;">
129
-                      {{predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:'/'}}
130
-                    </div>
131
-                    mmHg
120
+                  次/分
121
+                </div>
122
+                <div class="inline_block" style="margin-left:10px;">
123
+                  BP:
124
+                  <div class="under_line" style="width: 50px;text-align: center;">
125
+                    {{predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:'/'}}
132 126
                   </div>
133
-                  <div class="inline_block" style="margin-left:10px;">
134
-                    血管通路:
135
-                    <div class="under_line" style="width: 200px;text-align: center;">
136
-                      {{QueryPartById(predialysis.blood_access_part_id)}} {{predialysis.blood_access_part_opera_name}}
137
-                    </div>
127
+                  /
128
+                  <div class="under_line" style="width: 50px;text-align: center;">
129
+                    {{predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:'/'}}
138 130
                   </div>
131
+                  mmHg
139 132
                 </div>
140
-                <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
141
-                  <div class="inline_block" style="flex:1;">
142
-                    内瘘:
143
-                    <div class="under_line" style="width: 150px;text-align: center">
144
-                      {{predialysis.internal_fistula?predialysis.internal_fistula:'/'}}
145
-                    </div>
133
+                <div class="inline_block" style="margin-left:10px;">
134
+                  血管通路:
135
+                  <div class="under_line" style="width: 200px;text-align: center;">
136
+                    {{QueryPartById(predialysis.blood_access_part_id)}} {{predialysis.blood_access_part_opera_name}}
137
+                  </div>
138
+                </div>
139
+              </div>
140
+              <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
141
+                <div class="inline_block" style="flex:1;">
142
+                  内瘘:
143
+                  <div class="under_line" style="width: 150px;text-align: center">
144
+                    {{predialysis.internal_fistula?predialysis.internal_fistula:'/'}}
146 145
                   </div>
146
+                </div>
147 147
 
148
-                  <div class="inline_block" style="margin-left:10px;flex:1;">
149
-                    导管:
150
-                    <div class="under_line" style="width: 150px;text-align: center">
151
-                      {{predialysis.catheter?predialysis.catheter:'/'}}
152
-                    </div>
148
+                <div class="inline_block" style="margin-left:10px;flex:1;">
149
+                  导管:
150
+                  <div class="under_line" style="width: 150px;text-align: center">
151
+                    {{predialysis.catheter?predialysis.catheter:'/'}}
153 152
                   </div>
154
-                  <div class="inline_block" style="margin-left:10px;flex:1;">
155
-                    穿刺方式:
156
-                    <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 0">
157
-                      /
158
-                    </div>
159
-                    <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 1">
160
-                      绳梯
161
-                    </div>
162
-                    <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 2">
163
-                      扣眼
164
-                    </div>
165
-                    <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 3">
166
-                      区域
167
-                    </div>
153
+                </div>
154
+                <div class="inline_block" style="margin-left:10px;flex:1;">
155
+                  穿刺方式:
156
+                  <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 0">
157
+                    /
168 158
                   </div>
169
-                  <div class="inline_block" style="margin-left:10px;flex:1;">
170
-                    穿刺针:
171
-                    <div class="under_line" style="width: 100px;text-align: center">
172
-                      {{predialysis.puncture_needle?predialysis.puncture_needle:'/'}}
173
-                    </div>
159
+                  <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 1">
160
+                    绳梯
161
+                  </div>
162
+                  <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 2">
163
+                    扣眼
164
+                  </div>
165
+                  <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 3">
166
+                    区域
174 167
                   </div>
175 168
                 </div>
176
-                <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
177
-                  <div class="inline_block" style="flex:1;">
178
-                    透析方式:
179
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="!prescription.mode_id">
180
-                      /
181
-                    </div>
182
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==1">
183
-                      HD
184
-                    </div>
185
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==2">
186
-                      HDF
187
-                    </div>
188
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==3">
189
-                      HD+HP
190
-                    </div>
191
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==4">
192
-                      HP
193
-                    </div>
194
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==5">
195
-                      HF
196
-                    </div>
197
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==6">
198
-                      SCUF
199
-                    </div>
200
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==7">
201
-                      IUF
202
-                    </div>
203
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==8">
204
-                      HFHD
205
-                    </div>
206
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==9">
207
-                      HFHD+HP
208
-                    </div>
209
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==10">
210
-                      PHF
211
-                    </div>
212
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==11">
213
-                      HFR
214
-                    </div>
215
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==12">
216
-                      HDF+HP
217
-                    </div>
218
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==13">
219
-                      CRRT
220
-                    </div>
221
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==14">
222
-                      腹水回输
223
-                    </div>
224
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==15">
225
-                      HD前置换
226
-                    </div>
227
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==16">
228
-                      HD后置换
229
-                    </div>
230
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==17">
231
-                      HDF前置换
232
-                    </div>
233
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==18">
234
-                      HDF后置换
235
-                    </div>
169
+                <div class="inline_block" style="margin-left:10px;flex:1;">
170
+                  穿刺针:
171
+                  <div class="under_line" style="width: 100px;text-align: center">
172
+                    {{predialysis.puncture_needle?predialysis.puncture_needle:'/'}}
236 173
                   </div>
237
-
238
-                  <div class="inline_block" style="margin-left:10px;flex:1;">
239
-                    置换方式:
240
-                    <div class="under_line" style="width: 100px;text-align: center">
241
-                      {{getDisplaceLiquiPart(prescription.displace_liqui_part)}}
242
-                    </div>
174
+                </div>
175
+              </div>
176
+              <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
177
+                <div class="inline_block" style="flex:1;">
178
+                  透析方式:
179
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="!prescription.mode_id">
180
+                    /
243 181
                   </div>
244
-                  <div class="inline_block" style="margin-left:10px;flex:1;">
245
-                    置换量:
246
-                    <div class="under_line" style="width: 70px;text-align: center">
247
-                      {{prescription.displace_liqui_value?prescription.displace_liqui_value:'/'}}
248
-                    </div>
249
-                    L
182
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==1">
183
+                    HD
250 184
                   </div>
251
-                  <div class="inline_block" style="margin-left:10px;flex:1;">
252
-                    血流量:
253
-                    <div class="under_line" style="width: 50px;text-align: center">
254
-                      {{prescription.blood_flow_volume?prescription.blood_flow_volume:'/'}}
255
-                    </div>
256
-                    ml/min
185
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==2">
186
+                    HDF
257 187
                   </div>
258
-                  <div class="inline_block" style="margin-left:10px;flex:1;">
259
-                    透析时间:
260
-                    <div class="under_line" style="width: 50px;text-align: center">
261
-                      {{prescription.dialysis_duration_hour?prescription.dialysis_duration_hour:'/'}}
262
-                    </div>
263
-                    h
188
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==3">
189
+                    HD+HP
190
+                  </div>
191
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==4">
192
+                    HP
193
+                  </div>
194
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==5">
195
+                    HF
196
+                  </div>
197
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==6">
198
+                    SCUF
199
+                  </div>
200
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==7">
201
+                    IUF
202
+                  </div>
203
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==8">
204
+                    HFHD
205
+                  </div>
206
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==9">
207
+                    HFHD+HP
208
+                  </div>
209
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==10">
210
+                    PHF
211
+                  </div>
212
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==11">
213
+                    HFR
214
+                  </div>
215
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==12">
216
+                    HDF+HP
217
+                  </div>
218
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==13">
219
+                    CRRT
220
+                  </div>
221
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==14">
222
+                    腹水回输
223
+                  </div>
224
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==15">
225
+                    HD前置换
226
+                  </div>
227
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==16">
228
+                    HD后置换
229
+                  </div>
230
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==17">
231
+                    HDF前置换
232
+                  </div>
233
+                  <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==18">
234
+                    HDF后置换
264 235
                   </div>
265 236
                 </div>
266
-                <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
267
-                  <div class="inline_block" style="flex:1;">
268
-                    透析(滤)器:
269
-                    <div class="under_line" style="width: 100px;text-align: center">
270
-                      {{prescription.dialyzer_perfusion_apparatus?prescription.dialyzer_perfusion_apparatus:'/'}}
271
-                    </div>
237
+
238
+                <div class="inline_block" style="margin-left:10px;flex:1;">
239
+                  置换方式:
240
+                  <div class="under_line" style="width: 100px;text-align: center">
241
+                    {{getDisplaceLiquiPart(prescription.displace_liqui_part)}}
272 242
                   </div>
273
-                  <div class="inline_block" style="flex:1;">
274
-                    灌流器:
275
-                    <div class="under_line" style="width: 70px;text-align: center">
276
-                      /
277
-                    </div>
243
+                </div>
244
+                <div class="inline_block" style="margin-left:10px;flex:1;">
245
+                  置换量:
246
+                  <div class="under_line" style="width: 70px;text-align: center">
247
+                    {{prescription.displace_liqui_value?prescription.displace_liqui_value:'/'}}
278 248
                   </div>
279
-                  <div class="inline_block" style="flex:1;">
280
-                    干体重:
281
-                    <div class="under_line" style="width: 150px;text-align: center">
282
-                      {{predialysis.dry_weight?predialysis.dry_weight:'/'}}
283
-                    </div>kg
249
+                  L
250
+                </div>
251
+                <div class="inline_block" style="margin-left:10px;flex:1;">
252
+                  血流量:
253
+                  <div class="under_line" style="width: 50px;text-align: center">
254
+                    {{prescription.blood_flow_volume?prescription.blood_flow_volume:'/'}}
255
+                  </div>
256
+                  ml/min
257
+                </div>
258
+                <div class="inline_block" style="margin-left:10px;flex:1;">
259
+                  透析时间:
260
+                  <div class="under_line" style="width: 50px;text-align: center">
261
+                    {{prescription.dialysis_duration_hour?prescription.dialysis_duration_hour:'/'}}
262
+                  </div>
263
+                  h
264
+                </div>
265
+              </div>
266
+              <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
267
+                <div class="inline_block" style="flex:1;">
268
+                  透析(滤)器:
269
+                  <div class="under_line" style="width: 100px;text-align: center">
270
+                    {{prescription.dialyzer_perfusion_apparatus?prescription.dialyzer_perfusion_apparatus:'/'}}
284 271
                   </div>
285 272
                 </div>
273
+                <div class="inline_block" style="flex:1;">
274
+                  灌流器:
275
+                  <div class="under_line" style="width: 70px;text-align: center">
276
+                    /
277
+                  </div>
278
+                </div>
279
+                <div class="inline_block" style="flex:1;">
280
+                  干体重:
281
+                  <div class="under_line" style="width: 150px;text-align: center">
282
+                    {{predialysis.dry_weight?predialysis.dry_weight:'/'}}
283
+                  </div>kg
284
+                </div>
285
+              </div>
286 286
 
287
-                <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
288
-                  <div class="inline_block" style="flex:1;">
289
-                    上次透后体重:
290
-                    <div class="under_line" style="width: 100px;text-align: center">
291
-                      {{predialysis.weight_after_last_transparency?predialysis.weight_after_last_transparency:'未称重'}}
292
-                    </div>
293
-                    kg
287
+              <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
288
+                <div class="inline_block" style="flex:1;">
289
+                  上次透后体重:
290
+                  <div class="under_line" style="width: 100px;text-align: center">
291
+                    {{predialysis.weight_after_last_transparency?predialysis.weight_after_last_transparency:'未称重'}}
294 292
                   </div>
295
-                  <div class="inline_block" style="flex:1;">
296
-                    透前体重:
297
-                    <div class="under_line" style="width: 70px;text-align: center">
298
-                      {{predialysis.weight_before?predialysis.weight_before:'/'}}
299
-                    </div>
300
-                    kg
293
+                  kg
294
+                </div>
295
+                <div class="inline_block" style="flex:1;">
296
+                  透前体重:
297
+                  <div class="under_line" style="width: 70px;text-align: center">
298
+                    {{predialysis.weight_before?predialysis.weight_before:'/'}}
301 299
                   </div>
302
-                  <div class="inline_block" style="flex:1;">
303
-                    计划超滤量:
304
-                    <div class="under_line" style="width: 150px;text-align: center">
305
-                      {{prescription.target_ultrafiltration?prescription.target_ultrafiltration:'/'}}
306
-                    </div>
307
-                    L
300
+                  kg
301
+                </div>
302
+                <div class="inline_block" style="flex:1;">
303
+                  计划超滤量:
304
+                  <div class="under_line" style="width: 150px;text-align: center">
305
+                    {{prescription.target_ultrafiltration?prescription.target_ultrafiltration:'/'}}
308 306
                   </div>
307
+                  L
309 308
                 </div>
309
+              </div>
310 310
 
311
-                <div class="row" style="padding: 2px 0;line-height:23px;">
312
-                  <div class="inline_block" >
313
-                    透析液成分钾:
314
-                    <div class="under_line" style="width: 50px;text-align: center">
315
-                      {{prescription.kalium?prescription.kalium:'/'}}
316
-                    </div>
317
-                    mmol/L
311
+              <div class="row" style="padding: 2px 0;line-height:23px;">
312
+                <div class="inline_block" >
313
+                  透析液成分钾:
314
+                  <div class="under_line" style="width: 50px;text-align: center">
315
+                    {{prescription.kalium?prescription.kalium:'/'}}
318 316
                   </div>
319
-                  <div class="inline_block" style="margin-left:10px;">
320
-                    钠:
321
-                    <div class="under_line" style="width: 50px;text-align: center;">
322
-                      {{prescription.sodium?prescription.sodium:'/'}}
323
-                    </div>
324
-                    mmol/L
317
+                  mmol/L
318
+                </div>
319
+                <div class="inline_block" style="margin-left:10px;">
320
+                  钠:
321
+                  <div class="under_line" style="width: 50px;text-align: center;">
322
+                    {{prescription.sodium?prescription.sodium:'/'}}
325 323
                   </div>
326
-                  <div class="inline_block" style="margin-left:10px;">
324
+                  mmol/L
325
+                </div>
326
+                <div class="inline_block" style="margin-left:10px;">
327 327
                   钙:
328
-                    <div class="under_line" style="width: 50px;text-align: center;">
329
-                      {{prescription.calcium?prescription.calcium:'/'}}
330
-                    </div>
331
-                    mmol/L
328
+                  <div class="under_line" style="width: 50px;text-align: center;">
329
+                    {{prescription.calcium?prescription.calcium:'/'}}
332 330
                   </div>
333
-                  <div class="inline_block" style="margin-left:10px;">
331
+                  mmol/L
332
+                </div>
333
+                <div class="inline_block" style="margin-left:10px;">
334 334
                   碳酸氢根:
335
-                    <div class="under_line" style="width: 50px;text-align: center;">
336
-                      {{prescription.bicarbonate?prescription.bicarbonate:'/'}}
337
-                    </div>
338
-                    mmol/L
335
+                  <div class="under_line" style="width: 50px;text-align: center;">
336
+                    {{prescription.bicarbonate?prescription.bicarbonate:'/'}}
339 337
                   </div>
340
-                  <div class="inline_block" style="margin-left:10px;">
338
+                  mmol/L
339
+                </div>
340
+                <div class="inline_block" style="margin-left:10px;">
341 341
                   流量:
342
-                    <div class="under_line" style="width: 50px;text-align: center;">
343
-                      {{prescription.dialysate_flow?prescription.dialysate_flow:'/'}}
344
-                    </div>
345
-                    ml/min
342
+                  <div class="under_line" style="width: 50px;text-align: center;">
343
+                    {{prescription.dialysate_flow?prescription.dialysate_flow:'/'}}
346 344
                   </div>
345
+                  ml/min
347 346
                 </div>
348
-                <div class="row" style="padding: 2px 0;line-height:23px;">
349
-                  <div class="inline_block" >
350
-                    抗凝剂:
351
-                    <div class="under_line" style="width: 150px;text-align: center">
352
-                      {{prescription.anticoagulant_name?prescription.anticoagulant_name:'/'}}
353
-                    </div>
347
+              </div>
348
+              <div class="row" style="padding: 2px 0;line-height:23px;">
349
+                <div class="inline_block" >
350
+                  抗凝剂:
351
+                  <div class="under_line" style="width: 150px;text-align: center">
352
+                    {{prescription.anticoagulant_name?prescription.anticoagulant_name:'/'}}
354 353
                   </div>
355
-                  <div class="inline_block" style="margin-left:20px;">
356
-                    首剂:
357
-                    <div class="under_line" style="width: 50px;text-align: center;">
358
-                      {{prescription.anticoagulant_shouji?prescription.anticoagulant_shouji:'/'}}
359
-                    </div>
360
-                    lu
354
+                </div>
355
+                <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant != 5">
356
+                  首剂:
357
+                  <div class="under_line" style="width: 50px;text-align: center;">
358
+                    {{prescription.anticoagulant_shouji?prescription.anticoagulant_shouji:'/'}}
361 359
                   </div>
362
-                  <div class="inline_block" style="margin-left:20px;">
360
+                  <span v-if="prescription.anticoagulant == 4">mg</span>
361
+                  <span v-if="prescription.anticoagulant == 3">iu</span>
362
+                  <span v-if="prescription.anticoagulant == 2">iu</span>
363
+                  <span v-if="prescription.anticoagulant == 1">mg</span>
364
+
365
+                </div>
366
+                <div class="inline_block" style="margin-left:20px;">
363 367
                   维持:
364
-                    <div v-if="prescription.anticoagulant == 1"  class="under_line" style="width: 50px;text-align: center;">
365
-                      {{prescription.anticoagulant_weichi?prescription.anticoagulant_weichi:"/"}}
366
-                    </div>
367
-                    <div v-if="prescription.anticoagulant != 1"  class="under_line" style="width: 50px;text-align: center;">
368
-                      {{prescription.anticoagulant_weichi?prescription.anticoagulant_weichi:"0"}}
369
-                    </div>
370
-                    lu
368
+                  <div v-if="prescription.anticoagulant == 1"  class="under_line" style="width: 50px;text-align: center;">
369
+                    {{prescription.anticoagulant_weichi?prescription.anticoagulant_weichi:"/"}}
371 370
                   </div>
372
-                  <div class="inline_block" style="margin-left:20px;">
371
+                  <div v-if="prescription.anticoagulant != 1"  class="under_line" style="width: 50px;text-align: center;">
372
+                    {{prescription.anticoagulant_weichi?prescription.anticoagulant_weichi:"0"}}
373
+                  </div>
374
+                  <span v-if="prescription.anticoagulant == 5">ml</span>
375
+                  <span v-if="prescription.anticoagulant == 4">mg</span>
376
+                  <span v-if="prescription.anticoagulant == 3">iu</span>
377
+                  <span v-if="prescription.anticoagulant == 2">iu</span>
378
+                  <span v-if="prescription.anticoagulant == 1">mg</span>
379
+
380
+                </div>
381
+                <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant == 5">
382
+                  钙名称:
383
+                  <div class="under_line" style="width: 150px;text-align: center;">
384
+                    {{prescription.anticoagulant_gaimingcheng?prescription.anticoagulant_gaimingcheng:'/'}}
385
+                  </div>
386
+                </div>
387
+                <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant == 5">
388
+                  钙剂量:
389
+                  <div class="under_line" style="width: 50px;text-align: center;">
390
+                    {{prescription.anticoagulant_gaijiliang?prescription.anticoagulant_gaijiliang:'/'}}
391
+                  </div>
392
+                  ml
393
+                </div>
394
+                <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant != 5">
373 395
                   总量:
374
-                    <div class="under_line" style="width: 50px;text-align: center;">
375
-                      {{prescription.anticoagulant_zongliang?prescription.anticoagulant_zongliang:'/'}}
376
-                    </div>
377
-                    lu
396
+                  <div class="under_line" style="width: 50px;text-align: center;">
397
+                    {{prescription.anticoagulant_zongliang?prescription.anticoagulant_zongliang:'/'}}
378 398
                   </div>
379
-                  <div class="inline_block" style="margin-left:20px;">
399
+                  <span v-if="prescription.anticoagulant == 4">mg</span>
400
+                  <span v-if="prescription.anticoagulant == 3">iu</span>
401
+                  <span v-if="prescription.anticoagulant == 2">iu</span>
402
+                  <span v-if="prescription.anticoagulant == 1">mg</span>
403
+
404
+                </div>
405
+                <div class="inline_block" style="margin-left:20px;">
380 406
                   透析机号:
381 407
                   <div class="under_line" style="width: 50px;text-align: center;">
382 408
                     {{dialysisOrder&&dialysisOrder.DeviceNumber&&dialysisOrder.DeviceNumber.number.length > 0?dialysisOrder.DeviceNumber.number:patientInfo.DialysisSchedule.device_number.number}}
@@ -404,18 +430,18 @@
404 430
                   <td v-if="prescription.mode_id==2 || prescription.mode_id==5" width="50">置换量<br/>(ml)</td>
405 431
                   <td width="200">病情变化及处理</td>
406 432
 
407
-                      <!-- <td width="100">时间</td>
408
-                      <td width="30">T<br>C°</td>
409
-                      <td width="30">P<br/>次/分</td>
410
-                      <td width="30">R<br/>次/分</td>
411
-                      <td width="100">BP<br/>mmHg</td>
412
-                      <td width="60">静脉压/动脉压<br/>mmHg</td>
413
-                      <td width="80">血流量<br/>ml/min</td>
414
-                      <td width="90">超滤量累计L</td>
415
-                      <td width="80">钠浓度<br/>mmol/L</td>
416
-                      <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
417
-                      <td  width="100">护士签名</td> -->
418
-                    </tr>
433
+                  <!-- <td width="100">时间</td>
434
+                  <td width="30">T<br>C°</td>
435
+                  <td width="30">P<br/>次/分</td>
436
+                  <td width="30">R<br/>次/分</td>
437
+                  <td width="100">BP<br/>mmHg</td>
438
+                  <td width="60">静脉压/动脉压<br/>mmHg</td>
439
+                  <td width="80">血流量<br/>ml/min</td>
440
+                  <td width="90">超滤量累计L</td>
441
+                  <td width="80">钠浓度<br/>mmol/L</td>
442
+                  <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
443
+                  <td  width="100">护士签名</td> -->
444
+                </tr>
419 445
 
420 446
                 <tr v-for="(monitor,monindex) in monitors" :key="monindex">
421 447
                   <td>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
@@ -482,45 +508,45 @@
482 508
                             <span v-if="advice.start_time">
483 509
                               {{getTime(advice.start_time,'{h}:{i}')}}
484 510
                             </span>
485
-                          <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
486
-                        </td>
487
-                        <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;" >
488
-                          <span v-if="advice.parent_id > 0">---></span>
489
-                          <span >{{advice.advice_name }}</span>
490
-                          <span v-if="advice&&advice.advice_desc">({{advice.advice_desc}}{{advice.drug_spec_unit}})</span>
491
-                          <span v-if="advice.prescribing_number"> &nbsp;&nbsp; {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
492
-                           <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
493
-                          <span v-if="advice.parent_id == 0 ">{{advice.delivery_way}}</span>
494
-                          <span v-if="advice.parent_id == 0  ">{{advice.execution_frequency}}</span>
495
-                          <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
496
-                        </td>
497
-                        <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
498
-                          <span>{{advice.delivery_way}}</span>
499
-                          <span>{{advice.execution_frequency}}</span>
500
-                          <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
501
-                        </td> -->
502
-                        <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
503
-                        <td height="32px">
504
-                          <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
505
-                          <img style="height:20px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
506
-                        </td>
507
-                        <!-- <td height="35px">
508
-                          <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
509
-                          <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
510
-                        </td> -->
511
-                        <td height="32px">
512
-                          <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
513
-                          <img style="height:20px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
514
-                        </td>
515
-                        <td height="32px">
516
-                          <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{h}:{i}')}}</span>
517
-                        </td>
518
-                      </tr>
519
-                    <!-- </template> -->
520
-                  </tbody>
521
-                </table>
522
-              </td>
523
-            </tr>
511
+                    <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
512
+                  </td>
513
+                  <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;" >
514
+                    <span v-if="advice.parent_id > 0">---></span>
515
+                    <span >{{advice.advice_name }}</span>
516
+                    <span v-if="advice&&advice.advice_desc">({{advice.advice_desc}}{{advice.drug_spec_unit}})</span>
517
+                    <span v-if="advice.prescribing_number"> &nbsp;&nbsp; {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
518
+                    <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
519
+                    <span v-if="advice.parent_id == 0 ">{{advice.delivery_way}}</span>
520
+                    <span v-if="advice.parent_id == 0  ">{{advice.execution_frequency}}</span>
521
+                    <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
522
+                  </td>
523
+                  <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
524
+                    <span>{{advice.delivery_way}}</span>
525
+                    <span>{{advice.execution_frequency}}</span>
526
+                    <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
527
+                  </td> -->
528
+                  <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
529
+                  <td height="32px">
530
+                    <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
531
+                    <img style="height:20px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
532
+                  </td>
533
+                  <!-- <td height="35px">
534
+                    <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
535
+                    <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
536
+                  </td> -->
537
+                  <td height="32px">
538
+                    <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
539
+                    <img style="height:20px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
540
+                  </td>
541
+                  <td height="32px">
542
+                    <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{h}:{i}')}}</span>
543
+                  </td>
544
+                </tr>
545
+                <!-- </template> -->
546
+                </tbody>
547
+              </table>
548
+            </td>
549
+          </tr>
524 550
           </tbody>
525 551
         </table>
526 552
       </div>
@@ -545,27 +571,27 @@
545 571
           </div>
546 572
           <div class="inline_block">
547 573
             门诊:
548
-              <div class="under_line" style="width: 30px;text-align: center;">
549
-                  <check-box  :checked="patientInfo_source_1 "></check-box>
550
-              </div>
574
+            <div class="under_line" style="width: 30px;text-align: center;">
575
+              <check-box  :checked="patientInfo_source_1 "></check-box>
576
+            </div>
551 577
           </div>
552 578
           <div class="inline_block">
553 579
             病区:
554
-              <div class="under_line" style="width: 50px;text-align: center;">
555
-                  {{'/'}}
556
-              </div>
580
+            <div class="under_line" style="width: 50px;text-align: center;">
581
+              {{'/'}}
582
+            </div>
557 583
           </div>
558 584
           <div class="inline_block">
559 585
             床号:
560
-              <div class="under_line" style="width: 50px;text-align: center;">
561
-                  {{'/'}}
562
-              </div>
586
+            <div class="under_line" style="width: 50px;text-align: center;">
587
+              {{'/'}}
588
+            </div>
563 589
           </div>
564 590
           <div class="inline_block">
565 591
             透析号:
566
-              <div class="under_line" style="width: 70px;text-align: center;">
567
-                {{patientInfo.dialysis_no}}
568
-              </div>
592
+            <div class="under_line" style="width: 70px;text-align: center;">
593
+              {{patientInfo.dialysis_no}}
594
+            </div>
569 595
           </div>
570 596
           <div class="inline_block" style="margin-left: 5px;">
571 597
             住院号/门诊号:
@@ -624,7 +650,7 @@
624 650
                 <span >{{advice.advice_name }}</span>
625 651
                 <span v-if="advice&&advice.advice_desc">({{advice.advice_desc}}{{advice.drug_spec_unit}})</span>
626 652
                 <span v-if="advice.prescribing_number"> &nbsp;&nbsp; {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
627
-                  <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
653
+                <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
628 654
                 <span v-if="advice.parent_id == 0 ">{{advice.delivery_way}}</span>
629 655
                 <span v-if="advice.parent_id == 0  ">{{advice.execution_frequency}}</span>
630 656
                 <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
@@ -942,7 +968,7 @@
942 968
       }
943 969
     },
944 970
     methods: {
945
-       getDisplaceLiquiPart: function (val) {
971
+      getDisplaceLiquiPart: function (val) {
946 972
         let displace_liqui_part_name = '/'
947 973
         let displace_liqui_part = this.displaceLiquiPartOptions
948 974
         for (let i = 0; i < displace_liqui_part.length; i++) {
@@ -952,7 +978,7 @@
952 978
         }
953 979
         return displace_liqui_part_name
954 980
       },
955
-        replacementWaysById: function (val) {
981
+      replacementWaysById: function (val) {
956 982
         let replacementWaysname = '/'
957 983
         // let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
958 984
 
@@ -1190,7 +1216,7 @@
1190 1216
                 tempmonitorflag = false
1191 1217
               }
1192 1218
               if(tempmonitorflag && index == this.monitors.length-1){
1193
-                  this.monitors[index].end ="【结束透析】"
1219
+                this.monitors[index].end ="【结束透析】"
1194 1220
               }
1195 1221
             }
1196 1222
 
@@ -1498,7 +1524,7 @@
1498 1524
 </script>
1499 1525
 
1500 1526
 <style>
1501
-   .print_page_main_content {
1527
+  .print_page_main_content {
1502 1528
     background-color: white;
1503 1529
     width: 960px;
1504 1530
     margin: 0 auto 50px;
@@ -1513,7 +1539,7 @@
1513 1539
     letter-spacing: 5px;
1514 1540
   }
1515 1541
 
1516
-   .dialysis-print-order .order-title {
1542
+  .dialysis-print-order .order-title {
1517 1543
     margin: auto;
1518 1544
     font-weight: 600;
1519 1545
     text-align: center;
@@ -1537,11 +1563,11 @@
1537 1563
   .inline_block {
1538 1564
     display: inline-block;
1539 1565
   }
1540
-   .under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}
1566
+  .under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}
1541 1567
 
1542
-   .under_line_two::before {content: "\00A0";}
1568
+  .under_line_two::before {content: "\00A0";}
1543 1569
 
1544
-   .under_line_two::after {content: "\00A0";}
1570
+  .under_line_two::after {content: "\00A0";}
1545 1571
 
1546 1572
   .under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap;width: 50%;}
1547 1573
 
@@ -1622,7 +1648,7 @@
1622 1648
   }
1623 1649
   .margin-bottom-50{
1624 1650
   }
1625
-   .margin-bottom-300 {
1651
+  .margin-bottom-300 {
1626 1652
     margin-bottom:450px;
1627 1653
   }
1628 1654
   .margin-bottom-600 {
@@ -1652,5 +1678,5 @@
1652 1678
     margin-left: 2px;
1653 1679
     margin-top: 2px;
1654 1680
     position: absolute;
1655
-}
1681
+  }
1656 1682
 </style>

+ 0 - 46
src/xt_pages/home/index.vue 查看文件

@@ -113,52 +113,6 @@
113 113
           ></el-pagination>
114 114
         </div>
115 115
 
116
-        <el-button type="text" @click="dialogVisible = true">点击打开 Dialog</el-button>
117
-
118
-        <el-dialog
119
-          title="病人姓名"
120
-          :visible.sync="dialogVisible"
121
-          width="30%"
122
-          :before-close="handleClose"
123
-        >
124
-          <div class="newLine">
125
-            <span>本次透析日期</span>
126
-            <span>123</span>
127
-          </div>
128
-          <div class="newLine">
129
-            <span>透前体重(kg)</span>
130
-            <span>123</span>
131
-          </div>
132
-          <div class="newLine">
133
-            <span>干体重(kg)</span>
134
-            <span>123</span>
135
-          </div>
136
-          <div class="newLine">
137
-            <span>衣物重(kg)</span>
138
-            <span>123</span>
139
-          </div>
140
-          <div class="newLine">
141
-            <span>体重增加(kg)</span>
142
-            <span>123</span>
143
-          </div>
144
-          <div class="newLine">
145
-            <span>透后体重(kg)</span>
146
-            <span>123</span>
147
-          </div>
148
-          <div class="newLine">
149
-            <span>体重减少(kg)</span>
150
-            <span>123</span>
151
-          </div>
152
-          <div class="newLine">
153
-            <span>上次透后体重(kg)</span>
154
-            <span>123</span>
155
-          </div>
156
-
157
-          <span slot="footer" class="dialog-footer">
158
-            <el-button @click="dialogVisible = false">取 消</el-button>
159
-            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
160
-          </span>
161
-        </el-dialog>
162 116
       </div>
163 117
     </section>
164 118
   </div>