Browse Source

提交代码

陈少旭 1 year ago
parent
commit
0c691ca154

+ 53 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

305
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
305
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
306
                                             highlight-current-row>
306
                                             highlight-current-row>
307
                                       <el-table-column type="selection" width="40" align="center"></el-table-column>
307
                                       <el-table-column type="selection" width="40" align="center"></el-table-column>
308
-                                      <el-table-column label="名称">
309
-                                          <template slot-scope="scope">{{ scope.row.drug_name }}</template>
308
+                                      <el-table-column label="名称"  v-if="org_id != 10206">
309
+                                          <template slot-scope="scope">{{ scope.row.drug_name}}</template>
310
                                       </el-table-column>
310
                                       </el-table-column>
311
+                                    <el-table-column label="名称"  v-if="org_id == 10206">
312
+                                      <template slot-scope="scope">{{ scope.row.drug_name}} {{scope.row.number}}</template>
313
+                                    </el-table-column>
311
                                       <el-table-column label="规格" width="60" v-if="org_id == 10206 || org_id == 0">
314
                                       <el-table-column label="规格" width="60" v-if="org_id == 10206 || org_id == 0">
312
                                           <template slot-scope="scope">
315
                                           <template slot-scope="scope">
313
                                               <span>{{scope.row.drug_spec}}</span>
316
                                               <span>{{scope.row.drug_spec}}</span>
419
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
422
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
420
                                             highlight-current-row>
423
                                             highlight-current-row>
421
                                       <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>
422
-                                      <el-table-column prop="name" label="名称">
425
+                                      <el-table-column prop="name" label="名称" v-if="org_id != 10206">
423
                                           <template slot-scope="scope">{{ scope.row.project_name }}</template>
426
                                           <template slot-scope="scope">{{ scope.row.project_name }}</template>
424
                                       </el-table-column>
427
                                       </el-table-column>
428
+                                    <el-table-column prop="name" label="名称" v-if="org_id == 10206">
429
+                                      <template slot-scope="scope">{{ scope.row.project_name }}{{scope.row.number}}</template>
430
+                                    </el-table-column>
425
                                       <el-table-column label="规格" width="60">
431
                                       <el-table-column label="规格" width="60">
426
                                           <template slot-scope="scope">{{ scope.row.single_dose }}</template>
432
                                           <template slot-scope="scope">{{ scope.row.single_dose }}</template>
427
                                       </el-table-column>
433
                                       </el-table-column>
531
 import NextOrLastPrescription from './nextOrLastPrescription'
537
 import NextOrLastPrescription from './nextOrLastPrescription'
532
 import CallPrescription from './callPrescription'
538
 import CallPrescription from './callPrescription'
533
 import DayPrescriptionTable from '../../outpatientCharges/components/dayPrescriptionTable'
539
 import DayPrescriptionTable from '../../outpatientCharges/components/dayPrescriptionTable'
540
+import axios from 'axios'
534
 
541
 
535
 const moment = require('moment')
542
 const moment = require('moment')
536
 
543
 
537
 export default {
544
 export default {
538
   props: {
545
   props: {
539
     zuobiao_drug:Array,
546
     zuobiao_drug:Array,
540
-    zuobiao_project:Array,
541
     drugs:Array,
547
     drugs:Array,
542
     allDrugs:Array,
548
     allDrugs:Array,
543
     advices_template:Array,
549
     advices_template:Array,
575
   },
581
   },
576
   data() {
582
   data() {
577
     return {
583
     return {
584
+      zuobiao_project:[],
578
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
585
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
579
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
586
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
580
       register10206: [
587
       register10206: [
728
     }
735
     }
729
   },
736
   },
730
   methods: {
737
   methods: {
738
+    getzuobiao(){
739
+      if(this.org_id == 10206){
740
+        var that = this
741
+        axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystock', {
742
+
743
+        })
744
+          .then(function(response) {
745
+            if (response.data.state == 0) {
746
+              that.$message.error(response.data.msg)
747
+              that.loadingtwo = false
748
+              return false
749
+            } else {
750
+              if (response.data.data.failed_code == -10) {
751
+                that.$confirm(response.data.data.msg, '医保错误信息', {
752
+                  confirmButtonText: '确 定',
753
+                  type: 'warning'
754
+                }).then(() => {
755
+
756
+                }).catch(() => {
757
+                })
758
+
759
+              } else {
760
+                // that.zuobiao_drug  = response.data.data.drug
761
+                that.zuobiao_project  = response.data.data.project
762
+
763
+
764
+              }
765
+            }
766
+          })
767
+          .catch(function(error) {
768
+          })
769
+      }
770
+
731
 
771
 
772
+    },
732
     changeClass(id) {
773
     changeClass(id) {
733
       this.tabProject = []
774
       this.tabProject = []
734
       if (id == 0) {
775
       if (id == 0) {
3608
               first_letter:project[i].first_letter,
3649
               first_letter:project[i].first_letter,
3609
               bbx01:project[i].bbx01,
3650
               bbx01:project[i].bbx01,
3610
               zuobiao_stock_num:0,
3651
               zuobiao_stock_num:0,
3652
+              number:""
3611
 
3653
 
3612
             }
3654
             }
3613
             this.tabProject.push(obj)
3655
             this.tabProject.push(obj)
3644
               first_letter:good_info[i].first_letter,
3686
               first_letter:good_info[i].first_letter,
3645
               bbx01:good_info[i].bbx01,
3687
               bbx01:good_info[i].bbx01,
3646
               zuobiao_stock_num:0,
3688
               zuobiao_stock_num:0,
3689
+              number: good_info[i].good_number
3647
 
3690
 
3648
             }
3691
             }
3649
             this.tabProject.push(obj)
3692
             this.tabProject.push(obj)
3650
           }
3693
           }
3694
+
3695
+          this.allProject = this.tabProject
3696
+
3651
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3697
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3652
           if(this.org_id == 10206 ) {
3698
           if(this.org_id == 10206 ) {
3653
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3699
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3660
           }
3706
           }
3661
 
3707
 
3662
           this.allProject = this.tabProject
3708
           this.allProject = this.tabProject
3709
+
3710
+
3663
           // console.log('cccc',this.allProject);
3711
           // console.log('cccc',this.allProject);
3664
         }
3712
         }
3665
       })
3713
       })
3826
     this.request_record_date = this.record_date
3874
     this.request_record_date = this.record_date
3827
     // this.getInitData()
3875
     // this.getInitData()
3828
     //获取所有项目
3876
     //获取所有项目
3877
+    this.getzuobiao()
3829
     this.getlist()
3878
     this.getlist()
3830
     //获取所以项目组套
3879
     //获取所以项目组套
3831
     this.getAllProjectTeam()
3880
     this.getAllProjectTeam()

+ 3 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue View File

45
             highlight-current-row
45
             highlight-current-row
46
             ref="tab"
46
             ref="tab"
47
           >
47
           >
48
+            <el-table-column type="index" align="center" label="序号" width="60">
49
+            </el-table-column>
48
             <el-table-column prop="name" label="姓名">
50
             <el-table-column prop="name" label="姓名">
49
               <template slot-scope="scope"
51
               <template slot-scope="scope"
50
                 >{{ scope.row.name }}({{ scope.row.dialysis_no }})</template
52
                 >{{ scope.row.name }}({{ scope.row.dialysis_no }})</template
106
         </el-pagination>
108
         </el-pagination>
107
       </div>
109
       </div>
108
     </div>
110
     </div>
109
-    
111
+
110
   </div>
112
   </div>
111
 </template>
113
 </template>
112
 
114