| | |
| | | }; |
| | | return { |
| | | xiugais: true, |
| | | xiugaiList: null, // 改为 null,便于判断是否已加载 |
| | | xiugaiList: [], |
| | | deptOptions: [], |
| | | dialogTableVisible: false, |
| | | isPriceDisabled: false, |
| | |
| | | }, |
| | | created() { |
| | | // this.getConsumables(); |
| | | // this.getDeptList(); |
| | | this.getDeptList(); |
| | | // this.getDeptTree().then(() => { |
| | | // this.precomputePinyin(); |
| | | // }); |
| | |
| | | this.form.hisXmbm = ""; |
| | | this.form.hisXmmc = ""; |
| | | this.form.hisdj = ""; |
| | | this.loading = true; |
| | | // this.loading = true; |
| | | this.proParent = false; |
| | | this.form.proPrice = 0.0; |
| | | this.form.proName = ""; |
| | | this.form.proId = null; |
| | | this.form.resultType = "1"; |
| | | |
| | | // 先获取科室列表数据 |
| | | this.getDeptList(); |
| | | |
| | | getlist().then((response) => { |
| | | if (response.code == 200) { |
| | | this.loading = false; |
| | |
| | | getDeptList() { |
| | | listDept(this.queryParams).then((response) => { |
| | | this.parentNameList = response.data; |
| | | this.deptList = this.handleTree(response.data, "proId"); |
| | | this.deptList = this.handleTree(response.data, "deptId"); |
| | | }); |
| | | }, |
| | | /* getDeptTree() { |