|
|
|
@ -115,10 +115,15 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="8" style="line-height: 40px"> |
|
|
|
是否为体检中心 |
|
|
|
<el-radio-group v-model="form.isPeis"> |
|
|
|
<el-checkbox |
|
|
|
v-model="isPeis" |
|
|
|
:checked="isPeis" |
|
|
|
@change="checkboxchange" |
|
|
|
></el-checkbox> |
|
|
|
<!-- <el-radio-group v-model="form.isPeis"> |
|
|
|
<el-radio label="Y">是</el-radio> |
|
|
|
<el-radio label="N">否</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-radio-group> --> |
|
|
|
<!-- <el-radio v-model="form.isPeis" label="Y">是</el-radio> |
|
|
|
<el-radio v-model="form.isPeis" label="N">否</el-radio> --> |
|
|
|
</el-col> |
|
|
|
@ -132,7 +137,10 @@ |
|
|
|
</el-row> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button> |
|
|
|
<el-button type="primary" @click="organizationtreeaddoredit" class="bulletcommit" |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
@click="organizationtreeaddoredit" |
|
|
|
class="bulletcommit" |
|
|
|
>确 定</el-button |
|
|
|
> |
|
|
|
</span> |
|
|
|
@ -152,6 +160,7 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
showcheckbox: false, |
|
|
|
isPeis: true, |
|
|
|
defaultKeys: [], |
|
|
|
selecttable: [], //科室的选择选中 |
|
|
|
form: { |
|
|
|
@ -183,6 +192,14 @@ export default { |
|
|
|
this.getonorganization(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
checkboxchange(v) { |
|
|
|
if (v == true) { |
|
|
|
this.form.isPeis = "Y"; |
|
|
|
} else { |
|
|
|
this.form.isPeis = "N"; |
|
|
|
} |
|
|
|
console.log(this.isPeis); |
|
|
|
}, |
|
|
|
cascaderchang(v) { |
|
|
|
console.log(this.departmentname); |
|
|
|
this.departmentnames = v[v.length - 1]; |
|
|
|
@ -207,7 +224,7 @@ export default { |
|
|
|
closethebulletbox() { |
|
|
|
this.dialogVisible = false; |
|
|
|
this.form = {}; |
|
|
|
this.form.isPeis = "N"; |
|
|
|
// this.form.isPeis = "N"; |
|
|
|
}, |
|
|
|
//确定新增或者编辑 |
|
|
|
organizationtreeaddoredit() { |
|
|
|
@ -266,7 +283,7 @@ export default { |
|
|
|
this.dialogVisible = false; |
|
|
|
// this.form = {}; |
|
|
|
this.form.displayName = ""; |
|
|
|
this.form.isPeis = "N"; |
|
|
|
// this.form.isPeis = "N"; |
|
|
|
this.getonorganization(); |
|
|
|
}); |
|
|
|
} |
|
|
|
@ -324,6 +341,8 @@ export default { |
|
|
|
console.log(this.form); |
|
|
|
} |
|
|
|
|
|
|
|
// 弹出是这里打开的不编辑哪里 那个事件是打开弹出的 |
|
|
|
|
|
|
|
// if(this.natureoptions) |
|
|
|
// console.log(node, data); |
|
|
|
// if (this.natureoptions.length == 0) { |
|
|
|
@ -373,8 +392,16 @@ export default { |
|
|
|
console.log(data); |
|
|
|
}); |
|
|
|
}, |
|
|
|
//编辑组织 |
|
|
|
//编辑组织这里 |
|
|
|
rena(node, data) { |
|
|
|
console.log(data, "11111111111111111"); |
|
|
|
|
|
|
|
if (data.parentId == null) { |
|
|
|
this.isPeis = true; |
|
|
|
} else { |
|
|
|
this.isPeis = false; |
|
|
|
} |
|
|
|
|
|
|
|
let a = this.$refs.tree.getNode(data.id).parent.data.displayName; |
|
|
|
if (a == undefined) { |
|
|
|
this.departmentname = "已是最上级"; |
|
|
|
@ -391,11 +418,19 @@ export default { |
|
|
|
this.title = 2; |
|
|
|
console.log(this.form.isPeis); |
|
|
|
// this.selecttable.push(data); |
|
|
|
|
|
|
|
|
|
|
|
this.showcheckbox = true; |
|
|
|
this.form = data; |
|
|
|
this.form.isPeis = "N"; |
|
|
|
// console.log(this.selecttable, 5555); |
|
|
|
|
|
|
|
this.isPeis = false; |
|
|
|
//体检中心 |
|
|
|
getapi(`/api/app/organization-units?Id=${data.id}`).then((res) => { |
|
|
|
if (res.data.isPeis == "Y") { |
|
|
|
this.isPeis = true; |
|
|
|
} |
|
|
|
// console.log(res,'查询'); |
|
|
|
}); |
|
|
|
getapi( |
|
|
|
`/api/app/organizationunit/getbycodeparent?OrganizationUnitId=${data.id}` |
|
|
|
).then((res) => { |
|
|
|
|