Просмотр исходного кода

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

csx 4 лет назад
Родитель
Сommit
e4c90cfdbc

+ 4 - 4
src/api/advice.js Просмотреть файл

@@ -289,10 +289,10 @@ export function PostInitAdviceTemplate(params) {
289 289
   })
290 290
 }
291 291
 
292
-export function getPrintInfo(id, params) {
292
+export function getPrintInfo(data) {
293 293
   return request({
294
-    url: '/api/advicetemplate/getprintinfo?id=' + id,
295
-    method: 'get',
296
-    params: params
294
+    url: '/api/advicetemplate/getprintinfo',
295
+    method: 'post',
296
+    data: data
297 297
   })
298 298
 }

+ 0 - 1
src/api/dialysis.js Просмотреть файл

@@ -137,7 +137,6 @@ export function delMonitor(params) {
137 137
 }
138 138
 
139 139
 export function getDialysisRecord(params) {
140
-  console.log('params容声哦', params)
141 140
   return request({
142 141
     url: '/api/dialysis/dialysisorder',
143 142
     method: 'Get',

+ 12 - 1
src/router/modules/dialysis.js Просмотреть файл

@@ -125,7 +125,18 @@ export default {
125 125
       title: '批量打印',
126 126
       noCache: true
127 127
     }
128
-  },
128
+   },
129
+   {
130
+    path: '/dialysis/print/batch/seven',
131
+    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_seven'),
132
+    hidden: true,
133
+    is_menu: false,
134
+    name: 'dialysis_batch_seven',
135
+    meta: {
136
+      title: '批量打印',
137
+      noCache: true
138
+    }
139
+   },
129 140
   {
130 141
     path: '/dialysis/print/batch/otherone',
131 142
     component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_one'),

+ 7 - 3
src/styles/index.scss Просмотреть файл

@@ -535,10 +535,14 @@ code {
535 535
 
536 536
 .el-table--striped .el-table__body tr.el-table__row--striped.current-row td,
537 537
 .el-table__body tr.current-row > td {
538
-  background-color: #409eff;
539
-  color: #fff;
538
+  background-color: #ecf5ff !important;
539
+  color: #3a8ee6;
540 540
 }
541 541
 
542 542
 .el-table__body tr:hover > td {
543
-  background-color: #409eff !important;
543
+  background-color: #ecf5ff !important;
544
+  color: #3a8ee6;
545
+}
546
+.el-table__body tr > td:hover {
547
+  background-color: #409eff;
544 548
 }

+ 2 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Просмотреть файл

@@ -13,6 +13,7 @@
13 13
     </div>
14 14
     <div class="app-container">
15 15
       <div id="print_content">
16
+
16 17
         <div
17 18
           v-for="(record, index) in records"
18 19
           :key="index"
@@ -2266,6 +2267,7 @@ export default {
2266 2267
           }
2267 2268
 
2268 2269
           this.adminUser = resp.data.users
2270
+          console.log("使用者",this.adminUser)
2269 2271
           this.loading = false
2270 2272
         } else {
2271 2273
           this.loading = false

+ 310 - 187
src/xt_pages/dialysis/bloodPresssWatch.vue Просмотреть файл

@@ -3,30 +3,112 @@
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5 5
       <template v-if="this.template_id == 1">
6
-        <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
6
+        <el-button
7
+          size="small"
8
+          icon="el-icon-printer"
9
+          :disabled="selecting_schs.length == 0"
10
+          @click="batchPrintAction"
11
+          type="primary"
12
+          >打印</el-button
13
+        >
7 14
       </template>
8 15
       <template v-if="this.template_id == 2 || this.template_id == 0">
9
-        <div >
10
-          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintAction" type="primary">打印全部</el-button>
11
-          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintActionOne" type="primary" style="">打印纪录单</el-button>
12
-          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintActionTwo" type="primary">打印医嘱单</el-button>
16
+        <div>
17
+          <el-button
18
+            :loading="loading"
19
+            size="small"
20
+            icon="el-icon-printer"
21
+            @click="batchPrintAction"
22
+            type="primary"
23
+            >打印全部</el-button
24
+          >
25
+          <el-button
26
+            :loading="loading"
27
+            size="small"
28
+            icon="el-icon-printer"
29
+            @click="batchPrintActionOne"
30
+            type="primary"
31
+            style=""
32
+            >打印纪录单</el-button
33
+          >
34
+          <el-button
35
+            :loading="loading"
36
+            size="small"
37
+            icon="el-icon-printer"
38
+            @click="batchPrintActionTwo"
39
+            type="primary"
40
+            >打印医嘱单</el-button
41
+          >
13 42
         </div>
14 43
       </template>
15 44
       <template v-if="this.template_id == 3">
16
-        <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
45
+        <el-button
46
+          size="small"
47
+          icon="el-icon-printer"
48
+          :disabled="selecting_schs.length == 0"
49
+          @click="batchPrintAction"
50
+          type="primary"
51
+          >打印</el-button
52
+        >
17 53
       </template>
18 54
       <template v-if="this.template_id == 4">
19
-        <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
55
+        <el-button
56
+          size="small"
57
+          icon="el-icon-printer"
58
+          :disabled="selecting_schs.length == 0"
59
+          @click="batchPrintAction"
60
+          type="primary"
61
+          >打印</el-button
62
+        >
20 63
       </template>
21 64
       <template v-if="this.template_id == 5">
22
-        <div >
23
-          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintAction" type="primary">打印全部</el-button>
24
-          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintActionOne" type="primary" style="">打印纪录单</el-button>
25
-          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintActionTwo" type="primary">打印医嘱单</el-button>
65
+        <div>
66
+          <el-button
67
+            :loading="loading"
68
+            size="small"
69
+            icon="el-icon-printer"
70
+            @click="batchPrintAction"
71
+            type="primary"
72
+            >打印全部</el-button
73
+          >
74
+          <el-button
75
+            :loading="loading"
76
+            size="small"
77
+            icon="el-icon-printer"
78
+            @click="batchPrintActionOne"
79
+            type="primary"
80
+            style=""
81
+            >打印纪录单</el-button
82
+          >
83
+          <el-button
84
+            :loading="loading"
85
+            size="small"
86
+            icon="el-icon-printer"
87
+            @click="batchPrintActionTwo"
88
+            type="primary"
89
+            >打印医嘱单</el-button
90
+          >
26 91
         </div>
27 92
       </template>
28 93
       <template v-if="this.template_id == 6">
29
-        <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
94
+        <el-button
95
+          size="small"
96
+          icon="el-icon-printer"
97
+          :disabled="selecting_schs.length == 0"
98
+          @click="batchPrintAction"
99
+          type="primary"
100
+          >打印</el-button
101
+        >
102
+      </template>
103
+      <template v-if="this.template_id == 7">
104
+        <el-button
105
+          size="small"
106
+          icon="el-icon-printer"
107
+          :disabled="selecting_schs.length == 0"
108
+          @click="batchPrintAction"
109
+          type="primary"
110
+          >批量打印</el-button
111
+        >
30 112
       </template>
31 113
     </div>
32 114
     <div class="app-container">
@@ -36,7 +118,10 @@
36 118
       </div>-->
37 119
       <div class="cell clearfix">
38 120
         <label class="title">
39
-          <span class="name">{{ search_mode == 1 ? "日期查询" : "病人查询" }}</span> :
121
+          <span class="name">{{
122
+            search_mode == 1 ? "日期查询" : "病人查询"
123
+          }}</span>
124
+          :
40 125
         </label>
41 126
         <el-date-picker
42 127
           v-show="search_mode == 1"
@@ -65,40 +150,39 @@
65 150
             @click="searchPatientAction"
66 151
           ></el-button>
67 152
         </el-input>
68
-        <el-button
69
-          type="primary"
70
-          @click="changeSearchMode"
71
-        >{{ search_mode == 1 ? "改为病人查询" : "改为日期查询" }}</el-button>
153
+        <el-button type="primary" @click="changeSearchMode">{{
154
+          search_mode == 1 ? "改为病人查询" : "改为日期查询"
155
+        }}</el-button>
72 156
 
73 157
         <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
74 158
       </div>
75 159
       <div class="cell clearfix">
76
-        <label class="title">
77
-          <span class="name">排班班次</span> :
78
-        </label>
160
+        <label class="title"> <span class="name">排班班次</span> : </label>
79 161
         <div class="time">
80 162
           <ul class>
81 163
             <li
82
-              :class="item.value==schedulType?'active':''"
164
+              :class="item.value == schedulType ? 'active' : ''"
83 165
               @click="selectSchedulType(item.value)"
84 166
               v-for="item in schedulArr"
85 167
               :key="item.value"
86
-            >{{item.label}}</li>
168
+            >
169
+              {{ item.label }}
170
+            </li>
87 171
           </ul>
88 172
         </div>
89 173
       </div>
90 174
       <div class="cell clearfix">
91
-        <label class="title">
92
-          <span class="name">分区</span> :
93
-        </label>
175
+        <label class="title"> <span class="name">分区</span> : </label>
94 176
         <div class="time">
95 177
           <ul class>
96 178
             <li
97
-              :class="item.id==partitionType?'active':''"
179
+              :class="item.id == partitionType ? 'active' : ''"
98 180
               @click="selectPartitionType(item.id)"
99 181
               v-for="item in partitionArr"
100 182
               :key="item.id"
101
-            >{{item.name}}</li>
183
+            >
184
+              {{ item.name }}
185
+            </li>
102 186
           </ul>
103 187
         </div>
104 188
       </div>
@@ -115,36 +199,73 @@
115 199
         @current-change="clickCurrent"
116 200
         @selection-change="handleSelectionChange"
117 201
       >
118
-        <el-table-column type="selection" width="45" align="center"></el-table-column>
119
-        <el-table-column prop="number" label="机号" align="center"></el-table-column>
120
-        <el-table-column label="排班日期" prop="sch_time" align="center" width="120"></el-table-column>
121
-        <el-table-column prop="dialysis_no" label="透析号" align="center"></el-table-column>
202
+        <el-table-column
203
+          type="selection"
204
+          width="45"
205
+          align="center"
206
+        ></el-table-column>
207
+        <el-table-column
208
+          prop="number"
209
+          label="机号"
210
+          align="center"
211
+        ></el-table-column>
212
+        <el-table-column
213
+          label="排班日期"
214
+          prop="sch_time"
215
+          align="center"
216
+          width="120"
217
+        ></el-table-column>
218
+        <el-table-column
219
+          prop="dialysis_no"
220
+          label="透析号"
221
+          align="center"
222
+        ></el-table-column>
122 223
         <el-table-column prop="name" label="姓名" align="center">
123 224
           <template slot-scope="scope">
124
-            <span style="color: #579ef8">{{scope.row.name}}</span>
225
+            <span style="color: #579ef8">{{ scope.row.name }}</span>
125 226
           </template>
126 227
         </el-table-column>
127 228
 
128
-        <el-table-column prop="mode_name" label="透析模式" align="center" width="100"></el-table-column>
229
+        <el-table-column
230
+          prop="mode_name"
231
+          label="透析模式"
232
+          align="center"
233
+          width="100"
234
+        ></el-table-column>
129 235
 
130
-        <el-table-column prop="dialysis_before_weight" label="透前体重(kg)" align="center" width="120"></el-table-column>
131
-        <el-table-column prop="dialysis_after_weight" label="透后体重(kg)" align="center" width="120"></el-table-column>
236
+        <el-table-column
237
+          prop="dialysis_before_weight"
238
+          label="透前体重(kg)"
239
+          align="center"
240
+          width="120"
241
+        ></el-table-column>
242
+        <el-table-column
243
+          prop="dialysis_after_weight"
244
+          label="透后体重(kg)"
245
+          align="center"
246
+          width="120"
247
+        ></el-table-column>
132 248
         <el-table-column label="透中血压(Hgmm)" align="center">
133
-          <el-table-column v-for="(item, index) in labelArr" :key="index" :label="item" align="center">
249
+          <el-table-column
250
+            v-for="(item, index) in labelArr"
251
+            :key="index"
252
+            :label="item"
253
+            align="center"
254
+          >
134 255
             <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
135
-            <template slot-scope="scope" >
256
+            <template slot-scope="scope">
136 257
               <!--<span>{{scope.row.bp[index].value}}</span>-->
137
-              <span>{{getValue(scope.row.bp[index])}}</span>
258
+              <span>{{ getValue(scope.row.bp[index]) }}</span>
138 259
             </template>
139 260
           </el-table-column>
140 261
         </el-table-column>
141 262
       </el-table>
142 263
 
143 264
       <el-pagination
144
-      align="right"
145
-      @size-change="handleSizeChange"
265
+        align="right"
266
+        @size-change="handleSizeChange"
146 267
         @current-change="handleCurrentChange"
147
-        :page-sizes="[10,20,30,50]"
268
+        :page-sizes="[10, 20, 30, 50]"
148 269
         :page-size="10"
149 270
         background
150 271
         style="margin-top:20px;"
@@ -155,70 +276,69 @@
155 276
   </div>
156 277
 </template>
157 278
 
158
-
159 279
 <script>
160
-import { getSchedualPatient, GetAllZone } from '@/api/dialysis'
161
-import { parseTime } from '@/utils'
162
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
163
-import { getPrintTemplate } from '@/api/data'
280
+import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
281
+import { parseTime } from "@/utils";
282
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
283
+import { getPrintTemplate } from "@/api/data";
164 284
 
165 285
 export default {
166
-  name: 'Patient',
286
+  name: "Patient",
167 287
   data() {
168 288
     return {
169 289
       crumbs: [
170
-        { path: false, name: '透析管理' },
171
-        { path: false, name: '透析监测' }
290
+        { path: false, name: "透析管理" },
291
+        { path: false, name: "透析监测" }
172 292
       ],
173 293
       loading: false,
174
-      time: '',
294
+      time: "",
175 295
 
176 296
       search_mode: 1, // 搜索模式 1.日期搜索 2.病人搜索
177
-      patient_search_keyword: '',
297
+      patient_search_keyword: "",
178 298
 
179 299
       SchedualPatientsTableData: [],
180 300
       active: true,
181 301
       schedulType: 0,
182 302
       schedulArr: [
183
-        { value: 0, label: '全部' },
184
-        { value: 1, label: '上午' },
185
-        { value: 2, label: '下午' },
186
-        { value: 3, label: '晚上' }
303
+        { value: 0, label: "全部" },
304
+        { value: 1, label: "上午" },
305
+        { value: 2, label: "下午" },
306
+        { value: 3, label: "晚上" }
187 307
       ],
188 308
       template_id: 0,
189 309
 
190 310
       partitionType: 0,
191 311
 
192
-      labelArr: ['第1次', '第2次', '第3次', '第4次', '第5次', '第6次', '第7次'],
312
+      labelArr: ["第1次", "第2次", "第3次", "第4次", "第5次", "第6次", "第7次"],
193 313
 
194 314
       pickerOptions1: {
195 315
         shortcuts: [
196 316
           {
197
-            text: '今天',
317
+            text: "今天",
198 318
             onClick(picker) {
199
-              picker.$emit('pick', new Date())
319
+              picker.$emit("pick", new Date());
200 320
             }
201 321
           },
202 322
           {
203
-            text: '昨天',
323
+            text: "昨天",
204 324
             onClick(picker) {
205
-              const date = new Date()
206
-              date.setTime(date.getTime() - 3600 * 1000 * 24)
207
-              picker.$emit('pick', date)
325
+              const date = new Date();
326
+              date.setTime(date.getTime() - 3600 * 1000 * 24);
327
+              picker.$emit("pick", date);
208 328
             }
209 329
           },
210 330
           {
211
-            text: '一周前',
331
+            text: "一周前",
212 332
             onClick(picker) {
213
-              const date = new Date()
214
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
215
-              picker.$emit('pick', date)
333
+              const date = new Date();
334
+              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
335
+              picker.$emit("pick", date);
216 336
             }
217 337
           },
218 338
           {
219
-            text: '清空',
339
+            text: "清空",
220 340
             onClick(picker) {
221
-              picker.$emit('pick')
341
+              picker.$emit("pick");
222 342
             }
223 343
           }
224 344
         ]
@@ -230,263 +350,266 @@ export default {
230 350
         limit: 10,
231 351
         schedul_type: 0,
232 352
         partition_type: 0,
233
-        schedul_time: '',
234
-        keywords: ''
353
+        schedul_time: "",
354
+        keywords: ""
235 355
       },
236 356
       selecting_schs: [],
237 357
       partitionArr: []
238
-    }
358
+    };
239 359
   },
240 360
   created() {
241
-    var date = new Date()
242
-    this.time = date
243
-    var year = date.getFullYear()
244
-    var month = date.getMonth() + 1
245
-    var day = date.getDate()
361
+    var date = new Date();
362
+    this.time = date;
363
+    var year = date.getFullYear();
364
+    var month = date.getMonth() + 1;
365
+    var day = date.getDate();
246 366
     if (month < 10) {
247
-      month = '0' + month
367
+      month = "0" + month;
248 368
     }
249 369
     if (day < 10) {
250
-      day = '0' + day
370
+      day = "0" + day;
251 371
     }
252
-    var nowDate = year + '-' + month + '-' + day
253
-    var date = new Date(nowDate + ' 00:00:00')
254
-    this.listQuery.schedul_time = date.getTime()
255
-    this.getAllZone()
256
-    this.getSchedualPatientList()
257
-    this.getTemplateInfo()
372
+    var nowDate = year + "-" + month + "-" + day;
373
+    var date = new Date(nowDate + " 00:00:00");
374
+    this.listQuery.schedul_time = date.getTime();
375
+    this.getAllZone();
376
+    this.getSchedualPatientList();
377
+    this.getTemplateInfo();
258 378
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
259 379
   },
260 380
   methods: {
261 381
     getTemplateInfo() {
262 382
       getPrintTemplate().then(response => {
263 383
         if (response.data.state == 0) {
264
-          this.$message.error(response.data.msg)
265
-          return false
384
+          this.$message.error(response.data.msg);
385
+          return false;
266 386
         } else {
267
-          var template = response.data.data.template
268
-          this.template_id = template.template_id
387
+          var template = response.data.data.template;
388
+          this.template_id = template.template_id;
269 389
         }
270
-      })
390
+      });
271 391
     },
272 392
     clickCurrent(val) {
273
-      console.log(val)
393
+      console.log(val);
274 394
       this.$router.push({
275
-        path: '/dialysis/details',
395
+        path: "/dialysis/details",
276 396
         query: { patient_id: val.patient_id, date: val.sch_time_int }
277
-      })
397
+      });
278 398
     },
279 399
     handleSelectionChange(val) {
280
-      this.selecting_schs = val
400
+      this.selecting_schs = val;
281 401
     },
282 402
 
283 403
     selectSchedulType(scheduleType) {
284 404
       // alert(scheduleType);/
285
-      this.schedulType = scheduleType
286
-      this.listQuery.schedul_type = scheduleType
287
-      this.getSchedualPatientList()
405
+      this.schedulType = scheduleType;
406
+      this.listQuery.schedul_type = scheduleType;
407
+      this.getSchedualPatientList();
288 408
     },
289 409
     selectPartitionType(partitionType) {
290
-      this.partitionType = partitionType
291
-      this.listQuery.partition_type = partitionType
292
-      this.getSchedualPatientList()
410
+      this.partitionType = partitionType;
411
+      this.listQuery.partition_type = partitionType;
412
+      this.getSchedualPatientList();
293 413
     },
294 414
 
295 415
     changeTime() {
296
-      this.listQuery.schedul_time = this.time
297
-      this.getSchedualPatientList()
416
+      this.listQuery.schedul_time = this.time;
417
+      this.getSchedualPatientList();
298 418
     },
299 419
     getAllZone: function() {
300 420
       GetAllZone().then(response => {
301 421
         if (response.data.state == 0) {
302
-          this.$message.error(response.data.msg)
303
-          return false
422
+          this.$message.error(response.data.msg);
423
+          return false;
304 424
         } else {
305
-          this.partitionArr = response.data.data.zone
306
-          this.partitionArr.unshift({ id: 0, name: '全部' })
425
+          this.partitionArr = response.data.data.zone;
426
+          this.partitionArr.unshift({ id: 0, name: "全部" });
307 427
         }
308
-      })
428
+      });
309 429
     },
