Преглед на файлове

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN преди 3 години
родител
ревизия
bb44a986aa
променени са 3 файла, в които са добавени 81 реда и са изтрити 67 реда
  1. 4 4
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue
  2. 19 27
      src/xt_pages/user/templateSummary.vue
  3. 58 36
      src/xt_pages/user/templateSummaryPrint.vue

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue Целия файл

@@ -666,7 +666,7 @@
666 666
             <tr>
667 667
               <td colspan="7">
668 668
                 <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
669
-                  <div class="inline_block" style="flex:1;">
669
+                  <div class="inline_block" style="flex:1;display: flex;align-items: center;">
670 670
                     上机护士:
671 671
                     <div class="under_line" style="width: 80px;text-align: center">
672 672
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) == ''">
@@ -674,7 +674,7 @@
674 674
                       <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse)" alt="" srcset="" v-else />
675 675
                     </div>
676 676
                   </div>
677
-                  <div class="inline_block" style="flex:1;">
677
+                  <div class="inline_block" style="flex:1;display: flex;align-items: center;">
678 678
                     核对人员:
679 679
                     <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
680 680
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
@@ -701,7 +701,7 @@
701 701
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
702 702
                     </div>
703 703
                   </div>
704
-                  <div class="inline_block" style="flex:1;">
704
+                  <div class="inline_block" style="flex:1;display: flex;align-items: center;">
705 705
                     下机护士:
706 706
                     <div class="under_line" style="width: 80px;text-align: center">
707 707
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
@@ -710,7 +710,7 @@
710 710
                       <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset="" v-else />
711 711
                     </div>
712 712
                   </div>
713
-                  <div class="inline_block" style="flex:1;">
713
+                  <div class="inline_block" style="flex:1;display: flex;align-items: center;">
714 714
                     治疗医生:
715 715
                     <div class="under_line" style="width: 80px;text-align: center">
716 716
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(prescription.prescription_doctor) == ''">

+ 19 - 27
src/xt_pages/user/templateSummary.vue Целия файл

@@ -40,21 +40,11 @@
40 40
                         :row-class-name="tableRow"
41 41
               >
42 42
                 <el-table-column type="selection" width="40" align="center"></el-table-column>
43
-                <el-table-column label="阶段小结名称" align="center">
43
+                <el-table-column label="检查项目" align="center">
44 44
                   <template slot-scope="scope">
45 45
                      {{scope.row.title}}
46 46
                   </template>
47 47
                 </el-table-column>
48
-                <el-table-column label="记录时间" align="center">
49
-                  <template slot-scope="scope">
50
-                     {{getTime(scope.row.record_time)}}
51
-                  </template>
52
-                </el-table-column>
53
-                <el-table-column label="记录医生" align="center">
54
-                  <template slot-scope="scope">
55
-                     {{getDoctor(scope.row.admin_user_id)}}
56
-                  </template>
57
-                </el-table-column>
58 48
               </el-table>
59 49
             </el-col>
60 50
             <el-col :span="14">
@@ -83,11 +73,20 @@
83 73
                   <span style="margin-right:10px;line-height:20px;">透前血压(mmHg):{{editObj.befor_pressure}}</span>
84 74
                   <span style="margin-right:10px;line-height:20px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
85 75
                 </div>
86
-              
87
-                <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:{{editObj.template_summary_content}}</div> 
88
-
89
-                <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段化验结果:{{editObj.template_inspection_content}}</div>   
90
-             
76
+                <!-- <el-divider></el-divider> -->
77
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
78
+                  <div>
79
+                    <div v-for="item in editObj.template_inspection_content">
80
+                    <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }}</p>
81
+                    <div style="display:flex;flex-wrap: wrap;">
82
+                      <div v-for="it in item.arr" style="width:33%;">
83
+                        {{ it.item_name }} {{ it.inspect_value }}
84
+                      </div>
85
+                    </div>
86
+                  </div>
87
+                  </div>
88
+                </div>  
89
+                <!-- <el-divider></el-divider> -->
91 90
                 <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
92 91
               </div>
93 92
             </el-col>
@@ -547,6 +546,7 @@
547 546
                   <el-row>
548 547
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
549 548
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
549
+                     <!-- <el-input style="margin:10px 0;" type="textarea" v-model="form.template_inspection_content"></el-input> -->
550 550
                      <div class="borderBox">
551 551
                        <div v-for="item in form.template_inspection_content">
552 552
                         <p>{{ item.project_name }}</p>
