陈少旭 2 days ago
parent
commit
f549e572a4

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

186
                   </el-option>
186
                   </el-option>
187
                 </el-select>
187
                 </el-select>
188
 
188
 
189
-                <el-select v-if="org_id == 10721 || org_id == 0" style="width:100%;" v-model="item.diagnose" placeholder="" multiple filterable  placeholder="诊断">
190
-                  <el-option
191
-                    v-for="(item,index) in diagnoses"
192
-                    :key="index"
193
-                    :label="item.class_name"
194
-                    :value="item.id">
195
-                  </el-option>
196
-                </el-select>
189
+<!--                <el-select v-if="org_id == 10721 || org_id == 0" style="width:100%;" v-model="item.diagnose" placeholder="" multiple filterable  placeholder="诊断">-->
190
+<!--                  <el-option-->
191
+<!--                    v-for="(item,index) in diagnoses"-->
192
+<!--                    :key="index"-->
193
+<!--                    :label="item.class_name"-->
194
+<!--                    :value="item.id">-->
195
+<!--                  </el-option>-->
196
+<!--                </el-select>-->
197
 
197
 
198
                 <el-select v-if="org_id == 10726" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
198
                 <el-select v-if="org_id == 10726" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
199
                            @change="changevalue">
199
                            @change="changevalue">

+ 230 - 29
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

24
           <p style="font-size:14px;">未就诊:<span>{{ cal_one }}</span>人</p>
24
           <p style="font-size:14px;">未就诊:<span>{{ cal_one }}</span>人</p>
25
           <p style="font-size:14px;">已就诊:<span>{{ cal_two }}</span>人</p>
25
           <p style="font-size:14px;">已就诊:<span>{{ cal_two }}</span>人</p>
26
         </div>
26
         </div>
27
+
28
+
27
         <div class="mainCell">
29
         <div class="mainCell">
28
-          <el-radio-group v-model="schedule_type" @change="changeScheduleType">
30
+          <el-radio-group v-model="patient_type" @change="changePatientType">
31
+            <el-radio :label="1">血透</el-radio>
32
+            <el-radio :label="2">腹透</el-radio>
33
+          </el-radio-group>
34
+        </div>
35
+
36
+
37
+        <div class="mainCell">
38
+          <el-radio-group v-model="schedule_type" v-if="patient_type == 1" @change="changeScheduleType">
29
             <el-radio :label="1">上午</el-radio>
39
             <el-radio :label="1">上午</el-radio>
30
             <el-radio :label="2">下午</el-radio>
40
             <el-radio :label="2">下午</el-radio>
31
             <el-radio :label="3">晚上</el-radio>
41
             <el-radio :label="3">晚上</el-radio>
748
       cal_two: 0,
758
       cal_two: 0,
749
       radio: 1,
759
       radio: 1,
750
       schedule_type: 0,
760
       schedule_type: 0,
761
+      patient_type:1,
751
       record_date: '',
762
       record_date: '',
752
       crumbs: [
763
       crumbs: [
753
         { path: false, name: '门诊医生站' },
764
         { path: false, name: '门诊医生站' },
929
       let params = {
940
       let params = {
930
         'record_date': this.record_date,
941
         'record_date': this.record_date,
931
         'type': this.radio,
942
         'type': this.radio,
943
+        'patient_type':this.patient_type,
932
         'sch_type': this.schedule_type
944
         'sch_type': this.schedule_type
933
 
945
 
934
       }
946
       }
1152
       let params = {
1164
       let params = {
1153
         'record_date': this.record_date,
1165
         'record_date': this.record_date,
1154
         'type': this.radio,
1166
         'type': this.radio,
1167
+        'patient_type':this.patient_type,
1168
+
1155
         'sch_type': this.schedule_type
1169
         'sch_type': this.schedule_type
1156
       }
1170
       }
1157
       this.un_cure_data = []
1171
       this.un_cure_data = []
1271
           }
1285
           }
1272
         }
1286
         }
1273
       })
1287
       })
