Browse Source

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

csx 4 years ago
parent
commit
a922cf2474

+ 15 - 15
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -87,18 +87,18 @@
87 87
           <!--&gt;退号-->
88 88
           <!--</el-button>-->
89 89
 
90
-          <!--<el-button v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919" size="small" @click="open(11)" type="primary"-->
91
-          <!--&gt;撤销明细-->
92
-          <!--</el-button>-->
90
+          <el-button v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919" size="small" @click="open(11)" type="primary"
91
+          >撤销明细
92
+          </el-button>
93 93
 
94 94
 
95 95
           <!--<el-button v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919" size="small" @click="open(12)" type="primary"-->
96 96
           <!--&gt;查编码-->
97 97
           <!--</el-button>-->
98 98
 
99
-          <!--<el-button v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919" size="small" @click="open(13)" type="primary"-->
100
-          <!--&gt;查待遇-->
101
-          <!--</el-button>-->
99
+          <el-button v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919" size="small" @click="open(13)" type="primary"
100
+          >查待遇
101
+          </el-button>
102 102
 
103 103
 
104 104
         </div>
@@ -526,7 +526,7 @@
526 526
                   single_dose: prescription.advices[b].single_dose,
527 527
                   delivery_way: prescription.advices[b].delivery_way,
528 528
                   execution_frequency: prescription.advices[b].execution_frequency,
529
-                  retail_price: prescription.advices[b].price.toString(),
529
+                  retail_price: prescription.advices[b].price,
530 530
                   remark: prescription.advices[b].remark,
531 531
                   day: prescription.advices[b].day,
532 532
                   prescribing_number: prescription.advices[b].prescribing_number.toString(),
@@ -614,14 +614,14 @@
614 614
         if (this.curPrescriptions.type == 1) {
615 615
           if (this.curPrescriptions.advices != null) {
616 616
             for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
617
-              total = total + Math.floor((this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number) * 100) / 100
617
+              total = total + (this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number)
618 618
 
619 619
             }
620 620
           }
621 621
         } else {
622 622
           if (this.curPrescriptions.project != null) {
623 623
             for (let b = 0; b < this.curPrescriptions.project.length; b++) {
624
-              total = total + Math.floor((this.curPrescriptions.project[b].price * this.curPrescriptions.project[b].total) * 100) / 100
624
+              total = total + (this.curPrescriptions.project[b].price * this.curPrescriptions.project[b].total)
625 625
 
626 626
             }
627 627
           }
@@ -629,10 +629,10 @@
629 629
 
630 630
         if (this.curPrescriptions.addition != null) {
631 631
           for (let b = 0; b < this.curPrescriptions.addition.length; b++) {
632
-            total = total + Math.floor((this.curPrescriptions.addition[b].price * this.curPrescriptions.addition[b].count) * 100) / 100
632
+            total = total + (this.curPrescriptions.addition[b].price * this.curPrescriptions.addition[b].count)
633 633
           }
634 634
         }
635
-        return Math.floor(total * 100) / 100
635
+        return (total * 100) / 100
636 636
 
637 637
       },
638 638
       getTotal() {
@@ -640,22 +640,22 @@
640 640
         for (let i = 0; i < this.prescriptions.length; i++) {
641 641
           if (this.prescriptions[i].advices != null) {
642 642
             for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
643
-              total = total + Math.floor((this.prescriptions[i].advices[a].retail_price * this.prescriptions[i].advices[a].prescribing_number) * 100) / 100
643
+              total = total + (this.prescriptions[i].advices[a].retail_price * this.prescriptions[i].advices[a].prescribing_number)
644 644
             }
645 645
           }
646 646
           if (this.prescriptions[i].project != null) {
647 647
             for (let b = 0; b < this.prescriptions[i].project.length; b++) {
648 648
 
649
-              total = total + Math.floor((this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total) * 100) / 100
649
+              total = total + (this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total)
650 650
             }
651 651
           }
652 652
           if (this.prescriptions[i].addition != null) {
653 653
             for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
654
-              total = total + Math.floor((this.prescriptions[i].addition[b].price * this.prescriptions[i].addition[b].count) * 100) / 100
654
+              total = total + (this.prescriptions[i].addition[b].price * this.prescriptions[i].addition[b].count)
655 655
             }
656 656
           }
657 657
         }
658
-        return Math.floor(total * 100) / 100
658
+        return (total * 100) / 100
659 659
 
660 660
       },
661 661
       moreState(tab, event) {

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue View File

@@ -247,7 +247,7 @@
247 247
             let tempAddition = []
248 248
             for (let b = 0; b < prescription.doctor_advice.length; b++) {
249 249
               let obj = {
250
-                advice_id: prescription.doctor_advice[b].id,
250
+                advice_id: 0,
251 251
                 drug_name: prescription.doctor_advice[b].advice_name,
252 252
                 single_dose: prescription.doctor_advice[b].single_dose,
253 253
                 delivery_way: prescription.doctor_advice[b].delivery_way,
@@ -268,7 +268,7 @@
268 268
 
269 269
             for (let b = 0; b < prescription.project.length; b++) {
270 270
               let obj = {
271
-                id: prescription.project[b].id,
271
+                id: 0,
272 272
                 project_id: prescription.project[b].project_id,
273 273
                 project_name: prescription.project[b].project.project_name,
274 274
                 statistical_classification: prescription.project[b].project.statistical_classification,

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue View File

@@ -302,7 +302,7 @@
302 302
             let tempAddition = []
303 303
             for (let b = 0; b < prescription.doctor_advice.length; b++) {
304 304
               let obj = {
305
-                advice_id: prescription.doctor_advice[b].id,
305
+                advice_id: 0,
306 306
                 drug_name: prescription.doctor_advice[b].advice_name,
307 307
                 single_dose: prescription.doctor_advice[b].single_dose,
308 308
                 delivery_way: prescription.doctor_advice[b].delivery_way,
@@ -323,7 +323,7 @@
323 323
 
324 324
             for (let b = 0; b < prescription.project.length; b++) {
325 325
               let obj = {
326
-                id: prescription.project[b].id,
326
+                id: 0,
327 327
                 project_id: prescription.project[b].project_id,
328 328
                 project_name: prescription.project[b].project.project_name,
329 329
                 statistical_classification: prescription.project[b].project.statistical_classification,