Browse Source

提交代码

陈少旭 1 year ago
parent
commit
0c691ca154

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

@@ -305,9 +305,12 @@
305 305
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
306 306
                                             highlight-current-row>
307 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 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 314
                                       <el-table-column label="规格" width="60" v-if="org_id == 10206 || org_id == 0">
312 315
                                           <template slot-scope="scope">
313 316
                                               <span>{{scope.row.drug_spec}}</span>
@@ -419,9 +422,12 @@
419 422
                                             :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
420 423
                                             highlight-current-row>
421 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 426
                                           <template slot-scope="scope">{{ scope.row.project_name }}</template>
424 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 431
                                       <el-table-column label="规格" width="60">
426 432
                                           <template slot-scope="scope">{{ scope.row.single_dose }}</template>
427 433
                                       </el-table-column>
@@ -531,13 +537,13 @@ import { uParseTime } from '@/utils/tools'
531 537
 import NextOrLastPrescription from './nextOrLastPrescription'
532 538
 import CallPrescription from './callPrescription'
533 539
 import DayPrescriptionTable from '../../outpatientCharges/components/dayPrescriptionTable'
540
+import axios from 'axios'
534 541
 
535 542
 const moment = require('moment')
536 543
 
537 544
 export default {
538 545
   props: {
539 546
     zuobiao_drug:Array,
540
-    zuobiao_project:Array,
541 547
     drugs:Array,
542 548
     allDrugs:Array,
543 549
     advices_template:Array,
@@ -575,6 +581,7 @@ export default {
575 581
   },
576 582
   data() {
577 583
     return {
584
+      zuobiao_project:[],
578 585
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
579 586
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
580 587
       register10206: [
@@ -728,7 +735,41 @@ export default {
728 735
     }
729 736
   },
730 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 773
     changeClass(id) {
733 774
       this.tabProject = []
734 775
       if (id == 0) {
@@ -3608,6 +3649,7 @@ export default {
3608 3649
               first_letter:project[i].first_letter,
3609 3650
               bbx01:project[i].bbx01,
3610 3651
               zuobiao_stock_num:0,
3652
+              number:""
3611 3653
 
3612 3654
             }
3613 3655
             this.tabProject.push(obj)
@@ -3644,10 +3686,14 @@ export default {
3644 3686
               first_letter:good_info[i].first_letter,
3645 3687
               bbx01:good_info[i].bbx01,
3646 3688
               zuobiao_stock_num:0,
3689
+              number: good_info[i].good_number
3647 3690
 
3648 3691
             }
3649 3692
             this.tabProject.push(obj)
3650 3693
           }
3694
+
3695
+          this.allProject = this.tabProject
3696
+
3651 3697
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3652 3698
           if(this.org_id == 10206 ) {
3653 3699
             for (let i = 0; i < this.zuobiao_project.length; i++) {
@@ -3660,6 +3706,8 @@ export default {
3660 3706
           }
3661 3707
 
3662 3708
           this.allProject = this.tabProject
3709
+
3710
+
3663 3711
           // console.log('cccc',this.allProject);
3664 3712
         }
3665 3713
       })
@@ -3826,6 +3874,7 @@ export default {
3826 3874
     this.request_record_date = this.record_date
3827 3875
     // this.getInitData()
3828 3876
     //获取所有项目
3877
+    this.getzuobiao()
3829 3878
     this.getlist()
3830 3879
     //获取所以项目组套
3831 3880
     this.getAllProjectTeam()

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

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