Преглед изворни кода

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

XMLWAN пре 3 година
родитељ
комит
d920af51c3

+ 19 - 17
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue Прегледај датотеку

@@ -49,15 +49,15 @@
49 49
           <div class="inline_block">
50 50
             病区:
51 51
             <div class="under_line" style="width: 50px;text-align: center;">
52
-              <span v-if="org_id == 10121">{{ patientInfo.DialysisSchedule.device_zone.name ? patientInfo.DialysisSchedule.device_zone.name : '' }}</span>
53
-              <span v-else>{{ "/" }}</span>
52
+              <span>{{ patientInfo.DialysisSchedule.device_zone.name ? patientInfo.DialysisSchedule.device_zone.name : '' }}</span>
53
+              
54 54
             </div>
55 55
           </div>
56 56
           <div class="inline_block">
57 57
             床号:
58 58
             <div class="under_line" style="width: 50px;text-align: center;">
59
-              <span v-if="org_id == 10121">{{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}</span>
60
-              <span v-else>{{ "/" }}</span>
59
+              <span>{{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}</span>
60
+              
61 61
             </div>
62 62
           </div>
63 63
           <div class="inline_block">
@@ -91,7 +91,9 @@
91 91
               :key="index"
92 92
               class="under_line"
93 93
               v-if="receiverTreatmentAccess.consciousness == item.id"
94
-              style="width: 180px; text-align: left"
94
+              
95
+              style="width: 100px; text-align: left"
96
+
95 97
             >
96 98
               {{ item.name }}
97 99
             </div>
@@ -99,7 +101,7 @@
99 101
           
100 102
           <div class="inline_block" style="margin-left: 10px;">
101 103
             诊断:
102
-            <div class="under_line" style="width: 640px;text-align: left;word-wrap: break-word;white-space: inherit;">
104
+            <div class="under_line" style="width: 500px;text-align: left;word-wrap: break-word;white-space: inherit;">
103 105
               {{ patientInfo.diagnose }}
104 106
             </div>
105 107
           </div>
@@ -138,13 +140,11 @@
138 140
                       <div class="inline_block" style="flex: 1">
139 141
                       病人食欲:
140 142
                       <div
141
-                        v-for="(item, index) in appetite_arr"
142
-                        :key="index"
143
+                        
143 144
                         class="under_line"
144
-                        v-if="receiverTreatmentAccess.appetite == item.id"
145
-                        style="width: 180px; text-align: left"
145
+                        style="width: 135px; text-align: left"
146 146
                       >
147
-                        {{ item.name ? item.name : '/' }}
147
+                        11
148 148
                       </div>
149 149
                     </div>
150 150
 
@@ -888,11 +888,11 @@
888 888
                     <div class="inline_block" style="margin-left:10px;flex:1.5;">
889 889
                       BP:
890 890
                       <div class="under_line" style="width: 50px;text-align: center;">
891
-                        {{ afterdialysis.systolic_blood_pressure ? afterdialysis.systolic_blood_pressure : "/" }}
891
+                        {{ afterBP.systolic_blood_pressure ? afterBP.systolic_blood_pressure : "/" }}
892 892
                       </div>
893 893
                       /
894 894
                       <div class="under_line" style="width: 50px;text-align: center;">
895
-                        {{ afterdialysis.diastolic_blood_pressure ? afterdialysis.diastolic_blood_pressure : "/" }}
895
+                        {{ afterBP.diastolic_blood_pressure ? afterBP.diastolic_blood_pressure : "/" }}
896 896
                       </div>
897 897
                       mmHg
898 898
                     </div>
@@ -1186,6 +1186,7 @@ export default {
1186 1186
       jilurow: 0,
1187 1187
       advice_jilurow: 0,
1188 1188
       loading: false,
1189
+      afterBP:{},
1189 1190
       orgname: '',
1190 1191
       patientInfo_gender_1: false,
1191 1192
       patientInfo_gender_2: false,
@@ -1588,7 +1589,6 @@ export default {
1588 1589
         this.lastafterdialysis = response.data.data.assessmentAfterDislysis
1589 1590
         console.log("上次透后体重",this.lastafterdialysis.weight_after)
1590 1591
         this.operators = response.data.data.operators
1591
-        console.log('operators', this.operators)
1592 1592
         this.dialysisOrder =
1593 1593
           response.data.data.dialysisOrder === null
1594 1594
             ? null
@@ -1701,7 +1701,7 @@ export default {
1701 1701
 
1702 1702
         this.advices = response.data.data.advices
1703 1703
         this.tableAdvice = response.data.data.advices;
1704
-        console.log('医嘱数据2222222222', this.advices)
1704
+        console.log('医嘱数据', this.advices)
1705 1705
         this.monitors = response.data.data.monitors
1706 1706
         this.summary = response.data.data.summary
1707 1707
         this.org_template_info = response.data.data.org_template_info
@@ -1721,6 +1721,8 @@ export default {
1721 1721
             }
1722 1722
           }
1723 1723
         }
1724
+        let arr = this.monitors.length
1725
+        this.afterBP = this.monitors[arr-1]
1724 1726
 
1725 1727
         var tempmonitorflag = true
1726 1728
         for (let index = 0; index < this.monitors.length; index++) {
@@ -2053,9 +2055,9 @@ export default {
2053 2055
     }
2054 2056
 
2055 2057
     const xtdate = this.$route.query && this.$route.query.xtdate
2056
-    console.log('xtdate', xtdate)
2058
+    
2057 2059
     const xtno = this.$route.query && this.$route.query.xtno
2058
-    console.log('xtno', xtno)
2060
+    
2059 2061
     if (
2060 2062
       typeof xtdate === 'string' &&
2061 2063
       xtdate.length > 0 &&

+ 2 - 2
src/xt_pages/hospitalStation/components/deskPrescription.vue Прегледај датотеку

@@ -1689,12 +1689,12 @@ export default {
1689 1689
       for (let i = 0; i < this.month_prescriptions.length; i++) {
1690 1690
         if (this.month_prescriptions[i].advices != null) {
1691 1691
           for (let a = 0; a < this.month_prescriptions[i].advices.length; a++) {
1692
-            total = total + this.month_prescriptions[i].advices[a].retail_price * this.month_prescriptions[i].advices[a].prescribing_number
1692
+            total = total.toFixed(2) + (this.month_prescriptions[i].advices[a].retail_price * this.month_prescriptions[i].advices[a].prescribing_number).toFixed(2)
1693 1693
           }
1694 1694
         }
1695 1695
         if (this.month_prescriptions[i].project != null) {
1696 1696
           for (let b = 0; b < this.month_prescriptions[i].project.length; b++) {
1697
-            total = total + this.month_prescriptions[i].project[b].price * this.month_prescriptions[i].project[b].total
1697
+            total = total.toFixed(2) + (this.month_prescriptions[i].project[b].price * this.month_prescriptions[i].project[b].total).toFixed(2)
1698 1698
           }
1699 1699
         }
1700 1700
 

+ 5 - 5
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue Прегледај датотеку

@@ -6,14 +6,14 @@
6 6
         </div>
7 7
         <div style="display:flex;justify-content: space-between;">
8 8
             <!-- <div>{{ list.department_name }}</div> -->
9
-            <div  style="position: absolute;top:50px;left:260px">{{ list.id_card_no }}</div>
9
+            <div  style="position: absolute;top:50px;left:260px">{{ list.his_hospital_record.id_card_no }}</div>
10 10
             <div></div>
11 11
         </div>
12 12
         <div style="display:flex;justify-content: space-between;">
13 13
             <!-- <div>{{ list.department_name }}</div> -->
14 14
             <div  style="position: absolute;top:70px;left:90px">门诊</div>
15 15
             <div></div>
16
-            <div  style="position: absolute;top:70px;left:240px">{{ list.number }}</div>
16
+            <div  style="position: absolute;top:70px;left:240px">{{ list.his_hospital_record.number }}</div>
17 17
             <div  style="position: absolute;left:470px;top:70px;">
18 18
                 <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
19 19
             </div>
@@ -66,8 +66,8 @@
66 66
             <div style="position: absolute;top:190px;left:260px"></div>
67 67
             <div style="position: absolute;top:190px;left:340px">材料费</div>
68 68
             <div style="position: absolute;top:190px;left:420px">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
69
-            <div style="position: absolute;top:190px;left:480px"></div>
70
-            <div style="position: absolute;top:190px;left:540px"></div>
69
+            <div style="position: absolute;top:190px;left:480px">诊察费</div>
70
+            <div style="position: absolute;top:190px;left:540px">{{ list.zhenChaCostTotal ? list.zhenChaCostTotal.toFixed(2) : '' }}</div>
71 71
         </div>
72 72
         <div style="display:flex;justify-content: space-between;">
73 73
             <div style="position: absolute;top:210px;left:50px"></div>
@@ -182,7 +182,7 @@ export default {
182 182
                 this.list = res.data.data
183 183
                 console.log('res',this.list)
184 184
                 this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
185
-                                    this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
185
+                                    this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal + this.list.zhenChaCostTotal
186 186
                 this.smalltoBIG(this.totalPrice)
187 187
                 var data = new Date(res.data.data.date * 1000);
188 188
                 var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;

+ 1 - 2
src/xt_pages/hospitalStation/summary.vue Прегледај датотеку

@@ -150,7 +150,6 @@
150 150
                     style="margin-top:20px;float: right"
151 151
                     layout="total, sizes, prev, pager, next, jumper"
152 152
                     :total="total"
153
-
154 153
             >
155 154
             </el-pagination>
156 155
         </div>
@@ -622,7 +621,7 @@
622 621
         }
623 622
       },
624 623
       toPrint(row) {
625
-        if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || (row.order_status == 2 && $store.getters.xt_user.org_id == 10138) || (row.order_status == 2 && $store.getters.xt_user.org_id == 10278)) {
624
+        if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || (row.order_status == 2 && this.$store.getters.xt_user.org_id == 10138) || (row.order_status == 2 && this.$store.getters.xt_user.org_id == 10278)) {
626 625
           this.statementVisible9504 = true
627 626
           let obj = {
628 627
             order_id: row.id,

+ 5 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Прегледај датотеку

@@ -1086,7 +1086,11 @@ export default {
1086 1086
     },
1087 1087
     changeTimeTwo() {
1088 1088
       this.getPatientList()
1089
-      this.form.diagnosis_time = this.record_date + ' ' + '00:00:00'
1089
+      var nowDate = new Date()
1090
+      var nowHours = nowDate.getHours()
1091
+      var nowMinutes = nowDate.getMinutes()
1092
+      var nowSeconds = nowDate.getSeconds()
1093
+      this.form.diagnosis_time = this.record_date + ' ' + (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes) + ':' + (nowSeconds < 10 ? '0' + nowSeconds : nowSeconds)
1090 1094
     },
1091 1095
     comfirmPWDialog() {
1092 1096
       var that = this