Kaynağa Gözat

修改打印和其他问题

csx 4 yıl önce
ebeveyn
işleme
f8436c3e0f

+ 11 - 1
src/store/modules/xt_user.js Dosyayı Görüntüle

@@ -357,7 +357,17 @@ const xt_user = {
357 357
         commit('SET_FILEDS_LIST', infoJSON)
358 358
         resolve()
359 359
       })
360
-    },
360
+    },updateAllFiledConfigList({ commit }, object) {
361
+      var oldFiledList = getFiledConfigList()
362
+      var infoJSON = JSON.parse(oldFiledList)
363
+
364
+      return new Promise((resolve, reject) =>{
365
+        infoJSON = object
366
+        setFiledConfigList(JSON.stringify(infoJSON))
367
+        commit('SET_FILEDS_LIST', infoJSON)
368
+        resolve()
369
+      })
370
+    }
361 371
   }
362 372
 }
363 373
 

+ 14 - 1
src/xt_pages/data/printTemplate.vue Dosyayı Görüntüle

@@ -3,6 +3,11 @@
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs='crumbs'></bread-crumb>
5 5
     </div>
6
+    <div v-loading="loading"
7
+         element-loading-text="服务器处理数据中,请稍候......."
8
+         element-loading-spinner="el-icon-loading"
9
+         element-loading-background="rgba(0, 0, 0, 0.8)">
10
+
6 11
     <div class="app-container" style="text-align: center">
7 12
       <p style="margin-top: 10px;margin-bottom: 30px">请选择你需要打印的血液透析护理记录单样式</p>
8 13
       <el-row :gutter="20" type="flex" justify="center">
@@ -49,12 +54,14 @@
49 54
         </el-col>
50 55
       </el-row>
51 56
     </div>
57
+    </div>
52 58
   </div>
53 59
 </template>
54 60
 
55 61
 <script>
56 62
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
57 63
   import { getPrintTemplate, postPrintTemplate } from '@/api/data'
64
+  import store from "@/store";
58 65
 
59 66
   export default {
60 67
     name: 'printTemplate',
@@ -84,7 +91,9 @@
84 91
         ],
85 92
         delay:500,
86 93
         radio: 0,
87
-        tempRadio: 0
94
+        tempRadio: 0,
95
+        loading:false,
96
+
88 97
       }
