|
|
|
@ -56,7 +56,7 @@ |
|
|
|
:visible.sync="dialogVisible" |
|
|
|
width="53%" |
|
|
|
> |
|
|
|
<el-form ref="form" :model="form" label-width="80px"> |
|
|
|
<el-form ref="form" :model="form" label-width="80px" :rules="rules"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="编号"> |
|
|
|
@ -64,12 +64,12 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="名称"> |
|
|
|
<el-form-item label="名称" prop="displayName"> |
|
|
|
<el-input v-model="form.displayName"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="标本类型"> |
|
|
|
<el-form-item label="标本类型" prop="sampleTypeId"> |
|
|
|
<el-select v-model="form.sampleTypeId" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in sampleTypeId" |
|
|
|
@ -82,7 +82,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="标本容器"> |
|
|
|
<el-form-item label="标本容器" prop="sampleContainerId"> |
|
|
|
<el-select |
|
|
|
v-model="form.sampleContainerId" |
|
|
|
placeholder="请选择" |
|
|
|
@ -264,8 +264,18 @@ import { specimenlist, containerlist } from "@/request/systemapi"; |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
rules: { |
|
|
|
displayName: [ |
|
|
|
{ required: true, message: "请输入活动名称", trigger: "blur" }, |
|
|
|
], |
|
|
|
sampleTypeId: [ |
|
|
|
{ required: true, message: "请选择标本类型", trigger: "change" }, |
|
|
|
], |
|
|
|
sampleContainerId: [ |
|
|
|
{ required: true, message: "请选择标本容器", trigger: "change" }, |
|
|
|
], |
|
|
|
}, |
|
|
|
isdislob: true, |
|
|
|
|
|
|
|
filetelists: [], |
|
|
|
flitvalues: [], |
|
|
|
checked: [], |
|
|
|
@ -585,27 +595,31 @@ export default { |
|
|
|
}, |
|
|
|
//确定新增或者编辑 |
|
|
|
addoredit() { |
|
|
|
if (this.title == 1) { |
|
|
|
samplegroup({ |
|
|
|
displayName: this.form.displayName, |
|
|
|
sampleTypeId: this.form.sampleTypeId, |
|
|
|
sampleContainerId: this.form.sampleContainerId, |
|
|
|
}).then((res) => { |
|
|
|
this.$message.success("新增成功"); |
|
|
|
this.getlist(); |
|
|
|
this.dialogVisible = false; |
|
|
|
}); |
|
|
|
} else if (this.title == 2) { |
|
|
|
barcodeediting(this.form.id, { |
|
|
|
displayName: this.form.displayName, |
|
|
|
sampleTypeId: this.form.sampleTypeId, |
|
|
|
sampleContainerId: this.form.sampleContainerId, |
|
|
|
}).then((res) => { |
|
|
|
this.$message.success("修改成功"); |
|
|
|
this.dialogVisible = false; |
|
|
|
this.getlist(); |
|
|
|
}); |
|
|
|
} |
|
|
|
this.$refs.form.validate((v) => { |
|
|
|
if (v) { |
|
|
|
if (this.title == 1) { |
|
|
|
samplegroup({ |
|
|
|
displayName: this.form.displayName, |
|
|
|
sampleTypeId: this.form.sampleTypeId, |
|
|
|
sampleContainerId: this.form.sampleContainerId, |
|
|
|
}).then((res) => { |
|
|
|
this.$message.success("新增成功"); |
|
|
|
this.getlist(); |
|
|
|
this.dialogVisible = false; |
|
|
|
}); |
|
|
|
} else if (this.title == 2) { |
|
|
|
barcodeediting(this.form.id, { |
|
|
|
displayName: this.form.displayName, |
|
|
|
sampleTypeId: this.form.sampleTypeId, |
|
|
|
sampleContainerId: this.form.sampleContainerId, |
|
|
|
}).then((res) => { |
|
|
|
this.$message.success("修改成功"); |
|
|
|
this.dialogVisible = false; |
|
|
|
this.getlist(); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
//新增弹框 |
|
|
|
addll() { |
|
|
|
|