1274
-    }, changeScheduleType() {
1288
+    }, changePatientType(){
1289
+      let params = {
1290
+        'record_date': this.record_date,
1291
+        'type': this.radio,
1292
+        'patient_type':this.patient_type,
1293
+        'sch_type': this.schedule_type
1294
+      }
1295
+      this.un_cure_data = []
1296
+      this.cure_data = []
1297
+      this.all_data = []
1298
+
1299
+      getSchedulePatientList(params).then(response => {
1300
+        if (response.data.state == 0) {
1301
+          this.$message.error(response.data.msg)
1302
+          return false
1303
+        } else {
1304
+          //挂号
1305
+          for (let i = 0; i < response.data.data.list.length; i++) {
1306
+            for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
1307
+              //未就诊
1308
+              if (response.data.data.list[i].his_patient[b].prescription.length == 0) {
1309
+                let obj = {
1310
+                  name: response.data.data.list[i].his_patient[b].name,
1311
+                  number: response.data.data.list[i].his_patient[b].number,
1312
+                  id: response.data.data.list[i].id,
1313
+                  his_patient_id: response.data.data.list[i].his_patient[b].id,
1314
+                  first_letter: response.data.data.list[i].first_letter
1315
+                }
1316
+                this.un_cure_data.push(obj)
1317
+              }
1318
+              //已就诊
1319
+              if (response.data.data.list[i].his_patient[b].prescription.length > 0) {
1320
+                let obj = {
1321
+                  name: response.data.data.list[i].his_patient[b].name,
1322
+                  number: response.data.data.list[i].his_patient[b].number,
1323
+                  id: response.data.data.list[i].id,
1324
+                  his_patient_id: response.data.data.list[i].his_patient[b].id,
1325
+                  first_letter: response.data.data.list[i].first_letter
1326
+                }
1327
+                this.cure_data.push(obj)
1328
+              }
1329
+            }
1330
+          }
1331
+
1332
+          //排班
1333
+          for (let i = 0; i < response.data.data.list_two.length; i++) {
1334
+            //未就诊
1335
+            if (response.data.data.list_two[i].prescription.length == 0 && response.data.data.list_two[i].his_patient.id == 0) {
1336
+              let obj = {
1337
+                name: response.data.data.list_two[i].name,
1338
+                number: response.data.data.list_two[i].his_patient.number,
1339
+                id: response.data.data.list_two[i].id,
1340
+                his_patient_id: response.data.data.list_two[i].his_patient.id,
1341
+                first_letter: response.data.data.list_two[i].first_letter
1342
+              }
1343
+              this.un_cure_data.push(obj)
1344
+            }
1345
+
1346
+            //已就诊
1347
+            if (response.data.data.list_two[i].prescription.length > 0 && response.data.data.list_two[i].his_patient.id == 0) {
1348
+              let obj = {
1349
+                name: response.data.data.list_two[i].name,
1350
+                number: response.data.data.list_two[i].his_patient.number,
1351
+                id: response.data.data.list_two[i].id,
1352
+                his_patient_id: response.data.data.list_two[i].his_patient.id,
1353
+                first_letter: response.data.data.list_two[i].first_letter
1354
+              }
1355
+              this.cure_data.push(obj)
1356
+            }
1357
+          }
1358
+
1359
+          // for (let i = 0; i < response.data.data.list_three.length; i++) {
1360
+          //   //已就诊
1361
+          //   if (response.data.data.list_three[i].prescription.length > 0) {
1362
+          //     let obj = {
1363
+          //       name: response.data.data.list_three[i].name,
1364
+          //       number: "",
1365
+          //       id: response.data.data.list_three[i].id,
1366
+          //       his_patient_id: 0,
1367
+          //       first_letter: response.data.data.list_three[i].first_letter
1368
+          //     }
1369
+          //     this.cure_data.push(obj)
1370
+          //   }
1371
+          // }
1372
+
1373
+          this.all_data = this.all_data.concat(this.cure_data)
1374
+          this.all_data = this.all_data.concat(this.un_cure_data)
1375
+
1376
+          this.cure_data_two = this.cure_data
1377
+          this.un_cure_data_two = this.un_cure_data
1378
+          this.all_data_two = this.all_data
1379
+
1380
+          this.cal_one = this.un_cure_data.length
1381
+          this.cal_two = this.cure_data.length
1382
+          this.admin_info = response.data.data.info
1383
+          if (this.un_cure_data.length > 0) {
1384
+            if (this.radio == 0) {
1385
+              this.$refs.tab.setCurrentRow(this.all_data[0])
1386
+              this.oldCurrentRow = this.all_data[0]
1387
+              this.getPatientInfo(this.all_data[0])
1388
+            } else if (this.radio == 1) {
1389
+
1390
+              this.$refs.tab.setCurrentRow(this.un_cure_data[0])
1391
+              this.oldCurrentRow = this.un_cure_data[0]
1392
+              this.getPatientInfo(this.un_cure_data[0])
1393
+
1394
+            } else if (this.radio == 2) {
1395
+
1396
+              this.$refs.tab.setCurrentRow(this.cure_data[0])
1397
+              this.oldCurrentRow = this.cure_data[0]
1398
+              this.getPatientInfo(this.cure_data[0])
1399
+
1400
+            }
1401
+
1402
+          }
1403
+        }
1404
+      })
1405
+
1406
+
1407
+
1408
+    },changeScheduleType() {
1275
       let params = {
1409
       let params = {
1276
         'record_date': this.record_date,
1410
         'record_date': this.record_date,
1277
         'type': this.radio,
1411
         'type': this.radio,
1820
                 first_letter: response.data.data.list_two[i].first_letter,
1954
                 first_letter: response.data.data.list_two[i].first_letter,
1821
                 patient_type: response.data.data.list_two[i].patient_type
1955
                 patient_type: response.data.data.list_two[i].patient_type
1822
               }
1956
               }
1823
-              // console.log('6666',obj);
1824
               this.un_cure_data.push(obj)
1957
               this.un_cure_data.push(obj)
1825
             }
