XMLWAN 4 yıl önce
ebeveyn
işleme
3dc893d0a4

+ 1 - 0
src/xt_pages/data/components/addDrugs.vue Dosyayı Görüntüle

590
         this.form.prescription_mark = ""
590
         this.form.prescription_mark = ""
591
         this.form.record_date = ""
591
         this.form.record_date = ""
592
         this.form.drug_remark = ""
592
         this.form.drug_remark = ""
593
+       
593
         this.visible = false
594
         this.visible = false
594
       },
595
       },
595
       getValue: function() {
596
       getValue: function() {

+ 5 - 0
src/xt_pages/data/components/consumables.vue Dosyayı Görüntüle

107
         <template slot-scope="scope">
107
         <template slot-scope="scope">
108
           {{ scope.row.retail_price }}
108
           {{ scope.row.retail_price }}
109
         </template>
109
         </template>
110
+      </el-table-column>
111
+       <el-table-column label="社保目录编码" width="110" align="center">
112
+        <template slot-scope="scope">
113
+          {{ scope.row.social_security_directory_code }}
114
+        </template>
110
       </el-table-column>
115
       </el-table-column>
111
       <el-table-column label="状态" width="60" align="center">
116
       <el-table-column label="状态" width="60" align="center">
112
         <template slot-scope="scope">
117
         <template slot-scope="scope">

+ 39 - 2
src/xt_pages/data/components/drugs.vue Dosyayı Görüntüle

304
           is_charge_predict: '',//是否收费预估项
304
           is_charge_predict: '',//是否收费预估项
305
           is_statistics_work: '',//是否统计工作量
305
           is_statistics_work: '',//是否统计工作量
306
           is_charge_use: '',//是否收费常用项
306
           is_charge_use: '',//是否收费常用项
307
-          drug_code: ''
307
+          drug_code: '',
308
+          social_security_directory_code:'',
309
+          is_mark:'',
310
+          prescription_mark:'',
308
 
311
 
309
         },
312
         },
310
 
313
 
452
               this.$message.error(response.data.msg)
455
               this.$message.error(response.data.msg)
453
               return false
456
               return false
454
             } else {
457
             } else {
458
+              console.log("数据", response.data.data.drug)
455
               for (let key in response.data.data.drug) {
459
               for (let key in response.data.data.drug) {
456
                 this.formValue[key] = response.data.data.drug[key]
460
                 this.formValue[key] = response.data.data.drug[key]
457
               }
461
               }
527
               }
531
               }
528
 
532
 
529
               this.formValue.record_date = this.getTime(this.formValue.record_date)
533
               this.formValue.record_date = this.getTime(this.formValue.record_date)
530
-
534
+               
535
+              if(this.formValue.drug_category == 0){
536
+                  this.formValue.drug_category = ""
537
+              } 
538
+              if(this.formValue.drug_control == 0){
539
+                  this.formValue.drug_control = ""
540
+              }
541
+              if(this.formValue.pharmacology_category == 0){
542
+                 this.formValue.pharmacology_category = ""
543
+              }
544
+              if(this.formValue.statistics_category == 0){
545
+                this.formValue.statistics_category = ""
546
+              }
547
+              if(this.formValue.pinyin == 0){
548
+                 this.formValue.pinyin = ""
549
+              }
550
+              if(this.formValue.wubi == 0){
551
+                this.formValue.wubi = ""
552
+              }
553
+              if(this.formValue.last_price == 0){
554
+                  this.formValue.last_price = ""
555
+              }
556
+              if(this.formValue.retail_price == 0){
557
+                this.formValue.retail_price = ""
558
+              }
559
+              if(this.formValue.social_security_directory_code == 0){
560
+                 this.formValue.social_security_directory_code = ""
561
+              }
562
+              if(this.formValue.is_mark == 0){
563
+                 this.formValue.is_mark = ""
564
+              }  
565
+              if(this.formValue.prescription_mark == 0){
566
+                  this.formValue.prescription_mark = ""
567
+              }
531
               this.$refs.addDrugs.show(id, this.formValue)
568
               this.$refs.addDrugs.show(id, this.formValue)
532
 
569
 
533
             }
570
             }

+ 9 - 2
src/xt_pages/data/components/editProject.vue Dosyayı Görüntüle

393
               this.form.execution_frequency = projecDetail.execution_frequency
393
               this.form.execution_frequency = projecDetail.execution_frequency
394
               this.form.number_days = projecDetail.number_days
