瀏覽代碼

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 年之前
父節點
當前提交
88b034ba15

+ 27 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue 查看文件

541
                           ({{ advice.advice_desc}}{{ advice.drug_spec_unit }})
541
                           ({{ advice.advice_desc}}{{ advice.drug_spec_unit }})
542
                         </span>
542
                         </span>
543
                         <span v-if="advice.prescribing_number">&nbsp;&nbsp;
543
                         <span v-if="advice.prescribing_number">&nbsp;&nbsp;
544
-                          {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}
544
+                          {{ advice.prescribing_number}} {{ advice.prescribing_number_unit }}
545
                         </span>
545
                         </span>
546
                         <span v-if="advice.single_dose != 0">
546
                         <span v-if="advice.single_dose != 0">
547
                           {{ advice.single_dose}}{{ advice.single_dose_unit }}
547
                           {{ advice.single_dose}}{{ advice.single_dose_unit }}
1043
                 this.projects[i].project_team = this.projects[i].team.project_team
1043
                 this.projects[i].project_team = this.projects[i].team.project_team
1044
                 this.projects[i].project_team_id = this.projects[i].team.id
1044
                 this.projects[i].project_team_id = this.projects[i].team.id
1045
                 this.projects[i].start_time = this.projects[i].start_time
1045
                 this.projects[i].start_time = this.projects[i].start_time
1046
-                this.projects[i].single_dose = this.projects[i].single_dose
1046
+                this.projects[i].single_dose =  this.getCount(this.projects[i].project_id) 
1047
                 this.projects[i].single_dose_unit = this.projects[i].unit
1047
                 this.projects[i].single_dose_unit = this.projects[i].unit
1048
                 this.projects[i].execution_time = this.projects[i].execution_time
1048
                 this.projects[i].execution_time = this.projects[i].execution_time
1049
                 this.projects[i].execution_staff= this.projects[i].execution_staff 
1049
                 this.projects[i].execution_staff= this.projects[i].execution_staff 
1055
                 this.projects[i].project_team = this.projects[i].project.project_name
1055
                 this.projects[i].project_team = this.projects[i].project.project_name
1056
                 this.projects[i].advice_name = this.projects[i].project.project_name
1056
                 this.projects[i].advice_name = this.projects[i].project.project_name
1057
                 this.projects[i].start_time = this.projects[i].start_time
1057
                 this.projects[i].start_time = this.projects[i].start_time
1058
-                this.projects[i].single_dose = this.projects[i].single_dose
1058
+                this.projects[i].single_dose =  this.getCount(this.projects[i].project_id) 
1059
                 this.projects[i].single_dose_unit = this.projects[i].unit
1059
                 this.projects[i].single_dose_unit = this.projects[i].unit
1060
                 this.projects[i].execution_time = this.projects[i].execution_time
1060
                 this.projects[i].execution_time = this.projects[i].execution_time
1061
                 this.projects[i].execution_staff= this.projects[i].execution_staff 
1061
                 this.projects[i].execution_staff= this.projects[i].execution_staff 
1221
         }
1221
         }
1222
       });
1222
       });
1223
     },
1223
     },
1224
-
1224
+    getCount(id){
1225
+      console.log("id2222",id)
1226
+      console.log("this.projects",this.projects)
1227
+      var arr = []
1228
+      var count =0
1229
+      for(let i=0;i<this.projects.length;i++){
1230
+       
1231
+        if(id == this.projects[i].project_id){
1232
+          arr.push(this.projects[i])
1233
+        }
1234
+      }
1235
+      console.log("arroowowow",arr)
1236
+      if(arr!=null && arr.length>0){
1237
+        // for(let i=0;i<arr.length;i++){
1238
+        //   if(parseInt(arr[i].single_dose)>0){
1239
+        //     count += parseInt(arr[i].single_dose)
1240
+        //   }
1241
+        
1242
+        // }
1243
+        count = arr[arr.length -1].count
1244
+      }
1245
+      console.log("coutnwowoowowwo",count)
1246
+      return count
1247
+    },
1225
     getNumber() {
1248
     getNumber() {
1226
       if (this.dialysisOrder != null) {
1249
       if (this.dialysisOrder != null) {
1227
         return (
1250
         return (

+ 2 - 2
src/xt_pages/hospitalStation/inHospitalHistory.vue 查看文件

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: '',

+ 110 - 55
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

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

+ 1 - 1
src/xt_pages/outpatientCharges/summary.vue 查看文件

1334
                 name: order.patient.name,
1334
                 name: order.patient.name,
1335
                 id_card_no: order.patient.id_card_no,
1335
                 id_card_no: order.patient.id_card_no,
1336
                 year: "2023",
1336
                 year: "2023",
1337
-                month: "09",
1337
+                month: order.setl_time.split(" ")[0].split("-")[1],
1338
                 code: data[b].code,
1338
                 code: data[b].code,
1339
                 pric: data[b].total ,
1339
                 pric: data[b].total ,
1340
                 item_name: data[b].name,
1340
                 item_name: data[b].name,

+ 75 - 44
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

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){
2635
 
2641
 
2636
                       }
2642
                       }
2637
                     }
2643
                     }
2644
+
2645
+
2646
+
2638
                     console.log("newArr",newArr )
2647
                     console.log("newArr",newArr )
2639
                   }
2648
                   }
