Ver código fonte

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 1 ano atrás
pai
commit
12af39340f

+ 139 - 22
src/xt_pages/dialysis/details/index.vue Ver arquivo

@@ -1199,12 +1199,16 @@
1199 1199
       width="50%"
1200 1200
       >
1201 1201
       <div>
1202
+        <div >
1203
+          透析频率:
1204
+          <div class="touxipl"></div>
1205
+        </div>
1202 1206
         <div style="margin: 20px 0;">
1203 1207
           <div style="border-left: 2px solid #409eff;color: #409eff;padding: 0 10px;">
1204 1208
             <span>已排详情</span>
1205 1209
           </div>
1206 1210
           <div>
1207
-            <el-calendar v-model="time_value" >  
1211
+            <!-- <el-calendar v-model="time_value">  
1208 1212
               <template
1209 1213
                 slot="dateCell"
1210 1214
                 slot-scope="{date, data}">
@@ -1218,12 +1222,19 @@
1218 1222
                 </p>
1219 1223
 
1220 1224
               </template>
1221
-            </el-calendar>
1225
+            </el-calendar> -->
1226
+            <Calendar class="Calendar"
1227
+              v-on:choseDay="clickDay"
1228
+              v-on:changeMonth="changeDate"
1229
+              v-on:isToday="clickToday"
1230
+              v-model="time_value"
1231
+            >
1232
+            </Calendar>
1222 1233
           </div>
1223 1234
           
1224 1235
         </div>
1225 1236
       </div>
1226
-      <!-- <span slot="footer" class="dialog-footer">
1237
+      <!-- <span slot="footer" class="dialog-footer" slot-scope="{date, data}" @click="diajian(data)"> 
1227 1238
         <el-button @click="historyclick = false">取 消</el-button>
1228 1239
         <el-button type="primary" @click="historyclick = false">确 定</el-button>
1229 1240
       </span> -->
@@ -1260,6 +1271,7 @@ import { parseTime } from '@/utils'
1260 1271
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
1261 1272
 import print from 'print-js'
1262 1273
 import { uParseTime } from '@/utils/tools'