1958
             }
1826
-
1827
             //已就诊
1959
             //已就诊
1828
             if (response.data.data.list_two[i].prescription.length > 0 && response.data.data.list_two[i].his_patient.id == 0) {
1960
             if (response.data.data.list_two[i].prescription.length > 0 && response.data.data.list_two[i].his_patient.id == 0) {
1829
               let obj = {
1961
               let obj = {
1837
               this.cure_data.push(obj)
1969
               this.cure_data.push(obj)
1838
             }
1970
             }
1839
           }
1971
           }
1840
-
1841
           //挂号
1972
           //挂号
1842
           for (let i = 0; i < response.data.data.list.length; i++) {
1973
           for (let i = 0; i < response.data.data.list.length; i++) {
1843
             for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
1974
             for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
1869
             }
2000
             }
1870
           }
2001
           }
1871
 
2002
 
1872
-          // for (let i = 0; i < response.data.data.list_three.length; i++) {
1873
-          //     //已就诊
1874
-          //     if (response.data.data.list_three[i].prescription.length > 0) {
1875
-          //       let obj = {
1876
-          //         name: response.data.data.list_three[i].name,
1877
-          //         number: "",
1878
-          //         id: response.data.data.list_three[i].id,
1879
-          //         his_patient_id: 0,
1880
-          //         first_letter: response.data.data.list_three[i].first_letter
1881
-          //       }
1882
-          //       this.cure_data.push(obj)
1883
-          //     }
1884
-          // }
1885
-
1886
           this.all_data = this.all_data.concat(this.cure_data)
2003
           this.all_data = this.all_data.concat(this.cure_data)
1887
           this.all_data = this.all_data.concat(this.un_cure_data)
2004
           this.all_data = this.all_data.concat(this.un_cure_data)
1888
 
2005
 
2210
               }
2327
               }
2211
 
2328
 
2212
 
2329
 
2213
-
2214
-
2215
               let index = i + 1
2330
               let index = i + 1