@@ -1215,7 +1215,6 @@
1215 1215
         getTemplateSummaryList(params).then(response=>{
1216 1216
            if(response.data.state ==1){
1217 1217
               var list = response.data.data.list
1218
-              console.log("数据时什么",list)
1219 1218
               this.inspectionList = list
1220 1219
               this.$refs.inspection_table.setCurrentRow(this.inspectionList[0])
1221 1220
               this.getCurrentRecordDetail(this.inspectionList[0].id)
@@ -1230,6 +1229,8 @@
1230 1229
            if(response.data.state == 1){
1231 1230
               var list = response.data.data.list
1232 1231
               console.log("🔎3232322323232332",list)
1232
+              let arr = list.template_inspection_content ? JSON.parse(list.template_inspection_content) : []
1233
+              list.template_inspection_content = arr
1233 1234
               this.editObj = list
1234 1235
 
1235 1236
            }
@@ -1367,7 +1368,7 @@
1367 1368
             befor_pressure:parseInt(this.form.befor_pressure),
1368 1369
             template_summary_content:this.form.template_summary_content,
1369 1370
             template_plan_content:this.form.template_plan_content,
1370
-            template_inspection_content:this.form.template_inspection_content,
1371
+            template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1371 1372
             admin_user_id:this.form.admin_user_id,
1372 1373
             record_time:this.form.record_time,
1373 1374
             after_pressure:this.form.after_pressure,
@@ -1412,15 +1413,6 @@
1412 1413
           }
1413 1414
         });
1414 1415
         return lastData;
1415
-      },
1416
-      getDoctor(id){
1417
-        var user_name = ""
1418
-        for(let i=0;i<this.docList.length;i++){
1419
-          if(id == this.docList[i].admin_user_id){
1420
-             user_name = this.docList[i].user_name
1421
-          }
1422
-        }
1423
-        return user_name
1424 1416
       }
1425 1417
     },
1426 1418
   //  watch: {

+ 58 - 36
src/xt_pages/user/templateSummaryPrint.vue Целия файл

@@ -1,12 +1,14 @@
1 1
 <template>
2
+<div>
3
+  <div style="float:right">
4
+    <el-button type="primary" size="small" @click="printThisPage">打印</el-button> 
5
+  </div>
2 6
   <div id="dialysis-print-box">
3 7
     <div class="dialysis-print-order">
4 8
       <div class="order-yy-name"></div>
5 9
       <div class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液透析患者诊疗阶段小结</div>
6
-      <div style="float:right">
7
-         <el-button type="primary" size="small" @click="printThisPage">打印</el-button> 
8
-      </div>
9
-      <div>
10
+      
11
+      <div style="padding-bottom:20px;border-bottom:1px solid #000;margin-top:40px;">
10 12
          <span>姓名:{{patientList.patient.name}}</span>  
11 13
          <span>年龄:{{getNewAge(patientList.patient.id_card_no)}}</span>  
12 14
          <span>性别:
@@ -15,47 +17,61 @@
15 17
          </span> 
16 18
          <span>诊断:{{patientList.patient.diagnose}}</span> 
17 19
       </div>
18
-      <div class="under-line"></div>
19
-      <div>
20
+      <div style="padding:20px 0;border-bottom:1px solid #000;font-weight:bold;">
20 21
         <span>阶段评估时间:{{getTime(patientList.record_time)}}</span>  
21 22
       </div>
22
-      <div class="under-line"></div>
23
-       <div>
24
-        <span>阶段小结概要:</span>  
25
-        <div>
26
-          <span>干体重:{{patientList.patient.dry_weight}}(kg)</span>  
27
-          <span>共透析:{{patientList.patient.dialysis_count}}</span>  
28
-          <span>HD:{{patientList.hd_count}}</span>  
29
-          <span>HDF:{{patientList.hdf_count}}</span>  
30
-          <span>HP:{{patientList.hp_count}}</span>  
31
-          <span>其他:{{patientList.other_count}}</span> 
32
-          <span>透析器:{{patientList.dialzer_apparatus}}</span>  
33
-          <span>抗凝剂:{{patientList.anticoagulant}}</span>  
34
-          <span>透析液(钾:{{patientList.kalium}} 钙:{{patientList.autunite}} Na:{{patientList.natrium}} ):</span> 
35
-          <span>每次透析(小时):{{patientList.hour}}时{{patientList.minute}}分</span>
36
-          <span>透前体重:{{patientList.befor_weight}}</span>
37
-          <span>透后体重:{{patientList.after_weight}}</span>
38
-          <span>透前血压:{{patientList.befor_pressure}}</span>
39
-          <span>透后血压:{{patientList.after_pressure}}</span>
23
+       <div style="padding:20px 0;border-bottom:1px solid #000;">
24
+        <span style="font-weight:bold;">阶段小结概要:</span>  
25
+        <div style="margin-top:20px;">
26
+          <div style="display:flex;justify-content: space-between;">
27
+            <span>干体重:{{patientList.patient.dry_weight}}(kg)</span>  
28
+            <span>共透析:{{patientList.patient.dialysis_count}}</span>  
29
+            <span>HD:{{patientList.hd_count}}</span>  
30
+            <span>HDF:{{patientList.hdf_count}}</span>  
31
+            <span>HP:{{patientList.hp_count}}</span>  
32
+            <span>其他:{{patientList.other_count}}</span> 
33
+          </div>
34
+          <div style="display:flex;justify-content: space-between;margin-top:10px;">
35
+            <span>透析器:{{patientList.dialzer_apparatus}}</span>  
36
+            <span>抗凝剂:{{patientList.anticoagulant}}</span>  
37
+            <span>透析液(钾:{{patientList.kalium}} 钙:{{patientList.autunite}} Na:{{patientList.natrium}} ):</span> 
38
+            <span>每次透析(小时):{{patientList.hour}}时{{patientList.minute}}分</span>
39
+          </div>
40
+          <div style="display:flex;justify-content: space-between;margin-top:10px;">
41
+            <span>透前体重:{{patientList.befor_weight}}</span>
42
+            <span>透后体重:{{patientList.after_weight}}</span>
43
+            <span>透前血压:{{patientList.befor_pressure}}</span>
44
+            <span>透后血压:{{patientList.after_pressure}}</span>
45
+          </div>
40 46
         </div>
