| | |
| | | <template> |
| | | <div> |
| | | <span class="txt">问诊信息</span> |
| | | <span class="txt"></span> |
| | | <el-form |
| | | ref="form" |
| | | :model="form" |
| | |
| | | </el-table-column> |
| | | <el-table-column label="疾病id" prop="icdId" v-if="false"> |
| | | <!-- <template slot-scope="scope"> --> |
| | | <el-select |
| | | :remote-method="getRemoteData" |
| | | v-model="icdId" |
| | | remote |
| | | filterable |
| | | placeholder="请选择病种名" |
| | | clearable |
| | | > |
| | | <el-option |
| | | v-for="dict in rulesList" |
| | | :key="dict.id" |
| | | :label="dict.icdname" |
| | | :value="dict.id" |
| | | /> |
| | | </el-select> |
| | | <el-select |
| | | :remote-method="getRemoteData" |
| | | v-model="icdId" |
| | | remote |
| | | filterable |
| | | placeholder="请选择病种名" |
| | | clearable |
| | | > |
| | | <el-option |
| | | v-for="dict in rulesList" |
| | | :key="dict.id" |
| | | :label="dict.icdname" |
| | | :value="dict.id" |
| | | /> |
| | | </el-select> |
| | | <!-- </template> --> |
| | | </el-table-column> |
| | | <el-table-column label="疾病名称" prop="diseaseName"> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="疾病id" prop="icdId" v-if="false"> |
| | | <!-- <template slot-scope="scope"> --> |
| | | <el-select |
| | | :remote-method="getRemoteData" |
| | | v-model="icdId" |
| | | remote |
| | | filterable |
| | | placeholder="请选择病种名" |
| | | clearable |
| | | > |
| | | <el-option |
| | | v-for="dict in rulesList" |
| | | :key="dict.id" |
| | | :label="dict.icdname" |
| | | :value="dict.id" |
| | | /> |
| | | </el-select> |
| | | <el-select |
| | | :remote-method="getRemoteData" |
| | | v-model="icdId" |
| | | remote |
| | | filterable |
| | | placeholder="请选择病种名" |
| | | clearable |
| | | > |
| | | <el-option |
| | | v-for="dict in rulesList" |
| | | :key="dict.id" |
| | | :label="dict.icdname" |
| | | :value="dict.id" |
| | | /> |
| | | </el-select> |
| | | <!-- </template> --> |
| | | </el-table-column> |
| | | <el-table-column label="疾病名称" prop="diseaseName"> |
| | |
| | | } |
| | | }; |
| | | return { |
| | | zhiyebingshi:true, |
| | | jiwangbingshi:true, |
| | | zhiyebingshi: true, |
| | | jiwangbingshi: true, |
| | | diseaseNames: "", |
| | | zhenghuzangList: [], |
| | | options: [ |
| | |
| | | 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 |
| | | }); |
| | |
| | | } else { |
| | | this.sex = false; |
| | | } |
| | | if (this.form.tjLx === "02") { |
| | | this.zhiye = true; |
| | | this.zhiyebingshi = true; |
| | | this.jiwangbingshi = false; |
| | | } else { |
| | | this.zhiye = false; |
| | | this.zhiyebingshi = false; |
| | | this.jiwangbingshi = true; |
| | | } |
| | | if (this.form.tjLx === "02") { |
| | | this.zhiye = true; |
| | | this.zhiyebingshi = true; |
| | | this.jiwangbingshi = false; |
| | | } else { |
| | | this.zhiye = false; |
| | | this.zhiyebingshi = false; |
| | | this.jiwangbingshi = true; |
| | | } |
| | | if (this.form.xiyan == null) { |
| | | this.form.xiyan = "1"; |
| | | } |
| | |
| | | this.icdId = item.id; |
| | | } |
| | | }); |
| | | this.form.tjAskHistorysList.forEach(item => { |
| | | if(item.diseaseName == sel){ |
| | | item.icdId = this.icdId |
| | | this.form.tjAskHistorysList.forEach((item) => { |
| | | if (item.diseaseName == sel) { |
| | | 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> |