Przeglądaj źródła

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

csx 4 lat temu
rodzic
commit
a922cf2474

+ 15 - 15
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Wyświetl plik

87
           <!--&gt;退号-->
87
           <!--&gt;退号-->
88
           <!--</el-button>-->
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
           <!--<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"-->
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
           <!--&gt;查编码-->
96
           <!--&gt;查编码-->
97
           <!--</el-button>-->
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
         </div>
104
         </div>
526
                   single_dose: prescription.advices[b].single_dose,
526
                   single_dose: prescription.advices[b].single_dose,
527
                   delivery_way: prescription.advices[b].delivery_way,
527
                   delivery_way: prescription.advices[b].delivery_way,
528
                   execution_frequency: prescription.advices[b].execution_frequency,
528
                   execution_frequency: prescription.advices[b].execution_frequency,
529
-                  retail_price: prescription.advices[b].price.toString(),
529
+                  retail_price: prescription.advices[b].price,
530
                   remark: prescription.advices[b].remark,
530
                   remark: prescription.advices[b].remark,
531
                   day: prescription.advices[b].day,
531
                   day: prescription.advices[b].day,
532
                   prescribing_number: prescription.advices[b].prescribing_number.toString(),
532
                   prescribing_number: prescription.advices[b].prescribing_number.toString(),
614
         if (this.curPrescriptions.type == 1) {
614
         if (this.curPrescriptions.type == 1) {
615
           if (this.curPrescriptions.advices != null) {
615
           if (this.curPrescriptions.advices != null) {
616
             for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
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
         } else {
621
         } else {
622
           if (this.curPrescriptions.project != null) {
622
           if (this.curPrescriptions.project != null) {
623
             for (let b = 0; b < this.curPrescriptions.project.length; b++) {
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
 
629
 
630
         if (this.curPrescriptions.addition != null) {
630
         if (this.curPrescriptions.addition != null) {
631
           for (let b = 0; b < this.curPrescriptions.addition.length; b++) {
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
       getTotal() {
638
       getTotal() {
640
         for (let i = 0; i < this.prescriptions.length; i++) {
640
         for (let i = 0; i < this.prescriptions.length; i++) {
641
           if (this.prescriptions[i].advices != null) {
641
           if (this.prescriptions[i].advices != null) {
642
             for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
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
           if (this.prescriptions[i].project != null) {
646
           if (this.prescriptions[i].project != null) {
647
             for (let b = 0; b < this.prescriptions[i].project.length; b++) {
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
           if (this.prescriptions[i].addition != null) {
652
           if (this.prescriptions[i].addition != null) {
653
             for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
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
       moreState(tab, event) {
661
       moreState(tab, event) {

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue Wyświetl plik

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

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue Wyświetl plik

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