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

修改时间功能

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