| | |
| | | 性别: |
| | | </td> |
| | | <td style="border: 1px solid #dfe6ec; border-collapse: collapse"> |
| | | {{ tableAll.cusSex }} |
| | | {{ tableAll.cusSex == 0? "男" :tableAll.cusSex == 1?"女":"未知"}} |
| | | </td> |
| | | </tr> |
| | | <tr style="border: 1px solid #dfe6ec; border-collapse: collapse"> |
| | |
| | | 建议: |
| | | </td> |
| | | <td style="border: 1px solid #dfe6ec; border-collapse: collapse" colspan="2"> |
| | | <div style="margin: 0 0px 10px 15px"> |
| | | <el-button type="primary" @click="propoChange" |
| | | >快捷建议</el-button |
| | | > |
| | | <el-button type="primary" @click="proposalChange" |
| | | >生成建议</el-button |
| | | > |
| | | </div> |
| | | <el-input type="textarea" placeholder="请输入内容" v-model="proParentList.remark" rows="7"> |
| | | </el-input> |
| | | </td> |
| | |
| | | </td> |
| | | </tr> |
| | | <tr style="border: 1px solid #dfe6ec; border-collapse: collapse"> |
| | | <div style="margin: 0 0px 10px 15px"> |
| | | <el-button type="primary" @click="propoChange" class="height:100px" |
| | | >快捷建议</el-button |
| | | > |
| | | <el-button type="primary" @click="proposalChange" |
| | | >生成建议</el-button |
| | | > |
| | | </div> |
| | | <td style="border: 1px solid #dfe6ec; border-collapse: collapse"> |
| | | 建议: |
| | | </td> |
| | |
| | | <el-button @click="jianqians = false">取 消</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <proposal ref="proposal" :cusobj="cusobj" @event1="eventchange($event)" /> |
| | | <createproposal ref="createproposal" :creatobj="creatobj" :textarea1="proParentList.remark" /> |
| | | </div> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | import proposal from "@/components/proposal"; |
| | | import createproposal from "@/components/createproposal"; |
| | | import { getInfoById } from "@/api/hosp/history"; |
| | | import jianqianwenzhen from "@/components/jianqianwenzhen"; |
| | | import Public from "@/components/public"; |
| | |
| | | export default { |
| | | dicts: ["sys_user_sex", "sys_yes_no", "tj_result_type", "lj_positive"], |
| | | name: "check", |
| | | components: { Public, Historicalreport, jianqianwenzhen }, |
| | | components: { Public, Historicalreport, jianqianwenzhen,createproposal,proposal }, |
| | | data() { |
| | | return { |
| | | creatobj:{}, |
| | | dataText: [], |
| | | propform: {}, |
| | | cusobj: {}, |
| | | baogaoqian: true, |
| | | baogaohou: false, |
| | | flags: false, |
| | |
| | | hb() { |
| | | if (this.queryParams.tjNumber != "") { |
| | | this.submitForm(); |
| | | } |
| | | }, |
| | | propoChange() { |
| | | this.cusobj = { sex: this.tableAll.cusSex, isZj: 1 }; |
| | | this.$refs.proposal.open = true; |
| | | this.$refs.proposal.title = "建议方案"; |
| | | // this.$refs.proposal.getList(); |
| | | }, |
| | | eventchange(data) { |
| | | this.dataText = data |
| | | data.forEach((item) => { |
| | | this.proParentList.remark += item.advice; |
| | | }); |
| | | }, |
| | | proposalChange() { |
| | | if (this.proParentList.remark) { |
| | | this.creatobj = {proParentList:this.proParentList.remark, isZj: 1} |
| | | this.$refs.createproposal.open = true; |
| | | this.$refs.createproposal.title = "常用建议维护"; |
| | | }else{ |
| | | this.$message({ |
| | | type: "warning ", |
| | | message: "请先填写总检建议", |
| | | }); |
| | | } |
| | | }, |
| | | |
| | |
| | | this.loading = true; |
| | | this.drawer = true; |
| | | this.tableAll = row; |
| | | if (this.tableAll.cusSex === 0) { |
| | | this.tableAll.cusSex = "男"; |
| | | } |
| | | if (this.tableAll.cusSex === 1) { |
| | | this.tableAll.cusSex = "女"; |
| | | } |
| | | if (this.tableAll.cusSex === 2) { |
| | | this.tableAll.cusSex = "未知"; |
| | | } |
| | | // if (this.tableAll.cusSex === 0) { |
| | | // this.tableAll.cusSex = "男"; |
| | | // } |
| | | // if (this.tableAll.cusSex === 1) { |
| | | // this.tableAll.cusSex = "女"; |
| | | // } |
| | | // if (this.tableAll.cusSex === 2) { |
| | | // this.tableAll.cusSex = "未知"; |
| | | // } |
| | | this.tjNumber = row.tjNumber; |
| | | let num = 0; |
| | | getParentList(this.tjNumber).then((response) => { |
| | |
| | | }); |
| | | }) |
| | | .catch((action) => { |
| | | this.$message({ |
| | | if(action === "cancel"){ |
| | | this.$message({ |
| | | type: "warning", |
| | | message: action === "cancel" ? "放弃保存并离开" : "停留在当前页面", |
| | | message: "放弃保存并离开", |
| | | }); |
| | | } |
| | | |
| | | this.proName = this.Parentcheck.proName; |
| | | this.nums = tab.name; |
| | | this.proId = tab.name; |
| | |
| | | }); |
| | | }) |
| | | .catch((action) => { |
| | | this.$message({ |
| | | if(action === "cancel"){ |
| | | this.$message({ |
| | | type: "warning", |
| | | message: action === "cancel" ? "放弃保存并离开" : "停留在当前页面", |
| | | message: "放弃保存并离开", |
| | | }); |
| | | } |
| | | this.proName = item.proName; |
| | | this.nums = proParentId; |
| | | this.proId = proParentId; |