Browse Source

打印单bug修改

XMLWAN 4 years ago
parent
commit
5bfade3828

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue View File

@@ -189,7 +189,7 @@
189 189
                           > 
190 190
                             {{
191 191
                               record.patient.total_dialysis
192
-                                ? record.patient.total_dialysis + 1
192
+                                ? record.patient.total_dialysis + + record.patient.user_sys_before_count
193 193
                                 : '/'
194 194
                             }}</span
195 195
                           >

+ 13 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -154,8 +154,10 @@
154 154
                           style="width: 70px;text-align: center"
155 155
                         >
156 156
                           {{
157
-                            record.patient.total_dialysis
158
-                              ? record.patient.total_dialysis
157
+                            record.patient.total_dialysis +
158
+                            record.patient.user_sys_before_count
159
+                              ? record.patient.total_dialysis +
160
+                                record.patient.user_sys_before_count
159 161
                               : "/"
160 162
                           }}
161 163
                         </div>
@@ -1393,7 +1395,10 @@
1393 1395
                         min
1394 1396
                       </div>
1395 1397
                       <!-- 只是占位 -->
1396
-                      <div class="inline_block" style="flex:1;visibility: hidden;">
1398
+                      <div
1399
+                        class="inline_block"
1400
+                        style="flex:1;visibility: hidden;"
1401
+                      >
1397 1402
                         透析器凝血:
1398 1403
                         <div
1399 1404
                           class="under_line"
@@ -1612,7 +1617,11 @@
1612 1617
                           style="width: 80px;text-align: left"
1613 1618
                           v-if="record.dialysis_order == null"
1614 1619
                         ></div>
1615
-                        <div v-if="record.check" class="under_line" style="width: 80px;text-align: left">
1620
+                        <div
1621
+                          v-if="record.check"
1622
+                          class="under_line"
1623
+                          style="width: 80px;text-align: left"
1624
+                        >
1616 1625
                           <div
1617 1626
                             style="width: 80px;text-align: left;display: inline-block;white-space: nowrap;"
1618 1627
                             v-if="

+ 4 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_twelve.vue View File

@@ -537,7 +537,10 @@
537 537
                   </td>
538 538
                   <td style="text-align:left;margin-left:15px" colspan="2">
539 539
                     透析次数:
540
-                    <span class="under-line">&nbsp;{{ total }}</span>
540
+                    <span class="under-line">&nbsp;{{
541
+                        patientInfo.total_dialysis +
542
+                          patientInfo.user_sys_before_count
543
+                      }}</span>
541 544
                   </td>
542 545
                 </tr>
543 546
                 <tr>

+ 18 - 2
src/xt_pages/dialysis/details/assessmentAfter.vue View File

@@ -211,7 +211,7 @@
211 211
           <span class="content">{{ this.record.complication }}</span>
212 212
         </li>
213 213
         <li
214
-          v-if="isShow('交待病房护士/患者/陪人观察内容') && patient_gose == 3"
214
+          v-if="patient_gose == 3 && isShow('交待病房护士/患者/陪人观察内容')"
215 215
         >
216 216
           <label>交待病房护士/患者/陪人观察内容 : </label>
217 217
           <span class="content">{{ observation_content }}</span>
@@ -712,7 +712,23 @@ export default {
712 712
     },
