Browse Source

新分支

28169 1 year ago
parent
commit
b32484ac31

+ 150 - 13
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -525,9 +525,9 @@
525 525
         </div>
526 526
       </div>
527 527
       
528
-      <!-- <div style="margin-left: 1050px; margin-bottom: 10px;">
528
+      <div style="margin-left: 1050px; margin-bottom: 10px;">
529 529
         <el-button type="primary" size="small" @click="toExport">导出</el-button>
530
-      </div> -->
530
+      </div>
531 531
 
532 532
       <el-table
533 533
         :row-style="{ color: '#303133' }"
@@ -2220,6 +2220,7 @@ export default {
2220 2220
         
2221 2221
          if(this.SchedualPatientsTableData!=null){
2222 2222
           for(let i=0;i<this.SchedualPatientsTableData.length;i++){
2223
+
2223 2224
              this.SchedualPatientsTableData[i].index = i + 1
2224 2225
              this.SchedualPatientsTableData[i].start_time_one = ""
2225 2226
              this.SchedualPatientsTableData[i].start_time_two = ""
@@ -2228,46 +2229,181 @@ export default {
2228 2229
              this.SchedualPatientsTableData[i].start_time_five = ""
2229 2230
              this.SchedualPatientsTableData[i].start_time_six = ""
2230 2231
              this.SchedualPatientsTableData[i].start_time_seven = ""
2232
+
2233
+             this.SchedualPatientsTableData[i].blood_press_one = ""
2234
+             this.SchedualPatientsTableData[i].blood_press_two = ""
2235
+             this.SchedualPatientsTableData[i].blood_press_three = ""
2236
+             this.SchedualPatientsTableData[i].blood_press_four = ""
2237
+             this.SchedualPatientsTableData[i].blood_press_five = ""
2238
+             this.SchedualPatientsTableData[i].blood_press_six = ""
2239
+             this.SchedualPatientsTableData[i].blood_press_seven = ""
2240
+
2241
+
2242
+             this.SchedualPatientsTableData[i].temperature_one = ""
2243
+             this.SchedualPatientsTableData[i].temperature_two = ""
2244
+             this.SchedualPatientsTableData[i].temperature_three = ""
2245
+             this.SchedualPatientsTableData[i].temperature_four = ""
2246
+             this.SchedualPatientsTableData[i].temperature_five = ""
2247
+             this.SchedualPatientsTableData[i].temperature_six = ""
2248
+             this.SchedualPatientsTableData[i].temperature_seven = ""
2249
+
2250
+             this.SchedualPatientsTableData[i].breathing_rate_one = ""
2251
+             this.SchedualPatientsTableData[i].breathing_rate_two = ""
2252
+             this.SchedualPatientsTableData[i].breathing_rate_three = ""
2253
+             this.SchedualPatientsTableData[i].breathing_rate_four = ""
2254
+             this.SchedualPatientsTableData[i].breathing_rate_five = ""
2255
+             this.SchedualPatientsTableData[i].breathing_rate_six = ""
2256
+             this.SchedualPatientsTableData[i].breathing_rate_seven = ""
2257
+
2258
+             this.SchedualPatientsTableData[i].pulse_frequency_one = ""
2259
+             this.SchedualPatientsTableData[i].pulse_frequency_two = ""
2260
+             this.SchedualPatientsTableData[i].pulse_frequency_three = ""
2261
+             this.SchedualPatientsTableData[i].pulse_frequency_four = ""
2262
+             this.SchedualPatientsTableData[i].pulse_frequency_five = ""
2263
+             this.SchedualPatientsTableData[i].pulse_frequency_six = ""
2264
+             this.SchedualPatientsTableData[i].pulse_frequency_seven = ""
2265
+
2266
+
2267
+
2268
+
2269
+
2231 2270
              if(this.SchedualPatientsTableData[i].monitoring_record!=null&&this.SchedualPatientsTableData[i].monitoring_record.length>0){
2232 2271
              
2233
-              if(this.SchedualPatientsTableData[i].monitoring_record.length ==1){
2272
+              if(this.SchedualPatientsTableData[i].monitoring_record.length >=1){
2234 2273
                 if(this.SchedualPatientsTableData[i].monitoring_record[0].operate_time!=undefined){
2235 2274
                 this.SchedualPatientsTableData[i].start_time_one =this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[0].operate_time) 
2236 2275
                }
2276
+               if(this.SchedualPatientsTableData[i].monitoring_record[0].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[0].diastolic_blood_pressure!=undefined ){
2277
+                this.SchedualPatientsTableData[i].blood_press_one = this.SchedualPatientsTableData[i].monitoring_record[0].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[0].diastolic_blood_pressure
2278
+               }
2279
+               if(this.SchedualPatientsTableData[i].monitoring_record[0].temperature!=undefined){
2280
+                this.SchedualPatientsTableData[i].temperature_one =   this.SchedualPatientsTableData[i].monitoring_record[0].temperature
2281
+               }
2282
+               if(this.SchedualPatientsTableData[i].monitoring_record[0].breathing_rate!=undefined){
2283
+                 this.SchedualPatientsTableData[i].breathing_rate_one = this.SchedualPatientsTableData[i].monitoring_record[0].breathing_rate
2284
+               }
2285
+
2286
+               if(this.SchedualPatientsTableData[i].monitoring_record[0].pulse_frequency!=undefined){
2287
+                this.SchedualPatientsTableData[i].pulse_frequency_one = this.SchedualPatientsTableData[i].monitoring_record[0].pulse_frequency
2288
+               }
2289
+               
2237 2290
               }
2238
-              if(this.SchedualPatientsTableData[i].monitoring_record.length ==2){
2291
+              if(this.SchedualPatientsTableData[i].monitoring_record.length >=2){
2239 2292
                 if(this.SchedualPatientsTableData[i].monitoring_record[1].operate_time!=undefined){
2240 2293
                 this.SchedualPatientsTableData[i].start_time_two = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[1].operate_time)
2241 2294
                }
2295
+               if(this.SchedualPatientsTableData[i].monitoring_record[1].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[1].diastolic_blood_pressure!=undefined ){
2296
+                this.SchedualPatientsTableData[i].blood_press_two = this.SchedualPatientsTableData[i].monitoring_record[1].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[1].diastolic_blood_pressure
2297
+               }
2298
+               if(this.SchedualPatientsTableData[i].monitoring_record[1].temperature!=undefined){
2299
+                this.SchedualPatientsTableData[i].temperature_two =   this.SchedualPatientsTableData[i].monitoring_record[1].temperature
2300
+               }
2301
+               if(this.SchedualPatientsTableData[i].monitoring_record[1].breathing_rate!=undefined){
2302
+                 this.SchedualPatientsTableData[i].breathing_rate_two = this.SchedualPatientsTableData[i].monitoring_record[1].breathing_rate
2303
+               }
2304
+               if(this.SchedualPatientsTableData[i].monitoring_record[1].pulse_frequency!=undefined){
2305
+                this.SchedualPatientsTableData[i].pulse_frequency_two = this.SchedualPatientsTableData[i].monitoring_record[1].pulse_frequency
2306
+               }
2242 2307
               }
2243 2308
 
2244
-              if(this.SchedualPatientsTableData[i].monitoring_record.length==3){
2309
+              if(this.SchedualPatientsTableData[i].monitoring_record.length>=3){
2245 2310
                 if(this.SchedualPatientsTableData[i].monitoring_record[2].operate_time!=undefined){
2246 2311
                  this.SchedualPatientsTableData[i].start_time_three = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[2].operate_time) 
2247 2312
                }   
2313
+               if(this.SchedualPatientsTableData[i].monitoring_record[2].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[2].diastolic_blood_pressure!=undefined ){
2314
+                this.SchedualPatientsTableData[i].blood_press_three = this.SchedualPatientsTableData[i].monitoring_record[2].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[2].diastolic_blood_pressure
2315
+               }
2316
+               if(this.SchedualPatientsTableData[i].monitoring_record[2].temperature!=undefined){
2317
+                this.SchedualPatientsTableData[i].temperature_three =   this.SchedualPatientsTableData[i].monitoring_record[2].temperature
2318
+               }
2319
+
2320
+               if(this.SchedualPatientsTableData[i].monitoring_record[2].breathing_rate!=undefined){
2321
+                 this.SchedualPatientsTableData[i].breathing_rate_three = this.SchedualPatientsTableData[i].monitoring_record[2].breathing_rate
2322
+               }
2323
+               if(this.SchedualPatientsTableData[i].monitoring_record[2].pulse_frequency!=undefined){
2324
+                this.SchedualPatientsTableData[i].pulse_frequency_three= this.SchedualPatientsTableData[i].monitoring_record[2].pulse_frequency
2325
+               }
2248 2326
               }
2249 2327
               
2250
-              if(this.SchedualPatientsTableData[i].monitoring_record.length ==4){
2328
+              if(this.SchedualPatientsTableData[i].monitoring_record.length >=4){
2251 2329
                 if(this.SchedualPatientsTableData[i].monitoring_record[3].operate_time!=undefined){
2252 2330
                   this.SchedualPatientsTableData[i].start_time_four = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[3].operate_time)
2253 2331
                 }
2332
+                if(this.SchedualPatientsTableData[i].monitoring_record[3].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[3].diastolic_blood_pressure!=undefined ){
2333
+                this.SchedualPatientsTableData[i].blood_press_four = this.SchedualPatientsTableData[i].monitoring_record[3].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[3].diastolic_blood_pressure
2334
+               }
2335
+               if(this.SchedualPatientsTableData[i].monitoring_record[3].temperature!=undefined){
2336
+                this.SchedualPatientsTableData[i].temperature_four = this.SchedualPatientsTableData[i].monitoring_record[3].temperature
2337
+               }
2338
+
2339
+               if(this.SchedualPatientsTableData[i].monitoring_record[3].breathing_rate!=undefined){
2340
+                 this.SchedualPatientsTableData[i].breathing_rate_four = this.SchedualPatientsTableData[i].monitoring_record[3].breathing_rate
2341
+               }
2342
+               if(this.SchedualPatientsTableData[i].monitoring_record[3].pulse_frequency!=undefined){
2343
+                this.SchedualPatientsTableData[i].pulse_frequency_four= this.SchedualPatientsTableData[i].monitoring_record[3].pulse_frequency
2344
+               }
2254 2345
               }
2255 2346
             
2256
-              if(this.SchedualPatientsTableData[i].monitoring_record.length ==5){
2347
+              if(this.SchedualPatientsTableData[i].monitoring_record.length >=5){
2257 2348
                 if(this.SchedualPatientsTableData[i].monitoring_record[4].operate_time!=undefined){
2258 2349
                   this.SchedualPatientsTableData[i].start_time_five = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[4].operate_time) 
2259 2350
                 }
2351
+                if(this.SchedualPatientsTableData[i].monitoring_record[4].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[4].diastolic_blood_pressure!=undefined ){
2352
+                this.SchedualPatientsTableData[i].blood_press_five = this.SchedualPatientsTableData[i].monitoring_record[4].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[4].diastolic_blood_pressure
2353
+               }
2354
+               if(this.SchedualPatientsTableData[i].monitoring_record[4].temperature!=undefined){
2355
+                this.SchedualPatientsTableData[i].temperature_five =   this.SchedualPatientsTableData[i].monitoring_record[4].temperature
2356
+               }
2357
+
2358
+               if(this.SchedualPatientsTableData[i].monitoring_record[4].breathing_rate!=undefined){
2359
+                 this.SchedualPatientsTableData[i].breathing_rate_five = this.SchedualPatientsTableData[i].monitoring_record[4].breathing_rate
2360
+               }
2361
+
2362
+               if(this.SchedualPatientsTableData[i].monitoring_record[4].pulse_frequency!=undefined){
2363
+                this.SchedualPatientsTableData[i].pulse_frequency_five= this.SchedualPatientsTableData[i].monitoring_record[4].pulse_frequency
2364
+               }
2260 2365
               }
2261 2366
               
2262
-              if(this.SchedualPatientsTableData[i].monitoring_record.length ==6){
2367
+              if(this.SchedualPatientsTableData[i].monitoring_record.length >=6){
2263 2368
                 if(this.SchedualPatientsTableData[i].monitoring_record[5].operate_time!=undefined){
2264 2369
                 this.SchedualPatientsTableData[i].start_time_six = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[5].operate_time) 
2265 2370
                }
2371
+               if(this.SchedualPatientsTableData[i].monitoring_record[5].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[5].diastolic_blood_pressure!=undefined ){
2372
+                this.SchedualPatientsTableData[i].blood_press_six = this.SchedualPatientsTableData[i].monitoring_record[5].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[5].diastolic_blood_pressure
2373
+               }
2374
+
2375
+               if(this.SchedualPatientsTableData[i].monitoring_record[5].temperature!=undefined){
2376
+                this.SchedualPatientsTableData[i].temperature_six =   this.SchedualPatientsTableData[i].monitoring_record[5].temperature
2377
+               }
2378
+
2379
+               if(this.SchedualPatientsTableData[i].monitoring_record[5].breathing_rate!=undefined){
2380
+                 this.SchedualPatientsTableData[i].breathing_rate_six = this.SchedualPatientsTableData[i].monitoring_record[5].breathing_rate
2381
+               }
2382
+
2383
+               if(this.SchedualPatientsTableData[i].monitoring_record[5].pulse_frequency!=undefined){
2384
+                this.SchedualPatientsTableData[i].pulse_frequency_six= this.SchedualPatientsTableData[i].monitoring_record[5].pulse_frequency
2385
+               }
2386
+
2387
+
2266 2388
               }
2267
-              if(this.SchedualPatientsTableData[i].monitoring_record.length == 7){
2389
+              if(this.SchedualPatientsTableData[i].monitoring_record.length >= 7){
2268 2390
                 if(this.SchedualPatientsTableData[i].monitoring_record[6].operate_time!=undefined){
2269 2391
                  this.SchedualPatientsTableData[i].start_time_seven = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[6].operate_time) 
2270 2392
                }
2393
+               if(this.SchedualPatientsTableData[i].monitoring_record[6].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[6].diastolic_blood_pressure!=undefined ){
2394
+                this.SchedualPatientsTableData[i].blood_press_seven = this.SchedualPatientsTableData[i].monitoring_record[6].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[6].diastolic_blood_pressure
2395
+               }
2396
+               if(this.SchedualPatientsTableData[i].monitoring_record[6].temperature!=undefined){
2397
+                this.SchedualPatientsTableData[i].temperature_seven =   this.SchedualPatientsTableData[i].monitoring_record[6].temperature
2398
+               }
2399
+
2400
+               if(this.SchedualPatientsTableData[i].monitoring_record[6].breathing_rate!=undefined){
2401
+                 this.SchedualPatientsTableData[i].breathing_rate_seven = this.SchedualPatientsTableData[i].monitoring_record[6].breathing_rate
2402
+               }
2403
+
2404
+               if(this.SchedualPatientsTableData[i].monitoring_record[6].pulse_frequency!=undefined){
2405
+                this.SchedualPatientsTableData[i].pulse_frequency_seven= this.SchedualPatientsTableData[i].monitoring_record[6].pulse_frequency
2406
+               }
2271 2407
               }
2272 2408
            
2273 2409
             
@@ -2278,10 +2414,11 @@ export default {
2278 2414
           
2279 2415
          }
2280 2416
          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']
2417
+        
2418
+         const multiHeader = [['序号','机号','排班日期','上机时间','透析号','姓名','透析模式','目标超滤量','透前血压','干体重','透前称重','透后称重','监测时间','','','','','','','透中血压','','','','','','','体温','','','','','','','呼吸','','','','','','','脉搏','','','','','','']]
2419
+         const header = ['','','','','','','','','','','','','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次',]
2420
+         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','T1:Z1','AA1:AG1','AH1:AN1','AO1:AU1']
2421
+        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_two','start_time_three','start_time_four','start_time_five','start_time_six','start_time_seven','blood_press_one','blood_press_two','blood_press_three','blood_press_four','blood_press_five','blood_press_six','blood_press_seven','temperature_one','temperature_two','temperature_three','temperature_four','temperature_five','temperature_six','temperature_seven','breathing_rate_one','breathing_rate_two','breathing_rate_three','breathing_rate_four','breathing_rate_five','breathing_rate_six','breathing_rate_seven','pulse_frequency_one','pulse_frequency_two','pulse_frequency_three','pulse_frequency_four','pulse_frequency_five','pulse_frequency_six','pulse_frequency_seven']
2285 2422
      
2286 2423
          const data = this.formatJson(filterVal, this.SchedualPatientsTableData) 
2287 2424
          const filename = '监测数据'

+ 1 - 1
src/xt_pages/outpatientTool/components/detailStatistics.vue View File

@@ -48,7 +48,7 @@
48 48
         </el-date-picker>
49 49
         <el-button type="primary" size="small" @click="toPrint">打印</el-button>
50 50
 
51
-        <el-button type="primary" size="small" @click="toExport">导出</el-button>
51
+        <!-- <el-button type="primary" size="small" @click="toExport">导出</el-button> -->
52 52
 
53 53
       </div>
54 54
       <div></div>

+ 21 - 3
src/xt_pages/role/admin.vue View File

@@ -57,15 +57,24 @@
57 57
           size="small"
58 58
           icon="el-icon-circle-plus-outline"
59 59
           style="float:left"
60
-          @click="toTestThree">创建合同</el-button> -->
60
+          @click="toTestThree">创建合同</el-button>
61 61
 
62
-          <!-- <el-button
62
+          <el-button
63 63
           type="primary"
64 64
           size="small"
65 65
           icon="el-icon-circle-plus-outline"
66 66
           style="float:left"
67 67
           @click="toTestSeven">添加合同签署人</el-button> -->
68 68
 
69
+         
70
+         <!-- <el-button
71
+          type="primary"
72
+          size="small"
73
+          icon="el-icon-circle-plus-outline"
74
+          style="float:left"
75
+          @click="toTestNight">后台签署</el-button> -->
76
+          
77
+
69 78
           <!-- <el-button   type="primary"
70 79
           size="small"
71 80
           icon="el-icon-circle-plus-outline"
@@ -227,7 +236,7 @@
227 236
 </template>
228 237
 
229 238
 <script>
230
-import { adminMainView, getAdmins, setAdminStatus,toSign,toTestOne,toTestTwo,toTestThree,toTestFour,toTestFive,toTestSeven,toTestEight } from "@/api/role/admin";
239
+import { adminMainView, getAdmins, setAdminStatus,toSign,toTestOne,toTestTwo,toTestThree,toTestFour,toTestFive,toTestSeven,toTestEight,toTestNight } from "@/api/role/admin";
231 240
 import { getRoles } from "@/api/role/role";
232 241
 
233 242
 import { parseTime } from "@/utils";
@@ -581,6 +590,15 @@ export default {
581 590
            this.$message.success("保存")
582 591
         }
583 592
       })
593
+    },
594
+    toTestNight(){
595
+      toTestNight().then(response=>{
596
+        if(response.data.state == 1){
597
+          var sign =  response.data.data.sign
598
+          console.log("sign",sign)
599
+          this.$message.success("保存")
600
+        }
601
+      })
584 602
     }
585 603
   },
586 604
   watch: {