Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 4 months ago
parent
commit
7af4715353

+ 8 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -388,13 +388,13 @@
388 388
           <span class="unit">{{ ultrafiltration != "0" ? "L" : "" }}</span>
389 389
         </li>
390 390
 
391
-        <li v-if="isShow('电导度')">
391
+        <!-- <li v-if="isShow('电导度')">
392 392
           <label>电导度 : </label>
393 393
           <span class="content">{{
394 394
             conductivity != "0" ? conductivity : ""
395 395
           }}</span>
396 396
           <span class="unit">{{ conductivity != "0" ? "mS/m" : "" }}</span>
397
-        </li>
397
+        </li> -->
398 398
 
399 399
         <li v-if="isShow('置换液') && dialysis_mode == 'HDF'">
400 400
           <label
@@ -419,6 +419,12 @@
419 419
           <span class="unit"></span>
420 420
         </li>
421 421
 
422
+        <li v-if="isShow('电导度')">
423
+          <label>电导度: </label>
424
+          <span class="content">{{ this.prescription.conduct }}</span>
425
+          <span class="unit"></span>
426
+        </li>
427
+
422 428
         <li v-if="isShow('血管通路')">
423 429
           <label>血管通路: </label>
424 430
           <span class="content">{{ blood_access }}</span>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

@@ -49,7 +49,7 @@
49 49
           <el-col :span="8" v-if="isShow('实际超滤量')">
50 50
             <el-form-item
51 51
               label="实际超滤量(ml): " :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')"
52
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10495 || this.$store.getters.xt_user.template_info.org_id == 10558 || this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id == 10599 || this.$store.getters.xt_user.template_info.org_id == 10612 || this.$store.getters.xt_user.template_info.org_id == 10617 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10693  || this.$store.getters.xt_user.template_info.org_id == 10697 || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10635 || this.$store.getters.xt_user.template_info.org_id == 10721 || this.$store.getters.xt_user.template_info.org_id == 10727"  >
52
+              v-if="(this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10495 || this.$store.getters.xt_user.template_info.org_id == 10558 || this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id == 10599 || this.$store.getters.xt_user.template_info.org_id == 10612 || this.$store.getters.xt_user.template_info.org_id == 10617 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10693  || this.$store.getters.xt_user.template_info.org_id == 10697 || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10635 || this.$store.getters.xt_user.template_info.org_id == 10721 || this.$store.getters.xt_user.template_info.org_id == 10727) && this.$store.getters.xt_user.template_info.org_id != 10624"  >
53 53
               <el-input v-model="form.actual_ultrafiltration"></el-input>
54 54
             </el-form-item>
55 55
             <el-form-item label="实际超滤量(L): " v-else :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')">

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

@@ -3305,7 +3305,7 @@ mu
3305 3305
         this.pre = pre
3306 3306
         // console.log("pre1", pre);
3307 3307
         this.getPermission()
