|
|
|
@ -61,7 +61,7 @@ |
|
|
|
:title="title == 1 ? '新增' : '编辑'" |
|
|
|
:visible.sync="dialogVisible" |
|
|
|
width="75%" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:close-on-click-modal="false" |
|
|
|
> |
|
|
|
<el-form ref="form" :model="form" label-width="80px" :rules="rules"> |
|
|
|
<el-row> |
|
|
|
@ -169,16 +169,18 @@ |
|
|
|
</el-select> |
|
|
|
<span style="margin-left: 10%; padding: 5px">搜索选择</span> |
|
|
|
<el-select |
|
|
|
@change="chooseapackage" |
|
|
|
value-key="id" |
|
|
|
filterable |
|
|
|
v-model="flitvalues" |
|
|
|
placeholder="请选择" |
|
|
|
style="margin-top: 5px" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in filetelists" |
|
|
|
v-for="item in medicalpackage" |
|
|
|
:key="item.id" |
|
|
|
:label="item.displayName" |
|
|
|
:value="item.id" |
|
|
|
:value="item" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
@ -365,7 +367,9 @@ export default { |
|
|
|
leftobj: {}, |
|
|
|
rightobj: {}, |
|
|
|
nums: 0, |
|
|
|
curRow:{} |
|
|
|
curRow: {}, |
|
|
|
medicalpackagevalue: "", |
|
|
|
medicalpackage: [], //套餐包含的项目 |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -373,9 +377,21 @@ export default { |
|
|
|
this.gitprojectcategory(); |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.getmedicalpackage(); |
|
|
|
this.rowDrop(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
chooseapackage(v) { |
|
|
|
this.rightdata.push({ displayName: v.displayName }); |
|
|
|
console.log(v); |
|
|
|
}, |
|
|
|
//体检套餐需要的项目 |
|
|
|
getmedicalpackage() { |
|
|
|
getapi("/api/app/item").then((res) => { |
|
|
|
this.medicalpackage = res.data.items; |
|
|
|
console.log(res); |
|
|
|
}); |
|
|
|
}, |
|
|
|
Onsubmit() { |
|
|
|
let sampleGroupId = this.form.id; |
|
|
|
console.log(this.form.id); |
|
|
|
@ -545,7 +561,7 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
toppings() { |
|
|
|
this.form={...this.curRow} |
|
|
|
this.form = { ...this.curRow }; |
|
|
|
if (this.form.id == undefined) { |
|
|
|
this.$message.warning("请选择操作的数据"); |
|
|
|
} else { |
|
|
|
@ -560,7 +576,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
topping() { |
|
|
|
this.form={...this.curRow} |
|
|
|
this.form = { ...this.curRow }; |
|
|
|
if (this.form.id == undefined) { |
|
|
|
this.$message.warning("请选择操作的数据"); |
|
|
|
} else { |
|
|
|
@ -576,7 +592,7 @@ export default { |
|
|
|
}, |
|
|
|
//删除 |
|
|
|
delets(row) { |
|
|
|
this.form={...this.curRow} |
|
|
|
this.form = { ...this.curRow }; |
|
|
|
if (this.form.id == undefined) { |
|
|
|
this.$message.warning("请选择删除的数据"); |
|
|
|
} else { |
|
|
|
@ -596,7 +612,7 @@ export default { |
|
|
|
}, |
|
|
|
//编辑弹框 |
|
|
|
editpopup() { |
|
|
|
this.form={...this.curRow} |
|
|
|
this.form = { ...this.curRow }; |
|
|
|
if (this.form.id == undefined) { |
|
|
|
this.$message.warning("请点击选择操作的数据"); |
|
|
|
} else { |
|
|
|
@ -635,7 +651,7 @@ export default { |
|
|
|
rowclick(val) { |
|
|
|
getapi(`/api/app/medical-package/${val.id}`).then((res) => { |
|
|
|
// this.form = res.data; |
|
|
|
this.curRow={...res.data} |
|
|
|
this.curRow = { ...res.data }; |
|
|
|
console.log(res); |
|
|
|
}); |
|
|
|
getapi( |
|
|
|
|