713 713
     isShow(name) {
714 714
       var filedList = store.getters.xt_user.fileds;
715
-
715
+      console.log("filedList", filedList);
716
+      var arr = [];
717
+      for (let j = 0; j < filedList.length; j++) {
718
+        if (filedList[j].module == 5) {
719
+          arr.push(filedList[j]);
720
+        }
721
+      }
722
+      var arrtwo = [];
723
+      for (let z = 0; z < filedList.length; z++) {
724
+        if (filedList[z].filed_name == "observation_content") {
725
+          console.log(filedList[z].filed_name_cn);
726
+          if (filedList[z].filed_name_cn == "交待病房护士/患者/陪人观察内容") {
727
+            console.log(filedList[z]);
728
+          }
729
+        }
730
+      }
731
+      console.log("arr", arr);
716 732
       for (let i = 0; i < filedList.length; i++) {
717 733
         if (
718 734
           filedList[i].module == 5 &&

+ 3 - 4
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

@@ -650,7 +650,6 @@ export default {
650 650
             this.showAdviceForm = false;
651 651
             this.showAdvicePanel = true;
652 652
             var advice = response.data.data.advice;
653
-            console.log("advice-------", advice);
654 653
             this.doctor_advices[this.currentIndex].drug_spec = advice.drug_spec;
655 654
             this.doctor_advices[this.currentIndex].drug_spec_unit =
656 655
               advice.drug_spec_unit;
@@ -1518,15 +1517,14 @@ export default {
1518 1517
             response.data.data.drugways === null
1519 1518
               ? []
1520 1519
               : response.data.data.drugways;
1521
-          console.log("模板---", this.deliveryWayOptions);
1520
+
1522 1521
           this.executionFrequencyOptions =
1523 1522
             response.data.data.efs === null ? [] : response.data.data.efs;
1524
-          console.log("模板2-----", this.executionFrequencyOptions);
1523
+
1525 1524
           this.adviceTemplates =
1526 1525
             response.data.data.advice_templates === null
1527 1526
               ? []
1528 1527
               : response.data.data.advice_templates;
1529
-          console.log("模板3", this.adviceTableDatas);
1530 1528
 
1531 1529
           var templateLen = this.adviceTemplates.length;
1532 1530
           for (let index = 0; index < templateLen; index++) {
@@ -1820,6 +1818,7 @@ export default {
1820 1818
       console.log("val是什么", val);
1821 1819
     },
1822 1820
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
1821
+      console.log("columnIndex", columnIndex);
1823 1822
       if (columnIndex === 0) {
1824 1823
         if (rowIndex % 2 === 0) {
1825 1824
           return {

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

@@ -2157,7 +2157,7 @@ export default {
2157 2157
       SaveEditAdvices(params).then(response => {
2158 2158
         if (response.data.state == 1) {
2159 2159
           var advice = response.data.data.advice;
2160
-          this.$message.error("保存成功!");
2160
+          this.$message.success("保存成功!");
2161 2161
           this.groupEditFormVisible = false;
2162 2162
         }
2163 2163
       });

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

@@ -691,9 +691,7 @@
691 691
       <span slot="footer" class="dialog-footer">
692 692
         <el-button @click="handleCancle">取 消</el-button>
693 693
         <!-- <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button> -->
694
-        <el-button type="primary" @click="handleCommit"
695
-          >保 存</el-button
696
-        >
694
+        <el-button type="primary" @click="handleCommit">保 存</el-button>
697 695
         <el-button type="primary" @click="handleSolution"
698 696
           >保存为长期处方</el-button
699 697
         >
@@ -1220,7 +1218,7 @@ export default {
1220 1218
           }
1221 1219
         });
1222 1220
       });
1223
-      console.log("arrFour", arrFour);
1221
+      // console.log("arrFour", arrFour);
1224 1222
       this.anticoagulantsConfit = arrFour;
1225 1223
       this.dialysisList = this.devices;
1226 1224
 
@@ -1232,7 +1230,7 @@ export default {
1232 1230
         "hemodialysis",
1233 1231
         "vascular_access_desc"
1234 1232
       );
1235
-      console.log("血管通路", this.blood_access_option);
1233
+      // console.log("血管通路", this.blood_access_option);
1236 1234
       var date = this.$route.query && this.$route.query.date;
1237 1235
       this.record_date = uParseTime(date, "{y}-{m}-{d}");
1238 1236
 
@@ -1397,6 +1395,7 @@ export default {
1397 1395
             return;
1398 1396
           }
1399 1397
           const ParamsQuery = this.dialysisPrescription;
1398
+
1400 1399
           ParamsQuery["patient"] = this.patient.id;
1401 1400
           ParamsQuery["record_date"] = this.record_date;
1402 1401
           ParamsQuery["mode"] = 1;
@@ -1559,10 +1558,21 @@ export default {
1559 1558
       if (pre.anticoagulant == 3) {
1560 1559
         this.dialysisPrescription.anticoagulant = "低分子肝素";
1561 1560
       }
1561
+      //入口
1562
+      var pre = pre;
1563
+      if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12) {
1564
+        this.zhiShow = true;
1565
+        this.huShow = true;
1566
+        this.totalShow = true;
1567
+      } else {
1568
+        this.zhiShow = false;
1569
+        this.huShow = false;
1570
+        this.totalShow = false;
1571
+      }
1562 1572
       this.pre = pre;
1563 1573
       console.log("pre1", pre);
1564 1574
       this.getPermission();
1565
-      
1575
+
1566 1576
       let last_weight_after = 0;
1567 1577
       let weight_before = 0;
1568 1578
 
@@ -1621,7 +1631,6 @@ export default {
1621 1631
       //console.log("fffff", this.anticoagulant);
1622 1632
     },
1623 1633
     handleCommit: function() {
1624
-      console.log("aaaa----", this.dialysisPrescription.anticoagulant);
1625 1634
       if (this.dialysisPrescription.anticoagulant == "低分子肝素") {
1626 1635
         this.dialysisPrescription.anticoagulant = 3;
1627 1636
       }
@@ -2830,12 +2839,22 @@ export default {
2830 2839
       this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2831 2840
         1,
2832 2841
         this.dialysisPrescription.anticoagulant_shouji,
2833
-        duration,
2842
+        this.dialysisPrescription.dialysis_duration,
2834 2843
         this.dialysisPrescription.anticoagulant_weichi
2835 2844
       );
2836 2845
       if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2837 2846
         this.dialysisPrescription.anticoagulant_zongliang = "";
2838 2847
       }
2848
+
2849
+      //this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2850
+      //  1,
2851
+      //   this.dialysisPrescription.anticoagulant_shouji,
2852
+      //  duration,
2853
+      //  this.dialysisPrescription.anticoagulant_weichi
2854
+      // );
2855
+      //  if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2856
+      //    this.dialysisPrescription.anticoagulant_zongliang = "";
2857
+      //  }
2839 2858
     },
2840 2859
     "dialysisPrescription.anticoagulant_shouji": function() {
2841 2860
       let dialysis_duration_minute = 0;
@@ -2856,15 +2875,26 @@ export default {
2856 2875
       duration =
2857 2876
         parseFloat(dialysis_duration_hour) +
2858 2877
         parseFloat(dialysis_duration_minute) / 60;
2878
+
2859 2879
       this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2860 2880
         1,
2861 2881
         this.dialysisPrescription.anticoagulant_shouji,
2862
-        duration,
2882
+        this.dialysisPrescription.dialysis_duration,
2863 2883
         this.dialysisPrescription.anticoagulant_weichi
2864 2884
       );
2865 2885
       if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2866 2886
         this.dialysisPrescription.anticoagulant_zongliang = "";
2867 2887
       }
2888
+
2889
+      //  this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2890
+      //   1,
2891
+      //    this.dialysisPrescription.anticoagulant_shouji,
2892
+      //    duration,
2893
+      //    this.dialysisPrescription.anticoagulant_weichi
2894
+      //  );
2895
+      // if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2896
+      //    this.dialysisPrescription.anticoagulant_zongliang = "";
2897
+      // }
2868 2898
     },
2869 2899
     "dialysisPrescription.anticoagulant_weichi": function() {
2870 2900
       let dialysis_duration_minute = 0;
@@ -2891,12 +2921,22 @@ export default {
2891 2921
       this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2892 2922
         1,
2893 2923
         this.dialysisPrescription.anticoagulant_shouji,
2894
-        duration,
2924
+        this.dialysisPrescription.dialysis_duration,
2895 2925
         this.dialysisPrescription.anticoagulant_weichi
2896 2926
       );
2897 2927
       if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2898 2928
         this.dialysisPrescription.anticoagulant_zongliang = "";
2899 2929
       }
2930
+
2931
+      // this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2932
+      //   1,
2933
+      //  this.dialysisPrescription.anticoagulant_shouji,
2934
+      //   duration,
2935
+      //   this.dialysisPrescription.anticoagulant_weichi
2936
+      // );
2937
+      // if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2938
+      //   this.dialysisPrescription.anticoagulant_zongliang = "";
2939
+      // }
2900 2940
     },
2901 2941
     "prescription.id": function() {
2902 2942
       if (this.prescription.id > 0) {

File diff suppressed because it is too large
+ 2502 - 1567
src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue


+ 10 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue View File

@@ -122,7 +122,12 @@
122 122
                   </td>
123 123
                   <td style="text-align:left;margin-left:15px" colspan="2">
124 124
                     透析次数:
125
-                    <span class="under-line">&nbsp;{{ total }}</span>
125
+                    <span class="under-line"
126
+                      >&nbsp;{{
127
+                        patientInfo.total_dialysis +
128
+                          patientInfo.user_sys_before_count
129
+                      }}</span
130
+                    >
126 131
                   </td>
127 132
                 </tr>
128 133
                 <tr>
@@ -423,7 +428,6 @@
423 428
                     </span>
424 429
                   </td>
425 430
                 </tr>
426
-
427 431
               </table>
428 432
             </td>
429 433
           </tr>
@@ -808,7 +812,7 @@
808 812
                 压迫后内瘘震颤:
809 813
                 <label-box
810 814
                   :isChecked="
811
-                    predialysis.internal_fistula.indexOf('震颤-存在') > -1
815
+                    afterdialysis.internal_fistula.indexOf('震颤-存在') > -1
812 816
                       ? true
813 817
                       : false
814 818
                   "
@@ -817,7 +821,7 @@
817 821
                 &nbsp;
818 822
                 <label-box
819 823
                   :isChecked="
820
-                    predialysis.internal_fistula.indexOf('震颤-减弱') > -1
824
+                    afterdialysis.internal_fistula.indexOf('震颤-减弱') > -1
821 825
                       ? true
822 826
                       : false
823 827
                   "
@@ -826,7 +830,7 @@
826 830
                 &nbsp;
827 831
                 <label-box
828 832
                   :isChecked="
829
-                    predialysis.internal_fistula.indexOf('震颤-无') > -1
833
+                    afterdialysis.internal_fistula.indexOf('震颤-无') > -1
830 834
                       ? true
831 835
                       : false
832 836
                   "
@@ -1129,6 +1133,7 @@ export default {
1129 1133
       getDialysisRecord(this.queryParams).then(response => {
1130 1134
         if (response.data.state === 1) {
1131 1135
           this.total = response.data.data.total;
1136
+
1132 1137
           this.adminUser = response.data.data.users;
1133 1138
           this.users = response.data.data.users;
1134 1139
           var patientInfo = response.data.data.patientInfo;

File diff suppressed because it is too large
+ 321 - 287
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue


File diff suppressed because it is too large
+ 2251 - 2241
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue


+ 14 - 7
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue View File

@@ -190,6 +190,8 @@
190 190
               ></label-box>
191 191
               首剂:<span style="width:35px;display: inline-block;">{{
192 192
                 prescription.anticoagulant_shouji &&
193
+                (prescription.anticoagulant != "低分子肝素钙" &&
194
+                  prescription.anticoagulant != "低分子肝素钠") &&
193 195
                 prescription.anticoagulant == "普通肝素"
194 196
                   ? prescription.anticoagulant_shouji
195 197
                   : ""
@@ -204,7 +206,9 @@
204 206
               >
205 207
               <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span
206 208
               >&nbsp; 追加:<span style="width:35px;display: inline-block;">{{
207
-                prescription.anticoagulant_weichi
209
+                prescription.anticoagulant_weichi &&
210
+                (prescription.anticoagulant != "低分子肝素钙" &&
211
+                  prescription.anticoagulant != "低分子肝素钠")
208 212
                   ? prescription.anticoagulant_weichi
209 213
                   : ""
210 214
               }}</span
@@ -223,8 +227,8 @@
223 227
               >
224 228
               &nbsp; 总量:<span style="width:50px;display: inline-block;">{{
225 229
                 prescription.anticoagulant_zongliang &&
226
-                (prescription.anticoagulant != "低分子肝素钙" ||
227
-                  prescription.anticoagulant == "低分子肝素钠")
230
+                (prescription.anticoagulant != "低分子肝素钙" &&
231
+                  prescription.anticoagulant != "低分子肝素钠")
228 232
                   ? prescription.anticoagulant_zongliang
229 233
                   : ""
230 234
               }}</span
@@ -323,8 +327,7 @@
323 327
               血管通路:
324 328
               <label-box
325 329
                 :isChecked="
326
-                  predialysis.blood_access_part_opera_name.indexOf('自体内瘘') >
327
-                  -1
330
+                  predialysis.blood_access_part_opera_name.indexOf('内瘘') > -1
328 331
                     ? true
329 332
                     : false
330 333
                 "
@@ -364,9 +367,13 @@
364 367
               >&nbsp;
365 368
               <label-box
366 369
                 :isChecked="
367
-                  predialysis.blood_access_part_opera_name.indexOf('自体内瘘') >
370
+                  predialysis.blood_access_part_opera_name.indexOf('人造血管') >
368 371
                   -1
369 372
                     ? true
373
+                    : predialysis.blood_access_part_opera_name.indexOf(
374
+                        '移植血管'
375
+                      ) > -1
376
+                    ? true
370 377
                     : false
371 378
                 "
372 379
                 showValue="其他"
@@ -812,7 +819,7 @@
812 819
           <td>
813 820
             <span v-if="getTime(monitor.operate_time) != ''">
814 821
               {{
815
-                monitor.arterial_pressure ? monitor.arterial_pressure : "0"
822
+                monitor.venous_pressure ? monitor.venous_pressure : "0"
816 823
               }}</span
817 824
             >
818 825
           </td>