|
@@ -4,7 +4,7 @@
|
|
<u-select v-model="hospitalListShow" :list="hospitalList" @confirm="setSelectHospital"></u-select>
|
|
<u-select v-model="hospitalListShow" :list="hospitalList" @confirm="setSelectHospital"></u-select>
|
|
<u-select v-model="timeShow" mode="mutil-column-auto" :list="timeList" @confirm="yearConfirm" :default-value="defaultIndex"></u-select>
|
|
<u-select v-model="timeShow" mode="mutil-column-auto" :list="timeList" @confirm="yearConfirm" :default-value="defaultIndex"></u-select>
|
|
<!--日视图弹出层-->
|
|
<!--日视图弹出层-->
|
|
- <u-popup v-model="popupShow" mode="bottom" border-radius="50">
|
|
|
|
|
|
+ <u-popup v-model="popupShow" mode="bottom" border-radius="50" @close="closePopup">
|
|
<!-- <view style="margin: 20rpx 0;" class="flex justify-center align-center">
|
|
<!-- <view style="margin: 20rpx 0;" class="flex justify-center align-center">
|
|
<u-icon name="arrow-down" @click="close()"></u-icon>
|
|
<u-icon name="arrow-down" @click="close()"></u-icon>
|
|
</view> -->
|
|
</view> -->
|
|
@@ -182,6 +182,13 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ closePopup(){
|
|
|
|
+ saveDayType.mon = 0
|
|
|
|
+ saveDayType.aft = 0
|
|
|
|
+ saveDayType.nig = 0
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+
|
|
close: async function() {
|
|
close: async function() {
|
|
this.popupShow = false;
|
|
this.popupShow = false;
|
|
let SaveLists = [];
|
|
let SaveLists = [];
|
|
@@ -424,7 +431,6 @@
|
|
getimePate(str) {
|
|
getimePate(str) {
|
|
var date = new Date(str.replace(/-/g, '/'));
|
|
var date = new Date(str.replace(/-/g, '/'));
|
|
return Date.parse(date);
|
|
return Date.parse(date);
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
|
|
getListTime: async function(org_id) {
|
|
getListTime: async function(org_id) {
|
|
@@ -552,49 +558,48 @@
|
|
this.saveDay = this.monthList[this.day + this.empty - 1];
|
|
this.saveDay = this.monthList[this.day + this.empty - 1];
|
|
if (id == 0) {
|
|
if (id == 0) {
|
|
this.monthList[this.day + this.empty - 1].mon = 1 //
|
|
this.monthList[this.day + this.empty - 1].mon = 1 //
|
|
- this.schedulingList[this.day - 1].mon = this.hospitalID
|
|
|
|
|
|
+ // this.schedulingList[this.day - 1].mon = this.hospitalID
|
|
this.saveDayType.mon = this.hospitalID;
|
|
this.saveDayType.mon = this.hospitalID;
|
|
|
|
|
|
this.monthList[this.day + this.empty - 1].aft = 1 //
|
|
this.monthList[this.day + this.empty - 1].aft = 1 //
|
|
- this.schedulingList[this.day - 1].aft = this.hospitalID
|
|
|
|
|
|
+ // this.schedulingList[this.day - 1].aft = this.hospitalID
|
|
this.saveDayType.aft = this.hospitalID;
|
|
this.saveDayType.aft = this.hospitalID;
|
|
|
|
|
|
this.monthList[this.day + this.empty - 1].nig = 1 //
|
|
this.monthList[this.day + this.empty - 1].nig = 1 //
|
|
- this.schedulingList[this.day - 1].nig = this.hospitalID
|
|
|
|
|
|
+ // this.schedulingList[this.day - 1].nig = this.hospitalID
|
|
this.saveDayType.nig = this.hospitalID;
|
|
this.saveDayType.nig = this.hospitalID;
|
|
} else {
|
|
} else {
|
|
-
|
|
|
|
switch (id) {
|
|
switch (id) {
|
|
case 1:
|
|
case 1:
|
|
if (this.monthList[this.day + this.empty - 1].mon == 1) { //当这个按钮状态为1 选择了医院且是当前医院
|
|
if (this.monthList[this.day + this.empty - 1].mon == 1) { //当这个按钮状态为1 选择了医院且是当前医院
|
|
this.monthList[this.day + this.empty - 1].mon = 0 //就取消选择
|
|
this.monthList[this.day + this.empty - 1].mon = 0 //就取消选择
|
|
- this.schedulingList[this.day - 1].mon = 0
|
|
|
|
|
|
+ // this.schedulingList[this.day - 1].mon = 0
|
|
this.saveDayType.mon = 0;
|
|
this.saveDayType.mon = 0;
|
|
} else if (this.monthList[this.day + this.empty - 1].mon == 0) {
|
|
} else if (this.monthList[this.day + this.empty - 1].mon == 0) {
|
|
this.monthList[this.day + this.empty - 1].mon = 1 //
|
|
this.monthList[this.day + this.empty - 1].mon = 1 //
|
|
- this.schedulingList[this.day - 1].mon = this.hospitalID
|
|
|
|
|
|
+ // this.schedulingList[this.day - 1].mon = this.hospitalID
|
|
this.saveDayType.mon = this.hospitalID;
|
|
this.saveDayType.mon = this.hospitalID;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
if (this.monthList[this.day + this.empty - 1].aft == 1) { //当这个按钮状态为1 选择了医院且是当前医院
|
|
if (this.monthList[this.day + this.empty - 1].aft == 1) { //当这个按钮状态为1 选择了医院且是当前医院
|
|
this.monthList[this.day + this.empty - 1].aft = 0 //就取消选择
|
|
this.monthList[this.day + this.empty - 1].aft = 0 //就取消选择
|
|
- this.schedulingList[this.day - 1].aft = 0
|
|
|
|
|
|
+ // this.schedulingList[this.day - 1].aft = 0
|
|
this.saveDayType.aft = 0;
|
|
this.saveDayType.aft = 0;
|
|
} else if (this.monthList[this.day + this.empty - 1].aft == 0) {
|
|
} else if (this.monthList[this.day + this.empty - 1].aft == 0) {
|
|
this.monthList[this.day + this.empty - 1].aft = 1 //
|
|
this.monthList[this.day + this.empty - 1].aft = 1 //
|
|
- this.schedulingList[this.day - 1].aft = this.hospitalID
|
|
|
|
|
|
+ // this.schedulingList[this.day - 1].aft = this.hospitalID
|
|
this.saveDayType.aft = this.hospitalID;
|
|
this.saveDayType.aft = this.hospitalID;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 3:
|
|
case 3:
|
|
if (this.monthList[this.day + this.empty - 1].nig == 1) { //当这个按钮状态为1 选择了医院且是当前医院
|
|
if (this.monthList[this.day + this.empty - 1].nig == 1) { //当这个按钮状态为1 选择了医院且是当前医院
|
|
this.monthList[this.day + this.empty - 1].nig = 0 //就取消选择
|
|
this.monthList[this.day + this.empty - 1].nig = 0 //就取消选择
|
|
- this.schedulingList[this.day - 1].nig = 0
|
|
|
|
|
|
+ // this.schedulingList[this.day - 1].nig = 0
|
|
this.saveDayType.nig = 0;
|
|
this.saveDayType.nig = 0;
|
|
} else if (this.monthList[this.day + this.empty - 1].nig == 0) {
|
|
} else if (this.monthList[this.day + this.empty - 1].nig == 0) {
|
|
this.monthList[this.day + this.empty - 1].nig = 1 //
|
|
this.monthList[this.day + this.empty - 1].nig = 1 //
|
|
- this.schedulingList[this.day - 1].nig = this.hospitalID
|
|
|
|
|
|
+ // this.schedulingList[this.day - 1].nig = this.hospitalID
|
|
this.saveDayType.nig = this.hospitalID;
|
|
this.saveDayType.nig = this.hospitalID;
|
|
}
|
|
}
|
|
break;
|
|
break;
|