2640
                 }
2649
                 }
2690
                       }
2699
                       }
2691
                     }
2700
                     }
2692
                     console.log("new233223322323",newArr)
2701
                     console.log("new233223322323",newArr)
2693
-                    if(newArr.length > 0){
2702
+                    if(newArr.length > 0 &&  this.org_id != 10206 && this.org_id != 0){
2694
                       for(let i=0;i<newArr.length;i++){
2703
                       for(let i=0;i<newArr.length;i++){
2695
                         if(newArr[i].is_user!=1){
2704
                         if(newArr[i].is_user!=1){
2696
                           if(newArr[i].out_count > newArr[i].sum_count){
2705
                           if(newArr[i].out_count > newArr[i].sum_count){
2804
                     }
2813
                     }
2805
 
2814
 
2806
                     for(let i=0;i<newProjectArr.length;i++){
2815
                     for(let i=0;i<newProjectArr.length;i++){
2807
-                      if(newProjectArr[i].out_count > newProjectArr[i].sum_count){
2816
+                      if(newProjectArr[i].out_count > newProjectArr[i].sum_count &&  this.org_id != 10206 && this.org_id != 0){
2808
                             this.$message.error(newProjectArr[i].str + "库存不足,保存失败!")
2817
                             this.$message.error(newProjectArr[i].str + "库存不足,保存失败!")
2809
                             isLoading = false
2818
                             isLoading = false
2810
                             this.$emit('editKeepLoad', false)
2819
                             this.$emit('editKeepLoad', false)
2986
 
2995
 
2987
       }
2996
       }
2988
 
2997
 
2989
-      obj.med_type = 14
2998
+      if(this.org_id != 10206 && this.org_id != 0) {
2999
+        obj.med_type = 14
3000
+      }else{
3001
+        obj.med_type = 12
3002
+      }
2990
 
3003
 
2991
       this.prescriptions.push(obj)
3004
       this.prescriptions.push(obj)
2992
 
3005
 
3228
       //     }
3241
       //     }
3229
       // }
3242
       // }
3230
 
3243
 
3231
-      if(row.is_user!=1){
3244
+      if(row.is_user!=1 &&  this.org_id != 10206 && this.org_id != 0){
3232
         if (row.sum_count <= 0) {
3245
         if (row.sum_count <= 0) {
3233
         if (selection) {
3246
         if (selection) {
3234
           selection.forEach(row => {
3247
           selection.forEach(row => {
3243
         return
3256
         return
3244
        }
3257
        }
3245
       }
3258
       }
3259
+
3260
+      // if(this.org_id == 10206){
3261
+      //   if (row.zuobiao_stock_num <= 0) {
3262
+      //     if (selection) {
3263
+      //       selection.forEach(row => {
3264
+      //         if (row.zuobiao_stock_num <= 0) {
3265
+      //           this.$refs.multipleTable.toggleRowSelection(row)
3266
+      //         }
3267
+      //       })
3268
+      //     } else {
3269
+      //       this.$refs.multipleTable.clearSelection()
3270
+      //     }
3271
+      //     this.$message.error(row.drug_name + '库存不足')
3272
+      //     return
3273
+      //   }
3274
+      // }
3275
+
3276
+
3277
+
3278
+
3246
       this.curDrugs = selection
3279
       this.curDrugs = selection
3247
     },
3280
     },
3248
 
3281
 
3249
     comfirm() {
3282
     comfirm() {
3250
 
3283
 
3284
+
3251
       if (this.curDrugs.length > 0) {
3285
       if (this.curDrugs.length > 0) {
3252
         for (let i = 0; i < this.curDrugs.length; i++) {
3286
         for (let i = 0; i < this.curDrugs.length; i++) {
3253
-          if(this.org_id != 10206) {
3287
+          if(this.org_id != 10206 && this.org_id != 0) {
3254
             if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3288
             if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3255
               this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3289
               this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3256
               return
3290
               return
3260
         }
3294
         }
3261
       }
3295
       }
3262
       if (this.teamList.length > 0) {
3296
       if (this.teamList.length > 0) {
3263
-        if(this.org_id != 10206) {
3297
+        if(this.org_id != 10206 && this.org_id != 0) {
3264
           for (let i = 0; i < this.teamList.length; i++) {
3298
           for (let i = 0; i < this.teamList.length; i++) {
3265
             if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
3299
             if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
3266
               this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
3300
               this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
3288
 
3322
 
3289
       if (this.curDrugs.length == 0) {
3323
       if (this.curDrugs.length == 0) {
3290
         for (let i = 0; i < this.curDrugs.length; i++) {
3324
         for (let i = 0; i < this.curDrugs.length; i++) {
3291
-          if(this.org_id != 10206) {
3325
+          if(this.org_id != 10206 && this.org_id != 0) {
3292
             if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3326
             if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3293
               this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3327
               this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3294
               return
3328
               return
3537
 
3571
 
3538
       // }
3572
       // }
3539
 
3573
 
3540
-       if (row.stock_count <= 0) {
3574
+       if (row.stock_count <= 0 &&  this.org_id != 10206 && this.org_id != 0) {
3541
           if (row.type == 3) {
3575
           if (row.type == 3) {
3542
             if (selection) {
3576
             if (selection) {
3543
               selection.forEach(row => {
3577
               selection.forEach(row => {
3552
             return
3586
             return
3553
         }
3587
         }
3554
        }
3588
        }
3589
+
3590
+      // if ( this.org_id == 10206) {
3591
+      //   if (row.type == 3) {
3592
+      //     if (selection) {
3593
+      //       selection.forEach(row => {
3594
+      //         if (row.zuobiao_stock_num <= 0) {
3595
+      //           this.$refs.tables.toggleRowSelection(row)
3596
+      //         }
3597
+      //       })
3598
+      //     } else {
3599
+      //       this.$refs.tables.clearSelection()
3600
+      //     }
3601
+      //     this.$message.error(row.project_name + '库存不足')
3602
+      //     return
3603
+      //   }
3604
+      // }
3555
       this.teamList = selection
3605
       this.teamList = selection
3556
     },
3606
     },
3557
     getlist() {
3607
     getlist() {
3623
             this.tabProject.push(obj)
3673
             this.tabProject.push(obj)
3624
           }
3674
           }
3625
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3675
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3626
-          if(this.org_id == 10206) {
3676
+          if(this.org_id == 10206 ) {
3627
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3677
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3628
               for (let b = 0; b < this.tabProject.length; b++) {
3678
               for (let b = 0; b < this.tabProject.length; b++) {
3629
                 if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
3679
                 if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
3682
       }
3732
       }
3683
     },
3733
     },
3684
     selectTeam(row) {
3734
     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 = []
3735
       this.teamList = []
3713
       let teamList = []
3736
       let teamList = []
3714
       for (let i = 0; i < row.length; i++) {
3737
       for (let i = 0; i < row.length; i++) {
3745
                 }
3768
                 }
3746
 
3769
 
3747
                 teamList.push(obj)
3770
                 teamList.push(obj)
3748
-              } else if (project[i].type == 3 && project[i].status == 1) {
3749
-                if (project[i].good_info.sum_count <= 0) {
3771
+              } else if (project[i].type == 3 && project[i].status == 1 ) {
3772
+
3773
+                if (project[i].good_info.sum_count <= 0 && this.org_id != 10206) {
3750
                   num++
3774
                   num++
3751
                   this.$refs.tabProjectTeam.toggleRowSelection(row)
3775
                   this.$refs.tabProjectTeam.toggleRowSelection(row)
3752
                   this.$message.error(project[i].good_info.good_name + '库存不足')
3776
                   this.$message.error(project[i].good_info.good_name + '库存不足')
3753
                 }
3777
                 }
3778
+
3779
+                // if (project[i].good_info.zuobiao_stock_num <= 0 && this.org_id == 10206) {
3780
+                //   num++
3781
+                //   this.$refs.tabProjectTeam.toggleRowSelection(row)
3782
+                //   this.$message.error(project[i].good_info.good_name + '库存不足')
3783
+                // }
3784
+
3754
                 if (num > 0) {
3785
                 if (num > 0) {
3755
                   this.$refs.tabProjectTeam.clearSelection()
3786
                   this.$refs.tabProjectTeam.clearSelection()
3756
                 }
3787
                 }

+ 72 - 67
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue 查看文件

468
         //   this.$message.error('该处方已经结算或记账,无法删除')
468
         //   this.$message.error('该处方已经结算或记账,无法删除')
469
         //
469
         //
470
         // }
470
         // }
471
-        if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
472
-          if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
473
-            console.log(1)
474
-            scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
475
-          } else {
476
-            console.log(12)
477
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
478
-          }
479
-        } else {
480
-          if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
481
-            console.log(123)
482
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
471
+        if(this.$store.getters.xt_user.org_id != 10206) {
472
+          if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
473
+            if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
474
+              console.log(1)
475
+              scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
476
+            } else {
477
+              console.log(12)
478
+              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
479
+            }
483
           } else {
480
           } else {
484
-            console.log(1234)
485
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
481
+            if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
482
+              console.log(123)
483
+              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
484
+            } else {
485
+              console.log(1234)
486
+              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
487
+            }
486
           }
488
           }
487
-        }
488
-        if (scope.row.prescribing_number == 0) {
489
-          scope.row.prescribing_number = 1
490
-        }
491
-        if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
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) {
494
-            this.$message.error(scope.row.drug_name + '库存不足')
489
+          if (scope.row.prescribing_number == 0) {
490
+            scope.row.prescribing_number = 1
495
           }
491
           }
496
-        } else {
497
-          if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
498
-            this.$message.error(scope.row.drug_name + '库存不足')
492
+          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) {
493
+            // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
494
+            if (scope.row.prescribing_number > scope.row.drug.sum_count) {
495
+              this.$message.error(scope.row.drug_name + '库存不足')
496
+            }
497
+          } else {
498
+            if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
499
+              this.$message.error(scope.row.drug_name + '库存不足')
500
+            }
501
+            // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
499
           }
502
           }
500
-          // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
501
         }
503
         }
502
 
504
 
503
       },
505
       },
506
           this.$message.error('该处方包含已发药的药品,无法修改')
508
           this.$message.error('该处方包含已发药的药品,无法修改')
507
           return
509
           return
508
         }
510
         }
509
-        if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
510
-          if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
511
-            console.log(1)
512
-            scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
511
+        if(this.$store.getters.xt_user.org_id != 10206) {
512
+          if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
513
+            if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
514
+              console.log(1)
515
+              scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
516
+            } else {
517
+              console.log(12)
518
+              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
519
+            }
513
           } else {
520
           } else {
514
-            console.log(12)
515
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
521
+            if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
522
+              console.log(123)
523
+              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
524
+            } else {
525
+              console.log(1234)
526
+              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
527
+            }
528
+          }
529
+          if (scope.row.prescribing_number == 0) {
530
+            scope.row.prescribing_number = 1
516
           }
531
           }
517
-        } else {
518
           if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
532
           if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
519
-            console.log(123)
520
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
533
+            // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
534
+            if (scope.row.drug.is_user != 1) {
535
+              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) {
536
+                this.$message.error(scope.row.drug_name + '库存不足')
537
+              }
538
+            }
539
+
521
           } else {
540
           } else {
522
-            console.log(1234)
523
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
524
-          }
525
-        }
526
-        if (scope.row.prescribing_number == 0) {
527
-          scope.row.prescribing_number = 1
528
-        }
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
531
-          if(scope.row.drug.is_user!=1){
532
-           if (scope.row.prescribing_number > scope.row.drug.sum_count) {
533
-            this.$message.error(scope.row.drug_name + '库存不足')
534
-           }
535
-          }
541
+            if (scope.row.drug.is_user != 1) {
542
+              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) {
543
+                this.$message.error(scope.row.drug_name + '库存不足')
544
+              }
545
+            }
536
 
546
 
537
-        } else {
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) {
540
-            this.$message.error(scope.row.drug_name + '库存不足')
541
-           }
547
+            // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
542
           }
548
           }
543
-
544
-          // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
545
         }
549
         }
546
 
550
 
547
       },
551
       },
633
         //     this.$message.error(scope.row.drug_name + '库存不足')
637
         //     this.$message.error(scope.row.drug_name + '库存不足')
634
         //    }
638
         //    }
635
         // }
639
         // }
640
+        if(this.$store.getters.xt_user.org_id != 10206) {
636
 
641
 
637
-
638
-        if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
639
-          if(scope.row.drug.is_user!=1){
640
-            if (parseInt(scope.row.prescribing_number) > scope.row.drug.sum_count) {
641
-              this.$message.error(scope.row.drug_name + '库存不足')
642
+          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) {
643
+            if (scope.row.drug.is_user != 1) {
644
+              if (parseInt(scope.row.prescribing_number) > scope.row.drug.sum_count) {
645
+                this.$message.error(scope.row.drug_name + '库存不足')
646
+              }
642
             }
647
             }
643
-          }
644
 
648
 
645
-        } else {
646
-          if(scope.row.drug.is_user!=1){
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 + '库存不足')
649
+          } else {
650
+            if (scope.row.drug.is_user != 1 && this.$store.getters.xt_user.org_id != 10206 && this.$store.getters.xt_user.org_id != 0) {
651
+              if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
652
+                this.$message.error(scope.row.drug_name + '库存不足')
653
+              }
649
             }
654
             }
650
-          }
651
 
655
 
656
+          }
652
         }