310 430
     getSchedualPatientList: function() {
311
-      this.loading = true
431
+      this.loading = true;
312 432
       if (this.search_mode == 1) {
313
-        this.listQuery.keywords = ''
433
+        this.listQuery.keywords = "";
314 434
       } else {
315
-        this.listQuery.schedul_time = ''
435
+        this.listQuery.schedul_time = "";
316 436
       }
317
-      this.SchedualPatientsTableData = []
437
+      this.SchedualPatientsTableData = [];
318 438
       getSchedualPatient(this.listQuery).then(response => {
319 439
         if (response.data.state == 0) {
320
-          this.loading = false
321
-          this.$message.error(response.data.msg)
322
-          return false
440
+          this.loading = false;
441
+          this.$message.error(response.data.msg);
442
+          return false;
323 443
         } else {
324
-          this.loading = false
325
-          this.total = response.data.data.total
444
+          this.loading = false;
445
+          this.total = response.data.data.total;
326 446
           // console.log(response.data.data)
327 447
           for (let i = 0; i < response.data.data.schedule.length; i++) {
328 448
             if (response.data.data.schedule[i].patient.id > 0) {
329 449
               const SchedualPatientsTable = {
330 450
                 bp: []
331
-              }
451
+              };
332 452
 
333
-              SchedualPatientsTable['sch_id'] = response.data.data.schedule[i].id
334
-              SchedualPatientsTable['sch_time_int'] =
335
-                response.data.data.schedule[i].schedule_date
336
-              SchedualPatientsTable['sch_time'] = parseTime(
453
+              SchedualPatientsTable["sch_id"] =
454
+                response.data.data.schedule[i].id;
455
+              SchedualPatientsTable["sch_time_int"] =
456
+                response.data.data.schedule[i].schedule_date;
457
+              SchedualPatientsTable["sch_time"] = parseTime(
337 458
                 response.data.data.schedule[i].schedule_date,
338
-                '{y}-{m}-{d}'
339
-              )
340
-              SchedualPatientsTable['dialysis_no'] =
341
-                response.data.data.schedule[i].patient.dialysis_no
342
-              SchedualPatientsTable['name'] =
343
-                response.data.data.schedule[i].patient.name
344
-              SchedualPatientsTable['number'] =
345
-                response.data.data.schedule[i].device_number.number
346
-              SchedualPatientsTable['gender'] =
347
-                response.data.data.schedule[i].patient.gender
348
-              SchedualPatientsTable['source'] =
349
-                response.data.data.schedule[i].patient.source
350
-              SchedualPatientsTable['patient_id'] =
351
-                response.data.data.schedule[i].patient_id
352
-              SchedualPatientsTable['mode_name'] =
353
-                response.data.data.schedule[i].treatment_mode.name
459
+                "{y}-{m}-{d}"
460
+              );
461
+              SchedualPatientsTable["dialysis_no"] =
462
+                response.data.data.schedule[i].patient.dialysis_no;
463
+              SchedualPatientsTable["name"] =
464
+                response.data.data.schedule[i].patient.name;
465
+              SchedualPatientsTable["number"] =
466
+                response.data.data.schedule[i].device_number.number;
467
+              SchedualPatientsTable["gender"] =
468
+                response.data.data.schedule[i].patient.gender;
469
+              SchedualPatientsTable["source"] =
470
+                response.data.data.schedule[i].patient.source;
471
+              SchedualPatientsTable["patient_id"] =
472
+                response.data.data.schedule[i].patient_id;
473
+              SchedualPatientsTable["mode_name"] =
474
+                response.data.data.schedule[i].treatment_mode.name;
354 475
               if (
355 476
                 response.data.data.schedule[i].assessment_before_dislysis.id > 0
356 477
               ) {
357
-                SchedualPatientsTable['dialysis_before_weight'] =
478
+                SchedualPatientsTable["dialysis_before_weight"] =
358 479
                   response.data.data.schedule[
359 480
                     i
360
-                  ].assessment_before_dislysis.weight_before
481
+                  ].assessment_before_dislysis.weight_before;
361 482
               }
362 483
               if (
363 484
                 response.data.data.schedule[i].assessment_after_dislysis.id > 0
364 485
               ) {
365
-                SchedualPatientsTable['dialysis_after_weight'] =
486
+                SchedualPatientsTable["dialysis_after_weight"] =
366 487
                   response.data.data.schedule[
367 488
                     i
368
-                  ].assessment_after_dislysis.weight_after
489
+                  ].assessment_after_dislysis.weight_after;
369 490
               }
370 491
 
371
-              SchedualPatientsTable.bp = []
492
+              SchedualPatientsTable.bp = [];
372 493
               for (
373 494
                 let a = 0;
374 495
                 a < response.data.data.schedule[i].monitoring_record.length;
375 496
                 a++
376 497
               ) {
377
-                const bp = {}
378
-                bp['value'] =
498
+                const bp = {};
499
+                bp["value"] =
379 500
                   response.data.data.schedule[i].monitoring_record[
380 501
                     a
381 502
                   ].systolic_blood_pressure.toString() +
382
-                  '/' +
503
+                  "/" +
383 504
                   response.data.data.schedule[i].monitoring_record[
384 505
                     a
385
-                  ].diastolic_blood_pressure.toString()
506
+                  ].diastolic_blood_pressure.toString();
386 507
 
387
-                SchedualPatientsTable.bp.unshift(bp)
508
+                SchedualPatientsTable.bp.unshift(bp);
388 509
               }
389 510
 
390
-              this.SchedualPatientsTableData.push(SchedualPatientsTable)
511
+              this.SchedualPatientsTableData.push(SchedualPatientsTable);
391 512
             }
392 513
           }
393 514
         }
394
-      })
515
+      });
395 516
     },
396 517
     getValue: function(val) {
397 518
       if (val != undefined) {
398
-        return val.value
519
+        return val.value;
399 520
       } else {
400
-        return ''
521
+        return "";
401 522
       }
402 523
     },
403 524
 
404 525
     handleCurrentChange(val) {
405
-      this.listQuery.page = val
406
-      this.getSchedualPatientList()
526
+      this.listQuery.page = val;
527
+      this.getSchedualPatientList();
407 528
     },
408 529
     changeSearchMode: function() {
409 530
       if (this.search_mode == 1) {
410
-        this.search_mode = 2
531
+        this.search_mode = 2;
411 532
       } else {
412
-        this.search_mode = 1
533
+        this.search_mode = 1;
413 534
       }
414 535
     },
415 536
     searchPatientAction: function() {
416
-      this.listQuery.keywords = this.patient_search_keyword
417
-      console.log(this.patient_search_keyword)
537
+      this.listQuery.keywords = this.patient_search_keyword;
538
+      console.log(this.patient_search_keyword);
418 539
       if (this.patient_search_keyword.length == 0) {
419
-        return
540
+        return;
420 541
       }
421
-      this.getSchedualPatientList()
542
+      this.getSchedualPatientList();
422 543
     },
423 544
     handleSizeChange(val) {
424
-      this.listQuery.limit = val
425
-      this.getSchedualPatientList()
545
+      this.listQuery.limit = val;
546
+      this.getSchedualPatientList();
426 547
     },
427 548
     batchPrintAction: function() {
428
-    // 模板ID为6
429
-      var sch_ids = []
549
+      // 模板ID为6
550
+      var sch_ids = [];
430 551
 
431 552
       for (let index = 0; index < this.selecting_schs.length; index++) {
432
-        sch_ids.push(this.selecting_schs[index].sch_id)
553
+        sch_ids.push(this.selecting_schs[index].sch_id);
433 554
       }
434
-      console.log('第一个', sch_ids)
435
-      console.log('模板id', this.template_id)
436
-      this.$store.dispatch('SetBatchPrintDialysisRecordIDs', sch_ids)
555
+      console.log("第一个", sch_ids);
556
+      console.log("模板id", this.template_id);
557
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
437 558
       if (this.template_id == 2 || this.template_id == 0) {
438
-        this.$router.push({ path: '/dialysis/print/batch/other' })
559
+        this.$router.push({ path: "/dialysis/print/batch/other" });
439 560
       } else if (this.template_id == 1) {
440
-        this.$router.push({ path: '/dialysis/print/batch' })
561
+        this.$router.push({ path: "/dialysis/print/batch" });
441 562
       } else if (this.template_id == 3) {
442
-        this.$router.push({ path: '/dialysis/print/batch/three' })
563
+        this.$router.push({ path: "/dialysis/print/batch/three" });
443 564
       } else if (this.template_id == 4) {
444
-        this.$router.push({ path: '/dialysis/print/batch/four' })
565
+        this.$router.push({ path: "/dialysis/print/batch/four" });
445 566
       } else if (this.template_id == 5) {
446
-        this.$router.push({ path: '/dialysis/print/batch/five' })
567
+        this.$router.push({ path: "/dialysis/print/batch/five" });
447 568
       } else if (this.template_id == 6) {
448
-        this.$router.push({ path: '/dialysis/print/batch/six' })
569
+        this.$router.push({ path: "/dialysis/print/batch/six" });
570
+      } else if (this.template_id == 7) {
571
+        this.$router.push({ path: "/dialysis/print/batch/seven" });
449 572
       }
450 573
     },
