Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 6 months ago
parent
commit
f2d2e98828

+ 177 - 0
src/xt_pages/qcd/treatmentControlAnalysis/components/TimeAll.vue View File

@@ -53,6 +53,7 @@
53 53
     </div>
54 54
     <div class="tableTitle">统计表</div>
55 55
     <div>
56
+      <el-button @click="exportList" type="primary">导出</el-button>
56 57
       <el-table :data="tableData" border style="width: 100%" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
57 58
         <el-table-column
58 59
           fixed
@@ -220,6 +221,182 @@ export default {
220 221
     };
221 222
   },
222 223
   methods: {
224
+    exportList(){
225
+       console.log("DialysisData",this.tableData)
226
+       console.log("activeModes",this.activeModes)
227
+
228
+       if(this.tableData!=null && this.tableData.length>0){
229
+         for(let i=0;i<this.tableData.length;i++){
230
+            this.tableData[i].index = i +1
231
+          for(let j=0;j<this.activeModes.length;j++){
232
+           
233
+            if(this.activeModes[j].id == 1){
234
+               
235
+               this.tableData[i].mode_id_1 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
236
+            }
237
+            if(this.activeModes[j].id == 2){
238
+               this.tableData[i].mode_id_2 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
239
+            }
240
+            if(this.activeModes[j].id == 3){
241
+               this.tableData[i].mode_id_3 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
242
+            }
243
+            if(this.activeModes[j].id == 4){
244
+               this.tableData[i].mode_id_4 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
245
+            }
246
+            if(this.activeModes[j].id == 5){
247
+               this.tableData[i].mode_id_5 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
248
+            }
249
+            if(this.activeModes[j].id == 6){
250
+               this.tableData[i].mode_id_6 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
251
+            }
252
+            if(this.activeModes[j].id == 7){
253
+               this.tableData[i].mode_id_7 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
254
+            }
255
+            if(this.activeModes[j].id == 8){
256
+               this.tableData[i].mode_id_8 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
257
+            }
258
+            if(this.activeModes[j].id == 9){
259
+               this.tableData[i].mode_id_9 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
260
+            }
261
+
262
+            if(this.activeModes[j].id == 10){
263
+               this.tableData[i].mode_id_10 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
264
+            }
265
+
266
+            if(this.activeModes[j].id == 11){
267
+               this.tableData[i].mode_id_11 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
268
+            }
269
+            if(this.activeModes[j].id == 12){
270
+               this.tableData[i].mode_id_12 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
271
+            }
272
+            if(this.activeModes[j].id == 13){
273
+               this.tableData[i].mode_id_13 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
274
+            }
275
+
276
+            if(this.activeModes[j].id == 14){
277
+               this.tableData[i].mode_id_14 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
278
+            }
279
+
280
+            if(this.activeModes[j].id == 15){
281
+               this.tableData[i].mode_id_15 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
282
+            }
283
+
284
+            if(this.activeModes[j].id == 16){
285
+               this.tableData[i].mode_id_16 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
286
+            }
287
+            if(this.activeModes[j].id == 17){
288
+               this.tableData[i].mode_id_17 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
289
+            }
290
+            if(this.activeModes[j].id == 18){
291
+               this.tableData[i].mode_id_18 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
292
+            }
293
+
294
+            if(this.activeModes[j].id == 19){
295
+               this.tableData[i].mode_id_19 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
296
+            }
297
+
298
+            if(this.activeModes[j].id == 20){
299
+               this.tableData[i].mode_id_20 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
300
+            }
301
+            if(this.activeModes[j].id == 21){
302
+               this.tableData[i].mode_id_21 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
303
+            }
304
+            if(this.activeModes[j].id == 22){
305
+               this.tableData[i].mode_id_22 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
306
+            }
307
+
308
+            if(this.activeModes[j].id == 23){
309
+               this.tableData[i].mode_id_23 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
310
+            }
311
+            if(this.activeModes[j].id == 24){
312
+               this.tableData[i].mode_id_24 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
313
+            }
314
+            if(this.activeModes[j].id == 25){
315
+               this.tableData[i].mode_id_25 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
316
+            }
317
+
318
+            if(this.activeModes[j].id == 26){
319
+               this.tableData[i].mode_id_26 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
320
+            }
321
+            if(this.activeModes[j].id == 27){
322
+               this.tableData[i].mode_id_27 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
323
+            }
324
+            if(this.activeModes[j].id == 28){
325
+               this.tableData[i].mode_id_28 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
326
+            }
327
+
328
+            if(this.activeModes[j].id == 29){
329
+               this.tableData[i].mode_id_29 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
330
+            }
331
+            if(this.activeModes[j].id == 30){
332
+               this.tableData[i].mode_id_30 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
333
+            }
334
+            if(this.activeModes[j].id == 31){
335
+               this.tableData[i].mode_id_31 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
336
+            }
337
+
338
+            if(this.activeModes[j].id == 32){
339
+               this.tableData[i].mode_id_32 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
340
+            }
341
+            if(this.activeModes[j].id == 33){
342
+               this.tableData[i].mode_id_33 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
343
+            }
344
+            if(this.activeModes[j].id == 34){
345
+               this.tableData[i].mode_id_34 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
346
+            }
347
+
348
+            if(this.activeModes[j].id == 35){
349
+               this.tableData[i].mode_id_35 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
350
+            }
351
+            if(this.activeModes[j].id == 36){
352
+               this.tableData[i].mode_id_36 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
353
+            }
354
+            if(this.activeModes[j].id == 37){
355
+               this.tableData[i].mode_id_37 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
356
+            }
357
+
358
+            if(this.activeModes[j].id == 38){
359
+               this.tableData[i].mode_id_38 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
360
+            }
361
+            if(this.activeModes[j].id == 39){
362
+               this.tableData[i].mode_id_39 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
363
+            }
364
+            if(this.activeModes[j].id == 40){
365
+               this.tableData[i].mode_id_40 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
366
+            }
367
+            if(this.activeModes[j].id == 41){
368
+               this.tableData[i].mode_id_41 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
369
+            }
370
+
371
+            if(this.activeModes[j].id == 42){
372
+               this.tableData[i].mode_id_42 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
373
+            }
374
+            if(this.activeModes[j].id == 43){
375
+               this.tableData[i].mode_id_43 = this.tableData[i].data[this.activeModes[j].id].number?this.tableData[i].data[this.activeModes[j].id].number:""
376
+            }
377
+          
378
+            // this.tableData[i].HD =  ""
379
+            // this.tableData[i].HDF =  ""
380
+            // this.tableData[i].HD+HP =  "
381
+          }
382
+         }
383
+       }
384
+       console.log("tabledate==============",this.tableData)
385
+      
386
+       import('@/vendor/Export2Excel').then(excel => {
387
+        const tHeader = ['序号','日期','HD','HDF','HD+HP','HP','HF','SCUF','IUF','HFHD','HFHD+HP','HFR','HDF+HP','CRRT','腹水回输','IUF+HD','UF','HD+','I-HDF','HD高通','CVVH','CVVHD','CVVHDF','PE','血浆胆红素吸附+HP','HPD','HDP','PHF','HDF100','HDF600','HDF800','HDF1000','HDF80','HF16','HD无肝素','HDF17H','总数']
388
+        const filterVal = ['index','date','mode_id_1','mode_id_2','mode_id_3','mode_id_4','mode_id_5','mode_id_6','mode_id_7','mode_id_8','mode_id_9','mode_id_10','mode_id_11','mode_id_12','mode_id_13','mode_id_14','mode_id_15','mode_id_16','mode_id_17','mode_id_18','mode_id_19','mode_id_20','mode_id_21','mode_id_22','mode_id_23','mode_id_24','mode_id_25','mode_id_26','mode_id_27','mode_id_28','mode_id_29','mode_id_30','mode_id_31','mode_id_32','mode_id_33','mode_id_34','mode_id_35','mode_id_36','mode_id_37','mode_id_38','mode_id_39','mode_id_40','mode_id_41','mode_id_42','mode_id_43']
389
+
390
+        const data = this.formatJson(filterVal, this.DialysisData)
391
+
392
+        excel.export_json_to_excel({
393
+           header: tHeader,
394
+           data,
395
+           filename: '透析详情'
396
+         })
397
+          this.downloadLoading = false
398
+        })
399
+      },
223 400
     changeTime(val) {
224 401
       var time = this.getTimestamp(val) - this.getTimestamp(this.listQuery.end_time);
225 402
       if (time > 0) {

+ 1 - 1
src/xt_pages/user/components/PatientSidebar.vue View File

@@ -418,7 +418,7 @@ export default {
418 418
     getList() {
419 419
       fetchAllList().then(response => {
420 420
         if (response.data.state == 1) {
421
-          if(this.org_id ==10191 || this.org_id == 0){
421
+          if(this.org_id ==10191){
422 422
              var patients = response.data.data.patients
423 423
             //  console.log("patients",patients)
424 424
              for(let i=0;i<patients.length;i++){

+ 11 - 1
src/xt_pages/user/inspection.vue View File

@@ -1328,9 +1328,11 @@ export default {
1328 1328
                 item[key] = items[index][key]
1329 1329
               }
1330 1330
               
1331
+              console.log("item=-----------------",item)
1331 1332
               if (item.item_id > 0) {
1333
+                
1332 1334
                 if (typeof(inspectionsMap[parseInt(items[index].item_id)])  == "undefined") {
1333
-                  if(this.org_id == 10121 || this.org_id ==10138 || this.org_id == 0 || this.org_id ==10278 || this.org_id == 10702 || this.org_id == 10191){
1335
+                  if(this.org_id == 10121 || this.org_id ==10138 || this.org_id ==10278 || this.org_id == 10702){
1334 1336
                     item.value = inspectionsMap[items[index].id].inspect_value
1335 1337
                     item.item_name = inspectionsMap[items[index].id].item_name
1336 1338
                   }else{
@@ -1341,6 +1343,14 @@ export default {
1341 1343
                   item.value = inspectionsMap[items[index].item_id].inspect_value
1342 1344
                   item.item_name = inspectionsMap[items[index].item_id].item_name
1343 1345
                 }
1346
+
1347
+                if(this.org_id == 0 || this.org_id ==10191){
1348
+                  if(item.project_name == "乙肝定性(五项)"){
1349
+                    console.log("金阿迪发到付阿打发")
1350
+                    item.value = inspectionsMap[items[index].id].inspect_value
1351
+                    item.item_name = inspectionsMap[items[index].id].item_name
1352
+                  }
1353
+                }
1344 1354
               } else {
1345 1355
                 if(typeof(inspectionsMap[parseInt(items[index].id)])  == "undefined"){
1346 1356
                   continue