Browse Source

提交代码

陈少旭 1 year ago
parent
commit
1ae63f2676

+ 42 - 13
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

80
 
80
 
81
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
81
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
82
 
82
 
83
-          <div v-if="org_id == 10454">
83
+          <div v-if="org_id = 10206">
84
             <el-button  size="small"
84
             <el-button  size="small"
85
                         @click="openZb(1)"
85
                         @click="openZb(1)"
86
                         v-if=" this.order.id == 0"
86
                         v-if=" this.order.id == 0"
1192
       total: 0,
1192
       total: 0,
1193
       state: '未收费',
1193
       state: '未收费',
1194
       radio: 1,
1194
       radio: 1,
1195
+      sch_type:0,
1195
       radioStatus: 1,
1196
       radioStatus: 1,
1196
       search_input: '',
1197
       search_input: '',
1197
       start_time: moment().locale('zh-cn').format('YYYY-MM-DD'),
1198
       start_time: moment().locale('zh-cn').format('YYYY-MM-DD'),
1995
     getDayPatientList() {
1996
     getDayPatientList() {
1996
 
1997
 
1997
       let params = {
1998
       let params = {
1998
-        'record_date': this.record_date
1999
+        'record_date': this.record_date,
2000
+        'sch_type':this.sch_type,
2001
+
1999
       }
2002
       }
2000
       getChargeHisPatientList(params).then(response => {
2003
       getChargeHisPatientList(params).then(response => {
2001
         if (response.data.state == 0) {
2004
         if (response.data.state == 0) {
2216
     },
2219
     },
2217
     getMonthPatientList() {
2220
     getMonthPatientList() {
2218
       let params = {
2221
       let params = {
2219
-        'record_date': this.record_date
2222
+        'record_date': this.record_date,
2223
+        'sch_type':this.sch_type,
2224
+
2220
       }
2225
       }
2221
       getChargeHisPatientList(params).then(response => {
2226
       getChargeHisPatientList(params).then(response => {
2222
         if (response.data.state == 0) {
2227
         if (response.data.state == 0) {
2966
           let obj3 = {
2971
           let obj3 = {
2967
             order_id:this.order.id,
2972
             order_id:this.order.id,
2968
             admin_user_id: this.$store.getters.xt_user.user.id,
2973
             admin_user_id: this.$store.getters.xt_user.user.id,
2974
+            record_date: this.record_date,
2969
           }
2975
           }
2970
           axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/settleAccount/cancel', {
2976
           axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/settleAccount/cancel', {
2971
             params: obj3
2977
             params: obj3
3696
     changeRadioAndPatient(id) {
3702
     changeRadioAndPatient(id) {
3697
       this.radio = id
3703
       this.radio = id
3698
       let params = {
3704
       let params = {
3699
-        'record_date': this.record_date
3705
+        'record_date': this.record_date,
3706
+        'sch_type':this.sch_type,
3707
+
3700
       }
3708
       }
3701
 
3709
 
3702
       getChargeHisPatientList(params).then(response => {
3710
       getChargeHisPatientList(params).then(response => {
3945
           }
3953
           }
3946
         }
3954
         }
3947
       })
3955
       })
3956
+    },changeSchtype(){
3957
+      this.getPatientList()
3948
     },
3958
     },
3949
     changeRadio(id) {
3959
     changeRadio(id) {
3950
       if(this.activeName == 'first') {
3960
       if(this.activeName == 'first') {
3951
         let temp_id = id
3961
         let temp_id = id
3952
         this.radio = id
3962
         this.radio = id
3953
         let params = {
3963
         let params = {
3954
-          'record_date': this.record_date
3964
+          'record_date': this.record_date,
3965
+          'sch_type':this.sch_type,
3955
         }
3966
         }
3956
         getChargeHisPatientList(params).then(response => {
3967
         getChargeHisPatientList(params).then(response => {
3957
           if (response.data.state == 0) {
3968
           if (response.data.state == 0) {
4207
     getPatientList() {
4218
     getPatientList() {
4208
       let params = {
4219
       let params = {
4209
         'record_date': this.record_date,
4220
         'record_date': this.record_date,
4210
-        'type': this.radio
4221
+        'type': this.radio,
4222
+        'sch_type':this.sch_type,
4211
       }
4223
       }
4212
       getChargeHisPatientList(params).then(response => {
4224
       getChargeHisPatientList(params).then(response => {
4213
         if (response.data.state == 0) {
4225
         if (response.data.state == 0) {
4231
                   order_status: 0,
4243
                   order_status: 0,
4232
                   order_number: '',
4244
                   order_number: '',
4233
                   his_patient_id: 0,
4245
                   his_patient_id: 0,
4234
-                  prescription: response.data.data.list[i].prescription
4246
+                  prescription: response.data.data.list[i].prescription,
4247
+                  schedle: response.data.data.list[i].schedule
4248
+
4235
                 }
4249
                 }
4236
 
4250
 
4237
                 this.all_table_data.push(obj)
4251
                 this.all_table_data.push(obj)
4249
                       his_patient_id: response.data.data.list[i].his_patient[0].id,
4263
                       his_patient_id: response.data.data.list[i].his_patient[0].id,
4250
                       order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4264
                       order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4251
                       order_id: response.data.data.list[i].his_patient[0].orders[b].id,
4265
                       order_id: response.data.data.list[i].his_patient[0].orders[b].id,
4252
-                      prescription: response.data.data.list[i].prescription
4266
+                      prescription: response.data.data.list[i].prescription,
4267
+                      schedle: response.data.data.list[i].schedule
4268
+
4253
 
4269
 
4254
                     }
4270
                     }
4255
                     this.all_table_data.push(obj)
4271
                     this.all_table_data.push(obj)
4264
                     his_patient_id: response.data.data.list[i].his_patient[0].id,
4280
                     his_patient_id: response.data.data.list[i].his_patient[0].id,
4265
                     order_number: '',
4281
                     order_number: '',
4266
                     order_id: 0,
4282
                     order_id: 0,
4267
-                    prescription: response.data.data.list[i].prescription
4283
+                    prescription: response.data.data.list[i].prescription,
4284
+                    schedle: response.data.data.list[i].schedule
4285
+
4268
 
4286
 
4269
                   }
4287
                   }
4270
                   this.all_table_data.push(obj)
4288
                   this.all_table_data.push(obj)
4283
                       his_patient_id: response.data.data.list[i].his_patient[b].id,
4301
                       his_patient_id: response.data.data.list[i].his_patient[b].id,
4284
                       order_number: '',
4302
                       order_number: '',
4285
                       order_id: 0,
4303
                       order_id: 0,
4286
-                      prescription: response.data.data.list[i].prescription
4304
+                      prescription: response.data.data.list[i].prescription,
4305
+                      schedle: response.data.data.list[i].schedule
4287
                     }
4306
                     }
4288
                     this.all_table_data.push(obj)
4307
                     this.all_table_data.push(obj)
4289
                   } else {
4308
                   } else {
4297
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
4316
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
4298
                         order_number: response.data.data.list[i].his_patient[b].orders[c].number,
4317
                         order_number: response.data.data.list[i].his_patient[b].orders[c].number,
4299
                         order_id: response.data.data.list[i].his_patient[b].orders[c].id,
4318
                         order_id: response.data.data.list[i].his_patient[b].orders[c].id,
4300
-                        prescription: response.data.data.list[i].prescription
4319
+                        prescription: response.data.data.list[i].prescription,
4320
+                        schedle: response.data.data.list[i].schedule
4321
+
4301
 
4322
 
4302
                       }
4323
                       }
4303
                       this.all_table_data.push(obj)
4324
                       this.all_table_data.push(obj)
4340
             }
4361
             }
4341
 
4362
 
4342
           }
4363
           }
4343
-
4344
           unChargePatient = this.unique_four(unChargePatient)
4364
           unChargePatient = this.unique_four(unChargePatient)
4365
+          // for(let i = 0; i < unChargePatient.length; i++){
4366
+          //
4367
+          // }
4368
+          var cal_list = []
4369
+
4370
+          for(let i = 0;i < unChargePatient.length; i++){
4371
+
4372
+
4373
+          }
4374
+
4345
 
4375
 
4346
           one_count = one_count + unChargePatient.length
4376
           one_count = one_count + unChargePatient.length
4347
 
4377
 
4359
             this.all_table_data = this.unique_four(this.all_table_data)
4389
             this.all_table_data = this.unique_four(this.all_table_data)
4360
           }
4390
           }
4361
 
4391
 
4362
-          console.log(this.all_table_data)
4363
 
4392
 
4364
           switch (this.radio) {
4393
           switch (this.radio) {
4365
             case 1:
4394
             case 1:

+ 37 - 26
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

2391
           if (index == 1) {
2391
           if (index == 1) {
2392
             console.log(this.prescriptions)
2392
             console.log(this.prescriptions)
2393
 
2393
 
2394
-            for (let i = 0; i < this.prescriptions.length; i++) {
2395
-              for(let b = 0; b < this.prescriptions[i].advices.length; b++){
2396
-                if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
2397
-                  this.$message.error(this.prescriptions[i].name.toString() +"属于特病类型处方,不能开非特病类型的药")
2398
-                  return
2399
-                }
2400
-              }
2401
-              for(let c = 0; c < this.prescriptions[i].project.length; c++){
2402
-                if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2  && this.prescriptions[i].project[c].project.disease_directory != 1) {
2403
-                  this.$message.error(this.prescriptions[i].name.toString() +"属于特病类型处方,请开特病类型的项目")
2404
-                  return
2394
+            if (this.org_id != 10206) {
2395
+              for (let i = 0; i < this.prescriptions.length; i++) {
2396
+                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) {
2398
+                    this.$message.error(this.prescriptions[i].name.toString() + "属于特病类型处方,不能开非特病类型的药")
2399
+                    return
2400
+                  }
2405
                 }
2401
                 }
2402
+                for (let c = 0; c < this.prescriptions[i].project.length; c++) {
2403
+                  if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
2404
+                    this.$message.error(this.prescriptions[i].name.toString() + "属于特病类型处方,请开特病类型的项目")
2405
+                    return
2406
+                  }
2406
 
2407
 
2407
-                if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3  && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
2408
-                  this.$message.error(this.prescriptions[i].name.toString() +"属于特病类型处方,请开特病类型的耗材")
2409
-                  return
2408
+                  if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
2409
+                    this.$message.error(this.prescriptions[i].name.toString() + "属于特病类型处方,请开特病类型的耗材")
2410
+                    return
2411
+                  }
2410
                 }
2412
                 }
2411
               }
2413
               }
2412
             }
2414
             }
3248
 
3250
 
3249
       if (this.curDrugs.length > 0) {
3251
       if (this.curDrugs.length > 0) {
3250
         for (let i = 0; i < this.curDrugs.length; i++) {
3252
         for (let i = 0; i < this.curDrugs.length; i++) {
3251
-          if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3252
-            this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3253
-            return
3253
+          if(this.org_id != 10206) {
3254
+            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3255
+              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3256
+              return
3257
+            }
3254
           }
3258
           }
3255
 
3259
 
3256
         }
3260
         }
3257
       }
3261
       }
3258
       if (this.teamList.length > 0) {
3262
       if (this.teamList.length > 0) {
3259
-        for (let i = 0; i < this.teamList.length; i++) {
3260
-          if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
3261
-            this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
3262
-            // return
3263
-          }
3263
+        if(this.org_id != 10206) {
3264
+          for (let i = 0; i < this.teamList.length; i++) {
3265
+            if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
3266
+              this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
3267
+              // return
3268
+            }
3264
 
3269
 
3270
+          }
3265
         }
3271
         }
3266
 
3272
 
3267
         let arr = this.teamList
3273
         let arr = this.teamList
3277
         this.teamList = newArr
3283
         this.teamList = newArr
3278
       }
3284
       }
3279
 
3285
 
3286
+
3287
+
3288
+
3280
       if (this.curDrugs.length == 0) {
3289
       if (this.curDrugs.length == 0) {
3281
         for (let i = 0; i < this.curDrugs.length; i++) {
3290
         for (let i = 0; i < this.curDrugs.length; i++) {
3282
-          if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3283
-            this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3284
-            return
3291
+          if(this.org_id != 10206) {
3292
+            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3293
+              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3294
+              return
3295
+            }
3285
           }
3296
           }
3286
         }
3297
         }
3287
       }
3298
       }
3612
             this.tabProject.push(obj)
3623
             this.tabProject.push(obj)
3613
           }
3624
           }
3614
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3625
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3615
-          if(this.org_id == 10205 || this.org_id == 10454) {
3626
+          if(this.org_id == 10206) {
3616
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3627
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3617
               for (let b = 0; b < this.tabProject.length; b++) {
3628
               for (let b = 0; b < this.tabProject.length; b++) {
3618
                 if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
3629
                 if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){

+ 4 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

1520
 
1520
 
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
1524
+
1523
                     //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
1525
                     //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
1524
-                    if(that.org_id == 10205 || that.org_id == 10454) {
1526
+                    if(that.org_id == 10206) {
1525
                       for (let i = 0; i < that.zuobiao_drug.length; i++) {
1527
                       for (let i = 0; i < that.zuobiao_drug.length; i++) {
1526
                         for (let b = 0; b < that.drugs.length; b++) {
1528
                         for (let b = 0; b < that.drugs.length; b++) {
1527
                           if (that.zuobiao_project[i].ggid == that.drugs[b].bby01){
1529
                           if (that.zuobiao_project[i].ggid == that.drugs[b].bby01){
1529
                           }
1531
                           }
1530
                         }
1532
                         }
1531
                       }
1533
                       }
1534
+
1532
                     }
1535
                     }
1533
-                    that.zuobiao_project  = response.data.data.project
1534
                   }
1536
                   }
1535
                 }
1537
                 }
1536
               })
