Browse Source

新分支

28169 1 year ago
parent
commit
2ce6e828e8

+ 86 - 23
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -525,8 +525,8 @@
525 525
         </div>
526 526
       </div>
527 527
       
528
-      <!-- <div style="margin-left: 1150px; margin-bottom: 10px;">
529
-        <el-button type="primary" size="small" @toClicK="toExport">导出</el-button>
528
+      <!-- <div style="margin-left: 1050px; margin-bottom: 10px;">
529
+        <el-button type="primary" size="small" @click="toExport">导出</el-button>
530 530
       </div> -->
531 531
 
532 532
       <el-table
@@ -1312,6 +1312,7 @@
1312 1312
 </template>
1313 1313
 
1314 1314
 <script>
1315
+import UploadExcel from '@/xt_pages/components/UploadExcel'
1315 1316
 import { getDataConfig } from "@/utils/data";
1316 1317
 import store from "@/store";
1317 1318
 import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
@@ -1320,8 +1321,12 @@ import BreadCrumb from "@/xt_pages/components/bread-crumb";
1320 1321
 import { getPrintTemplate } from "@/api/data";
1321 1322
 import { uParseTime } from '@/utils/tools'
1322 1323
 const moment = require('moment')
1324
+
1323 1325
 export default {
1324 1326
   name: "Patient",
1327
+  components: {
1328
+   UploadExcel,
1329
+ },
1325 1330
   data() {
1326 1331
     return {
1327 1332
       crumbs: [
@@ -2212,30 +2217,88 @@ export default {
2212 2217
     },
2213 2218
     toExport(){
2214 2219
       import('@/vendor/Export2Excel').then(excel => { 
2215
-         
2216
-         console.log("监测统计",this.SchedualPatientsTableData)
2217 2220
         
2218
-         const tHeader = ['序号','机号','规格','数量']
2219
-         const filterVal = ['index','advice_name','specification_name','total_count']
2220
-
2221
-         const data = this.formatJson(filterVal, this.tableList)
2222
-         excel.export_json_to_excel({
2223
-           header: tHeader,
2224
-           data,
2225
-           filename: '药品统计'
2226
-         })
2227
-           this.downloadLoading = false
2228
-         })  
2221
+         if(this.SchedualPatientsTableData!=null){
2222
+          for(let i=0;i<this.SchedualPatientsTableData.length;i++){
2223
+             this.SchedualPatientsTableData[i].index = i + 1
2224
+             this.SchedualPatientsTableData[i].start_time_one = ""
2225
+             this.SchedualPatientsTableData[i].start_time_two = ""
2226
+             this.SchedualPatientsTableData[i].start_time_three = ""
2227
+             this.SchedualPatientsTableData[i].start_time_four = ""
2228
+             this.SchedualPatientsTableData[i].start_time_five = ""
2229
+             this.SchedualPatientsTableData[i].start_time_six = ""
2230
+             this.SchedualPatientsTableData[i].start_time_seven = ""
2231
+             if(this.SchedualPatientsTableData[i].monitoring_record!=null&&this.SchedualPatientsTableData[i].monitoring_record.length>0){
2232
+             
2233
+              if(this.SchedualPatientsTableData[i].monitoring_record.length ==1){
2234
+                if(this.SchedualPatientsTableData[i].monitoring_record[0].operate_time!=undefined){
2235
+                this.SchedualPatientsTableData[i].start_time_one =this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[0].operate_time) 
2236
+               }
2237
+              }
2238
+              if(this.SchedualPatientsTableData[i].monitoring_record.length ==2){
2239
+                if(this.SchedualPatientsTableData[i].monitoring_record[1].operate_time!=undefined){
2240
+                this.SchedualPatientsTableData[i].start_time_two = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[1].operate_time)
2241
+               }
2242
+              }
2243
+
2244
+              if(this.SchedualPatientsTableData[i].monitoring_record.length==3){
2245
+                if(this.SchedualPatientsTableData[i].monitoring_record[2].operate_time!=undefined){
2246
+                 this.SchedualPatientsTableData[i].start_time_three = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[2].operate_time) 
2247
+               }   
2248
+              }
2249
+              
2250
+              if(this.SchedualPatientsTableData[i].monitoring_record.length ==4){
2251
+                if(this.SchedualPatientsTableData[i].monitoring_record[3].operate_time!=undefined){
2252
+                  this.SchedualPatientsTableData[i].start_time_four = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[3].operate_time)
2253
+                }
2254
+              }
2255
+            
2256
+              if(this.SchedualPatientsTableData[i].monitoring_record.length ==5){
2257
+                if(this.SchedualPatientsTableData[i].monitoring_record[4].operate_time!=undefined){
2258
+                  this.SchedualPatientsTableData[i].start_time_five = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[4].operate_time) 
2259
+                }
2260
+              }
2261
+              
2262
+              if(this.SchedualPatientsTableData[i].monitoring_record.length ==6){
2263
+                if(this.SchedualPatientsTableData[i].monitoring_record[5].operate_time!=undefined){
2264
+                this.SchedualPatientsTableData[i].start_time_six = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[5].operate_time) 
2265
+               }
2266
+              }
2267
+              if(this.SchedualPatientsTableData[i].monitoring_record.length == 7){
2268
+                if(this.SchedualPatientsTableData[i].monitoring_record[6].operate_time!=undefined){
2269
+                 this.SchedualPatientsTableData[i].start_time_seven = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[6].operate_time) 
2270
+               }
2271
+              }
2272
+           
2273
+            
2274
+             
2275
+            
2276
+             }
2277
+          }
2278
+          
2279
+         }
2280
+         console.log("监测统计",this.SchedualPatientsTableData)
2281
+         const multiHeader = [['序号','机号','排班日期','上机时间','透析号','姓名','透析模式','目标超滤量','透前血压','干体重','透前称重','透后称重','监测时间']]
2282
+         const header = ['','','','','','','','','','','','1','2','3','4','5','6','7']
2283
+         const merges = ['A1:A2', 'B1:B2', 'C1:C2', 'D1:D2', 'E1:E2','F1:F2','G1:G2','H1:H2', 'I1:I2','J1:J2','K1:K2','L1:L2','M1:S1']
2284
+          const filterVal = ['index', 'number', 'sch_time', 'start_time', 'dialysis_no', 'name', 'mode_name', 'target_ultrafiltration', 'pressure_name', 'dry_weight', 'dialysis_before_weight', 'dialysis_after_weight','start_time_one','start_time_one','start_time_one','start_time_one','start_time_one','start_time_one','start_time_one']
2285
+     
2286
+         const data = this.formatJson(filterVal, this.SchedualPatientsTableData) 
2287
+         const filename = '监测数据'
2288
+
2289
+         console.log("datawoowowow",data)
2290
+        excel.export_json_to_excel({
2291
+          multiHeader,
2292
+          header,
2293
+          merges,
2294
+          data,
2295
+          filename
2296
+        })
2297
+       })
2229 2298
     },
