陈少旭 1 год назад
Родитель
Сommit
0e582e3983

+ 59 - 15
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Просмотреть файл

143
                               </el-date-picker>
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
                                          @change="changevalue">
147
                                          @change="changevalue">
148
                                   <el-option
148
                                   <el-option
149
                                           v-for="(item,index) in register"
149
                                           v-for="(item,index) in register"
152
                                           :value="item.value">
152
                                           :value="item.value">
153
                                   </el-option>
153
                                   </el-option>
154
                               </el-select>
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
                               <div style="float: right;margin-bottom:5px;margin-right:1%;">
166
                               <div style="float: right;margin-bottom:5px;margin-right:1%;">
157
                                   <el-button
167
                                   <el-button
303
                                               <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}}
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
                                           </template>
314
                                           </template>
305
                                       </el-table-column>
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
                                           <template slot-scope="scope">
318
                                           <template slot-scope="scope">
308
                                              <!-- <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">
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
                                              <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>
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
                                              <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>
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
                                           </template>
327
                                           </template>
317
                                       </el-table-column>
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
                                       <el-table-column label="单价" width="40">
336
                                       <el-table-column label="单价" width="40">
319
                                           <template slot-scope="scope">{{ scope.row.min_price }}</template>
337
                                           <template slot-scope="scope">{{ scope.row.min_price }}</template>
320
                                       </el-table-column>
338
                                       </el-table-column>
408
                                                  {{scope.row.stock_count}}
426
                                                  {{scope.row.stock_count}}
409
                                             </span>
427
                                             </span>
410
                                             <span v-else> {{ scope.row.total }}</span> -->
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
                                           </template>
433
                                           </template>
413
                                       </el-table-column>
434
                                       </el-table-column>
414
                                       <el-table-column label="单价" width="40">
435
                                       <el-table-column label="单价" width="40">
488
   editHisPrescription,
509
   editHisPrescription,
489
   getCallHisPrescription,
510
   getCallHisPrescription,
490
   getDayOrMonthHisPrescription,
511
   getDayOrMonthHisPrescription,
491
-  getInitData,
492
   getNextOrLastHisPrescription,
512
   getNextOrLastHisPrescription,
493
-  getPatientInfo,
494
-  getSchedulePatientList
495
 } from '@/api/his/his'
513
 } from '@/api/his/his'
496
 import { getDictionaryDataConfig } from '@/utils/data'
514
 import { getDictionaryDataConfig } from '@/utils/data'
497
 import prescriptionTable from './prescriptionTable'
515
 import prescriptionTable from './prescriptionTable'
499
 import saveTemplate from './saveTemplate'
517
 import saveTemplate from './saveTemplate'
500
 import additionalCharges from './additionalCharges'
518
 import additionalCharges from './additionalCharges'