2216
               let obj = {
2331
               let obj = {
2217
                 id: prescription.id,
2332
                 id: prescription.id,
2219
                 advices: tempAdvice,
2334
                 advices: tempAdvice,
2220
                 project: tempProject,
2335
                 project: tempProject,
2221
                 addition: tempAddition,
2336
                 addition: tempAddition,
2337
+                diagnose: "",
2222
                 order_status: prescription.order_status,
2338
                 order_status: prescription.order_status,
2223
                 pre_time: preTime,
2339
                 pre_time: preTime,
2224
                 med_type: parseInt(prescription.med_type),
2340
                 med_type: parseInt(prescription.med_type),
2225
                 is_medicine_status: is_medicine
2341
                 is_medicine_status: is_medicine
2226
               }
2342
               }
2343
+              if (parseInt(prescription.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
2344
+                obj.diagnose = 2465
2345
+              }
2227
               this.prescriptions.push(obj)
2346
               this.prescriptions.push(obj)
2228
             }
2347
             }
2229
 
2348
 
2230
           } else {
2349
           } else {
2231
-            console.log("----======0000000")
2350
+            console.log("00000000000000")
2351
+
2232
             if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
2352
             if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
2233
               for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2353
               for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2234
                 var prescription = response.data.data.sch_prescriptions[i]
2354
                 var prescription = response.data.data.sch_prescriptions[i]
2253
 
2373
 
2254
               for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2374
               for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2255
                 var prescription = response.data.data.sch_prescriptions[i]
2375
                 var prescription = response.data.data.sch_prescriptions[i]
2376
+
2377
+                console.log("-----======-0-----------")
2378
+                console.log(prescription)
2379
+                console.log("-----======-0-----------")
2380
+
2381
+
2256
                 let tempAdvice = []
2382
                 let tempAdvice = []
2257
                 let tempProject = []
2383
                 let tempProject = []
2258
                 let tempAddition = []
2384
                 let tempAddition = []
2337
                     obj['project'] = prescription.project[b].project
2463
                     obj['project'] = prescription.project[b].project
2338
 
2464
 
2339
                   } else if (prescription.project[b].type == 3) {
2465
                   } else if (prescription.project[b].type == 3) {
2466
+                    console.log("-----======-0-----------")
2340
                     obj['statistical_classification'] = ''
2467
                     obj['statistical_classification'] = ''
2341
                     obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2468
                     obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2342
                     obj['project_name'] = prescription.project[b].good_info.good_name
2469
                     obj['project_name'] = prescription.project[b].good_info.good_name
2415
                   project: tempProject,
2542
                   project: tempProject,
2416
                   addition: tempAddition,
2543
                   addition: tempAddition,
2417
                   order_status: 1,
2544
                   order_status: 1,
2545
+                  diagnose:"",
2418
                   pre_time: preTime,
2546
                   pre_time: preTime,
2419
                   med_type: '',
2547
                   med_type: '',
2420
                   is_medicine_status: false
2548
                   is_medicine_status: false
2438
                   } else {
2566
                   } else {
2439
                     obj.med_type = 1
2567
                     obj.med_type = 1
2440
                   }
2568
                   }
2569
+                }else{
2570
+                  if (this.org_id == 10721){
2571
+
2572
+                    obj.med_type = 992102
2573
+                  }
2574
+
2575
+                }
2576
+
2577
+                if (parseInt(obj.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
2578
+                  obj.diagnose = 2465
2441
                 }
2579
                 }
2442
 
2580
 
2443
                 this.prescriptions.push(obj)
2581
                 this.prescriptions.push(obj)
2482
                 advices: [],
2620
                 advices: [],
2483
                 project: [],
2621
                 project: [],
2484
                 addition: [],
2622
                 addition: [],
2623
+                diagnose:"",
2485
                 order_status: 0,
2624
                 order_status: 0,
2486
                 pre_time: preTime,
2625
                 pre_time: preTime,
2487
                 med_type: '',
2626
                 med_type: '',
2498
                 obj.med_type = 1
2637
                 obj.med_type = 1
2499
 
2638
 
2500
               }
2639
               }
2640
+              if (parseInt(obj.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
2641
+                obj.diagnose = 2465
2642
+              }
2501
               this.prescriptions.push(obj)
2643
               this.prescriptions.push(obj)
2502
 
2644
 
2503
             }
2645
             }
2839
                       addition: tempAddition,
2981
                       addition: tempAddition,
2840
                       order_status: prescription.order_status,
