瀏覽代碼

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

陈少旭 1 年之前
父節點
當前提交
ef4c356836

+ 8 - 0
src/api/patient.js 查看文件

@@ -759,4 +759,12 @@ export function getContextScheduleList(params){
759 759
     method:"get",
760 760
     params:params
761 761
   })
762
+}
763
+
764
+export function getPatientAllagic(id,params){
765
+  return request({
766
+    url:"/api/patient/getpatientallagic?id="+id,
767
+    method:"get",
768
+    params:params
769
+  })
762 770
 }

+ 80 - 7
src/xt_pages/user/components/PatientDetail.vue 查看文件

@@ -365,13 +365,29 @@
365 365
                 </el-form-item>
366 366
               </el-col>
367 367
 
368
+
369
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
370
+                <el-form-item
371
+                  label="流转地: "
372
+                >
373
+                <el-select v-model="form.patient_address" placeholder="请选择">
374
+                    <el-option
375
+                      v-for="item in liuAddresslist"
376
+                      :key="item.id"
377
+                      :label="item.name"
378
+                      :value="item.name">
379
+                    </el-option>
380
+                 </el-select>
381
+                </el-form-item>
382
+              </el-col>
383
+           
384
+
368 385
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
369 386
                 <el-form-item
370
-                  label="患者去向时间 : "
387
+                  label="流转开始时间 : "
371 388
                 >
372 389
                 <el-date-picker
373 390
                   size="small"
374
-                  disabled
375 391
                   v-model="form.patient_start_time"
376 392
                   prefix-icon="el-icon-date"
377 393
                   :editable="false"
@@ -386,6 +402,26 @@
386 402
                 </el-form-item>
387 403
               </el-col>
388 404
 
405
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
406
+                <el-form-item
407
+                  label="流转结束时间 : "
408
+                >
409
+                <el-date-picker
410
+                  size="small"
411
+                  v-model="form.patient_end_time"
412
+                  prefix-icon="el-icon-date"
413
+                  :editable="false"
414
+                  style="width: 150px;"
415
+                  type="date"
416
+                  placeholder="选择日期时间"
417
+                  align="right"
418
+                  format="yyyy-MM-dd"
419
+                  value-format="yyyy-MM-dd"
420
+                  @change="startTimeChange"
421
+                 ></el-date-picker>
422
+                </el-form-item>
423
+              </el-col> 
424
+
389 425
                 <el-col :span="8" style="margin-bottom: 20px;">
390 426
                 <el-form-item
391 427
                   label="备注 : "
@@ -443,6 +479,12 @@
443 479
                 </el-checkbox-group>
444 480
               </el-form-item>
445 481
 
482
+              <el-col :span="24">
483
+                 <el-form-item label="传染病细分:" v-if="form.is_infectious == '2'">
484
+                    <el-input v-model="form.infectious_remark"></el-input>
485
+                 </el-form-item>
486
+              </el-col>
487
+
446 488
               <el-form-item label="疑难内瘘:">
447 489
                 <el-radio-group v-model="form.troble_shoot" disabled>
448 490
                   <el-radio :label="1">是</el-radio>
@@ -766,6 +808,19 @@
766 808
               </el-form-item>
767 809
             </el-col>
768 810
           </el-row>
811
+          <el-row :gutter="24">
812
+            <el-col :span="24">
813
+              <el-form-item label="过敏史 : " prop="past_history">
814
+                <el-input
815
+                  type="textarea"
816
+                  :rows="3"
817
+                  v-model="form.allergic_history"
818
+                  resize="none"
819
+                  placeholder=""
820
+                ></el-input>
821
+              </el-form-item>
822
+            </el-col>
823
+          </el-row>
769 824
           <el-row :gutter="24">
770 825
             <el-col :span="24">
771 826
               <el-form-item label="体格检查">
@@ -1081,12 +1136,13 @@
1081 1136
                 </tr>
1082 1137
                 <tr>
1083 1138
                   <td>
