|
@@ -24,6 +24,17 @@
|
|
<el-option v-for="item of types" :key="item" :label="item" :value="item" />
|
|
<el-option v-for="item of types" :key="item" :label="item" :value="item" />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="科室" prop="department">
|
|
|
|
+ <el-input v-model="ruleForm.department" placeholder="请输入" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="单项否决" prop="one_no">
|
|
|
|
+ <el-select v-model="ruleForm.one_no" clearable placeholder="请选择" style="width: 100%;">
|
|
|
|
+ <el-option v-for="item of oneNos" :key="item.name" :label="item.name" :value="item.value" />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="质控节点" prop="node">
|
|
|
|
+ <el-input v-model="ruleForm.node" placeholder="请输入" />
|
|
|
|
+ </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="data.bSwitch = false">取 消</el-button>
|
|
<el-button @click="data.bSwitch = false">取 消</el-button>
|
|
@@ -65,7 +76,10 @@ export default {
|
|
notice: '',
|
|
notice: '',
|
|
category: '',
|
|
category: '',
|
|
score: '',
|
|
score: '',
|
|
- type: ''
|
|
|
|
|
|
+ type: '',
|
|
|
|
+ department: '',
|
|
|
|
+ one_no: '',
|
|
|
|
+ node: ''
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
title: [
|
|
title: [
|
|
@@ -82,8 +96,18 @@ export default {
|
|
],
|
|
],
|
|
type: [
|
|
type: [
|
|
{ required: true, message: '请输入', trigger: 'blur' }
|
|
{ required: true, message: '请输入', trigger: 'blur' }
|
|
|
|
+ ],
|
|
|
|
+ department: [
|
|
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
|
|
+ ],
|
|
|
|
+ one_no: [
|
|
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
|
|
+ ],
|
|
|
|
+ node: [
|
|
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
]
|
|
]
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ oneNos: [{ name: '否', value: 0 }, { name: '是', value: 1 }]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -93,13 +117,16 @@ export default {
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
if (this.data.row.id) {
|
|
if (this.data.row.id) {
|
|
- const { title, notice, category, id, score, type } = this.data.row
|
|
|
|
|
|
+ const { title, notice, category, id, score, type, department, one_no, node } = this.data.row
|
|
this.ruleForm.title = title
|
|
this.ruleForm.title = title
|
|
this.ruleForm.notice = notice
|
|
this.ruleForm.notice = notice
|
|
this.ruleForm.category = category
|
|
this.ruleForm.category = category
|
|
this.ruleForm.id = id
|
|
this.ruleForm.id = id
|
|
this.ruleForm.score = score
|
|
this.ruleForm.score = score
|
|
this.ruleForm.type = type
|
|
this.ruleForm.type = type
|
|
|
|
+ this.ruleForm.department = department
|
|
|
|
+ this.ruleForm.node = node
|
|
|
|
+ this.ruleForm.one_no = one_no
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|