XMLWAN 1 år sedan
förälder
incheckning
78d32ceb07

+ 5 - 5
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Visa fil

@@ -1118,7 +1118,7 @@ export default {
1118 1118
           data['puncture_point_oozing_blood'] = this.form.puncture_point_oozing_blood ? parseFloat(this.form.puncture_point_oozing_blood) : 0
1119 1119
           data['puncture_point_haematoma'] = this.form.puncture_point_haematoma ? parseFloat(this.form.puncture_point_haematoma) : 0
1120 1120
           data['internal_fistula_tremor_ac'] = this.form.internal_fistula_tremor_ac ? parseFloat(this.form.internal_fistula_tremor_ac) : 0
1121
-          data['patient_gose'] = this.form.patient_gose ? parseFloat(this.form.patient_gose) : ' '
1121
+          data['patient_gose'] = this.form.patient_gose ? parseFloat(this.form.patient_gose) : 0
1122 1122
           data['inpatient_department'] = this.form.inpatient_department
1123 1123
           data['observation_content'] = this.form.observation_content
1124 1124
           data['observation_content_other'] = this.form.observation_content_other
@@ -1167,6 +1167,7 @@ export default {
1167 1167
           data["after_urea"] = this.form.after_urea
1168 1168
           data["pip_coagulation"] = this.form.pip_coagulation
1169 1169
           data["accumulated_blood_volume"] = this.form.accumulated_blood_volume
1170
+          console.log("Data",data)
1170 1171
           console.log("Paramsquery",data)
1171 1172
 
1172 1173
           postAssessmentAfterDislysis(ParamsQuery, data)
@@ -1175,7 +1176,7 @@ export default {
1175 1176
               if (response.data.state == 0) {
1176 1177
                 this.$message.error(response.data.msg)
1177 1178
                 if(response.data.code == 600000008){
1178
-                  this.infoDialogVisible = false
1179
+                  this.infoDialogVisible = true
1179 1180
                 }
1180 1181
                 return false
1181 1182
               } else {
@@ -1196,8 +1197,7 @@ export default {
1196 1197
                 }
1197 1198
                 this.hide()
1198 1199
               }
1199
-            })
1200
-            .catch(v => {
1200
+            }).catch(v => {
1201 1201
               this.loading = false
1202 1202
             })
1203 1203
         }else {
@@ -1477,7 +1477,7 @@ export default {
1477 1477
         saveInformation(params).then(response=>{
1478 1478
            if(response.data.state == 1){
1479 1479
              var information = response.data.data.information
1480
-             this.$message.success("审核成功!")
1480
+             this.$message.success("提交成功!")
1481 1481
              this.infoDialogVisible = false
1482 1482
            }
1483 1483
         })

+ 3 - 3
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Visa fil

@@ -660,7 +660,7 @@
660 660
     getPatientSchedule
661 661
   } from '@/api/advice'
662 662
   import { getDataConfig } from '@/utils/data'
663
-
663
+  import { saveInformation } from '@/api/dialysis'
664 664
   import request from '@/utils/request'
665 665
   import { getDialysisScheduleDetail } from '@/api/dialysis_record'
666 666
   import { getSelfMedicalList } from "@/api/drug/drug"
@@ -2664,13 +2664,13 @@
2664 2664
           selected_date:this.selected_date,
2665 2665
           patient_id:this.$route.query.patient_id,
2666 2666
           record_date:this.$route.query.date,
2667
-          module:2,
2667
+          module:4,
2668 2668
           remark:this.remark,
2669 2669
         }
2670 2670
         saveInformation(params).then(response=>{
2671 2671
            if(response.data.state == 1){
2672 2672
              var information = response.data.data.information
2673
-             this.$message.success("审核成功!")
2673
+             this.$message.success("提交成功!")
2674 2674
              this.infoDialogVisible = false
2675 2675
            }
2676 2676
         })

+ 4 - 1
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue Visa fil