451 574
     batchPrintActionOne: function() {
452
-      var sch_ids = []
575
+      var sch_ids = [];
453 576
       for (let index = 0; index < this.selecting_schs.length; index++) {
454
-        sch_ids.push(this.selecting_schs[index].sch_id)
577
+        sch_ids.push(this.selecting_schs[index].sch_id);
455 578
       }
456
-      console.log('第二个', sch_ids)
457
-      this.$store.dispatch('SetBatchPrintDialysisRecordIDs', sch_ids)
579
+      console.log("第二个", sch_ids);
580
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
458 581
       if (this.template_id == 2 || this.template_id == 0) {
459
-        this.$router.push({ path: '/dialysis/print/batch/otherone' })
582
+        this.$router.push({ path: "/dialysis/print/batch/otherone" });
460 583
       } else if (this.template_id == 1) {
461
-        this.$router.push({ path: '/dialysis/print/batch' })
584
+        this.$router.push({ path: "/dialysis/print/batch" });
462 585
       } else if (this.template_id == 5) {
463
-        this.$router.push({ path: '/dialysis/print/batch/fiveone' })
586
+        this.$router.push({ path: "/dialysis/print/batch/fiveone" });
464 587
       }
465 588
     },
466 589
     batchPrintActionTwo: function() {
467
-      var sch_ids = []
590
+      var sch_ids = [];
468 591
       for (let index = 0; index < this.selecting_schs.length; index++) {
469
-        sch_ids.push(this.selecting_schs[index].sch_id)
592
+        sch_ids.push(this.selecting_schs[index].sch_id);
470 593
       }
471
-      this.$store.dispatch('SetBatchPrintDialysisRecordIDs', sch_ids)
594
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
472 595
       if (this.template_id == 2 || this.template_id == 0) {
473
-        this.$router.push({ path: '/dialysis/print/batch/othertwo' })
596
+        this.$router.push({ path: "/dialysis/print/batch/othertwo" });
474 597
       } else if (this.template_id == 1) {
475
-        this.$router.push({ path: '/dialysis/print/batch' })
598
+        this.$router.push({ path: "/dialysis/print/batch" });
476 599
       } else if (this.template_id == 5) {
477
-        this.$router.push({ path: '/dialysis/print/batch/fivetwo' })
600
+        this.$router.push({ path: "/dialysis/print/batch/fivetwo" });
478 601
       }
479 602
     }
480 603
   },
481 604
   components: {
482 605
     BreadCrumb
483 606
   }
484
-}
607
+};
485 608
 </script>
486 609
 
487 610
 <style rel="stylesheet/scss" lang="scss" scoped>
488 611
 .app-container {
489
-//   margin: 20px;
612
+  //   margin: 20px;
490 613
   font-size: 15px;
491 614
   .filter-container {
492 615
     padding-bottom: 5px;

Разница между файлами не показана из-за своего большого размера
+ 1068 - 806
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue


+ 13 - 3
src/xt_pages/dialysis/dialysisPrintOrder.vue Просмотреть файл

@@ -56,7 +56,7 @@
56 56
 
57 57
       <DialysisPrintOrderSix v-bind:childResponse="childResponse" v-if="org_template_info.template_id == 6 "> </DialysisPrintOrderSix>
58 58
 
59
-      <DialysisPrintOrderSeven v-bind:childResponse="childResponse" v-if="org_template_info.template_id == 7 "> </DialysisPrintOrderSeven>
59
+      <DialysisPrintOrderSeven v-bind:childResponse="childResponse" v-if="org_template_info.template_id == 7"> </DialysisPrintOrderSeven>
60 60
 
61 61
 
62 62
     </div>
@@ -250,7 +250,16 @@
250 250
             scanStyles: false
251 251
           })
252 252
         }
253
-      },printThisOnePage() {
253
+        else if (this.org_template_info.template_id == 7 ) {
254
+          printJS({
255
+            printable: 'dialysis-print-box',
256
+            type: 'html',
257
+            style: style,
258
+            scanStyles: false
259
+          })
260
+        }
261
+      },
262
+      printThisOnePage() {
254 263
         var ptime = Math.round(new Date().getTime() / 1000)
255 264
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
256 265
 
@@ -272,7 +281,8 @@
272 281
             scanStyles: false
273 282
           })
274 283
         }
