|
@@ -17,14 +17,14 @@
|
17
|
17
|
type="primary"
|
18
|
18
|
@click="next"
|
19
|
19
|
>下一位</el-button
|
20
|
|
- >
|
|
20
|
+ >
|
21
|
21
|
|
22
|
|
- <el-button
|
|
22
|
+ <!-- <el-button
|
23
|
23
|
size="small"
|
24
|
24
|
type="primary"
|
25
|
25
|
@click="history_click"
|
26
|
|
-
|
27
|
|
- >透析历史</el-button>
|
|
26
|
+
|
|
27
|
+ >透析历史</el-button> -->
|
28
|
28
|
|
29
|
29
|
<el-button
|
30
|
30
|
size="small"
|
|
@@ -1191,7 +1191,6 @@
|
1191
|
1191
|
|
1192
|
1192
|
</div>
|
1193
|
1193
|
</div>
|
1194
|
|
-
|
1195
|
1194
|
<!-- 透析历史 -->
|
1196
|
1195
|
<el-dialog class="history"
|
1197
|
1196
|
:title="'患者信息(姓名:'+patient.name+'、透析号:'+patient.dialysis_no +')' "
|
|
@@ -1199,33 +1198,29 @@
|
1199
|
1198
|
width="50%"
|
1200
|
1199
|
>
|
1201
|
1200
|
<div>
|
1202
|
|
- <!-- <div >
|
|
1201
|
+ <div >
|
1203
|
1202
|
透析频率:
|
1204
|
1203
|
<div class="touxipl"></div>
|
1205
|
|
- </div> -->
|
|
1204
|
+ </div>
|
1206
|
1205
|
<div style="margin: 20px 0;">
|
1207
|
1206
|
<div style="border-left: 2px solid #409eff;color: #409eff;padding: 0 10px;">
|
1208
|
1207
|
<span>已排详情</span>
|
1209
|
1208
|
</div>
|
1210
|
|
- <div @click="viewDayWork">
|
1211
|
|
- <el-calendar v-model="time_value">
|
1212
|
|
-
|
1213
|
|
- <template
|
1214
|
|
- slot="dateCell"
|
1215
|
|
- slot-scope="{date, data}">
|
1216
|
|
- <p :class="data.isSelected ? 'is-selected' : ''" style="text-align: center;">
|
1217
|
|
- {{ data.day.split('-').slice(2).join('-') }}<br/>
|
1218
|
|
- <span v-for="(item,index) in orderList" :key="index" style="background: red;color: white;text-align: center;">
|
1219
|
|
- <span v-if="data.day == item.order_date">
|
1220
|
|
- {{ getModeId(item.mode_id) }}
|
1221
|
|
- <span v-if="item.schedual_type_name ==1">上午</span>
|
1222
|
|
- <span v-if="item.schedual_type_name ==2">下午</span>
|
1223
|
|
- <span v-if="item.schedual_type_name ==3">晚上</span>
|
1224
|
|
- </span>
|
1225
|
|
- </span>
|
1226
|
|
- </p>
|
|
1209
|
+ <div>
|
|
1210
|
+ <el-calendar v-model="time_value" >
|
|
1211
|
+ <template
|
|
1212
|
+ slot="dateCell"
|
|
1213
|
+ slot-scope="{date, data}" @click="viewDayWork(data)">
|
|
1214
|
+ <P v-if="data.day.split('-').slice(1).join('-')=='03-06'"
|
|
1215
|
+ style="background: red;color: white;text-align: center;">
|
|
1216
|
+ HD
|
|
1217
|
+ </P>
|
|
1218
|
+ <p :class="data.isSelected ? 'is-selected' : ''" style="text-align: center;">
|
|
1219
|
+ {{ data.day.split('-').slice(2).join('-') }} {{ data.isSelected ? '✔️' : ''}}<br/>
|
|
1220
|
+ <span v-if="data.day.split('-').slice(1).join('-')=='03-06'">上午 门诊</span>
|
|
1221
|
+ </p>
|
|
1222
|
+
|
1227
|
1223
|
</template>
|
1228
|
|
-
|
1229
|
1224
|
</el-calendar>
|
1230
|
1225
|
</div>
|
1231
|
1226
|
</div>
|
|
@@ -1265,7 +1260,6 @@ import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
1265
|
1260
|
import print from 'print-js'
|
1266
|
1261
|
import { uParseTime } from '@/utils/tools'
|
1267
|
1262
|
import Calendar from 'vue-calendar-component'
|
1268
|
|
-import data from '../../../store/modules/data'
|
1269
|
1263
|
export default {
|
1270
|
1264
|
name: 'index',
|
1271
|
1265
|
components: {
|
|
@@ -1413,14 +1407,14 @@ export default {
|
1413
|
1407
|
norefresh:true,
|
1414
|
1408
|
historyclick:false,
|
1415
|
1409
|
time_value:new Date(),
|
1416
|
|
-
|
1417
|
|
- start_time:moment().startOf('months').format('YYYY-MM-DD'),
|
1418
|
|
- end_time:moment().endOf('months').format('YYYY-MM-DD'),
|
1419
|
|
- orderList:[]
|
|
1410
|
+
|
|
1411
|
+ startTime:'',
|
|
1412
|
+ endTime:'',
|
|
1413
|
+
|
1420
|
1414
|
}
|
1421
|
1415
|
},
|
1422
|
1416
|
created() {
|
1423
|
|
-
|
|
1417
|
+
|
1424
|
1418
|
this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
|
1425
|
1419
|
this.org_id = this.$store.getters.xt_user.org.id,
|
1426
|
1420
|
this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
|
|
@@ -1625,7 +1619,7 @@ export default {
|
1625
|
1619
|
// this.getmonth(this.time_value)
|
1626
|
1620
|
// this.handlePick(this.time_value)
|
1627
|
1621
|
},
|
1628
|
|
-
|
|
1622
|
+
|
1629
|
1623
|
beforeDestroy(){
|
1630
|
1624
|
|
1631
|
1625
|
let unObj = {
|
|
@@ -2103,7 +2097,7 @@ export default {
|
2103
|
2097
|
}
|
2104
|
2098
|
},
|
2105
|
2099
|
requestDialysisSchedules: function() {
|
2106
|
|
-
|
|
2100
|
+ console.log("时间人民站起来了呃")
|
2107
|
2101
|
var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
|
2108
|
2102
|
getDialysisSchedules(ymd).then(rs => {
|
2109
|
2103
|
var resp = rs.data
|
|
@@ -2927,89 +2921,29 @@ export default {
|
2927
|
2921
|
},
|
2928
|
2922
|
// 透析历史
|
2929
|
2923
|
history_click(){
|
2930
|
|
- this.getPatientDialysisRecordList()
|
|
2924
|
+ this.historyclick =true
|
2931
|
2925
|
// this.getmonth(this.time_value2)
|
2932
|
2926
|
// console.log('time_value',moment(this.time_value2).format('YYYY-MM-DD'));
|
2933
|
2927
|
},
|
2934
|
|
- getPatientDialysisRecordList(){
|
2935
|
|
- var params= {
|
2936
|
|
- patient_id:this.$route.query.patient_id,
|
2937
|
|
- start_time:this.start_time,
|
2938
|
|
- end_time:this.end_time,
|
2939
|
|
- }
|
2940
|
|
- getPatientDialysisRecordList(params).then(response=>{
|
2941
|
|
- if(response.data.state == 1){
|
2942
|
|
- var list = response.data.data.list
|
2943
|
|
- this.historyclick =true
|
2944
|
|
- if(list!=null && list.length>0){
|
2945
|
|
- for(let i=0;i<list.length;i++){
|
2946
|
|
-
|
2947
|
|
- list[i].order_date =""
|
2948
|
|
- if(this.org_id ==9538 || this.org_id ==10101||this.org_id ==10353){
|
2949
|
|
- list[i].order_date = this.getOrderTime(list[i].dialysis_date)
|
2950
|
|
- list[i].schedual_type_name= list[i].schedual_type
|
2951
|
|
- }else{
|
2952
|
|
- list[i].order_date = this.getOrderTime(list[i].schedule_date)
|
2953
|
|
- list[i].schedual_type_name= list[i].schedule_type
|
2954
|
|
- }
|
2955
|
|
-
|
2956
|
|
- }
|
2957
|
|
- }
|
2958
|
|
- console.log("list------",list)
|
2959
|
|
- this.orderList = []
|
2960
|
|
- this.orderList = list
|
2961
|
|
- }
|
2962
|
|
- })
|
2963
|
|
- },
|
2964
|
2928
|
// 获取每个月的第一天和最后一天
|
2965
|
2929
|
getmonth(val){
|
2966
|
|
- // const months= new Date(val).getMonth()
|
2967
|
|
- // let startTime = moment().month(months).startOf('month').format('YYYY-MM-DD')
|
2968
|
|
-
|
2969
|
|
- // // //某月最后一天
|
2970
|
|
- // let endTime = moment().month(months).endOf('month').format('YYYY-MM-DD')
|
2971
|
|
- // this.startTime = startTime
|
2972
|
|
- // this.endTime = endTime
|
2973
|
|
- // console.log('time_value333333',this.startTime,this.endTime);
|
2974
|
|
- },
|
2975
|
|
- getOrderTime(val){
|
2976
|
|
- if (val < 0) {
|
2977
|
|
- return "";
|
2978
|
|
- }
|
2979
|
|
- if (val == "") {
|
2980
|
|
- return "";
|
2981
|
|
- } else {
|
2982
|
|
- return uParseTime(val, "{y}-{m}-{d}");
|
2983
|
|
- }
|
2984
|
|
- },
|
2985
|
|
- viewDayWork(val){
|
2986
|
|
- console.log("val33333333333333",val)
|
2987
|
|
- var patient_id = this.$route.query.patient_id
|
2988
|
|
- var start_time = this.timestamp(this.start_time)
|
2989
|
|
- this.$router.push({
|
2990
|
|
- path: "/dialysis/details",
|
2991
|
|
- query: { patient_id:patient_id , date: start_time}
|
2992
|
|
- });
|
2993
|
|
- this.history_click = false
|
2994
|
|
- },
|
2995
|
|
- timestamp(start_time) {
|
2996
|
|
- // 使用 Date 对象和它的 getTime 方法将日期字符串转换为时间戳
|
2997
|
|
- return new Date(start_time).getTime()/1000 - 28800;
|
|
2930
|
+ const months= new Date(val).getMonth()
|
|
2931
|
+ let startTime = moment().month(months).startOf('month').format('YYYY-MM-DD')
|
|
2932
|
+
|
|
2933
|
+ // //某月最后一天
|
|
2934
|
+ let endTime = moment().month(months).endOf('month').format('YYYY-MM-DD')
|
|
2935
|
+ this.startTime = startTime
|
|
2936
|
+ this.endTime = endTime
|
|
2937
|
+ console.log('time_value333333',this.startTime,this.endTime);
|
2998
|
2938
|
}
|
2999
|
|
-
|
3000
|
2939
|
},
|
3001
|
2940
|
watch:{
|
3002
|
2941
|
time_value:{
|
3003
|
2942
|
handler(newValue,oldValue){
|
3004
|
|
- console.log("newValue----------",newValue)
|
3005
|
2943
|
// this.initData()
|
3006
|
2944
|
this.time_value = newValue
|
3007
|
2945
|
this.getmonth(this.time_value)
|
3008
|
2946
|
console.log('yyyyyyyyyyy',moment(this.time_value).format('YYYY-MM-DD'),moment(oldValue).format('YYYY-MM-DD'))
|
3009
|
|
-
|
3010
|
|
- this.start_time = moment(this.time_value).format('YYYY-MM-DD')
|
3011
|
|
- this.end_time = moment(oldValue).format('YYYY-MM-DD')
|
3012
|
|
-
|
3013
|
2947
|
}
|
3014
|
2948
|
}
|
3015
|
2949
|
}
|
|
@@ -3189,10 +3123,10 @@ export default {
|
3189
|
3123
|
}
|
3190
|
3124
|
}
|
3191
|
3125
|
.el-dialog__body{
|
3192
|
|
- padding: 15px 10px
|
|
3126
|
+ padding: 15px 10px
|
3193
|
3127
|
}
|
3194
|
3128
|
}
|
3195
|
|
-
|
|
3129
|
+
|
3196
|
3130
|
}
|
3197
|
3131
|
.Calendar{
|
3198
|
3132
|
color: #000 !important;
|