|
@@ -150,14 +150,15 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="疾病名称" prop="diseaseName" >
|
|
|
- <el-select v-model="dataForm.diseaseName">
|
|
|
+ <el-select v-model="dataForm.diseaseName" style="width: 100%">
|
|
|
<el-option v-for="item in illnesList" :key="item.id" :value="item.idseaseName" :label="item.idseaseName"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="操作人" prop="doctorId">
|
|
|
<el-select
|
|
|
@change="onChangeMan($event)"
|
|
|
- v-model="dataForm.doctorId">
|
|
|
+ v-model="dataForm.doctorId"
|
|
|
+ style="width: 100%">
|
|
|
<el-option
|
|
|
v-for="item in manList"
|
|
|
:key="item.id"
|
|
@@ -208,7 +209,7 @@ export default {
|
|
|
pigCode: ''
|
|
|
},
|
|
|
dataRule: {
|
|
|
- pigId: [
|
|
|
+ pigCode: [
|
|
|
{ required: true, message: '猪只耳标不能为空', trigger: 'blur' }
|
|
|
],
|
|
|
diseaseName: [
|
|
@@ -287,7 +288,7 @@ export default {
|
|
|
id: this.dataForm.id == '' ? undefined : this.dataForm.id,
|
|
|
pigCode: this.dataForm.pigCode,
|
|
|
diseaseName: this.dataForm.diseaseName,
|
|
|
- manId: this.dataForm.manId,
|
|
|
+ manId: this.dataForm.doctorId,
|
|
|
manName: this.dataForm.manName,
|
|
|
medicalRecordId: this.dataForm.medicalRecordId
|
|
|
}
|
|
@@ -313,11 +314,12 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
addOrUpdateHandle (row) {
|
|
|
+ console.log(row);
|
|
|
this.visibleDialog = true
|
|
|
this.dataForm = {
|
|
|
id: row.id,
|
|
|
diseaseName: row.diseaseName,
|
|
|
- manId: row.manId,
|
|
|
+ doctorId: row.manId,
|
|
|
manName: row.manName,
|
|
|
medicalRecordId: row.medicalRecordId,
|
|
|
pigCode: row.pigCode
|