2982
                       order_status: prescription.order_status,
2841
                       pre_time: preTime,
2983
                       pre_time: preTime,
2984
+                      diagnose:"",
2842
                       med_type: parseInt(prescription.med_type),
2985
                       med_type: parseInt(prescription.med_type),
2843
                       is_medicine_status: is_medicine
2986
                       is_medicine_status: is_medicine
2844
                     }
2987
                     }
2988
+                    if (parseInt(prescription.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
2989
+                      obj.diagnose = 2465
2990
+                    }
2845
                     this.prescriptions.push(obj)
2991
                     this.prescriptions.push(obj)
2846
                   }
2992
                   }
2847
                 } else {
2993
                 } else {
3038
                         addition: tempAddition,
3184
                         addition: tempAddition,
3039
                         order_status: 1,
3185
                         order_status: 1,
3040
                         pre_time: preTime,
3186
                         pre_time: preTime,
3187
+                        diagnose:"",
3041
                         med_type: ''
3188
                         med_type: ''
3042
 
3189
 
3043
                       }
3190
                       }
3050
 
3197
 
3051
                           obj.med_type = parseInt(prescription.med_type)
3198
                           obj.med_type = parseInt(prescription.med_type)
3052
                         }
3199
                         }
3200
+
3201
+
3053
                         if (obj.med_type == 0 || obj.med_type == '') {
3202
                         if (obj.med_type == 0 || obj.med_type == '') {
3054
 
3203
 
3055
                           obj.med_type = 14
3204
                           obj.med_type = 14
3060
                           obj.med_type = 992102
3209
                           obj.med_type = 992102
3061
                         }
3210
                         }
3062
                       }
3211
                       }
3212
+                      if (parseInt(obj.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
3213
+                        obj.diagnose = 2465
3214
+                      }
3063
                       this.prescriptions.push(obj)
3215
                       this.prescriptions.push(obj)
3064
                     }
3216
                     }
3065
 
3217
 
3098
                       project: [],
3250
                       project: [],
3099
                       addition: [],
3251
                       addition: [],
3100
                       order_status: 0,
3252
                       order_status: 0,
3253
+                      diagnose:"",
3101
                       pre_time: preTime,
3254
                       pre_time: preTime,
3102
                       med_type: ''
3255
                       med_type: ''
3103
 
3256
 
3110
                         obj.med_type = 992102
3263
                         obj.med_type = 992102
3111
                       }
3264
                       }
3112
                     }
3265
                     }
3266
+                    if (parseInt(obj.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
3267
+                      obj.diagnose = 2465
3268
+                    }
3113
 
3269
 
3114
                     this.prescriptions.push(obj)
3270
                     this.prescriptions.push(obj)
3115
 
3271
 
3501
                       advices: tempAdvice,
3657
                       advices: tempAdvice,
3502
                       project: tempProject,
3658
                       project: tempProject,
3503
                       addition: tempAddition,
3659
                       addition: tempAddition,
3660
+                      diagnose:"",
3504
                       order_status: prescription.order_status,
3661
                       order_status: prescription.order_status,
3505
                       pre_time: preTime,
3662
                       pre_time: preTime,
3506
                       med_type: parseInt(prescription.med_type)
3663
                       med_type: parseInt(prescription.med_type)
3507
                     }
3664
                     }
3665
+                    if (parseInt(prescription.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
3666
+                      obj.diagnose = 2465
3667
+                    }
3508
                     this.prescriptions.push(obj)
3668
                     this.prescriptions.push(obj)
3509
                   }
3669
                   }
3510
                 } else {
3670
                 } else {
3665
                         project: tempProject,
3825
                         project: tempProject,
3666
                         addition: tempAddition,
3826
                         addition: tempAddition,
3667
                         order_status: 1,
3827
                         order_status: 1,
3828
+                        diagnose:"",
3668
                         pre_time: preTime,
3829
                         pre_time: preTime,
3669
                         med_type: ''
3830
                         med_type: ''
3670
 
3831
 
3686
                           obj.med_type = 992102
3847
                           obj.med_type = 992102
3687
                         }
3848
                         }
