Browse Source

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

XMLWAN 3 years ago
parent
commit
bb44a986aa

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue View File

666
             <tr>
666
             <tr>
667
               <td colspan="7">
667
               <td colspan="7">
668
                 <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
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
                     <div class="under_line" style="width: 80px;text-align: center">
671
                     <div class="under_line" style="width: 80px;text-align: center">
672
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) == ''">
672
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) == ''">
674
                       <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse)" alt="" srcset="" v-else />
674
                       <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse)" alt="" srcset="" v-else />
675
                     </div>
675
                     </div>
676
                   </div>
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
                     <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
679
                     <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
680
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
680
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
701
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
701
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
702
                     </div>
702
                     </div>
703
                   </div>
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
                     <div class="under_line" style="width: 80px;text-align: center">
706
                     <div class="under_line" style="width: 80px;text-align: center">
707
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
707
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
710
                       <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset="" v-else />
710
                       <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset="" v-else />
711
                     </div>
711
                     </div>
712
                   </div>
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
                     <div class="under_line" style="width: 80px;text-align: center">
715
                     <div class="under_line" style="width: 80px;text-align: center">
716
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(prescription.prescription_doctor) == ''">
716
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(prescription.prescription_doctor) == ''">

+ 19 - 27
src/xt_pages/user/templateSummary.vue View File

40
                         :row-class-name="tableRow"
40
                         :row-class-name="tableRow"
41
               >
41
               >
42
                 <el-table-column type="selection" width="40" align="center"></el-table-column>
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
                   <template slot-scope="scope">
44
                   <template slot-scope="scope">
45
                      {{scope.row.title}}
45
                      {{scope.row.title}}
46
                   </template>
46
                   </template>
47
                 </el-table-column>
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
               </el-table>
48
               </el-table>
59
             </el-col>
49
             </el-col>
60
             <el-col :span="14">
50
             <el-col :span="14">
83
                   <span style="margin-right:10px;line-height:20px;">透前血压(mmHg):{{editObj.befor_pressure}}</span>
73
                   <span style="margin-right:10px;line-height:20px;">透前血压(mmHg):{{editObj.befor_pressure}}</span>
84
                   <span style="margin-right:10px;line-height:20px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
74
                   <span style="margin-right:10px;line-height:20px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
85
                 </div>
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
                 <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
90
                 <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
92
               </div>
91
               </div>
93
             </el-col>
92
             </el-col>
547
                   <el-row>
546
                   <el-row>
548
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
547
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
549
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
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
                      <div class="borderBox">
550
                      <div class="borderBox">
551
                        <div v-for="item in form.template_inspection_content">
551
                        <div v-for="item in form.template_inspection_content">
552
                         <p>{{ item.project_name }}</p>
552
                         <p>{{ item.project_name }}</p>
1215
         getTemplateSummaryList(params).then(response=>{
1215
         getTemplateSummaryList(params).then(response=>{
1216
            if(response.data.state ==1){
1216
            if(response.data.state ==1){
1217
               var list = response.data.data.list
1217
               var list = response.data.data.list
1218
-              console.log("数据时什么",list)
1219
               this.inspectionList = list
1218
               this.inspectionList = list
1220
               this.$refs.inspection_table.setCurrentRow(this.inspectionList[0])
1219
               this.$refs.inspection_table.setCurrentRow(this.inspectionList[0])
1221
               this.getCurrentRecordDetail(this.inspectionList[0].id)
1220
               this.getCurrentRecordDetail(this.inspectionList[0].id)
1230
            if(response.data.state == 1){
1229
            if(response.data.state == 1){
1231
               var list = response.data.data.list
1230
               var list = response.data.data.list
1232
               console.log("🔎3232322323232332",list)
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
               this.editObj = list
1234
               this.editObj = list
1234
 
1235
 
1235
            }
1236
            }
1367
             befor_pressure:parseInt(this.form.befor_pressure),
1368
             befor_pressure:parseInt(this.form.befor_pressure),
1368
             template_summary_content:this.form.template_summary_content,
1369
             template_summary_content:this.form.template_summary_content,
1369
             template_plan_content:this.form.template_plan_content,
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
             admin_user_id:this.form.admin_user_id,
1372
             admin_user_id:this.form.admin_user_id,
1372
             record_time:this.form.record_time,
1373
             record_time:this.form.record_time,
1373
             after_pressure:this.form.after_pressure,
1374
             after_pressure:this.form.after_pressure,
1412
           }
1413
           }
1413
         });
1414
         });
