瀏覽代碼

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

csx 3 年之前
父節點
當前提交
819640ba99

+ 2 - 2
src/xt_pages/hospitalStation/components/deskPrescription.vue 查看文件

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
 

+ 1 - 1
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue 查看文件

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 查看文件

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 查看文件

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