|
@@ -528,7 +528,7 @@ import { uParseTime } from "@/utils/tools";
|
528
|
528
|
import { parseTime } from '@/utils'
|
529
|
529
|
import { fetchAllDoctorAndNurse } from "@/api/doctor";
|
530
|
530
|
import print from "print-js";
|
531
|
|
-
|
|
531
|
+const moment = require('moment')
|
532
|
532
|
export default {
|
533
|
533
|
name: "dialysisRecord",
|
534
|
534
|
data() {
|
|
@@ -567,6 +567,7 @@ export default {
|
567
|
567
|
dialysisShow:false,
|
568
|
568
|
|
569
|
569
|
newTime:'',
|
|
570
|
+ org_id:0
|
570
|
571
|
|
571
|
572
|
};
|
572
|
573
|
},
|
|
@@ -607,11 +608,17 @@ export default {
|
607
|
608
|
},
|
608
|
609
|
getPatientDialysisRecords() {
|
609
|
610
|
console.log("prams",this.queryParams)
|
|
611
|
+ if(this.org_id ==10679 || this.org_id == 0){
|
|
612
|
+ this.queryParams.start_time = moment().month(moment().month() - 1).startOf('month').format('YYYY/MM/DD HH:mm:ss')
|
|
613
|
+ this.queryParams.end_time = moment().month(moment().month() - 1).endOf('month').format('YYYY/MM/DD HH:mm:ss')
|
|
614
|
+ }
|
|
615
|
+ console.log("hahahhaha",this.queryParams)
|
610
|
616
|
getPatientDialysisRecords(this.queryParams).then(response => {
|
611
|
617
|
if (response.data.state == 1) {
|
612
|
618
|
this.total = response.data.data.total;
|
613
|
619
|
this.recordData = response.data.data.records;
|
614
|
620
|
console.log("郭23232323232232323",this.recordData)
|
|
621
|
+
|
615
|
622
|
}
|
616
|
623
|
});
|
617
|
624
|
},
|
|
@@ -895,6 +902,7 @@ export default {
|
895
|
902
|
|
896
|
903
|
var xtuser = this.$store.getters.xt_user;
|
897
|
904
|
this.orgname = xtuser.org.org_name;
|
|
905
|
+ this.org_id = this.$store.getters.xt_user.template_info.org_id;
|
898
|
906
|
|
899
|
907
|
},mounted(){
|
900
|
908
|
|