Преглед изворни кода

修改患者转出死亡证明的东西

mainqaq пре 2 година
родитељ
комит
0cd31eb48f
1 измењених фајлова са 20 додато и 16 уклоњено
  1. 20 16
      src/xt_pages/user/patients.vue

+ 20 - 16
src/xt_pages/user/patients.vue Прегледај датотеку

408
             <span>{{ scope.row.created_time | parseTime('{y}-{m}-{d}') }}</span>
408
             <span>{{ scope.row.created_time | parseTime('{y}-{m}-{d}') }}</span>
409
           </template>
409
           </template>
410
         </el-table-column>
410
         </el-table-column>
411
-        
411
+
412
         <el-table-column label="转归" align="center">
412
         <el-table-column label="转归" align="center">
413
           <template slot-scope="scope">
413
           <template slot-scope="scope">
414
             <span>{{ LapsetoInfo(scope.row) }}</span>
414
             <span>{{ LapsetoInfo(scope.row) }}</span>
416
         </el-table-column>
416
         </el-table-column>
417
         <el-table-column label="转出(死亡)时间" min-width="134" align="center">
417
         <el-table-column label="转出(死亡)时间" min-width="134" align="center">
418
           <template slot-scope="scope">
418
           <template slot-scope="scope">
419
-            <span>{{getTime(scope.row.death_time)}}</span>
419
+<!--            <span>{{getTime(scope.row.death_time)}}</span>-->
420
+            <span v-if="scope.row.lapseto == 1"> </span>
421
+            <span v-else >{{getTime(scope.row.death_time)}}</span>
420
           </template>
422
           </template>
421
         </el-table-column>
423
         </el-table-column>
422
          <el-table-column label="转出(死亡)原因" align="center" min-width="150">
424
          <el-table-column label="转出(死亡)原因" align="center" min-width="150">
423
           <template slot-scope="scope">
425
           <template slot-scope="scope">
424
-            <span>{{scope.row.out_reason}}</span>
426
+<!--            <span>{{scope.row.out_reason}}</span>-->
427
+            <span v-if="scope.row.lapseto == 1"> </span>
428
+            <span v-else >{{scope.row.out_reason}}</span>
425
           </template>
429
           </template>
426
         </el-table-column>
430
         </el-table-column>
427
         <el-table-column label="操作" align="center" min-width="140">
431
         <el-table-column label="操作" align="center" min-width="140">
507
               >
511
               >
508
             </el-radio-group>
512
             </el-radio-group>
509
           </el-form-item>
513
           </el-form-item>
510
-         
514
+
511
           <el-form-item label="转归(死亡)时间 :" prop="lapseto_time" required>
515
           <el-form-item label="转归(死亡)时间 :" prop="lapseto_time" required>
512
             <el-date-picker
516
             <el-date-picker
513
               v-model="lapsetoForm.lapseto_time"
517
               v-model="lapsetoForm.lapseto_time"
844
 
848
 
845
       },
849
       },
846
       handleSuccess({ results, header }) {
850
       handleSuccess({ results, header }) {
847
-       
851
+
848
         if (header != undefined && header.length > 0) {
852
         if (header != undefined && header.length > 0) {
849
           var isHasName = header.includes('*姓名')
853
           var isHasName = header.includes('*姓名')
850
           var isHasGender = header.includes('*性别')
854
           var isHasGender = header.includes('*性别')
860
           var isHasDryWeight = header.includes('干体重(kg)')
864
           var isHasDryWeight = header.includes('干体重(kg)')
861
           var isHasHeight = header.includes('身高(cm)')
865
           var isHasHeight = header.includes('身高(cm)')
862
           var isHasHomeAddress = header.includes('家庭住址')
866
           var isHasHomeAddress = header.includes('家庭住址')
863
-         
867
+
864
           if (!(isHasName && isHasGender && isHasPhone && isHasIdCard && isHasDate && isHasSource && isHasLapseto && isHasInfectious && isHasDiagnose && isHasDialysisNo && isHasDryWeight && isHasHeight && isHasHomeAddress)) {
868
           if (!(isHasName && isHasGender && isHasPhone && isHasIdCard && isHasDate && isHasSource && isHasLapseto && isHasInfectious && isHasDiagnose && isHasDialysisNo && isHasDryWeight && isHasHeight && isHasHomeAddress)) {
865
             this.dialogVisible = true
869
             this.dialogVisible = true
866
             return
870
             return
1070
                     }
1074
                     }
1071
                   }
1075
                   }
1072
                 }
1076
                 }
