| | |
| | | <template> |
| | | <div> |
| | | <span class="txt">问诊信息</span> |
| | | <span class="txt"></span> |
| | | <el-form |
| | | ref="form" |
| | | :model="form" |
| | |
| | | if (this.form.yinjiuyear == null) { |
| | | this.form.yinjiuyear = "0"; |
| | | } |
| | | // 设置默认值 |
| | | if (this.form.gongLing == null) { |
| | | this.form.gongLing = 1; // 工龄默认值 |
| | | } |
| | | this.form.tjAskHistorysList = response.data.tjAskHistorysList; |
| | | // this.isdisabled= true |
| | | }); |
| | |
| | | this.icdId = item.id; |
| | | } |
| | | }); |
| | | this.form.tjAskHistorysList.forEach(item => { |
| | | this.form.tjAskHistorysList.forEach((item) => { |
| | | if(item.diseaseName == sel){ |
| | | item.icdId = this.icdId |
| | | item.icdId = this.icdId; |
| | | } |
| | | }) |
| | | }); |
| | | }, |
| | | // 搜索 |
| | | getRemoteData(query) { |
| | |
| | | this.chageall = selection; |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm() { |
| | | /* submitForm() { |
| | | // this.form.tjAskHistorysList.forEach(element=>{ |
| | | // element.icdId = this.icdId; |
| | | // }) |
| | |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.form = response.data; |
| | | }); |
| | | }, |
| | | }, */ |
| | | submitForm() { |
| | | this.$refs.form.validate((valid) => { |
| | | if (valid) { |
| | | this.$emit('submitLoading', true); |
| | | updateHistory(this.form) |
| | | .then((response) => { |
| | | this.$message.success("修改成功"); |
| | | this.form = response.data; // 更新表单数据 |
| | | }) |
| | | .catch((error) => { |
| | | this.$message.error("修改失败"); |
| | | }) |
| | | .finally(() => { |
| | | this.$emit('submitLoading', false); |
| | | }); |
| | | } else { |
| | | this.$message.error("请检查表单内容"); |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | }; |
| | | </script> |