Ver código fonte

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 ano atrás
pai
commit
12fa4428b0

+ 10 - 0
src/api/his/his.js Ver arquivo

@@ -845,6 +845,16 @@ export function getfapiaonumber(){
845 845
 
846 846
 
847 847
 
848
+export function getHisOrderListtwo(params){
849
+  return request({
850
+    url:"/api/hisorder/listtwo",
851
+    method:"get",
852
+    params:params
853
+
854
+  })
855
+}
856
+
857
+
848 858
 
849 859
 
850 860
 

+ 45 - 16
src/xt_pages/outpatientCharges/summary.vue Ver arquivo

@@ -146,7 +146,7 @@
146 146
           <!--          >-->
147 147
 
148 148
 <!--          <el-button size="small" type="primary" @click="export_detail_three">报表下载12</el-button>-->
149
-          <el-button size="small" type="primary" @click="accounts_click = !accounts_click">门诊结账</el-button>
149
+          <el-button size="small" type="primary" @click="accounts_click()">门诊结账</el-button>
150 150
           <!-- <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
151 151
           <!-- <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
152 152
           <!--           <el-button size="small" type="primary" @click="export_detail_six">诊疗下载</el-button>-->
@@ -531,7 +531,7 @@
531 531
       class="centerDialog"
532 532
       width="70%"
533 533
       title="打印"
534
-      :visible.sync="accounts_click"
534
+      :visible.sync="accounts_click_vi"
535 535
     >
536 536
       <div>
537 537
         <div id="accounts_print">
@@ -549,17 +549,19 @@
549 549
                 </tr>
550 550
                 <tr>
551 551
                   <td>起始单号:</td>
552
-                  <td v-if="tableData2.length > 0">{{tableData2[0].number}}</td>
552
+                  <td v-if="tableData2&&tableData2.length > 0">{{tableData2[0].number}}</td>
553 553
                   <td v-else></td>
554 554
                   <td>终止单号:</td>
555
-                  <td v-if="tableData2.length > 0">{{tableData2[tableData2.length-1].number}}</td>
555
+                  <td v-if="tableData2&&tableData2.length > 0">{{tableData2[tableData2.length-1].number}}</td>
556 556
                   <td v-else></td>
557 557
                   <td>缴款人员:</td>
558 558
                   <td>{{staff}}</td>
559 559
                 </tr>
560 560
                 <tr>
561 561
                   <td>收费张数:</td>
562
-                  <td>{{tableData2.length}}</td>
562
+                  <td v-if="tableData2">{{tableData2.length}}</td>
563
+                  <td v-else></td>
564
+
563 565
                   <td>作废张数:</td>
564 566
                   <td>0</td>
565 567
                   <td>退费张数:</td>
@@ -575,7 +577,8 @@
575 577
                 </tr>
576 578
                 <tr>
577 579
                   <td>合计张数:</td>
578
-                  <td>{{tableData2.length}}</td>
580
+                  <td v-if="tableData2">{{tableData2.length}}</td>
581
+                  <td v-else></td>
579 582
                   <td>合计金额:</td>
580 583
                   <td colspan="3">{{getTotal()}}</td>
581 584
                 </tr>
@@ -629,7 +632,7 @@
629 632
         </div>
630 633
       </div>
631 634
       <span slot="footer" class="dialog-footer">
632
-        <el-button @click="accounts_click = false">取 消</el-button>
635
+        <el-button @click="accounts_click_vi = false">取 消</el-button>
633 636
         <el-button type="primary" @click="accounts_sum">确 定</el-button>
634 637
       </span>
635 638
     </el-dialog>
@@ -658,7 +661,8 @@ import {
658 661
   getHisDataSix,
659 662
   getHisDataThree,
660 663
   getHisDataTwo,
661
-  handleOne
664
+  handleOne,
665
+  getHisOrderListtwo
662 666
 } from '../../api/his/his'
663 667
 
664 668
 import { handleData10106, handleData10138Two, handleData10318 } from '../../api/his/his_export'
@@ -732,7 +736,7 @@ export default {
732 736
       invoiceParams: {},
733 737
       settlementVisible: false,
734 738
       settlementObj: {},
735
-      accounts_click:false,
739
+      accounts_click_vi:false,
736 740
     }
737 741
   },
