|
|
|
@ -76,9 +76,9 @@ |
|
|
|
<el-select v-model="form.forSexId" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in forSexId" |
|
|
|
:key="item.sexId" |
|
|
|
:key="item.id" |
|
|
|
:label="item.displayName" |
|
|
|
:value="item.sexId" |
|
|
|
:value="item.id" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
@ -608,17 +608,19 @@ export default { |
|
|
|
methods: { |
|
|
|
Onsubmit() { |
|
|
|
let sampleGroupId = this.form.id; |
|
|
|
console.log(this.form.id); |
|
|
|
console.log(this.rightdata); |
|
|
|
console.log(sampleGroupId); |
|
|
|
let sdate = []; |
|
|
|
console.log(this.rightdata,'2222'); |
|
|
|
this.rightdata.forEach((element) => { |
|
|
|
let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id }; |
|
|
|
sdate.push(sss); |
|
|
|
}); |
|
|
|
this.leftdata.forEach((element) => { |
|
|
|
let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id }; |
|
|
|
console.log('项目元素id',element.id); |
|
|
|
console.log('组合项目id',sampleGroupId); |
|
|
|
let sss = { itemId: element.id, asbitemId: sampleGroupId }; |
|
|
|
sdate.push(sss); |
|
|
|
}); |
|
|
|
// this.leftdata.forEach((element) => { |
|
|
|
// let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id }; |
|
|
|
// sdate.push(sss); |
|
|
|
// }); |
|
|
|
console.log(sdate); |
|
|
|
if (sampleGroupId == undefined) { |
|
|
|
this.$message.warning("请选择列表"); |
|
|
|
@ -715,7 +717,8 @@ export default { |
|
|
|
//项目类别选择 |
|
|
|
ischangs(v) { |
|
|
|
console.log(v); |
|
|
|
getapi(`/api/app/diagnosis/in-item-type/${v}`).then((res) => { |
|
|
|
//`/api/app/diagnosis/in-item-type/${v}` |
|
|
|
getapi(`/api/app/asbitem/in-item-type/${v}`).then((res) => { |
|
|
|
console.log(res); |
|
|
|
this.leftdata = res.data; |
|
|
|
}); |
|
|
|
@ -817,6 +820,7 @@ export default { |
|
|
|
//项目类别 |
|
|
|
projectlist().then((res) => { |
|
|
|
this.itemTypeId = res.data.items; |
|
|
|
|
|
|
|
}); |
|
|
|
//仪器类别 |
|
|
|
instrumentlist().then((res) => { |
|
|
|
@ -894,13 +898,18 @@ export default { |
|
|
|
addll() { |
|
|
|
this.dialogVisible = true; |
|
|
|
this.title = 1; |
|
|
|
|
|
|
|
//性别 |
|
|
|
examinationgender().then((res) => { |
|
|
|
console.log(res); |
|
|
|
this.forSexId = res.data; |
|
|
|
console.log(this.forSexId); |
|
|
|
}); |
|
|
|
//项目类别 |
|
|
|
projectlist().then((res) => { |
|
|
|
this.itemTypeId = res.data.items; |
|
|
|
|
|
|
|
this.itemTypeId = res.data; |
|
|
|
|
|
|
|
}); |
|
|
|
//仪器类别 |
|
|
|
instrumentlist().then((res) => { |
|
|
|
@ -914,11 +923,12 @@ export default { |
|
|
|
rowick(row) { |
|
|
|
asbitemgetid(row.id).then((res) => { |
|
|
|
this.form = res.data; |
|
|
|
|
|
|
|
}); |
|
|
|
getapi( |
|
|
|
`/api/app/item-template-detail/item-template-in-item?ItemTemplateId=${row.id}` |
|
|
|
`/api/app/asbitem-detail/asbitem-detail-in-item?AsbitemId=${row.id}` |
|
|
|
).then((res) => { |
|
|
|
console.log(res); |
|
|
|
console.log(res,'右侧'); |
|
|
|
let dq = res.data; |
|
|
|
if (dq.length > 0) { |
|
|
|
this.rightdata = []; |
|
|
|
|