XMLWAN 1 rok temu
rodzic
commit
78d32ceb07

+ 5 - 5
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Wyświetl plik

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

+ 3 - 3
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Wyświetl plik

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

+ 4 - 1
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue Wyświetl plik

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

+ 58 - 0
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Wyświetl plik

556
         </el-button>
556
         </el-button>
557
       </div>
557
       </div>
558
     </el-dialog>
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
   </div>
593
   </div>
560
 </template>
594
 </template>
561
 
595
 
570
   getDoctorAdviceList,
604
   getDoctorAdviceList,
571
   StopDoctorAdvice
605
   StopDoctorAdvice
572
 } from "@/api/advice";
606
 } from "@/api/advice";
607
+import { saveInformation } from "@/api/dialysis";
573
 import { getDataConfig } from '@/utils/data'
608
 import { getDataConfig } from '@/utils/data'
574
 import {getSelfMedicalList,getDrugDescByDrugName } from "@/api/drug/drug"
609
 import {getSelfMedicalList,getDrugDescByDrugName } from "@/api/drug/drug"
575
 import { duration } from 'moment';
610
 import { duration } from 'moment';
655
       src_type:"",
690
       src_type:"",
656
       private_drug_config:{},
691
       private_drug_config:{},
657
       units:[],
692
       units:[],
693
+      infoDialogVisible:false,
694
+      selected_date:"",
695
+      remark:""
658
     };
696
     };
659
   },
697
   },
660
   props: {
698
   props: {
770
             response => {
808
             response => {
771
               if (response.data.state == 0) {
809
               if (response.data.state == 0) {
772
                 this.$message.error(response.data.msg);
810
                 this.$message.error(response.data.msg);
811
+                if(response.data.code == 600000008){
812
+                 this.infoDialogVisible = true
813
+                }
773
                 return false;
814
                 return false;
774
               } else {
815
               } else {
775
                 this.$notify({
816
                 this.$notify({
1905
            }
1946
            }
1906
          }
1947
          }
1907
          return name
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
   watch: {
1968
   watch: {

+ 2 - 2
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Wyświetl plik

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

+ 2 - 2
src/xt_pages/dialysis/details/dialog/computer_dialog.vue Wyświetl plik

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

+ 20 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Wyświetl plik

1709
         zongliang:"",
1709
         zongliang:"",
1710
         educationList:[],
1710
         educationList:[],
1711
         value:"",
1711
         value:"",
1712
-        infoDialogVisible:false
1712
+        infoDialogVisible:false,
1713
+        selected_date:"",
1714
+        remark:"",
1713
       }
1715
       }
1714
 
1716
 
1715
     },
1717
     },
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
     watch: {
4289
     watch: {

+ 17 - 16
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue Wyświetl plik

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
   props: {
1320
   props: {
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
   created() {
1910
   created() {
1910
     var date = this.$route.query && this.$route.query.date;
1911
     var date = this.$route.query && this.$route.query.date;

+ 1 - 1
src/xt_pages/dialysis/details/dialog/finish_dialog.vue Wyświetl plik

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

+ 1 - 1
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Wyświetl plik

2754
                 : parseFloat(this.form.heparin_amount);
2754
                 : parseFloat(this.form.heparin_amount);
2755
             this.$message.error(resp.msg);
2755
             this.$message.error(resp.msg);
2756
             if(resp.code == 600000008){
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 Wyświetl plik

135
                {{ scope.row.patient.name }}
135
                {{ scope.row.patient.name }}
136
              </template>
136
              </template>
137
           </el-table-column>
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
             <template slot-scope="scope">
151
             <template slot-scope="scope">
140
                 <span v-if="scope.row.dialysis_finish!=null && scope.row.dialysis_finish.module == 1">
152
                 <span v-if="scope.row.dialysis_finish!=null && scope.row.dialysis_finish.module == 1">
141
153
304
                   ×
316
                   ×
305
                 </span>
317
                 </span>
306
            </template>
318
            </template>
307
-         </el-table-column>
319
+         </el-table-column> -->
308
   
320
   
309
 
321
 
310
         </el-table>
322
         </el-table>
356
           { value: 2, label: "下午" },
368
           { value: 2, label: "下午" },
357
           { value: 3, label: "晚上" }
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
         template_id: 0,
384
         template_id: 0,
360
   
385
   
361
         partitionType: 0,
386
         partitionType: 0,
749
         this.listQuery.limit = val;
774
         this.listQuery.limit = val;
750
         this.getSchedualPatientList();
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
     components: {
791
     components: {
883
       BreadCrumb
792
       BreadCrumb

+ 40 - 35
src/xt_pages/infor/index.vue Wyświetl plik

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

+ 13 - 13
src/xt_permission.js Wyświetl plik

12
 
12
 
13
 router.beforeEach((to, from, next) => {
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
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))