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
d920af51c3

+ 19 - 17
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue View File

49
           <div class="inline_block">
49
           <div class="inline_block">
50
             病区:
50
             病区:
51
             <div class="under_line" style="width: 50px;text-align: center;">
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
             </div>
54
             </div>
55
           </div>
55
           </div>
56
           <div class="inline_block">
56
           <div class="inline_block">
57
             床号:
57
             床号:
58
             <div class="under_line" style="width: 50px;text-align: center;">
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
             </div>
61
             </div>
62
           </div>
62
           </div>
63
           <div class="inline_block">
63
           <div class="inline_block">
91
               :key="index"
91
               :key="index"
92
               class="under_line"
92
               class="under_line"
93
               v-if="receiverTreatmentAccess.consciousness == item.id"
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
               {{ item.name }}
98
               {{ item.name }}
97
             </div>
99
             </div>
99
           
101
           
100
           <div class="inline_block" style="margin-left: 10px;">
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
               {{ patientInfo.diagnose }}
105
               {{ patientInfo.diagnose }}
104
             </div>
106
             </div>
105
           </div>
107
           </div>
138
                       <div class="inline_block" style="flex: 1">
140
                       <div class="inline_block" style="flex: 1">
139
                       病人食欲:
141
                       病人食欲:
140
                       <div
142
                       <div
141
-                        v-for="(item, index) in appetite_arr"
142
-                        :key="index"
143
+                        
143
                         class="under_line"
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
                       </div>
148
                       </div>
149
                     </div>
149
                     </div>
150
 
150
 
888
                     <div class="inline_block" style="margin-left:10px;flex:1.5;">
888
                     <div class="inline_block" style="margin-left:10px;flex:1.5;">
889
                       BP:
889
                       BP:
890
                       <div class="under_line" style="width: 50px;text-align: center;">
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
                       </div>
892
                       </div>
893
                       /
893
                       /
894
                       <div class="under_line" style="width: 50px;text-align: center;">
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
                       </div>
896
                       </div>
897
                       mmHg
897
                       mmHg
898
                     </div>
898
                     </div>
1186
       jilurow: 0,
1186
       jilurow: 0,
1187
       advice_jilurow: 0,
1187
       advice_jilurow: 0,
1188
       loading: false,
1188
       loading: false,
1189
+      afterBP:{},
1189
       orgname: '',
1190
       orgname: '',
1190
       patientInfo_gender_1: false,
1191
       patientInfo_gender_1: false,
1191
       patientInfo_gender_2: false,
1192
       patientInfo_gender_2: false,
1588
         this.lastafterdialysis = response.data.data.assessmentAfterDislysis
1589
         this.lastafterdialysis = response.data.data.assessmentAfterDislysis
1589
         console.log("上次透后体重",this.lastafterdialysis.weight_after)
1590
         console.log("上次透后体重",this.lastafterdialysis.weight_after)
1590
         this.operators = response.data.data.operators
1591
         this.operators = response.data.data.operators
1591
-        console.log('operators', this.operators)
1592
         this.dialysisOrder =
1592
         this.dialysisOrder =
1593
           response.data.data.dialysisOrder === null
1593
           response.data.data.dialysisOrder === null
1594
             ? null
1594
             ? null
1701
 
1701
 
1702
         this.advices = response.data.data.advices
1702
         this.advices = response.data.data.advices
1703
         this.tableAdvice = response.data.data.advices;
1703
         this.tableAdvice = response.data.data.advices;
1704
-        console.log('医嘱数据2222222222', this.advices)
1704
+        console.log('医嘱数据', this.advices)
1705
         this.monitors = response.data.data.monitors
1705
         this.monitors = response.data.data.monitors
1706
         this.summary = response.data.data.summary
1706
         this.summary = response.data.data.summary
1707
         this.org_template_info = response.data.data.org_template_info
1707
         this.org_template_info = response.data.data.org_template_info
1721
             }
1721
             }
1722
           }
1722
           }
1723
         }
1723
         }
1724
+        let arr = this.monitors.length
1725
+        this.afterBP = this.monitors[arr-1]
1724
 
1726
 
1725
         var tempmonitorflag = true
1727
         var tempmonitorflag = true
1726
         for (let index = 0; index < this.monitors.length; index++) {
1728
         for (let index = 0; index < this.monitors.length; index++) {
2053
     }
2055
     }
2054
 
2056
 
2055
     const xtdate = this.$route.query && this.$route.query.xtdate
2057
     const xtdate = this.$route.query && this.$route.query.xtdate
2056
-    console.log('xtdate', xtdate)
2058
+    
2057
     const xtno = this.$route.query && this.$route.query.xtno
2059
     const xtno = this.$route.query && this.$route.query.xtno
2058
-    console.log('xtno', xtno)
2060
+    
2059
     if (
2061
     if (
2060
       typeof xtdate === 'string' &&
2062
       typeof xtdate === 'string' &&
2061
       xtdate.length > 0 &&
2063
       xtdate.length > 0 &&

+ 2 - 2
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

1689
       for (let i = 0; i < this.month_prescriptions.length; i++) {
1689
       for (let i = 0; i < this.month_prescriptions.length; i++) {
1690
         if (this.month_prescriptions[i].advices != null) {
1690
         if (this.month_prescriptions[i].advices != null) {
1691
           for (let a = 0; a < this.month_prescriptions[i].advices.length; a++) {
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
         if (this.month_prescriptions[i].project != null) {
1695
         if (this.month_prescriptions[i].project != null) {
1696
           for (let b = 0; b < this.month_prescriptions[i].project.length; b++) {
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 View File

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

+ 1 - 2
src/xt_pages/hospitalStation/summary.vue View File

150
                     style="margin-top:20px;float: right"
150
                     style="margin-top:20px;float: right"
151
                     layout="total, sizes, prev, pager, next, jumper"
151
                     layout="total, sizes, prev, pager, next, jumper"
152
                     :total="total"
152
                     :total="total"
153
-
154
             >
153
             >
155
             </el-pagination>
154
             </el-pagination>
156
         </div>
155
         </div>
622
         }
621
         }
623
       },
622
       },
624
       toPrint(row) {
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
           this.statementVisible9504 = true
625
           this.statementVisible9504 = true
627
           let obj = {
626
           let obj = {
628
             order_id: row.id,
627
             order_id: row.id,

+ 5 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

1086
     },
1086
     },
1087
     changeTimeTwo() {
1087
     changeTimeTwo() {
1088
       this.getPatientList()
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
     comfirmPWDialog() {
1095
     comfirmPWDialog() {
1092
       var that = this
1096
       var that = this