@@ -542,6 +542,9 @@ export default {
542 542
           postAccepts(ParamsQuery).then((response) => {
543 543
             if (response.data.state == 0) {
544 544
               this.$message.error(response.data.msg);
545
+               if(response.data.code == 600000008){
546
+                 this.infoDialogVisible = true
547
+               }
545 548
               return false;
546 549
             } else {
547 550
               this.$notify({
@@ -694,7 +697,7 @@ export default {
694 697
         saveInformation(params).then(response=>{
695 698
            if(response.data.state == 1){
696 699
              var information = response.data.data.information
697
-             this.$message.success("审核成功!")
700
+             this.$message.success("提交成功!")
698 701
              this.infoDialogVisible = false
699 702
            }
700 703
         })

+ 58 - 0
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Visa fil

@@ -556,6 +556,40 @@
556 556
         </el-button>
557 557
       </div>
558 558
     </el-dialog>
559
+
560
+
561
+    <el-dialog
562
+      title="提示"
563
+      :visible.sync="infoDialogVisible"
564
+      width="30%">
565
+      <span>
566
+        <el-form>
567
+          <el-row>
568
+            <span>申请日期:</span>
569
+            <span>
570
+                <el-date-picker
571
+                  type="datetime"
572
+                  format="yyyy-MM-dd HH:mm"
573
+                  value-format="yyyy-MM-dd HH:mm"
574
+                  placeholder="选择时间"
575
+                  v-model="selected_date"
576
+              ></el-date-picker>
577
+            </span>
578
+          </el-row>
579
+          <el-row>
580
+            <span>备注:</span>
581
+            <span>
582
+                <el-input v-model="remark" style="width:200px"></el-input>
583
+            </span>
584
+          </el-row>
585
+        </el-form>
586
+      
587
+      </span>
588
+      <span slot="footer" class="dialog-footer">
589
+        <el-button @click="infoDialogVisible = false">取 消</el-button>
590
+        <el-button type="primary" @click="saveInformation">确 定</el-button>
591
+      </span>
592
+    </el-dialog>
559 593
   </div>
560 594
 </template>
561 595
 
@@ -570,6 +604,7 @@ import {
570 604
   getDoctorAdviceList,
571 605
   StopDoctorAdvice
572 606
 } from "@/api/advice";
607
+import { saveInformation } from "@/api/dialysis";
573 608
 import { getDataConfig } from '@/utils/data'
574 609
 import {getSelfMedicalList,getDrugDescByDrugName } from "@/api/drug/drug"
575 610
 import { duration } from 'moment';
@@ -655,6 +690,9 @@ export default {
655 690
       src_type:"",
656 691
       private_drug_config:{},
657 692
       units:[],
693
+      infoDialogVisible:false,
694
+      selected_date:"",
695
+      remark:""
658 696
     };
659 697
   },
660 698
   props: {
@@ -770,6 +808,9 @@ export default {
770 808
             response => {
771 809
               if (response.data.state == 0) {
772 810
                 this.$message.error(response.data.msg);
811
+                if(response.data.code == 600000008){
812
+                 this.infoDialogVisible = true
813
+                }
773 814
                 return false;
774 815
               } else {
775 816
                 this.$notify({
@@ -1905,6 +1946,23 @@ export default {
1905 1946
            }
1906 1947
          }
1907 1948
          return name
1949
+      },
1950
+    
1951
+    saveInformation(){
1952
+        var params = {
1953
+          selected_date:this.selected_date,
1954
+          patient_id:this.$route.query.patient_id,
1955
+          record_date:this.$route.query.date,
1956
+          module:4,
1957
+          remark:this.remark,
1958
+        }
1959
+        saveInformation(params).then(response=>{
1960
+           if(response.data.state == 1){
1961
+             var information = response.data.data.information
1962
+             this.$message.success("提交成功!")
1963
+             this.infoDialogVisible = false
1964
+           }
1965
+        })
1908 1966
       }
1909 1967
   },
1910 1968
   watch: {

+ 2 - 2
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Visa fil

@@ -1569,13 +1569,13 @@
1569 1569
           selected_date:this.selected_date,
1570 1570
           patient_id:this.$route.query.patient_id,
1571 1571
           record_date:this.$route.query.date,
1572
-          module:2,
1572
+          module:3,
1573 1573
           remark:this.remark,
1574 1574
         }
1575 1575
         saveInformation(params).then(response=>{
1576 1576
            if(response.data.state == 1){
1577 1577
              var information = response.data.data.information
1578
-             this.$message.success("审核成功!")
1578
+             this.$message.success("提交成功!")
1579 1579
              this.infoDialogVisible = false
1580 1580
            }
1581 1581
         })

+ 2 - 2
src/xt_pages/dialysis/details/dialog/computer_dialog.vue Visa fil

@@ -1146,13 +1146,13 @@ export default {
1146 1146
           selected_date:this.selected_date,
1147 1147
           patient_id:this.$route.query.patient_id,
1148 1148
           record_date:this.$route.query.date,
1149
-          module:2,
1149
+          module:6,
1150 1150
           remark:this.remark,
1151 1151
         }
1152 1152
         saveInformation(params).then(response=>{
1153 1153
            if(response.data.state == 1){
1154 1154
              var information = response.data.data.information
1155
-             this.$message.success("审核成功!")
1155
+             this.$message.success("提交成功!")
1156 1156
              this.infoDialogVisible = false
1157 1157
            }
1158 1158
         })

+ 20 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Visa fil

@@ -1709,7 +1709,9 @@
1709 1709
         zongliang:"",
1710 1710
         educationList:[],
1711 1711
         value:"",
1712
-        infoDialogVisible:false
1712
+        infoDialogVisible:false,
1713
+        selected_date:"",
1714
+        remark:"",
1713 1715
       }
1714 1716
 
1715 1717
     },
@@ -4265,6 +4267,23 @@ mu
4265 4267
       }
4266 4268
     }
4267 4269
     },
4270
+
4271
+    saveInformation(){
4272
+      var params = {
4273
+        selected_date:this.selected_date,
4274
+        patient_id:this.$route.query.patient_id,
4275
+        record_date:this.$route.query.date,
4276
+        module:1,
4277
+        remark:this.remark,
4278
+      }
4279
+      saveInformation(params).then(response=>{
4280
+          if(response.data.state == 1){
4281
+            var information = response.data.data.information
4282
+            this.$message.success("提交成功!")
4283
+            this.infoDialogVisible = false
4284
+          }
4285
+      })
4286
+     }
4268 4287
   },
4269 4288
 
4270 4289
     watch: {

+ 17 - 16
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue Visa fil

@@ -1299,6 +1299,22 @@ export default {
1299 1299
         }
1300 1300
       });
1301 1301
     },
1302
+    saveInformation(){
1303
+        var params = {
1304
+          selected_date:this.selected_date,
1305
+          patient_id:this.$route.query.patient_id,
1306
+          record_date:this.$route.query.date,
1307
+          module:5,
1308
+          remark:this.remark,
1309
+        }
1310
+        saveInformation(params).then(response=>{
1311
+           if(response.data.state == 1){
1312
+             var information = response.data.data.information
1313
+             this.$message.success("提交成功!")
1314
+             this.infoDialogVisible = false
1315
+           }
1316
+        })
1317
+      }
1302 1318
   },
