提交 eb180bc7 编写于 作者: xiaoping.di's avatar xiaoping.di

Merge branch 'feature/dxp' into 'release-new'

Feature/dxp

See merge request !223
...@@ -253,7 +253,11 @@ ...@@ -253,7 +253,11 @@
created() { created() {
vm = this; vm = this;
this.getDoctorList(); this.getDoctorList();
if (!(this.doctorList || []).some(item => { item.doctorId == this.formData.receptionId;})) { if (
!(this.doctorList || []).some((item) => {
item.doctorId == this.formData.receptionId;
})
) {
this.refreshData(); this.refreshData();
} }
}, },
......
...@@ -143,12 +143,13 @@ ...@@ -143,12 +143,13 @@
chooseTimeIndex: 1000, chooseTimeIndex: 1000,
pickerOptionsStart: { pickerOptionsStart: {
disabledDate: (time) => { disabledDate: (time) => {
const now = new Date(); const now = new Date();
const day = now.getDay(); const day = now.getDay();
const oneDayTime = 24 * 60 * 60 * 1000; const oneDayTime = 24 * 60 * 60 * 1000;
const SundayTime = ((7 - day) * oneDayTime) + 21 * 24 * 60 * 60 * 1000; const SundayTime = (7 - day) * oneDayTime + 21 * 24 * 60 * 60 * 1000;
return ( return (
time.getTime() + 1 * 24 * 60 * 60 * 1000 < new Date() || time.getTime() > new Date().getTime() + SundayTime time.getTime() + 1 * 24 * 60 * 60 * 1000 < new Date() ||
time.getTime() > new Date().getTime() + SundayTime
); );
}, },
}, },
...@@ -179,11 +180,13 @@ ...@@ -179,11 +180,13 @@
this.getLeisureTime(this.chooseTime); this.getLeisureTime(this.chooseTime);
}, },
nextChangeData() { nextChangeData() {
const now = new Date(); const now = new Date();
const day = now.getDay(); const day = now.getDay();
const SundayTime = 7 - day; const SundayTime = 7 - day;
console.log(SundayTime, 'SundayTime'); console.log(SundayTime, 'SundayTime');
const maxDate = dayjs(new Date()).add((SundayTime + 20), 'day').unix(); const maxDate = dayjs(new Date())
.add(SundayTime + 20, 'day')
.unix();
if (dayjs(this.chooseTime).unix() > maxDate) { if (dayjs(this.chooseTime).unix() > maxDate) {
this.$message({ this.$message({
message: '时间不能超过28天', message: '时间不能超过28天',
...@@ -232,7 +235,7 @@ ...@@ -232,7 +235,7 @@
}) })
.catch(function () { .catch(function () {
vm.isClick = false; vm.isClick = false;
// vm.$message.error(err.message); // vm.$message.error(err.message);
}); });
}, },
cancel() { cancel() {
......
...@@ -124,8 +124,7 @@ ...@@ -124,8 +124,7 @@
], ],
}, },
allTilst: [], allTilst: [],
allList: { allList: {},
},
}; };
}, },
watch: { watch: {
...@@ -251,7 +250,7 @@ ...@@ -251,7 +250,7 @@
if (checkedNodes.length > 0) { if (checkedNodes.length > 0) {
this.model.triageDepartmentId = checkedNodes[0].value; this.model.triageDepartmentId = checkedNodes[0].value;
this.model.triageDepartment = checkedNodes[0].label; this.model.triageDepartment = checkedNodes[0].label;
}else{ } else {
this.model.triageDepartmentId = ''; this.model.triageDepartmentId = '';
this.model.triageDepartment = ''; this.model.triageDepartment = '';
} }
......
...@@ -532,7 +532,7 @@ ...@@ -532,7 +532,7 @@
getDepartments, getDepartments,
diagnoseExport, diagnoseExport,
diagnoseList, diagnoseList,
departmentAll departmentAll,
} from '@/api/diagnosis'; } from '@/api/diagnosis';
import MatchComponent from '@/components/common/match'; import MatchComponent from '@/components/common/match';
...@@ -658,7 +658,7 @@ ...@@ -658,7 +658,7 @@
triageDepartment: '', triageDepartment: '',
departmentId: '', departmentId: '',
allTilst: [], allTilst: [],
allList: {} allList: {},
}; };
}, },
watch: { watch: {
...@@ -676,7 +676,7 @@ ...@@ -676,7 +676,7 @@
}, },
created() { created() {
vm = this; vm = this;
// this.getDep(); // this.getDep();
}, },
mounted() { mounted() {
this.setTableHeight(); this.setTableHeight();
...@@ -729,15 +729,18 @@ ...@@ -729,15 +729,18 @@
console.log(arr); console.log(arr);
this.allTilst = arr; this.allTilst = arr;
}, },
changeDepart() { changeDepart() {
const checkedNodes = this.$refs['cascader'].getCheckedNodes(); const checkedNodes = this.$refs['cascader'].getCheckedNodes();
if (checkedNodes.length > 0) { if (checkedNodes.length > 0) {
this.searchParam.triageDepartmentId = checkedNodes[0].value; this.searchParam.triageDepartmentId = checkedNodes[0].value;
}else{ } else {
this.searchParam.triageDepartmentId = ''; this.searchParam.triageDepartmentId = '';
} }
console.log(this.searchParam.triageDepartmentId, 'this.searchParam.triageDepartmentId'); console.log(
this.searchParam.triageDepartmentId,
'this.searchParam.triageDepartmentId'
);
}, },
changeStartTime(time) { changeStartTime(time) {
this.rangeTimeData = time this.rangeTimeData = time
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
}" }"
>{{ data.text }}</span> >{{ data.text }}</span>
</template> </template>
</el-cascader> </el-cascader>
<el-date-picker <el-date-picker
v-model="dateTime" v-model="dateTime"
class="serviceSchedule_dateTime" class="serviceSchedule_dateTime"
...@@ -268,7 +268,7 @@ ...@@ -268,7 +268,7 @@
const checkedNodes = this.$refs['cascader'].getCheckedNodes(); const checkedNodes = this.$refs['cascader'].getCheckedNodes();
if (checkedNodes.length > 0) { if (checkedNodes.length > 0) {
this.departmentId = checkedNodes[0].value; this.departmentId = checkedNodes[0].value;
}else{ } else {
this.departmentId = ''; this.departmentId = '';
} }
}, },
......
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
const checkedNodes = this.$refs['cascader'].getCheckedNodes(); const checkedNodes = this.$refs['cascader'].getCheckedNodes();
if (checkedNodes.length > 0) { if (checkedNodes.length > 0) {
this.searchParam.departmentId = checkedNodes[0].value; this.searchParam.departmentId = checkedNodes[0].value;
}else{ } else {
this.searchParam.departmentId = ''; this.searchParam.departmentId = '';
} }
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册