2230 2299
     formatJson(filterVal, jsonData) {
2231
-      return jsonData.map(v => filterVal.map(j => {
2232
-        if (j === 'timestamp') {
2233
-          return parseTime(v[j])
2234
-        } else {
2235
-          return v[j]
2236
-        }
2237
-      }))
2238
-    }
2300
+       return jsonData.map(v => filterVal.map(j => v[j]));
2301
+     },
2239 2302
   },
2240 2303
   components: {
2241 2304
     BreadCrumb

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrdersixtySeven.vue View File

@@ -324,7 +324,7 @@
324 324
                     srcset=""
325 325
                     v-else
326 326
                   />
327
-                 
327
+
328 328
                 </td>
329 329
               </tr>
330 330
             </table>
@@ -431,7 +431,7 @@
431 431
                             afterdialysis.additional_weight
432 432
                         ).toFixed(1)
433 433
                       : "/"
434
-                  }}
434
+                  }}kg
435 435
                 </td>
436 436
                 <td>实超:{{ afterdialysis.actual_ultrafiltration }}ml</td>
437 437
                 <td>实际治疗时长:
@@ -545,7 +545,7 @@
545 545
                 </td>
546 546
               </tr>
547 547
             </table>
548
-          
548
+
549 549
           </div>
550 550
         </div>
