瀏覽代碼

bug修改

XMLWAN 4 年之前
父節點
當前提交
7457fce8c6

+ 3 - 13
src/api/patient.js 查看文件

@@ -36,7 +36,6 @@ export function createPatient(patient) {
36 36
   })
37 37
 }
38 38
 export function editPatient(id, patient) {
39
-  console.log('patient', patient)
40 39
   return request({
41 40
     url: '/api/patients/edit?id=' + id + '&record_date=' + patient.record_date + '&is_infectious=' + patient.is_infectious + '&remind_cycle=' + patient.remind_cycle,
42 41
     method: 'put',
@@ -238,6 +237,7 @@ export function deleteRescueRecords(patient_id, ids_str) {
238 237
 }
239 238
 
240 239
 export function EditLapseto(patient_id, data) {
240
+  console.log('data', data)
241 241
   return request({
242 242
     url: '/api/patients/lapseto/edit?id=' + patient_id,
243 243
     method: 'post',
@@ -345,28 +345,18 @@ export function getAllData(id, page, limit) {
345 345
   })
346 346
 }
347 347
 
348
-
349 348
 export function postExportPatients(params) {
350 349
   return request({
351 350
     url: '/api/patients/export',
352 351
     method: 'Post',
353
-    data: params,
352
+    data: params
354 353
   })
355 354
 }
356 355
 
357
-
358
-
359 356
 export function getMaxDialysisNo() {
360 357
   return request({
361 358
     url: '/api/patients/dialysis_no',
362
-    method: 'Get',
359
+    method: 'Get'
363 360
   })
364 361
 }
365 362
 
366
-
367
-
368
-
369
-
370
-
371
-
372
-

+ 27 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

@@ -170,6 +170,7 @@
170 170
           >打印</el-button
171 171
         >
172 172
       </template>
173
+
173 174
       
174 175
     </div>
175 176
     <div class="app-container ">
@@ -264,6 +265,14 @@
264 265
         v-bind:childResponse="childResponse"
265 266
         v-if="org_template_info.template_id == 16"
266 267
       ></DialysisPrintOrderSixteen>
268
+      <DialysisPrintOrderSeventeen
269
+         v-bind:childResponse="childResponse"
270
+         v-if="org_template_info.template_id == 17"
271
+      ></DialysisPrintOrderSeventeen>
272
+      <DialysisPrintOrderEighteen
273
+            v-bind:childResponse="childResponse"
274
+            v-if="org_template_info.template_id == 18"
275
+      ></DialysisPrintOrderEighteen>
267 276
     </div>
268 277
   </div>
269 278
 </template>
@@ -290,6 +299,8 @@ import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
290 299
 import DialysisPrintOrderThirteen from "./template/DialysisPrintOrderThirteen";
291 300
 import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
292 301
 import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
302
+import DialysisPrintOrderSeventeen from "./template/DialysisPrintOrderSeventeen";
303
+import DialysisPrintOrderEighteen from "./template/DialysisPrintOrderEighteen";
293 304
 export default {
294 305
   name: "dialysisPrintOrder",
295 306
   components: {
@@ -308,6 +319,8 @@ export default {
308 319
     DialysisPrintOrderEight,
309 320
     DialysisPrintOrderNine,
310 321
     DialysisPrintOrderSixteen,
322
+    DialysisPrintOrderSeventeen,
323
+    DialysisPrintOrderEighteen,
311 324
     LabelBox,
312 325
     BreadCrumb
313 326
   },
@@ -544,6 +557,20 @@ export default {
544 557
           style: style,
545 558
           scanStyles: false
546 559
         });
560
+      }else if (this.org_template_info.template_id == 17) {
561
+        printJS({
562
+          printable: "dialysis-print-box",
563
+          type: "html",
564
+          style: style,
565
+          scanStyles: false
566
+        });
567
+      }else if (this.org_template_info.template_id == 18) {
568
+        printJS({
569
+          printable: "dialysis-print-box",
570
+          type: "html",
571
+          style: style,
572
+          scanStyles: false
573
+        });
547 574
       }
548 575
     },
549 576
     printThisOnePage() {

+ 4 - 1
src/xt_pages/qcd/indicatorControlAnalysis/components/office.vue 查看文件

@@ -303,6 +303,7 @@
303 303
         }
304 304
         this.item_columns = item_inspection_reference
305 305
         var projectInfo = this.getPojectInfo(this.item_columns[0].project_id, this.item_columns[0].id)
306
+        console.log("projectInfo",projectInfo)
306 307
         this.query.project_id = projectInfo.project_id
307 308
         this.query.item_id = projectInfo.id
308 309
         this.item_name = projectInfo.item_name
@@ -332,7 +333,7 @@
332 333
               let project = []
333 334
               let item = []
334 335
               this.all_inspection_reference = resp.data.references
335
-
336
+               console.log("====",this.all_inspection_reference)
336 337
               for (let i = 0; i < this.all_inspection_reference.length; i++) {
337 338
                 project.push(this.all_inspection_reference[i])
338 339
               }
@@ -350,6 +351,7 @@
350 351
                   item.push(this.all_inspection_reference[i])
351 352
                 }
352 353
               }
354
+             console.log("item",item)
353 355
               this.item_columns = item
354 356
               this.item_name = item[0].item_name
355 357
 
@@ -468,6 +470,7 @@
468 470
         GetInspectionIndexTable(params)
469 471
           .then(rs => {
470 472
             var resp = rs.data
473
+            console.log("resp",resp)
471 474
             if (resp.state == 1) {
472 475
               this.tableData = []
473 476
               for (let i = 0; i < resp.data.data.length; i++) {

+ 5 - 3
src/xt_pages/qcd/officesControlAnalysis/time.vue 查看文件

@@ -568,7 +568,8 @@ export default {
568 568
       getFirstQuarter(params).then(response=>{
569 569
          if(response.data.state === 1){
570 570
             var count =  response.data.data.count
571
-
571
+            console.log("count",count)  
572
+            //获取已经配置的数据 
572 573
             var arr=[]
573 574
             for(let i=0;i<count.length;i++){  
574 575
                for(let j=0;j<this.normData.length;j++){
@@ -577,7 +578,8 @@ export default {
577 578
                 }
578 579
               }
579 580
             }
580
-        
581
+           console.log("arr",arr )
582
+           
581 583
             var arrtwo =  this.arrayDate(count,this.normData)
582 584
             for(let i=0;i<arrtwo.length;i++){
583 585
                 this.$set(arrtwo[i], 'Count', 0)
@@ -588,7 +590,7 @@ export default {
588 590
             arrtwo.map(item => {
589 591
               arr.push(item)
590 592
             })
591
-            arr.sort(this.compare('sort'))    
593
+            // arr.sort(this.compare('sort'))    
592 594
             for(const key in this.normData ){
593 595
                this.modesData.xAxis.push(this.normData[key].item_name);
594 596
                 if(key in arr){

+ 147 - 101
src/xt_pages/qcd/patientControlAnalysis.vue 查看文件

@@ -150,7 +150,7 @@ export default {
150 150
         start_time: "",
151 151
         end_time: "",
152 152
         page: 1,
153
-        limit: 10
153
+        limit: 20
154 154
       },
155 155
       total:0,
156 156
       lapstor:0,
@@ -328,7 +328,7 @@ export default {
328 328
            this.newArr = a
329 329
            var arr = this.arrayToObj(a)
330 330
 
331
-         // console.log("娃哈哈",arr)
331
+          console.log("娃哈哈",arr)
332 332
            this.ObjectData = arr
333 333
 
334 334
 
@@ -445,119 +445,165 @@ export default {
445 445
       getPatientsControl(this.lapstor,this.listQuery.start_time,this.listQuery.end_time,this.listQuery.page,this.listQuery.limit).then(response=>{
446 446
          if(response.data.state == 1){
447 447
            var patients = response.data.data.patients
448
-             this.tablePatients = patients
449
-             var total =  response.data.data.total
450
-             // console.log("total",total)
451
-             this.total = total
452
-             var control = response.data.data.control
453
-
454
-
455
-             // console.log("control",control)
456
-             var newArr = []
457
-             //分页
458
-             for(let i=0;i<control.length;i++){
459
-             for(let j=0;j<patients.length;j++){
460
-                if(control[i].patient_id == patients[j].patient_id){
461
-                   newArr.push(control[i])
448
+            // console.log("patients",patients)
449
+            this.tablePatients = patients
450
+            var total = response.data.data.total
451
+            this.total = total
452
+            var control = response.data.data.control
453
+            // console.log("control",control)
454
+            var newArr = []
455
+            // 分页
456
+            for (let i = 0; i < control.length; i++) {
457
+              for (let j = 0; j < patients.length; j++) {
458
+                if (control[i].inspect_date == patients[j].inspect_date) {
459
+                  newArr.push(control[i])
462 460
                 }
463
-             }
464
-           }
465
-        // console.log("newArr",newArr)
461
+              }
462
+            }
463
+          // console.log("newArr",newArr)
466 464
           let dataInfo = {}
467 465
           newArr.forEach((item, index) => {
468
-            let { patient_id } = item
469
-            if (!dataInfo[patient_id]) {
470
-              dataInfo[patient_id] = {
471
-                patient_id,
472
-                name:item.name,
466
+            let { inspect_date } = item
467
+            if (!dataInfo[inspect_date]) {
468
+              dataInfo[inspect_date] = {
469
+                inspect_date,
470
+                name: item.name,
473 471
                 child: [],
474
-                inspect_date:item.inspect_date
475
-
472
+                patient_id: item.patient_id
476 473
               }
477 474
             }
478 475
           })
476
+        let list = Object.values(dataInfo)
477
+        
479 478
 
480
-          let list = Object.values(dataInfo)
481
-          list.map(item => {
479
+         list.map(item => {
482 480
             for (let i = 0; i < newArr.length; i++) {
483
-               if (item.inspect_date == newArr[i].inspect_date && item.patient_id == newArr[i].patient_id) {
484
-                   item.child.push(newArr[i])
485
-                }
481
+              if (item.inspect_date == newArr[i].inspect_date) {
482
+                item.child.push(newArr[i])
486 483
               }
484
+            }
485
+          })
486
+        //  console.log("list",list)  
487
+         var newarrtwo = []
488
+          list.map(item => {
489
+            item.child.map(it => {
490
+              newarrtwo.push(it)
487 491
             })
488
-          //console.log("list",list)
489
-
490
-          var  newarrtwo = []
491
-          list.map(item=>{
492
-              item.child.map(it=>{
493
-                 newarrtwo.push(it)
494
-              })
495 492
           })
496
-       // console.log("多少条",newarrtwo)
497
-
498
-        //配置的才显示
499
-
500
-        var arrthree = []
501
-        for(let i=0;i<newarrtwo.length;i++){
502
-           for(let j=0;j<this.normData.length;j++){
503
-              if(newarrtwo[i].item_id == this.normData[j].inspection_minor){
504
-                 arrthree.push(newarrtwo[i])
493
+        //  console.log("newarrtwo",newarrtwo)
494
+          // 配置的才显示
495
+         var arrthree = []
496
+          for (let i = 0; i < newarrtwo.length; i++) {
497
+            for (let j = 0; j < this.normData.length; j++) {
498
+              if (newarrtwo[i].item_id == this.normData[j].inspection_minor) {
499
+                arrthree.push(newarrtwo[i])
505 500
               }
506
-           }
507
-        }
508
-        // console.log("arrthree",arrthree)
509
-
510
-       var arrfour =  this.arrayDate(arrthree,newarrtwo)
511
-       // console.log("arrfour",arrfour)
512
-         arrfour.map(item=>{
513
-           item.item_name = ""
514
-           arrthree.push(item)
515
-         })
516
-
517
-          var dd = {};
518
-           for (const index in arrthree) {
519
-           if (!(arrthree[index].name in dd)) {
520
-              dd[arrthree[index].name] = {};
521 501
             }
522
-             if (!(arrthree[index].item_name in dd[arrthree[index].name]) && arrthree[index].item_name != 0) {
523
-               dd[arrthree[index].name][arrthree[index].item_name] = arrthree[index];
502
+          }
503
+          // console.log("arrthree",arrthree)
504
+          var arrfour = this.arrayDate(arrthree, newarrtwo)
505
+          // console.log("arrfour",arrfour)
506
+          arrfour.map(item => {
507
+            item.item_name = ''
508
+            arrthree.push(item)
509
+          })
510
+          // console.log('arrthree', arrthree)
511
+          var dd = {}
512
+          for (const index in arrthree) {
513
+            if (!(arrthree[index].inspect_date in dd)) {
514
+              dd[arrthree[index].inspect_date] = {}
515
+            }
516
+            console.log("abc",dd[arrthree[index].inspect_date])
517
+            if (!(arrthree[index].item_name in dd[arrthree[index].inspect_date]) && arrthree[index].item_name != 0) {
518
+              dd[arrthree[index].inspect_date][arrthree[index].item_name] = arrthree[index]
519
+             
524 520
             }
525 521
           }
526
-          this.tableData= []
527
-
528
-          for(const key in dd){
529
-              for(const mkey in this.ObjectData){
530
-                 if (!(this.ObjectData[mkey].item_name in dd[key])) {
531
-                   dd[key][this.ObjectData[mkey].item_name] = {
532
-                   item_name: this.ObjectData[mkey].item_name,
533
-                   name: mkey,
534
-                   inspect_value:0
535
-                  };
536
-                }
537
-              }
538
-              this.tableData.push({ name: key, data: dd[key]});
539
-             }
540
-
541
-
542
-            let projectArr = []
543
-            this.newArr.map(item => {
544
-              projectArr.push(item.item_name)
545
-            })
546
-           // console.log("projectArr",projectArr)
547
-
548
-            this.tableData.map(item => {
549
-            // console.log("item---",item.data)
550
-              let newarr = Object.values(item.data);
551
-              // console.log("arr",newarr)
552
-              newarr.sort((a,b)=>{
553
-                // console.log(1111,a)
554
-                // console.log(2222,b)
555
-                return projectArr.indexOf(a.item_name)-projectArr.indexOf(b.item_name);
556
-              });
557
-              item.data = newarr
558
-             // console.log(1111111111,item.data)
559
-            })
560
-         console.log("表",this.tableData)
522
+         console.log("dd",dd)
523
+        //   let dataInfotwo = {}
524
+        //   newArr.forEach((item, index) => {
525
+        //     let { inspect_date } = item
526
+        //     if (!dataInfotwo[inspect_date]) {
527
+        //       dataInfotwo[inspect_date] = {
528
+        //         inspect_date,
529
+        //         name: item.name,
530
+        //         item_id:item.item_id,
531
+        //         item_name:item.item_name,
532
+        //         range_max:item.range_max,
533
+        //         range_min:item.range_min,
534
+        //       }
535
+        //     }
536
+        //   })
537
+        // let listtwo = Object.values(dataInfotwo)
538
+        //  console.log("listtwo",listtwo)
539
+        // let arrsix = []
540
+        // for(let i=0;i<listtwo.length;i++){
541
+        //    arrsix.push({
542
+        //         name:listtwo[i].name,
543
+        //        inspectdate:dd[listtwo[i].inspect_date]
544
+        //    })
545
+        // }
546
+      //  var obj = {}
547
+      //  var fruitsObj = {...arrsix}
548
+      //  console.log("陈工",fruitsObj)
549
+      //  console.log("objecdat",this.ObjectData)
550
+       
551
+          // for (const key in dd) {
552
+          //   var total = 0;
553
+          //   for (const mkey in this.modeOptions) {
554
+          //     if (mkey in dd[key]) {
555
+          //       dd[key][mkey].mode = this.modeOptions[mkey].name;
556
+          //       var number = parseInt(dd[key][mkey].number);
557
+          //       if (isNaN(number) || number == 0) {
558
+          //         dd[key][mkey].number = "";
559
+          //         number = 0;
560
+          //       }
561
+          //       total += number;
562
+          //     } else {
563
+          //       dd[key][mkey] = {
564
+          //         mode: this.modeOptions[mkey].name,
565
+          //         mode_id: mkey,
566
+          //         number: 0
567
+          //       };
568
+          //     }
569
+          //   }
570
+          //   this.tableData.push({ date: key, data: dd[key], total: total });
571
+          // }
572
+       
573
+          //  for(const key in dd){
574
+          //    for(const mkey in this.ObjectData){
575
+          //       if(mkey in dd[key]){
576
+          //         dd[key][mkey].item_name =  this.ObjectData[mkey].item_name
577
+          //         var inspect_value = dd[key][mkey].inspect_value
578
+          //         if(inspect_value == 0){
579
+          //           inspect_value = 0
580
+          //         }
581
+          //       }else{
582
+          //         dd[key][mkey] = {
583
+          //            item_name:this.ObjectData[mkey].item_name,
584
+          //            item_id:mkey,
585
+          //            inspect_value:0,
586
+          //         }
587
+          //       }
588
+          //    }
589
+          //    this.tableData.push({ date: key, data: dd[key]})
590
+          //  }
591
+
592
+          //  console.log("表哥",this.tableData)
593
+
594
+
595
+          // for (const key in dd) {
596
+          //   for (const mkey in this.ObjectData) {
597
+          //     if (!(this.ObjectData[mkey].item_name in dd[key])) {
598
+          //       dd[key][this.ObjectData[mkey].item_name] = {
599
+          //         item_name: this.ObjectData[mkey].item_name,
600
+          //         name: mkey,
601
+          //         inspect_value: 0
602
+          //       }
603
+          //     }
604
+          //   }
605
+          //   this.tableData.push({ name: key, data: dd[key]})
606
+          // }
561 607
          }
562 608
       })
563 609
     },
@@ -571,11 +617,11 @@ export default {
571 617
         var result = [];
572 618
         for(var i = 0; i < array2.length; i++){
573 619
             var obj = array2[i];
574
-            var num = obj.patient_id;   //staff_id   就是要对比的key
620
+            var num = obj.item_id;   //staff_id   就是要对比的key
575 621
             var isExist = false;
576 622
             for(var j = 0; j < array1.length; j++){
577 623
                 var aj = array1[j];
578
-                var n = aj.patient_id;
624
+                var n = aj.item_id;
579 625
                 if(n == num){
580 626
                     isExist = true;
581 627
                     break;

+ 3 - 0
src/xt_pages/qcd/treatmentControlAnalysis/components/TimeAll.vue 查看文件

@@ -326,10 +326,13 @@ export default {
326 326
               dd[dtd[index].date][dtd[index].mode_id] = dtd[index];
327 327
             }
328 328
           }
329
+          console.log("dd",dd)
329 330
           for (const key in dd) {
330 331
             var total = 0;
331 332
             for (const mkey in this.modeOptions) {
332 333
               if (mkey in dd[key]) {
334
+                console.log("=====",dd[key])
335
+                console.log(this.modeOptions[mkey].name)
333 336
                 dd[key][mkey].mode = this.modeOptions[mkey].name;
334 337
                 var number = parseInt(dd[key][mkey].number);
335 338
                 if (isNaN(number) || number == 0) {

+ 5 - 1
src/xt_pages/user/components/PatientForm.vue 查看文件

@@ -280,7 +280,7 @@
280 280
                   </el-radio-group>
281 281
                 </el-form-item>
282 282
               </el-col>
283
-              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
283
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''" v-show="showLapseto">
284 284
                 <el-form-item
285 285
                   label="治疗状态(转归) : "
286 286
                   class="is-required"
@@ -1225,6 +1225,7 @@ export default {
1225 1225
       ],
1226 1226
 
1227 1227
       subscibe: {},
1228
+      showLapseto:true,
1228 1229
       rules: {
1229 1230
         contagions: [
1230 1231
           {
@@ -1275,6 +1276,9 @@ export default {
1275 1276
     }
1276 1277
   },
1277 1278
   created() {
1279
+    if(this.isEdit == true){
1280
+       this.showLapseto = false
1281
+    }
1278 1282
     // this.styleOptions = this.$store.getters.patient_types;
1279 1283
     // this.partitionOptions = this.$store.getters.partitions;
1280 1284
     this.maritalOptions = getDataConfig("patient", "marital_options");

+ 7 - 1
src/xt_pages/user/patients.vue 查看文件

@@ -489,7 +489,7 @@
489 489
             </el-radio-group>
490 490
           </el-form-item> -->
491 491
           <el-form-item label="治疗状态(转归):" prop="lapseto_type" required>
492
-              <el-radio v-model="lapsetoForm.lapseto_type">{{lapeseto}}</el-radio>
492
+              <el-radio v-model="lapsetoForm.lapseto_type" :label="lapsetoForm.lapseto_type">{{lapeseto}}</el-radio>
493 493
           </el-form-item>
494 494
           <el-form-item label="转归时间 :" prop="lapseto_time" required>
495 495
             <el-date-picker
@@ -1111,6 +1111,12 @@
1111 1111
           this.$message.error('请选择时间')
1112 1112
           return
1113 1113
         }
1114
+         if(this.lapeseto == "留治"){
1115
+           this.lapsetoForm.lapseto_type = 1
1116
+         }
1117
+         if(this.lapeseto == "转出"){
1118
+           this.lapsetoForm.lapseto_type = 2
1119
+         }
1114 1120
         EditLapseto(this.lapsetoForm.patient_id, this.lapsetoForm).then(
1115 1121
           response => {
1116 1122
             if (response.data.state === 1) {