275
-      },printThisTwoPage() {
284
+      },
285
+      printThisTwoPage() {
276 286
         var ptime = Math.round(new Date().getTime() / 1000)
277 287
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
278 288
 

+ 437 - 75
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue Просмотреть файл

@@ -17,7 +17,7 @@
17 17
                   >姓名:{{ patientInfo.name }}</span
18 18
                 >
19 19
                 <span style="flex:1;margin-left:15px;"
20
-                  >年龄:{{ patientInfo.age }}</span
20
+                  >年龄:{{ getAge(patientInfo) }}</span
21 21
                 >
22 22
                 <span style="flex:1;margin-left:15px;"
23 23
                   >性别:{{ patientInfo.gender }}</span
@@ -25,7 +25,7 @@
25 25
                 <span style="flex:1;margin-left:15px;"
26 26
                   >透析机号:{{ patientInfo.dialysis_no }}</span
27 27
                 >
28
-                <span style="flex:1;margin-left:15px;">第()透析</span>
28
+                <span style="flex:1;margin-left:15px;">第({{total}}透析</span>
29 29
               </div>
30 30
             </td>
31 31
           </tr>
@@ -36,22 +36,22 @@
36 36
               >
37 37
               <div style="display:inline-block;">
38 38
                 <label-box
39
-                  :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
39
+                  :isChecked="receiverTreatmentAccess.consciousness == 1 ? true : false"
40 40
                   showValue="清醒"
41 41
                 ></label-box>
42 42
                 &nbsp;
43 43
                 <label-box
44
-                  :isChecked="receiverTreatmentAccess.way == 2 ? true : false"
44
+                  :isChecked="receiverTreatmentAccess.consciousness == 2 ? true : false"
45 45
                   showValue="嗜睡"
46 46
                 ></label-box>
47 47
                 &nbsp;
48 48
                 <label-box
49
-                  :isChecked="receiverTreatmentAccess.way == 3 ? true : false"
49
+                  :isChecked="receiverTreatmentAccess.consciousness == 3 ? true : false"
50 50
                   showValue="模糊"
51 51
                 ></label-box>
52 52
                 &nbsp;
53 53
                 <label-box
54
-                  :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
54
+                  :isChecked="receiverTreatmentAccess.consciousness == 4 ? true : false"
55 55
                   showValue="昏迷"
56 56
                 ></label-box>
57 57
               </div>
@@ -66,42 +66,42 @@
66 66
               >治疗方式:</span
67 67
             >
68 68
             <label-box
69
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
69
+              :isChecked="schedule.mode_id == 1 ? true : false"
70 70
               showValue="HD"
71 71
             ></label-box>
72 72
             &nbsp;
73 73
             <label-box
74
-              :isChecked="receiverTreatmentAccess.way == 2 ? true : false"
74
+              :isChecked="schedule.mode_id == 2 ? true : false"
75 75
               showValue="HDF"
76 76
             ></label-box>
77 77
             &nbsp;
78 78
             <label-box
79
-              :isChecked="receiverTreatmentAccess.way == 3 ? true : false"
79
+              :isChecked="schedule.mode_id == 4 ? true : false"
80 80
               showValue="HP"
81 81
             ></label-box>
82 82
             &nbsp;
83 83
             <label-box
84
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
84
+              :isChecked="schedule.mode_id == 3 ? true : false"
85 85
               showValue="HD+HP"
86 86
             ></label-box>
87 87
             &nbsp; ( &nbsp;
88 88
             <label-box
89
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
89
+              :isChecked="displace_liqui == 1 ? true : false"
90 90
               showValue="前稀释"
91 91
             ></label-box>
92 92
             &nbsp;
93 93
             <label-box
94
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
94
+              :isChecked="displace_liqui == 2 ? true : false"
95 95
               showValue="后稀释"
96 96
             ></label-box
97
-            >, 置换量:2L &nbsp;
97
+            >, 置换量:{{replacement_total}}L &nbsp;
98 98
             <label-box
99
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
99
+              :isChecked="displace_liqui == 0? true : false"
100 100
               showValue="其它"
101 101
             ></label-box>
102 102
             &nbsp;)
103 103
           </td>
104
-          <td><span>治疗时间:2小时8分</span></td>
104
+          <td><span>治疗时间:{{actual_treatment_hour}}小时{{actual_treatment_minute}}分</span></td>
105 105
         </tr>
106 106
       </table>
107 107
 
@@ -112,23 +112,38 @@
112 112
               >治疗抗凝:</span
113 113
             >
114 114
             <label-box
115
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
115
+              :isChecked="anticoagulant== 3 ? true : false"
116 116
               showValue="低分子肝素:"
117 117
             ></label-box>
118
-            U;nbsp;
118
+            &nbsp;
119 119
             <label-box
120
-              :isChecked="receiverTreatmentAccess.way == 2 ? true : false"
120
+              :isChecked="anticoagulant==2 ? true : false"
121 121
               showValue="普通肝素:"
122 122
             ></label-box>
123
-            &nbsp;首剂 90 mg &nbsp;追加 20mg/h 总量 100 mg; &nbsp;
123
+            &nbsp;首剂 {{anticoagulant_shouji}}
124
+            <span v-if="anticoagulant==4">mg</span>
125
+            <span v-if="anticoagulant==3">iu</span>
126
+            <span v-if="anticoagulant==2">iu</span>
127
+            <span v-if="anticoagulant==1">mg</span>&nbsp;
128
+              维持 {{anticoagulant_weichi}}
129
+            <span v-if="anticoagulant == 5">ml/h</span>
130
+            <span v-if="anticoagulant == 4">mg/h</span>
131
+            <span v-if="anticoagulant == 3">iu/h</span>
132
+            <span v-if="anticoagulant == 2">iu/h</span>
133
+            <span v-if="anticoagulant == 1">mg/h</span>
134
+            &nbsp; 总量 {{anticoagulant_zongliang}}
135
+            <span v-if="anticoagulant == 4">mg</span>
136
+            <span v-if="anticoagulant == 3">iu</span>
137
+            <span v-if="anticoagulant == 2">iu</span>
138
+            <span v-if="anticoagulant == 1">mg</span>; &nbsp;
124 139
             <label-box
125
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
140
+              :isChecked="anticoagulant == 1 ? true : false"
126 141
               showValue="无肝素"
127 142
             ></label-box>
128 143
             &nbsp;
129 144
             <label-box
130
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
131
-              showValue="枸橼酸"
145
+              :isChecked="anticoagulant == 5 ? true : false"
146
+              showValue="枸橼酸"
132 147
             ></label-box>
133 148
           </td>
134 149
         </tr>
@@ -138,17 +153,17 @@
138 153
         <tr>
139 154
           <td style="text-align:left;">
140 155
             <span style="display:inline-block;margin-left:15px;"
141
-              >处方脱水量:200ml</span
156
+              >处方脱水量:{{target_ultrafiltration}}ml</span
142 157
             >&nbsp;
143 158
             <span style="display:inline-block;margin-left:15px;"
144
-              >透析液流量:2ml/h</span
159
+              >透析液流量:{{dialysate_flow}}ml/h</span
145 160
             >&nbsp;
146 161
             <span style="display:inline-block;margin-left:15px;"
147
-              >血流量:2ml/min</span
162
+              >血流量:{{blood_flow_volume}}ml/min</span
148 163
             >&nbsp;
149 164
           </td>
150 165
           <td>
151
-            <span>医生签名:小白兔</span>
166
+            <span>医生签名:{{doctor}}</span>
152 167
           </td>
153 168
         </tr>
154 169
       </table>
@@ -156,35 +171,29 @@
156 171
       <table class="print-table" border="1">
157 172
         <tr>
158 173
           <td style="text-align:left;"><span style="display:inline-block;margin-left:15px;"
159
-              >透析机:200ml</span</td>
174
+              >透析机:{{bed}}</span</td>
160 175
           <td style="text-align:left;"><span style="display:inline-block;margin-left:15px;"
161
-              >透析(滤)器:200ml</span</td></td>
162
-        </tr>
163
-      </table>
164
-      <table class="print-table" border="1">
165
-        <tr>
166
-         <td style="text-align:left;">
176
+              >透析(滤)器:{{dialyzer_perfusion_apparatus}}</span</td></td>
177
+               <td style="text-align:left;">
167 178
             <span style="display:inline-block;margin-left:15px;"
168
-              >透析液:</span
179
+              >透析液(mmol/L):</span
169 180
             >
170
-             <label-box
171
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
172
-              showValue="低钙:"
173
-            ></label-box>&nbsp;
174
-            <label-box
175
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
176
-              showValue="高钙:"
177
-            ></label-box>&nbsp;
178
-             <label-box
179
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
180
-              showValue="低钠:"
181
-            ></label-box>&nbsp;
182
-             <label-box
183
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
184
-              showValue="高钠:"
185
-            ></label-box>&nbsp;
181
+            <span v-if="dialysate_formulation == 2">
182
+              低钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
183
+            </span>
184
+             <span v-if="dialysate_formulation == 3">
185
+              高钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
186
+            </span>
187
+             <span v-if="dialysate_formulation == 4">
188
+              低钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
189
+            </span>
190
+             <span v-if="dialysate_formulation == 5">
191
+              高钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
192
+            </span>
186 193
          </td>
187 194
         </tr>
195
+      </table>
196
+      <table class="print-table" border="1">
188 197
          <tr>
189 198
           <td style="text-align:left;">
190 199
               <span style="display:inline-block;margin-left:15px;"
@@ -192,26 +201,26 @@
192 201
             >
193 202
             &nbsp;
194 203
              <label-box
195
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
204
+              :isChecked="blood_access_part_opera_id == 14 ? true : false"
196 205
               showValue="内瘘"
197 206
             ></label-box>
198 207
              &nbsp;
199 208
              <label-box
200
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
209
+              :isChecked="blood_access_part_opera_id == 17 || blood_access_part_opera_id == 18 ? true : false"
201 210
               showValue="长期静脉导管"
202 211
             ></label-box>
203 212
             </label-box>
204 213
              &nbsp;
205 214
              <label-box
206
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
215
+              :isChecked="blood_access_part_opera_id == 17 || blood_access_part_opera_id == 18 ? true : false"
207 216
               showValue="临时(颈、股)静脉导管"
208 217
             ></label-box>
209 218
                &nbsp;
210 219
              <label-box
211
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
220
+              :isChecked="blood_access_part_opera_id >= 17 ? true : false"
212 221
               showValue="其它"
213 222
             ></label-box>
214
-            &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:</span>
223
+            &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:{{nurse}}</span>
215 224
           </td>
216 225
         </tr>
217 226
         <tr>
@@ -221,9 +230,9 @@
221 230
       <table class="print-table" border="1">
222 231
          <tr>
223 232
           <th rowspan="2">时间</th>
224
-          <th>透析参数</th>
225
-          <th colspan="7">生命体征</th>
226
-          <th colspan="2">治疗中病情变化</th>
233
+          <th colspan="3">透析参数</th>
234
+          <th colspan="6">生命体征</th>
235
+          <th>病情变化及处理</th>
227 236
          </tr>
228 237
          <tr>
229 238
           <td>TMP(mmHg)</td>
@@ -234,10 +243,135 @@
234 243
           <td>HR(bpm)</td>
235 244
           <td>R(bpm)</td>
236 245
           <td>BP(mmHg)</td>
237
-          <td>SpO2</td>
238
-          <td>时间</td>
246
+          <td>SpO₂(%)</td>
239 247
           <td>记录</td>
240 248
          </tr>
249
+         <tr v-for="(monitor, monindex) in this.monitor" :key="monindex">
250
+           <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
251
+           <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:""}}</td>
252
+           <td>{{monitor.venous_pressure?monitor.venous_pressure:""}}</td>
253
+           <td>{{monitor.blood_flow_volume ? monitor.blood_flow_volume:""}}</td>
254
+           <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:""}}</td>
255
+           <td> {{
256
+                 monitor.temperature
257
+                ? monitor.temperature
258
+                : ""
259
+                }}</td>
260
+           <td>{{monitor.pulse_frequency?monitor.pulse_frequency:""}}</td>
261
+           <td>{{monitor.breathing_rate?monitor.breathing_rate:""}}</td>
262
+           <td>{{
263
+                monitor.systolic_blood_pressure
264
+                ? monitor.systolic_blood_pressure + "/"
265
+                : ""
266
+                }}{{
267
+               monitor.diastolic_blood_pressure
268
+              ? monitor.diastolic_blood_pressure
269
+              : ""
270
+              }}</td>
271
+           <td></td>
272
+           <td style="line-height:16px;padding:0px;">
273
+              {{ monitor.end }}
274
+              {{ monitor.symptom }} &nbsp;{{monitor.dispose}} &nbsp;{{ monitor.result }}
275
+            </td>
276
+         </tr>
277
+      </table>
278
+      <table class="print-table" border="1">
279
+        <tr>
280
+         <td>时间</td>
281
+         <td>医嘱执行记录</td>
282
+         <td>执行</td>
283
+         <td>核对</td>
284
+         <td>上次透后体重</td>
285
+         <td> {{
286
+                predialysis.weight_after_last_transparency
287
+                ? parseFloat(
288
+                 predialysis.weight_after_last_transparency -
289
+                 predialysis.additional_weight
290
+                  ).toFixed(1)
291
+                 : "未称重"
292
+              }}kg</td>
293
+        </tr>
294
+        <tr  v-for="(advice, advice_index) in tableAdvice"
295
+                      :key="advice_index">
296
+         <td>{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</td>
297
+         <td>
298
+           <span v-if="advice.parent_id > 0">---></span>
299
+            <span>{{ advice.advice_name }}</span>
300
+            <span v-if="advice && advice.advice_desc"
301
+                >({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
302
+                    <span v-if="advice.prescribing_number">
303
+                       &nbsp;&nbsp; {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}</span>
304
+                        <span v-if="advice.single_dose != 0">
305
+                          {{ advice.single_dose}}{{ advice.single_dose_unit }}</span>
306
+                         <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
307
+                        <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
308
+                        <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span></td>
309
+               <td>
310
+              <span
311
+               v-if="setAdminUserES(advice.advice_doctor) == ''"
312
+               >{{ getAdminUser(advice.advice_doctor) }}</span
313
+               >
314
+              <img
315
+               style="height:20px;"
316
+               :src="setAdminUserES(advice.advice_doctor)"
317
+               alt=""
318
+              srcset=""
319
+              v-else
320
+            />
321
+         </td>
322
+         <td>
323
+           <span
324
+               v-if="setAdminUserES(advice.execution_staff) == ''"
325
+               >{{ getAdminUser(advice.execution_staff) }}</span
326
+               >
327
+              <img
328
+               style="height:20px;"
329
+               :src="setAdminUserES(advice.execution_staff)"
330
+               alt=""
331
+              srcset=""
332
+              v-else
333
+            />
334
+         </td>
335
+         <td v-if="advice_index==0">透前体重</td>
336
+         <td v-if="advice_index==0">{{weight_before}}kg</td>
337
+         <td v-if="advice_index==1">体重增加量</td>
338
+         <td v-if="advice_index==1">{{weight_gain}}kg</td>
339
+         <td v-if="advice_index==2">干体重(DW)</td>
340
+         <td v-if="advice_index==2">{{dry_weight}}kg</td>
341
+         <td v-if="advice_index==3">较干体重增加量</td>
342
+         <td v-if="advice_index==3">{{weight_gain}}kg</td>
343
+         <td v-if="advice_index==4">净脱水量</td>
344
+         <td v-if="advice_index==4">{{actual_ultrafiltration}}kg</td>
345
+         <td v-if="advice_index==5">透后体重</td>
346
+         <td v-if="advice_index==5">{{weight_after}}kg</td>
347
+         <td v-if="advice_index==6">本次透析体重下降量</td>
348
+         <td v-if="advice_index==6">{{weightloss_after}}kg</td>
349
+        </tr>
350
+        <tr>
351
+          <td colspan="6" style="text-align:left;min-height:20px">
352
+             <span>治疗小结:{{mission}}{{dialysis_summary}}</span>
353
+          </td>
354
+        </tr>
355
+      </table>
356
+      <table class="print-table" border="1">
357
+        <tr>
358
+          <td style="text-align:left;">
359
+           <span v-if="doctorForm.url === ''">
360
+             医师签名:{{doctorForm.doctor}}
361
+           </span>
362
+           <span v-if="doctorForm.url!==''">
363
+              医师签名:
364
+              <img style="height:20px" :src="doctorForm.url">
365
+           </span>
366
+           &nbsp;&nbsp;&nbsp;&nbsp;
367
+           <span v-if="orderForm.url === ''">
368
+             护士签名:{{orderForm.start_nurse}}
369
+            </span>
370
+            <span v-if="orderForm.url !==''" >
371
+              护士签名:<img :src="orderForm.url" style="height:20px;">
372
+            </span>
373
+          </td>
374
+        </tr>
241 375
       </table>
242 376
     </div>
243 377
   </div>
@@ -338,6 +472,7 @@ export default {
338 472
 
339 473
       doctor_advices: [],
340 474
       advice_groups: [],
475
+      schedule: [],
341 476
 
342 477
       AlPanel: {
343 478
         id: 0,
@@ -353,7 +488,56 @@ export default {
353 488
         zongliang_unit: 'mg',
354 489
         gaimingcheng_unit: '',
355 490
         gaijiliang_unit: ''
356
-      }
491
+      },
492
+      list: 5,
493
+      replacement_total: '',
494
+      actual_treatment_hour: '',
495
+      actual_treatment_minute: '',
496
+      anticoagulant: '',
497
+      anticoagulant_shouji: '',
498
+      anticoagulant_zongliang: '',
499
+      prescription_dewatering: '',
500
+      blood_flow_volume: '',
501
+      dialysate_flow: '',
502
+      bed: '',
503
+      dialyzer_perfusion_apparatus: '',
504
+      dialysate_formulation: '',
505
+      blood_access: '',
506
+      doctor: '',
507
+      nurse: '',
508
+      doctorAdvice: [],
509
+      total: '',
510
+      weight_before: '',
511
+      dry_weight: '',
512
+      weight_after: '',
513
+      weightloss_after: '',
514
+      actual_ultrafiltration: '',
515
+      temperature: '',
516
+      systolic_blood_pressure: '',
517
+      diastolic_blood_pressure: '',
518
+      mission: '',
519
+      dialysis_summary: '',
520
+      orderForm: {
521
+        start_nurse: '',
522
+        url: ''
523
+      },
524
+      doctorForm: {
525
+        doctor: '',
526
+        url: ''
527
+      },
528
+      tableAdvice: [],
529
+      monitor: [],
530
+      displace_liqui: '',
531
+      kalium: '',
532
+      sodium: '',
533
+      calcium: '',
534
+      weight_gain: '',
535
+      afterWeightLast: '',
536
+      anticoagulant_weichi: '',
537
+      target_ultrafiltration: '',
538
+      blood_access_internal_fistula: '',
539
+      venous_catheterization: '',
540
+      blood_access_part_opera_id: ''
357 541
     }
358 542
   },
359 543
   methods: {
@@ -384,6 +568,12 @@ export default {
384 568
       }
385 569
       return ''
386 570
     },
571
+    getTimes(time) {
572
+      if (time === '') {
573
+        return ''
574
+      }
575
+      return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
576
+    },
387 577
     printThisPage() {
388 578
       var ptime = Math.round(new Date().getTime() / 1000)
389 579
       this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
@@ -465,10 +655,19 @@ export default {
465 655
       this.loading = true
466 656
 
467 657
       getDialysisRecord(this.queryParams).then(response => {
468
-        if (response.data.state == 1) {
658
+        if (response.data.state === 1) {
469 659
           this.adminUser = response.data.data.users
470 660
           this.users = response.data.data.users
661
+          var patientInfo = response.data.data.patientInfo
662
+          if (patientInfo.gender === 1) {
663
+            patientInfo.gender = '男'
664
+          }
665
+          if (patientInfo.gender === 2) {
666
+            patientInfo.gender = '女'
667
+          }
471 668
           this.patientInfo = response.data.data.patientInfo
669
+          console.log('透析记录', this.patientInfo)
670
+
472 671
           this.patientInfo.birth = uParseTime(
473 672
             this.patientInfo.birthday,
474 673
             '{y}-{m}-{d}'
@@ -483,12 +682,135 @@ export default {
483 682
             this.patientInfo.first_dialysis_date = ''
484 683
           }
485 684
           this.check = response.data.data.check
486
-          this.predialysis = response.data.data.PredialysisEvaluation
685
+          var predialysis = response.data.data.PredialysisEvaluation
686
+          this.weight_before = predialysis.weight_before
687
+          this.dry_weight = predialysis.dry_weight
688
+          this.weight_gain = predialysis.weight_gain
689
+          this.blood_access_internal_fistula = predialysis.blood_access_internal_fistula
690
+          this.venous_catheterization = predialysis.venous_catheterization
691
+          this.blood_access_part_opera_id = predialysis.blood_access_part_opera_id
692
+          this.predialysis = predialysis
693
+          console.log('透前评估', this.predialysis)
694
+
487 695
           this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
488 696
             this.predialysis.blood_access_part_opera_id
489 697
           )
490
-          this.afterdialysis = response.data.data.AssessmentAfterDislysis
491
-          this.operators = response.data.data.operators
698
+          var afterdialysis = response.data.data.AssessmentAfterDislysis
699
+          // eslint-disable-next-line no-undef
700
+          console.log('透后评估', afterdialysis)
701
+          this.weight_after = afterdialysis.weight_after
702
+          this.weightloss_after = afterdialysis.weight_after
703
+          this.temperature = afterdialysis.temperature
704
+          this.actual_ultrafiltration = afterdialysis.actual_ultrafiltration
705
+          this.actual_treatment_hour = afterdialysis.actual_treatment_hour
706
+          this.actual_treatment_minute = afterdialysis.actual_treatment_minute
707
+          this.systolic_blood_pressure = afterdialysis.systolic_blood_pressure
708
+          this.diastolic_blood_pressure = afterdialysis.diastolic_blood_pressure
709
+          this.afterdialysis = afterdialysis
710
+          var doctoradvce = response.data.data.doctorAdvice
711
+          var doctorAdevieInfo = response.data.data.doctorAdevieInfo
712
+          var tableAdvice = doctorAdevieInfo
713
+          if (tableAdvice.length === 0) {
714
+            var obj = { 'advice_name': '', start_time: '' }
715
+            var obj1 = { 'advice_name': '', start_time: '' }
716
+            var obj2 = { 'advice_name': '', start_time: '' }
717
+            var obj3 = { 'advice_name': '', start_time: '' }
718
+            var obj4 = { 'advice_name': '', start_time: '' }
719
+            var obj5 = { 'advice_name': '', start_time: '' }
720
+            var obj6 = { 'advice_name': '', start_time: '' }
721
+            tableAdvice.push(obj)
722
+            tableAdvice.push(obj1)
723
+            tableAdvice.push(obj2)
724
+            tableAdvice.push(obj3)
725
+            tableAdvice.push(obj4)
726
+            tableAdvice.push(obj5)
727
+            tableAdvice.push(obj6)
728
+            this.tableAdvice = tableAdvice
729
+          }
730
+          if (tableAdvice.length === 1) {
731
+            var obj = { 'advice_name': '', start_time: '' }
732
+            var obj1 = { 'advice_name': '', start_time: '' }
733
+            var obj2 = { 'advice_name': '', start_time: '' }
734
+            var obj3 = { 'advice_name': '', start_time: '' }
735
+            var obj4 = { 'advice_name': '', start_time: '' }
736
+            var obj5 = { 'advice_name': '', start_time: '' }
737
+            tableAdvice.push(obj)
738
+            tableAdvice.push(obj1)
739
+            tableAdvice.push(obj2)
740
+            tableAdvice.push(obj3)
741
+            tableAdvice.push(obj4)
742
+            tableAdvice.push(obj5)
743
+            this.tableAdvice = tableAdvice
744
+            console.log('零食医嘱', doctorAdevieInfo)
745
+          }
746
+          if (tableAdvice.length === 2) {
747
+            var obj = { 'advice_name': '', start_time: '' }
748
+            var obj1 = { 'advice_name': '', start_time: '' }
749
+            var obj2 = { 'advice_name': '', start_time: '' }
750
+            var obj3 = { 'advice_name': '', start_time: '' }
751
+            var obj4 = { 'advice_name': '', start_time: '' }
752
+            tableAdvice.push(obj)
753
+            tableAdvice.push(obj1)
754
+            tableAdvice.push(obj2)
755
+            tableAdvice.push(obj3)
756
+            tableAdvice.push(obj4)
757
+            this.tableAdvice = tableAdvice
758
+            console.log('零食医嘱', doctorAdevieInfo)
759
+          }
760
+          if (tableAdvice.length === 3) {
761
+            var obj = { 'advice_name': '', start_time: '' }
762
+            var obj1 = { 'advice_name': '', start_time: '' }
763
+            var obj2 = { 'advice_name': '', start_time: '' }
764
+            var obj3 = { 'advice_name': '', start_time: '' }
765
+
766
+            tableAdvice.push(obj)
767
+            tableAdvice.push(obj1)
768
+            tableAdvice.push(obj2)
769
+            tableAdvice.push(obj3)
770
+
771
+            this.tableAdvice = tableAdvice
772
+            console.log('零食医嘱', doctorAdevieInfo)
773
+          }
774
+          if (tableAdvice.length === 4) {
775
+            var obj = { 'advice_name': '', start_time: '' }
776
+            var obj1 = { 'advice_name': '', start_time: '' }
777
+            var obj2 = { 'advice_name': '', start_time: '' }
778
+
779
+            tableAdvice.push(obj)
780
+            tableAdvice.push(obj1)
781
+            tableAdvice.push(obj2)
782
+            this.tableAdvice = tableAdvice
783
+            console.log('零食医嘱', doctorAdevieInfo)
784
+          }
785
+          if (tableAdvice.length === 5) {
786
+            var obj = { 'advice_name': '', start_time: '' }
787
+            var obj1 = { 'advice_name': '', start_time: '' }
788
+            tableAdvice.push(obj)
789
+            tableAdvice.push(obj1)
790
+            this.tableAdvice = tableAdvice
791
+            console.log('零食医嘱', doctorAdevieInfo)
792
+          }
793
+          if (tableAdvice.length === 6) {
794
+            var obj = { 'advice_name': '', start_time: '' }
795
+            tableAdvice.push(obj)
796
+            this.tableAdvice = tableAdvice
797
+            console.log('零食医嘱', doctorAdevieInfo)
798
+          }
799
+          if (tableAdvice.length >= 7) {
800
+            this.tableAdvice = tableAdvice
801
+          }
802
+          var doctor = response.data.data.doctor
803
+          this.doctor = doctor.user_name
804
+          console.log('医生', doctor)
805
+          var nurse = response.data.data.nurse
806
+          this.nurse = nurse.user_name
807
+          console.log('穿刺护士', nurse)
808
+          var operators = response.data.data.operators
809
+          console.log('operators', operators)
810
+          var total = response.data.data.total
811
+          console.log('total', total)
812
+          this.total = total
813
+          this.operators = operators
492 814
           this.dialysisOrder =
493 815
             response.data.data.dialysisOrder === null
494 816
               ? null
@@ -551,10 +873,46 @@ export default {
551 873
             ','
552 874
           )
553 875
 
554
-          this.prescription = response.data.data.dialysisPrescription
555
-          this.receiverTreatmentAccess =
556
-            response.data.data.receiverTreatmentAccess
557
-
876
+          var prescription = response.data.data.dialysisPrescription
877
+          this.prescription = prescription
878
+          var schedule = response.data.data.schedule
879
+          // console.log('排班', schedule)
880
+          this.schedule = schedule
881
+          var receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
882
+          // console.log('接诊评估', receiverTreatmentAccess)
883
+          this.receiverTreatmentAccess = receiverTreatmentAccess
884
+          var dialysisway = response.data.data.dialysisway
885
+          console.log('透析处方2', dialysisway)
886
+          this.target_ultrafiltration = dialysisway.target_ultrafiltration
887
+          var order = response.data.data.order
888
+          // console.log('上下机', order)
889
+          var start_nurse = response.data.data.startNuse
890
+          // console.log('上机护士', start_nurse)
891
+          this.orderForm.start_nurse = start_nurse.user_name
892
+          this.orderForm.url = start_nurse.url
893
+          var doctorname = response.data.data.DoctorName
894
+          // console.log('医师签名', doctorname)
895
+          this.doctorForm.doctor = doctorname.user_name
896
+          this.doctorForm.url = doctorname.url
897
+          this.bed = order.number
898
+          this.replacement_total = dialysisway.replacement_total
899
+          this.anticoagulant = dialysisway.anticoagulant
900
+          this.anticoagulant_shouji = dialysisway.anticoagulant_shouji
901
+          this.anticoagulant_zongliang = dialysisway.anticoagulant_zongliang
902
+          this.prescription_dewatering = dialysisway.prescription_dewatering
903
+          this.blood_flow_volume = dialysisway.blood_flow_volume
904
+          this.dialysate_flow = dialysisway.dialysate_flow
905
+          this.dialyzer_perfusion_apparatus = dialysisway.dialyzer_perfusion_apparatus
906
+          this.dialysate_formulation = dialysisway.dialysate_formulation
907
+          this.blood_access = dialysisway.blood_access
908
+          this.displace_liqui = dialysisway.displace_liqui
909
+          this.kalium = dialysisway.kalium
910
+          this.sodium = dialysisway.sodium
911
+          this.calcium = dialysisway.calcium
912
+          this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
913
+          var afterWeightLast = response.data.data.assessmentAfterDislysis
914
+          // console.log('上次透后体重', afterWeightLast)
915
+          this.afterWeightLast = afterWeightLast.weight_after
558 916
           this.prescription.mode = this.modeName(this.prescription.mode_id)
559 917
           var rwLen = this.replacementWays.length
560 918
           this.prescription.replacement = ''
@@ -599,10 +957,17 @@ export default {
599 957
             ].name
600 958
             this.AlPanel = this.anticoagulantsConfit[thisALID]
601 959
           }
602
-
603 960
           this.advices = response.data.data.advices
961
+
962
+          var monitor = response.data.data.monitor
963
+          this.monitor = monitor
964
+          console.log('monitor', monitor)
604 965
           this.monitors = response.data.data.monitors
605
-          this.summary = response.data.data.summary
966
+
967
+          var summary = response.data.data.summary
968
+          console.log('透析小结', summary)
969
+          this.mission = summary.mission
970
+          this.dialysis_summary = summary.dialysis_summary
606 971
           this.org_template_info = response.data.data.org_template_info
607 972
           if (this.monitors.length < 8) {
608 973
             var nl = 8 - this.monitors.length
@@ -668,10 +1033,7 @@ export default {
668 1033
           }
669 1034
           this.loading = false
670 1035
 
671
-          this.doctor_advices =
672
-            response.data.data.advices == null
673
-              ? []
674
-              : response.data.data.advices
1036
+          this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices
675 1037
 
676 1038
           for (let index = 0; index < this.doctor_advices.length; index++) {
677 1039
             this.doctor_advices[index]['isShow'] = 2

+ 263 - 260
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Просмотреть файл

@@ -116,7 +116,10 @@
116 116
         </div>
117 117
         <div class="inline_block" style="margin-left: 10px;">
118 118
           诊断:
119
-          <div class="under_line" style="width: 640px;text-align: left;word-wrap: break-word;white-space: inherit;" >
119
+          <div
120
+            class="under_line"
121
+            style="width: 640px;text-align: left;word-wrap: break-word;white-space: inherit;"
122
+          >
120 123
             {{ patientInfo.diagnose }}
121 124
           </div>
122 125
         </div>
@@ -1056,6 +1059,7 @@
1056 1059
                       <td style="font-size: 16px" width="10%">时间</td>
1057 1060
                     </tr>
1058 1061
                     <!-- <template v-for="group in doctor_advices" > -->
1062
+
1059 1063
                     <tr
1060 1064
                       v-for="(advice, advice_index) in doctor_advices"
1061 1065
                       :key="advice_index"
@@ -1909,34 +1913,34 @@ export default {
1909 1913
       nutrition_arr: [],
1910 1914
 
1911 1915
       crumbs: [
1912
-        { path: false, name: '透析管理' },
1913
-        { path: false, name: '打印单' }
1916
+        { path: false, name: "透析管理" },
1917
+        { path: false, name: "打印单" }
1914 1918
       ],
1915 1919
       operators: [],
1916 1920
       adminUser: [],
1917 1921
       check: {},
1918
-      xtdate: '',
1922
+      xtdate: "",
1919 1923
       dialysisOrder: {
1920 1924
         DeviceNumber: []
1921 1925
       },
1922 1926
       displaceLiquiPartOptions: [],
1923 1927
       operatorMaps: {},
1924 1928
       complications: [
1925
-        '低血压',
1926
-        '高血压',
1927
-        '心律失常',
1928
-        '头晕',
1929
-        '头痛',
1930
-        '呕吐',
1931
-        '抽搐',
1932
-        '出血',
1933
-        '心衰',
1934
-        '腹痛'
1929
+        "低血压",
1930
+        "高血压",
1931
+        "心律失常",
1932
+        "头晕",
1933
+        "头痛",
1934
+        "呕吐",
1935
+        "抽搐",
1936
+        "出血",
1937
+        "心衰",
1938
+        "腹痛"
1935 1939
       ],
1936 1940
       jilurow: 0,
1937 1941
       advice_jilurow: 0,
1938 1942
       loading: false,
1939
-      orgname: '',
1943
+      orgname: "",
1940 1944
       patientInfo_gender_1: false,
1941 1945
       patientInfo_gender_2: false,
1942 1946
       patientInfo_source_2: false,
@@ -1949,30 +1953,30 @@ export default {
1949 1953
       dialysateFormulationOptions: {},
1950 1954
       totollength: 0,
1951 1955
       queryParams: {
1952
-        xtdate: '',
1953
-        xtno: ''
1956
+        xtdate: "",
1957
+        xtno: ""
1954 1958
       },
1955 1959
       patientInfo: {
1956
-        birth: '',
1957
-        age: '',
1960
+        birth: "",
1961
+        age: "",
1958 1962
         DialysisSchedule: {
1959
-          device_number: { number: '' },
1960
-          device_zone: { name: '' }
1963
+          device_number: { number: "" },
1964
+          device_zone: { name: "" }
1961 1965
         },
1962 1966
         gender: 0
1963 1967
       },
1964 1968
       predialysis: {
1965
-        score: '',
1966
-        internal_fistula: '',
1967
-        internal_fistula_skin: '',
1968
-        catheter: '',
1969
-        blood_access_part_opera_name: ''
1969
+        score: "",
1970
+        internal_fistula: "",
1971
+        internal_fistula_skin: "",
1972
+        catheter: "",
1973
+        blood_access_part_opera_name: ""
1970 1974
       },
1971 1975
       afterdialysis: {
1972
-        complications_index: ''
1976
+        complications_index: ""
1973 1977
       },
1974 1978
       prescription: {
1975
-        dialysate_formulation_name: '',
1979
+        dialysate_formulation_name: "",
1976 1980
         device: {}
1977 1981
       },
1978 1982
       advices: [],
@@ -1993,110 +1997,110 @@ export default {
1993 1997
 
1994 1998
       AlPanel: {
1995 1999
         id: 0,
1996
-        name: '',
2000
+        name: "",
1997 2001
         type: 1,
1998 2002
         shouji: 2,
1999 2003
         weichi: 2,
2000 2004
         zongliang: 2,
2001 2005
         gaimingcheng: -1,
2002 2006
         gaijiliang: -1,
2003
-        shouji_unit: 'mg',
2004
-        weichi_unit: 'mg/h',
2005
-        zongliang_unit: 'mg',
2006
-        gaimingcheng_unit: '',
2007
-        gaijiliang_unit: ''
2007
+        shouji_unit: "mg",
2008
+        weichi_unit: "mg/h",
2009
+        zongliang_unit: "mg",
2010
+        gaimingcheng_unit: "",
2011
+        gaijiliang_unit: ""
2008 2012
       }
2009
-    }
2013
+    };
2010 2014
   },
2011 2015
   methods: {
2012 2016
     getDisplaceLiquiPart: function(val) {
2013
-      let displace_liqui_part_name = '/'
2014
-      const displace_liqui_part = this.displaceLiquiPartOptions
2017
+      let displace_liqui_part_name = "/";
2018
+      const displace_liqui_part = this.displaceLiquiPartOptions;
2015 2019
       for (let i = 0; i < displace_liqui_part.length; i++) {
2016 2020
         if (displace_liqui_part[i].id == val) {
2017
-          displace_liqui_part_name = displace_liqui_part[i].name
2021
+          displace_liqui_part_name = displace_liqui_part[i].name;
2018 2022
         }
2019 2023
       }
2020
-      return displace_liqui_part_name
2024
+      return displace_liqui_part_name;
2021 2025
     },
2022 2026
     replacementWaysById: function(val) {
2023
-      let replacementWaysname = '/'
2027
+      let replacementWaysname = "/";
2024 2028
       // let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
2025 2029
 
2026 2030
       for (let i = 0; i < this.replacementWays.length; i++) {
2027 2031
         if (this.replacementWays[i].id == val) {
2028
-          replacementWaysname = this.replacementWays[i].name
2032
+          replacementWaysname = this.replacementWays[i].name;
2029 2033
         }
2030 2034
       }
2031
-      return replacementWaysname
2035
+      return replacementWaysname;
2032 2036
     },
2033 2037
     QueryPartById: function(val) {
2034
-      let vascular_access_part_name = '/'
2035
-      const vascular_access = getDataConfig('hemodialysis', 'vascular_access')
2038
+      let vascular_access_part_name = "/";
2039
+      const vascular_access = getDataConfig("hemodialysis", "vascular_access");
2036 2040
 
2037 2041
       for (let i = 0; i < vascular_access.length; i++) {
2038 2042
         if (vascular_access[i].id == val) {
2039
-          vascular_access_part_name = vascular_access[i].name
2043
+          vascular_access_part_name = vascular_access[i].name;
2040 2044
         }
2041 2045
       }
2042
-      return vascular_access_part_name
2046
+      return vascular_access_part_name;
2043 2047
     },
2044 2048
     getAdminUser(id) {
2045 2049
       if (id == 0) {
2046
-        return ''
2050
+        return "";
2047 2051
       }
2048 2052
       if (id == undefined) {
2049
-        return ''
2053
+        return "";
2050 2054
       }
2051 2055
       for (let i = 0; i < this.adminUser.length; i++) {
2052 2056
         if (this.adminUser[i].id == id) {
2053
-          return this.adminUser[i].name
2057
+          return this.adminUser[i].name;
2054 2058
         }
2055 2059
       }
2056 2060
     },
2057 2061
     getTime(value, temp) {
2058 2062
       if (value == 0) {
2059
-        return ''
2063
+        return "";
2060 2064
       }
2061 2065
       if (value != undefined) {
2062
-        return uParseTime(value, temp)
2066
+        return uParseTime(value, temp);
2063 2067
       }
2064
-      return ''
2068
+      return "";
2065 2069
     },
2066 2070
     getUnit: function(val) {
2067 2071
       switch (val) {
2068 2072
         case 1:
2069
-          return 'g'
2070
-          break
2073
+          return "g";
2074
+          break;
2071 2075
         case 2:
2072
-          return 'ml'
2073
-          break
2076
+          return "ml";
2077
+          break;
2074 2078
       }
2075 2079
     },
2076 2080
     printThisPage() {
2077
-      var ptime = Math.round(new Date().getTime() / 1000)
2078
-      this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
2081
+      var ptime = Math.round(new Date().getTime() / 1000);
2082
+      this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
2079 2083
 
2080 2084
       const style =
2081
-        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
2085
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
2082 2086
 
2083 2087
       if (this.org_template_info.template_id == 1) {
2084 2088
         printJS({
2085
-          printable: 'dialysis-print-box',
2086
-          type: 'html',
2089
+          printable: "dialysis-print-box",
2090
+          type: "html",
2087 2091
           style: style,
2088 2092
           scanStyles: false
2089
-        })
2093
+        });
2090 2094
       } else if (
2091 2095
         this.org_template_info.template_id == 2 ||
2092 2096
         this.org_template_info.template_id == 0
2093 2097
       ) {
2094 2098
         printJS({
2095
-          printable: 'dialysis-print-box-1',
2096
-          type: 'html',
2099
+          printable: "dialysis-print-box-1",
2100
+          type: "html",
2097 2101
           style: style,
2098 2102
           scanStyles: false
2099
-        })
2103
+        });
2100 2104
       }
2101 2105
     },
2102 2106
     getNumber() {
@@ -2104,119 +2108,119 @@ export default {
2104 2108
         return (
2105 2109
           this.patientInfo.DialysisSchedule.device_zone.name +
2106 2110
           this.dialysisOrder.DeviceNumber.number
2107
-        )
2111
+        );
2108 2112
       } else {
2109 2113
         return (
2110 2114
           this.patientInfo.DialysisSchedule.device_zone.name +
2111 2115
           this.patientInfo.DialysisSchedule.device_number.number
2112
-        )
2116
+        );
2113 2117
       }
2114 2118
     },
2115 2119
 
2116 2120
     getXuserName(id) {
2117 2121
       if (id <= 0) {
2118
-        return ''
2122
+        return "";
2119 2123
       }
2120
-      var name = ''
2121
-      if (this.users == null || typeof this.users.length === 'undefined') {
2122
-        return name
2124
+      var name = "";
2125
+      if (this.users == null || typeof this.users.length === "undefined") {
2126
+        return name;
2123 2127
       }
2124
-      var leng = this.users.length
2128
+      var leng = this.users.length;
2125 2129
       if (leng == 0) {
2126
-        return name
2130
+        return name;
2127 2131
       }
2128 2132
       for (let index = 0; index < leng; index++) {
2129 2133
         if (this.users[index].id == id) {
2130
-          name = this.users[index].name
2131
-          break
2134
+          name = this.users[index].name;
2135
+          break;
2132 2136
         }
2133 2137
       }
2134
-      return name
2138
+      return name;
2135 2139
     },
2136 2140
     setAdminUserES(id) {
2137 2141
       if (id == 0) {
2138
-        return ''
2142
+        return "";
2139 2143
       }
2140 2144
       if (id in this.operatorMaps) {
2141
-        return this.operatorMaps[id].url
2145
+        return this.operatorMaps[id].url;
2142 2146
       } else {
2143
-        return ''
2147
+        return "";
2144 2148
       }
2145 2149
     },
2146 2150
     modeName(mode_id) {
2147
-      return typeof this.modeOptions[mode_id] !== 'undefined' &&
2148
-        typeof this.modeOptions[mode_id].name !== 'undefined'
2151
+      return typeof this.modeOptions[mode_id] !== "undefined" &&
2152
+        typeof this.modeOptions[mode_id].name !== "undefined"
2149 2153
         ? this.modeOptions[mode_id].name
2150
-        : ''
2154
+        : "";
2151 2155
     },
2152 2156
     getDialysisRecord() {
2153
-      this.loading = true
2157
+      this.loading = true;
2154 2158
 
2155 2159
       // getDialysisRecord(this.queryParams).then(response => {
2156
-      var response = this.childResponse
2160
+      var response = this.childResponse;
2157 2161
       if (response.data.state == 1) {
2158
-        this.adminUser = response.data.data.users
2162
+        this.adminUser = response.data.data.users;
2159 2163
 
2160
-        this.users = response.data.data.users
2161
-        this.patientInfo = response.data.data.patientInfo
2164
+        this.users = response.data.data.users;
2165
+        this.patientInfo = response.data.data.patientInfo;
2162 2166
 
2163 2167
         this.patientInfo.birth = uParseTime(
2164 2168
           this.patientInfo.birthday,
2165
-          '{y}-{m}-{d}'
2166
-        )
2169
+          "{y}-{m}-{d}"
2170
+        );
2167 2171
         // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
2168 2172
         if (response.data.data.patientInfo.first_dialysis_date != 0) {
2169 2173
           this.patientInfo.first_dialysis_date = uParseTime(
2170 2174
             response.data.data.patientInfo.first_dialysis_date,
2171
-            '{y}-{m}-{d}'
2172
-          )
2175
+            "{y}-{m}-{d}"
2176
+          );
2173 2177
         } else {
2174
-          this.patientInfo.first_dialysis_date = ''
2178
+          this.patientInfo.first_dialysis_date = "";
2175 2179
         }
2176
-        this.check = response.data.data.check
2177
-        this.xtdate = response.data.data.xtdate
2178
-        this.predialysis = response.data.data.PredialysisEvaluation
2180
+        this.check = response.data.data.check;
2181
+        this.xtdate = response.data.data.xtdate;
2182
+        this.predialysis = response.data.data.PredialysisEvaluation;
2179 2183
         this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
2180 2184
           this.predialysis.blood_access_part_opera_id
2181
-        )
2182
-        this.afterdialysis = response.data.data.AssessmentAfterDislysis
2183
-        this.operators = response.data.data.operators
2185
+        );
2186
+        this.afterdialysis = response.data.data.AssessmentAfterDislysis;
2187
+        this.operators = response.data.data.operators;
2184 2188
         this.dialysisOrder =
2185 2189
           response.data.data.dialysisOrder === null
2186 2190
             ? null
2187
-            : response.data.data.dialysisOrder
2191
+            : response.data.data.dialysisOrder;
2188 2192
 
2189 2193
         if (this.operators.length > 0) {
2190
-          var operatorsLen = this.operators.length
2194
+          var operatorsLen = this.operators.length;
2191 2195
           for (var index = 0; index < operatorsLen; index++) {
2192 2196
             this.$set(
2193 2197
               this.operatorMaps,
2194 2198
               this.operators[index].creator,
2195 2199
               this.operators[index]
2196
-            )
2200
+            );
2197 2201
           }
2198 2202
         }
2199 2203
 
2200
-        this.afterdialysis.txqnx = -1
2201
-        if (this.afterdialysis.cruor.indexOf('0度') > -1) {
2202
-          this.afterdialysis.txqnx = 0
2204
+        this.afterdialysis.txqnx = -1;
2205
+        if (this.afterdialysis.cruor.indexOf("0度") > -1) {
2206
+          this.afterdialysis.txqnx = 0;
2203 2207
         }
2204
-        if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
2205
-          this.afterdialysis.txqnx = 1
2208
+        if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
2209
+          this.afterdialysis.txqnx = 1;
2206 2210
         }
2207
-        if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
2208
-          this.afterdialysis.txqnx = 2
2211
+        if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
2212
+          this.afterdialysis.txqnx = 2;
2209 2213
         }
2210
-        if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
2211
-          this.afterdialysis.txqnx = 3
2214
+        if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
2215
+          this.afterdialysis.txqnx = 3;
2212 2216
         }