1084
-                    <div class="td_proj_title" v-if="org_id !=10278 && org_id!=10138 && org_id!=0">传<br />染<br />病</div>
1085
-                    <div class="td_proj_title" v-if="org_id==10138 || org_id == 10278 || org_id == 0">过<br />敏<br />史</div>
1139
+                    <div class="td_proj_title">过敏史</div>
1140
+                    <!-- <div class="td_proj_title" v-if="org_id !=10278 && org_id!=10138 && org_id!=0">传<br />染<br />病</div>
1141
+                    <div class="td_proj_title" v-if="org_id==10138 || org_id == 10278 || org_id == 0">过<br />敏<br />史</div> -->
1086 1142
                   </td>
1087 1143
                   <td colspan="7">
1088 1144
                     <div class="td_proj_content td_align_left">
1089
-                      {{ patientPrint.contagions }}
1145
+                      {{ patientPrint.allergic_history }}
1090 1146
                     </div>
1091 1147
                   </td>
1092 1148
                 </tr>
@@ -1294,6 +1350,10 @@ const defaultForm = {
1294 1350
   record_number:"",
1295 1351
   patient_source:"",
1296 1352
   patient_start_time:"",
1353
+  patient_end_time:"",
1354
+  patient_address:"",
1355
+  infectious_remark:"",
1356
+  allergic_history:"",
1297 1357
 };
1298 1358
 
1299 1359
 export default {
@@ -1315,7 +1375,7 @@ export default {
1315 1375
         {value:1,label:"门诊"},
1316 1376
         {value:2,label:"住院"},
1317 1377
         {value:3,label:"请假"},
1318
-        {value:4,label:"备注"}
1378
+        {value:4,label:"流转"}
1319 1379
       ],
1320 1380
       generic_info_fold: true,
1321 1381
       treat_info_fold: true,
@@ -1399,6 +1459,7 @@ export default {
1399 1459
         { id: 2, name: "否" },
1400 1460
       ],
1401 1461
       operators:[],
1462
+      liuAddresslist:[],
1402 1463
     };
1403 1464
   },
1404 1465
   computed: {
@@ -1410,6 +1471,8 @@ export default {
1410 1471
     },
1411 1472
   },
1412 1473
   created() {
1474
+    this.liuAddresslist = getDataConfig('hemodialysis', 'liu_address')
1475
+    console.log("liuAddresslist",this.liuAddresslist)
1413 1476
     this.org_id = this.$store.getters.xt_user.org.id;
1414 1477
     this.form.doctor = this.$store.getters.xt_user.user.id
1415 1478
     console.log("owowow",this.$store.getters.xt_user.user.id)
@@ -1643,6 +1706,16 @@ export default {
1643 1706
                 "{y}-{m}-{d}"
1644 1707
               );
1645 1708
             }
1709
+
1710
+            if (patietInfo.patient_end_time != 0) {
1711
+              this.form.patient_end_time = uParseTime(
1712
+                patietInfo.patient_end_time,
1713
+                "{y}-{m}-{d}"
1714
+              );
1715
+            }
1716
+            this.form.patient_address = patietInfo.patient_address
1717
+            this.form.allergic_history = patietInfo.allergic_history
1718
+            this.form.infectious_remark = patietInfo.infectious_remark
1646 1719
             // this.form.initial = patietInfo.initial_dialysis + "";
1647 1720
             // this.form.dialysisTotal = patietInfo.total_dialysis + "";
1648 1721
             // this.form.assessment = patietInfo.evaluate;
@@ -1976,7 +2049,7 @@ export default {
1976 2049
               this.patientPrint.hospital_first_dialysis_date = "";
1977 2050
             }
1978 2051
 
1979
-          
2052
+           
1980 2053
 
1981 2054
             this.checkIdCardNo();
