|
|
@ -69,7 +69,17 @@ |
|
|
选择单位或部门: |
|
|
选择单位或部门: |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-cascader :options="departmentdata" :show-all-levels="false" :props="{ value:'id',label: 'displayName',children: 'treeChildren'}"></el-cascader> |
|
|
|
|
|
|
|
|
<el-cascader |
|
|
|
|
|
@change="onchange" |
|
|
|
|
|
v-model="form.customerOrgId" |
|
|
|
|
|
:options="departmentdata" |
|
|
|
|
|
:props="{ |
|
|
|
|
|
checkStrictly: true, |
|
|
|
|
|
value: 'id', |
|
|
|
|
|
label: 'displayName', |
|
|
|
|
|
children: 'treeChildren', |
|
|
|
|
|
}" |
|
|
|
|
|
></el-cascader> |
|
|
<!-- <el-select v-model="value" placeholder="请选择" @change="onchange"> |
|
|
<!-- <el-select v-model="value" placeholder="请选择" @change="onchange"> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="item in departmentdata" |
|
|
v-for="item in departmentdata" |
|
|
@ -205,11 +215,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
submitto() { |
|
|
submitto() { |
|
|
|
|
|
|
|
|
if (this.form.customerOrgId == undefined) { |
|
|
if (this.form.customerOrgId == undefined) { |
|
|
this.$message.warning("请选择单位"); |
|
|
this.$message.warning("请选择单位"); |
|
|
} else { |
|
|
} else { |
|
|
this.form= Object.assign(this.form,this.formrow) |
|
|
|
|
|
|
|
|
this.form = Object.assign(this.form, this.formrow); |
|
|
postapi( |
|
|
postapi( |
|
|
"/api/app/patientregister/createpatientregisterexcel", |
|
|
"/api/app/patientregister/createpatientregisterexcel", |
|
|
this.form |
|
|
this.form |
|
|
@ -224,8 +233,14 @@ export default { |
|
|
console.log(this.form.customerOrgId); |
|
|
console.log(this.form.customerOrgId); |
|
|
}, |
|
|
}, |
|
|
onchange(id) { |
|
|
onchange(id) { |
|
|
this.form.customerOrgId = id; |
|
|
|
|
|
console.log(id); |
|
|
|
|
|
|
|
|
// this.form.customerOrgId = id; |
|
|
|
|
|
// console.log(id); |
|
|
|
|
|
// this.form.customerOrgId=this.form.customerOrgId[0] |
|
|
|
|
|
this.form.customerOrgId.forEach((item) => { |
|
|
|
|
|
// console.log(item); |
|
|
|
|
|
this.form.customerOrgId = item; |
|
|
|
|
|
}); |
|
|
|
|
|
console.log(this.form.customerOrgId); |
|
|
}, |
|
|
}, |
|
|
splices() { |
|
|
splices() { |
|
|
if (this.nameType == 1) { |
|
|
if (this.nameType == 1) { |
|
|
@ -246,10 +261,20 @@ export default { |
|
|
slicetdata() { |
|
|
slicetdata() { |
|
|
console.log("2"); |
|
|
console.log("2"); |
|
|
getapi("/api/app/customer-org/by-code-all").then((res) => { |
|
|
getapi("/api/app/customer-org/by-code-all").then((res) => { |
|
|
|
|
|
this.gettypelist(res.data); |
|
|
this.departmentdata = res.data; |
|
|
this.departmentdata = res.data; |
|
|
console.log(res); |
|
|
console.log(res); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
gettypelist(listdata) { |
|
|
|
|
|
listdata.forEach((items) => { |
|
|
|
|
|
if (items.treeChildren.length > 0) { |
|
|
|
|
|
this.gettypelist(items.treeChildren); |
|
|
|
|
|
} else { |
|
|
|
|
|
items.treeChildren = undefined; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
tablenext() { |
|
|
tablenext() { |
|
|
if (JSON.stringify(this.formrow) == "{}") { |
|
|
if (JSON.stringify(this.formrow) == "{}") { |
|
|
this.$message.warning("请选择数据"); |
|
|
this.$message.warning("请选择数据"); |
|
|
|