2213 2217
 
2214 2218
         this.afterdialysis.complications = this.afterdialysis.complication.split(
2215
-          ','
2216
-        )
2217
-        this.afterdialysis.complications_other = []
2218
-        this.afterdialysis.complications_index = []
2219
-        var acllen = this.afterdialysis.complications.length
2219
+          ","
2220
+        );
2221
+        this.afterdialysis.complications_other = [];
2222
+        this.afterdialysis.complications_index = [];
2223
+        var acllen = this.afterdialysis.complications.length;
2220 2224
         for (let index = 0; index < acllen; index++) {
2221 2225
           if (
2222 2226
             this.complications.indexOf(
@@ -2225,7 +2229,7 @@ export default {
2225 2229
           ) {
2226 2230
             this.afterdialysis.complications_index.push(
2227 2231
               this.afterdialysis.complications[index]
2228
-            )
2232
+            );
2229 2233
           } else if (
2230 2234
             this.complications.indexOf(
2231 2235
               this.afterdialysis.complications[index]
@@ -2236,35 +2240,35 @@ export default {
2236 2240
           ) {
2237 2241
             this.afterdialysis.complications_other.push(
2238 2242
               this.afterdialysis.complications[index]
2239
-            )
2243
+            );
2240 2244
           }
2241 2245
         }
2242 2246
         this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
2243
-          ','
2244
-        )
2247
+          ","
2248
+        );
2245 2249
 