1303 1319
 
1304 1320
   props: {
@@ -1889,22 +1905,7 @@ export default {
1889 1905
       }
1890 1906
     },
1891 1907
 
1892
-   saveInformation(){
1893
-        var params = {
1894
-          selected_date:this.selected_date,
1895
-          patient_id:this.$route.query.patient_id,
1896
-          record_date:this.$route.query.date,
1897
-          module:5,
1898
-          remark:this.remark,
1899
-        }
1900
-        saveInformation(params).then(response=>{
1901
-           if(response.data.state == 1){
1902
-             var information = response.data.data.information
1903
-             this.$message.success("审核成功!")
1904
-             this.infoDialogVisible = false
1905
-           }
1906
-        })
1907
-      }
1908
+  
1908 1909
   },
1909 1910
   created() {
1910 1911
     var date = this.$route.query && this.$route.query.date;

+ 1 - 1
src/xt_pages/dialysis/details/dialog/finish_dialog.vue Visa fil

@@ -478,7 +478,7 @@
478 478
 
479 479
               } else {
480 480
                 this.$message.error(resp.msg)
481
-               if(response.data.code == 600000008){
481
+               if(response.code == 600000008){
482 482
                   this.infoDialogVisible = true
483 483
                 }
484 484
               }

+ 1 - 1
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Visa fil

@@ -2754,7 +2754,7 @@ export default {
2754 2754
                 : parseFloat(this.form.heparin_amount);
2755 2755
             this.$message.error(resp.msg);
2756 2756
             if(resp.code == 600000008){
2757
-              this.infoDialogVisible = false
2757
+              this.infoDialogVisible = true
2758 2758
             }
2759 2759
           }
2760 2760
         }

+ 40 - 131
src/xt_pages/dialysis/dialysisFlow.vue Visa fil