3688
                       }
3849
                       }
3850
+                      if (parseInt(obj.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
3851
+                        obj.diagnose = 2465
3852
+                      }
3689
                       this.prescriptions.push(obj)
3853
                       this.prescriptions.push(obj)
3690
                     }
3854
                     }
3691
 
3855
 
3725
                       addition: [],
3889
                       addition: [],
3726
                       order_status: 0,
3890
                       order_status: 0,
3727
                       pre_time: preTime,
3891
                       pre_time: preTime,
3728
-                      med_type: ''
3892
+                      med_type: '',
3893
+                      diagnose:"",
3729
 
3894
 
3730
                     }
3895
                     }
3731
                     if (this.org_id != 10206) {
3896
                     if (this.org_id != 10206) {
3736
                       }
3901
                       }
3737
                     }
3902
                     }
3738
 
3903
 
3904
+                    if (parseInt(obj.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
3905
+                      obj.diagnose = 2465
3906
+                    }
3739
                     this.prescriptions.push(obj)
3907
                     this.prescriptions.push(obj)
3740
 
3908
 
3741
                     // if(response.data.data.count <= 1 ){
3909
                     // if(response.data.data.count <= 1 ){
4115
                     project: tempProject,
4283
                     project: tempProject,
4116
                     addition: tempAddition,
4284
                     addition: tempAddition,
4117
                     order_status: prescription.order_status,
4285
                     order_status: prescription.order_status,
4286
+                    diagnose:"",
4118
                     pre_time: preTime,
4287
                     pre_time: preTime,
4119
                     med_type: parseInt(prescription.med_type)
4288
                     med_type: parseInt(prescription.med_type)
4120
                   }
4289
                   }
4290
+                  if (parseInt(prescription.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
4291
+                    obj.diagnose = 2465
4292
+                  }
4121
                   this.prescriptions.push(obj)
4293
                   this.prescriptions.push(obj)
4122
                 }
4294
                 }
4123
               } else {
4295
               } else {
4276
                       addition: tempAddition,
4448
                       addition: tempAddition,
4277
                       order_status: 1,
4449
                       order_status: 1,
4278
                       pre_time: preTime,
4450
                       pre_time: preTime,
4451
+                      diagnose:"",
4279
                       med_type: ''
4452
                       med_type: ''
4280
 
4453
 
4281
                     }
4454
                     }
4297
                         obj.med_type = 992102
4470
                         obj.med_type = 992102
4298
                       }
4471
                       }
4299
                     }
4472
                     }
4473
+                    if (parseInt(obj.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
4474
+                      obj.diagnose = 2465
4475
+                    }
4300
                     this.prescriptions.push(obj)
4476
                     this.prescriptions.push(obj)
4301
                   }
4477
                   }
4302
 
4478
 
4336
                     addition: [],
4512
                     addition: [],
4337
                     order_status: 0,
4513
                     order_status: 0,
4338
                     pre_time: preTime,
4514
                     pre_time: preTime,
4339
-                    med_type: ''
4515
+                    med_type: '',
4516
+                    diagnose:"",
4340
 
4517
 
4341
                   }
4518
                   }
4342
 
4519
 
4348
                     }
4525
                     }
4349
                   }
4526
                   }
4350
 
4527
 
4528
+                  if (parseInt(obj.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
4529
+                    obj.diagnose = 2465
4530
+                  }
4531
+
4351
                   this.prescriptions.push(obj)
4532
                   this.prescriptions.push(obj)
4352
 
4533
 
4353
                   // if(response.data.data.count <= 1 ){
4534
                   // if(response.data.data.count <= 1 ){
4860
                       order_status: prescription.order_status,
5041
                       order_status: prescription.order_status,
4861
                       pre_time: preTime,
5042
                       pre_time: preTime,
4862
                       med_type: parseInt(prescription.med_type),
5043
                       med_type: parseInt(prescription.med_type),
4863
-                      is_medicine_status: is_medicine
5044
+                      is_medicine_status: is_medicine,
5045
+                      diagnose:"",
5046
+
4864
 
5047
 
5048
+                    }
5049
+                    if (parseInt(prescription.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
5050
+                      obj.diagnose = 2465
4865
                     }
5051
                     }