1538
               })

+ 68 - 37
src/xt_pages/outpatientDoctorStation/modeTemplateDetail.vue View File

37
                                     :label="item.name"
37
                                     :label="item.name"
38
                                     :name="item.name"
38
                                     :name="item.name"
39
                             >
39
                             >
40
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
41
-                                           @change="changevalue">
42
-                                    <el-option
43
-                                            v-for="(item,index) in register"
44
-                                            :key="index"
45
-                                            :label="item.label"
46
-                                            :value="item.value">
47
-                                    </el-option>
48
-                                </el-select>
40
+                              <el-select v-if="org_id != 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
41
+                                         @change="changevalue">
42
+                                <el-option
43
+                                  v-for="(item,index) in register"
44
+                                  :key="index"
45
+                                  :label="item.label"
46
+                                  :value="item.value">
47
+                                </el-option>
48
+                              </el-select>
49
+                              <!--                            //针对海拉尔普爱肾病医院-->
50
+                              <el-select v-if="org_id == 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
51
+                                         @change="changevalue">
52
+                                <el-option
53
+                                  v-for="(item,index) in register10206"
54
+                                  :key="index"
55
+                                  :label="item.label"
56
+                                  :value="item.value">
57
+                                </el-option>
58
+                              </el-select>
49
                             </el-tab-pane>
