Преглед на файлове

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

28169 преди 1 година
родител
ревизия
dd3232ec90

+ 24 - 5
src/xt_pages/outpatientCharges/chargeDetailManagement.vue Целия файл

@@ -671,6 +671,8 @@ export default {
671 671
 
672 672
               } else {
673 673
                 that.radio = 1
674
+                that.getPatientList()
675
+
674 676
                 that.$message({ message: '撤销成功', type: 'success', duration: 5000 })
675 677
               }
676 678
 
@@ -715,6 +717,7 @@ export default {
715 717
 
716 718
               } else {
717 719
                 that.radio = 2
720
+                that.getPatientList()
718 721
                 that.$message({ message: '上传成功', type: 'success', duration: 5000 })
719 722
               }
720 723
             }
@@ -813,18 +816,34 @@ export default {
813 816
             case 1:
814 817
               this.all_table_data = response.data.data.list
815 818
               this.patientTableData = response.data.data.list
816
-              this.$refs.tab.setCurrentRow(this.patientTableData[0])
817
-              this.getPatientInformation(this.patientTableData[0].id)
819
+              if (this.hisPatientInfo&&this.hisPatientInfo.id > 0){
820
+                for(let i = 0; i < this.patientTableData.length;i++){
821
+                  if(this.hisPatientInfo.id == this.patientTableData[i].id){
822
+                    this.$refs.tab.setCurrentRow(this.patientTableData[i])
823
+                  }
824
+                }
825
+              }else{
826
+                this.$refs.tab.setCurrentRow(this.patientTableData[0])
827
+                this.getPatientInformation(this.patientTableData[0].id)
828
+              }
818 829
               break
819 830
             case 2:
820 831
               this.all_table_data = response.data.data.list_two
821 832
               this.patientTableData = response.data.data.list_two
822 833
               this.upload_list = response.data.data.upload_list
823 834
               this.all_upload_list = response.data.data.upload_list
835
+              if (this.hisPatientInfo && this.hisPatientInfo.id > 0){
836
+                for(let i = 0; i < this.upload_list.length;i++){
837
+                  if(this.hisPatientInfo.id == this.upload_list[i].his_patient.id){
838
+                    this.$refs.tab.setCurrentRow(this.upload_list[i])
839
+                    this.getPatientInformation(this.upload_list[0].id)
824 840
 
825
-              this.$refs.tab.setCurrentRow(this.upload_list[0])
826
-              console.log(this.upload_list[0].id)
827
-              this.getPatientInformationtwo(this.upload_list[0].id)
841
+                  }
842
+                }
843
+              }else{
844
+                this.$refs.tab.setCurrentRow(this.upload_list[0])
845
+                this.getPatientInformation(this.upload_list[0].id)
846
+              }
828 847
               break
829 848
           }
830 849
         }

+ 10 - 7
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Целия файл

@@ -322,7 +322,7 @@
322 322
                                       </template>
323 323
                                     </el-table-column>
324 324
 
325
-                                      <el-table-column label="库存" width="60" v-if="org_id != 10206">
325
+                                      <el-table-column label="库存" width="60" v-if="org_id != 10206 && org_id != 0">
326 326
                                           <template slot-scope="scope">
327 327
                                              <!-- <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id ==9956 || org_id == 10188 || org_id == 10191 || org_id == 10278 || org_id == 10217 || org_id ==10210 || org_id ==record_date ||org_id ==10340">
328 328
                                              <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
@@ -336,7 +336,7 @@
336 336
                                       </el-table-column>
337 337
 
338 338
 <!--                                    //针对对接坐标系统的,使用坐标的库存数据-->
339
-                                    <el-table-column label="库存" width="60" v-if="org_id == 10206">
339
+                                    <el-table-column label="库存" width="60" v-if="org_id == 10206 || org_id == 0">
340 340
                                       <template slot-scope="scope">
341 341
                                         <span>{{scope.row.zuobiao_stock_num}}</span>
342 342
                                       </template>
@@ -422,10 +422,10 @@
422 422
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
423 423
                                             highlight-current-row>
424 424
                                       <el-table-column type="selection" width="40" align="center"></el-table-column>
425
-                                      <el-table-column prop="name" label="名称" v-if="org_id != 10206">
425
+                                      <el-table-column prop="name" label="名称" v-if="org_id != 10206 && org_id != 0">
426 426
                                           <template slot-scope="scope">{{ scope.row.project_name }}</template>
