陈少旭 před 1 rokem
rodič
revize
0e582e3983

+ 59 - 15
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Zobrazit soubor

@@ -143,7 +143,7 @@
143 143
                               </el-date-picker>
144 144
 
145 145
 
146
-                              <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
146
+                              <el-select v-if="org_id != 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
147 147
                                          @change="changevalue">
148 148
                                   <el-option
149 149
                                           v-for="(item,index) in register"
@@ -152,6 +152,16 @@
152 152
                                           :value="item.value">
153 153
                                   </el-option>
154 154
                               </el-select>
155
+<!--                            //针对海拉尔普爱肾病医院-->
156
+                            <el-select v-if="org_id == 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
157
+                                       @change="changevalue">
158
+                              <el-option
159
+                                v-for="(item,index) in register10206"
160
+                                :key="index"
161
+                                :label="item.label"
162
+                                :value="item.value">
163
+                              </el-option>
164
+                            </el-select>
155 165
 
156 166
                               <div style="float: right;margin-bottom:5px;margin-right:1%;">
157 167
                                   <el-button
@@ -303,7 +313,8 @@
303 313
                                               <span v-if="scope.row.min_unit != scope.row.dose_unit">{{scope.row.dose}}{{scope.row.dose_unit}}&nbsp;* &nbsp;</span>{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
304 314
                                           </template>
305 315
                                       </el-table-column>
306
-                                      <el-table-column label="库存" width="60">
316
+
317
+                                      <el-table-column label="库存" width="60" v-if="org_id != 10454">
307 318
                                           <template slot-scope="scope">
308 319
                                              <!-- <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">
309 320
                                              <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>
@@ -315,6 +326,13 @@
315 326
                                              <span v-if="scope.row.sum_count >0 && scope.row.max_unit == scope.row.min_unit">{{scope.row.sum_count}}{{scope.row.max_unit}}</span>
316 327
                                           </template>
317 328
                                       </el-table-column>
329
+
330
+<!--                                    //针对对接坐标系统的,使用坐标的库存数据-->
331
+                                    <el-table-column label="库存" width="60" v-else>
332
+                                      <template slot-scope="scope">
333
+                                        <span>{{scope.row.zuobiao_stock_num}}</span>
334
+                                      </template>
335
+                                    </el-table-column>
318 336
                                       <el-table-column label="单价" width="40">
319 337
                                           <template slot-scope="scope">{{ scope.row.min_price }}</template>
320 338
                                       </el-table-column>
@@ -408,7 +426,10 @@
408 426
                                                  {{scope.row.stock_count}}
409 427
                                             </span>
410 428
                                             <span v-else> {{ scope.row.total }}</span> -->
411
-                                            <span v-if="scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
429
+                                            <span v-if="org_id != 10454 && scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
430
+<!--                                            //针对坐标系统的库存数据-->
431
+                                            <span v-if="org_id == 10454 && scope.row.type == 3">{{scope.row.good_info.zuobiao_stock_num}}</span>
432
+
412 433
                                           </template>
413 434
                                       </el-table-column>
414 435
                                       <el-table-column label="单价" width="40">
@@ -488,10 +509,7 @@ import {
488 509
   editHisPrescription,
489 510
   getCallHisPrescription,
490 511
   getDayOrMonthHisPrescription,
491
-  getInitData,
492 512
   getNextOrLastHisPrescription,
493
-  getPatientInfo,
494
-  getSchedulePatientList
495 513
 } from '@/api/his/his'
496 514
 import { getDictionaryDataConfig } from '@/utils/data'
497 515
 import prescriptionTable from './prescriptionTable'
@@ -499,7 +517,6 @@ import selectTemplate from './selectTemplate'
499 517
 import saveTemplate from './saveTemplate'
500 518
 import additionalCharges from './additionalCharges'
501 519
 import {
502
-  addProjectTeam,
503 520
   getAllProjectList,
504 521
   getAllProjectTeam,
505 522
   getHisProject,
@@ -514,6 +531,8 @@ const moment = require('moment')
514 531
 
515 532
 export default {
516 533
   props: {
534
+    zuobiao_drug:Array,
535
+    zuobiao_project:Array,
517 536
     drugs:Array,
518 537
     allDrugs:Array,
519 538
     advices_template:Array,
@@ -553,6 +572,18 @@ export default {
553 572
     return {
554 573
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
555 574
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
575
+      register10206: [
576
+        { value: 1, label: '普通' },
577
+        { value: 2, label: '急诊' },
578
+        { value: 5, label: '第一类精神药品' },
579
+        { value: 6, label: '第二类精神药品' },
580
+        { value: 7, label: '放射药品' },
581
+        { value: 8, label: '毒性药品' },
582
+        { value: 9, label: '检查' },
583
+        { value: 10, label: '检验' },
584
+        { value: 12, label: '治疗' },
585
+        { value: 99, label: '其他' },
586
+      ],
556 587
       register: [
557 588
 
558 589
         { value: 11, label: '普通门诊' },
@@ -693,9 +724,6 @@ export default {
693 724
   methods: {
694 725
 
695 726
     changeClass(id) {
696
-      console.log("asdaff,id",id)
697
-      console.log("asdaff,this.value",this.value)
698
-      console.log("asdaff,this.allProject",this.allProject)
699 727
       this.tabProject = []
700 728
       if (id == 0) {
701 729
         this.tabProject = this.allProject
@@ -1596,11 +1624,11 @@ export default {
1596 1624
       } else {
1597 1625
         let arr = []
1598 1626
         for (let i = 0; i < this.allProject.length; i++) {
1599
-         
1627
+
1600 1628
             if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1601 1629
               arr = arr.concat(this.allProject[i])
1602 1630
             }
1603
-          
1631
+
1604 1632
         }
1605 1633
         this.tabProject = arr
1606 1634
         console.log('kkkk',this.tabProject);
@@ -1628,7 +1656,7 @@ export default {
1628 1656
         let arr = []
1629 1657
         for (let i = 0; i < this.drugs.length; i++) {
1630 1658
           if (this.drugs[i].drug_name.indexOf(this.search_keyword) != -1 ||
1631
-           this.drugs[i].wubi.indexOf(this.search_keyword) != -1 || 
1659
+           this.drugs[i].wubi.indexOf(this.search_keyword) != -1 ||
1632 1660
            this.drugs[i].pinyin.indexOf(this.search_keyword) != -1 ||
1633 1661
            this.drugs[i].first_letter.indexOf(this.search_keyword) != -1
1634 1662
            ) {
@@ -3536,7 +3564,10 @@ export default {
3536 3564
               is_special_diseases: project[i].disease_directory,
3537 3565
               project: project[i],
3538 3566
               stock_count:0,
3539
-              first_letter:project[i].first_letter
3567
+              first_letter:project[i].first_letter,
3568
+              bbx01:project[i].bbx01,
3569
+              zuobiao_stock_num:0,
3570
+
3540 3571
             }
3541 3572
             // console.log('hhhhh',obj);
3542 3573
             this.tabProject.push(obj)
@@ -3570,11 +3601,24 @@ export default {
3570 3601
               is_special_diseases: good_info[i].is_special_diseases,
3571 3602
               good_info: good_info[i],
3572 3603
               stock_count:good_info[i].stock_count,
3604
+              bbx01:good_info[i].bbx01,
3605
+              zuobiao_stock_num:0,
3606
+
3573 3607
             }
3574 3608
             this.tabProject.push(obj)
3575 3609
           }
3576
-
3610
+          //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3611
+          if(this.org_id == 10205 || this.org_id == 10454) {
3612
+            for (let i = 0; i < this.zuobiao_project.length; i++) {
3613
+              for (let b = 0; b < this.tabProject.length; b++) {
3614
+                if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
3615
+                  this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
3616
+                }
3617
+              }
3618
+            }
3619
+          }
3577 3620
           this.allProject = this.tabProject
3621
+
3578 3622
           // console.log('cccc',this.allProject);
3579 3623
         }
3580 3624
       })

+ 51 - 6
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Zobrazit soubor

@@ -161,6 +161,8 @@
161 161
                            v-on:change="changeOther"
162 162
                            v-on:month="changeMonth"
163 163
                            v-on:day="changeDay"
164
+                           :zuobiao_drug="zuobiao_drug"
165
+                           :zuobiao_project="zuobiao_project"
164 166
                            :month_prescriptions="month_prescriptions"
165 167
                            :org_id="org_id"
166 168
                            ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
@@ -506,6 +508,7 @@ import recordPrint from './recordPrint'
506 508
 import checkPrint from './checkPrint'
507 509
 import dialysisIndex from './components/dialysisIndex'
508 510
 import {getInitPrintDataOne} from '@/api/dialysis_record'
511
+import axios from 'axios'
509 512
 const moment = require('moment')
510 513
 
511 514
 export default {
@@ -607,7 +610,9 @@ export default {
607 610
       printList:[],
608 611
       printDate:'',
609 612
       anticoagulants_confit:null,
610
-      patient_diagnoses:[]
613
+      patient_diagnoses:[],
614
+      zuobiao_drug:[],
615
+      zuobiao_project:[],
611 616
     }
612 617
   },
613 618
 
@@ -830,7 +835,7 @@ export default {
830 835
     },
831 836
 
832 837
     searchAction() {
833
-      
838
+
834 839
       if (this.search_input.length == 0) {
835 840
         switch (this.radio) {
836 841
           case 0:
@@ -861,9 +866,9 @@ export default {
861 866
             break
862 867
           case 2:
863 868
             let arr2 = []
864
-           
869
+
865 870
             for (let i = 0; i < this.cure_data.length; i++) {
866
-              if (this.cure_data[i].name.indexOf(this.search_input) != -1 || 
871
+              if (this.cure_data[i].name.indexOf(this.search_input) != -1 ||
867 872
               this.cure_data[i].number.indexOf(this.search_input) != -1 ||
868 873
               this.cure_data[i].first_letter.indexOf(this.search_input) != -1) {
869 874
                 console.log('2222',this.cure_data);
@@ -879,13 +884,13 @@ export default {
879 884
             console.log('3333',this.un_cure_data);
880 885
             for (let i = 0; i < this.un_cure_data.length; i++) {
881 886
               if(this.un_cure_data[i].first_letter!=undefined){
882
-                if (this.un_cure_data[i].name.indexOf(this.search_input) != -1 || 
887
+                if (this.un_cure_data[i].name.indexOf(this.search_input) != -1 ||
883 888
                 this.un_cure_data[i].number.indexOf(this.search_input) != -1 ||
884 889
                 this.un_cure_data[i].first_letter.indexOf(this.search_input) != -1) {
885 890
                   arr3 = arr3.concat(this.un_cure_data[i])
886 891
                 }
887 892
               }
888
-              
893
+
889 894
             }
890 895
             this.un_cure_data = arr3
891 896
             break
@@ -1486,6 +1491,46 @@ export default {
1486 1491
 
1487 1492
           this.additions = response.data.data.additions
1488 1493
 
1494
+          //针对普爱医院获取药品和耗材相关库存数据
1495
+          if(this.org_id == 10454 || this.org_id == 10205){
1496
+            var that = this
1497
+            axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystock', {
1498
+
1499
+            })
1500
+              .then(function(response) {
1501
+                if (response.data.state == 0) {
1502
+                  that.$message.error(response.data.msg)
1503
+                  that.loadingtwo = false
1504
+                  return false
1505
+                } else {
1506
+                  if (response.data.data.failed_code == -10) {
1507
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
1508
+                      confirmButtonText: '确 定',
1509
+                      type: 'warning'
1510
+                    }).then(() => {
1511
+
1512
+                    }).catch(() => {
1513
+                    })
1514
+
1515
+                  } else {
1516
+                    that.zuobiao_drug  = response.data.data.drug
1517
+                    //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
1518
+                    if(that.org_id == 10205 || that.org_id == 10454) {
1519
+                      for (let i = 0; i < that.zuobiao_drug.length; i++) {
1520
+                        for (let b = 0; b < that.drugs.length; b++) {
1521
+                          if (that.zuobiao_project[i].ggid == that.drugs[b].bby01){
1522
+                            that.drugs[b]["zuobiao_stock_num"] = that.zuobiao_project[i].sysl
1523
+                          }
1524
+                        }
1525
+                      }
1526
+                    }
1527
+                    that.zuobiao_project  = response.data.data.project
1528
+                  }
1529
+                }
1530
+              })
1531
+              .catch(function(error) {
1532
+              })
1533
+          }
1489 1534
         }
1490 1535
       })
1491 1536