@@ -135,7 +135,19 @@
135 135
                {{ scope.row.patient.name }}
136 136
              </template>
137 137
           </el-table-column>
138
-          <el-table-column prop="mode_name" label="透析处方" align="center"  width="100">
138
+          <el-table-column
139
+          align="center"
140
+          prop="name"
141
+          v-for="(item,index) in moduleList"
142
+          :key="index"
143
+          :label="item.name"
144
+        >
145
+          <template slot-scope="scope">
146
+            <span>{{getModeFinish(scope.row.dialysis_finish,item.id)}}</span>
147
+          </template>
148
+
149
+        </el-table-column>
150
+          <!-- <el-table-column prop="mode_name" label="透析处方" align="center"  width="100">
139 151
             <template slot-scope="scope">
140 152
                 <span v-if="scope.row.dialysis_finish!=null && scope.row.dialysis_finish.module == 1">
141 153
@@ -304,7 +316,7 @@
304 316
                   ×
305 317
                 </span>
306 318
            </template>
307
-         </el-table-column>
319
+         </el-table-column> -->
308 320
   
309 321
 
310 322
         </el-table>
@@ -356,6 +368,19 @@
356 368
           { value: 2, label: "下午" },
357 369
           { value: 3, label: "晚上" }
358 370
         ],
371
+        moduleList:[
372
+        {id:1,name:"透析处方"},
373
+        {id:2,name:"接诊评估"},
374
+        {id:3,name:"透前评估"},
375
+        {id:4,name:"临时医嘱"},  
376
+        {id:5,name:"双人核对"}, 
377
+        {id:6,name:"透析上机"}, 
378
+        {id:7,name:"透析监测"},
379
+        {id:8,name:"透析下机"},
380
+        {id:9,name:"透后评估"},
381
+        {id:10,name:"治疗小结"},
382
+        {id:11,name:"耗材出库"},
383
+        ],
359 384
         template_id: 0,
360 385
   
361 386
         partitionType: 0,
@@ -749,135 +774,19 @@
749 774
         this.listQuery.limit = val;
750 775
         this.getSchedualPatientList();
751 776
       },
