|
|
|
|
@ -6,10 +6,13 @@ |
|
|
|
|
<div class="week_num" v-for="item in weekData" :key="item">{{ item }}</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="week_text"> |
|
|
|
|
<div class="week_txt" v-for="item in weekArr" :key="item" @click="changeDate(item)" :class="[(new Date(item).getTime() <= new Date(yesterDay).getTime() ? 'week_none' : ''),item == selectDate ? 'today_week' : '',numData.find(item1 => item1.date == item ) ? numData.find(item1 => item1.date == item).isNum == 1 ? 'isnum' : 'none' : '']"> |
|
|
|
|
<div class="week_txt" v-for="item in weekArr" :key="item" @click="changeDate(item)" |
|
|
|
|
:class="[(new Date(item).getTime() <= new Date(yesterDay).getTime() ? 'week_none' : ''), item == selectDate ? 'today_week' : '', numData.find(item1 => item1.date == item) ? numData.find(item1 => item1.date == item).isNum == 1 ? 'isnum' : 'none' : '']"> |
|
|
|
|
<div class="top_info"></div> |
|
|
|
|
{{ item.slice(-2) }} |
|
|
|
|
<div class="bottom_info" v-text="numData.find(item1 => item1.date == item) ? numData.find(item1 => item1.date == item).isNum == 1 ? '有号' :'无号' : ''"></div> |
|
|
|
|
<div class="bottom_info" |
|
|
|
|
v-text="numData.find(item1 => item1.date == item) ? numData.find(item1 => item1.date == item).isNum == 1 ? '有号' : '无号' : ''"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
@ -17,40 +20,16 @@ |
|
|
|
|
<div v-if="isCal"> |
|
|
|
|
<van-swipe class="my-swipe" :stop-propagation="false" :show-indicators="false"> |
|
|
|
|
<van-swipe-item> |
|
|
|
|
<van-calendar |
|
|
|
|
class="can_box" |
|
|
|
|
ref="calendar" |
|
|
|
|
first-day-of-week="1" |
|
|
|
|
v-model="show" |
|
|
|
|
@confirm="onConfirm" |
|
|
|
|
:poppable="false" |
|
|
|
|
:show-mark="false" |
|
|
|
|
:show-title="false" |
|
|
|
|
:show-subtitle="false" |
|
|
|
|
:show-confirm="false" |
|
|
|
|
:min-date="minDate" |
|
|
|
|
:max-date="maxDate" |
|
|
|
|
:formatter="formatter" |
|
|
|
|
:default-date="new Date(selectDate)" |
|
|
|
|
/> |
|
|
|
|
<van-calendar class="can_box" ref="calendar" first-day-of-week="1" v-model="show" |
|
|
|
|
@confirm="onConfirm" :poppable="false" :show-mark="false" :show-title="false" |
|
|
|
|
:show-subtitle="false" :show-confirm="false" :min-date="minDate" :max-date="maxDate" |
|
|
|
|
:formatter="formatter" :default-date="new Date(selectDate)" /> |
|
|
|
|
</van-swipe-item> |
|
|
|
|
<van-swipe-item> |
|
|
|
|
<van-calendar |
|
|
|
|
class="can_box" |
|
|
|
|
ref="calendar1" |
|
|
|
|
first-day-of-week="1" |
|
|
|
|
v-model="show" |
|
|
|
|
@confirm="onConfirm1" |
|
|
|
|
:poppable="false" |
|
|
|
|
:show-mark="false" |
|
|
|
|
:show-title="false" |
|
|
|
|
:show-subtitle="false" |
|
|
|
|
:show-confirm="false" |
|
|
|
|
:min-date="minDate1" |
|
|
|
|
:max-date="maxDate1" |
|
|
|
|
:formatter="formatter1" |
|
|
|
|
:default-date="new Date(selectDate)" |
|
|
|
|
/> |
|
|
|
|
<van-calendar class="can_box" ref="calendar1" first-day-of-week="1" v-model="show" |
|
|
|
|
@confirm="onConfirm1" :poppable="false" :show-mark="false" :show-title="false" |
|
|
|
|
:show-subtitle="false" :show-confirm="false" :min-date="minDate1" :max-date="maxDate1" |
|
|
|
|
:formatter="formatter1" :default-date="new Date(selectDate)" /> |
|
|
|
|
</van-swipe-item> |
|
|
|
|
</van-swipe> |
|
|
|
|
</div> |
|
|
|
|
@ -74,12 +53,18 @@ |
|
|
|
|
<div style="color: #999;font-size: 0.24rem;">{{item.cuAddr}}</div> |
|
|
|
|
</div> --> |
|
|
|
|
</div> |
|
|
|
|
<div class="top_right"><div style="font-size:0.3rem;color:#333">{{item.totalApmNum}}</div><div style="font-size:0.22rem;color:rgba(51, 51, 51,0.5)">/{{item.totalNum}}</div> |
|
|
|
|
<div class="top_right"> |
|
|
|
|
<div style="font-size:0.3rem;color:#333">{{ item.totalApmNum }}</div> |
|
|
|
|
<div style="font-size:0.22rem;color:rgba(51, 51, 51,0.5)">/{{ item.totalNum }}</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="exam_bottom"> |
|
|
|
|
<div class="exam_txt" v-for="item1 in item.detailList" :key="item1.time" @click="clickExam(item,item1)" :class="[(item1.residueNum == 0 ? 'isAct' : ''),(item1.isSelect ? 'active' : ''),Date.parse(new Date(item.apmDay.substring(0,10) + ' ' + item1.timeFrame.split('-')[1] + ':00')) < Date.parse(new Date(systemTime)) ? 'isAct' : '']"> |
|
|
|
|
<div class="txt" style="font-size:0.22rem;color:#666;"><span style="font-size:0.24rem;color:#666">{{item1.period}}</span> {{item1.timeFrame}}</div> |
|
|
|
|
<div class="exam_txt" v-for="item1 in item.detailList" :key="item1.time" |
|
|
|
|
@click="clickExam(item, item1)" |
|
|
|
|
:class="[(item1.residueNum == 0 ? 'isAct' : ''), (item1.isSelect ? 'active' : ''), Date.parse(new Date(item.apmDay.substring(0, 10) + ' ' + item1.timeFrame.split('-')[1] + ':00')) < Date.parse(new Date(systemTime)) ? 'isAct' : '']"> |
|
|
|
|
<div class="txt" style="font-size:0.22rem;color:#666;"><span |
|
|
|
|
style="font-size:0.24rem;color:#666">{{ item1.period }}</span> {{ item1.timeFrame }} |
|
|
|
|
</div> |
|
|
|
|
<div style="font-size:0.24rem;color:#333333;">剩余:{{ item1.residueNum }}</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
@ -225,11 +210,6 @@ export default { |
|
|
|
|
endTime: this.endTime |
|
|
|
|
} |
|
|
|
|
).then(res => { |
|
|
|
|
this.numData = [] |
|
|
|
|
if(JSON.stringify(res.data) === '{}'){ |
|
|
|
|
this.dayArr = []; |
|
|
|
|
this.numData = this.dayArr |
|
|
|
|
}else{ |
|
|
|
|
this.dayArr = res.data; |
|
|
|
|
console.log(this.dayArr) |
|
|
|
|
for (let key in this.dayArr) { |
|
|
|
|
@ -240,6 +220,11 @@ export default { |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let userInfo = sessionStorage.getItem('userInfo') ? JSON.parse(sessionStorage.getItem('userInfo')) : null; |
|
|
|
|
if (userInfo) { |
|
|
|
|
this.cupCardNo = JSON.parse(sessionStorage.getItem('userInfo')).papersnumber; |
|
|
|
|
this.getList() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
@ -255,7 +240,7 @@ export default { |
|
|
|
|
let val = { |
|
|
|
|
createDept: this.hospitalId, |
|
|
|
|
apmDay: this.selectDate, |
|
|
|
|
cupCardNo:this.cupCardNo |
|
|
|
|
cupCardNo: this.Base64.encode(this.cupCardNo) |
|
|
|
|
} |
|
|
|
|
vaildInterfacefn("cgstjyyxuwxt", "qdsgajjtjczdhqfhlb", JSON.stringify(val), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway) |
|
|
|
|
.then((value) => { |
|
|
|
|
@ -295,7 +280,7 @@ export default { |
|
|
|
|
{ |
|
|
|
|
createDept: this.hospitalId, |
|
|
|
|
apmDay: this.selectDate, |
|
|
|
|
cupCardNo:this.cupCardNo |
|
|
|
|
cupCardNo: this.Base64.encode(this.cupCardNo) |
|
|
|
|
} |
|
|
|
|
).then(res => { |
|
|
|
|
if (res.data.length == 0) { |
|
|
|
|
@ -479,6 +464,7 @@ export default { |
|
|
|
|
|
|
|
|
|
.top_box { |
|
|
|
|
background: #fff; |
|
|
|
|
|
|
|
|
|
.week-box { |
|
|
|
|
.week_box { |
|
|
|
|
width: 100%; |
|
|
|
|
@ -492,10 +478,12 @@ export default { |
|
|
|
|
text-align: center; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.week_text { |
|
|
|
|
display: flex; |
|
|
|
|
width: 100%; |
|
|
|
|
height: 1.28rem; |
|
|
|
|
|
|
|
|
|
.week_txt { |
|
|
|
|
position: relative; |
|
|
|
|
width: 1rem; |
|
|
|
|
@ -527,6 +515,7 @@ export default { |
|
|
|
|
line-height: 14px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.week_none { |
|
|
|
|
color: #ccc; |
|
|
|
|
pointer-events: none; |
|
|
|
|
@ -552,6 +541,7 @@ export default { |
|
|
|
|
margin-top: 0.1rem; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.isnum { |
|
|
|
|
background: rgb(22, 119, 255, ); |
|
|
|
|
border-radius: 50%; |
|
|
|
|
@ -570,6 +560,7 @@ export default { |
|
|
|
|
height: 0.4rem; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.my-swipe .van-swipe-item { |
|
|
|
|
width: 100%; |
|
|
|
|
font-size: 0.4rem; |
|
|
|
|
@ -580,9 +571,11 @@ export default { |
|
|
|
|
padding-top: 0.7rem |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.center_box { |
|
|
|
|
width: 100%; |
|
|
|
|
margin-top: 0.2rem; |
|
|
|
|
|
|
|
|
|
.exam_noresult { |
|
|
|
|
text-align: center; |
|
|
|
|
height: 5.04rem; |
|
|
|
|
@ -612,6 +605,7 @@ export default { |
|
|
|
|
margin: 0 auto; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.exam_box { |
|
|
|
|
width: 100%; |
|
|
|
|
background: #fff; |
|
|
|
|
@ -638,11 +632,13 @@ export default { |
|
|
|
|
color: #333; |
|
|
|
|
font-weight: bold; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.posi_txt { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.top_right { |
|
|
|
|
width: 1.48rem; |
|
|
|
|
height: 0.6rem; |
|
|
|
|
@ -655,6 +651,7 @@ export default { |
|
|
|
|
background: rgba(72, 118, 255, 0.2); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.exam_bottom { |
|
|
|
|
width: 93%; |
|
|
|
|
display: flex; |
|
|
|
|
@ -681,24 +678,29 @@ export default { |
|
|
|
|
background: #F6F6F6; |
|
|
|
|
border: 1px solid #F6F6F6; |
|
|
|
|
pointer-events: none; |
|
|
|
|
|
|
|
|
|
.txt { |
|
|
|
|
color: rgba(102, 102, 102, 0.3) !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
div { |
|
|
|
|
span { |
|
|
|
|
color: rgba(102, 102, 102, 0.3) !important; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
color: rgba(51, 51, 51, 0.3) !important; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.active { |
|
|
|
|
background: #1677FF; |
|
|
|
|
|
|
|
|
|
div { |
|
|
|
|
span { |
|
|
|
|
color: #fff !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
color: #fff !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -716,13 +718,16 @@ export default { |
|
|
|
|
cursor: not-allowed |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
::v-deep { |
|
|
|
|
.van-calendar__header { |
|
|
|
|
box-shadow: none !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.van-calendar__month-title { |
|
|
|
|
display: none; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.num1 { |
|
|
|
|
background: rgb(22, 119, 255); |
|
|
|
|
border-radius: 50%; |
|
|
|
|
@ -735,10 +740,12 @@ export default { |
|
|
|
|
border-radius: 50%; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.num2 { |
|
|
|
|
background: rgba(22, 119, 255, 0.5); |
|
|
|
|
border-radius: 50%; |
|
|
|
|
color: #fff; |
|
|
|
|
|
|
|
|
|
.van-calendar__selected-day { |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
@ -746,12 +753,15 @@ export default { |
|
|
|
|
border-radius: 50%; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.van-calendar__weekdays { |
|
|
|
|
margin-bottom: 0.24rem; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.van-calendar__weekday { |
|
|
|
|
font-size: 0.32rem; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.van-calendar__selected-day { |
|
|
|
|
.van-calendar__top-info { |
|
|
|
|
width: 0.1rem; |
|
|
|
|
@ -763,6 +773,7 @@ export default { |
|
|
|
|
top: 0.06rem; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.van-calendar__days { |
|
|
|
|
height: 6.4rem; |
|
|
|
|
|
|
|
|
|
@ -779,6 +790,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.van-calendar__bottom-info { |
|
|
|
|
bottom: 0.06rem; |
|
|
|
|
} |
|
|
|
|
|