1073
-               
1077
+
1074
                 this.export_date.push(obj)
1078
                 this.export_date.push(obj)
1075
               }
1079
               }
1076
 
1080
 
1077
               let index = 0
1081
               let index = 0
1078
-             
1082
+
1079
               for (let i = 0; i < this.export_date.length; i++) {
1083
               for (let i = 0; i < this.export_date.length; i++) {
1080
                 if (this.export_date[i].dialysis_no == '') {
1084
                 if (this.export_date[i].dialysis_no == '') {
1081
                   let new_dialysis_no = this.max_dialysis_no + index
1085
                   let new_dialysis_no = this.max_dialysis_no + index
1167
                 'patients': this.export_date
1171
                 'patients': this.export_date
1168
               }
1172
               }
1169
               console.log("export2222",this.export_date)
1173
               console.log("export2222",this.export_date)
1170
-              
1174
+
1171
               postExportPatients(params).then(
1175
               postExportPatients(params).then(
1172
                 response => {
1176
                 response => {
1173
                   if (response.data.state === 1) {
1177
                   if (response.data.state === 1) {
1333
         return new Date(time).getTime() / 1000
1337
         return new Date(time).getTime() / 1000
1334
       },
1338
       },
1335
       search() {
1339
       search() {
1336
-        
1340
+
1337
         this.listQuery.keywords = this.searchKey
1341
         this.listQuery.keywords = this.searchKey
1338
         this.getList()
1342
         this.getList()
1339
       },
1343
       },
1341
         this.getList()
1345
         this.getList()
1342
       },
1346
       },
1343
       getList() {
1347
       getList() {
1344
-       
1348
+
1345
         fetchList(this.listQuery).then(response => {
1349
         fetchList(this.listQuery).then(response => {
1346
           if (response.data.state === 0) {
1350
           if (response.data.state === 0) {
1347
             this.$message.error(response.data.msg)
1351
             this.$message.error(response.data.msg)
1348
             return false
1352
             return false
1349
           } else {
1353
           } else {
1350
             this.tableData = response.data.data.patients
1354
             this.tableData = response.data.data.patients
1351
-           
1355
+
1352
             this.pageTotal = this.tableData.length
1356
             this.pageTotal = this.tableData.length
1353
             this.total = response.data.data.total
1357
             this.total = response.data.data.total
1354
-           
1358
+
1355
           }
1359
           }
1356
         })
1360
         })
1357
       },
1361
       },
1515
       },
1519
       },
1516
      toExport(){
1520
      toExport(){
1517
       import('@/vendor/Export2Excel').then(excel => {
1521
       import('@/vendor/Export2Excel').then(excel => {
1518
-      
1522
+
1519
         console.log("hhhh323223",this.tableData)
1523
         console.log("hhhh323223",this.tableData)
1520
         for(let i=0;i<this.tableData.length;i++){
1524
         for(let i=0;i<this.tableData.length;i++){
1521
           if(this.tableData[i].gender == 1){
1525
           if(this.tableData[i].gender == 1){
1554
              this.tableData[i].is_infectiouss = "阳性"
1558
              this.tableData[i].is_infectiouss = "阳性"
1555
           }
1559
           }
1556
         }
1560
         }
1557
-       
1561
+
1558
         const tHeader = ['姓名', '性别', '身份证号码','年龄','透析号','首次治疗时间','本人电话','患者来源','治疗状态','传染病']
1562
         const tHeader = ['姓名', '性别', '身份证号码','年龄','透析号','首次治疗时间','本人电话','患者来源','治疗状态','传染病']
1559
         const filterVal = ['name', 'genders', 'id_card_no','age_year','dialysis_no','first_dialysis_date','phone','sources','lapesetos','is_infectiouss']
1563
         const filterVal = ['name', 'genders', 'id_card_no','age_year','dialysis_no','first_dialysis_date','phone','sources','lapesetos','is_infectiouss']
1560
         console.log("table",this.tableData)
1564
         console.log("table",this.tableData)
1561
-      
1565
+
1562
         const data = this.formatJson(filterVal, this.tableData)
1566
         const data = this.formatJson(filterVal, this.tableData)
1563
         excel.export_json_to_excel({
1567
         excel.export_json_to_excel({
1564
           header: tHeader,
1568
           header: tHeader,