59
                             </el-tab-pane>
50
 
60
 
51
                             <el-tab-pane name="more" closable><span slot="label"><i
61
                             <el-tab-pane name="more" closable><span slot="label"><i
236
       month_prescriptions: Array,
246
       month_prescriptions: Array,
237
       isloading: false,
247
       isloading: false,
238
       loading: false,
248
       loading: false,
249
+      org_id:this.$store.getters.xt_user.org_id,
239
       other_sick: {
250
       other_sick: {
240
         type: Array,
251
         type: Array,
241
         default: function() {
252
         default: function() {
250
     },
261
     },
251
     data() {
262
     data() {
252
       return {
263
       return {
264
+        register10206: [
265
+          { value: 1, label: '普通' },
266
+          { value: 2, label: '急诊' },
267
+          { value: 5, label: '第一类精神药品' },
268
+          { value: 6, label: '第二类精神药品' },
269
+          { value: 7, label: '放射药品' },
270
+          { value: 8, label: '毒性药品' },
271
+          { value: 9, label: '检查' },
272
+          { value: 10, label: '检验' },
273
+          { value: 12, label: '治疗' },
274
+          { value: 99, label: '其他' },
275
+        ],
253
         medical_care: [
276
         medical_care: [
254
           { value: 11, label: '普通门诊' },
277
           { value: 11, label: '普通门诊' },
255
           { value: 12, label: '家庭通道' },
278
           { value: 12, label: '家庭通道' },
385
             return
408
             return
386
           }
409
           }
387
         }
410
         }
411
+        if(this.$store.getters.xt_user.org_id != 10206) {
412
+          for (let i = 0; i < this.prescriptions.length; i++) {
413
+            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) {
415
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,不能开非特病类型的药')
388
 
416
 
389
-        for (let i = 0; i < this.prescriptions.length; i++) {
390
-          for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
391
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
392
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,不能开非特病类型的药')
393
-
417
+                return
418
+              }
394
 
419
 
395
-              return
396
             }
420
             }
397
 
421
 
398
-          }
399
-
400
-          for (let c = 0; c < this.prescriptions[i].project.length; c++) {
401
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
402
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的项目')
403
-              return
404
-            }
422
+            for (let c = 0; c < this.prescriptions[i].project.length; c++) {
423
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
424
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的项目')
425
+                return
426
+              }
405
 
427
 
406
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
407
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的耗材')
408
-              return
428
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
429
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的耗材')
430
+                return
431
+              }
409
             }
432
             }