394
               this.form.number_days = projecDetail.number_days
395
               this.form.total = projecDetail.total
395
               this.form.total = projecDetail.total
396
-              if(projecDetail.category == 0){
396
+            
397
+              this.form.category = projecDetail.category
398
+               if(projecDetail.category == 0){
397
                 this.form.category = ""
399
                 this.form.category = ""
398
               }
400
               }
399
-              this.form.category = projecDetail.category
400
               if(projecDetail.specail_project == 0){
401
               if(projecDetail.specail_project == 0){
401
                 this.form.specail_project = ""
402
                 this.form.specail_project = ""
402
               }
403
               }
403
               this.form.specail_project = projecDetail.specail_project
404
               this.form.specail_project = projecDetail.specail_project
405
+              if(projecDetail.specail_project == 0){
406
+                 this.form.specail_project = ""
407
+              }
404
               this.form.social_security_directory_code = projecDetail.social_security_directory_code
408
               this.form.social_security_directory_code = projecDetail.social_security_directory_code
409
+              if(projecDetail.social_security_directory_code == 0){
410
+                this.form.social_security_directory_code = ""
411
+              }
405
               this.form.record_date = this.getTime(projecDetail.record_date)
412
               this.form.record_date = this.getTime(projecDetail.record_date)
406
             }
413
             }
407
          })
414
          })

+ 12 - 2
src/xt_pages/data/components/project.vue Dosyayı Görüntüle

52
                 <template  slot-scope="scope">
52
                 <template  slot-scope="scope">
53
                     {{scope.row.project_name}}
53
                     {{scope.row.project_name}}
54
                 </template>
54
                 </template>
55
+            </el-table-column>
56
+             <el-table-column prop="date" label="单价" align="center">
57
+                <template  slot-scope="scope">
58
+                    {{scope.row.price}}
59
+                </template>
60
+            </el-table-column>
61
+            <el-table-column prop="date" label="单位" align="center">
62
+                <template  slot-scope="scope">
63
+                    {{scope.row.unit}}
64
+                </template>
55
             </el-table-column>
65
             </el-table-column>
56
             <el-table-column prop="date" label="费用类别" align="center">
66
             <el-table-column prop="date" label="费用类别" align="center">
57
                   <template  slot-scope="scope">
67
                   <template  slot-scope="scope">
216
                console.log('projectlist',projecList)
226
                console.log('projectlist',projecList)
217
                this.tableData = projecList
227
                this.tableData = projecList
218
                var total = response.data.data.total
228
                var total = response.data.data.total
219
-               console.log("total-----",total)
229
+               console.log("total",total)
220
                this.total = total
230
                this.total = total
221
              }
231
              }
222
           })  
232
           })  
305
           ids.push(this.selectDrug[index].id);
315
           ids.push(this.selectDrug[index].id);
306
           idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
316
           idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
307
         }
317
         }
308
-        console.log('ids222222222',ids)
318
+       
309
         var idss = ids.join(',')
319
         var idss = ids.join(',')
310
         let params = {
320
         let params = {
311
           ids:idss,
321
           ids:idss,

+ 3 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Dosyayı Görüntüle

1248
           'hemodialysis',
1248
           'hemodialysis',
1249
           'blood'
1249
           'blood'
1250
         )
1250
         )
1251
-        console.log("抽血-----",this.bloods)
1251
+      
1252
       //  dialyzerPerfusionApparatus.map(item => {
1252
       //  dialyzerPerfusionApparatus.map(item => {
1253
       //    item.name = item.name.toUpperCase()
1253
       //    item.name = item.name.toUpperCase()
1254
       //  })
1254
       //  })