2246
-        this.prescription = response.data.data.dialysisPrescription
2250
+        this.prescription = response.data.data.dialysisPrescription;
2247 2251
 
2248 2252
         this.receiverTreatmentAccess =
2249
-          response.data.data.receiverTreatmentAccess
2250
-        this.prescription.mode = this.modeName(this.prescription.mode_id)
2251
-        var rwLen = this.replacementWays.length
2252
-        this.prescription.replacement = ''
2253
+          response.data.data.receiverTreatmentAccess;
2254
+        this.prescription.mode = this.modeName(this.prescription.mode_id);
2255
+        var rwLen = this.replacementWays.length;
2256
+        this.prescription.replacement = "";
2253 2257
         for (let index = 0; index < rwLen; index++) {
2254 2258
           if (
2255 2259
             this.replacementWays[index].id == this.prescription.replacement_way
2256 2260
           ) {
2257
-            this.prescription.replacement = this.replacementWays[index].name
2258
-            break
2261
+            this.prescription.replacement = this.replacementWays[index].name;
2262
+            break;
2259 2263
           }
2260 2264
         }
2261 2265
 
2262 2266
         this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
2263 2267
           this.prescription.dialysate_formulation
2264
-        )
2268
+        );
2265 2269
 
2266
-        var paLen = this.perfusionApparatus.length
2267
-        this.prescription.perfusion_apparatus_name = ''
2270
+        var paLen = this.perfusionApparatus.length;
2271
+        this.prescription.perfusion_apparatus_name = "";
2268 2272
         for (let index = 0; index < paLen; index++) {
2269 2273
           if (
2270 2274
             this.perfusionApparatus[index].id ==
@@ -2272,123 +2276,122 @@ export default {
2272 2276
           ) {
2273 2277
             this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
2274 2278
               index
2275
-            ].name
2276
-            break
2279
+            ].name;
2280
+            break;
2277 2281
           }
2278 2282
         }
2279 2283
 
2280
-        var acLen = this.anticoagulantsConfit.length
2281
-        var thisALID = this.prescription.anticoagulant
2282
-        this.prescription.anticoagulant_name = ''
2284
+        var acLen = this.anticoagulantsConfit.length;
2285
+        var thisALID = this.prescription.anticoagulant;
2286
+        this.prescription.anticoagulant_name = "";
2283 2287
 
2284 2288
         if (
2285
-          typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
2289
+          typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
2286 2290
           this.anticoagulantsConfit[thisALID] != null
2287 2291
         ) {
2288 2292
           this.prescription.anticoagulant_name = this.anticoagulantsConfit[
2289 2293
             thisALID
2290
-          ].name
2291
-          this.AlPanel = this.anticoagulantsConfit[thisALID]
2294
+          ].name;
2295
+          this.AlPanel = this.anticoagulantsConfit[thisALID];
2292 2296
         }
2293 2297
 
2294
-        this.advices = response.data.data.advices
2295
-        this.monitors = response.data.data.monitors
2296
-        this.summary = response.data.data.summary
2297
-        this.org_template_info = response.data.data.org_template_info
2298
+        this.advices = response.data.data.advices;
2299
+        this.monitors = response.data.data.monitors;
2300
+        this.summary = response.data.data.summary;
2301
+        this.org_template_info = response.data.data.org_template_info;
2298 2302
 
2299 2303
         if (this.monitors.length <= 6) {
2300
-          var nl = 6
2301
-          this.print_length = 6
2304
+          var nl = 6;
2305
+          this.print_length = 6;
2302 2306
 
2303 2307
           for (let index = 0; index < nl; index++) {
2304 2308
             if (
2305 2309
               this.monitors[index] == undefined ||
2306 2310
               this.monitors[index].length <= 0
2307 2311
             ) {
2308
-              this.monitors2.push([])
2312
+              this.monitors2.push([]);
2309 2313
             } else {
2310
-              continue
2314
+              continue;
2311 2315
             }
2312 2316
           }
2313 2317
         }
2314 2318
 
2315
-        var tempmonitorflag = true
2319
+        var tempmonitorflag = true;
2316 2320
         for (let index = 0; index < this.monitors.length; index++) {
2317
-          const monitor = this.monitors[index]
2318
-          this.monitors[index].end = ''
2321
+          const monitor = this.monitors[index];
2322
+          this.monitors[index].end = "";
2319 2323
           if (Object.keys(monitor).length > 0 && index > 1) {
2320 2324
             if (monitor.operate_time == this.dialysisOrder.end_time) {
2321
-              this.monitors[index].end = '【结束透析】'
2322
-              tempmonitorflag = false
2325
+              this.monitors[index].end = "【结束透析】";
2326
+              tempmonitorflag = false;
2323 2327
             }
2324 2328
             if (tempmonitorflag && index == this.monitors.length - 1) {
2325
-              this.monitors[index].end = '【结束透析】'
2329
+              this.monitors[index].end = "【结束透析】";
2326 2330
             }
2327 2331
           }
2328 2332
         }
2329 2333
 
2330
-        this.jilurow = this.monitors.length + 1
2334
+        this.jilurow = this.monitors.length + 1;
2331 2335
 
2332
-        this.advice_jilurow = this.advices.length + 1
2336
+        this.advice_jilurow = this.advices.length + 1;
2333 2337
 
2334
-        var childMap = {}
2338
+        var childMap = {};
2335 2339
         for (const index in this.advices) {
2336 2340
           if (this.advices[index].parent_id == 0) {
2337
-            continue
2341
+            continue;
2338 2342
           }
2339 2343
           if (!(this.advices[index].parent_id in childMap)) {
2340
-            childMap[this.advices[index].parent_id] = []
2344
+            childMap[this.advices[index].parent_id] = [];
2341 2345
           }
2342
-          childMap[this.advices[index].parent_id].push(this.advices[index])
2346
+          childMap[this.advices[index].parent_id].push(this.advices[index]);
2343 2347
         }
2344 2348
 
2345
-        var advices = []
2349
+        var advices = [];
2346 2350
         for (const index in this.advices) {
2347 2351
           if (this.advices[index].parent_id > 0) {
2348
-            continue
2352
+            continue;
2349 2353
           }
2350
-          var item = this.advices[index]
2354
+          var item = this.advices[index];
2351 2355
           if (item.id in childMap) {
2352
-            item.children = childMap[item.id]
2356
+            item.children = childMap[item.id];
2353 2357
           } else {
2354
-            item.children = []
2358
+            item.children = [];
2355 2359
           }
2356
-          advices.push(item)
2360
+          advices.push(item);
2357 2361
         }