410
           }
433
           }
411
         }
434
         }
1331
         //       }
1354
         //       }
1332
         //     }
1355
         //     }
1333
         //   }
1356
         //   }
1334
-        if (this.curDrugs.length > 0) {
1357
+        if (this.curDrugs.length > 0 ) {
1358
+
1335
           for (let i = 0; i < this.curDrugs.length; i++) {
1359
           for (let i = 0; i < this.curDrugs.length; i++) {
1336
-            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1337
-              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1338
-              return
1360
+            if(this.$store.getters.xt_user.org.id != 10206) {
1361
+              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1362
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1363
+                return
1364
+              }
1339
             }
1365
             }
1340
 
1366
 
1341
           }
1367
           }
1342
         }
1368
         }
1343
         if (this.teamList.length > 0) {
1369
         if (this.teamList.length > 0) {
1344
           for (let i = 0; i < this.teamList.length; i++) {
1370
           for (let i = 0; i < this.teamList.length; i++) {
1345
-            if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1346
-              setTimeout(() => {
1347
-                this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
1348
-              }, 100)
1349
-              // return
1371
+            if(this.$store.getters.xt_user.org.id != 10206) {
1372
+
1373
+              if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1374
+                setTimeout(() => {
1375
+                  this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
1376
+                }, 100)
1377
+                // return
1378
+              }
1350
             }
1379
             }
1351
 
1380
 
1352
           }
1381
           }
