| | |
| | | style="width: 200px" |
| | | clearable |
| | | filterable |
| | | @change="$forceUpdate()" |
| | | > |
| | | <el-option |
| | | v-for="dict in deptOption" |
| | | :key="dict.label" |
| | | :key="dict.id" |
| | | :label="dict.label" |
| | | :value="dict.id" |
| | | ></el-option> |
| | |
| | | v-for="dict in hospList" |
| | | :key="dict.hospAreaName" |
| | | :label="dict.hospAreaName" |
| | | :value="dict.hospAreaName" |
| | | :value="dict.hospAreaId" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | placeholder="请输入标准科室" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="科室类型" prop="deptTypeCode"> |
| | | <el-form-item label="科室类型" prop="parentOrgType"> |
| | | <el-select |
| | | v-model="form.parentOrgType" |
| | | placeholder="请选择科室类型" |
| | |
| | | components: { Treeselect }, |
| | | data() { |
| | | let checkPhoneNum = (rule, value, callback) => { |
| | | console.log(value); |
| | | let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/); |
| | | if (value == "" && value == undefined && !value) { |
| | | return callback(""); |
| | |
| | | // console.log(11111) |
| | | // this.reset(); |
| | | this.form = row; |
| | | console.log(this.form ) |
| | | // this.form.parentId = this.form.parentId.toString() |
| | | this.form.parentId = this.form.parentId.toString() |
| | | if(this.form.parentId == 0){ |
| | | this.deptOption.push({ "id": 0, "label": "主类目", }); |
| | | console.log(this.deptOption); |
| | | } |
| | | this.open = true; |
| | | this.title = "科室信息维护 "; |
| | |
| | | if (valid) { |
| | | if (this.form.deptId != undefined) { |
| | | if(this.form.hospId ){ |
| | | console.log(this.form); |
| | | // console.log(this.form); |
| | | updateDept(this.form).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |