yq1 1 년 전
부모
커밋
75b3815eda
1개의 변경된 파일9개의 추가작업 그리고 4개의 파일을 삭제
  1. 9 4
      src/xt_pages/dialysis/details/index.vue

+ 9 - 4
src/xt_pages/dialysis/details/index.vue 파일 보기

@@ -1412,7 +1412,9 @@ export default {
1412 1412
 
1413 1413
       start_time:moment().startOf('months').format('YYYY-MM-DD'),
1414 1414
       end_time:moment().endOf('months').format('YYYY-MM-DD'),
1415
-      orderList:[]
1415
+      orderList:[],
1416
+      // start_time2:'',
1417
+      // end_time2:'',
1416 1418
     }
1417 1419
   },
1418 1420
   created() {
@@ -2933,15 +2935,15 @@ export default {
2933 2935
         start_time:this.start_time,
2934 2936
         end_time:this.end_time,
2935 2937
       }
2938
+      console.log('tttt',params);
2936 2939
       getPatientDialysisRecordList(params).then(response=>{
2937 2940
          if(response.data.state == 1){
2938 2941
            var list  = response.data.data.list
2939 2942
            this.historyclick =true
2940 2943
            if(list!=null && list.length>0){
2941 2944
              for(let i=0;i<list.length;i++){
2942
-
2943 2945
                list[i].order_date =""
2944
-               if(this.org_id ==9538 || this.org_id ==10101||this.org_id ==10353){
2946
+               if(this.org_id ==9538 || this.org_id ==10101||this.org_id ==10353 ){
2945 2947
                   list[i].order_date = this.getOrderTime(list[i].dialysis_date)
2946 2948
                   list[i].schedual_type_name= list[i].schedual_type
2947 2949
                }else{
@@ -2979,6 +2981,8 @@ export default {
2979 2981
       }
2980 2982
     },
2981 2983
     viewDayWork(val){
2984
+      const starttime = moment(this.time_value).format('YYYY-MM-DD')
2985
+      console.log('eeeeeeee',starttime);
2982 2986
       const len = (val.target.innerText).split(' ')
2983 2987
       console.log("val33333333333333444",len)
2984 2988
       if(val.target.innerText == '下个月'){
@@ -2991,7 +2995,7 @@ export default {
2991 2995
         // console.log('4444',this.orderList);
2992 2996
         if(len.length>1){
2993 2997
           var patient_id = this.$route.query.patient_id
2994
-          var start_time = this.timestamp(this.start_time)
2998
+          var start_time = this.timestamp(starttime)
2995 2999
           this.$router.push({
2996 3000
             path: "/dialysis/details",
2997 3001
             query: { patient_id:patient_id , date: start_time}
@@ -3019,6 +3023,7 @@ export default {
3019 3023
         console.log('yyyyyyyyyyy',moment(this.time_value).format('YYYY-MM-DD'),moment(oldValue).format('YYYY-MM-DD'))
3020 3024
 
3021 3025
         this.start_time = moment(this.time_value).format('YYYY-MM-DD')
3026
+        console.log('rrrrr',this.start_time);
3022 3027
         this.end_time =   moment(oldValue).format('YYYY-MM-DD')
3023 3028
       }
3024 3029
     }