1366
 
1395
 
1367
         if (this.curDrugs.length == 0) {
1396
         if (this.curDrugs.length == 0) {
1368
           for (let i = 0; i < this.curDrugs.length; i++) {
1397
           for (let i = 0; i < this.curDrugs.length; i++) {
1369
-            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1370
-              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1371
-              return
1398
+            if(this.$store.getters.xt_user.org.id != 10206) {
1399
+              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1400
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1401
+                return
1402
+              }
1372
             }
1403
             }
1373
 
1404
 
1374
           }
1405
           }

+ 66 - 35
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue View File

58
                                 <!--:value="item.value">-->
58
                                 <!--:value="item.value">-->
59
                                 <!--</el-option>-->
59
                                 <!--</el-option>-->
60
                                 <!--</el-select>-->
60
                                 <!--</el-select>-->
61
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
62
-                                           @change="changevalue">
63
-                                    <el-option
64
-                                            v-for="(item,index) in register"
65
-                                            :key="index"
66
-                                            :label="item.label"
67
-                                            :value="item.value">
68
-                                    </el-option>
69
-                                </el-select>
61
+                              <el-select v-if="org_id != 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
62
+                                         @change="changevalue">
63
+                                <el-option
64
+                                  v-for="(item,index) in register"
65
+                                  :key="index"
66
+                                  :label="item.label"
67
+                                  :value="item.value">
68
+                                </el-option>
69
+                              </el-select>
70
+                              <!--                            //针对海拉尔普爱肾病医院-->
71
+                              <el-select v-if="org_id == 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
72
+                                         @change="changevalue">
73
+                                <el-option
74
+                                  v-for="(item,index) in register10206"
75
+                                  :key="index"
76
+                                  :label="item.label"
77
+                                  :value="item.value">
78
+                                </el-option>
79
+                              </el-select>
70
                             </el-tab-pane>
