Browse Source

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

28169 1 year ago
parent
commit
dd3232ec90

+ 24 - 5
src/xt_pages/outpatientCharges/chargeDetailManagement.vue View File

671
 
671
 
672
               } else {
672
               } else {
673
                 that.radio = 1
673
                 that.radio = 1
674
+                that.getPatientList()
675
+
674
                 that.$message({ message: '撤销成功', type: 'success', duration: 5000 })
676
                 that.$message({ message: '撤销成功', type: 'success', duration: 5000 })
675
               }
677
               }
676
 
678
 
715
 
717
 
716
               } else {
718
               } else {
717
                 that.radio = 2
719
                 that.radio = 2
720
+                that.getPatientList()
718
                 that.$message({ message: '上传成功', type: 'success', duration: 5000 })
721
                 that.$message({ message: '上传成功', type: 'success', duration: 5000 })
719
               }
722
               }
720
             }
723
             }
813
             case 1:
816
             case 1:
814
               this.all_table_data = response.data.data.list
817
               this.all_table_data = response.data.data.list
815
               this.patientTableData = response.data.data.list
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
               break
829
               break
819
             case 2:
830
             case 2:
820
               this.all_table_data = response.data.data.list_two
831
               this.all_table_data = response.data.data.list_two
821
               this.patientTableData = response.data.data.list_two
832
               this.patientTableData = response.data.data.list_two
822
               this.upload_list = response.data.data.upload_list
833
               this.upload_list = response.data.data.upload_list
823
               this.all_upload_list = response.data.data.upload_list
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
               break
847
               break
829
           }
848
           }
830
         }
849
         }

+ 10 - 7
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

322
                                       </template>
322
                                       </template>
323
                                     </el-table-column>
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
                                           <template slot-scope="scope">
326
                                           <template slot-scope="scope">
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">
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
                                              <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>
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
                                       </el-table-column>
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
                                       <template slot-scope="scope">
340
                                       <template slot-scope="scope">
341
                                         <span>{{scope.row.zuobiao_stock_num}}</span>
341
                                         <span>{{scope.row.zuobiao_stock_num}}</span>
342
                                       </template>
342
                                       </template>
422
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
422
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
423
                                             highlight-current-row>
423
                                             highlight-current-row>
424
                                       <el-table-column type="selection" width="40" align="center"></el-table-column>
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
                                           <template slot-scope="scope">{{ scope.row.project_name }}</template>
426
                                           <template slot-scope="scope">{{ scope.row.project_name }}</template>
427
                                       </el-table-column>
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
                                       <template slot-scope="scope">{{ scope.row.project_name }}{{scope.row.number}}</template>
429
                                       <template slot-scope="scope">{{ scope.row.project_name }}{{scope.row.number}}</template>
430
                                     </el-table-column>
430
                                     </el-table-column>
431
                                       <el-table-column label="规格" width="60">
431
                                       <el-table-column label="规格" width="60">
581
   },
581
   },
582
   data() {
582
   data() {
583
     return {
583
     return {
584
+      drugs:[],
584
       zuobiao_project:[],
585
       zuobiao_project:[],
585
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
586
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
586
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
587
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
642
       form: {
643
       form: {
643
         name: ''
644
         name: ''
644
       },
645
       },
645
-      drugs: [],
646
+
646
       allDrugs: [],
647
       allDrugs: [],
647
       advices_template: [],
648
       advices_template: [],
648
       additions: [],
649
       additions: [],
738
     getzuobiao(){
739
     getzuobiao(){
739
       if(this.org_id == 10206){
740
       if(this.org_id == 10206){
740
         var that = this
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
           .then(function(response) {
745
           .then(function(response) {
2232
       if(this.org_id == 10206 || this.org_id == 0){
2233
       if(this.org_id == 10206 || this.org_id == 0){
2233
         this.departmentValue = 263
2234
         this.departmentValue = 263
2234
         this.state1 = 677
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 View File

1497
 
1497
 
1498
           this.additions = response.data.data.additions
1498
           this.additions = response.data.data.additions
1499
 
1499
 
1500
+
1501
+
1500
           //针对普爱医院获取药品和耗材相关库存数据
1502
           //针对普爱医院获取药品和耗材相关库存数据
1501
           if(this.org_id == 10206){
1503
           if(this.org_id == 10206){
1502
             var that = this
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
               .then(function(response) {
1508
               .then(function(response) {
1520
 
1522
 
1521
                   } else {
1523
                   } else {
1522
                     that.zuobiao_drug  = response.data.data.drug
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
                     // that.zuobiao_project  = response.data.data.project
1530
                     // that.zuobiao_project  = response.data.data.project
1524
                     //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
1531
                     //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
1525
                       for (let i = 0; i < that.zuobiao_drug.length; i++) {
1532
                       for (let i = 0; i < that.zuobiao_drug.length; i++) {
1526
                         for (let b = 0; b < that.drugs.length; b++) {
1533
                         for (let b = 0; b < that.drugs.length; b++) {
1527
                           if (that.zuobiao_drug[i].bby01 == that.drugs[b].bby01){
1534
                           if (that.zuobiao_drug[i].bby01 == that.drugs[b].bby01){
1528
                             that.drugs[b]["zuobiao_stock_num"] = that.zuobiao_drug[i].sysl
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
                   med_type: '',
2062
                   med_type: '',
2048
                   is_medicine_status:false,
2063
                   is_medicine_status:false,
2049
                 }
2064
                 }
2050
-                if(this.org_id != 10206) {
2051
                   if (prescription.med_type == 0 || prescription.med_type == '') {
2065
                   if (prescription.med_type == 0 || prescription.med_type == '') {
2052
 
2066
 
2053
                     obj.med_type = ''
2067
                     obj.med_type = ''
2060
                     if (this.org_id != 10206 ) {
2074
                     if (this.org_id != 10206 ) {
2061
                       obj.med_type = 14
2075
                       obj.med_type = 14
2062
                     } else {
2076
                     } else {
2063
-
2064
-                      obj.med_type = ""
2077
+                      obj.med_type = 1
2065
                     }
2078
                     }
2066
                   }
2079
                   }
2067
-                }
2080
+
2068
                 this.prescriptions.push(obj)
2081
                 this.prescriptions.push(obj)
2069
               }
2082
               }
2070
 
2083