1982 2055
           } else {

+ 24 - 12
src/xt_pages/user/components/PatientForm.vue 查看文件

@@ -412,9 +412,9 @@
412 412
            
413 413
 
414 414
             
415
-              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
415
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
416 416
                 <el-form-item
417
-                  label="流转地: "
417
+                  label="流转地: "
418 418
                 >
419 419
                 <el-select v-model="form.patient_address" placeholder="请选择">
420 420
                     <el-option
@@ -425,7 +425,7 @@
425 425
                     </el-option>
426 426
                  </el-select>
427 427
                 </el-form-item>
428
-              </el-col> -->
428
+              </el-col>
429 429
            
430 430
  
431 431
              
@@ -449,7 +449,7 @@
449 449
                 </el-form-item>
450 450
               </el-col>
451 451
 
452
-              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
452
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
453 453
                 <el-form-item
454 454
                   label="流转结束时间 : "
455 455
                 >
@@ -467,7 +467,7 @@
467 467
                   @change="startTimeChange"
468 468
                  ></el-date-picker>
469 469
                 </el-form-item>
470
-              </el-col> -->
470
+              </el-col> 
471 471
            
472 472
              
473 473
 
@@ -528,11 +528,11 @@
528 528
 
529 529
               </el-col>
530 530
 
531
-              <!-- <el-col :span="24">
531
+              <el-col :span="24">
532 532
                  <el-form-item label="传染病细分:" v-if="form.is_infectious == '2'">
533 533
                     <el-input v-model="form.infectious_remark"></el-input>
534 534
                  </el-form-item>
535
-              </el-col> -->
535
+              </el-col>
536 536
 
537 537
               <el-col :span="8">
538 538
                 <el-form-item label="疑难内瘘 : " prop="contagions">
@@ -896,7 +896,7 @@
896 896
               </el-form-item>
897 897
             </el-col>
898 898
           </el-row>
899
-          <!-- <el-row :gutter="24">
899
+          <el-row :gutter="24">
900 900
             <el-col :span="24">
901 901
               <el-form-item label="过敏史 : " prop="past_history">
902 902
                 <el-input
@@ -908,7 +908,7 @@
908 908
                 ></el-input>
909 909
               </el-form-item>
910 910
             </el-col>
911
-          </el-row> -->
911
+          </el-row>
912 912
           <el-row :gutter="24">
913 913
             <el-col :span="24">
914 914
               <el-form-item label="体格检查">
@@ -1514,8 +1514,8 @@ export default {
1514 1514
     }
1515 1515
   },
1516 1516
   created() {
1517
-  // this.liuAddresslist = getDataConfig('hemodialysis', 'liu_address')
1518
-  // console.log("liuAddresslist",this.liuAddresslist)
1517
+    this.liuAddresslist = getDataConfig('hemodialysis', 'liu_address')
1518
+    console.log("liuAddresslist",this.liuAddresslist)
1519 1519
    this.fetchAllAdminUsers();
1520 1520
  
1521 1521
 
@@ -1892,7 +1892,7 @@ export default {
1892 1892
               this.form.gender = patietInfo.gender;
1893 1893
             }
1894 1894
             this.form.birth = uParseTime(patietInfo.birthday, "{y}-{m}-{d}");
1895
-            console.log("中共232323232322323我-------------",this.form.birth)
1895
+           
1896 1896
             this.form.nation = patietInfo.nation;
1897 1897
             this.form.native_place = patietInfo.native_place;
1898 1898
             this.form.height = patietInfo.height + "";
@@ -2066,6 +2066,18 @@ export default {
2066 2066
                 "{y}-{m}-{d}"
2067 2067
               );
2068 2068
             }
2069
+
2070
+            if (patietInfo.patient_end_time != 0) {
2071
+              this.form.patient_end_time = uParseTime(
2072
+                patietInfo.patient_end_time,
2073
+                "{y}-{m}-{d}"
2074
+              );
2075
+            }
2076
+            this.form.patient_address = patietInfo.patient_address
2077
+            this.form.allergic_history = patietInfo.allergic_history
2078
+            this.form.infectious_remark = patietInfo.infectious_remark
2079
+
2080
+
2069 2081
             this.checkIdCardNo();
2070 2082
           } else {
2071 2083
             this.$notify.error({

+ 45 - 27
src/xt_pages/user/dialysisSolution.vue 查看文件

@@ -1244,39 +1244,55 @@
1244 1244
       },
1245 1245
 
1246 1246
       'addPlan.dialysis_duration': function() {
1247
-
1248
-        this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
1249
-          this.addPlan.anticoagulant_shouji,
1250
-          this.addPlan.dialysis_duration,
1251
-          this.addPlan.anticoagulant_weichi
1252
-        )
1247
+        
1248
+        if(this.addPlan.id == 0){
1249
+            this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
1250
+            this.addPlan.anticoagulant_shouji,
1251
+            this.addPlan.dialysis_duration,
1252
+            this.addPlan.anticoagulant_weichi
1253
+          )
1254
+        }
1255
+      
1253 1256
       },
