Browse Source

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

csx 3 years ago
parent
commit
3b9768bcda

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

@@ -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.toFixed(2) * this.month_prescriptions[i].advices[a].prescribing_number)
1692
+            total = total + (this.month_prescriptions[i].advices[a].retail_price* this.month_prescriptions[i].advices[a].prescribing_number)
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.toFixed(2) * this.month_prescriptions[i].project[b].total)
1697
+            total = total+ (this.month_prescriptions[i].project[b].price * this.month_prescriptions[i].project[b].total)
1698 1698
           }
1699 1699
         }
1700 1700
 

+ 4 - 6
src/xt_pages/hospitalStation/components/settlePrescriptionTable.vue View File

@@ -66,7 +66,7 @@
66 66
       </el-table-column>
67 67
       <el-table-column align="center" prop="name" width="60" label="单价">
68 68
         <template slot-scope="scope">
69
-          <div>{{ scope.row.retail_price }}元</div>
69
+          <div>{{ scope.row.retail_price}}元</div>
70 70
 
71 71
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
72 72
         </template>
@@ -75,9 +75,7 @@
75 75
         <template slot-scope="scope">
76 76
           <div>
77 77
             {{
78
-              (scope.row.prescribing_number * scope.row.retail_price).toFixed(
79
-                2
80
-              )
78
+              (scope.row.prescribing_number * scope.row.retail_price).toFixed(2)
81 79
             }}元
82 80
           </div>
83 81
 
@@ -211,13 +209,13 @@
211 209
       <el-table-column align="center" prop="name" width="50" label="单价">
212 210
         <template slot-scope="scope">
213 211
           <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
214
-          {{ scope.row.price }}元
212
+          {{ scope.row.price.toFixed(2) }}元
215 213
         </template>
216 214
       </el-table-column>
217 215
 
218 216
       <el-table-column align="center" prop="name" width="60" label="总价">
219 217
         <template slot-scope="scope">
220
-          <div>{{ (scope.row.total * scope.row.price).toFixed(2) }}元</div>
218
+          <div>{{ (scope.row.total * scope.row.price.toFixed(2)) }}元</div>
221 219
 
222 220
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
223 221
         </template>

+ 2 - 2
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue View File

@@ -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.his_hospital_record.id_card_no }}</div>
9
+            <div  style="position: absolute;top:50px;left:260px">{{ list.his_hospital_record.id_card_no?list.order.certno:''}}</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.his_hospital_record.number }}</div>
16
+            <div  style="position: absolute;top:70px;left:240px">{{ list.his_hospital_record.number?list.order.mdtrt_id:''}}</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>

+ 3 - 3
src/xt_pages/hospitalStation/outpatientChargesManagement.vue View File

@@ -1211,14 +1211,14 @@ export default {
1211 1211
       if (this.curSettlePrescriptions.type == 1) {
1212 1212
         if (this.curSettlePrescriptions.advices != null) {
1213 1213
           for (let a = 0; a < this.curSettlePrescriptions.advices.length; a++) {
1214
-            total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.advices[a].retail_price * this.curSettlePrescriptions.advices[a].prescribing_number)
1214
+            total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.advices[a].retail_price.toFixed(2)  * this.curSettlePrescriptions.advices[a].prescribing_number)
1215 1215
 
1216 1216
           }
1217 1217
         }
1218 1218
       } else {
1219 1219
         if (this.curSettlePrescriptions.project != null) {
1220 1220
           for (let b = 0; b < this.curSettlePrescriptions.project.length; b++) {
1221
-            total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.project[b].price  * this.curSettlePrescriptions.project[b].total)
1221
+            total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.project[b].price.toFixed(2)   * this.curSettlePrescriptions.project[b].total)
1222 1222
 
1223 1223
           }
1224 1224
         }
@@ -1249,7 +1249,7 @@ export default {
1249 1249
         }
1250 1250
 
1251 1251
       }
1252
-      return total
1252
+      return total.toFixed(2)
1253 1253
 
1254 1254
     },
1255 1255
     getTotal() {

+ 2 - 2
src/xt_pages/outpatientCharges/invoiceTemplate/printFour.vue View File

@@ -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.order.certno }}</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.order.mdtrt_id }}</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>