657
         }
653
       },
658
       },
654
       getProjectSingleDose(scope) {
659
       getProjectSingleDose(scope) {

+ 82 - 56
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

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) {
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 ) {
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 ){
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) {
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 ) {
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 ) {
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 ) {
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 ) {
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 ) {
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 ) {
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  ) {
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 ) {
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 ) {
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 查看文件

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 查看文件

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>

+ 25 - 25
src/xt_pages/user/templateSummary.vue 查看文件

882
           other_count:"",
882
           other_count:"",
883
           dialzer_apparatus:"",
883
           dialzer_apparatus:"",
884
           perfusion_apparatus:"",
884
           perfusion_apparatus:"",
885
-          anticoagulant:"",
885
+          anticoagulant:0,
886
           kalium:"",
886
           kalium:"",
887
           autunite:"",
887
           autunite:"",
888
           natrium:"",
888
           natrium:"",
1400
              this.$message.success("保存成功!");
1400
              this.$message.success("保存成功!");
1401
              this.show_dialog = false
1401
              this.show_dialog = false
1402
              this.form.title = ""
1402
              this.form.title = ""
1403
-             this.form.dry_weight = ""
1404
-             this.form.dialysis_count =""
1405
-             this.form.hd_count= ""
1406
-             this.form.hdf_count = ""
1407
-             this.form.hp_count = ""
1408
-             this.form.other_count =""
1409
-             this.form.dialzer_apparatus = ""
1410
-             this.form.perfusion_apparatus = ""
1411
-             this.form.anticoagulant  = ""
1412
-             this.form.kalium = ""
1413
-             this.form.autunite = ""
1414
-             this.form.natrium = ""
1415
-             this.form.hour =""
1416
-             this.form.minute = ""
1417
-             this.form.befor_weight = ""
1418
-             this.form.after_weight = ""
1419
-             this.form.befor_pressure = ""
1420
-             this.form.template_summary_content = ""
1421
-             this.form.template_plan_content = ""
1422
-             this.form.template_inspection_content = ""
1423
-             this.from.after_pressure = ""
1424
-             this.form.template_summary_id = ""
1425
-             this.form.template_plan_id = ""
1426
-             this.form.template_inspection_id = ""
1403
+            //  this.form.dry_weight = ""
1404
+            //  this.form.dialysis_count =""
1405
+            //  this.form.hd_count= ""
1406
+            //  this.form.hdf_count = ""
1407
+            //  this.form.hp_count = ""
1408
+            //  this.form.other_count =""
1409
+            //  this.form.dialzer_apparatus = ""
1410
+            //  this.form.perfusion_apparatus = ""
1411
+            //  this.form.anticoagulant  = 0
1412
+            //  this.form.kalium = ""
1413
+            //  this.form.autunite = ""
1414
+            //  this.form.natrium = ""
1415
+            //  this.form.hour =""
1416
+            //  this.form.minute = ""
1417
+            //  this.form.befor_weight = ""
1418
+            //  this.form.after_weight = ""
1419
+            //  this.form.befor_pressure = ""
1420
+            //  this.form.template_summary_content = ""
1421
+            //  this.form.template_plan_content = ""
1422
+            //  this.form.template_inspection_content = ""
1423
+            //  this.from.after_pressure = ""
1424
+            //  this.form.template_summary_id = ""
1425
+            //  this.form.template_plan_id = ""
1426
+            //  this.form.template_inspection_id = ""
1427
            }
1427
            }
1428
         })
1428
         })
1429
       },
1429
       },

+ 13 - 13
src/xt_permission.js 查看文件

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28
   // 线上注释
28
   // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))