80
                             </el-tab-pane>
71
 
81
 
72
                             <el-tab-pane name="more" closable><span slot="label"><i
82
                             <el-tab-pane name="more" closable><span slot="label"><i
283
     },
293
     },
284
     data() {
294
     data() {
285
       return {
295
       return {
296
+        org_id:this.$store.getters.xt_user.org_id,
297
+        register10206: [
298
+          { value: 1, label: '普通' },
299
+          { value: 2, label: '急诊' },
300
+          { value: 5, label: '第一类精神药品' },
301
+          { value: 6, label: '第二类精神药品' },
302
+          { value: 7, label: '放射药品' },
303
+          { value: 8, label: '毒性药品' },
304
+          { value: 9, label: '检查' },
305
+          { value: 10, label: '检验' },
306
+          { value: 12, label: '治疗' },
307
+          { value: 99, label: '其他' },
308
+        ],
286
         medical_care: [
309
         medical_care: [
287
           { value: 11, label: '普通门诊' },
310
           { value: 11, label: '普通门诊' },
288
           { value: 12, label: '家庭通道' },
311
           { value: 12, label: '家庭通道' },
424
           }
447
           }
425
         }
448
         }
426
 
449
 
427
-        for (let i = 0; i < this.prescriptions.length; i++) {
428
-          for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
429
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
430
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,不能开非特病类型的药')
450
+        if(this.org_id != 10206){
451
+          for (let i = 0; i < this.prescriptions.length; i++) {
452
+            for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
453
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
454
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,不能开非特病类型的药')
431
 
455
 
456
+                return
457
+              }
432
 
458
 
433
-              return
434
             }
459
             }
435
 
460
 
436
-          }
437
-
438
-          for (let c = 0; c < this.prescriptions[i].project.length; c++) {
439
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
440
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的项目')
441
-              return
442
-            }
461
+            for (let c = 0; c < this.prescriptions[i].project.length; c++) {
462
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
463
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的项目')
464
+                return
465
+              }
443
 
466
 
444
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
445
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的耗材')
446
-              return
467
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
468
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的耗材')
469
+                return
470
+              }
447
             }
471
             }
448
           }
472
           }
449
         }
473
         }
1371
         //   }
1395
         //   }
1372
         if (this.curDrugs.length > 0) {
1396
         if (this.curDrugs.length > 0) {
1373
           for (let i = 0; i < this.curDrugs.length; i++) {
1397
           for (let i = 0; i < this.curDrugs.length; i++) {
1374
-            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1375
-              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1376
-              return
1398
+            if(this.$store.getters.xt_user.org.id != 10206) {
1399
+
1400
+              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1401
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1402
+                return
1403
+              }
1377
             }
1404
             }
1378
 
1405
 
1379
           }
1406
           }
1380
         }
1407
         }
1381
         if (this.teamList.length > 0) {
1408
         if (this.teamList.length > 0) {
1382
           for (let i = 0; i < this.teamList.length; i++) {
1409
           for (let i = 0; i < this.teamList.length; i++) {
1383
-            if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1384
-              setTimeout(() => {
1385
-                this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
1386
-              }, 100)
1387
-              // return
1410
+            if(this.$store.getters.xt_user.org.id != 10206) {
1411
+              if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1412
+                setTimeout(() => {
1413
+                  this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
1414
+                }, 100)
1415
+                // return
1416
+              }
1388
             }
1417
             }
1389
 
1418
 
1390
           }
1419
           }
1404
 
1433
 
1405
         if (this.curDrugs.length == 0) {
1434
         if (this.curDrugs.length == 0) {
1406
           for (let i = 0; i < this.curDrugs.length; i++) {
1435
           for (let i = 0; i < this.curDrugs.length; i++) {
1407
-            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1408
-              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1409
-              return
1436
+            if(this.$store.getters.xt_user.org.id != 10206) {
1437
+              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1438
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1439
+                return
1440
+              }
1410
             }
1441
             }
1411
 
1442
 
1412
           }
1443
           }