89 98
     }, methods: {
90 99
       change: function(val) {
@@ -94,12 +103,16 @@
94 103
           cancelButtonText: '取消',
95 104
           type: 'info'
96 105
         }).then(() => {
106
+          this.loading = true
97 107
           postPrintTemplate(val).then(response => {
98 108
             if (response.data.state == 1) {
99 109
               var template_id = response.data.data.template_id
100 110
               this.radio = template_id.toString()
101 111
               this.tempRadio = template_id.toString()
102 112
               //同步
113
+              this.loading = false
114
+
115
+              store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
103 116
               this.$message({
104 117
                 type: 'success',
105 118
                 message: '切换成功'

+ 16 - 6
src/xt_pages/dialysis/batch_print/batch_print_order.vue Dosyayı Görüntüle

@@ -762,6 +762,8 @@
762 762
         ],
763 763
         loading: false,
764 764
         orgname: '',
765
+        org_template_info: {},
766
+
765 767
         bloodAccessParOpera: {},
766 768
         anticoagulantsConfit: {},
767 769
         dialysateFormulationOptions: {},
@@ -812,6 +814,8 @@
812 814
         var resp = rs.data
813 815
         if (resp.state == 1) {
814 816
 
817
+          this.org_template_info = resp.data.templateInfo
818
+
815 819
           this.records = this.records.concat(resp.data.schedules)
816 820
           for (const recordIndex in this.records) {
817 821
             var dlegh = 0
@@ -910,6 +914,18 @@
910 914
       })
911 915
     },
912 916
     methods: {
917
+      getAge: function(val) {
918
+        val.birth = uParseTime(val.birthday, '{y}-{m}-{d}')
919
+        if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
920
+          if (val.age == 0) {
921
+            return jsGetAge(val.birth, '-')
922
+          } else {
923
+            return val.age
924
+          }
925
+        } else {
926
+          return jsGetAge(val.birth, '-')
927
+        }
928
+      },
913 929
       printAction: function() {
914 930
         const style = '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 25px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 2px;position: absolute;}'
915 931
 
@@ -1010,12 +1026,6 @@
1010 1026
           }
1011 1027
         }
1012 1028
       },
1013
-      jsGetAge: function(agetime) {
1014
-        if (agetime == 0) {
1015
-          return ''
1016
-        }
1017
-        return jsGetAge(uParseTime(agetime, '{y}-{m}-{d}'), '-')
1018
-      },
1019 1029
       getTime(value, temp) {
1020 1030
         if (value != undefined) {
1021 1031
           return uParseTime(value, temp)

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Dosyayı Görüntüle

@@ -337,10 +337,10 @@
337 337
                                     </div>
338 338
                                     <div class="inline_block" style="margin-left:20px;">
339 339
                                     维持:
340
-                                    <div v-if="record.prescription.anticoagulant == 1" class="under_line" style="width: 50px;text-align: center;">
340
+                                    <div v-if="record.prescription&&record.prescription.anticoagulant == 1" class="under_line" style="width: 50px;text-align: center;">
341 341
                                         {{record.prescription&&record.prescription.anticoagulant_weichi?record.prescription.anticoagulant_weichi:'/'}}
342 342
                                     </div>
343
-                                    <div v-if="record.prescription.anticoagulant != 1" class="under_line" style="width: 50px;text-align: center;">
343
+                                    <div v-if="record.prescription&&record.prescription.anticoagulant != 1" class="under_line" style="width: 50px;text-align: center;">
344 344
                                         {{record.prescription&&record.prescription.anticoagulant_weichi?record.prescription.anticoagulant_weichi:0}}
345 345
                                     </div>
346 346
                                     lu

+ 1 - 1
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Dosyayı Görüntüle

@@ -544,7 +544,7 @@ export default {
544 544
           this.form.blood_flow_volume = monitor.blood_flow_volume ? monitor.blood_flow_volume : ''
545 545
           this.form.venous_pressure = monitor.venous_pressure ? monitor.venous_pressure : ''
546 546
           this.form.transmembrane_pressure = monitor.transmembrane_pressure ? monitor.transmembrane_pressure : ''
547
-          this.form.ultrafiltration_volume = monitor.transmembrane_pressure ? monitor.transmembrane_pressure : ''
547
+          this.form.ultrafiltration_volume = monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : ''
548 548
           this.form.ultrafiltration_rate = monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : ''
549 549
           this.form.arterial_pressure = monitor.arterial_pressure ? monitor.arterial_pressure : ''
550 550
           this.form.sodium_concentration = monitor.sodium_concentration ? monitor.sodium_concentration : ''

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Dosyayı Görüntüle

@@ -783,7 +783,7 @@
783 783
               <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
784 784
                 <div class="inline_block" style="flex:1; display:inline-block;">
785 785
                   治疗小结:
786
-                  <div class="under_line" style="width: 90%;line-height: 25px;text-align: left;margin-left: 2px; display:inline-block;"> {{summary.dialysis_summary?summary.dialysis_summary:'/'}}</div>
786
+                  <div class="under_line" style="width: 860px;line-height: 25px;text-align: left;margin-left: 2px;display: inline-block;white-space: normal;"> {{summary.dialysis_summary?summary.dialysis_summary:'/'}}</div>
787 787
                 </div>
788 788
               </div>
789 789
 

+ 6 - 3
src/xt_pages/user/components/PatientDetail.vue Dosyayı Görüntüle

@@ -897,8 +897,10 @@ export default {
897 897
 
898 898
             var contagionsArr = response.data.data.contagions
899 899
             var diseasesArr = response.data.data.diseases
900
+
900 901
             this.patientPrint = patietInfo
901 902
 
903
+
902 904
             var sourceLen = this.sourceOptions.length
903 905
             for (let index = 0; index < sourceLen; index++) {
904 906
               if (this.sourceOptions[index].value === patietInfo.source) {
@@ -929,13 +931,14 @@ export default {
929 931
               this.patientPrint.gender = ''
930 932
             }
931 933
             var maritalLen = this.maritalOptions.length
932
-            this.patientPrint.marital_status = ''
934
+            console.log(maritalLen)
933 935
             for (let index = 0; index < maritalLen; index++) {
934
-              if (this.maritalOptions[index].id === patietInfo.marital_status) {
936
+              if (this.maritalOptions[index].id ==  response.data.data.patient.marital_status) {
935 937
                 this.patientPrint.marital_status = this.maritalOptions[index].name
936
-                break
938
+
937 939
               }
938 940
             }
941
+
939 942
             this.patientPrint.birthday = uParseTime(patietInfo.birthday, '{y}-{m}-{d}')
940 943
             this.patientPrint.age = jsGetAge(this.patientPrint.birthday, '-')
941 944