Browse Source

提交代码

陈少旭 1 year ago
parent
commit
8bb6c03530

+ 2 - 2
src/xt_pages/hospitalStation/inHospitalHistory.vue View File

129
   data() {
129
   data() {
130
     return {
130
     return {
131
       crumbs: [
131
       crumbs: [
132
-        { path: false, name: '门诊挂号' },
133
-        { path: false, name: '挂号历史' }
132
+        { path: false, name: '住院登记' },
133
+        { path: false, name: '住院历史' }
134
       ],
134
       ],
135
       register_type: 0,
135
       register_type: 0,
136
       search_input: '',
136
       search_input: '',

+ 99 - 55
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

92
             </el-button>
92
             </el-button>
93
           </div>
93
           </div>
94
 
94
 
95
-          <div  v-if="org_id != 10340">
95
+          <div  v-if="org_id != 10206 && org_id != 10340">
96
             <!--            <el-button size="small"-->
96
             <!--            <el-button size="small"-->
97
             <!--                       @click="openZb(1)"-->
97
             <!--                       @click="openZb(1)"-->
98
             <!--                       type="primary">登记-->
98
             <!--                       type="primary">登记-->
1098
       // ],
1098
       // ],
1099
       register: [
1099
       register: [
1100
         { value: 11, label: '普通门诊' },
1100
         { value: 11, label: '普通门诊' },
1101
+        { value: 12, label: '门诊挂号' },
1101
         { value: 1102, label: '新冠门诊' },
1102
         { value: 1102, label: '新冠门诊' },
1102
         { value: 14, label: '门诊特殊病' },
1103
         { value: 14, label: '门诊特殊病' },
1103
         { value: '9922', label: '家庭通道' },
1104
         { value: '9922', label: '家庭通道' },
4754
       if (this.big_month_prescriptions.length > 0) {
4755
       if (this.big_month_prescriptions.length > 0) {
4755
         this.editableTabsValue = this.big_month_prescriptions[0].curMonthPrescriptions.name
4756
         this.editableTabsValue = this.big_month_prescriptions[0].curMonthPrescriptions.name
4756
       }
4757
       }
4757
-    },
4758
-    getPName(med_type, index) {
4758
+    }, getPName(med_type, index) {
4759
       var med_type = parseInt(med_type)
4759
       var med_type = parseInt(med_type)
4760
 
4760
 
4761
-      switch (med_type) {
4762
-        case 11:
4763
-          return '普通门诊' + '处方' + index
4761
+      if(this.org_id == 10206){
4762
+        switch (med_type) {
4763
+          case 1:
4764
+            return '普通' + '处方' + index
4764
 
4765
 
4765
-          break
4766
-        case 1102:
4767
-          return '新冠门诊' + '处方' + index
4766
+            break
4767
+          case 2:
4768
+            return '急诊' + '处方' + index
4768
 
4769
 
4769
-          break
4770
-        case 12:
4771
-          return '门诊挂号' + '处方' + index
4770
+            break
4771
+          case 5:
4772
+            return '第一类精神药品' + '处方' + index
4772
 
4773
 
4773
-          break
4774
-        case 13:
4775
-          return '急诊' + '处方' + index
4774
+            break
4775
+          case 6:
4776
+            return '第二类精神药品' + '处方' + index
4776
 
4777
 
4777
-          break
4778
+            break
4778
 
4779
 
4779
-        case 14:
4780
-          return '门诊特殊病' + '处方' + index
4781
-          break
4780
+          case 7:
4781
+            return '放射药品' + '处方' + index
4782
+            break
4782
 
4783
 
4783
-        case 15:
4784
-          return '门诊统筹' + '处方' + index
4784
+          case 8:
4785
+            return '毒性药品' + '处方' + index
4785
 
4786
 
4786
-          break
4787
-        case 16:
4788
-          return '门诊慢性病' + '处方' + index
4787
+            break
4788
+          case 9:
4789
+            return '检查' + '处方' + index
4789
 
4790
 
4790
-          break
4791
-        case 21:
4792
-          return '普通住院' + '处方' + index
4793
-          break
4794
-        case 1111:
4795
-          return '精一' + '处方' + index
4796
-          break
4797
-        case 1112:
4798
-          return '精二' + '处方' + index
4799
-          break
4800
-        case 9933:
4801
-          return '门诊特殊病(9933)' + '处方' + index
4802
-          break
4803
-        case 990602:
4804
-          return '门诊特殊病(990602)' + '处方' + index
4805
-          break
4806
-        case 1402:
4807
-          return '门诊特殊病(1402)' + '处方' + index
4808
-          break
4809
-        case 1401:
4810
-          return '门诊慢性病(1401)' + '处方' + index
4811
-          break
4812
-        case 2302:
4813
-          return '异地就医(2302)' + '处方' + index
4814
-          break
4815
-        case 9922:
4816
-          return '家庭通道' + '处方' + index
4817
-          break
4818
-        case 0:
4819
-          return '自费' + '处方' + index
4820
-          break
4791
+            break
4792
+          case 10:
4793
+            return '检验' + '处方' + index
4794
+            break
4795
+          case 12:
4796
+            return '治疗' + '处方' + index
4797
+            break
4798
+          case 99:
4799
+            return '其他' + '处方' + index
4800
+            break
4801
+        }
4802
+      }else{
4803
+        switch (med_type) {
4804
+          case 11:
4805
+            return '普通门诊' + '处方' + index
4806
+
4807
+            break
4808
+          case 1102:
4809
+            return '新冠门诊' + '处方' + index
4810
+
4811
+            break
4812
+          case 12:
4813
+            return '门诊挂号' + '处方' + index
4814
+
4815
+            break
4816
+          case 13:
4817
+            return '急诊' + '处方' + index
4818
+
4819
+            break
4820
+
4821
+          case 14:
4822
+            return '门诊特殊病' + '处方' + index
4823
+            break
4824
+
4825
+          case 15:
4826
+            return '门诊统筹' + '处方' + index
4827
+
4828
+            break
4829
+          case 16:
4830
+            return '门诊慢性病' + '处方' + index
4831
+
4832
+            break
4833
+          case 21:
4834
+            return '普通住院' + '处方' + index
4835
+            break
4836
+          case 1111:
4837
+            return '精一' + '处方' + index
4838
+            break
4839
+          case 1112:
4840
+            return '精二' + '处方' + index
4841
+            break
4842
+          case 9933:
4843
+            return '门诊特殊病(9933)' + '处方' + index
4844
+            break
4845
+          case 990602:
4846
+            return '门诊特殊病(990602)' + '处方' + index
4847
+            break
4848
+          case 1402:
4849
+            return '门诊特殊病(1402)' + '处方' + index
4850
+            break
4851
+          case 1401:
4852
+            return '门诊慢性病(1401)' + '处方' + index
4853
+            break
4854
+          case 2302:
4855
+            return '异地就医(2302)' + '处方' + index
4856
+            break
4857
+          case 9922:
4858
+            return '家庭通道' + '处方' + index
4859
+            break
4860
+          case 0:
4861
+            return '自费' + '处方' + index
4862
+            break
4863
+        }
4821
       }
4864
       }
4865
+
4822
     }, unique_four(array) {
4866
     }, unique_four(array) {
4823
       // res用来存储结果
4867
       // res用来存储结果
4824
       var res = []
4868
       var res = []

+ 27 - 43
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

143
                               </el-date-picker>
143
                               </el-date-picker>
144
 
144
 
145
 
145
 
146
-                              <el-select v-if="org_id != 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
146
+                              <el-select v-if="org_id != 10206 && org_id != 0" 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"
153
                                   </el-option>
153
                                   </el-option>
154
                               </el-select>
154
                               </el-select>
155
 <!--                            //针对海拉尔普爱肾病医院-->
155
 <!--                            //针对海拉尔普爱肾病医院-->
156
-                            <el-select v-if="org_id == 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
156
+                            <el-select v-if="org_id == 10206 ||  org_id == 0" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
157
                                        @change="changevalue">
157
                                        @change="changevalue">
158
                               <el-option
158
                               <el-option
159
                                 v-for="(item,index) in register10206"
159
                                 v-for="(item,index) in register10206"
308
                                       <el-table-column label="名称">
308
                                       <el-table-column label="名称">
309
                                           <template slot-scope="scope">{{ scope.row.drug_name }}</template>
309
                                           <template slot-scope="scope">{{ scope.row.drug_name }}</template>
310
                                       </el-table-column>
310
                                       </el-table-column>
311
-                                      <el-table-column label="规格" width="60">
311
+                                      <el-table-column label="规格" width="60" v-if="org_id == 10206 || org_id == 0">
312
                                           <template slot-scope="scope">
312
                                           <template slot-scope="scope">
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}}
313
+                                              <span>{{scope.row.drug_spec}}</span>
314
                                           </template>
314
                                           </template>
315
                                       </el-table-column>
315
                                       </el-table-column>
316
+                                    <el-table-column label="规格" width="60" v-if="org_id != 10206 && org_id != 0">
317
+                                      <template slot-scope="scope">
318
+                                        <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}}
319
+                                      </template>
320
+                                    </el-table-column>
316
 
321
 
317
                                       <el-table-column label="库存" width="60" v-if="org_id != 10206">
322
                                       <el-table-column label="库存" width="60" v-if="org_id != 10206">
318
                                           <template slot-scope="scope">
323
                                           <template slot-scope="scope">
587
       register: [
592
       register: [
588
 
593
 
589
         { value: 11, label: '普通门诊' },
594
         { value: 11, label: '普通门诊' },
595
+        { value: 12, label: '门诊挂号' },
590
         { value: 1102, label: '新冠门诊' },
596
         { value: 1102, label: '新冠门诊' },
591
         { value: 14, label: '门诊特殊病' },
597
         { value: 14, label: '门诊特殊病' },
592
         { value: 9922, label: '家庭通道' },
598
         { value: 9922, label: '家庭通道' },
2391
           if (index == 1) {
2397
           if (index == 1) {
2392
             console.log(this.prescriptions)
2398
             console.log(this.prescriptions)
2393
 
2399
 
2394
-            if (this.org_id != 10206) {
2400
+            if (this.org_id != 10206 && this.org_id != 0) {
2395
               for (let i = 0; i < this.prescriptions.length; i++) {
2401
               for (let i = 0; i < this.prescriptions.length; i++) {
2396
                 for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2402
                 for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2397
                   if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
2403
                   if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
2622
                       }
2628
                       }
2623
                     }
2629
                     }
2624
 
2630
 
2625
-                    if(newArr.length > 0){
2631
+                    if(newArr.length > 0 &&  this.org_id != 10206 && this.org_id != 0){
2626
                       for(let i=0;i<newArr.length;i++){
2632
                       for(let i=0;i<newArr.length;i++){
2627
                         if(newArr[i].is_user!=1){
2633
                         if(newArr[i].is_user!=1){
2628
                           if(newArr[i].out_count > newArr[i].sum_count){
2634
                           if(newArr[i].out_count > newArr[i].sum_count){
2690
                       }
2696
                       }
2691
                     }
2697
                     }
2692
                     console.log("new233223322323",newArr)
2698
                     console.log("new233223322323",newArr)
2693
-                    if(newArr.length > 0){
2699
+                    if(newArr.length > 0 &&  this.org_id != 10206 && this.org_id != 0){
2694
                       for(let i=0;i<newArr.length;i++){
2700
                       for(let i=0;i<newArr.length;i++){
2695
                         if(newArr[i].is_user!=1){
2701
                         if(newArr[i].is_user!=1){
2696
                           if(newArr[i].out_count > newArr[i].sum_count){
2702
                           if(newArr[i].out_count > newArr[i].sum_count){
2804
                     }
2810
                     }
2805
 
2811
 
2806
                     for(let i=0;i<newProjectArr.length;i++){
2812
                     for(let i=0;i<newProjectArr.length;i++){
2807
-                      if(newProjectArr[i].out_count > newProjectArr[i].sum_count){
2813
+                      if(newProjectArr[i].out_count > newProjectArr[i].sum_count &&  this.org_id != 10206 && this.org_id != 0){
2808
                             this.$message.error(newProjectArr[i].str + "库存不足,保存失败!")
2814
                             this.$message.error(newProjectArr[i].str + "库存不足,保存失败!")
2809
                             isLoading = false
2815
                             isLoading = false
2810
                             this.$emit('editKeepLoad', false)
2816
                             this.$emit('editKeepLoad', false)
2986
 
2992
 
2987
       }
2993
       }
2988
 
2994
 
2989
-      obj.med_type = 14
2995
+      if(this.org_id != 10206 && this.org_id != 0) {
2996
+        obj.med_type = 14
2997
+      }
2990
 
2998
 
2991
       this.prescriptions.push(obj)
2999
       this.prescriptions.push(obj)
2992
 
3000
 
3228
       //     }
3236
       //     }
3229
       // }
3237
       // }
3230
 
3238
 
3231
-      if(row.is_user!=1){
3239
+      if(row.is_user!=1 &&  this.org_id != 10206 && this.org_id != 0){
3232
         if (row.sum_count <= 0) {
3240
         if (row.sum_count <= 0) {
3233
         if (selection) {
3241
         if (selection) {
3234
           selection.forEach(row => {
3242
           selection.forEach(row => {
3250
 
3258
 
3251
       if (this.curDrugs.length > 0) {
3259
       if (this.curDrugs.length > 0) {
3252
         for (let i = 0; i < this.curDrugs.length; i++) {
3260
         for (let i = 0; i < this.curDrugs.length; i++) {
3253
-          if(this.org_id != 10206) {
3261
+          if(this.org_id != 10206 && this.org_id != 0) {
3254
             if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3262
             if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3255
               this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3263
               this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3256
               return
3264
               return
3260
         }
3268
         }
3261
       }
3269
       }
3262
       if (this.teamList.length > 0) {
3270
       if (this.teamList.length > 0) {
3263
-        if(this.org_id != 10206) {
3271
+        if(this.org_id != 10206 && this.org_id != 0) {
3264
           for (let i = 0; i < this.teamList.length; i++) {
3272
           for (let i = 0; i < this.teamList.length; i++) {
3265
             if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
3273
             if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
3266
               this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
3274
               this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
3288
 
3296
 
3289
       if (this.curDrugs.length == 0) {
3297
       if (this.curDrugs.length == 0) {
3290
         for (let i = 0; i < this.curDrugs.length; i++) {
3298
         for (let i = 0; i < this.curDrugs.length; i++) {
3291
-          if(this.org_id != 10206) {
3299
+          if(this.org_id != 10206 && this.org_id != 0) {
3292
             if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3300
             if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3293
               this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3301
               this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3294
               return
3302
               return
3537
 
3545
 
3538
       // }
3546
       // }
3539
 
3547
 
3540
-       if (row.stock_count <= 0) {
3548
+       if (row.stock_count <= 0 &&  this.org_id != 10206 && this.org_id != 0) {
3541
           if (row.type == 3) {
3549
           if (row.type == 3) {
3542
             if (selection) {
3550
             if (selection) {
3543
               selection.forEach(row => {
3551
               selection.forEach(row => {
3555
       this.teamList = selection
3563
       this.teamList = selection
3556
     },
3564
     },
3557
     getlist() {
3565
     getlist() {
3566
+
3567
+
3568
+
3558
       this.tabProject = []
3569
       this.tabProject = []
3559
       getHisProject().then(response => {
3570
       getHisProject().then(response => {
3560
         if (response.data.state == 1) {
3571
         if (response.data.state == 1) {
3623
             this.tabProject.push(obj)
3634
             this.tabProject.push(obj)
3624
           }
3635
           }
3625
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3636
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3626
-          if(this.org_id == 10206) {
3637
+          if(this.org_id == 10206 ) {
3627
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3638
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3628
               for (let b = 0; b < this.tabProject.length; b++) {
3639
               for (let b = 0; b < this.tabProject.length; b++) {
3629
                 if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
3640
                 if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
3682
       }
3693
       }
3683
     },
3694
     },
3684
     selectTeam(row) {
3695
     selectTeam(row) {
3685
-      console.log(row)
3686
-      // var arr = []
3687
-      // for (let i = 0; i < row.length; i++) {
3688
-      //   arr.push(row[i].item_id)
3689
-      // }
3690
-      // console.log(arr)
3691
-      // var ids = arr.join(',')
3692
-      // console.log(ids)
3693
-      // var strArr = ids.split(',')
3694
-      // console.log(strArr)
3695
-      // var res = []//接收不重复的数据
3696
-      //
3697
-      // for (var i = 0; i < strArr.length; i++) {
3698
-      //   var flag = true
3699
-      //
3700
-      //   for (var j = 0; j < i; j++) {
3701
-      //     if (strArr[i] === strArr[j]) {
3702
-      //       flag = false
3703
-      //       break
3704
-      //     }
3705
-      //   }
3706
-      //   if (flag) {
3707
-      //     res.push(strArr[i])
3708
-      //   }
3709
-      // }
3710
-      // console.log(res)
3711
-      // var idstr = res.join(',')
3712
       this.teamList = []
3696
       this.teamList = []
3713
       let teamList = []
3697
       let teamList = []
3714
       for (let i = 0; i < row.length; i++) {
3698
       for (let i = 0; i < row.length; i++) {
3745
                 }
3729
                 }
3746
 
3730
 
3747
                 teamList.push(obj)
3731
                 teamList.push(obj)
3748
-              } else if (project[i].type == 3 && project[i].status == 1) {
3732
+              } else if (project[i].type == 3 && project[i].status == 1 && this.org_id != 10206 && this.org_id != 0) {
3749
                 if (project[i].good_info.sum_count <= 0) {
3733
                 if (project[i].good_info.sum_count <= 0) {
3750
                   num++
3734
                   num++
3751
                   this.$refs.tabProjectTeam.toggleRowSelection(row)
3735
                   this.$refs.tabProjectTeam.toggleRowSelection(row)

+ 5 - 5
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

488
         if (scope.row.prescribing_number == 0) {
488
         if (scope.row.prescribing_number == 0) {
489
           scope.row.prescribing_number = 1
489
           scope.row.prescribing_number = 1
490
         }
490
         }
491
-        if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
491
+        if (scope.row.prescribing_number_unit == scope.row.drug.min_unit && this.$store.getters.xt_user.org_id != 10206 && this.$store.getters.xt_user.org_id != 0) {
492
           // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
492
           // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
493
           if (scope.row.prescribing_number > scope.row.drug.sum_count) {
493
           if (scope.row.prescribing_number > scope.row.drug.sum_count) {
494
             this.$message.error(scope.row.drug_name + '库存不足')
494
             this.$message.error(scope.row.drug_name + '库存不足')
529
         if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
529
         if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
530
           // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
530
           // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
531
           if(scope.row.drug.is_user!=1){
531
           if(scope.row.drug.is_user!=1){
532
-           if (scope.row.prescribing_number > scope.row.drug.sum_count) {
532
+           if (scope.row.prescribing_number > scope.row.drug.sum_count  && this.$store.getters.xt_user.org_id != 10206 && this.$store.getters.xt_user.org_id != 0) {
533
             this.$message.error(scope.row.drug_name + '库存不足')
533
             this.$message.error(scope.row.drug_name + '库存不足')
534
            }
534
            }
535
           }
535
           }
536
 
536
 
537
         } else {
537
         } else {
538
           if(scope.row.drug.is_user!=1){
538
           if(scope.row.drug.is_user!=1){
539
-           if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
539
+           if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count  && this.$store.getters.xt_user.org_id != 10206 && this.$store.getters.xt_user.org_id != 0) {
540
             this.$message.error(scope.row.drug_name + '库存不足')
540
             this.$message.error(scope.row.drug_name + '库存不足')
541
            }
541
            }
542
           }
542
           }
635
         // }
635
         // }
636
 
636
 
637
 
637
 
638
-        if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
638
+        if (scope.row.prescribing_number_unit == scope.row.drug.min_unit  && this.$store.getters.xt_user.org_id != 10206 && this.$store.getters.xt_user.org_id != 0) {
639
           if(scope.row.drug.is_user!=1){
639
           if(scope.row.drug.is_user!=1){
640
             if (parseInt(scope.row.prescribing_number) > scope.row.drug.sum_count) {
640
             if (parseInt(scope.row.prescribing_number) > scope.row.drug.sum_count) {
641
               this.$message.error(scope.row.drug_name + '库存不足')
641
               this.$message.error(scope.row.drug_name + '库存不足')
643
           }
643
           }
644
 
644
 
645
         } else {
645
         } else {
646
-          if(scope.row.drug.is_user!=1){
646
+          if(scope.row.drug.is_user!=1  && this.$store.getters.xt_user.org_id != 10206 && this.$store.getters.xt_user.org_id != 0){
647
             if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
647
             if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
648
               this.$message.error(scope.row.drug_name + '库存不足')
648
               this.$message.error(scope.row.drug_name + '库存不足')
649
             }
649
             }

+ 83 - 57
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

1498
           this.additions = response.data.data.additions
1498
           this.additions = response.data.data.additions
1499
 
1499
 
1500
           //针对普爱医院获取药品和耗材相关库存数据
1500
           //针对普爱医院获取药品和耗材相关库存数据
1501
-          if(this.org_id == 10206){
1501
+          if(this.org_id == 10206 || this.org_id == 0){
1502
             var that = this
1502
             var that = this
1503
             axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystock', {
1503
             axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystock', {
1504
 
1504
 
1521
                   } else {
1521
                   } else {
1522
                     that.zuobiao_drug  = response.data.data.drug
1522
                     that.zuobiao_drug  = response.data.data.drug
1523
                     that.zuobiao_project  = response.data.data.project
1523
                     that.zuobiao_project  = response.data.data.project
1524
-
1525
                     //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
1524
                     //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
1526
-                    if(that.org_id == 10206) {
1527
                       for (let i = 0; i < that.zuobiao_drug.length; i++) {
1525
                       for (let i = 0; i < that.zuobiao_drug.length; i++) {
1528
                         for (let b = 0; b < that.drugs.length; b++) {
1526
                         for (let b = 0; b < that.drugs.length; b++) {
1529
-                          if (that.zuobiao_project[i].ggid == that.drugs[b].bby01){
1530
-                            that.drugs[b]["zuobiao_stock_num"] = that.zuobiao_project[i].sysl
1527
+                          if (that.zuobiao_drug[i].bby01 == that.drugs[b].bby01){
1528
+                            that.drugs[b]["zuobiao_stock_num"] = that.zuobiao_drug[i].sysl
1531
                           }
1529
                           }
1532
                         }
1530
                         }
1533
                       }
1531
                       }
1534
 
1532
 
1535
-                    }
1533
+                    console.log("------~~00000-------")
1536
                     console.log(that.drugs)
1534
                     console.log(that.drugs)
1535
+                    console.log(that.zuobiao_drug)
1537
                     console.log(that.zuobiao_project)
1536
                     console.log(that.zuobiao_project)
1538
-
1537
+                    console.log("------~~00000-------")
1539
                   }
1538
                   }
1540
                 }
1539
                 }
1541
               })
1540
               })
2053
                   med_type: '',
2052
                   med_type: '',
2054
                   is_medicine_status:false,
2053
                   is_medicine_status:false,
2055
                 }
2054
                 }
2056
-                if (prescription.med_type == 0 || prescription.med_type == '') {
2055
+                if(this.org_id != 10206 || this.org_id != 0) {
2056
+                  if (prescription.med_type == 0 || prescription.med_type == '') {
2057
 
2057
 
2058
-                  obj.med_type = ''
2058
+                    obj.med_type = ''
2059
 
2059
 
2060
-                } else {
2060
+                  } else {
2061
 
2061
 
2062
-                  obj.med_type = parseInt(prescription.med_type)
2063
-                }
2064
-                if (obj.med_type == 0 || obj.med_type == '') {
2065
-                  obj.med_type = 14
2062
+                    obj.med_type = parseInt(prescription.med_type)
2063
+                  }
2064
+                  if (obj.med_type == 0 || obj.med_type == '') {
2065
+                    if (this.org_id != 10206 || this.org_id != 0) {
2066
+                      obj.med_type = 14
2067
+                    } else {
2068
+
2069
+                      obj.med_type = ""
2070
+                    }
2071
+                  }
2066
                 }
2072
                 }
2067
                 this.prescriptions.push(obj)
2073
                 this.prescriptions.push(obj)
2068
               }
2074
               }
2079
                 med_type: '',
2085
                 med_type: '',
2080
                 is_medicine_status:false,
2086
                 is_medicine_status:false,
2081
               }
2087
               }
2082
-              obj.med_type = 14
2088
+              if(this.org_id != 10206 || this.org_id != 0){
2089
+                obj.med_type = 14
2090
+              }
2083
               this.prescriptions.push(obj)
2091
               this.prescriptions.push(obj)
2084
 
2092
 
2085
             }
2093
             }
2536
                         med_type: ''
2544
                         med_type: ''
2537
 
2545
 
2538
                       }
2546
                       }
2539
-                      if (prescription.med_type == 0 || prescription.med_type == '') {
2547
+                      if(this.org_id != 10206 || this.org_id != 0) {
2548
+                        if (prescription.med_type == 0 || prescription.med_type == '') {
2540
 
2549
 
2541
-                        obj.med_type = ''
2550
+                          obj.med_type = ''
2542
 
2551
 
2543
-                      } else {
2552
+                        } else {
2544
 
2553
 
2545
-                        obj.med_type = parseInt(prescription.med_type)
2546
-                      }
2547
-                      if (obj.med_type == 0 || obj.med_type == '') {
2554
+                          obj.med_type = parseInt(prescription.med_type)
2555
+                        }
2556
+                        if (obj.med_type == 0 || obj.med_type == '') {
2548
 
2557
 
2549
-                        obj.med_type = 14
2558
+                          obj.med_type = 14
2550
 
2559
 
2560
+                        }
2551
                       }
2561
                       }
2552
                       this.prescriptions.push(obj)
2562
                       this.prescriptions.push(obj)
2553
                     }
2563
                     }
2565
 
2575
 
2566
                     }
2576
                     }
2567
 
2577
 
2568
-                    obj.med_type = 14
2578
+                    if (this.org_id != 10206 || this.org_id != 0) {
2579
+                      obj.med_type = 14
2580
+                    }
2569
 
2581
 
2570
                     this.prescriptions.push(obj)
2582
                     this.prescriptions.push(obj)
2571
 
2583
 
3065
                         med_type: ''
3077
                         med_type: ''
3066
 
3078
 
3067
                       }
3079
                       }
3068
-                      if (prescription.med_type == 0 || prescription.med_type == '') {
3080
+                      if(this.org_id != 10206 || this.org_id != 0) {
3081
+                        if (prescription.med_type == 0 || prescription.med_type == '') {
3069
 
3082
 
3070
-                        obj.med_type = ''
3083
+                          obj.med_type = ''
3071
 
3084
 
3072
-                      } else {
3085
+                        } else {
3073
 
3086
 
3074
-                        obj.med_type = parseInt(prescription.med_type)
3075
-                      }
3076
-                      if (obj.med_type == 0 || obj.med_type == '') {
3077
-                        obj.med_type = 14
3087
+                          obj.med_type = parseInt(prescription.med_type)
3088
+                        }
3089
+                        if (obj.med_type == 0 || obj.med_type == '') {
3090
+                          obj.med_type = 14
3091
+                        }
3078
                       }
3092
                       }
3079
                       this.prescriptions.push(obj)
3093
                       this.prescriptions.push(obj)
3080
                     }
3094
                     }
3091
                       med_type: ''
3105
                       med_type: ''
3092
 
3106
 
3093
                     }
3107
                     }
3094
-
3095
-                    obj.med_type = 14
3108
+                    if(this.org_id != 10206 || this.org_id != 0) {
3109
+                      obj.med_type = 14
3110
+                    }
3096
 
3111
 
3097
                     this.prescriptions.push(obj)
3112
                     this.prescriptions.push(obj)
3098
 
3113
 
3581
                       med_type: ''
3596
                       med_type: ''
3582
 
3597
 
3583
                     }
3598
                     }
3584
-                    if (prescription.med_type == 0 || prescription.med_type == '') {
3599
+                    if(this.org_id != 10206 || this.org_id != 0) {
3600
+                      if (prescription.med_type == 0 || prescription.med_type == '') {
3585
 
3601
 
3586
-                      obj.med_type = ''
3602
+                        obj.med_type = ''
3587
 
3603
 
3588
-                    } else {
3604
+                      } else {
3589
 
3605
 
3590
-                      obj.med_type = parseInt(prescription.med_type)
3591
-                    }
3592
-                    if (obj.med_type == 0 || obj.med_type == '') {
3593
-                      obj.med_type = 14
3606
+                        obj.med_type = parseInt(prescription.med_type)
3607
+                      }
3608
+                      if (obj.med_type == 0 || obj.med_type == '') {
3609
+                        obj.med_type = 14
3594
 
3610
 
3611
+                      }
3595
                     }
3612
                     }
3596
                     this.prescriptions.push(obj)
3613
                     this.prescriptions.push(obj)
3597
                   }
3614
                   }
3609
 
3626
 
3610
                   }
3627
                   }
3611
 
3628
 
3612
-                  obj.med_type = 14
3629
+                  if(this.org_id != 10206 || this.org_id != 0) {
3630
+                    obj.med_type = 14
3631
+                  }
3613
 
3632
 
3614
                   this.prescriptions.push(obj)
3633
                   this.prescriptions.push(obj)
3615
 
3634
 
4216
                         med_type: ''
4235
                         med_type: ''
4217
 
4236
 
4218
                       }
4237
                       }
4219
-                      if (prescription.med_type == 0 || prescription.med_type == '') {
4238
+                      if(this.org_id != 10206 || this.org_id != 0) {
4239
+                        if (prescription.med_type == 0 || prescription.med_type == '') {
4220
 
4240
 
4221
-                        obj.med_type = ''
4241
+                          obj.med_type = ''
4222
 
4242
 
4223
-                      } else {
4243
+                        } else {
4224
 
4244
 
4225
-                        obj.med_type = parseInt(prescription.med_type)
4226
-                      }
4227
-                      if (obj.med_type == 0 || obj.med_type == '') {
4245
+                          obj.med_type = parseInt(prescription.med_type)
4246
+                        }
4247
+                        if (obj.med_type == 0 || obj.med_type == '') {
4228
 
4248
 
4229
-                        obj.med_type = 14
4249
+                          obj.med_type = 14
4230
 
4250
 
4251
+                        }
4231
                       }
4252
                       }
4232
                       this.prescriptions.push(obj)
4253
                       this.prescriptions.push(obj)
4233
                     }
4254
                     }
4244
                       med_type: ''
4265
                       med_type: ''
4245
 
4266
 
4246
                     }
4267
                     }
4247
-
4248
-                    obj.med_type = 14
4268
+                    if(this.org_id != 10206 || this.org_id != 0 ) {
4269
+                      obj.med_type = 14
4270
+                    }
4249
 
4271
 
4250
                     this.prescriptions.push(obj)
4272
                     this.prescriptions.push(obj)
4251
 
4273
 
4870
                         med_type: ''
4892
                         med_type: ''
4871
 
4893
 
4872
                       }
4894
                       }
4873
-                      if (prescription.med_type == 0 || prescription.med_type == '') {
4895
+                      if(this.org_id != 10206 || this.org_id != 0) {
4896
+                        if (prescription.med_type == 0 || prescription.med_type == '') {
4874
 
4897
 
4875
-                        obj.med_type = ''
4898
+                          obj.med_type = ''
4876
 
4899
 
4877
-                      } else {
4900
+                        } else {
4878
 
4901
 
4879
-                        obj.med_type = parseInt(prescription.med_type)
4880
-                      }
4881
-                      if (obj.med_type == 0 || obj.med_type == '') {
4882
-                        obj.med_type = 14
4902
+                          obj.med_type = parseInt(prescription.med_type)
4903
+                        }
4904
+                        if (obj.med_type == 0 || obj.med_type == '') {
4905
+                          obj.med_type = 14
4883
 
4906
 
4907
+                        }
4884
                       }
4908
                       }
4885
                       this.prescriptions.push(obj)
4909
                       this.prescriptions.push(obj)
4886
                     }
4910
                     }
4897
                       med_type: ''
4921
                       med_type: ''
4898
 
4922
 
4899
                     }
4923
                     }
4924
+                    if(this.org_id != 10206 || this.org_id != 0) {
4900
 
4925
 
4901
-                    obj.med_type = 14
4926
+                      obj.med_type = 14
4927
+                    }
4902
 
4928
 
4903
                     this.prescriptions.push(obj)
4929
                     this.prescriptions.push(obj)
4904
 
4930
 

+ 11 - 6
src/xt_pages/outpatientDoctorStation/modeTemplateDetail.vue View File

47
                                 </el-option>
47
                                 </el-option>
48
                               </el-select>
48
                               </el-select>
49
                               <!--                            //针对海拉尔普爱肾病医院-->
49
                               <!--                            //针对海拉尔普爱肾病医院-->
50
-                              <el-select v-if="org_id == 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
50
+                              <el-select v-if="org_id == 10206 || org_id == 0" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
51
                                          @change="changevalue">
51
                                          @change="changevalue">
52
                                 <el-option
52
                                 <el-option
53
                                   v-for="(item,index) in register10206"
53
                                   v-for="(item,index) in register10206"
115
                                             <el-table-column label="名称">
115
                                             <el-table-column label="名称">
116
                                                 <template slot-scope="scope">{{ scope.row.drug_name }}</template>
116
                                                 <template slot-scope="scope">{{ scope.row.drug_name }}</template>
117
                                             </el-table-column>
117
                                             </el-table-column>
118
-                                            <el-table-column label="规格" width="60">
118
+                                            <el-table-column label="规格" width="60" v-if="org_id != 10206 && org_id != 0">
119
                                                 <template slot-scope="scope">
119
                                                 <template slot-scope="scope">
120
                                                    <span
120
                                                    <span
121
                                                        v-if="scope.row.min_unit != scope.row.dose_unit">{{ scope.row.dose }}{{ scope.row.dose_unit }}&nbsp;* &nbsp;</span>
121
                                                        v-if="scope.row.min_unit != scope.row.dose_unit">{{ scope.row.dose }}{{ scope.row.dose_unit }}&nbsp;* &nbsp;</span>
122
                                                        {{ scope.row.min_number }}{{ scope.row.min_unit }}/{{ scope.row.max_unit }}
122
                                                        {{ scope.row.min_number }}{{ scope.row.min_unit }}/{{ scope.row.max_unit }}
123
                                                   </template>
123
                                                   </template>
124
                                             </el-table-column>
124
                                             </el-table-column>
125
+                                          <el-table-column label="规格" width="60" v-if="org_id == 10206 || org_id == 0">
126
+                                            <template slot-scope="scope">
127
+                                                   <span>{{scope.row.drug_spec}}</span>
128
+                                            </template>
129
+                                          </el-table-column>
125
                                             <el-table-column label="单价" width="40">
130
                                             <el-table-column label="单价" width="40">
126
                                                 <template slot-scope="scope">{{ scope.row.retail_price }}</template>
131
                                                 <template slot-scope="scope">{{ scope.row.retail_price }}</template>
127
                                             </el-table-column>
132
                                             </el-table-column>
408
             return
413
             return
409
           }
414
           }
410
         }
415
         }
411
-        if(this.$store.getters.xt_user.org_id != 10206) {
416
+        if(this.$store.getters.xt_user.org_id != 10206 && this.$store.getters.xt_user.org_id != 0) {
412
           for (let i = 0; i < this.prescriptions.length; i++) {
417
           for (let i = 0; i < this.prescriptions.length; i++) {
413
             for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
418
             for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
414
               if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
419
               if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
1357
         if (this.curDrugs.length > 0 ) {
1362
         if (this.curDrugs.length > 0 ) {
1358
 
1363
 
1359
           for (let i = 0; i < this.curDrugs.length; i++) {
1364
           for (let i = 0; i < this.curDrugs.length; i++) {
1360
-            if(this.$store.getters.xt_user.org.id != 10206) {
1365
+            if(this.$store.getters.xt_user.org.id != 10206 && this.$store.getters.xt_user.org.id != 0 ) {
1361
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1366
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1362
                 this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1367
                 this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1363
                 return
1368
                 return
1368
         }
1373
         }
1369
         if (this.teamList.length > 0) {
1374
         if (this.teamList.length > 0) {
1370
           for (let i = 0; i < this.teamList.length; i++) {
1375
           for (let i = 0; i < this.teamList.length; i++) {
1371
-            if(this.$store.getters.xt_user.org.id != 10206) {
1376
+            if(this.$store.getters.xt_user.org.id != 10206 && this.$store.getters.xt_user.org.id != 0 ) {
1372
 
1377
 
1373
               if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1378
               if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1374
                 setTimeout(() => {
1379
                 setTimeout(() => {
1395
 
1400
 
1396
         if (this.curDrugs.length == 0) {
1401
         if (this.curDrugs.length == 0) {
1397
           for (let i = 0; i < this.curDrugs.length; i++) {
1402
           for (let i = 0; i < this.curDrugs.length; i++) {
1398
-            if(this.$store.getters.xt_user.org.id != 10206) {
1403
+            if(this.$store.getters.xt_user.org.id != 10206 && this.$store.getters.xt_user.org.id != 0) {
1399
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1404
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1400
                 this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1405
                 this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1401
                 return
1406
                 return

+ 11 - 7
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue View File

140
                                             <el-table-column label="名称">
140
                                             <el-table-column label="名称">
141
                                                 <template slot-scope="scope">{{ scope.row.drug_name }}</template>
141
                                                 <template slot-scope="scope">{{ scope.row.drug_name }}</template>
142
                                             </el-table-column>
142
                                             </el-table-column>
143
-                                            <el-table-column label="规格" width="60">
144
-                                                <template slot-scope="scope">
145
-                                                  <!-- {{ scope.row.drug_spec }} -->
143
+                                          <el-table-column label="规格" width="60" v-if="org_id != 10206 && org_id != 0">
144
+                                            <template slot-scope="scope">
146
                                                    <span
145
                                                    <span
147
-                                                       v-if="scope.row.min_unit != scope.row.dose_unit">{{ scope.row.dose }}{{ scope.row.dose_unit }}&nbsp;* &nbsp;</span>
148
-                                                       {{ scope.row.min_number }}{{ scope.row.min_unit }}/{{ scope.row.max_unit }}
149
-                                                  </template>
150
-                                            </el-table-column>
146
+                                                     v-if="scope.row.min_unit != scope.row.dose_unit">{{ scope.row.dose }}{{ scope.row.dose_unit }}&nbsp;* &nbsp;</span>
147
+                                              {{ scope.row.min_number }}{{ scope.row.min_unit }}/{{ scope.row.max_unit }}
148
+                                            </template>
149
+                                          </el-table-column>
150
+                                          <el-table-column label="规格" width="60" v-if="org_id == 10206 || org_id == 0">
151
+                                            <template slot-scope="scope">
152
+                                              <span>{{scope.row.drug_spec}}</span>
153
+                                            </template>
154
+                                          </el-table-column>
151
                                             <el-table-column label="单价" width="40">
155
                                             <el-table-column label="单价" width="40">
152
                                                 <template slot-scope="scope">{{ scope.row.retail_price }}</template>
156
                                                 <template slot-scope="scope">{{ scope.row.retail_price }}</template>
153
                                             </el-table-column>
157
                                             </el-table-column>