2358 2362
 
2359
-        var leftAdvice = []
2360
-        var rightAdvice = []
2361
-        var adlen = advices.length
2363
+        var leftAdvice = [];
2364
+        var rightAdvice = [];
2365
+        var adlen = advices.length;
2362 2366
 
2363
-        var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
2367
+        var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
2364 2368
         for (var i = 0; i < halfLen; i++) {
2365
-          leftAdvice.push(advices[i])
2366
-          rightAdvice.push(advices[i + halfLen])
2369
+          leftAdvice.push(advices[i]);
2370
+          rightAdvice.push(advices[i + halfLen]);
2367 2371
         }
2368 2372
         if (halfLen < 5) {
2369
-          var nl = 5 - leftAdvice.length
2373
+          var nl = 5 - leftAdvice.length;
2370 2374
           for (let index = 0; index < nl; index++) {
2371
-            leftAdvice.push([])
2375
+            leftAdvice.push([]);
2372 2376
           }
2373
-          var nl = 5 - rightAdvice.length
2377
+          var nl = 5 - rightAdvice.length;
2374 2378
           for (let index = 0; index < nl; index++) {
2375
-            rightAdvice.push([])
2379
+            rightAdvice.push([]);
2376 2380
           }
2377 2381
         }
2378 2382
 
2379
-        this.advices = []
2383
+        this.advices = [];
2380 2384
         for (var i = 0; i < halfLen; i++) {
2381
-          var item = []
2382
-          item.push(leftAdvice[i])
2383
-          item.push(rightAdvice[i])
2384
-          this.advices.push(item)
2385
+          var item = [];
2386
+          item.push(leftAdvice[i]);
2387
+          item.push(rightAdvice[i]);
2388
+          this.advices.push(item);
2385 2389
         }
2386
-        this.loading = false
2390
+        this.loading = false;
2387 2391
         this.doctor_advices =
2388
-          response.data.data.advices == null ? [] : response.data.data.advices
2389
-
2392
+          response.data.data.advices == null ? [] : response.data.data.advices;
2390 2393
         for (let index = 0; index < this.doctor_advices.length; index++) {
2391
-          this.doctor_advices[index]['isShow'] = 2
2394
+          this.doctor_advices[index]["isShow"] = 2;
2392 2395
         }
2393 2396
 
2394 2397
         // if (this.doctor_advices.length > 0) {
@@ -2470,57 +2473,57 @@ export default {
2470 2473
         //   }
2471 2474
         // }
2472 2475
         if (this.doctor_advices.length <= 6) {
2473
-          var nl = 6
2474
-          this.print_length = 6
2476
+          var nl = 6;
2477
+          this.print_length = 6;
2475 2478
 
2476 2479
           for (let index = 0; index < nl; index++) {
2477 2480
             if (
2478 2481
               this.doctor_advices[index] == undefined ||
2479 2482
               this.doctor_advices[index].length <= 0
2480 2483
             ) {
2481
-              this.doctor_advices.push([])
2484
+              this.doctor_advices.push([]);
2482 2485
             } else {
2483
-              continue
2486
+              continue;
2484 2487
             }
2485 2488
           }
2486 2489
         }
2487 2490
 
2488
-        this.totollength = this.doctor_advices.length + this.monitors.length
2491
+        this.totollength = this.doctor_advices.length + this.monitors.length;
2489 2492
         if (this.totollength > 18) {
2490
-          var temp_advice_length = 17 - this.monitors.length
2491
-          var doctor_advices_1 = []
2492
-          var doctor_advices_2 = []
2493
+          var temp_advice_length = 17 - this.monitors.length;
2494
+          var doctor_advices_1 = [];
2495
+          var doctor_advices_2 = [];
2493 2496
           for (let index = 0; index < this.doctor_advices.length; index++) {
2494
-            const element = this.doctor_advices[index]
2497
+            const element = this.doctor_advices[index];
2495 2498
             if (temp_advice_length > index) {
2496
-              doctor_advices_1.push(element)
2499
+              doctor_advices_1.push(element);
2497 2500
             } else {
2498
-              doctor_advices_2.push(element)
2501
+              doctor_advices_2.push(element);
2499 2502
             }
2500 2503
           }
2501
-          this.doctor_advices = doctor_advices_1
2502
-          this.doctor_advices_2 = doctor_advices_2
2504
+          this.doctor_advices = doctor_advices_1;
2505
+          this.doctor_advices_2 = doctor_advices_2;
2503 2506
         }
2504
-        console.log(this.advice_groups)
2507
+        console.log(this.advice_groups);
2505 2508
       } else {
2506
-        this.loading = false
2507
-        this.$message.error('请求数据失败')
2508
-        return false
2509
+        this.loading = false;
2510
+        this.$message.error("请求数据失败");
2511
+        return false;
2509 2512
       }
2510 2513
       // })
2511 2514
     },
2512 2515
 
2513 2516
     bloodAccessParOperaName(id) {
2514 2517
       if (id in this.bloodAccessParOpera) {
2515
-        return this.bloodAccessParOpera[id].name
2518
+        return this.bloodAccessParOpera[id].name;
2516 2519
       }
2517
-      return ''
2520
+      return "";
2518 2521
     },
2519 2522
     dialysateFormulationName(id) {
2520 2523
       if (id in this.dialysateFormulationOptions) {
2521
-        return this.dialysateFormulationOptions[id].name
2524
+        return this.dialysateFormulationOptions[id].name;
2522 2525
       }
2523
-      return ''
2526
+      return "";
2524 2527
     },
2525 2528
     getAge: function(val) {
2526 2529
       if (
@@ -2528,12 +2531,12 @@ export default {
2528 2531
         this.org_template_info.template_id == 0
2529 2532
       ) {
2530 2533
         if (val.age == 0) {
2531
-          return jsGetAge(val.birth, '-')
2534
+          return jsGetAge(val.birth, "-");
2532 2535
         } else {
2533
-          return val.age
2536
+          return val.age;
2534 2537
         }
2535 2538
       } else {
2536
-        return jsGetAge(val.birth, '-')
2539
+        return jsGetAge(val.birth, "-");
2537 2540
       }
2538 2541
     },
2539 2542
     newAdviceGroupObject: function() {
@@ -2548,52 +2551,52 @@ export default {
2548 2551
           // exec_time: 0,
2549 2552
           // checker: 0,
2550 2553
         }
2551
-      )
2554
+      );
2552 2555
     },
2553 2556
     getFloat: function(x) {
2554 2557
       if (x == 0) {
2555
-        return '/'
2558
+        return "/";
2556 2559
       }
2557
-      if (x != '.') {
2558
-        var f = Math.round(x * 100) / 100
2559
-        var s = f.toString()
2560
-        var rs = s.indexOf('.')
2560
+      if (x != ".") {
2561
+        var f = Math.round(x * 100) / 100;
2562
+        var s = f.toString();
2563
+        var rs = s.indexOf(".");
2561 2564
         if (rs <= 0) {
2562
-          rs = s.length
2563
-          s += '.'
2565
+          rs = s.length;
2566
+          s += ".";
2564 2567
         }
2565 2568
         while (s.length <= rs + 1) {
2566
-          s += '0'
2569
+          s += "0";
2567 2570
         }
2568
-        return s
2571
+        return s;
2569 2572
       } else {
2570
-        return '0.0'
2573
+        return "0.0";
2571 2574
       }
2572 2575
     }
2573 2576
   },
2574 2577
   watch: {
2575
-    'patientInfo.gender': function() {
2578
+    "patientInfo.gender": function() {
2576 2579
       if (this.patientInfo.gender == 1) {
2577
-        this.patientInfo_gender_1 = true
2578
-        this.patientInfo_gender_2 = false
2580
+        this.patientInfo_gender_1 = true;
2581
+        this.patientInfo_gender_2 = false;
2579 2582
       } else if (this.patientInfo.gender == 2) {
2580
-        this.patientInfo_gender_2 = true
2581
-        this.patientInfo_gender_1 = false
2583
+        this.patientInfo_gender_2 = true;
2584
+        this.patientInfo_gender_1 = false;
2582 2585
       } else {
2583
-        this.patientInfo_gender_2 = false
2584
-        this.patientInfo_gender_1 = false
2586
+        this.patientInfo_gender_2 = false;
2587
+        this.patientInfo_gender_1 = false;
2585 2588
       }
2586 2589
     },
2587
-    'patientInfo.source': function() {
2590
+    "patientInfo.source": function() {
2588 2591
       if (this.patientInfo.source == 1) {
2589
-        this.patientInfo_source_1 = true
2590
-        this.patientInfo_source_2 = false
2592
+        this.patientInfo_source_1 = true;
2593
+        this.patientInfo_source_2 = false;
2591 2594
       } else if (this.patientInfo.source == 2) {
2592
-        this.patientInfo_source_2 = true
2593
-        this.patientInfo_source_1 = false
2595
+        this.patientInfo_source_2 = true;
2596
+        this.patientInfo_source_1 = false;
2594 2597
       } else {
2595
-        this.patientInfo_source_2 = false
2596
-        this.patientInfo_source_1 = false
2598
+        this.patientInfo_source_2 = false;
2599
+        this.patientInfo_source_1 = false;
2597 2600
       }
2598 2601
     }
2599 2602
   },
@@ -2613,57 +2616,57 @@ export default {
2613 2616
     var xtuser = this.$store.getters.xt_user
2614 2617
     this.orgname = xtuser.org.org_name
2615 2618
     // this.orgname = "遂溪方济医院";
2616
-    this.modeOptions = this.$store.getters.treatment_mode
2617
-    this.replacementWays = this.$store.getters.replacement_ways
2618
-    this.perfusionApparatus = this.$store.getters.perfusion_apparatus
2619
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
2620
-    this.displaceLiquiPartOptions = this.$store.getters.displace_liqui
2619
+    this.modeOptions = this.$store.getters.treatment_mode;
2620
+    this.replacementWays = this.$store.getters.replacement_ways;
2621
+    this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
2622
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
2623
+    this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
2621 2624
 
2622
-    this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
2625
+    this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
2623 2626
     this.blood_access_part_opera = getDataConfig(
2624
-      'hemodialysis',
2625
-      'vascular_access_desc'
2626
-    )
2627
+      "hemodialysis",
2628
+      "vascular_access_desc"
2629
+    );
2627 2630
 
2628 2631
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
2629 2632
 
2630 2633
     var bloodAccessParOpera = getDataConfig(
2631
-      'hemodialysis',
2632
-      'vascular_access_desc'
2633
-    )
2634
+      "hemodialysis",
2635
+      "vascular_access_desc"
2636
+    );
2634 2637
     for (var key in bloodAccessParOpera) {
2635 2638
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2636
-        bloodAccessParOpera[key]
2639
+        bloodAccessParOpera[key];
2637 2640
     }
2638 2641
 
2639 2642
     var dialysateFormulationOptions = getDataConfig(
2640
-      'hemodialysis',
2641
-      'dialysate_formulation'
2642
-    )
2643
+      "hemodialysis",
2644
+      "dialysate_formulation"
2645
+    );
2643 2646
     for (var key in dialysateFormulationOptions) {
2644 2647
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
2645
-        dialysateFormulationOptions[key]
2648
+        dialysateFormulationOptions[key];
2646 2649
     }
2647 2650
 
2648
-    const xtdate = this.$route.query && this.$route.query.xtdate
2649
-    console.log('xtdate', xtdate)
2650
-    const xtno = this.$route.query && this.$route.query.xtno
2651
-    console.log('xtno', xtno)
2651
+    const xtdate = this.$route.query && this.$route.query.xtdate;
2652
+    console.log("xtdate", xtdate);
2653
+    const xtno = this.$route.query && this.$route.query.xtno;
2654
+    console.log("xtno", xtno);
2652 2655
     if (
2653
-      typeof xtdate === 'string' &&
2656
+      typeof xtdate === "string" &&
2654 2657
       xtdate.length > 0 &&
2655
-      typeof xtno === 'string' &&
2658
+      typeof xtno === "string" &&
2656 2659
       xtno.length > 0
2657 2660
     ) {
2658
-      this.queryParams.xtdate = xtdate
2659
-      this.queryParams.xtno = xtno
2660
-      this.getDialysisRecord()
2661
+      this.queryParams.xtdate = xtdate;
2662
+      this.queryParams.xtno = xtno;
2663
+      this.getDialysisRecord();
2661 2664
     } else {
2662
-      this.$message.error('参数不齐')
2663
-      return false
2665
+      this.$message.error("参数不齐");
2666
+      return false;
2664 2667
     }
2665 2668
   }
2666
-}
2669
+};
2667 2670
 </script>
2668 2671
 
2669 2672
 <style>

+ 1 - 1
src/xt_pages/management/components/QualityForm.vue Просмотреть файл

@@ -209,7 +209,7 @@
209 209
             >
210 210
               <el-button
211 211
                 size="mini"
212
-                type="primary"
212
+                type="danger"
213 213
                 icon="el-icon-delete"
214 214
                 @click="DeleteCultrues(scope.row.id, scope.$index)"
215 215
               ></el-button>

+ 101 - 44
src/xt_pages/management/components/UserForm.vue Просмотреть файл

@@ -264,6 +264,7 @@
264 264
                 v-model="userform.classtype"
265 265
                 placeholder="请选择"
266 266
                 class="a"
267
+                style="width:150px"
267 268
               >
268 269
                 <el-option
269 270
                   v-for="item in classType"
@@ -277,7 +278,12 @@
277 278
           </el-col>
278 279
           <el-col :span="8">
279 280
             <el-form-item label="分区:">
280
-              <el-select v-model="userform.zone" placeholder="请选择" class="a">
281
+              <el-select
282
+                v-model="userform.zone"
283
+                placeholder="请选择"
284
+                class="a"
285
+                style="width:150px"
286
+              >
281 287
                 <el-option
282 288
                   v-for="item in zones"
283 289
                   :key="item.id"
@@ -309,6 +315,7 @@
309 315
                 :fetch-suggestions="querySearchAsync"
310 316
                 placeholder="请输入内容"
311 317
                 @select="handleSelect"
318
+                style="width:150px"
312 319
               >
313 320
                 <i class="el-icon-search el-input__icon" slot="suffix"></i>
314 321
                 <template slot-scope="{ item }">
@@ -338,9 +345,9 @@
338 345
           <el-col :span="8">
339 346
             <el-form-item label="传染病:">
340 347
               <el-input
341
-                style="width:180px"
342 348
                 v-model="userform.contagion"
343 349
                 :disabled="true"
350
+                style="width:150px"
344 351
               ></el-input>
345 352
             </el-form-item>
346 353
           </el-col>
@@ -352,6 +359,7 @@
352 359
                 v-model="userform.dialysis_mode"
353 360
                 placeholder="请选择"