752
-      batchPrintAction: function() {
753
-        if (this.selecting_schs.length === 0) {
754
-          this.$message.error("请至少选择一条需要打印的内容");
755
-          return false;
756
-        }
757
-        // 模板ID为6
758
-        var sch_ids = [];
759
-  
760
-        for (let index = 0; index < this.selecting_schs.length; index++) {
761
-          sch_ids.push(this.selecting_schs[index].sch_id);
762
-        }
763
-        console.log("sch_ids",sch_ids)
764
-        this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
765
-        if (this.template_id == 2 || this.template_id == 0) {
766
-          this.$router.push({ path: "/dialysis/print/batch/other" });
767
-        } else if (this.template_id == 1) {
768
-          this.$router.push({ path: "/dialysis/print/batch" });
769
-        } else if (this.template_id == 3) {
770
-          this.$router.push({ path: "/dialysis/print/batch/three" });
771
-        } else if (this.template_id == 4) {
772
-          this.$router.push({ path: "/dialysis/print/batch/four" });
773
-        } else if (this.template_id == 5) {
774
-          this.$router.push({ path: "/dialysis/print/batch/five" });
775
-        } else if (this.template_id == 6) {
776
-          this.$router.push({ path: "/dialysis/print/batch/six" });
777
-        } else if (this.template_id == 7) {
778
-          this.$router.push({ path: "/dialysis/print/batch/seven" });
779
-        } else if (this.template_id == 8) {
780
-          this.$router.push({ path: "/dialysis/print/batch/eight" });
781
-        } else if (this.template_id == 9) {
782
-          this.$router.push({ path: "/dialysis/print/batch/nine" });
783
-        } else if (this.template_id == 12) {
784
-          this.$router.push({ path: "/dialysis/print/batch/twelve" });
785
-        } else if (this.template_id == 13) {
786
-          this.$router.push({ path: "/dialysis/print/batch/thirteen" });
787
-        } else if (this.template_id == 15) {
788
-          this.$router.push({ path: "/dialysis/print/batch/fifteen" });
789
-        } else if (this.template_id == 17) {
790
-          this.$router.push({ path: "/dialysis/print/batch/seventeen" });
791
-        } else if (this.template_id == 20) {
792
-          this.$router.push({ path: "/dialysis/print/batch/twenty" });
793
-        } else if (this.template_id == 22) {
794
-          this.$router.push({ path: "/dialysis/print/batch/twentyTwo" });
795
-        } else if (this.template_id == 25) {
796
-          this.$router.push({ path: "/dialysis/print/batch/twentyFive" });
797
-        }else if (this.template_id == 27) {
798
-          this.$router.push({ path: "/dialysis/print/batch/twentySeven" });
799
-        } else if(this.template_id == 28){
800
-           this.$router.push({path:"/dialysis/print/batch/twentyEight"})
801
-        } else if (this.template_id == 30) {
802
-          this.$router.push({ path: "/dialysis/print/batch/thirty" });
803
-        } else if (this.template_id == 32) {
804
-          this.$router.push({ path: "/dialysis/print/batch/thirtyTwo" });
805
-        } else if (this.template_id == 33) {
806
-          this.$router.push({ path: "/dialysis/print/batch/thirtyThree" });
807
-        } else if (this.template_id == 37) {
808
-          this.$router.push({ path: "/dialysis/print/batch/thirtySeven" });
809
-        } else if (this.template_id == 38) {
810
-          this.$router.push({ path: "/dialysis/print/batch/thirtyEight" });
811
-        } else if (this.template_id == 39) {
812
-          this.$router.push({ path: "/dialysis/print/batch/thirtyNine" });
813
-        } else if (this.template_id == 40) {
814
-          this.$router.push({ path: "/dialysis/print/batch/forty" });
815
-        } else if (this.template_id == 41) {
816
-          this.$router.push({ path: "/dialysis/print/batch/fortyOne" });
817
-        } else if (this.template_id == 43) {
818
-          this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
819
-        } else if (this.template_id == 47) {
820
-          this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
821
-        } else if (this.template_id == 48) {
822
-          this.$router.push({ path: "/dialysis/print/batch/six" });
823
-        }else if (this.template_id == 51) {
824
-          this.$router.push({ path: "/dialysis/print/batch/fiftyOne" });
825
-        }else if (this.template_id == 53) {
826
-          this.$router.push({ path: "/dialysis/print/batch/fiftyThree" });
827
-        }else if (this.template_id == 59) {
828
-          this.$router.push({ path: "/dialysis/print/batch/fiftynine" });
829
-        }else if (this.template_id == 60) {
830
-          this.$router.push({ path: "/dialysis/print/batch/sixty" });
831
-        }else if (this.template_id == 61) {
832
-          this.$router.push({ path: "/dialysis/print/batch/sixtyOne" });
833
-        }else if (this.template_id == 62) {
834
-          this.$router.push({ path: "/dialysis/print/batch/sixtyTwo" });
835
-        }
836
-      },
837
-      batchPrintActionOne: function() {
838
-        if (this.selecting_schs.length === 0) {
839
-          this.$message.error("请至少选择一条需要打印的内容");
840
-          return false;
841
-        }
842
-        var sch_ids = [];
843
-        for (let index = 0; index < this.selecting_schs.length; index++) {
844
-          sch_ids.push(this.selecting_schs[index].sch_id);
845
-        }
846
-        this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
847
-        if (this.template_id == 2 || this.template_id == 0) {
848
-          this.$router.push({ path: "/dialysis/print/batch/otherone" });
849
-        } else if (this.template_id == 1) {
850
-          this.$router.push({ path: "/dialysis/print/batch" });
851
-        } else if (this.template_id == 5) {
852
-          this.$router.push({ path: "/dialysis/print/batch/fiveone" });
853
-        } else if (this.template_id == 22) {
854
-          this.$router.push({ path: "/dialysis/print/batch/twentyTwo_one" });
855
-        } else if(this.template_id == 33){
856
-          this.$router.push({ path: "/dialysis/print/batch/thirtyThree_one" });
857
-        }
858
-      },
859
-      batchPrintActionTwo: function() {
860
-        if (this.selecting_schs.length === 0) {
861
-          this.$message.error("请至少选择一条需要打印的内容");
862
-          return false;
863
-        }
864
-        var sch_ids = [];
865
-        for (let index = 0; index < this.selecting_schs.length; index++) {
866
-          sch_ids.push(this.selecting_schs[index].sch_id);
867
-        }
868
-        this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
869
-        if (this.template_id == 2 || this.template_id == 0) {
870
-          this.$router.push({ path: "/dialysis/print/batch/othertwo" });
871
-        } else if (this.template_id == 1) {
872
-          this.$router.push({ path: "/dialysis/print/batch" });
873
-        } else if (this.template_id == 5) {
874
-          this.$router.push({ path: "/dialysis/print/batch/fivetwo" });
875
-        } else if (this.template_id == 22) {
876
-          this.$router.push({ path: "/dialysis/print/batch/twentyTwo_two" });
877
-        } else if (this.template_id == 33) {
878
-          this.$router.push({ path: "/dialysis/print/batch/thirtyThree_two" });
879
-        }
880
-      }
777
+     getModeFinish(val,id){
778
+      var name = "×"
779
+       if(val!=null){
780
+         for(let i=0;i<val.length;i++){
781
+            if(val[i].module == id){
782
+               name = "√"
783
+            }
784
+         }
785
+       }
786
+       return name
787
+     }
788
+      
789
+      
881 790
     },