1414
         return lastData;
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
   //  watch: {
1418
   //  watch: {

+ 58 - 36
src/xt_pages/user/templateSummaryPrint.vue View File

1
 <template>
1
 <template>
2
+<div>
3
+  <div style="float:right">
4
+    <el-button type="primary" size="small" @click="printThisPage">打印</el-button> 
5
+  </div>
2
   <div id="dialysis-print-box">
6
   <div id="dialysis-print-box">
3
     <div class="dialysis-print-order">
7
     <div class="dialysis-print-order">
4
       <div class="order-yy-name"></div>
8
       <div class="order-yy-name"></div>
5
       <div class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液透析患者诊疗阶段小结</div>
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
          <span>姓名:{{patientList.patient.name}}</span>  
12
          <span>姓名:{{patientList.patient.name}}</span>  
11
          <span>年龄:{{getNewAge(patientList.patient.id_card_no)}}</span>  
13
          <span>年龄:{{getNewAge(patientList.patient.id_card_no)}}</span>  
12
          <span>性别:
14
          <span>性别:
15
          </span> 
17
          </span> 
16
          <span>诊断:{{patientList.patient.diagnose}}</span> 
18
          <span>诊断:{{patientList.patient.diagnose}}</span> 
17
       </div>
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
         <span>阶段评估时间:{{getTime(patientList.record_time)}}</span>  
21
         <span>阶段评估时间:{{getTime(patientList.record_time)}}</span>  
21
       </div>
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
         </div>
46
         </div>
41
       </div>
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
       </div>
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
       </div>
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
        <span>记录医生:{{getPatientList(patientList.admin_user_id)}}</span>  
69
        <span>记录医生:{{getPatientList(patientList.admin_user_id)}}</span>  
55
        <span>记录时间:{{getTime(patientList.record_time)}}</span>  
70
        <span>记录时间:{{getTime(patientList.record_time)}}</span>  
56
      </div>
71
      </div>
57
     </div>
72
     </div>
58
   </div>
73
   </div>
74
+</div>
59
 </template>
75
 </template>
60
 
76
 
61
 <script>
77
 <script>
263
     printThisPage() {
279
     printThisPage() {
264
         var ptime = Math.round(new Date().getTime() / 1000)
280
         var ptime = Math.round(new Date().getTime() / 1000)
265
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
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
         printJS({
283
         printJS({
268
             printable: 'dialysis-print-box',
284
             printable: 'dialysis-print-box',
269
             type: 'html',
285
             type: 'html',
293
         if(response.data.state == 1){
309
         if(response.data.state == 1){
294
           var list = response.data.data.list
310
           var list = response.data.data.list
295
           console.log("listw23222323",list)
311
           console.log("listw23222323",list)
312
+          let arr = JSON.parse(list.template_inspection_content)
313
+          list.template_inspection_content = arr
296
           this.patientList = list
314
           this.patientList = list
297
           var doctorList = response.data.data.doctorList
315
           var doctorList = response.data.data.doctorList
298
           console.log("doctorlsit",doctorList)
316
           console.log("doctorlsit",doctorList)
331
          }
349
          }
332
       }
350
       }
333
       return name
351
       return name
334
-    }
352
+    },
335
     
353
     
336
   },
354
   },
337
  
355
  
346
 </script>
364
 </script>
347
 
365
 
348
 <style>
366
 <style>
367
+.borderBox  p{
368
+  font-weight: bold;
369
+  margin: 10px 0;
370
+}
349
 .dialysis-print-order {
371
 .dialysis-print-order {
350
   width: 960px;
372
   width: 960px;
351
   margin: 0 auto;
373
   margin: 0 auto;