41 47
       </div>
42
-      <div class="under-line"></div>
43
-      <div>
44
-        <span>阶段小结总结:{{patientList.template_summary_content}}</span>  
48
+      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
49
+        <span style="font-weight:bold;">阶段小结总结:</span><div>{{patientList.template_summary_content}}</div>  
50
+      </div>
51
+     <div style="padding:20px 0;border-bottom:1px solid #000;min-height:250px;">
52
+        <span style="font-weight:bold;">阶段小结化验结果:</span>
53
+        <div class="borderBox">
54
+          <div v-for="item in patientList.template_inspection_content">
55
+            <p>{{ item.project_name }}</p>
56
+            <div style="display:flex;flex-wrap: wrap;">
57
+              <div v-for="it in item.arr" style="width:33%;">
58
+                {{ it.item_name }} {{ it.inspect_value }}
59
+              </div>
60
+            </div>
61
+          </div>
62
+        </div> 
45 63
       </div>
46
-     <div class="under-line"></div>
47
-     <div>
48
-        <span>阶段小结化验结果:{{patientList.template_inspection_content}}</span>  
64
+      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
65
+        <span style="font-weight:bold;">阶段小结个性化方案:</span>
66
+        <div>{{patientList.template_plan_content}}</div>
49 67
       </div>
50
-     <div class="under-line"></div>
51
-     <div>阶段小结个性化方案:{{patientList.template_plan_content}}</div>
52
-     <div class="under-line"></div>
53
-     <div>
68
+     <div style="margin-top:10px;">
54 69
        <span>记录医生:{{getPatientList(patientList.admin_user_id)}}</span>  
55 70
        <span>记录时间:{{getTime(patientList.record_time)}}</span>  
56 71
      </div>
57 72
     </div>
58 73
   </div>
74
+</div>
59 75
 </template>
60 76
 
61 77
 <script>
@@ -263,7 +279,7 @@ export default {
263 279
     printThisPage() {
264 280
         var ptime = Math.round(new Date().getTime() / 1000)
265 281
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
266
-        const style ='@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 20px 20px 20px}.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:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.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;}'
282
+        const style ='@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 20px 20px 20px}.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:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.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;font-weight: bold;margin: 10px 0;}'
267 283
         printJS({
268 284
             printable: 'dialysis-print-box',
269 285
             type: 'html',
@@ -293,6 +309,8 @@ export default {
293 309
         if(response.data.state == 1){
294 310
           var list = response.data.data.list
295 311
           console.log("listw23222323",list)
312
+          let arr = JSON.parse(list.template_inspection_content)
313
+          list.template_inspection_content = arr
296 314
           this.patientList = list
297 315
           var doctorList = response.data.data.doctorList
298 316
           console.log("doctorlsit",doctorList)
@@ -331,7 +349,7 @@ export default {
331 349
          }
332 350
       }
333 351
       return name
334
-    }
352
+    },
335 353
     
336 354
   },
337 355
  
@@ -346,6 +364,10 @@ export default {
346 364
 </script>
347 365
 
348 366
 <style>
367
+.borderBox  p{
368
+  font-weight: bold;
369
+  margin: 10px 0;
370
+}
349 371
 .dialysis-print-order {
350 372
   width: 960px;
351 373
   margin: 0 auto;