551 551
       </div>
@@ -1568,7 +1568,7 @@ export default {
1568 1568
   .table tr td{
1569 1569
     padding: 5px;
1570 1570
   }
1571
-  
1571
+
1572 1572
 
1573 1573
 }
1574 1574
 </style>

+ 4 - 4
src/xt_pages/user/components/PatientForm.vue View File

@@ -1668,11 +1668,11 @@ export default {
1668 1668
             if(this.form.patient_source >0){
1669 1669
               this.form.patient_source = parseInt(this.form.patient_source)
1670 1670
             }else{
1671
-              this.form.patient_source = 4
1671
+              this.form.patient_source = 1
1672 1672
             }
1673 1673
 
1674 1674
             if(this.form.patient_source == "NaN"){
1675
-              this.form.patient_source = 4
1675
+              this.form.patient_source = 1
1676 1676
             }
1677 1677
             
1678 1678
           
@@ -1719,11 +1719,11 @@ export default {
1719 1719
             if(this.form.patient_source >0){
1720 1720
               this.form.patient_source = parseInt(this.form.patient_source)
1721 1721
             }else{
1722
-              this.form.patient_source = 4
1722
+              this.form.patient_source = 1
1723 1723
             }
1724 1724
 
1725 1725
             if(this.form.patient_source == "NaN"){
1726
-              this.form.patient_source = 4
1726
+              this.form.patient_source = 1
1727 1727
             }
1728 1728
             console.log("form233322332w",this.form)
1729 1729
 

+ 2 - 2
src/xt_pages/workforce/appointment.vue View File

@@ -735,7 +735,6 @@ export default {
735 735
           '机号'
736 736
         ]
737 737
         if (this.export_type == 0) {
738
-
739 738
           const multiHeader = [['区号', '机号', '周一' + "(" + this.days[0] + ")", '', '', '周二' + "(" + this.days[1] + ")", '', '', '周三' + "(" + this.days[2] + ")", '', '', '周四' + "(" + this.days[3] + ")", '', '', '周五' + "(" + this.days[4] + ")", '', '', '周六' + "(" + this.days[5] + ")", '', '', '周日' + "(" + this.days[6] + ")", '', '', '周一' + "(" + this.days[7] + ")", '', '', '周二' + "(" + this.days[8] + ")", '', '', '周三' + "(" + this.days[9] + ")", '', '', '周四' + "(" + this.days[10] + ")", '', '', '周五' + "(" + this.days[11] + ")", '', '', '周六' + "(" + this.days[12] + ")", '', '', '周日' + "(" + this.days[13] + ")", '', '', '周一' + "(" + this.days[14] + ")", '', '', '周二' + "(" + this.days[15] + ")", '', '', '周三' + "(" + this.days[16] + ")", '', '', '周四' + "(" + this.days[17] + ")", '', '', '周五' + "(" + this.days[18] + ")", '', '', '周六' + "(" + this.days[19] + ")", '', '', '周日' + "(" + this.days[20] + ")", '', '']]
740 739
           const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
741 740
           const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
@@ -770,7 +769,8 @@ export default {
770 769
           })
771 770
 
772 771
           const filename = '排班模版'
773
-
772
+         
773
+          
774 774
           excel.export_json_to_excel({
775 775
             multiHeader,
776 776
             header,