3308
-        if(this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id == 10726 || this.$store.getters.xt_user.template_info.org_id == 10727  || this.$store.getters.xt_user.template_info.org_id == 10731){
3308
+        if(this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id == 10726 || this.$store.getters.xt_user.template_info.org_id == 10727  || this.$store.getters.xt_user.template_info.org_id == 10731 || this.$store.getters.xt_user.template_info.org_id == 10735){
3309 3309
           this.getPatientBefor()
3310 3310
         }
3311 3311
 

+ 9 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -2869,10 +2869,17 @@ export default {
2869 2869
 
2870 2870
         var resp = rs.data.data;
2871 2871
 
2872
-        this.form.operate_time = resp.monitor.operate_time
2872
+        //针对胶州少海医院
2873
+        if(this.org_id == 10735){
2874
+          this.form.operate_time = resp.monitor.operate_time
2875
+          ? (resp.monitor.operate_time + 1800) * 1000
2876
+          : Date.parse(new Date());
2877
+        }else{
2878
+          this.form.operate_time = resp.monitor.operate_time
2873 2879
           ? (resp.monitor.operate_time + 3600) * 1000
2874 2880
           : Date.parse(new Date());
2875
-
2881
+        }
2882
+      
2876 2883
 
2877 2884
         this.form.temperature = ""
2878 2885
 

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

@@ -179,10 +179,10 @@ export default {
179 179
             //   name: '3-3',
180 180
             //   label: '体格检查新'
181 181
             // },
182
-            // {
183
-            //   name: '3-5',
184
-            //   label: '病程记录新'
185
-            // },
182
+            {
183
+              name: '3-5',
184
+              label: '病程记录新'
185
+            },
186 186
             {
187 187
               name: '1-11',
188 188
               label: '首次病程记录'

+ 13 - 61
src/xt_pages/user/courseOfDisease_new.vue View File

@@ -180,6 +180,7 @@
180 180
             </div>
181 181
             <div style="margin:0 10px">
182 182
               <el-date-picker
183
+               @change="changStartDate"
183 184
                 v-model="start_date"
184 185
                 type="date"
185 186
                 value-format="yyyy-MM-dd"
@@ -188,6 +189,7 @@
188 189
               </el-date-picker>
189 190
               <span>-</span>
190 191
               <el-date-picker
192
+               @change="changEndDate"
191 193
                 v-model="end_date"
192 194
                 type="date"
193 195
                 value-format="yyyy-MM-dd"
@@ -204,8 +206,8 @@
204 206
               </el-button>
205 207
             </div>
206 208
           </div>
207
-          <div v-if="AuToShow = true">
208
-            <text_content @new_content="newcontent" :patient="patient" :prescriptionList="prescriptionList" :berforList="berforList" :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList"></text_content>
209
+          <div v-show="AuToShow">
210
+            <text_content @new_content="newcontent" :patient="patient" :prescriptionList="prescriptionList" :berforList="berforList" :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList" :start_date="start_date" :end_date="end_date" :patient_id="patient_id"></text_content>
209 211
           </div>
210 212
         </div>
211 213
 
@@ -332,6 +334,12 @@
332 334
       this.getlist()
333 335
     },
334 336
     methods: {
337
+      changStartDate(val){
338
+        this.start_date = val
339
+      },
340
+      changEndDate(val){
341
+        this.end_date = val
342
+      },
335 343
       datachange(val){
336 344
         if(val ==1){
337 345
           this.start_date = this.getFirstDayOfWeek(new Date())
@@ -552,8 +560,8 @@
552 560
             }
553 561
           }
554 562
         })
555
-       
556
-        this.getAutoPatientContent()
563
+         this.AuToShow = true
564
+      //  this.getAutoPatientContent()
557 565
       },
558 566
       // 本周
559 567
       getFirstDayOfWeek(date){
@@ -949,63 +957,7 @@
949 957
       getTimeOne (time) {
950 958
       return uParseTime(time, '{y}-{m}-{d}')
951 959
       },
952
-      getAutoPatientContent(){
953
-        if(this.start_date == ""){
954
-          this.$message.error("请选择开始时间")
955
-        }
956
-        if(this.end_date == ""){
957
-          this.$message.error("请选择结束时间")
958
-        }
959
-        var params = {
960
-          start_time:this.start_date,
961
-          end_time:this.end_date,
962
-          patient_id:this.patient_id,
963
-        }
964
-        console.log("start_time==============",params)
965
-       getAutoPatientContent(params).then(response=>{
966
-          if(response.data.state == 1){
967
-          
968
-            var prescription =  response.data.data.prescription
969
-            this.prescriptionList=[]
970
-            this.prescriptionList = prescription
971
-
972
-            var berfor = response.data.data.berfor
973
-            this.berforList = []
974
-            this.berforList = berfor
975
-
976
-            var monitorList  = response.data.data.monitorList
977
-            this.monitorList = []
978
-            this.monitorList = monitorList
979
-
980
-            var dryweightList = response.data.data.dryweightList
981
-
982
-            this.dryweightList = []
983
-            this.dryweightList = dryweightList
984
-
985
-            var inpectionList = response.data.data.inpectionList
986
-
987
-            this.inpectionList = []
988
-
989
-            this.inpectionList = inpectionList
990
-            
991
-            this.patient = {}
992
-            this.patient = response.data.data.patient
993
-            if(this.patient.gender == 1){
994
-               this.patient.gender_name = "男"
995
-            }
996
-            if(this.patient.gender == 2){
997
-               this.patient.gender_name = "女"
998
-            }
999
-
1000
-            this.dialysisOrderList=[]
1001
-            this.dialysisOrderList =response.data.data.dialysisOrder
1002
-
1003
-            this.AuToShow = true
1004
-           
1005
-          }
1006
-       })
1007
-
1008
-      },
960
+    
1009 961
       newcontent(val){
1010 962
         this.new_content =''
1011 963
         this.new_content = val

+ 790 - 100
src/xt_pages/user/text_content.vue View File

@@ -143,31 +143,40 @@
143 143
 
144 144
 <script>
145 145
 import { watch } from 'vue';
146
-
146
+import {getAutoPatientContent} from '@/api/patient'
147 147
 export default{
148
-  props: {
149
-    patient: {
150
-      type: Object,
151
-    },
152
-    prescriptionList:{
153
-      type:Array
154
-    },
155
-    berforList:{
156
-      type:Array
157
-    },
158
-    monitorList:{
159
-      type:Array
148
+   props: {
149
+  //   patient: {
150
+  //     type: Object,
151
+  //   },
152
+  //   prescriptionList:{
153
+  //     type:Array
154
+  //   },
155
+  //   berforList:{
156
+  //     type:Array
157
+  //   },
158
+  //   monitorList:{
159
+  //     type:Array
160
+  //   },
161
+  //   dryweightList:{
162
+  //     type:Array
163
+  //   },
164
+  //   inpectionList:{
165
+  //     type:Array
166
+  //   },
167
+  //   dialysisOrder:{
168
+  //     type:Array
169
+  //   },
170
+    start_date:{
171
+      type:String
160 172
     },
161
-    dryweightList:{
162
-      type:Array
173
+    end_date:{
174
+      type:String
163 175
     },
164
-    inpectionList:{
165
-      type:Array
166
-    },
167
-    dialysisOrder:{
168
-      type:Array
176
+    patient_id:{
177
+      type:Number
169 178
     }
170
-  },
179
+   },
171 180
   data(){
172 181
     return {
173 182
       content:'',
@@ -179,28 +188,764 @@ export default{
179 188
        name:"",
180 189
        gander:"",
181 190
        age:0,
182
-       dialysis_no:""
191
+       dialysis_no:"",
192
+       patient_new:{},
193
+       prescriptionList:[],
194
+       berforList:[],
195
+       monitorList:[],
196
+       dryweightList:[],
197
+       inpectionList:[],
198
+       dialysisOrderList:[],
199
+       patient:{},
183 200
     }
184 201
   },
185 202
   created(){
203
+   
204
+
205
+    this.getAutoPatientContent()
206
+  
207
+ 
208
+    
209
+  },
210
+  watch:{
211
+   
212
+     name:function(){
186 213
     
187
-    const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
214
+      this.$nextTick(()=>{
215
+        this.patient_new = this.patient
216
+        this.name = this.patient.name
217
+        console.log("patient-=================",this.patient_new)
218
+       })
219
+     }
220
+   
221
+  },
222
+  mounted(){
223
+   
224
+
225
+    console.log("name:",this.name)
226
+    console.log("gander:",this.gander)
227
+    console.log("age:",this.age)
228
+    console.log("dialysis_no:",this.dialysis_no)
229
+    console.log('document.getElementById3334',document.getElementById('editer'))
230
+    const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
231
+    var newListArr =[]
232
+    for(let j in this.tab){
233
+      const obj={
234
+        id:this.tab[j].id,
235
+        newlist:'newList'+j
236
+      }
237
+      newListArr.push(obj) 
238
+    }
239
+    for(let i in this.tab){
240
+      for(let j in newListArr){
241
+        if(this.tab[i].id==newListArr[j].id){
242
+          let newList = document.createElement('p');
243
+          newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
244
+          let newListItem1 = document.createElement('span');
245
+          newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
246
+          let newListItem2 = document.createElement('span');
247
+          newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
248
+          let newListItem3 = document.createElement('span');
249
+          newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
250
+          let newListItem4 = document.createElement('span');
251
+          newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
252
+          let newListItem5 = document.createElement('span');
253
+          newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
254
+          let newListItem6 = document.createElement('span');
255
+          newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
256
+          newListItem1.textContent = this.tab[i].name;
257
+          newListItem2.textContent = this.tab[i].type;
258
+          newListItem3.textContent = this.tab[i].start;
259
+          newListItem4.textContent = this.tab[i].dosage;
260
+          newListItem5.textContent = this.tab[i].pinlv;
261
+          newListItem6.textContent = this.tab[i].status;
262
+          newList.appendChild(newListItem1);
263
+          newList.appendChild(newListItem2);
264
+          newList.appendChild(newListItem3);
265
+          newList.appendChild(newListItem4);
266
+          newList.appendChild(newListItem5);
267
+          newList.appendChild(newListItem6);
268
+          iframeDoc.appendChild(newList)
269
+        }
270
+      }
271
+    }
272
+    this.$emit('new_content',this.content) 
273
+  },
274
+  methods: {
275
+    getAutoPatientContent(){
276
+        if(this.start_date == ""){
277
+          this.$message.error("请选择开始时间")
278
+        }
279
+        if(this.end_date == ""){
280
+          this.$message.error("请选择结束时间")
281
+        }
282
+        var params = {
283
+          start_time:this.start_date,
284
+          end_time:this.end_date,
285
+          patient_id:this.patient_id,
286
+        }
287
+        console.log("start_time==============",params)
288
+       getAutoPatientContent(params).then(response=>{
289
+          if(response.data.state == 1){
290
+          
291
+            var prescription =  response.data.data.prescription
292
+            var hd_total =0
293
+            var hdArr =[]
294
+            var hdf_total =0
295
+            var hdfArr=[]
296
+            var hdhp_total = 0
297
+            var hdhpArr = []
298
+            var hp_total = 0
299
+            var hpArr= []
300
+            var hf_total = 0
301
+            var hfArr = []
302
+            var scuf_total =0
303
+            var scufArr = []
304
+            var iuf_total =0
305
+            var iufArr = []
306
+            var hfhd_total =0
307
+            var hfhdArr = []
308
+
309
+            var hfhdhp_total =0
310
+            var hfhdhpArr = []
311
+
312
+            var phf_total =0
313
+            var phfArr = []
314
+
315
+         
316
+            var hdfhp_total =0
317
+            var hdfhpArr = []
318
+            var crrt_total =0
319
+            var crrtArr = []
320
+            var iufhd_total =0
321
+            var iufhdArr = []
322
+            var uf_total =0
323
+            var ufArr = []
324
+            var hdjia_total =0
325
+            var hdjiaArr = []
326
+            var ihdf_total =0
327
+            var ihdfArr = [] 
328
+            var hdgaotong_total =0
329
+            var hdgaotongArr = [] 
330
+            var cvvh_total =0
331
+            var cvvhArr = [] 
332
+
333
+            var cvvhd_total =0
334
+            var cvvhdArr = [] 
335
+
336
+            var cvvhdf_total =0
337
+            var cvvhdfArr = [] 
338
+            var petotal =0
339
+            var peArr=[]
340
+            var hpdtotal =0
341
+            var hpdArr=[]
342
+        
343
+            var hdptotal=0
344
+            var hdpArr =[]
345
+          
346
+            var hfdtotal=0
347
+            var hfdArr =[]
348
+
349
+            var hdf100total=0
350
+            var hdf100Arr =[]
351
+
352
+            var hdf600total=0
353
+            var hdf600Arr =[]
354
+
355
+            var hdf100total=0
356
+            var hdf100Arr =[]
357
+
358
+            var hdf800total=0
359
+            var hdf800Arr =[]
360
+
361
+            var hdf1000total=0
362
+            var hdf1000Arr =[]
363
+
364
+            
365
+            var hdf80total=0
366
+            var hdf80Arr =[]
367
+
368
+            var hf16total=0
369
+            var hf16Arr =[]
370
+
371
+            var hdwugantotal=0
372
+            var hdwuganArr =[]
373
+
374
+            var hdf17total=0
375
+            var hdf17Arr =[]
376
+
377
+            var hddiantotal=0
378
+            var hddianArr =[]
379
+
380
+            
381
+            var hd2total=0
382
+            var hd2Arr =[]
383
+
384
+            var total_count = 0
385
+          
386
+            var total_min = 0
387
+            var total_hour = 0
388
+            var total_hour_str =""
389
+
390
+            var dialyzerPerfusionApparatus = []
391
+            var dialyzerArr = []
392
+            var dialysisStrainerArr = []
393
+            var dialysisIrrigationArr = []
394
+
395
+            var kaliumArr= []
396
+            var sodiumArr= []
397
+            var calciumArr= []
398
+            var bicarbonateArr = []
399
+            var prescriptionSodiumArr = []
400
+
401
+            
402
+            if(prescription!=null && prescription.length>0){
403
+               total_count = prescription.length
404
+            }
405
+
406
+
407
+            if(prescription!=null && prescription.length>0){
408
+               for(let i=0;i<prescription.length;i++){
409
+                if(prescription[i].dialyzer_perfusion_apparatus!=""){
410
+                  dialyzerPerfusionApparatus.push(prescription[i].dialyzer_perfusion_apparatus)
411
+                }
412
+                 if(prescription[i].dialysis_dialyszers!=""){
413
+                  dialyzerArr.push(prescription[i].dialysis_dialyszers)
414
+                 }
415
+                 if(prescription[i].dialysis_strainer!=""){
416
+                  dialysisStrainerArr.push(prescription[i].dialysis_strainer)
417
+                 }
418
+                 if(prescription[i].dialysis_irrigation!=""){
419
+                  dialysisIrrigationArr.push(prescription[i].dialysis_irrigation)
420
+                 }
421
+                 if(prescription[i].kalium!=""){
422
+                   kaliumArr.push(prescription[i].kalium)
423
+                 }
424
+                 if(prescription[i].sodium!=""){
425
+                   sodiumArr.push(prescription[i].kalium)
426
+                 }
427
+                 if(prescription[i].calcium!=""){
428
+                  calciumArr.push(prescription[i].calcium)
429
+                 }
430
+                 if(prescription[i].bicarbonate!=""){
431
+                   bicarbonateArr.push(prescription[i].bicarbonate)
432
+                 }
433
+                 if(prescription[i].prescription_sodium!=""){
434
+                  prescriptionSodiumArr.push(prescription[i].prescription_sodium)
435
+                 }
436
+                 
437
+                  total_min +=  parseInt(prescription[i].dialysis_duration_hour *60)+ parseInt(prescription[i].dialysis_duration_minute) 
438
+                  
439
+                  if(prescription[i].mode_id == 1){
440
+                     hdArr.push(prescription[i])
441
+                  }
442
+                  if(prescription[i].mode_id == 2){
443
+                    hdfArr.push(prescription[i])
444
+                  }
445
+                  if(prescription[i].mode_id == 3){
446
+                    hdhpArr.push(prescription[i])
447
+                  }
448
+                  if(prescription[i].mode_id == 4){
449
+                     hpArr.push(prescription[i])
450
+                  }
451
+                  if(prescription[i].mode_id == 5){
452
+                     hfArr.push(prescription[i])
453
+                  }
454
+                  if(prescription[i].mode_id == 6){
455
+                     scufArr.push(prescription[i])
456
+                  }
457
+                  if(prescription[i].mode_id == 7){
458
+                     iufArr.push(prescription[i])
459
+                  }
460
+                  if(prescription[i].mode_id == 8){
461
+                     hfhdArr.push(prescription[i])
462
+                  }
463
+                  if(prescription[i].mode_id == 9){
464
+                     hfhdhpArr.push(prescription[i])
465
+                  }
466
+                  if(prescription[i].mode_id == 10){
467
+                     phfArr.push(prescription[i])
468
+                  }
469
+                  if(prescription[i].mode_id == 11){
470
+                     hfArr.push(prescription[i])
471
+                  }
472
+                  if(prescription[i].mode_id == 12){
473
+                    hdfhpArr.push(prescription[i])
474
+                  }
475
+                  if(prescription[i].mode_id == 13){
476
+                    crrtArr.push(prescription[i])
477
+                  }
478
+                  if(prescription[i].mode_id == 19){
479
+                    iufhdArr.push(prescription[i])
480
+                  }
481
+                  if(prescription[i].mode_id == 20){
482
+                    ufArr.push(prescription[i])
483
+                  }
484
+                  if(prescription[i].mode_id == 21){
485
+                    hdjiaArr.push(prescription[i])
486
+                  }
487
+                  if(prescription[i].mode_id == 24){
488
+                    ihdfArr.push(prescription[i])
489
+                  }
490
+                  if(prescription[i].mode_id == 25){
491
+                    hdgaotongArr.push(prescription[i])
492
+                  }
493
+                  if(prescription[i].mode_id == 26){
494
+                    cvvhArr.push(prescription[i])
495
+                  }
496
+                  if(prescription[i].mode_id == 27){
497
+                    cvvhdArr.push(prescription[i])
498
+                  }
499
+                  if(prescription[i].mode_id == 28){
500
+                    cvvhdfArr.push(prescription[i])
501
+                  }
502
+                  if(prescription[i].mode_id == 29){
503
+                    peArr.push(prescription[i])
504
+                  }
505
+                  if(prescription[i].mode_id == 31){
506
+                    hpdArr.push(prescription[i])
507
+                  }
508
+                  if(prescription[i].mode_id == 32){
509
+                    hdpArr.push(prescription[i])
510
+                  }
511
+                  if(prescription[i].mode_id == 33){
512
+                    hfdArr.push(prescription[i])
513
+                  }
514
+                  if(prescription[i].mode_id == 34){
515
+                    hdf100Arr.push(prescription[i])
516
+                  }
517
+                  if(prescription[i].mode_id == 35){
518
+                    hdf600Arr.push(prescription[i])
519
+                  }
520
+                  if(prescription[i].mode_id == 36){
521
+                    hdf800Arr.push(prescription[i])
522
+                  }
523
+                  if(prescription[i].mode_id == 37){
524
+                    hdf1000Arr.push(prescription[i])
525
+                  }
526
+                  if(prescription[i].mode_id == 38){
527
+                    hdf80Arr.push(prescription[i])
528
+                  }
529
+                  if(prescription[i].mode_id == 39){
530
+                    hf16Arr.push(prescription[i])
531
+                  }
532
+                  if(prescription[i].mode_id == 40){
533
+                    hdwuganArr.push(prescription[i])
534
+                  }
535
+                  if(prescription[i].mode_id == 41){
536
+                    hdf17Arr.push(prescription[i])
537
+                  }
538
+                  if(prescription[i].mode_id == 42){
539
+                    hddianArr.push(prescription[i])
540
+                  }
541
+                  if(prescription[i].mode_id == 43){
542
+                    hd2Arr.push(prescription[i])
543
+                  }
544
+
545
+               }
546
+            }
547
+           
548
+            total_hour = ((total_min/60)/total_count).toFixed(2)
549
+            total_hour_str = total_hour +"小时/次"
550
+
551
+            hd_total = hdArr.length
552
+
553
+            var hd_str = ""
554
+            if(hd_total>0){
555
+                hd_str = "HD"+hd_total +"次"
556
+            }
557
+
558
+            hdf_total = hdfArr.length
559
+
560
+            var hdf_str =""
561
+            if(hdf_total>0){
562
+              hdf_str = "HDF"+hd_total +"次"
563
+            }
564
+
565
+            hdhp_total = hdhpArr.length
566
+            var hdhp_str =""
567
+            if(hdhp_total>0){
568
+              hdhp_str = "HD+HP"+hdhp_total+"次"
569
+            }
570
+            hp_total = hpArr.length
571
+            var  hp_str= ""
572
+            if(hp_total>0){
573
+              hp_str = "HP"+hdptotal+"次"
574
+            }
575
+
576
+            hf_total = hfArr.length
577
+            var hf_str = ""
578
+            if(hf_total>0){
579
+              hf_str = "HF "+hf_total+"次"
580
+            }
581
+            var scuf_str = ""
582
+            scuf_total = scufArr.length
583
+            if(scuf_total>0){
584
+              scuf_str = "SCUF"+scuf_total+"次"
585
+            }
586
+            iuf_total = iufArr
587
+            var iuf_str= ""
588
+            if(iuf_total>0){
589
+              iuf_str = "IUF"+iuf_total+"次"
590
+            }
591
+            hfhd_total = hfhd_total
592
+            var hfhd_str= ""
593
+            if(hfhd_total>0){
594
+              hfhd_str = "HFHD"+hfhd_total+"次"
595
+            }
596
+
597
+            hfhdhp_total = hfhdhpArr
598
+            var hfhdhp_str ="" 
599
+            if(hfhdhp_total>0){
600
+              hfhdhp_str = "HFHD+HP"+hfhdhp_total+"次"
601
+            }
602
+            phf_total = phfArr
603
+            var phf_str= ""
604
+            if(phf_total>0){
605
+              phf_str = "PHF"+phf_total + "次"
606
+            }
607
+            hdfhp_total = hdfhpArr
608
+            var hdfhp_str =""
609
+            if(hdfhp_total>0){
610
+              hdfhp_str = "HDFHP"+hdfhp_total+"次"
611
+            }
612
+            crrt_total = crrtArr
613
+            var crrt_str =""
614
+            if(crrt_total>0){
615
+              crrt_str = "CRRT"+crrt_total+"次"
616
+            }
617
+            iuf_total = iufhdArr
618
+            var iuf_str = ""
619
+            if(iuf_total>0){
620
+               iuf_str = "IUF"+iuf_total+"次"
621
+            }
622
+            uf_total = ufArr
623
+            var uf_str= ""
624
+            if(uf_total>0){
625
+               uf_str = "UF"+uf_total +"次"
626
+            }
627
+           
628
+            hdjia_total = hdjiaArr
629
+            var hdjia_str =""
630
+            if(hdjia_total>0){
631
+               hdjia_str = "HD+"+hdjia_total+"次"
632
+            }
633
+
634
+            ihdf_total = ihdfArr
635
+            var ihdf_str = ""
636
+            if(ihdf_total>0){
637
+              ihdf_str = "IHDF"+ihdf_total +"次"
638
+            }
639
+            hdgaotong_total = hdgaotongArr
640
+            var hdgaotong_str = ""
641
+            if(hdgaotong_total>0){
642
+              hdgaotong_str = "HD高通"+hdgaotong_total+"次"
643
+            }
644
+            cvvh_total = cvvhArr
645
+            var cvvh_str =""
646
+            if(cvvh_total>0){
647
+              cvvh_str = "CVVH"+cvvh_total + "次"
648
+            }
649
+            cvvhd_total = cvvhdArr
650
+            var cvvhd_str = ""
651
+            if(cvvhd_total>0){
652
+              cvvhd_str = "CVVHD"+cvvhd_total+"次"
653
+            }
654
+            cvvhdf_total =cvvhdfArr
655
+            var cvvhdf_str = ""
656
+            if(cvvhdf_total>0){
657
+              cvvhdf_str="CVVHDF"+cvvhdf_total+"次"
658
+            }
659
+            petotal = peArr
660
+            var pe_str =""
661
+            if(petotal>0){
662
+              pe_str = "PE"+petotal+"次"
663
+            }
664
+            hpdtotal = hpdArr
665
+            var hpd_str =""
666
+            if(hpdtotal>0){
667
+               hpd_str = "HDP"+hpdtotal+"次"
668
+            }
669
+            hfdtotal = hfdArr
670
+            var hfd_str =""
671
+            if(hfdtotal>0){
672
+               hfd_str ="HFD"+hfdtotal +"次"
673
+            }
674
+            hdf100total = hdf1000Arr
675
+            var hdf100str = ""
676
+            if(hdf100total>0){
677
+              hdf100str = "HDF100"+hdf100total+"次"
678
+            }
679
+            hdf600total = hdf600Arr
680
+            var hdf600str = ""
681
+            if(hdf600total>0){
682
+               hdf600str = "HDF600"+hdf600total+"次"
683
+            }
684
+            hdf100total = hdf1000Arr
685
+            var hdf1000str = ""
686
+            if(hdf100total>0){
687
+              hdf1000str = "HDF1000"+hdf100total+"次"
688
+            }
689
+            hdf80total = hdf80Arr 
690
+            var hdf80str = ""
691
+            if(hdf80total>0){
692
+              hdf80str ="HDF80"+hdf80str +"次"
693
+            }
694
+            hf16total = hf16Arr
695
+            var hf16str = ""
696
+            if(hf16total>0){
697
+              hf16str = "HF16"+ hf16Arr +"次"
698
+            }
699
+            hdwugantotal = hdwuganArr
700
+            var hdwuganstr = ""
701
+            if(hdwugantotal>0){
702
+              hdwuganstr = "HD无肝素"+hdwugantotal+"次"
703
+            }
704
+            hdf17total = hdf17Arr
705
+            var hdf17str = ""
706
+            if(hdf17total>0){
707
+              hdf17str = "HDF17"+hdf17total + "次"
708
+            }
709
+            hddiantotal = hddianArr
710
+            var hddianstr = ""
711
+            if(hddiantotal>0){
712
+              hddianstr = "HD."+hddiantotal + "次"
713
+            }
714
+            var hd2str = ""
715
+            hd2total = hd2Arr
716
+            if(hd2total>0){
717
+              hd2str = "HD2"+hd2total+"次"
718
+            }
719
+
720
+            var berfor = response.data.data.berfor
721
+            this.berforList = []
722
+            this.berforList = berfor
723
+
724
+            var monitorList  = response.data.data.monitorList
725
+            this.monitorList = []
726
+            this.monitorList = monitorList
727
+
728
+            var dryweightList = response.data.data.dryweightList
729
+
730
+            this.dryweightList = []
731
+            this.dryweightList = dryweightList
732
+
733
+            var inpectionList = response.data.data.inpectionList
734
+
735
+            this.inpectionList = []
736
+
737
+            this.inpectionList = inpectionList
738
+            
739
+            this.patient = {}
740
+            var patient = response.data.data.patient
741
+            console.log("patinet-=================",patient)
742
+            if(patient.gender == 1){
743
+               patient.gender_name = "男"
744
+            }
745
+            if(patient.gender == 2){
746
+               patient.gender_name = "女"
747
+            }
748
+
749
+           
750
+            var dialysisOrderList =response.data.data.dialysisOrder
751
+            
752
+            var total_count = 0
753
+            if(dialysisOrderList!=null&&dialysisOrderList.length>0){
754
+                total_count = dialysisOrderList.length
755
+            }
756
+            total_count = this.dialysisOrderList.length
757
+
758
+
759
+          
760
+      
761
+            let dialyzerPerfusionApparatusObj={}
762
+            let dialyzerPerfusionApparatusStr = ""
763
+
764
+            let dialyzerArrObj = {}
765
+            let dialyzer_str = ""
766
+
767
+            let dialysisStrainerObj = {}
768
+            let dialysisStrainerStr = ""
769
+
770
+            let dialysisIrrigationObj = {}
771
+            let dialysisIrrigationStr = ""
772
+
773
+
774
+           
775
+
776
+            let kaliumObj = {}
777
+            let kaliumStr =""
778
+            let kalium =""
779
+
780
+            if(kaliumArr!=null && kaliumArr.length>0){
781
+               kaliumArr.forEach(item => {
782
+                kaliumObj[item] = (kaliumObj[item] + 1) || 1
783
+              })
784
+            }
785
+
786
+            if(kaliumObj!=""){
787
+              kaliumStr = JSON.stringify(kaliumObj).replace(/^{|}$/g, '')
788
+            }
789
+
790
+            if(kaliumStr!=""){
791
+              var str = kaliumStr.split(":")[0]
792
+              kalium = "钾:" + str.replace(/^"(.*)"$/, '$1')+"."+"0"+"mmol/L" + "(" +kaliumStr.split(":")[1]+")"
793
+            }
794
+
795
+           
796
+
797
+
798
+            let sodiumObj = {}
799
+            let sodiumStr =""
800
+
801
+            let sodium = ""
802
+
803
+
804
+            if(sodiumArr!=null && sodiumArr.length>0){
805
+              sodiumArr.forEach(item => {
806
+                sodiumObj[item] = (sodiumObj[item] + 1) || 1
807
+              })
808
+            }
809
+
810
+            if(sodiumObj!=""){
811
+              sodiumStr = JSON.stringify(sodiumObj).replace(/^{|}$/g, '')
812
+            }
813
+
814
+            if(sodiumStr!=""){
815
+              var str = sodiumStr.split(":")[0]
816
+              sodium = "钠:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +sodiumStr.split(":")[1]+")"
817
+            }
818
+
819
+            let calciumObj = {}
820
+            let calciumStr =""
821
+            let calcium  =""
822
+
823
+            if(calciumArr!=null && calciumArr.length>0){
824
+              calciumArr.forEach(item => {
825
+                calciumObj[item] = (calciumObj[item] + 1) || 1
826
+              })
827
+            }
828
+
829
+            if(calciumObj!=""){
830
+              calciumStr = JSON.stringify(calciumObj).replace(/^{|}$/g, '')
831
+            }
832
+
833
+            if(calciumStr!=""){
834
+               var str = calciumStr.split(":")[0]
835
+               calcium = "钙:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +calciumStr.split(":")[1]+")"
836
+            }
837
+
838
+            let bicarbonateObj = {}
839
+            let bicarbonateStr =""
840
+            let bicarbonate = ""
841
+
842
+            if(bicarbonateArr!=null && bicarbonateArr.length>0){
843
+              bicarbonateArr.forEach(item => {
844
+                bicarbonateObj[item] = (bicarbonateObj[item] + 1) || 1
845
+              })
846
+            }
847
+
848
+            if(bicarbonateObj!=""){
849
+
850
+              bicarbonateStr = JSON.stringify(bicarbonateObj).replace(/^{|}$/g, '')
851
+            }
852
+
853
+            if(bicarbonateStr!=""){
854
+               var str = bicarbonateStr.split(":")[0]
855
+               bicarbonate = "碳酸氢根:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +bicarbonateStr.split(":")[1]+")"
856
+             
857
+            }
858
+
859
+            // let prescriptionSodiumObj = {}
860
+            // let  prescriptionSodiumStr =""
861
+            // let prescriptionSodium = ""
862
+
863
+            // if(prescriptionSodiumArr!=null && prescriptionSodiumArr.length>0){
864
+            //   prescriptionSodiumArr.forEach(item => {
865
+            //     prescriptionSodiumObj[item] = (prescriptionSodiumObj[item] + 1) || 1
866
+            //   })
867
+            // }
868
+
869
+            // if(prescriptionSodiumObj!=""){
870
+            //   prescriptionSodiumStr = JSON.stringify(prescriptionSodiumObj).replace(/^{|}$/g, '')
871
+            // }
872
+            // if(prescriptionSodiumStr!=""){
873
+            //   prescriptionSodiumStr.split(":")[1]
874
+            // }
875
+
876
+            // if(prescriptionSodiumStr!=""){
877
+            //   prescriptionSodium = prescriptionSodiumStr.split(":")[1]
878
+            // }
879
+
880
+
881
+            
882
+            if(dialyzerPerfusionApparatus!=null && dialyzerPerfusionApparatus.length>0){
883
+              dialyzerPerfusionApparatus.forEach(item => {
884
+                dialyzerPerfusionApparatusObj[item] = (dialyzerPerfusionApparatusObj[item] + 1) || 1
885
+              })
886
+            }
887
+
888
+            if(dialyzerPerfusionApparatus!=null && dialyzerPerfusionApparatus.length>0){
889
+              dialyzerPerfusionApparatus.forEach(item => {
890
+                dialyzerPerfusionApparatusObj[item] = (dialyzerPerfusionApparatusObj[item] + 1) || 1
891
+              })
892
+            }
893
+           
894
+            if(dialyzerPerfusionApparatusObj!=""){
895
+              dialyzerPerfusionApparatusStr = JSON.stringify(dialyzerPerfusionApparatusObj).replace(/^{|}$/g, '')
896
+            }
897
+
898
+            if(dialyzerArr!=null && dialyzerArr.length>0){
899
+              dialyzerArr.forEach(item => {
900
+                dialyzerArrObj[item] = (dialyzerArrObj[item] + 1) || 1
901
+              })
902
+            }
903
+    
904
+            dialyzer_str = JSON.stringify(dialyzerArrObj).replace(/^{|}$/g, '')
905
+
906
+          
907
+            if(dialysisStrainerArr!=null && dialysisStrainerArr.length>0){
908
+               dialysisStrainerArr.forEach(item => {
909
+                dialysisStrainerObj[item] = (dialysisStrainerObj[item] + 1) || 1
910
+              })
911
+            }
912
+
913
+            dialysisStrainerStr =  JSON.stringify(dialysisStrainerObj).replace(/^{|}$/g, '')
914
+
915
+
916
+            if(dialysisIrrigationArr!=null && dialysisIrrigationArr.length>0){
917
+              dialysisIrrigationArr.forEach(item => {
918
+                dialysisIrrigationObj[item] = (dialysisIrrigationObj[item] + 1) || 1
919
+              })
920
+            }
921
+
922
+            dialysisIrrigationStr =  JSON.stringify(dialysisIrrigationObj).replace(/^{|}$/g, '')
923
+            
924
+           
925
+           var longAdvice = response.data.data.longAdvice
926
+
927
+
928
+
929
+
930
+          
931
+
932
+
933
+            const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
188 934
               <tr>
189
-                <th colspan="2" style="padding: 5px;">透析阶段小结(2024-12-01~2024-12-31)</th>
935
+                <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date } ~${this.end_date })</th>
190 936
               </tr>
191 937
               <tr>
192 938
                 <td width="130" style="padding: 5px;">基本信息</td>
193 939
                 <td style="padding: 5px;">
194
-                  <span>姓名:${this.name } </span>  <span>性别:${ this.patient.gender_name  }</span>  <span>年龄:${ this.patient.age }</span>  <span>透析号:${ this.patient.dialysis_no }</span>
940
+                  <span>姓名:${patient.name } </span>  <span>性别:${ patient.gender_name  }</span>  <span>年龄:${ patient.age }</span>  <span>透析号:${ patient.dialysis_no }</span>
195 941
                 </td>
196 942
               </tr>
197 943
               <tr>
198 944
                 <td style="align-items: center;padding: 5px;">透析处方</td>
199 945
                 <td style='padding:5px'>
200
-                  <p style='font-weight: bold;'>总次数:1次;</p>
201
-                  <p style='margin-bottom: 10px;' >其中HD1次,平均4.00小时/次,使用空心纤维血液透析器B-18BHF(B-18BHF);</p>
202
-                  <p style='font-weight: bold;'>总次数:1次;</p>
203
-                  <p style='margin-bottom: 10px;'>钾:2.0mmol/L;钙:1.5mmol/L;碳酸氢根:32mmol/L;处方钠:138~138mmol/L</p>
946
+                  <p style='font-weight: bold;'>总次数:${ total_count } ;</p>
947
+                  <p style='margin-bottom: 10px;' >其中${hd_str}${hdf_str}${hdhp_str}${hp_str}${hf_str}${scuf_str}${iuf_str}${hfhd_str}${hfhdhp_str}${phf_str}${hdfhp_str}${crrt_str}${iuf_str}${uf_str}${hdjia_str}${ihdf_str}${hdgaotong_str}${cvvh_str}${cvvhdf_str}${pe_str}${hpd_str}${hfd_str}${hdf100str}${hdf600str}${hdf1000str}${hdf80str}${hf16str}${hdwuganstr}${hdf17str}${hddianstr}${hd2str},平均${total_hour_str},使用${dialyzerPerfusionApparatusStr}${dialyzer_str}${dialysisIrrigationStr}${dialysisStrainerStr};</p>
948
+                  <p style='margin-bottom: 10px;'>${kalium};${sodium};${bicarbonate}</p>
204 949
                   <p style='font-weight: bold;'>抗凝方式:</p>
205 950
                   <p >低分子肝素,剂量:3500.00~3500.00IU;</p>
206 951
                 </td>
@@ -264,9 +1009,19 @@ export default{
264 1009
                 <td style="align-items: center;padding: 5px;">医嘱用药</td>
265 1010
                 <td  class='' style="padding: 0;">
266 1011
                   <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
267
-<span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
1012
+                    <span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
268 1013
                 </td>
269 1014
               </tr>
1015
+
1016
+               <tr>
1017
+                <td style="align-items: center;padding: 5px;">医嘱用药</td>
1018
+                <td  class='' style="padding: 0;">
1019
+                  <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
1020
+                    <span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
1021
+                </td>
1022
+              </tr>
1023
+              
1024
+              
270 1025
               <tr>
271 1026
                 <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
272 1027
                 <td style='padding: 5px;'>
@@ -283,77 +1038,12 @@ export default{
283 1038
               </tr>
284 1039
             </table>`
285 1040
     
286
-    this.content = contents
287
-    
288
-  },
289
-  watch:{
290
-     patient:function(){
291
-     
292
-     }
293
-  },
294
-  mounted(){
295
-    console.log("patient---------------------",this.patient)
296
-    this.name = this.patient.name
297
-    this.gander = ""
298
-    this.age = 0
299
-    this.dialysis_no = ""
300
-    if(this.patient.gender == 1){
301
-      this.gander = "男"
302
-    }
303
-    if(this.patient.gender == 2){
304
-      this.gander = "女"
305
-    }
306
-    this.age = this.patient.age
307
-    this.dialysis_no = this.patient.dialysis_no
1041
+            this.content = contents
1042
+           
1043
+          }
1044
+       })
308 1045
 
309
-    console.log("name:",this.name)
310
-    console.log("gander:",this.gander)
311
-    console.log("age:",this.age)
312
-    console.log("dialysis_no:",this.dialysis_no)
313
-    console.log('document.getElementById3334',document.getElementById('editer'))
314
-    const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
315
-    var newListArr =[]
316
-    for(let j in this.tab){
317
-      const obj={
318
-        id:this.tab[j].id,
319
-        newlist:'newList'+j
320
-      }
321
-      newListArr.push(obj) 
322
-    }
323
-    for(let i in this.tab){
324
-      for(let j in newListArr){
325
-        if(this.tab[i].id==newListArr[j].id){
326
-          let newList = document.createElement('p');
327
-          newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
328
-          let newListItem1 = document.createElement('span');
329
-          newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
330
-          let newListItem2 = document.createElement('span');
331
-          newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
332
-          let newListItem3 = document.createElement('span');
333
-          newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
334
-          let newListItem4 = document.createElement('span');
335
-          newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
336
-          let newListItem5 = document.createElement('span');
337
-          newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
338
-          let newListItem6 = document.createElement('span');
339
-          newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
340
-          newListItem1.textContent = this.tab[i].name;
341
-          newListItem2.textContent = this.tab[i].type;
342
-          newListItem3.textContent = this.tab[i].start;
343
-          newListItem4.textContent = this.tab[i].dosage;
344
-          newListItem5.textContent = this.tab[i].pinlv;
345
-          newListItem6.textContent = this.tab[i].status;
346
-          newList.appendChild(newListItem1);
347
-          newList.appendChild(newListItem2);
348
-          newList.appendChild(newListItem3);
349
-          newList.appendChild(newListItem4);
350
-          newList.appendChild(newListItem5);
351
-          newList.appendChild(newListItem6);
352
-          iframeDoc.appendChild(newList)
353
-        }
354
-      }
355
-    }
356
-    this.$emit('new_content',this.content) 
1046
+    },
357 1047
   }
358 1048
   
359 1049
 }