354 361
                 class="a"
362
+                style="width:150px"
355 363
               >
356 364
                 <el-option
357 365
                   v-for="item in treatmode"
@@ -370,7 +378,7 @@
370 378
                 value-format="yyyy-MM-dd HH:mm"
371 379
                 placeholder="选择时间"
372 380
                 v-model="userform.start_time"
373
-                style="width:200px;"
381
+                style="width:150px"
374 382
               ></el-date-picker>
375 383
             </el-form-item>
376 384
           </el-col>
@@ -382,7 +390,7 @@
382 390
                 value-format="yyyy-MM-dd HH:mm"
383 391
                 placeholder="选择时间"
384 392
                 v-model="userform.end_time"
385
-                style="width:200px;"
393
+                style="width:150px"
386 394
               ></el-date-picker>
387 395
             </el-form-item>
388 396
           </el-col>
@@ -391,7 +399,7 @@
391 399
           <el-col :span="8">
392 400
             <el-form-item label="透析时长:">
393 401
               <el-input
394
-                style="width:180px"
402
+                style="width:150px"
395 403
                 v-model="userform.dialysis_time"
396 404
               ></el-input>
397 405
             </el-form-item>
@@ -399,7 +407,7 @@
399 407
           <el-col :span="8">
400 408
             <el-form-item label="实际超滤量:">
401 409
               <el-input
402
-                style="width:180px"
410
+                style="width:150px"
403 411
                 v-model="userform.hyperfiltratio"
404 412
               ></el-input>
405 413
             </el-form-item>
@@ -407,7 +415,7 @@
407 415
           <el-col :span="8">
408 416
             <el-form-item label="体重减少:">
409 417
               <el-input
410
-                style="width:180px"
418
+                style="width:150px"
411 419
                 v-model="userform.weight_loss"
412 420
               ></el-input>
413 421
             </el-form-item>
@@ -417,7 +425,7 @@
417 425
           <el-col :span="8">
418 426
             <el-form-item label="预警值:">
419 427
               <el-input
420
-                style="width:180px"
428
+                style="width:150px"
421 429
                 v-model="userform.warning_value"
422 430
               ></el-input>
423 431
             </el-form-item>
@@ -425,7 +433,7 @@
425 433
           <el-col :span="8">
426 434
             <el-form-item label="使用次数:">
427 435
               <el-input
428
-                style="width:180px"
436
+                style="width:150px"
429 437
                 v-model="userform.user_total"
430 438
               ></el-input>
431 439
             </el-form-item>
@@ -488,7 +496,11 @@
488 496
           </el-col>
489 497
           <el-col :span="8">
490 498
             <el-form-item label="消毒方式:">
491
-              <el-select v-model="userform.disinfect_type" placeholder="请选择">
499
+              <el-select
500
+                v-model="userform.disinfect_type"
501
+                placeholder="请选择"
502
+                style="width:150px"
503
+              >
492 504
                 <el-option
493 505
                   v-for="item in disinfectType"
494 506
                   :key="item.id"
@@ -504,6 +516,7 @@
504 516
               <el-select
505 517
                 v-model="userform.disinfectant_type"
506 518
                 placeholder="请选择"
519
+                style="width:150px"
507 520
               >
508 521
                 <el-option
509 522
                   v-for="item in disinfectantType"
@@ -517,9 +530,16 @@
517 530
           </el-col>
518 531
         </el-row>
519 532
         <el-row>
533
+          <el-col :span="2" style="visibility: hidden;">
534
+            <el-form-item label="②液路"></el-form-item>
535
+          </el-col>
520 536
           <el-col :span="8">
521 537
             <el-form-item label="消毒状态:">
522
-              <el-select v-model="userform.disinfection" placeholder="请选择">
538
+              <el-select
539
+                v-model="userform.disinfection"
540
+                placeholder="请选择"
541
+                style="width:150px"
542
+              >
523 543
                 <el-option
524 544
                   v-for="item in disinfection"
525 545
                   :key="item.id"
@@ -550,7 +570,11 @@
550 570
           </el-col>
551 571
           <el-col :span="8">
552 572
             <el-form-item label="消毒方式:">
553
-              <el-select v-model="userform.fluid_path" placeholder="请选择">
573
+              <el-select
574
+                v-model="userform.fluid_path"
575
+                placeholder="请选择"
576
+                style="width:150px"
577
+              >
554 578
                 <el-option
555 579
                   v-for="item in sterilizeType"
556 580
                   :key="item.id"
@@ -563,7 +587,11 @@
563 587
           </el-col>
564 588
           <el-col :span="8">
565 589
             <el-form-item label="消毒液:">
566
-              <el-select v-model="userform.disinfectant" placeholder="请选择">
590
+              <el-select
591
+                v-model="userform.disinfectant"
592
+                placeholder="请选择"
593
+                style="width:150px"
594
+              >
567 595
                 <el-option
568 596
                   v-for="item in fluidPathType"
569 597
                   :key="item.id"
@@ -576,11 +604,15 @@
576 604
           </el-col>
577 605
         </el-row>
578 606
         <el-row>
607
+          <el-col :span="2" style="visibility: hidden;">
608
+            <el-form-item label="②液路"></el-form-item>
609
+          </el-col>
579 610
           <el-col :span="8">
580 611
             <el-form-item label="消毒状态:">
581 612
               <el-select
582 613
                 v-model="userform.disinfection_status"
583 614
                 placeholder="请选择"
615
+                style="width:150px"
584 616
               >
585 617
                 <el-option
586 618
                   v-for="item in disinfection"
@@ -610,7 +642,7 @@
610 642
           <el-col :span="8">
611 643
             <el-form-item label="消毒时长:">
612 644
               <el-input
613
-                style="width:135px"
645
+                style="width:140px"
614 646
                 v-model="userform.longtime"
615 647
               ></el-input
616 648
               >分钟
@@ -624,7 +656,7 @@
624 656
                 value-format="yyyy-MM-dd HH:mm"
625 657
                 placeholder="选择时间"
626 658
                 v-model="userform.starttime"
627
-                style="width:200px;"
659
+                style="width:150px"
628 660
               ></el-date-picker>
629 661
             </el-form-item>
630 662
           </el-col>
@@ -636,21 +668,29 @@
636 668
                 value-format="yyyy-MM-dd HH:mm"
637 669
                 placeholder="选择时间"
638 670
                 v-model="userform.endtime"
639
-                style="width:200px;"
671
+                style="width:150px"
640 672
               ></el-date-picker>
641 673
             </el-form-item>
642 674
           </el-col>
643 675
         </el-row>
644 676
         <el-row>
645
-          <el-col :span="3">
646
-            <el-form-item label="透析机消毒液:"></el-form-item>
647
-          </el-col>
648
-          <el-col :span="2">
649
-            <el-checkbox v-model="userform.dialysis_checked">更换</el-checkbox>
677
+          <el-col :span="8">
678
+            <el-form-item
679
+              label="透析机消毒液:"
680
+              style="display:flex;align-items:center"
681
+            >
682
+              <el-checkbox v-model="userform.dialysis_checked"
683
+                >更换</el-checkbox
684
+              >
685
+            </el-form-item>
650 686
           </el-col>
651 687
           <el-col :span="8">
652 688
             <el-form-item label="名称:">
653
-              <el-select v-model="userform.dialysis_name" placeholder="请选择">
689
+              <el-select
690
+                v-model="userform.dialysis_name"
691
+                placeholder="请选择"
692
+                style="width:150px"
693
+              >
654 694
                 <el-option
655 695
                   v-for="item in names"
656 696
                   :key="item.id"
@@ -661,9 +701,9 @@
661 701
               </el-select>
662 702
             </el-form-item>
663 703
           </el-col>
664
-          <el-col :span="6">
704
+          <el-col :span="8">
665 705
             <el-form-item label="规格:">
666
-              <el-input style="width:100px" v-model="userform.norms"></el-input
706
+              <el-input style="width:150px" v-model="userform.norms"></el-input
667 707
               >桶
668 708
             </el-form-item>
669 709
             <span style="color:red" v-show="showone"
@@ -687,32 +727,38 @@
687 727
           </el-col>
688 728
         </el-row>
689 729
         <el-row>
690
-          <el-col :span="3">
691
-            <el-form-item label="细菌过滤器:"></el-form-item>
692
-          </el-col>
693
-          <el-col :span="7">
694
-            <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
695
-            <span style="color:red" v-show="showone"
696
-              >您已一个月未更换,请注意检测</span
730
+          <el-col :span="8">
731
+            <el-form-item
732
+              label="细菌过滤器:"
733
+              style="display:flex;align-items:center"
697 734
             >
735
+              <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
736
+              <span style="color:red" v-show="showone"
737
+                >您已一个月未更换,请注意检测</span
738
+              >
739
+            </el-form-item>
698 740
           </el-col>
699 741
           <el-col :span="8">
700 742
             <el-form-item label="名称:">
701
-              <el-select v-model="userform.germ_name" placeholder="请选择">
743
+              <el-select
744
+                v-model="userform.germ_name"
745
+                placeholder="请选择"
746
+                style="width:150px"
747
+              >
702 748
                 <el-option
703 749
                   v-for="item in germs"
704 750
                   :key="item.id"
705 751
                   :label="item.name"
706 752
                   :value="item.id"
707
-                  style="width:200px"
753
+                  style="width:150px"
708 754
                 ></el-option>
709 755
               </el-select>
710 756
             </el-form-item>
711 757
           </el-col>
712
-          <el-col :span="6">
758
+          <el-col :span="8">
713 759
             <el-form-item label="数量:">
714 760
               <el-input
715
-                style="width:100px"
761
+                style="width:150px"
716 762
                 v-model="userform.germ_number"
717 763
               ></el-input
718 764
               >支
@@ -720,18 +766,24 @@
720 766
           </el-col>
721 767
         </el-row>
722 768
         <el-row>
723
-          <el-col :span="3">
724
-            <el-form-item label="空气滤网清洁:"></el-form-item>
725
-          </el-col>
726
-          <el-col :span="10">
727
-            <el-checkbox v-model="userform.clean">清洁:</el-checkbox>
728
-            <span style="color:red" v-show="showone"
729
-              >您已一个月未清洁,请检查</span
769
+          <el-col :span="8">
770
+            <el-form-item
771
+              label="空气滤网清洁:"
772
+              style="display:flex;align-items:center"
730 773
             >
774
+              <el-checkbox v-model="userform.clean">清洁:</el-checkbox>
775
+              <span style="color:red" v-show="showone"
776
+                >您已一个月未清洁,请检查</span
777
+              >
778
+            </el-form-item>
731 779
           </el-col>
732
-          <el-col :span="10">
780
+          <el-col :span="8">
733 781
             <el-form-item label="签名:">
734
-              <el-select v-model="userform.sign_name" placeholder="请选择">
782
+              <el-select
783
+                v-model="userform.sign_name"
784
+                placeholder="请选择"
785
+                style="width:150px"
786
+              >
735 787
                 <el-option
736 788
                   v-for="item in autograph"
737 789
                   :key="item.admin_user_id"
@@ -2252,4 +2304,9 @@ export default {
2252 2304
     margin-left: 15px;
2253 2305
   }
2254 2306
 }
2307
+#user-form {
2308
+  .el-dialog__footer {
2309
+    text-align: right;
2310
+  }
2311
+}
2255 2312
 </style>

+ 20 - 20
src/xt_pages/management/home.vue Просмотреть файл

@@ -3447,29 +3447,29 @@ export default {
3447 3447
               ].id
3448 3448
             }
3449 3449
 
3450
-            DeletePlans({ ids: ids })
3451
-              .then(response => {
3452
-                // eslint-disable-next-line eqeqeq
3453
-                if (response.data.state == 1) {
3454
-                  // eslint-disable-next-line no-unused-vars
3455
-                  var msg = response.data.data.msg
3456
-                  var planDataLength = this.planData.length
3457
-                  for (let index = planDataLength - 1; index >= 0; index--) {
3458
-                    if (this.planData[index].id in idMap) {
3459
-                      this.planData.splice(index, 1)
3460
-                    }
3450
+            DeletePlans({ ids: ids }).then(response => {
3451
+              console.log('ids', ids)
3452
+              // eslint-disable-next-line eqeqeq
3453
+              if (response.data.state == 1) {
3454
+                // eslint-disable-next-line no-unused-vars
3455
+                var msg = response.data.data.msg
3456
+                var planDataLength = this.planData.length
3457
+                for (let index = planDataLength - 1; index >= 0; index--) {
3458
+                  if (this.planData[index].id in idMap) {
3459
+                    this.planData.splice(index, 1)
3461 3460
                   }
3462
-                  var planDataLengths = this.tableData.length
3463
-                  for (let index = planDataLengths - 1; index >= 0; index--) {
3464
-                    if (this.tableData[index].id in idMap) {
3465
-                      this.tableData.splice(index, 1)
3466
-                    }
3461
+                }
3462
+                var planDataLengths = this.tableData.length
3463
+                for (let index = planDataLengths - 1; index >= 0; index--) {
3464
+                  if (this.tableData[index].id in idMap) {
3465
+                    this.tableData.splice(index, 1)
3467 3466
                   }
3468
-                  this.$message.success('删除消毒计划成功')
3469
-                } else {
3470
-                  this.$message.error('删除消毒计划失败')
3471 3467
                 }
3472
-              })
3468
+                this.$message.success('删除消毒计划成功')
3469
+              } else {
3470
+                this.$message.error('删除消毒计划失败')
3471
+              }
3472
+            })
3473 3473
               .catch(e => {})
3474 3474
           })
3475 3475
           .catch(() => {

Разница между файлами не показана из-за своего большого размера
+ 1622 - 1292
src/xt_pages/user/components/EditGroupAdvice.vue


Разница между файлами не показана из-за своего большого размера
+ 819 - 806
src/xt_pages/user/doctorAdvice.vue


+ 16 - 2
src/xt_pages/workforce/components/tableData.vue Просмотреть файл

@@ -2027,7 +2027,21 @@ export default {
2027 2027
   border-color: #d0d3da;
2028 2028
 }
2029 2029
 
2030
-.el-table__body tr.current-row > td {
2031
-  background-color: #409eff;
2030
+// .el-table__body tr.current-row > td {
2031
+//   background-color: #409eff !important;
2032
+//   color: #fff;
2033
+// }
2034
+// .el-table__body tr > td:hover {
2035
+//   background-color: #409eff !important;
2036
+// }
2037
+#table_data {
2038
+  .el-table__body tr.current-row > td {
2039
+    background-color: #ecf5ff !important;
2040
+    color: #3a8ee6;
2041
+  }
2042
+  .el-table__body tr > td:hover {
2043
+    background-color: #409eff !important;
2044
+    color: #fff;
2045
+  }
2032 2046
 }
2033 2047
 </style>