427 427
                                       </el-table-column>
428
-                                    <el-table-column prop="name" label="名称" v-if="org_id == 10206">
428
+                                    <el-table-column prop="name" label="名称" v-if="org_id == 10206 || org_id == 0">
429 429
                                       <template slot-scope="scope">{{ scope.row.project_name }}{{scope.row.number}}</template>
430 430
                                     </el-table-column>
431 431
                                       <el-table-column label="规格" width="60">
@@ -581,6 +581,7 @@ export default {
581 581
   },
582 582
   data() {
583 583
     return {
584
+      drugs:[],
584 585
       zuobiao_project:[],
585 586
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
586 587
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
@@ -642,7 +643,7 @@ export default {
642 643
       form: {
643 644
         name: ''
644 645
       },
645
-      drugs: [],
646
+
646 647
       allDrugs: [],
647 648
       advices_template: [],
648 649
       additions: [],
@@ -738,7 +739,7 @@ export default {
738 739
     getzuobiao(){
739 740
       if(this.org_id == 10206){
740 741
         var that = this
741
-        axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystock', {
742
+        axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystockgood', {
742 743
 
743 744
         })
744 745
           .then(function(response) {
@@ -2232,7 +2233,9 @@ export default {
2232 2233
       if(this.org_id == 10206 || this.org_id == 0){
2233 2234
         this.departmentValue = 263
2234 2235
         this.state1 = 677
2235
-        this.diagnose.push(716)
2236
+        if (this.diagnose.length == 0){
2237
+          this.diagnose.push(716)
2238
+        }
2236 2239
       }
2237 2240
 
2238 2241
     },

+ 18 - 5
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Целия файл

@@ -1497,10 +1497,12 @@ export default {
1497 1497
 
1498 1498
           this.additions = response.data.data.additions
1499 1499
 
1500
+
1501
+
1500 1502
           //针对普爱医院获取药品和耗材相关库存数据
1501 1503
           if(this.org_id == 10206){
1502 1504
             var that = this
1503
-            axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystock', {
1505
+            axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystockdrug', {
1504 1506
 
1505 1507
             })
1506 1508
               .then(function(response) {
@@ -1520,15 +1522,28 @@ export default {
1520 1522
 
1521 1523
                   } else {
1522 1524
                     that.zuobiao_drug  = response.data.data.drug
1525
+                    console.log("坐标~~坐标")
1526
+                    console.log(that.zuobiao_drug)
1527
+                    console.log(response.data.data.drug)
1528
+                    console.log("坐标~~坐标")
1529
+
1523 1530
                     // that.zuobiao_project  = response.data.data.project
1524 1531
                     //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
1525 1532
                       for (let i = 0; i < that.zuobiao_drug.length; i++) {
1526 1533
                         for (let b = 0; b < that.drugs.length; b++) {
1527 1534
                           if (that.zuobiao_drug[i].bby01 == that.drugs[b].bby01){
1528 1535
                             that.drugs[b]["zuobiao_stock_num"] = that.zuobiao_drug[i].sysl
1536
+                            that.drugs[b].min_price = that.zuobiao_drug[i].price
1537
+
1538
+
1529 1539
                           }
1540
+
1530 1541
                         }
1531 1542
                       }
1543
+                    console.log("坐标~~坐标")
1544
+                    console.log(that.drugs)
1545
+                    console.log("坐标~~坐标")
1546
+
1532 1547
 
1533 1548
                   }
1534 1549
                 }
@@ -2047,7 +2062,6 @@ export default {
2047 2062
                   med_type: '',
2048 2063
                   is_medicine_status:false,
2049 2064
                 }
2050
-                if(this.org_id != 10206) {
2051 2065
                   if (prescription.med_type == 0 || prescription.med_type == '') {
2052 2066
 
2053 2067
                     obj.med_type = ''
@@ -2060,11 +2074,10 @@ export default {
2060 2074
                     if (this.org_id != 10206 ) {
2061 2075
                       obj.med_type = 14
2062 2076
                     } else {
2063
-
2064
-                      obj.med_type = ""
2077
+                      obj.med_type = 1
2065 2078
                     }
2066 2079
                   }
2067
-                }
2080
+
2068 2081
                 this.prescriptions.push(obj)
2069 2082
               }
2070 2083