Commit 495b0fb7 authored by 陈明豪's avatar 陈明豪

bug修改

parent 1bdc4280
......@@ -89,7 +89,7 @@ export default {
data() {
const contentNotNull = (rule, value, callback) => {
const contentValue = html2Text(value)
if (contentValue.length === 0) {
if ((contentValue.length === 0 || contentValue.trim().length === 0) && !value.includes('img')) {
callback(new Error('请输入内容详情'))
} else {
callback()
......
......@@ -286,6 +286,7 @@
clearable
placeholder="请选择病房类型"
style="width: 100%"
disabled="true"
>
<el-option
v-for="(item, index) in dict.type.ward_type"
......@@ -492,6 +493,8 @@ export default {
changeWardType(prescribingForm) {
if (prescribingForm.diseaseLevel === '1') {
prescribingForm.wardType = '2'
} else if (prescribingForm.diseaseLevel === null || prescribingForm.diseaseLevel === '') {
prescribingForm.wardType = null
} else {
prescribingForm.wardType = '1'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment