提交 9c3630dc 编写于 作者: qian.jie's avatar qian.jie

排班人数限制提醒

上级 2387ed55
...@@ -126,6 +126,9 @@ ...@@ -126,6 +126,9 @@
} }
.maxNum-first-show { .maxNum-first-show {
padding: 20px 15px 5px 15px; padding: 20px 15px 5px 15px;
.show-sep-num {
color: red;
}
} }
.reset-doctor-schedu { .reset-doctor-schedu {
padding: 10px 15px 5px 15px; padding: 10px 15px 5px 15px;
......
...@@ -51,8 +51,12 @@ ...@@ -51,8 +51,12 @@
</div> </div>
</div> </div>
<div class="maxNum-first-show"> <div class="maxNum-first-show">
<span>每小时接诊上限人数: {{ showMaxNum }} </span> <span>每小时接诊上限人数:
<p>优先级 {{ showFirNum }}</p> <span :class="showMaxNum <= 0 ? 'show-sep-num' : ''">{{
showMaxNum > 0 ? showMaxNum : 0
}}</span>
</span>
<p>优先级: {{ showFirNum }}</p>
</div> </div>
<div <div
v-if="this.schedulingType != 3" v-if="this.schedulingType != 3"
...@@ -259,8 +263,8 @@ ...@@ -259,8 +263,8 @@
copyArr: [], copyArr: [],
centerDialogVisible: false, centerDialogVisible: false,
maxNumValue: '', maxNumValue: '',
showFirNum:'', showFirNum: '',
showMaxNum:'' showMaxNum: '',
}; };
}, },
computed: {}, computed: {},
...@@ -330,8 +334,8 @@ ...@@ -330,8 +334,8 @@
console.log(res, 'res'); console.log(res, 'res');
this.currentIndex = res.data.level; this.currentIndex = res.data.level;
this.maxNumValue = res.data.preNum; this.maxNumValue = res.data.preNum;
this.showFirNum = res.data.level, (this.showFirNum = res.data.level),
this.showMaxNum = res.data.preNum; (this.showMaxNum = res.data.preNum);
} }
}); });
}, },
...@@ -709,6 +713,12 @@ ...@@ -709,6 +713,12 @@
this.$message.error(res.message || '排班保存失败'); this.$message.error(res.message || '排班保存失败');
} }
}); });
if (!this.maxNumValue && this.maxNumValue != 0) {
return this.$message({
message: '请设置优先级和接诊上限设置',
type: 'warning',
});
}
} }
}, },
dateFormat(fmt, date2) { dateFormat(fmt, date2) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册