1290
         } else {
1290
         } else {
1291
 
1291
 
1292
           if (schedual.mode_id == 2 ||schedual.mode_id == 5 ||schedual.mode_id == 12) {
1292
           if (schedual.mode_id == 2 ||schedual.mode_id == 5 ||schedual.mode_id == 12) {
1293
+            
1293
             this.zhiShow = true
1294
             this.zhiShow = true
1294
             this.huShow = true
1295
             this.huShow = true
1295
             this.totalShow = true
1296
             this.totalShow = true
1631
         // 入口
1632
         // 入口
1632
         var pre = pre
1633
         var pre = pre
1633
         console.log("香锅2222222",this.dialysisPrescription)
1634
         console.log("香锅2222222",this.dialysisPrescription)
1635
+     
1634
         this.dialysisPrescription.mode_id = this.$route.query.mode_id
1636
         this.dialysisPrescription.mode_id = this.$route.query.mode_id
1635
         if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12) {
1637
         if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12) {
1636
           this.zhiShow = true
1638
           this.zhiShow = true

+ 1 - 1
src/xt_pages/dialysis/details/index.vue Dosyayı Görüntüle

979
         if (resp.state == 1) {
979
         if (resp.state == 1) {
980
           var patient = resp.data.patient // 患者信息
980
           var patient = resp.data.patient // 患者信息
981
           var schedual = resp.data.schedual // 患者排班信息
981
           var schedual = resp.data.schedual // 患者排班信息
982
-
982
+          console.log("排班22222222222",schedual)
983
           var prescription = resp.data.prescription // 透析处方
983
           var prescription = resp.data.prescription // 透析处方
984
           if (prescription != null) {
984
           if (prescription != null) {
985
             if (prescription.body_fluid == -2) {
985
             if (prescription.body_fluid == -2) {

+ 7 - 3
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Dosyayı Görüntüle

51
         <el-input v-model="patientInfo.home_address" placeholder="" :disabled="true"></el-input>
51
         <el-input v-model="patientInfo.home_address" placeholder="" :disabled="true"></el-input>
52
       </el-form-item>
52
       </el-form-item>
53
       <el-form-item label="过敏史: " prop="name">
53
       <el-form-item label="过敏史: " prop="name">
54
-        <el-input v-model="patientInfo.home_address" placeholder=""></el-input>
54
+        <el-input v-model="allergic_history" placeholder=""></el-input>
55
       </el-form-item>
55
       </el-form-item>
56
     </el-form>
56
     </el-form>
57
     <div class="mainTitle">体格信息:</div>
57
     <div class="mainTitle">体格信息:</div>
313
         valueSeven:'',
313
         valueSeven:'',
314
         diagnoses:[],
314
         diagnoses:[],
315
         sick:[],
315
         sick:[],
316
+        allergic_history:"",
316
       }
317
       }
317
     },
318
     },
318
     methods: {
319
     methods: {
363
             "doctor_advice":this.case_history.doctor_advice,
364
             "doctor_advice":this.case_history.doctor_advice,
364
             "remark":this.case_history.remark,
365
             "remark":this.case_history.remark,
365
             "sick":this.case_history.sick,
366
             "sick":this.case_history.sick,
366
-            "diagnose":this.case_history.diagnose
367
+            "diagnose":this.case_history.diagnose,
368
+            "allergic_history":this.allergic_history
367
           }
369
           }
368
-
370
+          console.log("prams222",params)
369
           createCaseHistory(params).then(response => {
371
           createCaseHistory(params).then(response => {
370
             if (response.data.state == 0) {
372
             if (response.data.state == 0) {
371
               this.$message.error("患者病历已存在")
373
               this.$message.error("患者病历已存在")
400
                 this.case_history.remark = templatedetail.remark
402
                 this.case_history.remark = templatedetail.remark
401
                 this.case_history.sick = templatedetail.sick
403
                 this.case_history.sick = templatedetail.sick
402
                 this.case_history.diagnose = templatedetail.diagnose
404
                 this.case_history.diagnose = templatedetail.diagnose
405
+                // this.allergic_history = templatedetail.allergic_history
403
               }
406
               }
404
           })
407
           })
405
         },
408
         },
566
         if(this.case_history.diagnose == 0){
569
         if(this.case_history.diagnose == 0){
567
            this.case_history.diagnose = ""
570
            this.case_history.diagnose = ""
568
         }
571
         }
572
+        // this.allergic_history = this.case_history.allergic_history
569
         
573
         
570
       }
574
       }
571
     }
575
     }

+ 10 - 6
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Dosyayı Görüntüle

897
       },
897
       },
898
 
898
 
