提交 f00d37a0 编写于 作者: peng.zhao's avatar peng.zhao

修改时间功能

上级 b1317d3f
......@@ -17,4 +17,4 @@ VUE_APP_IS_LOCAL=true
VUE_APP_APPID=wxf4e66242d31c81c2
#本地token
VUE_APP_TOKEN=A696F7FD7DD5429B9CB693E91BD3A640
VUE_APP_TOKEN=EAA2E8A309DE492A8ACCE2F2C281401D
......@@ -11,6 +11,7 @@
<div class="choose-diagnosis-doctor">
<el-select
v-model="formData.receptionId"
:disabled="onlyChangeTime"
filterable
placeholder="请选择接诊医生"
class="set-width"
......@@ -158,6 +159,11 @@
let vm = null;
export default {
props: {
// 修改时间弹窗,不允许修改医生
onlyChangeTime: {
type: Boolean,
default: false,
},
diagnosisDoctorVisible: {
type: Boolean,
default: false,
......@@ -196,7 +202,7 @@
rateValue: 0,
colors: ['#0D9078', '#0D9078', '#0D9078'],
show: false,
title: '设置接诊医生',
// title: '设置接诊医生',
confirmTxt: '确定',
cancleTxt: '',
isClick: false,
......@@ -250,6 +256,15 @@
maxTodayNum: 0,
};
},
computed: {
title() {
if(this.onlyChangeTime) {
return '设置预约时间(问诊时间)';
} else {
return '设置接诊医生';
}
}
},
watch: {
diagnoseType: function () {
this.getDoctorList();
......
......@@ -196,7 +196,7 @@
type="primary"
size="small"
class="btn"
@click="changeTime(scope.row)"
@click="changeTimeNew(scope.row)"
>
修改时间
</el-button>
......@@ -394,6 +394,10 @@
waitMatchTime(row) {
this.$emit('waitMatchTime', row);
},
// 设为待确认时间
changeTimeNew(row) {
this.$emit('waitMatchTime', row, true);
},
// 重新匹配医生
reMatchDot(row, type) {
this.$emit('reMatchDot', row, type);
......
......@@ -539,6 +539,7 @@
:diagnosis-doctor-visible.sync="diagnosisDoctorVisible"
:diagnose-log-id="diagnoseLogId"
:diagnose-type="diagnoseType"
:only-change-time="onlyChangeTime"
:doctor-id="doctorId"
:range-time-data="rangeTimeData"
:consult-road="consultRoad"
......@@ -658,6 +659,7 @@
},
data() {
return {
onlyChangeTime: false,
saveFresh: true,
isUp: false,
endFlag: false,
......@@ -1384,7 +1386,8 @@
this.bizType = 8;
},
// 设为待确认时间
waitMatchTime(row) {
waitMatchTime(row, onlyChangeTime) {
this.onlyChangeTime = onlyChangeTime;
this.doctorInfo = row;
this.rangeTimeData = row.assistantBeginTime;
this.diagnoseFlag = true;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册