| | |
| | | <template> |
| | | <div> |
| | | <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px"> |
| | | <el-form-item label="编码" prop="pacCode"> |
| | | <el-input v-model="queryParams.pacCode" placeholder="请输入编码" clearable |
| | | @keyup.enter.native="handleQuery" style="width: 120px;" /> |
| | | </el-form-item> |
| | | <el-form-item label="名称" prop="pacName"> |
| | | <el-input v-model="queryParams.pacName" placeholder="请输入名称" clearable |
| | | @keyup.enter.native="handleQuery" style="width: 130px;" /> |
| | | </el-form-item> |
| | | <el-form-item label="内容" prop="pacRemark"> |
| | | <el-input v-model="queryParams.pacRemark" placeholder="请输入内容" clearable |
| | | @keyup.enter.native="handleQuery" style="width: 130px;" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table :data="dataList" ref="elTable" v-loading="loading" @selection-change="handleSelectionChange" border |
| | | height="320px"> |
| | | <el-table-column type="selection" width="40" align="center" /> |
| | | <el-table-column label="序号" prop="xh" align="center" /> |
| | | <el-table-column label="编码" align="center" prop="pacCode" /> |
| | | <el-table-column label="名称" align="center" prop="pacName" width="100px" /> |
| | | <el-table-column label="拼音码" align="center" prop="detail" width="100px" /> |
| | | <el-table-column label="内容" align="center" prop="pacRemark" /> |
| | | <el-table-column label="备注" align="center" prop="price" /> |
| | | </el-table> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="open = false">取 消</el-button> |
| | | <el-button type="primary" @click="handleOk">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | |
| | | </div> |
| | | <div> |
| | | <el-dialog |
| | | :title="title" |
| | | :visible.sync="open" |
| | | width="1200px" |
| | | append-to-body |
| | | > |
| | | <el-form |
| | | :model="queryParams" |
| | | ref="queryForm" |
| | | size="small" |
| | | :inline="true" |
| | | label-width="68px" |
| | | > |
| | | <el-form-item label="编码" prop="pid"> |
| | | <el-input |
| | | v-model="queryParams.pid" |
| | | placeholder="请输入编码" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | style="width: 120px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="名称" prop="pname"> |
| | | <el-input |
| | | v-model="queryParams.pname" |
| | | placeholder="请输入名称" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | style="width: 130px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="内容" prop="pym"> |
| | | <el-input |
| | | v-model="queryParams.pym" |
| | | placeholder="请输入内容" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | style="width: 130px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | size="mini" |
| | | @click="handleQuery" |
| | | >搜索</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table |
| | | :data="dataList" |
| | | ref="elTable" |
| | | v-loading="loading" |
| | | @selection-change="handleSelectionChange" |
| | | border |
| | | height="320px" |
| | | > |
| | | <el-table-column type="selection" width="40" align="center" /> |
| | | <el-table-column label="序号" prop="xh" align="center" /> |
| | | <el-table-column label="编码" align="center" prop="pacCode" /> |
| | | <el-table-column |
| | | label="名称" |
| | | align="center" |
| | | prop="pacName" |
| | | width="100px" |
| | | /> |
| | | <el-table-column |
| | | label="拼音码" |
| | | align="center" |
| | | prop="detail" |
| | | width="100px" |
| | | /> |
| | | <el-table-column label="内容" align="center" prop="pacRemark" /> |
| | | <el-table-column label="备注" align="center" prop="price" /> |
| | | </el-table> |
| | | <div class="pag"> |
| | | <div class="pag1"> |
| | | <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | | :page.sync="queryParams.page" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getAllList" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="open = false">取 消</el-button> |
| | | <el-button type="primary" @click="handleOk">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getTjHyBgList, |
| | | } from "@/api/hosp/project"; |
| | | import { getTjHyBgList } from "@/api/hosp/project"; |
| | | export default { |
| | | name: 'Packagese', |
| | | // props: { |
| | | // row: { |
| | | // type: Object, |
| | | // } |
| | | name: "Packagese", |
| | | // props: { |
| | | // pacCode: { |
| | | // type: String, |
| | | |
| | | // } |
| | | |
| | | // }, |
| | | data() { |
| | | return { |
| | | open: false, |
| | | openone: false, |
| | | // 弹出层标题 |
| | | title: "", |
| | | dataList: [], |
| | | // 遮罩层 |
| | | loading: false, |
| | | form: { |
| | | desc: "", |
| | | }, |
| | | queryParams: { |
| | | pid: "", |
| | | pname: "", |
| | | pym: "", |
| | | checktype: "deptdict", |
| | | page: 1, |
| | | pageSize: 10, |
| | | }, |
| | | list: [], |
| | | fList: {}, |
| | | }; |
| | | }, |
| | | watch: { |
| | | // 'row'(val, newVla) { |
| | | // console.log(val,newVla) |
| | | // this.fList = val |
| | | // console.log(this.fList); |
| | | // } |
| | | }, |
| | | mounted() { |
| | | // this.getList() |
| | | }, |
| | | |
| | | created() { |
| | | // this.getList() |
| | | }, |
| | | methods: { |
| | | getAllList() { |
| | | this.loading = true; |
| | | this.openone = true; |
| | | getTjHyBgList(this.queryParams).then((res) => { |
| | | this.dataList = res.data.list; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // getList() { |
| | | // this.loading = true; |
| | | // this.openone = false; |
| | | // Packagestlist(this.queryParams).then((res) => { |
| | | // this.dataList = res.rows; |
| | | // this.loading = false; |
| | | // }); |
| | | // }, |
| | | data() { |
| | | return { |
| | | open: false, |
| | | openone:false, |
| | | // 弹出层标题 |
| | | title: "", |
| | | dataList: [], |
| | | // 遮罩层 |
| | | loading: false, |
| | | form: { |
| | | desc: "" |
| | | }, |
| | | queryParams: { |
| | | pacCode: "", |
| | | pacName: "", |
| | | pacRemark: "", |
| | | }, |
| | | list: [], |
| | | fList: {} |
| | | }; |
| | | handleQuery() { |
| | | |
| | | this.getAllList(); |
| | | |
| | | }, |
| | | watch: { |
| | | // 'row'(val, newVla) { |
| | | // console.log(val,newVla) |
| | | // this.fList = val |
| | | // console.log(this.fList); |
| | | |
| | | // } |
| | | |
| | | handleSelectionChange(selection) { |
| | | if (selection.length > 1) { |
| | | this.$refs.elTable.clearSelection(); // 清空所有选择 |
| | | this.$refs.elTable.toggleRowSelection(selection.pop()); // 设置选择项 |
| | | } |
| | | this.list = selection; |
| | | console.log(this.list); |
| | | }, |
| | | mounted() { |
| | | // this.getList() |
| | | handleOk() { |
| | | this.open = false; |
| | | |
| | | if (this.list.length === 1) { |
| | | const pac = [ |
| | | { |
| | | pacCode: this.list[0].pacCode, |
| | | pacName: this.list[0].pacName |
| | | } |
| | | ]; |
| | | this.$emit("add", pac); |
| | | } else { |
| | | this.$message.warning("请选择一个项目"); |
| | | } |
| | | }, |
| | | |
| | | created() { |
| | | // this.getList() |
| | | }, |
| | | methods: { |
| | | getAllList(){ |
| | | this.loading = true; |
| | | this.openone = true |
| | | getTjHyBgList(this.queryParams).then(res => { |
| | | this.dataList = res.data |
| | | this.loading = false; |
| | | }) |
| | | |
| | | }, |
| | | getList() { |
| | | this.loading = true; |
| | | this.openone = false |
| | | Packagestlist(this.queryParams).then(res => { |
| | | this.dataList = res.rows |
| | | this.loading = false; |
| | | }) |
| | | |
| | | }, |
| | | handleQuery() { |
| | | // if(this.openone == false){ |
| | | // this.getList() |
| | | // }else if(this.openone == true){ |
| | | this.getAllList() |
| | | // } |
| | | }, |
| | | handleSelectionChange(selection) { |
| | | if (selection.length > 1) { |
| | | this.$refs.elTable.clearSelection(); // 清空所有选择 |
| | | this.$refs.elTable.toggleRowSelection(selection.pop()); // 设置选择项 |
| | | } |
| | | this.list = selection; |
| | | console.log(this.list) |
| | | |
| | | }, |
| | | handleOk() { |
| | | this.open = false |
| | | if (this.list.length == 1) { |
| | | this.$emit('add',this.list); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped></style> |
| | | <style scoped> |
| | | .pag { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | |
| | | .pag1 { |
| | | width: 30%; |
| | | } |
| | | </style> |
| | | |
| | |
| | | placeholder="请输入检测结果" |
| | | @blur="handleInputConfirm(scope.row)" |
| | | @input="vale" |
| | | @focus="handleInConfirm(scope.row)" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | placeholder="请输入检测结果" |
| | | @blur="handleInputConfirm(scope.row)" |
| | | @input="vale" |
| | | @focus="handleInConfirm(scope.row)" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | console.log("输入内容:", value); |
| | | }, |
| | | handleInputConfirm(datas) { |
| | | this.focusrow = datas; |
| | | this.proResult = datas; |
| | | var pattern3 = new RegExp("[0-9]+"); |
| | | if (pattern3.test(this.proResult)) { |
| | |
| | | cusId: this.tableAll.cusId, |
| | | keyNum: this.proResult, |
| | | tjNum: this.tableAll.tjNumber, |
| | | keyNum: this.proResult.proResult |
| | | keyNum: this.proResult.proResult, |
| | | }; |
| | | AutoGetRule(data).then((res) => { |
| | | this.focusrow.conclusion = ""; |
| | | if (res.data) { |
| | | this.autorule = res.data; |
| | | this.focusrow.rulesList = this.autorule; |
| | | this.focusrow.rulesList = res.data; |
| | | if (res.data.length > 0) { |
| | | const conditions = ["正常", "未见异常", "阴性", "未见明显异常"]; |
| | | this.focusrow.exceptionDesc = !conditions.some((condition) => |
| | | this.autorule[0].bz.includes(condition) |
| | | ); |
| | | } else { |
| | | this.focusrow.exceptionDesc = false; |
| | | } |
| | | |
| | | this.autorule.forEach((item) => { |
| | | if (this.focusrow.conclusion) { |
| | | this.focusrow.conclusion += item.bingzhong; |
| | | this.focusrow.conclusion += item.bz; |
| | | } else { |
| | | this.focusrow.conclusion = item.bingzhong; |
| | | this.focusrow.conclusion += item.bz; |
| | | } |
| | | }); |
| | | // this.rows.push(this.focusrow); |
| | | // this.rows.push(this.focusrow); |
| | | // console.log(this.rows,5522); |
| | | |
| | | } |
| | | }); |
| | | } else { |
| | |
| | | cusId: this.tableAll.cusId, |
| | | keyWord: this.proResult, |
| | | tjNum: this.tableAll.tjNumber, |
| | | keyNum: this.proResult.proResult |
| | | |
| | | keyNum: this.proResult.proResult, |
| | | }; |
| | | AutoGetRule(data).then((res) => { |
| | | this.focusrow.conclusion = ""; |
| | | if (res.data) { |
| | | this.autorule = res.data; |
| | | this.focusrow.rulesList = this.autorule; |
| | | this.focusrow.rulesList = res.data; |
| | | if (res.data.length > 0) { |
| | | const conditions = ["正常", "未见异常", "阴性", "未见明显异常"]; |
| | | this.focusrow.exceptionDesc = !conditions.some((condition) => |
| | | this.autorule[0].bz.includes(condition) |
| | | ); |
| | | } else { |
| | | this.focusrow.exceptionDesc = false; |
| | | } |
| | | |
| | | this.autorule.forEach((item) => { |
| | | if (this.focusrow.conclusion) { |
| | | this.focusrow.conclusion += item.bingzhong; |
| | | this.focusrow.conclusion += item.bz; |
| | | } else { |
| | | this.focusrow.conclusion = item.bingzhong; |
| | | this.focusrow.conclusion += item.bz; |
| | | } |
| | | }); |
| | | // this.rows.push(this.focusrow); |
| | | // this.rows.push(this.focusrow); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | this.rows.push(datas); |
| | | console.log(this.rows,5522) |
| | | |
| | | // this.$refs.aaa.open = true; |
| | | // this.$refs.aaa.getList(); |
| | | console.log(this.rows, 5522); |
| | | }, |
| | | |
| | | /* vale(datas) { |
| | | this.proResult = datas; |
| | | var pattern3 = new RegExp("[0-9]+"); |
| | | if (pattern3.test(this.proResult)) { |
| | | let data = { |
| | | proId: this.focusrow.proId, |
| | | cusId: this.tableAll.cusId, |
| | | keyNum: this.proResult, |
| | | }; |
| | | AutoGetRule(data).then((res) => { |
| | | this.focusrow.conclusion = ""; |
| | | if (res.data) { |
| | | this.autorule = res.data; |
| | | this.focusrow.rulesList = this.autorule; |
| | | this.autorule.forEach((item) => { |
| | | if (this.focusrow.conclusion) { |
| | | this.focusrow.conclusion += item.bingzhong; |
| | | } else { |
| | | this.focusrow.conclusion = item.bingzhong; |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | } else { |
| | | let data = { |
| | | proId: this.focusrow.proId, |
| | | cusId: this.tableAll.cusId, |
| | | keyWord: this.proResult, |
| | | }; |
| | | AutoGetRule(data).then((res) => { |
| | | this.focusrow.conclusion = ""; |
| | | if (res.data) { |
| | | this.autorule = res.data; |
| | | this.focusrow.rulesList = this.autorule; |
| | | this.autorule.forEach((item) => { |
| | | if (this.focusrow.conclusion) { |
| | | this.focusrow.conclusion += item.bingzhong; |
| | | } else { |
| | | this.focusrow.conclusion = item.bingzhong; |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // this.$refs.aaa.open = true; |
| | | // this.$refs.aaa.getList(); |
| | | }, */ |
| | | // 规则 |
| | | handleguize(row) { |
| | | this.row = row; |
| | | this.$refs.aaa.open = true; |
| | |
| | | this.getbzlist(); |
| | | }); |
| | | }, |
| | | handleInConfirm(row) { |
| | | this.focusrow = row; |
| | | }, |
| | | |
| | | // 点击确认 |
| | | determine() { |
| | |
| | | } |
| | | |
| | | .el-button--medium { |
| | | padding: 4px 14px; |
| | | font-size: 14px; |
| | | } |
| | | |
| | |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang="scss"> |
| | | <style lang="scss" scoped> |
| | | .pag { |
| | | width: 100%; |
| | | display: flex; |
| | |
| | | v-loading="loading" |
| | | :data="templateList" |
| | | border |
| | | style="width: 98%; margin-left: 20px; margin-top: 20px" |
| | | style="width: 98%; margin-left: 20px" |
| | | > |
| | | <el-table-column label="名称" align="center" prop="name" /> |
| | | <el-table-column label="描述" align="center" prop="remark" /> |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style> |
| | | <style lang="scss"> |
| | | #table .el-table__header-wrapper .el-checkbox { |
| | | display: none; |
| | | } |
| | |
| | | placeholder="请输入科室编码" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="显示顺序" prop="orderNum" style="margin-top:20px"> |
| | | <el-form-item label="显示顺序" prop="orderNum"> |
| | | <el-input v-model="form.orderNum" placeholder="请输入显示顺序" /> |
| | | </el-form-item> |
| | | <el-form-item label="所属医院" prop="hospId" style="margin-top:20px"> |
| | | <el-form-item label="所属医院" prop="hospId"> |
| | | <el-select |
| | | v-model="form.hospId" |
| | | placeholder="请选择所属医院" |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="负责人" prop="leader" style="margin-top:20px"> |
| | | <el-form-item label="负责人" prop="leader"> |
| | | <el-input v-model="form.leader" placeholder="请输入负责人" /> |
| | | </el-form-item> |
| | | <el-form-item label="联系电话" prop="phone" style="margin-top:20px"> |
| | | <el-form-item label="联系电话" prop="phone"> |
| | | <el-input v-model="form.phone" placeholder="请输入联系电话" /> |
| | | </el-form-item> |
| | | <el-form-item label="邮箱" prop="email" style="margin-top:20px"> |
| | | <el-form-item label="邮箱" prop="email"> |
| | | <el-input v-model="form.email" placeholder="请输入邮箱" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="科室英文名称" prop="departmentEnName"> |
| | | <el-input v-model="form.departmentEnName" placeholder="请输入科室英文名称" /> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="组织类型" prop="orgType"> |
| | | <el-select v-model="form.orgType" placeholder="请选择组织类型" style="width: 200px"> |
| | | <el-option v-for="dict in dict.type.dict_user_orgtype" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="上级组织id" prop="parentOrgId"> |
| | | <el-input v-model="form.parentOrgId" placeholder="请输入上级组织id" /> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="上级组织名称" prop="parentOrgName"> |
| | | <el-select v-model="form.parentOrgType" placeholder="请选择上级组织名称" style="width: 200px"> |
| | | <el-option v-for="dict in dict.type.dict_user_orgtype" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="上级组织编码" prop="parentOrgCode"> |
| | | <el-input v-model="form.parentOrgCode" placeholder="请输入上级组织编码" |
| | | /> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="上级组织类型" prop="parentOrgType"> |
| | | <el-select v-model="form.parentOrgType" placeholder="请选择上级组织类型(PT10.06.17)" style="width: 200px"> |
| | | <el-option v-for="dict in dict.type.dict_user_orgtype" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="医疗机构ID" prop="hospId"> |
| | | <el-input v-model="form.hospId" placeholder="请输入医疗机构ID" /> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="医疗机构编码" prop="hospCode"> |
| | | <el-input v-model="form.hospCode" placeholder="请输入医疗机构编码" /> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="医疗机构名称" prop="hospName"> |
| | | <el-input v-model="form.hospName" placeholder="请输入医疗机构名称" /> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="联系人" prop="contactPerson"> |
| | | <el-input v-model="form.contactPerson" placeholder="请输入联系人" /> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="联系人电话" prop="contactPhone"> |
| | | <el-input v-model="form.contactPhone" placeholder="请输入联系人电话"/> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="邮政编码" prop="postalCode"> |
| | | <el-input v-model="form.postalCode" placeholder="请输入邮政编码" /> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="官网" prop="officialWeb"> |
| | | <el-input v-model="form.officialWeb" placeholder="请输入官网" /> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="编制床位数" prop="plaitBed"> |
| | | <el-input v-model="form.plaitBed" placeholder="请输入编制床位数" /> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="开放床位数" prop="openBed"> |
| | | <el-input v-model="form.openBed" placeholder="请输入开放床位数" /> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="建立日期" prop="buildDate"> |
| | | <el-date-picker clearable v-model="form.buildDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择建立日期" style="width: 200px"> |
| | | </el-date-picker> |
| | | </el-form-item> --> |
| | | <el-form-item label="标准科室" prop="standardDeptCode" style="margin-top:20px"> |
| | | |
| | | <el-form-item label="标准科室" prop="standardDeptCode"> |
| | | <el-input |
| | | v-model="form.standardDeptCode" |
| | | placeholder="请输入标准科室" |
| | |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="his科室ID" prop="hisksid"> |
| | | <span |
| | | slot="label" |
| | | style="display: inline-block; border-bottom: 2px solid blue" |
| | | @click="handleQuerys" |
| | | > |
| | | his科室ID |
| | | </span> |
| | | |
| | | <el-input |
| | | v-model="form.hisksid" |
| | | placeholder="his科室ID" |
| | | style="width: 200px" |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="his科室名" prop="hisksmc"> |
| | | <el-input v-model="form.hisksmc" placeholder="his科室名" style="width: 202px;"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="重点科室" prop="deptFcusTypeCode"> |
| | | <el-select v-model="form.parentOrgType" placeholder="请选择重点科室(PT10.06.17)" style="width: 200px" > |
| | | <el-option v-for="dict in dict.type.dict_user_orgtype" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> --> |
| | | <el-form-item label="简介" prop="peofile"> |
| | | <el-input |
| | | v-model="form.peofile" |
| | | placeholder="请输入简介" |
| | | style="width: 525px" |
| | | /> </el-form-item |
| | | ><br /> |
| | | |
| | | <el-form-item label="科室地址" prop="officialWeb"> |
| | | <el-input v-model="form.officialWeb" placeholder="请输入科室地址" /> |
| | | </el-form-item> |
| | |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="简介" prop="peofile"> |
| | | <el-input |
| | | v-model="form.peofile" |
| | | placeholder="请输入简介" |
| | | style="width: 525px" |
| | | /> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | <Packagese ref="aaa" @add="handleChanges" /> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Packagese from "@/components/Packagese"; |
| | | import { |
| | | listDept, |
| | | getDept, |
| | |
| | | export default { |
| | | name: "Dept", |
| | | dicts: ["sys_normal_disable", "dict_user_orgtype", "dict_dept_type"], |
| | | components: { Treeselect }, |
| | | components: { Treeselect,Packagese }, |
| | | data() { |
| | | let checkPhoneNum = (rule, value, callback) => { |
| | | let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/); |
| | |
| | | // 表单校验 |
| | | rules: { |
| | | parentId: [ |
| | | { required: true, validator: checkPhoneNum, trigger: "blur" }, |
| | | { required: true, validator: checkPhoneNum, trigger: "blur" }, |
| | | ], |
| | | deptName: [ |
| | | { required: true, message: "科室名称不能为空", validator: checkPhoneNum, trigger: "blur" }, |
| | | { |
| | | required: true, |
| | | message: "科室名称不能为空", |
| | | validator: checkPhoneNum, |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | orderNum: [ |
| | | { required: true, message: "显示顺序不能为空", validator: checkPhoneNum, trigger: "blur" }, |
| | | { |
| | | required: true, |
| | | message: "显示顺序不能为空", |
| | | validator: checkPhoneNum, |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | departmentCode: [ |
| | | { required: true, message: "科室编码不能为空", validator: checkPhoneNum, trigger: "blur" }, |
| | | { |
| | | required: true, |
| | | message: "科室编码不能为空", |
| | | validator: checkPhoneNum, |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | hospId: [ |
| | | { required: true, message: "所属医院不能为空", validator: checkPhoneNum, trigger: "blur" }, |
| | | { |
| | | required: true, |
| | | message: "所属医院不能为空", |
| | | validator: checkPhoneNum, |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | // email: [ |
| | | // { |
| | |
| | | this.getDeptTree(); |
| | | }, |
| | | methods: { |
| | | handlePacCode(data) { |
| | | // 处理pacCode的逻辑 |
| | | console.log('Received pacCode:', data); |
| | | }, |
| | | handleQuerys() { |
| | | this.$refs.aaa.open = true; |
| | | this.$refs.aaa.getAllList(); |
| | | this.$refs.aaa.title = "数据字典"; |
| | | }, |
| | | handleChanges(param1) { |
| | | this.form.lisXmbm = param1[0].pacCode; |
| | | this.form.lisXmmc = param1[0].pacName; |
| | | }, |
| | | /** 查询部门列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | |
| | | // console.log(11111) |
| | | // this.reset(); |
| | | this.form = row; |
| | | this.form.parentId = this.form.parentId.toString() |
| | | if(this.form.parentId == 0){ |
| | | this.deptOption.push({ "id": 0, "label": "主类目", }); |
| | | this.form.parentId = this.form.parentId.toString(); |
| | | if (this.form.parentId == 0) { |
| | | this.deptOption.push({ id: 0, label: "主类目" }); |
| | | } |
| | | this.open = true; |
| | | this.title = "科室信息维护 "; |
| | |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | | if (this.form.deptId != undefined) { |
| | | if(this.form.hospId ){ |
| | | if (this.form.hospId) { |
| | | // console.log(this.form); |
| | | updateDept(this.form).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | }else{ |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | this.$modal.msgError("请填写带星号"); |
| | | } |
| | | |
| | | } else { |
| | | this.hospList.forEach((element) => { |
| | | if (this.form.hospName == element.hospAreaName) { |