1254 1257
       'addPlan.anticoagulant_shouji': function() {
1255
-
1256
-        this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
1257
-          this.addPlan.anticoagulant_shouji,
1258
-          this.addPlan.dialysis_duration,
1259
-          this.addPlan.anticoagulant_weichi
1260
-        )
1261
-
1262
-        if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1263
-          this.addPlan.anticoagulant_zongliang = ""
1264
-          this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1258
+      
1259
+         if(this.addPlan.id == 0){
1260
+            this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
1261
+            this.addPlan.anticoagulant_shouji,
1262
+            this.addPlan.dialysis_duration,
1263
+            this.addPlan.anticoagulant_weichi
1264
+          )
1265
+         }
1266
+     
1267
+       
1268
+        if(this.addPlan.id == 0){
1269
+          if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1270
+            this.addPlan.anticoagulant_zongliang = ""
1271
+            this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1272
+         }
1265 1273
         }
1274
+      
1266 1275
 
1267 1276
       },
1268 1277
       'addPlan.anticoagulant_weichi': function() {
1269
-        this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1270
-          1,
1271
-          this.addPlan.anticoagulant_shouji,
1272
-          this.addPlan.dialysis_duration,
1273
-          this.addPlan.anticoagulant_weichi
1274
-        )
1275 1278
 
1276
-        if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1277
-          this.addPlan.anticoagulant_zongliang = ""
1278
-          this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1279
-        }
1279
+        if(this.addPlan.id == 0){
1280
+            this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1281
+            1,
1282
+            this.addPlan.anticoagulant_shouji,
1283
+            this.addPlan.dialysis_duration,
1284
+            this.addPlan.anticoagulant_weichi
1285
+         )
1286
+        }
1287
+      
1288
+        
1289
+        if(this.addPlan.id == 0){
1290
+          if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1291
+            this.addPlan.anticoagulant_zongliang = ""
1292
+            this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1293
+         }
1294
+        }
1295
+      
1280 1296
       }
1281 1297
     },
1282 1298
 
@@ -1831,7 +1847,7 @@
1831 1847
         this.getDialysisSolutionDetailList()
1832 1848
       },
1833 1849
       openEdit(index, row) {
1834
-       
1850
+        console.log("rowsoososososso",row)
1835 1851
         this.current_index = index
1836 1852
         this.addPlan.id = row.id
1837 1853
         this.addPlan.mode = row.mode_id
@@ -2014,6 +2030,8 @@
2014 2030
 
2015 2031
         this.addPlan.amylaceum = row.amylaceum
2016 2032
         this.addPlan.chaptalization = row.chaptalization
2033
+
2034
+
2017 2035
       },