882 791
     components: {
883 792
       BreadCrumb

+ 40 - 35
src/xt_pages/infor/index.vue Visa fil

@@ -10,12 +10,12 @@
10 10
                 :data="list"
11 11
                 border
12 12
                 style="width: 100%">
13
-                <el-table-column  prop="date" label="序号"  width="50" align="center">
13
+                <el-table-column  prop="date" label="序号" min-width="50"  align="center">
14 14
                    <template slot-scope="scope" >
15 15
                        {{scope.$index + 1 }}
16 16
                    </template>
17 17
                 </el-table-column>
18
-                <el-table-column prop="name"  label="信息模块"  width="100" align="center">
18
+                <el-table-column prop="name"  label="信息模块" min-width="120"  align="center">
19 19
                   <template slot-scope="scope" >
20 20
                       <span v-if="scope.row.module == 1">透析处方</span> 
21 21
                       <span v-if="scope.row.module == 2">接诊评估</span> 
@@ -27,53 +27,54 @@
27 27
                       <span v-if="scope.row.module == 8">透析下机</span> 
28 28
                       <span v-if="scope.row.module == 9">透后评估</span> 
29 29
                       <span v-if="scope.row.module == 10">治疗小结</span> 
30
+                      <span v-if="scope.row.module == 11">耗材出库</span> 
30 31
                    </template>
31 32
                 </el-table-column>
32
-                <el-table-column  prop="address" label="患者姓名" width="100" align="center">
33
+                <el-table-column  prop="address" label="患者姓名" min-width="100" align="center">
33 34
                   <template slot-scope="scope">
34 35
                      {{getPatientName(scope.row.patient_id) }}
35 36
                    </template>
36 37
                 </el-table-column>
37
-                <el-table-column prop="date" label="治疗日期" width="100" align="center">
38
+                <el-table-column prop="date" label="治疗日期"  min-width="100" align="center">
38 39
                    <template  slot-scope="scope" >
39 40
                       {{getTimeOne(scope.row.record_date)  }}
40 41
                    </template>
41 42
                 </el-table-column>
42
-                <el-table-column prop="name"  label="申请人"  width="100" align="center">
43
+                <el-table-column prop="name"  label="申请人"  min-width="100"  align="center">
43 44
                   <template  slot-scope="scope">
44 45
                       {{getUserName(scope.row.creater)  }}
45 46
                    </template>
46 47
                 </el-table-column>
47
-                <el-table-column  prop="address" label="申请时间" width="180" align="center">
48
+                <el-table-column  prop="address" label="申请时间"   min-width="150" align="center">
48 49
                   <template  slot-scope="scope" >
49
-                      {{getTimeTwo(scope.row.record_date)  }}
50
+                      {{getTimeTwo(scope.row.application_date)  }}
50 51
                    </template>
51 52
 
52 53
                 </el-table-column>
53 54
 
54
-                <el-table-column  prop="date" label="状态" width="100" align="center">
55
+                <el-table-column  prop="date" label="状态" align="center"  min-width="100">
55 56
                   <template  slot-scope="scope" >
56 57
                      <span v-if="scope.row.application_status == 1">已审核</span>
57 58
                      <span v-if="scope.row.application_status == 2">未审核</span>
58 59
                      <span v-if="scope.row.application_status == 3">拒绝</span>
59 60
                   </template>
60 61
                 </el-table-column>
61
-                <el-table-column prop="name" label="审批人" width="100" align="center">
62
+                <el-table-column prop="name" label="审批人"  min-width="100" align="center">
62 63
                   <template  slot-scope="scope" >
63 64
                       {{getUserName(scope.row.checker)  }}
64 65
                    </template>
65 66
                 </el-table-column>
66
-                <el-table-column prop="address" label="审批时间" width="180" align="center">
67
+                <el-table-column prop="address" label="审批时间"   min-width="100" align="center">
67 68
                   <template  slot-scope="scope">
68 69
                       {{getTimeOne(scope.row.check_time)  }}
69 70
                    </template>
70 71
                 </el-table-column>
71
-                <el-table-column  prop="address" label="备注" width="180" align="center">
72
+                <el-table-column  prop="address" label="备注"   min-width="100" align="center">
72 73
                   <template  slot-scope="scope">
73 74
                       {{scope.row.remark }}
74 75
                    </template>
75 76
                 </el-table-column>
76
-                <el-table-column prop="address" label="操作" width="180" align="center">
77
+                <el-table-column prop="address" label="操作"   min-width="150" align="center">
77 78
                   <template slot-scope="scope">
78 79
                     <el-tooltip
79 80
                       class="item"
@@ -111,7 +112,7 @@
111 112
               <el-pagination
112 113
                 @size-change="handleSizeChange"
113 114
                 @current-change="handleCurrentChange"
114
-                :page-size="5"
115
+                :page-size="10"
115 116
                 background
116 117
                 style="margin-top:20px;float: right"
117 118
                 :total="total"
@@ -123,12 +124,12 @@
123 124
                 :data="inforList"
124 125
                 border
125 126
                 style="width: 100%">
126
-                <el-table-column  prop="date" label="序号"  width="50" align="center">
127
+                <el-table-column  prop="date" label="序号"  min-width="50" align="center">
127 128
                    <template slot-scope="scope" >
128 129
                        {{scope.$index + 1 }}
129 130
                    </template>
130 131
                 </el-table-column>
131
-                <el-table-column prop="name"  label="信息模块"  width="100" align="center">
132
+                <el-table-column prop="name"  label="信息模块"  min-width="100" align="center">
132 133
                   <template slot-scope="scope" >
133 134
                       <span v-if="scope.row.module == 1">透析处方</span> 
134 135
                       <span v-if="scope.row.module == 2">接诊评估</span> 
@@ -140,48 +141,49 @@
140 141
                       <span v-if="scope.row.module == 8">透析下机</span> 
141 142
                       <span v-if="scope.row.module == 9">透后评估</span> 
142 143
                       <span v-if="scope.row.module == 10">治疗小结</span> 
144
+                      <span v-if="scope.row.module == 11">耗材出库</span> 
143 145
                    </template>
144 146
                 </el-table-column>
145
-                <el-table-column  prop="address" label="患者姓名" width="100" align="center">
147
+                <el-table-column  prop="address" label="患者姓名" min-width="100" align="center">
146 148
                   <template slot-scope="scope">
147 149
                      {{getPatientName(scope.row.patient_id) }}
148 150
                    </template>
149 151
                 </el-table-column>
150
-                <el-table-column prop="date" label="治疗日期" width="100" align="center">
152
+                <el-table-column prop="date" label="治疗日期"  min-width="100" align="center">
151 153
                    <template  slot-scope="scope" >
152 154
                       {{getTimeOne(scope.row.record_date)  }}
153 155
                    </template>
154 156
                 </el-table-column>
155
-                <el-table-column prop="name"  label="申请人"  width="100" align="center">
157
+                <el-table-column prop="name"  label="申请人"  min-width="100" align="center">
156 158
                   <template  slot-scope="scope">
157 159
                       {{getUserName(scope.row.creater)  }}
158 160
                    </template>
159 161
                 </el-table-column>
160
-                <el-table-column  prop="address" label="申请时间" width="180" align="center">
162
+                <el-table-column  prop="address" label="申请时间" min-width="180" align="center">
161 163
                   <template  slot-scope="scope" >
162
-                      {{getTimeTwo(scope.row.record_date)  }}
164
+                      {{getTimeTwo(scope.row.application_date)  }}
163 165
                    </template>
164 166
 
165 167
                 </el-table-column>
166 168
 
167
-                <el-table-column  prop="date" label="状态" width="100" align="center">
169
+                <el-table-column  prop="date" label="状态" min-width="100" align="center">
168 170
                   <template  slot-scope="scope" >
169 171
                      <span v-if="scope.row.application_status == 1">已审核</span>
170 172
                      <span v-if="scope.row.application_status == 2">未审核</span>
171 173
                      <span v-if="scope.row.application_status == 3">拒绝</span>
172 174
                   </template>
173 175
                 </el-table-column>
174
-                <el-table-column prop="name" label="审批人" width="100" align="center">
176
+                <el-table-column prop="name" label="审批人" min-width="100" align="center">
175 177
                   <template  slot-scope="scope" >
176 178
                       {{getUserName(scope.row.checker)  }}
177 179
                    </template>
178 180
                 </el-table-column>
179
-                <el-table-column prop="address" label="审批时间" width="180" align="center">
181
+                <el-table-column prop="address" label="审批时间" min-width="180" align="center">
180 182
                   <template  slot-scope="scope">
181 183
                       {{getTimeOne(scope.row.check_time)  }}
182 184
                    </template>
183 185
                 </el-table-column>
184
-                <el-table-column  prop="address" label="备注" width="260" align="center">
186
+                <el-table-column  prop="address" label="备注" min-width="260" align="center">
185 187
                   <template  slot-scope="scope">
186 188
                       {{scope.row.remark }}
187 189
                    </template>
@@ -190,12 +192,12 @@
190 192
                 
191 193
               </el-table>
192 194
               <el-pagination
193
-                @size-change="handleSizeChange"
194
-                @current-change="handleCurrentChange"
195
-                :page-size="5"
195
+                @size-change="handleSizeChangeOne"
196
+                @current-change="handleCurrentChangeOne"
197
+                :page-size="10"
196 198
                 background
197 199
                 style="margin-top:20px;float: right"
198
-                :total="total"
200
+                :total="totalOne"
199 201
             ></el-pagination>
200 202
 
201 203
             </el-tab-pane>
@@ -231,8 +233,7 @@
231 233
      <el-dialog
232 234
         title="信息归档设置"
233 235
         :visible.sync="dialogVisible"
234
-        width="30%"
235
-        :before-close="handleClose">
236
+        width="30%">
236 237
         <span>
237 238
           <span>归档天数:</span> <el-input v-model="week_day" style="width:200px"></el-input>   
238 239
         </span>
@@ -270,7 +271,7 @@
270 271
     },