501
 import {
519
 import {
502
-  addProjectTeam,
503
   getAllProjectList,
520
   getAllProjectList,
504
   getAllProjectTeam,
521
   getAllProjectTeam,
505
   getHisProject,
522
   getHisProject,
514
 
531
 
515
 export default {
532
 export default {
516
   props: {
533
   props: {
534
+    zuobiao_drug:Array,
535
+    zuobiao_project:Array,
517
     drugs:Array,
536
     drugs:Array,
518
     allDrugs:Array,
537
     allDrugs:Array,
519
     advices_template:Array,
538
     advices_template:Array,
553
     return {
572
     return {
554
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
573
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
555
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
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
       register: [
587
       register: [
557
 
588
 
558
         { value: 11, label: '普通门诊' },
589
         { value: 11, label: '普通门诊' },
693
   methods: {
724
   methods: {
694
 
725
 
695
     changeClass(id) {
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
       this.tabProject = []
727
       this.tabProject = []
700
       if (id == 0) {
728
       if (id == 0) {
701
         this.tabProject = this.allProject
729
         this.tabProject = this.allProject
1596
       } else {
1624
       } else {
1597
         let arr = []
1625
         let arr = []
1598
         for (let i = 0; i < this.allProject.length; i++) {
1626
         for (let i = 0; i < this.allProject.length; i++) {
1599
-         
1627
+
1600
             if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1628
             if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1601
               arr = arr.concat(this.allProject[i])
1629
               arr = arr.concat(this.allProject[i])
1602
             }
1630
             }
1603
-          
1631
+
1604
         }
1632
         }
1605
         this.tabProject = arr
1633
         this.tabProject = arr
1606
         console.log('kkkk',this.tabProject);
1634
         console.log('kkkk',this.tabProject);
1628
         let arr = []
1656
         let arr = []
1629
         for (let i = 0; i < this.drugs.length; i++) {
1657
         for (let i = 0; i < this.drugs.length; i++) {
1630
           if (this.drugs[i].drug_name.indexOf(this.search_keyword) != -1 ||
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
            this.drugs[i].pinyin.indexOf(this.search_keyword) != -1 ||
1660
            this.drugs[i].pinyin.indexOf(this.search_keyword) != -1 ||
1633
            this.drugs[i].first_letter.indexOf(this.search_keyword) != -1
1661
            this.drugs[i].first_letter.indexOf(this.search_keyword) != -1
1634
            ) {
1662
            ) {
3536
               is_special_diseases: project[i].disease_directory,
3564
               is_special_diseases: project[i].disease_directory,
3537
               project: project[i],
3565
               project: project[i],
3538
               stock_count:0,
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
             // console.log('hhhhh',obj);
3572
             // console.log('hhhhh',obj);
3542
             this.tabProject.push(obj)
3573
             this.tabProject.push(obj)
3570
               is_special_diseases: good_info[i].is_special_diseases,
3601
               is_special_diseases: good_info[i].is_special_diseases,
3571
               good_info: good_info[i],
3602
               good_info: good_info[i],
3572
               stock_count:good_info[i].stock_count,
3603
               stock_count:good_info[i].stock_count,
3604
+              bbx01:good_info[i].bbx01,
3605
+              zuobiao_stock_num:0,
3606
+
3573
             }
3607
             }
3574
             this.tabProject.push(obj)
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
           this.allProject = this.tabProject
3620
           this.allProject = this.tabProject
3621
+
3578
           // console.log('cccc',this.allProject);
3622
           // console.log('cccc',this.allProject);
3579
         }
3623
         }
3580
       })
3624
       })

+ 51 - 6
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Просмотреть файл

161
                            v-on:change="changeOther"
161
                            v-on:change="changeOther"
162
                            v-on:month="changeMonth"
162
                            v-on:month="changeMonth"
163
                            v-on:day="changeDay"
163
                            v-on:day="changeDay"
164
+                           :zuobiao_drug="zuobiao_drug"
165
+                           :zuobiao_project="zuobiao_project"
164
                            :month_prescriptions="month_prescriptions"
166
                            :month_prescriptions="month_prescriptions"
165
                            :org_id="org_id"
167
                            :org_id="org_id"
166
                            ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
168
                            ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
506
 import checkPrint from './checkPrint'
508
 import checkPrint from './checkPrint'
507
 import dialysisIndex from './components/dialysisIndex'
509
 import dialysisIndex from './components/dialysisIndex'
508
 import {getInitPrintDataOne} from '@/api/dialysis_record'
510
 import {getInitPrintDataOne} from '@/api/dialysis_record'
511
+import axios from 'axios'
509
 const moment = require('moment')
512
 const moment = require('moment')
510
 
513
 
511
 export default {
514
 export default {
607
       printList:[],
610
       printList:[],
608
       printDate:'',
611
       printDate:'',
609
       anticoagulants_confit:null,
612
       anticoagulants_confit:null,
610
-      patient_diagnoses:[]
613
+      patient_diagnoses:[],
614
+      zuobiao_drug:[],
615
+      zuobiao_project:[],
611
     }
616
     }
612
   },
617
   },
613
 
618
 
830
     },
835
     },
831
 
836
 
832
     searchAction() {
837
     searchAction() {
833
-      
838
+
834
       if (this.search_input.length == 0) {
839
       if (this.search_input.length == 0) {
835
         switch (this.radio) {
840
         switch (this.radio) {
836
           case 0:
841
           case 0:
861
             break
866
             break
862
           case 2:
867
           case 2:
863
             let arr2 = []
868
             let arr2 = []
864
-           
869
+
865
             for (let i = 0; i < this.cure_data.length; i++) {
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
               this.cure_data[i].number.indexOf(this.search_input) != -1 ||
872
               this.cure_data[i].number.indexOf(this.search_input) != -1 ||
868
               this.cure_data[i].first_letter.indexOf(this.search_input) != -1) {
873
               this.cure_data[i].first_letter.indexOf(this.search_input) != -1) {
869
                 console.log('2222',this.cure_data);
874
                 console.log('2222',this.cure_data);
879
             console.log('3333',this.un_cure_data);
884
             console.log('3333',this.un_cure_data);
880
             for (let i = 0; i < this.un_cure_data.length; i++) {
885
             for (let i = 0; i < this.un_cure_data.length; i++) {
881
               if(this.un_cure_data[i].first_letter!=undefined){
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
                 this.un_cure_data[i].number.indexOf(this.search_input) != -1 ||
888
                 this.un_cure_data[i].number.indexOf(this.search_input) != -1 ||
884
                 this.un_cure_data[i].first_letter.indexOf(this.search_input) != -1) {
889
                 this.un_cure_data[i].first_letter.indexOf(this.search_input) != -1) {
885
                   arr3 = arr3.concat(this.un_cure_data[i])
890
                   arr3 = arr3.concat(this.un_cure_data[i])
886
                 }
891
                 }
887
               }
892
               }
888
-              
893
+
889
             }
894
             }
890
             this.un_cure_data = arr3
895
             this.un_cure_data = arr3
891
             break
896
             break
1486
 
1491
 
1487
           this.additions = response.data.data.additions
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