| | |
| | | label-width="100px" |
| | | :inline="true" |
| | | > |
| | | <el-form-item label="主项名称" prop="proParentId"> |
| | | <el-form-item label="主项名称" prop="proParentId" > |
| | | <treeselect |
| | | :disabled="proParent" |
| | | v-model="form.proParentId" |
| | | :options="projectOptions" |
| | | :normalizer="normalizer" |
| | |
| | | placeholder="选择主项名称" |
| | | style="width: 260px" |
| | | @select="obtain" |
| | | |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="明细项目" prop="proName" v-if="key == 'Y'"> |
| | |
| | | children: "children", |
| | | label: "label", |
| | | }, |
| | | proParent:false, |
| | | id: "", |
| | | // 重新渲染表格状态 |
| | | refreshTable: true, |
| | |
| | | }, |
| | | // 节点单击事件 |
| | | handleNodeClick(date) { |
| | | if (date.children) { |
| | | if (date.qf == "0") { |
| | | this.xiugais = true; |
| | | } else { |
| | | this.xiugais = false; |
| | |
| | | handleUpdate1() { |
| | | this.open = true; |
| | | this.form = this.xiugaiList; |
| | | // console.log( this.form ) |
| | | this.proParent = true |
| | | // if(){ |
| | | // this.proParent = true |
| | | // } |
| | | getlist().then((response) => { |
| | | if (response.code == 200) { |
| | | this.loading = false; |
| | | this.projectOptions = []; |
| | | const project = { proId: 0, proName: "主类目", children: [] }; |
| | | project.children = this.handleTree(response.data.list, "proId"); |
| | | this.key = response.data.key; |
| | | this.projectOptions.push(project); |
| | | } |
| | | }) |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | |
| | | this.getData(); |
| | | // this.form = row; |
| | | const proId = row.proId || this.ids; |
| | | this.proParent =false |
| | | getProject(proId).then((response) => { |
| | | this.form = response.data; |
| | | console.log( this.form) |
| | | if (this.form.proParentId === "0") { |
| | | this.showPrise = true; |
| | | this.showRentPrise = false; |
| | |
| | | this.showPrise = false; |
| | | this.showRentPrise = true; |
| | | } |
| | | this.form.deptId = Number(this.form.deptId); |
| | | // this.form.deptId = Number(this.form.deptId); |
| | | if (this.form.proStandard === 0) { |
| | | this.showPrise = true; |
| | | this.showRentPrise = false; |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | getlist().then((response) => { |
| | | if (response.code == 200) { |
| | | this.loading = false; |
| | | this.projectOptions = []; |
| | | const project = { proId: 0, proName: "主类目", children: [] }; |
| | | project.children = this.handleTree(response.data.list, "proId"); |
| | | this.key = response.data.key; |
| | | this.projectOptions.push(project); |
| | | } |
| | | }) |
| | | this.open = true; |
| | | this.title = "体检项目信息维护"; |
| | | }); |