899
       choosePatient(val) {
899
       choosePatient(val) {
900
+        
900
         var nowDate = new Date()
901
         var nowDate = new Date()
901
         var nowYear = nowDate.getFullYear()
902
         var nowYear = nowDate.getFullYear()
902
         var nowMonth = nowDate.getMonth() + 1
903
         var nowMonth = nowDate.getMonth() + 1
965
                 return false
966
                 return false
966
               } else {
967
               } else {
967
 
968
 
968
-
969
                 this.prescriptions = []
969
                 this.prescriptions = []
970
                 this.patientInfo = response.data.data.xt_info
970
                 this.patientInfo = response.data.data.xt_info
971
                 this.hisPatientInfo = response.data.data.his_info
971
                 this.hisPatientInfo = response.data.data.his_info
972
                 this.case_history = response.data.data.case_history
972
                 this.case_history = response.data.data.case_history
973
-                var case_history = response.data.data.case_history
973
+                // var case_history = response.data.data.case_history
974
+                // console.log("礼拜2222222222",this.case_history)
974
                 var month_prescriptions = response.data.data.month_prescriptions
975
                 var month_prescriptions = response.data.data.month_prescriptions
975
                 this.setMonthPrescription(month_prescriptions)
976
                 this.setMonthPrescription(month_prescriptions)
976
                 this.doctors = response.data.data.doctors
977
                 this.doctors = response.data.data.doctors
1143
               this.patientInfo = response.data.data.xt_info
1144
               this.patientInfo = response.data.data.xt_info
1144
               this.hisPatientInfo = response.data.data.his_info
1145
               this.hisPatientInfo = response.data.data.his_info
1145
               this.case_history = response.data.data.case_history
1146
               this.case_history = response.data.data.case_history
1146
-              var case_history = response.data.data.case_history
1147
-
1148
-              this.case_history = case_history
1147
+              // var case_history = response.data.data.case_history
1148
+              // console.log("礼拜2223332222222",this.case_history)
1149
+              // this.case_history = case_history
1149
               this.info = response.data.data.info
1150
               this.info = response.data.data.info
1150
               this.doctors = response.data.data.doctors
1151
               this.doctors = response.data.data.doctors
1151
               this.department = response.data.data.department
1152
               this.department = response.data.data.department
1363
           if (response.data.state == 1) {
1364
           if (response.data.state == 1) {
1364
             this.centerDialogVisible = true
1365
             this.centerDialogVisible = true
1365
             var list = response.data.data.list
1366
             var list = response.data.data.list
1366
-           
1367
+            console.log("list2222222",list)
1368
+            for(let i=0;i<list.length;i++){
1369
+              list[i].prescription_number = list[i].prescription_number + i
1370
+            }
1367
             this.tableData = list
1371
             this.tableData = list
1368
           }
1372
           }
1369
         })
1373
         })

+ 10 - 1
src/xt_pages/role/components/AdminInfoForm.vue Dosyayı Görüntüle

776
                    this.form.prescription_qualification_identification = ""
776
                    this.form.prescription_qualification_identification = ""
777
                 }
777
                 }
778
                 this.form.identification_outpatients = admin.identification_outpatients
778
                 this.form.identification_outpatients = admin.identification_outpatients
779
+                if(admin.identification_outpatients == 0){
780
+                   this.form.identification_outpatients = ""
781
+                }
779
                 this.form.start_time = this.getTime(admin.start_time)
782
                 this.form.start_time = this.getTime(admin.start_time)
780
                 this.form.medical_range_code = admin.medical_range_code
783
                 this.form.medical_range_code = admin.medical_range_code
781
                 if(admin.medical_range_code == 0){
784
                 if(admin.medical_range_code == 0){
796
                     this.form.doctor_level = ""
799
                     this.form.doctor_level = ""
797
                 }
800
                 }
798
                 this.form.doctor_type_job = admin.doctor_type_job
801
                 this.form.doctor_type_job = admin.doctor_type_job
802
+                if(admin.doctor_type_job == 0){
803
+                   this.form.doctor_type_job = ""
804
+                }
799
                 this.form.doctor_number = admin.doctor_number
805
                 this.form.doctor_number = admin.doctor_number
800
                 this.form.is_active = admin.is_active
806
                 this.form.is_active = admin.is_active
801
                 console.log("2222222",this.form.is_active)
807
                 console.log("2222222",this.form.is_active)
802
                 if(admin.is_active == 0){
808
                 if(admin.is_active == 0){
803
-                   admin.is_active = ""
809
+                   this.form.is_active = ""
804
                 }
810
                 }
805
                 this.form.active_status = admin.active_status
811
                 this.form.active_status = admin.active_status
806
                 if(admin.active_status == 0){
812
                 if(admin.active_status == 0){
1076
         }
1082
         }
1077
       },
1083
       },
1078
        getTime(val) {
1084
        getTime(val) {
1085
+         if(val < 0){
1086
+           return ""
1087
+         }
1079
          if(val == ""){
1088
          if(val == ""){
1080
           return ""
1089
           return ""
1081
          }else {
1090
          }else {