Browse Source

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

csx 4 years ago
parent
commit
e4c90cfdbc

+ 4 - 4
src/api/advice.js View File

289
   })
289
   })
290
 }
290
 }
291
 
291
 
292
-export function getPrintInfo(id, params) {
292
+export function getPrintInfo(data) {
293
   return request({
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 View File

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

+ 12 - 1
src/router/modules/dialysis.js View File

125
       title: '批量打印',
125
       title: '批量打印',
126
       noCache: true
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
     path: '/dialysis/print/batch/otherone',
141
     path: '/dialysis/print/batch/otherone',
131
     component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_one'),
142
     component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_one'),

+ 7 - 3
src/styles/index.scss View File

535
 
535
 
536
 .el-table--striped .el-table__body tr.el-table__row--striped.current-row td,
536
 .el-table--striped .el-table__body tr.el-table__row--striped.current-row td,
537
 .el-table__body tr.current-row > td {
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
 .el-table__body tr:hover > td {
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 View File

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

+ 310 - 187
src/xt_pages/dialysis/bloodPresssWatch.vue View File

3
     <div class="position">
3
     <div class="position">
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5
       <template v-if="this.template_id == 1">
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
       </template>
14
       </template>
8
       <template v-if="this.template_id == 2 || this.template_id == 0">
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
         </div>
42
         </div>
14
       </template>
43
       </template>
15
       <template v-if="this.template_id == 3">
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
       </template>
53
       </template>
18
       <template v-if="this.template_id == 4">
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
       </template>
63
       </template>
21
       <template v-if="this.template_id == 5">
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
         </div>
91
         </div>
27
       </template>
92
       </template>
28
       <template v-if="this.template_id == 6">
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
       </template>
112
       </template>
31
     </div>
113
     </div>
32
     <div class="app-container">
114
     <div class="app-container">
36
       </div>-->
118
       </div>-->
37
       <div class="cell clearfix">
119
       <div class="cell clearfix">
38
         <label class="title">
120
         <label class="title">
39
-          <span class="name">{{ search_mode == 1 ? "日期查询" : "病人查询" }}</span> :
121
+          <span class="name">{{
122
+            search_mode == 1 ? "日期查询" : "病人查询"
123
+          }}</span>
124
+          :
40
         </label>
125
         </label>
41
         <el-date-picker
126
         <el-date-picker
42
           v-show="search_mode == 1"
127
           v-show="search_mode == 1"
65
             @click="searchPatientAction"
150
             @click="searchPatientAction"
66
           ></el-button>
151
           ></el-button>
67
         </el-input>
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
         <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
157
         <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
74
       </div>
158
       </div>
75
       <div class="cell clearfix">
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
         <div class="time">
161
         <div class="time">
80
           <ul class>
162
           <ul class>
81
             <li
163
             <li
82
-              :class="item.value==schedulType?'active':''"
164
+              :class="item.value == schedulType ? 'active' : ''"
83
               @click="selectSchedulType(item.value)"
165
               @click="selectSchedulType(item.value)"
84
               v-for="item in schedulArr"
166
               v-for="item in schedulArr"
85
               :key="item.value"
167
               :key="item.value"
86
-            >{{item.label}}</li>
168
+            >
169
+              {{ item.label }}
170
+            </li>
87
           </ul>
171
           </ul>
88
         </div>
172
         </div>
89
       </div>
173
       </div>
90
       <div class="cell clearfix">
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
         <div class="time">
176
         <div class="time">
95
           <ul class>
177
           <ul class>
96
             <li
178
             <li
97
-              :class="item.id==partitionType?'active':''"
179
+              :class="item.id == partitionType ? 'active' : ''"
98
               @click="selectPartitionType(item.id)"
180
               @click="selectPartitionType(item.id)"
99
               v-for="item in partitionArr"
181
               v-for="item in partitionArr"
100
               :key="item.id"
182
               :key="item.id"
101
-            >{{item.name}}</li>
183
+            >
184
+              {{ item.name }}
185
+            </li>
102
           </ul>
186
           </ul>
103
         </div>
187
         </div>
104
       </div>
188
       </div>
115
         @current-change="clickCurrent"
199
         @current-change="clickCurrent"
116
         @selection-change="handleSelectionChange"
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
         <el-table-column prop="name" label="姓名" align="center">
223
         <el-table-column prop="name" label="姓名" align="center">
123
           <template slot-scope="scope">
224
           <template slot-scope="scope">
124
-            <span style="color: #579ef8">{{scope.row.name}}</span>
225
+            <span style="color: #579ef8">{{ scope.row.name }}</span>
125
           </template>
226
           </template>
126
         </el-table-column>
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
         <el-table-column label="透中血压(Hgmm)" align="center">
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
             <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
255
             <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
135
-            <template slot-scope="scope" >
256
+            <template slot-scope="scope">
136
               <!--<span>{{scope.row.bp[index].value}}</span>-->
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
             </template>
259
             </template>
139
           </el-table-column>
260
           </el-table-column>
140
         </el-table-column>
261
         </el-table-column>
141
       </el-table>
262
       </el-table>
142
 
263
 
143
       <el-pagination
264
       <el-pagination
144
-      align="right"
145
-      @size-change="handleSizeChange"
265
+        align="right"
266
+        @size-change="handleSizeChange"
146
         @current-change="handleCurrentChange"
267
         @current-change="handleCurrentChange"
147
-        :page-sizes="[10,20,30,50]"
268
+        :page-sizes="[10, 20, 30, 50]"
148
         :page-size="10"
269
         :page-size="10"
149
         background
270
         background
150
         style="margin-top:20px;"
271
         style="margin-top:20px;"
155
   </div>
276
   </div>
156
 </template>
277
 </template>
157
 
278
 
158
-
159
 <script>
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
 export default {
285
 export default {
166
-  name: 'Patient',
286
+  name: "Patient",
167
   data() {
287
   data() {
168
     return {
288
     return {
169
       crumbs: [
289
       crumbs: [
170
-        { path: false, name: '透析管理' },
171
-        { path: false, name: '透析监测' }
290
+        { path: false, name: "透析管理" },
291
+        { path: false, name: "透析监测" }
172
       ],
292
       ],
173
       loading: false,
293
       loading: false,
174
-      time: '',
294
+      time: "",
175
 
295
 
176
       search_mode: 1, // 搜索模式 1.日期搜索 2.病人搜索
296
       search_mode: 1, // 搜索模式 1.日期搜索 2.病人搜索
177
-      patient_search_keyword: '',
297
+      patient_search_keyword: "",
178
 
298
 
179
       SchedualPatientsTableData: [],
299
       SchedualPatientsTableData: [],
180
       active: true,
300
       active: true,
181
       schedulType: 0,
301
       schedulType: 0,
182
       schedulArr: [
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
       template_id: 0,
308
       template_id: 0,
189
 
309
 
190
       partitionType: 0,
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
       pickerOptions1: {
314
       pickerOptions1: {
195
         shortcuts: [
315
         shortcuts: [
196
           {
316
           {
197
-            text: '今天',
317
+            text: "今天",
198
             onClick(picker) {
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
             onClick(picker) {
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
             onClick(picker) {
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
             onClick(picker) {
340
             onClick(picker) {
221
-              picker.$emit('pick')
341
+              picker.$emit("pick");
222
             }
342
             }
223
           }
343
           }
224
         ]
344
         ]
230
         limit: 10,
350
         limit: 10,
231
         schedul_type: 0,
351
         schedul_type: 0,
232
         partition_type: 0,
352
         partition_type: 0,
233
-        schedul_time: '',
234
-        keywords: ''
353
+        schedul_time: "",
354
+        keywords: ""
235
       },
355
       },
236
       selecting_schs: [],
356
       selecting_schs: [],
237
       partitionArr: []
357
       partitionArr: []
238
-    }
358
+    };
239
   },
359
   },
240
   created() {
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
     if (month < 10) {
366
     if (month < 10) {
247
-      month = '0' + month
367
+      month = "0" + month;
248
     }
368
     }
249
     if (day < 10) {
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
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
378
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
259
   },
379
   },
260
   methods: {
380
   methods: {
261
     getTemplateInfo() {
381
     getTemplateInfo() {
262
       getPrintTemplate().then(response => {
382
       getPrintTemplate().then(response => {
263
         if (response.data.state == 0) {
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
         } else {
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
     clickCurrent(val) {
392
     clickCurrent(val) {
273
-      console.log(val)
393
+      console.log(val);
274
       this.$router.push({
394
       this.$router.push({
275
-        path: '/dialysis/details',
395
+        path: "/dialysis/details",
276
         query: { patient_id: val.patient_id, date: val.sch_time_int }
396
         query: { patient_id: val.patient_id, date: val.sch_time_int }
277
-      })
397
+      });
278
     },
398
     },
279
     handleSelectionChange(val) {
399
     handleSelectionChange(val) {
280
-      this.selecting_schs = val
400
+      this.selecting_schs = val;
281
     },
401
     },
282
 
402
 
283
     selectSchedulType(scheduleType) {
403
     selectSchedulType(scheduleType) {
284
       // alert(scheduleType);/
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
     selectPartitionType(partitionType) {
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
     changeTime() {
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
     getAllZone: function() {
419
     getAllZone: function() {
300
       GetAllZone().then(response => {
420
       GetAllZone().then(response => {
301
         if (response.data.state == 0) {
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
         } else {
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
     getSchedualPatientList: function() {
430
     getSchedualPatientList: function() {
311
-      this.loading = true
431
+      this.loading = true;
312
       if (this.search_mode == 1) {
432
       if (this.search_mode == 1) {
313
-        this.listQuery.keywords = ''
433
+        this.listQuery.keywords = "";
314
       } else {
434
       } else {
315
-        this.listQuery.schedul_time = ''
435
+        this.listQuery.schedul_time = "";
316
       }
436
       }
317
-      this.SchedualPatientsTableData = []
437
+      this.SchedualPatientsTableData = [];
318
       getSchedualPatient(this.listQuery).then(response => {
438
       getSchedualPatient(this.listQuery).then(response => {
319
         if (response.data.state == 0) {
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
         } else {
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
           // console.log(response.data.data)
446
           // console.log(response.data.data)
327
           for (let i = 0; i < response.data.data.schedule.length; i++) {
447
           for (let i = 0; i < response.data.data.schedule.length; i++) {
328
             if (response.data.data.schedule[i].patient.id > 0) {
448
             if (response.data.data.schedule[i].patient.id > 0) {
329
               const SchedualPatientsTable = {
449
               const SchedualPatientsTable = {
330
                 bp: []
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
                 response.data.data.schedule[i].schedule_date,
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
               if (
475
               if (
355
                 response.data.data.schedule[i].assessment_before_dislysis.id > 0
476
                 response.data.data.schedule[i].assessment_before_dislysis.id > 0
356
               ) {
477
               ) {
357
-                SchedualPatientsTable['dialysis_before_weight'] =
478
+                SchedualPatientsTable["dialysis_before_weight"] =
358
                   response.data.data.schedule[
479
                   response.data.data.schedule[
359
                     i
480
                     i
360
-                  ].assessment_before_dislysis.weight_before
481
+                  ].assessment_before_dislysis.weight_before;
361
               }
482
               }
362
               if (
483
               if (
363
                 response.data.data.schedule[i].assessment_after_dislysis.id > 0
484
                 response.data.data.schedule[i].assessment_after_dislysis.id > 0
364
               ) {
485
               ) {
365
-                SchedualPatientsTable['dialysis_after_weight'] =
486
+                SchedualPatientsTable["dialysis_after_weight"] =
366
                   response.data.data.schedule[
487
                   response.data.data.schedule[
367
                     i
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
               for (
493
               for (
373
                 let a = 0;
494
                 let a = 0;
374
                 a < response.data.data.schedule[i].monitoring_record.length;
495
                 a < response.data.data.schedule[i].monitoring_record.length;
375
                 a++
496
                 a++
376
               ) {
497
               ) {
377
-                const bp = {}
378
-                bp['value'] =
498
+                const bp = {};
499
+                bp["value"] =
379
                   response.data.data.schedule[i].monitoring_record[
500
                   response.data.data.schedule[i].monitoring_record[
380
                     a
501
                     a
381
                   ].systolic_blood_pressure.toString() +
502
                   ].systolic_blood_pressure.toString() +
382
-                  '/' +
503
+                  "/" +
383
                   response.data.data.schedule[i].monitoring_record[
504
                   response.data.data.schedule[i].monitoring_record[
384
                     a
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
     getValue: function(val) {
517
     getValue: function(val) {
397
       if (val != undefined) {
518
       if (val != undefined) {
398
-        return val.value
519
+        return val.value;
399
       } else {
520
       } else {
400
-        return ''
521
+        return "";
401
       }
522
       }
402
     },
523
     },
403
 
524
 
404
     handleCurrentChange(val) {
525
     handleCurrentChange(val) {
405
-      this.listQuery.page = val
406
-      this.getSchedualPatientList()
526
+      this.listQuery.page = val;
527
+      this.getSchedualPatientList();
407
     },
528
     },
408
     changeSearchMode: function() {
529
     changeSearchMode: function() {
409
       if (this.search_mode == 1) {
530
       if (this.search_mode == 1) {
410
-        this.search_mode = 2
531
+        this.search_mode = 2;
411
       } else {
532
       } else {
412
-        this.search_mode = 1
533
+        this.search_mode = 1;
413
       }
534
       }
414
     },
535
     },
415
     searchPatientAction: function() {
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
       if (this.patient_search_keyword.length == 0) {
539
       if (this.patient_search_keyword.length == 0) {
419
-        return
540
+        return;
420
       }
541
       }
421
-      this.getSchedualPatientList()
542
+      this.getSchedualPatientList();
422
     },
543
     },
423
     handleSizeChange(val) {
544
     handleSizeChange(val) {
424
-      this.listQuery.limit = val
425
-      this.getSchedualPatientList()
545
+      this.listQuery.limit = val;
546
+      this.getSchedualPatientList();
426
     },
547
     },
427
     batchPrintAction: function() {
548
     batchPrintAction: function() {
428
-    // 模板ID为6
429
-      var sch_ids = []
549
+      // 模板ID为6
550
+      var sch_ids = [];
430
 
551
 
431
       for (let index = 0; index < this.selecting_schs.length; index++) {
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
       if (this.template_id == 2 || this.template_id == 0) {
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
       } else if (this.template_id == 1) {
560
       } else if (this.template_id == 1) {
440
-        this.$router.push({ path: '/dialysis/print/batch' })
561
+        this.$router.push({ path: "/dialysis/print/batch" });
441
       } else if (this.template_id == 3) {
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
       } else if (this.template_id == 4) {
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
       } else if (this.template_id == 5) {
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
       } else if (this.template_id == 6) {
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
     batchPrintActionOne: function() {
574
     batchPrintActionOne: function() {
452
-      var sch_ids = []
575
+      var sch_ids = [];
453
       for (let index = 0; index < this.selecting_schs.length; index++) {
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
       if (this.template_id == 2 || this.template_id == 0) {
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
       } else if (this.template_id == 1) {
583
       } else if (this.template_id == 1) {
461
-        this.$router.push({ path: '/dialysis/print/batch' })
584
+        this.$router.push({ path: "/dialysis/print/batch" });
462
       } else if (this.template_id == 5) {
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
     batchPrintActionTwo: function() {
589
     batchPrintActionTwo: function() {
467
-      var sch_ids = []
590
+      var sch_ids = [];
468
       for (let index = 0; index < this.selecting_schs.length; index++) {
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
       if (this.template_id == 2 || this.template_id == 0) {
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
       } else if (this.template_id == 1) {
597
       } else if (this.template_id == 1) {
475
-        this.$router.push({ path: '/dialysis/print/batch' })
598
+        this.$router.push({ path: "/dialysis/print/batch" });
476
       } else if (this.template_id == 5) {
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
   components: {
604
   components: {
482
     BreadCrumb
605
     BreadCrumb
483
   }
606
   }
484
-}
607
+};
485
 </script>
608
 </script>
486
 
609
 
487
 <style rel="stylesheet/scss" lang="scss" scoped>
610
 <style rel="stylesheet/scss" lang="scss" scoped>
488
 .app-container {
611
 .app-container {
489
-//   margin: 20px;
612
+  //   margin: 20px;
490
   font-size: 15px;
613
   font-size: 15px;
491
   .filter-container {
614
   .filter-container {
492
     padding-bottom: 5px;
615
     padding-bottom: 5px;

File diff suppressed because it is too large
+ 1068 - 806
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue


+ 13 - 3
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

56
 
56
 
57
       <DialysisPrintOrderSix v-bind:childResponse="childResponse" v-if="org_template_info.template_id == 6 "> </DialysisPrintOrderSix>
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
     </div>
62
     </div>
250
             scanStyles: false
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
         var ptime = Math.round(new Date().getTime() / 1000)
263
         var ptime = Math.round(new Date().getTime() / 1000)
255
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
264
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
256
 
265
 
272
             scanStyles: false
281
             scanStyles: false
273
           })
282
           })
274
         }
283
         }
275
-      },printThisTwoPage() {
284
+      },
285
+      printThisTwoPage() {
276
         var ptime = Math.round(new Date().getTime() / 1000)
286
         var ptime = Math.round(new Date().getTime() / 1000)
277
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
287
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
278
 
288
 

+ 437 - 75
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue View File

17
                   >姓名:{{ patientInfo.name }}</span
17
                   >姓名:{{ patientInfo.name }}</span
18
                 >
18
                 >
19
                 <span style="flex:1;margin-left:15px;"
19
                 <span style="flex:1;margin-left:15px;"
20
-                  >年龄:{{ patientInfo.age }}</span
20
+                  >年龄:{{ getAge(patientInfo) }}</span
21
                 >
21
                 >
22
                 <span style="flex:1;margin-left:15px;"
22
                 <span style="flex:1;margin-left:15px;"
23
                   >性别:{{ patientInfo.gender }}</span
23
                   >性别:{{ patientInfo.gender }}</span
25
                 <span style="flex:1;margin-left:15px;"
25
                 <span style="flex:1;margin-left:15px;"
26
                   >透析机号:{{ patientInfo.dialysis_no }}</span
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
               </div>
29
               </div>
30
             </td>
30
             </td>
31
           </tr>
31
           </tr>
36
               >
36
               >
37
               <div style="display:inline-block;">
37
               <div style="display:inline-block;">
38
                 <label-box
38
                 <label-box
39
-                  :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
39
+                  :isChecked="receiverTreatmentAccess.consciousness == 1 ? true : false"
40
                   showValue="清醒"
40
                   showValue="清醒"
41
                 ></label-box>
41
                 ></label-box>
42
                 &nbsp;
42
                 &nbsp;
43
                 <label-box
43
                 <label-box
44
-                  :isChecked="receiverTreatmentAccess.way == 2 ? true : false"
44
+                  :isChecked="receiverTreatmentAccess.consciousness == 2 ? true : false"
45
                   showValue="嗜睡"
45
                   showValue="嗜睡"
46
                 ></label-box>
46
                 ></label-box>
47
                 &nbsp;
47
                 &nbsp;
48
                 <label-box
48
                 <label-box
49
-                  :isChecked="receiverTreatmentAccess.way == 3 ? true : false"
49
+                  :isChecked="receiverTreatmentAccess.consciousness == 3 ? true : false"
50
                   showValue="模糊"
50
                   showValue="模糊"
51
                 ></label-box>
51
                 ></label-box>
52
                 &nbsp;
52
                 &nbsp;
53
                 <label-box
53
                 <label-box
54
-                  :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
54
+                  :isChecked="receiverTreatmentAccess.consciousness == 4 ? true : false"
55
                   showValue="昏迷"
55
                   showValue="昏迷"
56
                 ></label-box>
56
                 ></label-box>
57
               </div>
57
               </div>
66
               >治疗方式:</span
66
               >治疗方式:</span
67
             >
67
             >
68
             <label-box
68
             <label-box
69
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
69
+              :isChecked="schedule.mode_id == 1 ? true : false"
70
               showValue="HD"
70
               showValue="HD"
71
             ></label-box>
71
             ></label-box>
72
             &nbsp;
72
             &nbsp;
73
             <label-box
73
             <label-box
74
-              :isChecked="receiverTreatmentAccess.way == 2 ? true : false"
74
+              :isChecked="schedule.mode_id == 2 ? true : false"
75
               showValue="HDF"
75
               showValue="HDF"
76
             ></label-box>
76
             ></label-box>
77
             &nbsp;
77
             &nbsp;
78
             <label-box
78
             <label-box
79
-              :isChecked="receiverTreatmentAccess.way == 3 ? true : false"
79
+              :isChecked="schedule.mode_id == 4 ? true : false"
80
               showValue="HP"
80
               showValue="HP"
81
             ></label-box>
81
             ></label-box>
82
             &nbsp;
82
             &nbsp;
83
             <label-box
83
             <label-box
84
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
84
+              :isChecked="schedule.mode_id == 3 ? true : false"
85
               showValue="HD+HP"
85
               showValue="HD+HP"
86
             ></label-box>
86
             ></label-box>
87
             &nbsp; ( &nbsp;
87
             &nbsp; ( &nbsp;
88
             <label-box
88
             <label-box
89
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
89
+              :isChecked="displace_liqui == 1 ? true : false"
90
               showValue="前稀释"
90
               showValue="前稀释"
91
             ></label-box>
91
             ></label-box>
92
             &nbsp;
92
             &nbsp;
93
             <label-box
93
             <label-box
94
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
94
+              :isChecked="displace_liqui == 2 ? true : false"
95
               showValue="后稀释"
95
               showValue="后稀释"
96
             ></label-box
96
             ></label-box
97
-            >, 置换量:2L &nbsp;
97
+            >, 置换量:{{replacement_total}}L &nbsp;
98
             <label-box
98
             <label-box
99
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
99
+              :isChecked="displace_liqui == 0? true : false"
100
               showValue="其它"
100
               showValue="其它"
101
             ></label-box>
101
             ></label-box>
102
             &nbsp;)
102
             &nbsp;)
103
           </td>
103
           </td>
104
-          <td><span>治疗时间:2小时8分</span></td>
104
+          <td><span>治疗时间:{{actual_treatment_hour}}小时{{actual_treatment_minute}}分</span></td>
105
         </tr>
105
         </tr>
106
       </table>
106
       </table>
107
 
107
 
112
               >治疗抗凝:</span
112
               >治疗抗凝:</span
113
             >
113
             >
114
             <label-box
114
             <label-box
115
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
115
+              :isChecked="anticoagulant== 3 ? true : false"
116
               showValue="低分子肝素:"
116
               showValue="低分子肝素:"
117
             ></label-box>
117
             ></label-box>
118
-            U;nbsp;
118
+            &nbsp;
119
             <label-box
119
             <label-box
120
-              :isChecked="receiverTreatmentAccess.way == 2 ? true : false"
120
+              :isChecked="anticoagulant==2 ? true : false"
121
               showValue="普通肝素:"
121
               showValue="普通肝素:"
122
             ></label-box>
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
             <label-box
139
             <label-box
125
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
140
+              :isChecked="anticoagulant == 1 ? true : false"
126
               showValue="无肝素"
141
               showValue="无肝素"
127
             ></label-box>
142
             ></label-box>
128
             &nbsp;
143
             &nbsp;
129
             <label-box
144
             <label-box
130
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
131
-              showValue="枸橼酸"
145
+              :isChecked="anticoagulant == 5 ? true : false"
146
+              showValue="枸橼酸"
132
             ></label-box>
147
             ></label-box>
133
           </td>
148
           </td>
134
         </tr>
149
         </tr>
138
         <tr>
153
         <tr>
139
           <td style="text-align:left;">
154
           <td style="text-align:left;">
140
             <span style="display:inline-block;margin-left:15px;"
155
             <span style="display:inline-block;margin-left:15px;"
141
-              >处方脱水量:200ml</span
156
+              >处方脱水量:{{target_ultrafiltration}}ml</span
142
             >&nbsp;
157
             >&nbsp;
143
             <span style="display:inline-block;margin-left:15px;"
158
             <span style="display:inline-block;margin-left:15px;"
144
-              >透析液流量:2ml/h</span
159
+              >透析液流量:{{dialysate_flow}}ml/h</span
145
             >&nbsp;
160
             >&nbsp;
146
             <span style="display:inline-block;margin-left:15px;"
161
             <span style="display:inline-block;margin-left:15px;"
147
-              >血流量:2ml/min</span
162
+              >血流量:{{blood_flow_volume}}ml/min</span
148
             >&nbsp;
163
             >&nbsp;
149
           </td>
164
           </td>
150
           <td>
165
           <td>
151
-            <span>医生签名:小白兔</span>
166
+            <span>医生签名:{{doctor}}</span>
152
           </td>
167
           </td>
153
         </tr>
168
         </tr>
154
       </table>
169
       </table>
156
       <table class="print-table" border="1">
171
       <table class="print-table" border="1">
157
         <tr>
172
         <tr>
158
           <td style="text-align:left;"><span style="display:inline-block;margin-left:15px;"
173
           <td style="text-align:left;"><span style="display:inline-block;margin-left:15px;"
159
-              >透析机:200ml</span</td>
174
+              >透析机:{{bed}}</span</td>
160
           <td style="text-align:left;"><span style="display:inline-block;margin-left:15px;"
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
             <span style="display:inline-block;margin-left:15px;"
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
          </td>
193
          </td>
187
         </tr>
194
         </tr>
195
+      </table>
196
+      <table class="print-table" border="1">
188
          <tr>
197
          <tr>
189
           <td style="text-align:left;">
198
           <td style="text-align:left;">
190
               <span style="display:inline-block;margin-left:15px;"
199
               <span style="display:inline-block;margin-left:15px;"
192
             >
201
             >
193
             &nbsp;
202
             &nbsp;
194
              <label-box
203
              <label-box
195
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
204
+              :isChecked="blood_access_part_opera_id == 14 ? true : false"
196
               showValue="内瘘"
205
               showValue="内瘘"
197
             ></label-box>
206
             ></label-box>
198
              &nbsp;
207
              &nbsp;
199
              <label-box
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
               showValue="长期静脉导管"
210
               showValue="长期静脉导管"
202
             ></label-box>
211
             ></label-box>
203
             </label-box>
212
             </label-box>
204
              &nbsp;
213
              &nbsp;
205
              <label-box
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
               showValue="临时(颈、股)静脉导管"
216
               showValue="临时(颈、股)静脉导管"
208
             ></label-box>
217
             ></label-box>
209
                &nbsp;
218
                &nbsp;
210
              <label-box
219
              <label-box
211
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
220
+              :isChecked="blood_access_part_opera_id >= 17 ? true : false"
212
               showValue="其它"
221
               showValue="其它"
213
             ></label-box>
222
             ></label-box>
214
-            &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:</span>
223
+            &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:{{nurse}}</span>
215
           </td>
224
           </td>
216
         </tr>
225
         </tr>
217
         <tr>
226
         <tr>
221
       <table class="print-table" border="1">
230
       <table class="print-table" border="1">
222
          <tr>
231
          <tr>
223
           <th rowspan="2">时间</th>
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
          </tr>
236
          </tr>
228
          <tr>
237
          <tr>
229
           <td>TMP(mmHg)</td>
238
           <td>TMP(mmHg)</td>
234
           <td>HR(bpm)</td>
243
           <td>HR(bpm)</td>
235
           <td>R(bpm)</td>
244
           <td>R(bpm)</td>
236
           <td>BP(mmHg)</td>
245
           <td>BP(mmHg)</td>
237
-          <td>SpO2</td>
238
-          <td>时间</td>
246
+          <td>SpO₂(%)</td>
239
           <td>记录</td>
247
           <td>记录</td>
240
          </tr>
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
       </table>
375
       </table>
242
     </div>
376
     </div>
243
   </div>
377
   </div>
338
 
472
 
339
       doctor_advices: [],
473
       doctor_advices: [],
340
       advice_groups: [],
474
       advice_groups: [],
475
+      schedule: [],
341
 
476
 
342
       AlPanel: {
477
       AlPanel: {
343
         id: 0,
478
         id: 0,
353
         zongliang_unit: 'mg',
488
         zongliang_unit: 'mg',
354
         gaimingcheng_unit: '',
489
         gaimingcheng_unit: '',
355
         gaijiliang_unit: ''
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
   methods: {
543
   methods: {
384
       }
568
       }
385
       return ''
569
       return ''
386
     },
570
     },
571
+    getTimes(time) {
572
+      if (time === '') {
573
+        return ''
574
+      }
575
+      return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
576
+    },
387
     printThisPage() {
577
     printThisPage() {
388
       var ptime = Math.round(new Date().getTime() / 1000)
578
       var ptime = Math.round(new Date().getTime() / 1000)
389
       this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
579
       this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
465
       this.loading = true
655
       this.loading = true
466
 
656
 
467
       getDialysisRecord(this.queryParams).then(response => {
657
       getDialysisRecord(this.queryParams).then(response => {
468
-        if (response.data.state == 1) {
658
+        if (response.data.state === 1) {
469
           this.adminUser = response.data.data.users
659
           this.adminUser = response.data.data.users
470
           this.users = response.data.data.users
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
           this.patientInfo = response.data.data.patientInfo
668
           this.patientInfo = response.data.data.patientInfo
669
+          console.log('透析记录', this.patientInfo)
670
+
472
           this.patientInfo.birth = uParseTime(
671
           this.patientInfo.birth = uParseTime(
473
             this.patientInfo.birthday,
672
             this.patientInfo.birthday,
474
             '{y}-{m}-{d}'
673
             '{y}-{m}-{d}'
483
             this.patientInfo.first_dialysis_date = ''
682
             this.patientInfo.first_dialysis_date = ''
484
           }
683
           }
485
           this.check = response.data.data.check
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
           this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
695
           this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
488
             this.predialysis.blood_access_part_opera_id
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
           this.dialysisOrder =
814
           this.dialysisOrder =
493
             response.data.data.dialysisOrder === null
815
             response.data.data.dialysisOrder === null
494
               ? null
816
               ? null
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
           this.prescription.mode = this.modeName(this.prescription.mode_id)
916
           this.prescription.mode = this.modeName(this.prescription.mode_id)
559
           var rwLen = this.replacementWays.length
917
           var rwLen = this.replacementWays.length
560
           this.prescription.replacement = ''
918
           this.prescription.replacement = ''
599
             ].name
957
             ].name
600
             this.AlPanel = this.anticoagulantsConfit[thisALID]
958
             this.AlPanel = this.anticoagulantsConfit[thisALID]
601
           }
959
           }
602
-
603
           this.advices = response.data.data.advices
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
           this.monitors = response.data.data.monitors
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
           this.org_template_info = response.data.data.org_template_info
971
           this.org_template_info = response.data.data.org_template_info
607
           if (this.monitors.length < 8) {
972
           if (this.monitors.length < 8) {
608
             var nl = 8 - this.monitors.length
973
             var nl = 8 - this.monitors.length
668
           }
1033
           }
669
           this.loading = false
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
           for (let index = 0; index < this.doctor_advices.length; index++) {
1038
           for (let index = 0; index < this.doctor_advices.length; index++) {
677
             this.doctor_advices[index]['isShow'] = 2
1039
             this.doctor_advices[index]['isShow'] = 2

+ 263 - 260
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

116
         </div>
116
         </div>
117
         <div class="inline_block" style="margin-left: 10px;">
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
             {{ patientInfo.diagnose }}
123
             {{ patientInfo.diagnose }}
121
           </div>
124
           </div>
122
         </div>
125
         </div>
1056
                       <td style="font-size: 16px" width="10%">时间</td>
1059
                       <td style="font-size: 16px" width="10%">时间</td>
1057
                     </tr>
1060
                     </tr>
1058
                     <!-- <template v-for="group in doctor_advices" > -->
1061
                     <!-- <template v-for="group in doctor_advices" > -->
1062
+
1059
                     <tr
1063
                     <tr
1060
                       v-for="(advice, advice_index) in doctor_advices"
1064
                       v-for="(advice, advice_index) in doctor_advices"
1061
                       :key="advice_index"
1065
                       :key="advice_index"
1909
       nutrition_arr: [],
1913
       nutrition_arr: [],
1910
 
1914
 
1911
       crumbs: [
1915
       crumbs: [
1912
-        { path: false, name: '透析管理' },
1913
-        { path: false, name: '打印单' }
1916
+        { path: false, name: "透析管理" },
1917
+        { path: false, name: "打印单" }
1914
       ],
1918
       ],
1915
       operators: [],
1919
       operators: [],
1916
       adminUser: [],
1920
       adminUser: [],
1917
       check: {},
1921
       check: {},
1918
-      xtdate: '',
1922
+      xtdate: "",
1919
       dialysisOrder: {
1923
       dialysisOrder: {
1920
         DeviceNumber: []
1924
         DeviceNumber: []
1921
       },
1925
       },
1922
       displaceLiquiPartOptions: [],
1926
       displaceLiquiPartOptions: [],
1923
       operatorMaps: {},
1927
       operatorMaps: {},
1924
       complications: [
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
       jilurow: 0,
1940
       jilurow: 0,
1937
       advice_jilurow: 0,
1941
       advice_jilurow: 0,
1938
       loading: false,
1942
       loading: false,
1939
-      orgname: '',
1943
+      orgname: "",
1940
       patientInfo_gender_1: false,
1944
       patientInfo_gender_1: false,
1941
       patientInfo_gender_2: false,
1945
       patientInfo_gender_2: false,
1942
       patientInfo_source_2: false,
1946
       patientInfo_source_2: false,
1949
       dialysateFormulationOptions: {},
1953
       dialysateFormulationOptions: {},
1950
       totollength: 0,
1954
       totollength: 0,
1951
       queryParams: {
1955
       queryParams: {
1952
-        xtdate: '',
1953
-        xtno: ''
1956
+        xtdate: "",
1957
+        xtno: ""
1954
       },
1958
       },
1955
       patientInfo: {
1959
       patientInfo: {
1956
-        birth: '',
1957
-        age: '',
1960
+        birth: "",
1961
+        age: "",
1958
         DialysisSchedule: {
1962
         DialysisSchedule: {
1959
-          device_number: { number: '' },
1960
-          device_zone: { name: '' }
1963
+          device_number: { number: "" },
1964
+          device_zone: { name: "" }
1961
         },
1965
         },
1962
         gender: 0
1966
         gender: 0
1963
       },
1967
       },
1964
       predialysis: {
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
       afterdialysis: {
1975
       afterdialysis: {
1972
-        complications_index: ''
1976
+        complications_index: ""
1973
       },
1977
       },
1974
       prescription: {
1978
       prescription: {
1975
-        dialysate_formulation_name: '',
1979
+        dialysate_formulation_name: "",
1976
         device: {}
1980
         device: {}
1977
       },
1981
       },
1978
       advices: [],
1982
       advices: [],
1993
 
1997
 
1994
       AlPanel: {
1998
       AlPanel: {
1995
         id: 0,
1999
         id: 0,
1996
-        name: '',
2000
+        name: "",
1997
         type: 1,
2001
         type: 1,
1998
         shouji: 2,
2002
         shouji: 2,
1999
         weichi: 2,
2003
         weichi: 2,
2000
         zongliang: 2,
2004
         zongliang: 2,
2001
         gaimingcheng: -1,
2005
         gaimingcheng: -1,
2002
         gaijiliang: -1,
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
   methods: {
2015
   methods: {
2012
     getDisplaceLiquiPart: function(val) {
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
       for (let i = 0; i < displace_liqui_part.length; i++) {
2019
       for (let i = 0; i < displace_liqui_part.length; i++) {
2016
         if (displace_liqui_part[i].id == val) {
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
     replacementWaysById: function(val) {
2026
     replacementWaysById: function(val) {
2023
-      let replacementWaysname = '/'
2027
+      let replacementWaysname = "/";
2024
       // let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
2028
       // let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
2025
 
2029
 
2026
       for (let i = 0; i < this.replacementWays.length; i++) {
2030
       for (let i = 0; i < this.replacementWays.length; i++) {
2027
         if (this.replacementWays[i].id == val) {
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
     QueryPartById: function(val) {
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
       for (let i = 0; i < vascular_access.length; i++) {
2041
       for (let i = 0; i < vascular_access.length; i++) {
2038
         if (vascular_access[i].id == val) {
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
     getAdminUser(id) {
2048
     getAdminUser(id) {
2045
       if (id == 0) {
2049
       if (id == 0) {
2046
-        return ''
2050
+        return "";
2047
       }
2051
       }
2048
       if (id == undefined) {
2052
       if (id == undefined) {
2049
-        return ''
2053
+        return "";
2050
       }
2054
       }
2051
       for (let i = 0; i < this.adminUser.length; i++) {
2055
       for (let i = 0; i < this.adminUser.length; i++) {
2052
         if (this.adminUser[i].id == id) {
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
     getTime(value, temp) {
2061
     getTime(value, temp) {
2058
       if (value == 0) {
2062
       if (value == 0) {
2059
-        return ''
2063
+        return "";
2060
       }
2064
       }
2061
       if (value != undefined) {
2065
       if (value != undefined) {
2062
-        return uParseTime(value, temp)
2066
+        return uParseTime(value, temp);
2063
       }
2067
       }
2064
-      return ''
2068
+      return "";
2065
     },
2069
     },
2066
     getUnit: function(val) {
2070
     getUnit: function(val) {
2067
       switch (val) {
2071
       switch (val) {
2068
         case 1:
2072
         case 1:
2069
-          return 'g'
2070
-          break
2073
+          return "g";
2074
+          break;
2071
         case 2:
2075
         case 2:
2072
-          return 'ml'
2073
-          break
2076
+          return "ml";
2077
+          break;
2074
       }
2078
       }
2075
     },
2079
     },
2076
     printThisPage() {
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
       const style =
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
       if (this.org_template_info.template_id == 1) {
2087
       if (this.org_template_info.template_id == 1) {
2084
         printJS({
2088
         printJS({
2085
-          printable: 'dialysis-print-box',
2086
-          type: 'html',
2089
+          printable: "dialysis-print-box",
2090
+          type: "html",
2087
           style: style,
2091
           style: style,
2088
           scanStyles: false
2092
           scanStyles: false
2089
-        })
2093
+        });
2090
       } else if (
2094
       } else if (
2091
         this.org_template_info.template_id == 2 ||
2095
         this.org_template_info.template_id == 2 ||
2092
         this.org_template_info.template_id == 0
2096
         this.org_template_info.template_id == 0
2093
       ) {
2097
       ) {
2094
         printJS({
2098
         printJS({
2095
-          printable: 'dialysis-print-box-1',
2096
-          type: 'html',
2099
+          printable: "dialysis-print-box-1",
2100
+          type: "html",
2097
           style: style,
2101
           style: style,
2098
           scanStyles: false
2102
           scanStyles: false
2099
-        })
2103
+        });
2100
       }
2104
       }
2101
     },
2105
     },
2102
     getNumber() {
2106
     getNumber() {
2104
         return (
2108
         return (
2105
           this.patientInfo.DialysisSchedule.device_zone.name +
2109
           this.patientInfo.DialysisSchedule.device_zone.name +
2106
           this.dialysisOrder.DeviceNumber.number
2110
           this.dialysisOrder.DeviceNumber.number
2107
-        )
2111
+        );
2108
       } else {
2112
       } else {
2109
         return (
2113
         return (
2110
           this.patientInfo.DialysisSchedule.device_zone.name +
2114
           this.patientInfo.DialysisSchedule.device_zone.name +
2111
           this.patientInfo.DialysisSchedule.device_number.number
2115
           this.patientInfo.DialysisSchedule.device_number.number
2112
-        )
2116
+        );
2113
       }
2117
       }
2114
     },
2118
     },
2115
 
2119
 
2116
     getXuserName(id) {
2120
     getXuserName(id) {
2117
       if (id <= 0) {
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
       if (leng == 0) {
2129
       if (leng == 0) {
2126
-        return name
2130
+        return name;
2127
       }
2131
       }
2128
       for (let index = 0; index < leng; index++) {
2132
       for (let index = 0; index < leng; index++) {
2129
         if (this.users[index].id == id) {
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
     setAdminUserES(id) {
2140
     setAdminUserES(id) {
2137
       if (id == 0) {
2141
       if (id == 0) {
2138
-        return ''
2142
+        return "";
2139
       }
2143
       }
2140
       if (id in this.operatorMaps) {
2144
       if (id in this.operatorMaps) {
2141
-        return this.operatorMaps[id].url
2145
+        return this.operatorMaps[id].url;
2142
       } else {
2146
       } else {
2143
-        return ''
2147
+        return "";
2144
       }
2148
       }
2145
     },
2149
     },
2146
     modeName(mode_id) {
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
         ? this.modeOptions[mode_id].name
2153
         ? this.modeOptions[mode_id].name
2150
-        : ''
2154
+        : "";
2151
     },
2155
     },
2152
     getDialysisRecord() {
2156
     getDialysisRecord() {
2153
-      this.loading = true
2157
+      this.loading = true;
2154
 
2158
 
2155
       // getDialysisRecord(this.queryParams).then(response => {
2159
       // getDialysisRecord(this.queryParams).then(response => {
2156
-      var response = this.childResponse
2160
+      var response = this.childResponse;
2157
       if (response.data.state == 1) {
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
         this.patientInfo.birth = uParseTime(
2167
         this.patientInfo.birth = uParseTime(
2164
           this.patientInfo.birthday,
2168
           this.patientInfo.birthday,
2165
-          '{y}-{m}-{d}'
2166
-        )
2169
+          "{y}-{m}-{d}"
2170
+        );
2167
         // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
2171
         // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
2168
         if (response.data.data.patientInfo.first_dialysis_date != 0) {
2172
         if (response.data.data.patientInfo.first_dialysis_date != 0) {
2169
           this.patientInfo.first_dialysis_date = uParseTime(
2173
           this.patientInfo.first_dialysis_date = uParseTime(
2170
             response.data.data.patientInfo.first_dialysis_date,
2174
             response.data.data.patientInfo.first_dialysis_date,
2171
-            '{y}-{m}-{d}'
2172
-          )
2175
+            "{y}-{m}-{d}"
2176
+          );
2173
         } else {
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
         this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
2183
         this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
2180
           this.predialysis.blood_access_part_opera_id
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
         this.dialysisOrder =
2188
         this.dialysisOrder =
2185
           response.data.data.dialysisOrder === null
2189
           response.data.data.dialysisOrder === null
2186
             ? null
2190
             ? null
2187
-            : response.data.data.dialysisOrder
2191
+            : response.data.data.dialysisOrder;
2188
 
2192
 
2189
         if (this.operators.length > 0) {
2193
         if (this.operators.length > 0) {
2190
-          var operatorsLen = this.operators.length
2194
+          var operatorsLen = this.operators.length;
2191
           for (var index = 0; index < operatorsLen; index++) {
2195
           for (var index = 0; index < operatorsLen; index++) {
2192
             this.$set(
2196
             this.$set(
2193
               this.operatorMaps,
2197
               this.operatorMaps,
2194
               this.operators[index].creator,
2198
               this.operators[index].creator,
2195
               this.operators[index]
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
         this.afterdialysis.complications = this.afterdialysis.complication.split(
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
         for (let index = 0; index < acllen; index++) {
2224
         for (let index = 0; index < acllen; index++) {
2221
           if (
2225
           if (
2222
             this.complications.indexOf(
2226
             this.complications.indexOf(
2225
           ) {
2229
           ) {
2226
             this.afterdialysis.complications_index.push(
2230
             this.afterdialysis.complications_index.push(
2227
               this.afterdialysis.complications[index]
2231
               this.afterdialysis.complications[index]
2228
-            )
2232
+            );
2229
           } else if (
2233
           } else if (
2230
             this.complications.indexOf(
2234
             this.complications.indexOf(
2231
               this.afterdialysis.complications[index]
2235
               this.afterdialysis.complications[index]
2236
           ) {
2240
           ) {
2237
             this.afterdialysis.complications_other.push(
2241
             this.afterdialysis.complications_other.push(
2238
               this.afterdialysis.complications[index]
2242
               this.afterdialysis.complications[index]
2239
-            )
2243
+            );
2240
           }
2244
           }
2241
         }
2245
         }
2242
         this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
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
         this.receiverTreatmentAccess =
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
         for (let index = 0; index < rwLen; index++) {
2257
         for (let index = 0; index < rwLen; index++) {
2254
           if (
2258
           if (
2255
             this.replacementWays[index].id == this.prescription.replacement_way
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
         this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
2266
         this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
2263
           this.prescription.dialysate_formulation
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
         for (let index = 0; index < paLen; index++) {
2272
         for (let index = 0; index < paLen; index++) {
2269
           if (
2273
           if (
2270
             this.perfusionApparatus[index].id ==
2274
             this.perfusionApparatus[index].id ==
2272
           ) {
2276
           ) {
2273
             this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
2277
             this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
2274
               index
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
         if (
2288
         if (
2285
-          typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
2289
+          typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
2286
           this.anticoagulantsConfit[thisALID] != null
2290
           this.anticoagulantsConfit[thisALID] != null
2287
         ) {
2291
         ) {
2288
           this.prescription.anticoagulant_name = this.anticoagulantsConfit[
2292
           this.prescription.anticoagulant_name = this.anticoagulantsConfit[
2289
             thisALID
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
         if (this.monitors.length <= 6) {
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
           for (let index = 0; index < nl; index++) {
2307
           for (let index = 0; index < nl; index++) {
2304
             if (
2308
             if (
2305
               this.monitors[index] == undefined ||
2309
               this.monitors[index] == undefined ||
2306
               this.monitors[index].length <= 0
2310
               this.monitors[index].length <= 0
2307
             ) {
2311
             ) {
2308
-              this.monitors2.push([])
2312
+              this.monitors2.push([]);
2309
             } else {
2313
             } else {
2310
-              continue
2314
+              continue;
2311
             }
2315
             }
2312
           }
2316
           }
2313
         }
2317
         }
2314
 
2318
 
2315
-        var tempmonitorflag = true
2319
+        var tempmonitorflag = true;
2316
         for (let index = 0; index < this.monitors.length; index++) {
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
           if (Object.keys(monitor).length > 0 && index > 1) {
2323
           if (Object.keys(monitor).length > 0 && index > 1) {
2320
             if (monitor.operate_time == this.dialysisOrder.end_time) {
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
             if (tempmonitorflag && index == this.monitors.length - 1) {
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
         for (const index in this.advices) {
2339
         for (const index in this.advices) {
2336
           if (this.advices[index].parent_id == 0) {
2340
           if (this.advices[index].parent_id == 0) {
2337
-            continue
2341
+            continue;
2338
           }
2342
           }
2339
           if (!(this.advices[index].parent_id in childMap)) {
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
         for (const index in this.advices) {
2350
         for (const index in this.advices) {
2347
           if (this.advices[index].parent_id > 0) {
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
           if (item.id in childMap) {
2355
           if (item.id in childMap) {
2352
-            item.children = childMap[item.id]
2356
+            item.children = childMap[item.id];
2353
           } else {
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
         for (var i = 0; i < halfLen; i++) {
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
         if (halfLen < 5) {
2372
         if (halfLen < 5) {
2369
-          var nl = 5 - leftAdvice.length
2373
+          var nl = 5 - leftAdvice.length;
2370
           for (let index = 0; index < nl; index++) {
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
           for (let index = 0; index < nl; index++) {
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
         for (var i = 0; i < halfLen; i++) {
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
         this.doctor_advices =
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
         for (let index = 0; index < this.doctor_advices.length; index++) {
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
         // if (this.doctor_advices.length > 0) {
2397
         // if (this.doctor_advices.length > 0) {
2470
         //   }
2473
         //   }
2471
         // }
2474
         // }
2472
         if (this.doctor_advices.length <= 6) {
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
           for (let index = 0; index < nl; index++) {
2479
           for (let index = 0; index < nl; index++) {
2477
             if (
2480
             if (
2478
               this.doctor_advices[index] == undefined ||
2481
               this.doctor_advices[index] == undefined ||
2479
               this.doctor_advices[index].length <= 0
2482
               this.doctor_advices[index].length <= 0
2480
             ) {
2483
             ) {
2481
-              this.doctor_advices.push([])
2484
+              this.doctor_advices.push([]);
2482
             } else {
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
         if (this.totollength > 18) {
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
           for (let index = 0; index < this.doctor_advices.length; index++) {
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
             if (temp_advice_length > index) {
2498
             if (temp_advice_length > index) {
2496
-              doctor_advices_1.push(element)
2499
+              doctor_advices_1.push(element);
2497
             } else {
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
       } else {
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
     bloodAccessParOperaName(id) {
2516
     bloodAccessParOperaName(id) {
2514
       if (id in this.bloodAccessParOpera) {
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
     dialysateFormulationName(id) {
2522
     dialysateFormulationName(id) {
2520
       if (id in this.dialysateFormulationOptions) {
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
     getAge: function(val) {
2528
     getAge: function(val) {
2526
       if (
2529
       if (
2528
         this.org_template_info.template_id == 0
2531
         this.org_template_info.template_id == 0
2529
       ) {
2532
       ) {
2530
         if (val.age == 0) {
2533
         if (val.age == 0) {
2531
-          return jsGetAge(val.birth, '-')
2534
+          return jsGetAge(val.birth, "-");
2532
         } else {
2535
         } else {
2533
-          return val.age
2536
+          return val.age;
2534
         }
2537
         }
2535
       } else {
2538
       } else {
2536
-        return jsGetAge(val.birth, '-')
2539
+        return jsGetAge(val.birth, "-");
2537
       }
2540
       }
2538
     },
2541
     },
2539
     newAdviceGroupObject: function() {
2542
     newAdviceGroupObject: function() {
2548
           // exec_time: 0,
2551
           // exec_time: 0,
2549
           // checker: 0,
2552
           // checker: 0,
2550
         }
2553
         }
2551
-      )
2554
+      );
2552
     },
2555
     },
2553
     getFloat: function(x) {
2556
     getFloat: function(x) {
2554
       if (x == 0) {
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
         if (rs <= 0) {
2564
         if (rs <= 0) {
2562
-          rs = s.length
2563
-          s += '.'
2565
+          rs = s.length;
2566
+          s += ".";
2564
         }
2567
         }
2565
         while (s.length <= rs + 1) {
2568
         while (s.length <= rs + 1) {
2566
-          s += '0'
2569
+          s += "0";
2567
         }
2570
         }
2568
-        return s
2571
+        return s;
2569
       } else {
2572
       } else {
2570
-        return '0.0'
2573
+        return "0.0";
2571
       }
2574
       }
2572
     }
2575
     }
2573
   },
2576
   },
2574
   watch: {
2577
   watch: {
2575
-    'patientInfo.gender': function() {
2578
+    "patientInfo.gender": function() {
2576
       if (this.patientInfo.gender == 1) {
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
       } else if (this.patientInfo.gender == 2) {
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
       } else {
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
       if (this.patientInfo.source == 1) {
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
       } else if (this.patientInfo.source == 2) {
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
       } else {
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
     var xtuser = this.$store.getters.xt_user
2616
     var xtuser = this.$store.getters.xt_user
2614
     this.orgname = xtuser.org.org_name
2617
     this.orgname = xtuser.org.org_name
2615
     // this.orgname = "遂溪方济医院";
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
     this.blood_access_part_opera = getDataConfig(
2626
     this.blood_access_part_opera = getDataConfig(
2624
-      'hemodialysis',
2625
-      'vascular_access_desc'
2626
-    )
2627
+      "hemodialysis",
2628
+      "vascular_access_desc"
2629
+    );
2627
 
2630
 
2628
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
2631
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
2629
 
2632
 
2630
     var bloodAccessParOpera = getDataConfig(
2633
     var bloodAccessParOpera = getDataConfig(
2631
-      'hemodialysis',
2632
-      'vascular_access_desc'
2633
-    )
2634
+      "hemodialysis",
2635
+      "vascular_access_desc"
2636
+    );
2634
     for (var key in bloodAccessParOpera) {
2637
     for (var key in bloodAccessParOpera) {
2635
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2638
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2636
-        bloodAccessParOpera[key]
2639
+        bloodAccessParOpera[key];
2637
     }
2640
     }
2638
 
2641
 
2639
     var dialysateFormulationOptions = getDataConfig(
2642
     var dialysateFormulationOptions = getDataConfig(
2640
-      'hemodialysis',
2641
-      'dialysate_formulation'
2642
-    )
2643
+      "hemodialysis",
2644
+      "dialysate_formulation"
2645
+    );
2643
     for (var key in dialysateFormulationOptions) {
2646
     for (var key in dialysateFormulationOptions) {
2644
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
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
     if (
2655
     if (
2653
-      typeof xtdate === 'string' &&
2656
+      typeof xtdate === "string" &&
2654
       xtdate.length > 0 &&
2657
       xtdate.length > 0 &&
2655
-      typeof xtno === 'string' &&
2658
+      typeof xtno === "string" &&
2656
       xtno.length > 0
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
     } else {
2664
     } else {
2662
-      this.$message.error('参数不齐')
2663
-      return false
2665
+      this.$message.error("参数不齐");
2666
+      return false;
2664
     }
2667
     }
2665
   }
2668
   }
2666
-}
2669
+};
2667
 </script>
2670
 </script>
2668
 
2671
 
2669
 <style>
2672
 <style>

+ 1 - 1
src/xt_pages/management/components/QualityForm.vue View File

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

+ 101 - 44
src/xt_pages/management/components/UserForm.vue View File

264
                 v-model="userform.classtype"
264
                 v-model="userform.classtype"
265
                 placeholder="请选择"
265
                 placeholder="请选择"
266
                 class="a"
266
                 class="a"
267
+                style="width:150px"
267
               >
268
               >
268
                 <el-option
269
                 <el-option
269
                   v-for="item in classType"
270
                   v-for="item in classType"
277
           </el-col>
278
           </el-col>
278
           <el-col :span="8">
279
           <el-col :span="8">
279
             <el-form-item label="分区:">
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
                 <el-option
287
                 <el-option
282
                   v-for="item in zones"
288
                   v-for="item in zones"
283
                   :key="item.id"
289
                   :key="item.id"
309
                 :fetch-suggestions="querySearchAsync"
315
                 :fetch-suggestions="querySearchAsync"
310
                 placeholder="请输入内容"
316
                 placeholder="请输入内容"
311
                 @select="handleSelect"
317
                 @select="handleSelect"
318
+                style="width:150px"
312
               >
319
               >
313
                 <i class="el-icon-search el-input__icon" slot="suffix"></i>
320
                 <i class="el-icon-search el-input__icon" slot="suffix"></i>
314
                 <template slot-scope="{ item }">
321
                 <template slot-scope="{ item }">
338
           <el-col :span="8">
345
           <el-col :span="8">
339
             <el-form-item label="传染病:">
346
             <el-form-item label="传染病:">
340
               <el-input
347
               <el-input
341
-                style="width:180px"
342
                 v-model="userform.contagion"
348
                 v-model="userform.contagion"
343
                 :disabled="true"
349
                 :disabled="true"
350
+                style="width:150px"
344
               ></el-input>
351
               ></el-input>
345
             </el-form-item>
352
             </el-form-item>
346
           </el-col>
353
           </el-col>
352
                 v-model="userform.dialysis_mode"
359
                 v-model="userform.dialysis_mode"
353
                 placeholder="请选择"
360
                 placeholder="请选择"
354
                 class="a"
361
                 class="a"
362
+                style="width:150px"
355
               >
363
               >
356
                 <el-option
364
                 <el-option
357
                   v-for="item in treatmode"
365
                   v-for="item in treatmode"
370
                 value-format="yyyy-MM-dd HH:mm"
378
                 value-format="yyyy-MM-dd HH:mm"
371
                 placeholder="选择时间"
379
                 placeholder="选择时间"
372
                 v-model="userform.start_time"
380
                 v-model="userform.start_time"
373
-                style="width:200px;"
381
+                style="width:150px"
374
               ></el-date-picker>
382
               ></el-date-picker>
375
             </el-form-item>
383
             </el-form-item>
376
           </el-col>
384
           </el-col>
382
                 value-format="yyyy-MM-dd HH:mm"
390
                 value-format="yyyy-MM-dd HH:mm"
383
                 placeholder="选择时间"
391
                 placeholder="选择时间"
384
                 v-model="userform.end_time"
392
                 v-model="userform.end_time"
385
-                style="width:200px;"
393
+                style="width:150px"
386
               ></el-date-picker>
394
               ></el-date-picker>
387
             </el-form-item>
395
             </el-form-item>
388
           </el-col>
396
           </el-col>
391
           <el-col :span="8">
399
           <el-col :span="8">
392
             <el-form-item label="透析时长:">
400
             <el-form-item label="透析时长:">
393
               <el-input
401
               <el-input
394
-                style="width:180px"
402
+                style="width:150px"
395
                 v-model="userform.dialysis_time"
403
                 v-model="userform.dialysis_time"
396
               ></el-input>
404
               ></el-input>
397
             </el-form-item>
405
             </el-form-item>
399
           <el-col :span="8">
407
           <el-col :span="8">
400
             <el-form-item label="实际超滤量:">
408
             <el-form-item label="实际超滤量:">
401
               <el-input
409
               <el-input
402
-                style="width:180px"
410
+                style="width:150px"
403
                 v-model="userform.hyperfiltratio"
411
                 v-model="userform.hyperfiltratio"
404
               ></el-input>
412
               ></el-input>
405
             </el-form-item>
413
             </el-form-item>
407
           <el-col :span="8">
415
           <el-col :span="8">
408
             <el-form-item label="体重减少:">
416
             <el-form-item label="体重减少:">
409
               <el-input
417
               <el-input
410
-                style="width:180px"
418
+                style="width:150px"
411
                 v-model="userform.weight_loss"
419
                 v-model="userform.weight_loss"
412
               ></el-input>
420
               ></el-input>
413
             </el-form-item>
421
             </el-form-item>
417
           <el-col :span="8">
425
           <el-col :span="8">
418
             <el-form-item label="预警值:">
426
             <el-form-item label="预警值:">
419
               <el-input
427
               <el-input
420
-                style="width:180px"
428
+                style="width:150px"
421
                 v-model="userform.warning_value"
429
                 v-model="userform.warning_value"
422
               ></el-input>
430
               ></el-input>
423
             </el-form-item>
431
             </el-form-item>
425
           <el-col :span="8">
433
           <el-col :span="8">
426
             <el-form-item label="使用次数:">
434
             <el-form-item label="使用次数:">
427
               <el-input
435
               <el-input
428
-                style="width:180px"
436
+                style="width:150px"
429
                 v-model="userform.user_total"
437
                 v-model="userform.user_total"
430
               ></el-input>
438
               ></el-input>
431
             </el-form-item>
439
             </el-form-item>
488
           </el-col>
496
           </el-col>
489
           <el-col :span="8">
497
           <el-col :span="8">
490
             <el-form-item label="消毒方式:">
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
                 <el-option
504
                 <el-option
493
                   v-for="item in disinfectType"
505
                   v-for="item in disinfectType"
494
                   :key="item.id"
506
                   :key="item.id"
504
               <el-select
516
               <el-select
505
                 v-model="userform.disinfectant_type"
517
                 v-model="userform.disinfectant_type"
506
                 placeholder="请选择"
518
                 placeholder="请选择"
519
+                style="width:150px"
507
               >
520
               >
508
                 <el-option
521
                 <el-option
509
                   v-for="item in disinfectantType"
522
                   v-for="item in disinfectantType"
517
           </el-col>
530
           </el-col>
518
         </el-row>
531
         </el-row>
519
         <el-row>
532
         <el-row>
533
+          <el-col :span="2" style="visibility: hidden;">
534
+            <el-form-item label="②液路"></el-form-item>
535
+          </el-col>
520
           <el-col :span="8">
536
           <el-col :span="8">
521
             <el-form-item label="消毒状态:">
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
                 <el-option
543
                 <el-option
524
                   v-for="item in disinfection"
544
                   v-for="item in disinfection"
525
                   :key="item.id"
545
                   :key="item.id"
550
           </el-col>
570
           </el-col>
551
           <el-col :span="8">
571
           <el-col :span="8">
552
             <el-form-item label="消毒方式:">
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
                 <el-option
578
                 <el-option
555
                   v-for="item in sterilizeType"
579
                   v-for="item in sterilizeType"
556
                   :key="item.id"
580
                   :key="item.id"
563
           </el-col>
587
           </el-col>
564
           <el-col :span="8">
588
           <el-col :span="8">
565
             <el-form-item label="消毒液:">
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
                 <el-option
595
                 <el-option
568
                   v-for="item in fluidPathType"
596
                   v-for="item in fluidPathType"
569
                   :key="item.id"
597
                   :key="item.id"
576
           </el-col>
604
           </el-col>
577
         </el-row>
605
         </el-row>
578
         <el-row>
606
         <el-row>
607
+          <el-col :span="2" style="visibility: hidden;">
608
+            <el-form-item label="②液路"></el-form-item>
609
+          </el-col>
579
           <el-col :span="8">
610
           <el-col :span="8">
580
             <el-form-item label="消毒状态:">
611
             <el-form-item label="消毒状态:">
581
               <el-select
612
               <el-select
582
                 v-model="userform.disinfection_status"
613
                 v-model="userform.disinfection_status"
583
                 placeholder="请选择"
614
                 placeholder="请选择"
615
+                style="width:150px"
584
               >
616
               >
585
                 <el-option
617
                 <el-option
586
                   v-for="item in disinfection"
618
                   v-for="item in disinfection"
610
           <el-col :span="8">
642
           <el-col :span="8">
611
             <el-form-item label="消毒时长:">
643
             <el-form-item label="消毒时长:">
612
               <el-input
644
               <el-input
613
-                style="width:135px"
645
+                style="width:140px"
614
                 v-model="userform.longtime"
646
                 v-model="userform.longtime"
615
               ></el-input
647
               ></el-input
616
               >分钟
648
               >分钟
624
                 value-format="yyyy-MM-dd HH:mm"
656
                 value-format="yyyy-MM-dd HH:mm"
625
                 placeholder="选择时间"
657
                 placeholder="选择时间"
626
                 v-model="userform.starttime"
658
                 v-model="userform.starttime"
627
-                style="width:200px;"
659
+                style="width:150px"
628
               ></el-date-picker>
660
               ></el-date-picker>
629
             </el-form-item>
661
             </el-form-item>
630
           </el-col>
662
           </el-col>
636
                 value-format="yyyy-MM-dd HH:mm"
668
                 value-format="yyyy-MM-dd HH:mm"
637
                 placeholder="选择时间"
669
                 placeholder="选择时间"
638
                 v-model="userform.endtime"
670
                 v-model="userform.endtime"
639
-                style="width:200px;"
671
+                style="width:150px"
640
               ></el-date-picker>
672
               ></el-date-picker>
641
             </el-form-item>
673
             </el-form-item>
642
           </el-col>
674
           </el-col>
643
         </el-row>
675
         </el-row>
644
         <el-row>
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
           </el-col>
686
           </el-col>
651
           <el-col :span="8">
687
           <el-col :span="8">
652
             <el-form-item label="名称:">
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
                 <el-option
694
                 <el-option
655
                   v-for="item in names"
695
                   v-for="item in names"
656
                   :key="item.id"
696
                   :key="item.id"
661
               </el-select>
701
               </el-select>
662
             </el-form-item>
702
             </el-form-item>
663
           </el-col>
703
           </el-col>
664
-          <el-col :span="6">
704
+          <el-col :span="8">
665
             <el-form-item label="规格:">
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
             </el-form-item>
708
             </el-form-item>
669
             <span style="color:red" v-show="showone"
709
             <span style="color:red" v-show="showone"
687
           </el-col>
727
           </el-col>
688
         </el-row>
728
         </el-row>
689
         <el-row>
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
           </el-col>
740
           </el-col>
699
           <el-col :span="8">
741
           <el-col :span="8">
700
             <el-form-item label="名称:">
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
                 <el-option
748
                 <el-option
703
                   v-for="item in germs"
749
                   v-for="item in germs"
704
                   :key="item.id"
750
                   :key="item.id"
705
                   :label="item.name"
751
                   :label="item.name"
706
                   :value="item.id"
752
                   :value="item.id"
707
-                  style="width:200px"
753
+                  style="width:150px"
708
                 ></el-option>
754
                 ></el-option>
709
               </el-select>
755
               </el-select>
710
             </el-form-item>
756
             </el-form-item>
711
           </el-col>
757
           </el-col>
712
-          <el-col :span="6">
758
+          <el-col :span="8">
713
             <el-form-item label="数量:">
759
             <el-form-item label="数量:">
714
               <el-input
760
               <el-input
715
-                style="width:100px"
761
+                style="width:150px"
716
                 v-model="userform.germ_number"
762
                 v-model="userform.germ_number"
717
               ></el-input
763
               ></el-input
718
               >支
764
               >支
720
           </el-col>
766
           </el-col>
721
         </el-row>
767
         </el-row>
722
         <el-row>
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
           </el-col>
779
           </el-col>
732
-          <el-col :span="10">
780
+          <el-col :span="8">
733
             <el-form-item label="签名:">
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
                 <el-option
787
                 <el-option
736
                   v-for="item in autograph"
788
                   v-for="item in autograph"
737
                   :key="item.admin_user_id"
789
                   :key="item.admin_user_id"
2252
     margin-left: 15px;
2304
     margin-left: 15px;
2253
   }
2305
   }
2254
 }
2306
 }
2307
+#user-form {
2308
+  .el-dialog__footer {
2309
+    text-align: right;
2310
+  }
2311
+}
2255
 </style>
2312
 </style>

+ 20 - 20
src/xt_pages/management/home.vue View File

3447
               ].id
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
               .catch(e => {})
3473
               .catch(e => {})
3474
           })
3474
           })
3475
           .catch(() => {
3475
           .catch(() => {

File diff suppressed because it is too large
+ 1622 - 1292
src/xt_pages/user/components/EditGroupAdvice.vue


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


+ 16 - 2
src/xt_pages/workforce/components/tableData.vue View File

2027
   border-color: #d0d3da;
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
 </style>
2047
 </style>