271 272
     methods: {
272 273
         handleClick(val){
273
-          console.log("val----------------",val)
274
+           this.getlist()
274 275
         },
275 276
         toSeeting(){
276 277
           var params = {
@@ -296,7 +297,9 @@
296 297
             SaveDialysisInformationSetting(params).then(response=>{
297 298
              if(response.data.state == 1){
298 299
                var informaitonSetting = response.data.data.informaitonSetting
300
+               this.$message.success("保存成功!")
299 301
                this.dialogVisible = false
302
+               this.toSeeting()
300 303
              }
301 304
           })
302 305
         },
@@ -305,6 +308,7 @@
305 308
              limit:this.limit,
306 309
              page:this.page
307 310
            }
311
+           console.log("params23433232wo",params)
308 312
           getDialysisInformationSetting(params).then(response=>{
309 313
             if(response.data.state == 1){
310 314
               var informaitonSetting =  response.data.data.informaitonSetting
@@ -338,8 +342,7 @@
338 342
         this.getlist()
339 343
       },
340 344
       getPatientName(patient_id){
341
-        console.log("patinet_id---",patient_id)
342
-        console.log("patients",this.patients)
345
+       
343 346
         var name = ""
344 347
         for(let i=0;i<this.patients.length;i++){
345 348
            if(patient_id == this.patients[i].id){
@@ -359,7 +362,7 @@
359 362
         if(val == ""){
360 363
         return ""
361 364
         }else {
362
-        return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
365
+        return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
363 366
         }
364 367
      },
365 368
      getUserName(admin_user_id){
@@ -423,12 +426,14 @@
423 426
             }
424 427
           });
425 428
         }).catch(() => {});
426
-    }
429
+    },
430
+
427 431
     
428 432
     },
429 433
    
430 434
     created(){
431 435
       this.getlist()
436
+     
432 437
     }
433 438
   };
434 439
 </script>

+ 13 - 13
src/xt_permission.js Visa fil

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))