4866
                     this.prescriptions.push(obj)
5052
                     this.prescriptions.push(obj)
4867
                   }
5053
                   }
5053
                         project: tempProject,
5239
                         project: tempProject,
5054
                         addition: tempAddition,
5240
                         addition: tempAddition,
5055
                         order_status: 1,
5241
                         order_status: 1,
5242
+                        diagnose:"",
5056
                         pre_time: preTime,
5243
                         pre_time: preTime,
5057
                         med_type: ''
5244
                         med_type: ''
5058
 
5245
 
5082
                           obj.med_type = 1
5269
                           obj.med_type = 1
5083
                         }
5270
                         }
5084
                       }
5271
                       }
5272
+                      if (parseInt(prescription.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
5273
+                        obj.diagnose = 2465
5274
+                      }
5085
                       this.prescriptions.push(obj)
5275
                       this.prescriptions.push(obj)
5086
                     }
5276
                     }
5087
 
5277
 
5122
                       project: [],
5312
                       project: [],
5123
                       addition: [],
5313
                       addition: [],
5124
                       order_status: 0,
5314
                       order_status: 0,
5315
+                      diagnose:"",
5125
                       pre_time: preTime,
5316
                       pre_time: preTime,
5126
                       med_type: ''
5317
                       med_type: ''
5127
 
5318
 
5135
                     }else{
5326
                     }else{
5136
                       obj.med_type = 1
5327
                       obj.med_type = 1
5137
                     }
5328
                     }
5138
-
5329
+                    if (parseInt(obj.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
5330
+                      obj.diagnose = 2465
5331
+                    }
5139
                     this.prescriptions.push(obj)
5332
                     this.prescriptions.push(obj)
5140
 
5333
 
5141
                   }
5334
                   }
5539
                       addition: tempAddition,
5732
                       addition: tempAddition,
5540
                       order_status: prescription.order_status,
5733
                       order_status: prescription.order_status,
5541
                       pre_time: preTime,
5734
                       pre_time: preTime,
5735
+                      diagnose:"",
5542
                       med_type: parseInt(prescription.med_type),
5736
                       med_type: parseInt(prescription.med_type),
5543
                       is_medicine_status: is_medicine
5737
                       is_medicine_status: is_medicine
5544
 
5738
 
5545
                     }
5739
                     }
5740
+                    if (parseInt(prescription.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
5741
+                      obj.diagnose = 2465
5742
+                    }
5546
                     this.prescriptions.push(obj)
5743
                     this.prescriptions.push(obj)
5547
                   }
5744
                   }
5548
                 } else {
5745
                 } else {
5734
                         project: tempProject,
5931
                         project: tempProject,
5735
                         addition: tempAddition,
5932
                         addition: tempAddition,
5736
                         order_status: 1,
5933
                         order_status: 1,
5934
+                        diagnose:"",
5737
                         pre_time: preTime,
5935
                         pre_time: preTime,
5738
                         med_type: ''
5936
                         med_type: ''
5739
 
5937
 
5762
 
5960
 
5763
                         }
5961
                         }
5764
                       }
5962
                       }
5963
+                      if (parseInt(obj.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
5964
+                        obj.diagnose = 2465
5965
+                      }
5765
                       this.prescriptions.push(obj)
5966
                       this.prescriptions.push(obj)
5766
                     }
5967
                     }
5767
 
5968
 
5820
                       obj.med_type = 1
6021
                       obj.med_type = 1
5821
 
6022
 
5822
                     }
6023
                     }
5823
-
6024
+                    if (parseInt(obj.med_type) == 992012 && (this.org_id == 10271 || this.org_id == 0)){
6025
+                      obj.diagnose = 2465
6026
+                    }
5824
                     this.prescriptions.push(obj)
6027
                     this.prescriptions.push(obj)
5825
-
5826
                   }
6028
                   }
5827
                 }
6029
                 }
5828
-
5829
                 this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis, this.patient_diagnoses)
6030
                 this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis, this.patient_diagnoses)
5830
               }
6031
               }
5831
             })
6032
             })