2018 2036
       isShows(name) {
2019 2037
         var filedList = store.getters.xt_user.fileds

+ 64 - 8
src/xt_pages/user/patients.vue 查看文件

@@ -461,16 +461,14 @@
461 461
             <el-tooltip
462 462
               class="item"
463 463
               effect="dark"
464
-              content="预览"
464
+              content="流转记录"
465 465
               placement="top"
466 466
             >
467 467
               <el-button
468 468
                 type="danger"
469 469
                 icon="el-icon-tickets"
470 470
                 size="small"
471
-                @click="
472
-                  OpenView(scope.row.name, scope.row.dialysis_no, scope.row.id)
473
-                "
471
+                @click="toOpen(scope.row.id)"
474 472
               ></el-button>
475 473
             </el-tooltip>
476 474
 
@@ -631,11 +629,58 @@
631 629
           ></el-pagination>
632 630
     </el-dialog>
633 631
 
632
+    <el-dialog
633
+        title="流转记录"
634
+        :visible.sync="patieintDialogVisible"
635
+        width="50%">
636
+        <span>
637
+          <el-table
638
+            :data="patientAllgicList"
639
+            border
640
+            style="width: 100%">
641
+            <el-table-column  prop="date" label="流转地"  width="180"  align="center">
642
+              <template  slot-scope="scope">
643
+                 {{ scope.row.patient_address }}
644
+
645
+              </template>
646
+            </el-table-column>
647
+            <el-table-column  prop="name" label="流转开始时间"  width="180"   align="center">
648
+              <template  slot-scope="scope"  >
649
+                 {{ getTime(scope.row.start_time) }}
650
+
651
+              </template>
652
+            </el-table-column>
653
+
654
+            <el-table-column  prop="name" label="开始流转结束时间"  width="180"   align="center">
655
+              <template  slot-scope="scope"  >
656
+                {{ getTime(scope.row.end_time) }}
657
+
658
+              </template>
659
+            </el-table-column>
660
+            <el-table-column  prop="address"  label="流转地址"   align="center">
661
+              <template  slot-scope="scope" >
662
+                {{ scope.row.patient_address }}
663
+              </template>
664
+            </el-table-column>
665
+
666
+            <el-table-column  prop="address"  label="备注"   align="center">
667
+              <template  slot-scope="scope">
668
+                {{ scope.row.remake }}
669
+              </template>
670
+            </el-table-column>
671
+          </el-table>
672
+
673
+        </span>
674
+        <span slot="footer" class="dialog-footer">
675
+          <el-button @click="patieintDialogVisible = false">取 消</el-button>
676
+        </span>
677
+    </el-dialog>
678
+
634 679
   </div>
635 680
 </template>
636 681
 
637 682
 <script>
638
-  import { code, EditLapseto, fetchList, getMaxDialysisNo, OpenView, postExportPatients,GetRemind } from '@/api/patient'
683
+  import { code, EditLapseto, fetchList, getMaxDialysisNo, OpenView, postExportPatients,GetRemind,getPatientAllagic } from '@/api/patient'
639 684
   import { generateLog } from '@/api/config'
640 685
   import QRCode from 'qrcodejs2'
641 686
   import Vue from 'vue'
@@ -673,6 +718,7 @@
673 718
         exportVisible:false,
674 719
         phoneVisible:false,
675 720
         idCardNoVisible:false,
721
+        patieintDialogVisible:false,
676 722
         wechatbindimg: '',
677 723
         isShow:true,
678 724
         active: true,
@@ -716,7 +762,7 @@
716 762
           {value:1,label:"门诊",source:1,lapeseto:1},
717 763
           {value:2,label:"住院",source:2,lapeseto:2},
718 764
           {value:3,label:"请假",source:3,lapeseto:3},
719
-          {value:4,label:"备注",source:4,lapeseto:4}
765
+          {value:4,label:"流转",source:4,lapeseto:4}
720 766
        ],
721 767
         lapsetoArr: [
722 768
           { value: 0, label: '全部', source: 0, lapseto: 0 },
@@ -792,7 +838,8 @@
792 838
         gridData:[],
793 839
         totalOne: 0,
794 840
         page: 1,
795
-        limit: 5
841
+        limit: 5,
842
+        patientAllgicList:[]
796 843
       }
797 844
     },
798 845
     created() {
@@ -1385,7 +1432,7 @@
1385 1432
             return false
1386 1433
           } else {
1387 1434
             this.tableData = response.data.data.patients
1388
-
1435
+            console.log("wowowowo",this.tableData)
1389 1436
             this.pageTotal = this.tableData.length
1390 1437
             this.total = response.data.data.total
1391 1438
 
@@ -1614,6 +1661,15 @@
1614 1661
         return jsGetAge(birth, '-');
1615 1662
       }
1616 1663
     },
1664
+    toOpen(id){
1665
+      getPatientAllagic(id).then(response=>{
1666
+        if(response.data.state == 1){
1667
+          var list =  response.data.data.list
1668
+          this.patieintDialogVisible=  true
1669
+          this.patientAllgicList = list
1670
+        }
1671
+      })
1672
+    }
1617 1673
     }
1618 1674
   }
1619 1675
   Vue.prototype.$QRCode = function() {