1274
+import Calendar from 'vue-calendar-component'
1263 1275
 export default {
1264 1276
   name: 'index',
1265 1277
   components: {
@@ -1277,7 +1289,8 @@ export default {
1277 1289
     AssessmentAfter,
1278 1290
     TreatmentOf,
1279 1291
     OperationStaff,
1280
-    BreadCrumb
1292
+    BreadCrumb,
1293
+    Calendar,//日历
1281 1294
   },
1282 1295
   data() {
1283 1296
     return {
@@ -1405,10 +1418,14 @@ export default {
1405 1418
       Refresh:true,
1406 1419
       norefresh:true,
1407 1420
       historyclick:false,
1408
-      time_value:new Date()
1421
+      time_value:new Date(),
1422
+      startTime:'',
1423
+      endTime:'',
1424
+      
1409 1425
     }
1410 1426
   },
1411 1427
   created() {
1428
+    console.log('bbbbb',this.time_value);
1412 1429
    this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
1413 1430
    this.org_id = this.$store.getters.xt_user.org.id,
1414 1431
    this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
@@ -1620,6 +1637,9 @@ export default {
1620 1637
     this.websocketSend(unObj)
1621 1638
   },
1622 1639
   methods: {
1640
+    diajian(value){
1641
+      console.log('zzzzz',value);
1642
+    },
1623 1643
     // 透析次数
1624 1644
     chishuclick(row){
1625 1645
       this.cishu_dialogVisible=true
@@ -2913,25 +2933,60 @@ export default {
2913 2933
     // 透析历史
2914 2934
     history_click(){
2915 2935
       this.historyclick =true
2936
+      this.getmonth(this.time_value)
2937
+      // console.log('time_value',);
2916 2938
     },
2917
-  
2918
-
2919
-  },
2920
-  watch:{
2921
-    time_value:function(){
2922
-      console.log("timevalue",this.time_value)
2923
-
2924
-      var year = this.time_value.getFullYear()
2925
-      var month = this.time_value.getMonth()+1
2926
-      var date = this.time_value.getDate()
2939
+    // //选中某天
2940
+    clickDay(data) {
2941
+      this.time_value = data
2942
+      console.log('33333',this.time_value); 
2943
+      // this.getmonth(data)
2944
+    },
2945
+    // //左右点击切换月份
2946
+    changeDate(data) {
2947
+      this.getmonth(data)
2948
+      console.log('999999',data); 
2949
+    },
2950
+    // 跳到了本月
2951
+    clickToday(data) {
2952
+      console.log('444444',data); 
2953
+    },
2954
+    // 获取每个月的第一天和最后一天
2955
+    getmonth(val){
2956
+      const months= new Date(val).getMonth()
2957
+      let startTime =  moment().month(months).startOf('month').format('YYYY-MM-DD')
2958
+      
2959
+      //   //某月最后一天
2960
+      let endTime = moment().month(months).endOf('month').format('YYYY-MM-DD')
2961
+      this.startTime = startTime
2962
+      this.endTime = endTime
2963
+      console.log('time_value333333',this.startTime,this.endTime);
2964
+      // var date =new Date(val) 
2965
+      // console.log('66666',date);
2966
+      // var new_year = date.getFullYear() // 取当前的年份
2967
+      // var month = date.getMonth()
2968
+      
2969
+      // var new_month = month + 1 
2970
+      // // console.log('22222',month,new_month,new_year);// 取当前的月份
2971
+      // if (month > 12) {
2972
+      //   console.log('111');
2973
+      //   new_month -= 12 // 月份减
2974
+      //   new_year++ // 年份增
2975
+      // }
2976
+      // console.log('new_month',new_month);
2977
+      // var firstDay = new Date(new_year, new_month, 1) // 取当年当月中的第一天
2978
+      // console.log('qqqqq',moment(firstDay).format("YYYY-MM-DD HH:mm:ss"));
2979
+      // var lastDay = new Date(firstDay.getTime() - 1000 * 60 * 60 * 24).getDate() // 获取当月最后一天日期
2980
+      // if (firstDay.getMonth() < 10) {
2981
+        
2982
+      //   var mon = "0" + firstDay.getMonth()
2983
+      //   console.log('wwww',moment(firstDay).format("YYYY-MM-DD HH:mm:ss"));
2984
+      // } else {
2985
+      //   var mon = firstDay.getMonth()
2986
+      // }
2987
+      // var startDate = firstDay.getFullYear() + '-' + mon + '-' + "0" + firstDay.getDate();
2988
+      // var endDate = firstDay.getFullYear() + '-' + mon + '-' + lastDay;
2927 2989
 
2928
-      if(date>=1&&date<=9){
2929
-        date = "0"+date
2930
-      }
2931
-      if(month>=1&&month<=9){
2932
-        month ="0"+month
2933
-      }
2934
-      console.log("year:"+year+"month:"+month+"date:"+date)
2935 2990
     }
2936 2991
   }
2937 2992
 }
@@ -3113,5 +3168,67 @@ export default {
3113 3168
       padding: 15px 10px 
3114 3169
     }
3115 3170
   }
3171
+  
3172
+}
3173
+.Calendar{
3174
+    color: #000 !important;
3175
+    width: 100% !important;
3176
+    max-width: 839px !important;
3177
+    .wh_content_all{
3178
+      background-color: #fff;
3179
+      .wh_top_changge{
3180
+        .wh_jiantou1{
3181
+          border-top: 2px solid #000;
3182
+          border-left: 2px solid #000;
3183
+        }
3184
+        .wh_content_li{
3185
+          color: #000;
3186
+        }
3187
+        .wh_jiantou2{
3188
+          border-top: 2px solid #000;
3189
+          border-right: 2px solid #000;
3190
+        }
3191
+      }
3192
+      .wh_content_item{
3193
+        text-align: center;
3194
+        color: #000 ;
3195
+        height: 50px;
3196
+        .wh_top_tag{
3197
+          width: 100%;
3198
+          height: 50px ;
3199
+          line-height: 50px;
3200
+          margin: 0;
3201
+          display: flex;
3202
+          justify-content: center;
3203
+          align-items: center;
3204
+          text-align: center
3205
+        }
3206
+        .wh_isToday{
3207
+          border: 1px solid #409eff;
3208
+          background: #409eff !important;
3209
+          color: #fff;
3210
+          border-radius: 0;
3211
+        }
3212
+        .wh_chose_day{
3213
+          border: 1px solid #409eff;
3214
+          background: #fff !important;
3215
+          color: #409eff;
3216
+          border-radius: 0;
3217
+        }
3218
+        .wh_item_date{
3219
+          width: 100%;
3220
+          height: 50px;
3221
+          line-height: 50px;
3222
+          margin: 0;
3223
+          display: flex;
3224
+          justify-content: center;
3225
+          align-items: center;
3226
+        }
3227
+        .wh_item_date:hover {
3228
+            background: #fff;
3229
+            cursor: pointer;
3230
+        }
3231
+      }
3232
+    }
3116 3233
 }
3117 3234
 </style>

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver arquivo

@@ -1912,7 +1912,7 @@ export default {
1912 1912
                 that.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1913 1913
                 that.$refs.register.hide()
1914 1914
                 that.loadingone = false
1915
-                this.CheckHISPatient(that.record_date,that.patientInfo.id)
1915
+                that.CheckHISPatient(that.record_date,that.patientInfo.id)
1916 1916
 
1917 1917
               }
1918 1918
             }