738 742
 
@@ -778,24 +782,49 @@ export default {
778 782
   },
779 783
 
780 784
   methods: {
785
+    accounts_click(){
786
+      let params = {
787
+        start_time: this.start_time,
788
+        end_time: this.end_time,
789
+      }
790
+      getHisOrderListtwo(params).then((response) => {
791
+        if (response.data.state == 0) {
792
+          this.$message.error(response.data.msg)
793
+          return false
794
+        } else {
795
+          this.accounts_click_vi=  true
796
+          this.tableData2 =  response.data.data.order2
797
+
798
+        }
799
+      })
800
+
801
+    },
781 802
     getPsnCash(){
782 803
       let result = 0
783
-      for(let i = 0;i < this.tableData2.length; i++){
784
-        result = result + this.tableData2[i].psn_cash_pay
804
+      if(this.tableData2 != null) {
805
+        for (let i = 0; i < this.tableData2.length; i++) {
806
+          result = result + this.tableData2[i].psn_cash_pay
807
+        }
785 808
       }
786
-      return result.toFixed(2)
809
+        return result.toFixed(2)
787 810
     },
788 811
     getYibao(){
789 812
       let result = 0
790
-      for(let i = 0;i < this.tableData2.length; i++){
791
-        result = result + this.tableData2[i].fund_pay_sumamt
813
+      if(this.tableData2 != null) {
814
+
815
+        for (let i = 0; i < this.tableData2.length; i++) {
816
+          result = result + this.tableData2[i].fund_pay_sumamt
817
+        }
792 818
       }
793 819
       return result.toFixed(2)
794 820
     },
795 821
     getTotal(){
796 822
      let result = 0
797
-      for(let i = 0;i < this.tableData2.length; i++){
798
-        result = result + this.tableData2[i].medfee_sumamt
823
+      if(this.tableData2 != null) {
824
+
825
+        for (let i = 0; i < this.tableData2.length; i++) {
826
+          result = result + this.tableData2[i].medfee_sumamt
827
+        }
799 828
       }
800 829
       return result.toFixed(2)
801 830
     },

+ 22 - 1
src/xt_pages/stock/query/purchaseNewStockQuery.vue Ver arquivo

@@ -265,7 +265,10 @@ export default {
265 265
             this.loading = false
266 266
             for(let i=0;i<list.length;i++){
267 267
                
268
-               list[i].stockIn = list[i].GoodStartFlowInfo.over_count
268
+             
269
+              list[i].stockIn = list[i].GoodStartFlowInfo.over_count
270
+
271
+              //list[i].stockIn = this.getAllStockIn(list[i].StWarehousingInfoTwo) - this.getAllOutStockIn(list[i].WarehouseOutInfoTenty)
269 272
                list[i].stock_in_price = "/"
270 273
                list[i].stockMoney = "/"
271 274
               
@@ -1086,6 +1089,24 @@ export default {
1086 1089
       }
1087 1090
       return dear_name
1088 1091
     },
1092
+    getAllStockIn(val){
1093
+       var count = 0
1094
+      if(val!=null && val.length>0){
1095
+        for(let i=0;i<val.length;i++){
1096
+            count+= val[i].warehousing_count
1097
+        }
1098
+      }
1099
+      return count
1100
+    },
1101
+    getAllOutStockIn(val){
1102
+       var count = 0 
1103
+       if(val!=null && val.length>0){
1104
+         for(let i=0;i<val.length;i++){
1105
+           count +=val[i].count
1106
+         }
1107
+       }
1108
+       return count
1109
+    } 
1089 1110
   },
1090 1111
 
1091 1112
 }