|
@@ -91,6 +91,7 @@
|
|
|
</el-autocomplete>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="质控项目" prop="title">
|
|
|
<el-autocomplete
|
|
@@ -122,6 +123,15 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-row :gutter="0">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="质控类别" prop="cate">
|
|
|
+ <el-select v-model="ruleForm.cate" clearable filterable @change="handleRuleIdChange" placeholder="请选择">
|
|
|
+ <el-option v-for="item of caseCates" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-row :gutter="0">
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="质控内容" prop="basis">
|
|
@@ -171,6 +181,7 @@ export default {
|
|
|
zgjb: []
|
|
|
},
|
|
|
deportments: [],
|
|
|
+ caseCates: [],
|
|
|
ruleForm: {
|
|
|
AAA28: '',
|
|
|
ZYH: '',
|
|
@@ -187,7 +198,8 @@ export default {
|
|
|
basis: '',
|
|
|
level: '',
|
|
|
ZGQX: '',
|
|
|
- score: undefined
|
|
|
+ score: undefined,
|
|
|
+ cate: 1
|
|
|
},
|
|
|
rules: {
|
|
|
AAA28: [
|
|
@@ -199,6 +211,7 @@ export default {
|
|
|
ZKKS: [
|
|
|
{ required: true, message: '请输入', trigger: 'blur' }
|
|
|
],
|
|
|
+
|
|
|
JSR: [
|
|
|
{ required: true, message: '请输入', trigger: 'blur' }
|
|
|
],
|
|
@@ -208,6 +221,9 @@ export default {
|
|
|
ZGJB: [
|
|
|
{ required: true, message: '请选择', trigger: 'blur' }
|
|
|
],
|
|
|
+ cate: [
|
|
|
+ { required: true, message: '请选择', trigger: 'blur' }
|
|
|
+ ],
|
|
|
category: [
|
|
|
{ required: true, message: '请选择', trigger: 'change' }
|
|
|
],
|
|
@@ -233,6 +249,7 @@ export default {
|
|
|
this.getRuleData()
|
|
|
this.getBlInfo()
|
|
|
this.getDeportmentList()
|
|
|
+ this.getCaseCateList()
|
|
|
this.$set(this.ruleForm, 'basis', this.data.text)
|
|
|
},
|
|
|
methods: {
|
|
@@ -284,13 +301,13 @@ export default {
|
|
|
// 获取规则数据
|
|
|
getRuleData() {
|
|
|
getRuleData().then(res => {
|
|
|
- this.$set(this, 'selectData', res.p)
|
|
|
+ this.$set(this, 'selectData', res.data)
|
|
|
})
|
|
|
},
|
|
|
// 获取病历相关信息
|
|
|
getBlInfo() {
|
|
|
getBlInfo({ blbh: this.data.blbh }).then(res => {
|
|
|
- const { AAA28, JSKS, JSR, ZYH } = res.p
|
|
|
+ const { AAA28, JSKS, JSR, ZYH } = res.data
|
|
|
this.$set(this.ruleForm, 'AAA28', AAA28)
|
|
|
this.$set(this.ruleForm, 'ZYH', ZYH)
|
|
|
this.$set(this.ruleForm, 'JSKS', JSKS)
|
|
@@ -310,17 +327,30 @@ export default {
|
|
|
this.$set(this.ruleForm, 'title', title)
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
// 部门
|
|
|
getDeportmentList() {
|
|
|
this.$axios.get('/user/depDropDown').then(res => {
|
|
|
- const { p } = res
|
|
|
- if (Object.keys(p.list).length) {
|
|
|
- for (const key in p.list) {
|
|
|
+ const { data } = res
|
|
|
+ if (data.length) {
|
|
|
+ data.forEach(ele => {
|
|
|
this.deportments.push({
|
|
|
- id: key,
|
|
|
- name: p.list[key]
|
|
|
+ id: ele.dep_id,
|
|
|
+ name: ele.name
|
|
|
})
|
|
|
- }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(error => {
|
|
|
+ console.log(error)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 类别
|
|
|
+ getCaseCateList() {
|
|
|
+ this.$axios.post('/bl_zk/getCaseCate').then(res => {
|
|
|
+ const { data } = res
|
|
|
+
|
|
|
+ if (data.length) {
|
|
|
+ this.caseCates = data
|
|
|
}
|
|
|
}).catch(error => {
|
|
|
console.log(error)
|
|
@@ -345,7 +375,8 @@ export default {
|
|
|
basis,
|
|
|
level,
|
|
|
ZGQX,
|
|
|
- score
|
|
|
+ score,
|
|
|
+ cate
|
|
|
} = this.ruleForm
|
|
|
const params = {
|
|
|
ZYH,
|
|
@@ -362,7 +393,8 @@ export default {
|
|
|
basis,
|
|
|
level,
|
|
|
ZGQX: ZGQX/1000,
|
|
|
- score
|
|
|
+ score,
|
|
|
+ cate
|
|
|
}
|
|
|
this.loading=true
|
|
|
addCaseQuality(params).then(res => {
|