|  |  |  | 
|---|
|  |  |  | import { param } from "jquery"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // æ¥è¯¢é®å·æ¨¡çå表 | 
|---|
|  |  |  | export function getQtemplatelist(data) { | 
|---|
|  |  |  | export function getQtemplateobj(data) { | 
|---|
|  |  |  | return request({ | 
|---|
|  |  |  | url: "/smartor/svyLibTemplate/selectSvyLibTemplatelist", | 
|---|
|  |  |  | method: "post", | 
|---|
|  |  |  | data: data, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | export function getQtemplatelist(data) { | 
|---|
|  |  |  | return request({ | 
|---|
|  |  |  | url: "/smartor/svyLibTemplate/list", | 
|---|
|  |  |  | method: "get", | 
|---|
|  |  |  | params: data, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // é®å·æ¨¡ç详æ | 
|---|
|  |  |  | export function Qtemplateinfo(Id) { | 
|---|
|  |  |  | return request({ | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | <template> | 
|---|
|  |  |  | <div> | 
|---|
|  |  |  | <el-dialog | 
|---|
|  |  |  | title="éç¨ç¾ç
éæ©" | 
|---|
|  |  |  | :visible.sync="dialogVisiblepatient" | 
|---|
|  |  |  | width="70%" | 
|---|
|  |  |  | :before-close="handleClosehz" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <div class="examine-jic"> | 
|---|
|  |  |  | <div style="margin: 0 10px 20px 10px"> | 
|---|
|  |  |  | <el-card class="box-card"> | 
|---|
|  |  |  | <el-tag | 
|---|
|  |  |  | v-for="item in overallCase" | 
|---|
|  |  |  | :key="item.icdid" | 
|---|
|  |  |  | type="warning" | 
|---|
|  |  |  | closable | 
|---|
|  |  |  | @close="handleClose(item)" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | {{ item.icdname }} | 
|---|
|  |  |  | </el-tag> | 
|---|
|  |  |  | <div style="margin-top: 20px; text-align: right"> | 
|---|
|  |  |  | å
±éæ©<span | 
|---|
|  |  |  | style="font-size: 18px; color: #409eff; margin: 0 10px" | 
|---|
|  |  |  | >{{ overallCase.length }}</span | 
|---|
|  |  |  | >æ¡æ°æ® | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </el-card> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="jic-value"> | 
|---|
|  |  |  | <el-row :gutter="20"> | 
|---|
|  |  |  | <!--ç¨æ·æ°æ®--> | 
|---|
|  |  |  | <el-form | 
|---|
|  |  |  | :model="patientqueryParams" | 
|---|
|  |  |  | ref="queryForm" | 
|---|
|  |  |  | size="small" | 
|---|
|  |  |  | :inline="true" | 
|---|
|  |  |  | label-width="98px" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <el-form-item label="ç¾ç
åç§°" prop="name"> | 
|---|
|  |  |  | <el-input | 
|---|
|  |  |  | v-model="patientqueryParams.icdname" | 
|---|
|  |  |  | placeholder="请è¾å
¥ç¾ç
åç§°" | 
|---|
|  |  |  | @keyup.enter.native="handleAddpatient" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <el-form-item> | 
|---|
|  |  |  | <el-button | 
|---|
|  |  |  | type="primary" | 
|---|
|  |  |  | icon="el-icon-search" | 
|---|
|  |  |  | size="medium" | 
|---|
|  |  |  | @click="handleAddpatient" | 
|---|
|  |  |  | >æç´¢</el-button | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <el-button | 
|---|
|  |  |  | icon="el-icon-refresh" | 
|---|
|  |  |  | size="medium" | 
|---|
|  |  |  | @click="resetQuery" | 
|---|
|  |  |  | >éç½®</el-button | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | </el-form> | 
|---|
|  |  |  | <!-- éæ©å¨å®å表 --> | 
|---|
|  |  |  | <el-table | 
|---|
|  |  |  | ref="multipleTable" | 
|---|
|  |  |  | :data="donorchargeList" | 
|---|
|  |  |  | tooltip-effect="dark" | 
|---|
|  |  |  | style="width: 100%" | 
|---|
|  |  |  | @selection-change="handleSelectionChange" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <el-table-column type="selection" width="55"> </el-table-column> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | prop="icdid" | 
|---|
|  |  |  | label="ç¾ç
ç¼å·" | 
|---|
|  |  |  | width="100" | 
|---|
|  |  |  | show-overflow-tooltip | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column label="ç¾ç
åç§°" show-overflow-tooltip> | 
|---|
|  |  |  | <template slot-scope="scope">{{ scope.row.icdname }}</template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <el-table-column prop="icdcode" label="ç¾ç
ç¼ç " width="150"> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | </el-table> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | <pagination | 
|---|
|  |  |  | v-show="patienttotal > 0" | 
|---|
|  |  |  | :total="patienttotal" | 
|---|
|  |  |  | :page.sync="patientqueryParams.pageNum" | 
|---|
|  |  |  | :limit.sync="patientqueryParams.pageSize" | 
|---|
|  |  |  | @pagination="handleAddpatient" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <span slot="footer" class="dialog-footer"> | 
|---|
|  |  |  | <el-button @click="$emit('addoption')">å æ¶</el-button> | 
|---|
|  |  |  | <el-button type="primary" @click="AddDispatchpatients" | 
|---|
|  |  |  | >ç¡®å®æ·»å </el-button | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </span> | 
|---|
|  |  |  | </el-dialog> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <script> | 
|---|
|  |  |  | import { getillnesslist, deltargetillness } from "@/api/AiCentre/index"; | 
|---|
|  |  |  | export default { | 
|---|
|  |  |  | name: "Diseasetotality", | 
|---|
|  |  |  | data() { | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | patienttotal: 0, // | 
|---|
|  |  |  | // å½å页é䏿°æ® | 
|---|
|  |  |  | multipleSelection: [], | 
|---|
|  |  |  | // æ»é䏿°æ® | 
|---|
|  |  |  | // overallCase: [], | 
|---|
|  |  |  | patientqueryParams: { | 
|---|
|  |  |  | pageNum: 1, | 
|---|
|  |  |  | pageSize: 10, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | donorchargeList: [], | 
|---|
|  |  |  | donorchargeanlList: [], //æ¡ä¾å表 | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | props: { | 
|---|
|  |  |  | dialogVisiblepatient: { | 
|---|
|  |  |  | type: Boolean, | 
|---|
|  |  |  | default: () => { | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | overallCase: { | 
|---|
|  |  |  | type: Array, | 
|---|
|  |  |  | required: true, | 
|---|
|  |  |  | default: () => [], | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 5é®å·æ¨¡çã3é访模çã6宣æ | 
|---|
|  |  |  | type: { | 
|---|
|  |  |  | type: Number, | 
|---|
|  |  |  | default: () => { | 
|---|
|  |  |  | return 5; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | created() {}, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | mounted() { | 
|---|
|  |  |  | // this.handleAddpatient(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | watch: {}, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | handleClosehz() { | 
|---|
|  |  |  | this.$emit("addoption"); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // éæ©æ°æ®æ ç¾å é¤äºä»¶ | 
|---|
|  |  |  | handleClose(item) { | 
|---|
|  |  |  | console.log(item); | 
|---|
|  |  |  | if (this.multipleSelection.indexOf(item) == -1 && !item.outid) { | 
|---|
|  |  |  | console.log(1); | 
|---|
|  |  |  | this.overallCase.splice(this.overallCase.indexOf(item), 1); | 
|---|
|  |  |  | } else if (item.outid) { | 
|---|
|  |  |  | this.$modal | 
|---|
|  |  |  | .confirm('æ¯å¦ç¡®è®¤å é¤å称为"' + item.icd10name + '"çæ°æ®é¡¹ï¼') | 
|---|
|  |  |  | .then(() => { | 
|---|
|  |  |  | this.multipleSelection.splice( | 
|---|
|  |  |  | this.multipleSelection.indexOf(item), | 
|---|
|  |  |  | 1 | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | deltargetillness(item.id).then((res) => { | 
|---|
|  |  |  | if (res.code == 200) { | 
|---|
|  |  |  | this.$modal.msgSuccess("å é¤æå"); | 
|---|
|  |  |  | this.overallCase.splice(this.overallCase.indexOf(item), 1); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | // åæ¶æè½½ç¶æ | 
|---|
|  |  |  | this.$refs.multipleTable.toggleRowSelection(item, false); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .catch(() => {}); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.overallCase.splice(this.overallCase.indexOf(item), 1); | 
|---|
|  |  |  | this.multipleSelection.splice(this.multipleSelection.indexOf(item), 1); | 
|---|
|  |  |  | // åæ¶æè½½ç¶æ | 
|---|
|  |  |  | this.$refs.multipleTable.toggleRowSelection(item, false); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | resetQuery() { | 
|---|
|  |  |  | this.patientqueryParams.icdname = null; | 
|---|
|  |  |  | this.handleAddpatient(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // è§¦åæ¥è¯¢äºä»¶ | 
|---|
|  |  |  | handleAddpatient(row) { | 
|---|
|  |  |  | this.$emit("kkoption"); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | getillnesslist(this.patientqueryParams).then((res) => { | 
|---|
|  |  |  | this.donorchargeList = res.rows; | 
|---|
|  |  |  | this.patienttotal = res.total; | 
|---|
|  |  |  | console.log(this.$refs.multipleTable, "22"); | 
|---|
|  |  |  | this.Restorecheck(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // å¤éæ¡é䏿°æ® | 
|---|
|  |  |  | handleSelectionChange(selection) { | 
|---|
|  |  |  | if (this.decision) return; | 
|---|
|  |  |  | // å¤ææ¯å¦æå é¤ | 
|---|
|  |  |  | if (this.multipleSelection.length <= selection.length) { | 
|---|
|  |  |  | this.multipleSelection = selection; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | console.log(selection, "selection"); | 
|---|
|  |  |  | console.log(this.multipleSelection, "this.multipleSelection"); | 
|---|
|  |  |  | this.multipleSelection.forEach((item) => { | 
|---|
|  |  |  | if (selection.includes(item)) { | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | if (this.multipleSelection.length == 1) { | 
|---|
|  |  |  | this.multipleSelection = []; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.multipleSelection.splice( | 
|---|
|  |  |  | this.multipleSelection.indexOf(item), | 
|---|
|  |  |  | 1 | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (this.overallCase.length == 1) { | 
|---|
|  |  |  | this.overallCase = []; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.overallCase.splice(this.overallCase.indexOf(item), 1); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // èµå¼ç»æ´ä½é䏿°ç» | 
|---|
|  |  |  | console.log(this.overallCase); | 
|---|
|  |  |  | this.multipleSelection.forEach((item) => { | 
|---|
|  |  |  | console.log( | 
|---|
|  |  |  | this.overallCase.every((obj) => obj.icdname != item.icdname) | 
|---|
|  |  |  | ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (this.overallCase.every((obj) => obj.icdname != item.icdname)) { | 
|---|
|  |  |  | this.overallCase.push(item); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | console.log(this.multipleSelection, "触åéæ©åmultipleSelection"); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // åæ¢é¡µåæ¢å¤éä¸ | 
|---|
|  |  |  | Restorecheck() { | 
|---|
|  |  |  | console.log(this.overallCase, "this.overallCase"); | 
|---|
|  |  |  | const allid = this.overallCase.map((item) => item.icdname); | 
|---|
|  |  |  | const overlap = this.donorchargeList.filter((value) => { | 
|---|
|  |  |  | return allid.includes(value.icdname); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | // ä¿æidsåå½å页é¢çåæ¥æ§ | 
|---|
|  |  |  | this.multipleSelection = overlap; | 
|---|
|  |  |  | console.log(this.multipleSelection, "è¿å
¥å页multipleSelection"); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | this.toggleSelection(overlap); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // æè½½éæ©ç¶æ | 
|---|
|  |  |  | toggleSelection(rows) { | 
|---|
|  |  |  | if (rows) { | 
|---|
|  |  |  | this.decision = true; | 
|---|
|  |  |  | this.$nextTick(() => { | 
|---|
|  |  |  | rows.forEach((row) => { | 
|---|
|  |  |  | this.$refs.multipleTable.toggleRowSelection(row, true); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | this.decision = false; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | console.log(123); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.$refs.multipleTable.clearSelection(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | AddDispatchpatients() { | 
|---|
|  |  |  | this.$emit("addoption"); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <style lang="scss" scoped> | 
|---|
|  |  |  | .examine-jic { | 
|---|
|  |  |  | .headline { | 
|---|
|  |  |  | font-size: 24px; | 
|---|
|  |  |  | border-left: 5px solid #41a1be; | 
|---|
|  |  |  | padding-left: 5px; | 
|---|
|  |  |  | margin-bottom: 10px; | 
|---|
|  |  |  | display: flex; | 
|---|
|  |  |  | justify-content: space-between; | 
|---|
|  |  |  | .Add-details { | 
|---|
|  |  |  | font-size: 18px; | 
|---|
|  |  |  | color: #02a7f0; | 
|---|
|  |  |  | cursor: pointer; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | .jic-value { | 
|---|
|  |  |  | font-size: 20px; | 
|---|
|  |  |  | border-top: 1px solid #a7abac; | 
|---|
|  |  |  | padding: 10px; | 
|---|
|  |  |  | margin-bottom: 10px; | 
|---|
|  |  |  | .details-jic { | 
|---|
|  |  |  | padding: 10px 15px; | 
|---|
|  |  |  | border: 1px solid #dcdfe6; | 
|---|
|  |  |  | -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), | 
|---|
|  |  |  | 0 0 6px 0 rgba(0, 0, 0, 0.04); | 
|---|
|  |  |  | .details-title { | 
|---|
|  |  |  | display: flex; | 
|---|
|  |  |  | justify-content: space-between; | 
|---|
|  |  |  | margin-bottom: 10px; | 
|---|
|  |  |  | div:nth-child(2) { | 
|---|
|  |  |  | color: #02a7f0; | 
|---|
|  |  |  | cursor: pointer; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | .details-renw { | 
|---|
|  |  |  | background: #e4ebfc; | 
|---|
|  |  |  | padding: 15px 5px; | 
|---|
|  |  |  | border-radius: 5px; | 
|---|
|  |  |  | margin-bottom: 20px; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | .el-tag + .el-tag { | 
|---|
|  |  |  | margin-left: 10px; | 
|---|
|  |  |  | margin-bottom: 10px; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | </style> | 
|---|
|  |  |  | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-form-item label="é项æä»¶" prop="sickness"> | 
|---|
|  |  |  | <el-form-item label="é项æä»¶" prop="sickness" v-if="Verbalproblem"> | 
|---|
|  |  |  | <div style="width: 40vw"> | 
|---|
|  |  |  | <el-upload | 
|---|
|  |  |  | class="upload-demo" | 
|---|
|  |  |  | 
|---|
|  |  |  | type: Boolean, | 
|---|
|  |  |  | default: true, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | Verbalproblem: { | 
|---|
|  |  |  | type: Boolean, | 
|---|
|  |  |  | default: true, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | created() { | 
|---|
|  |  |  | 
|---|
|  |  |  | </el-select> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-form-item label="éç¨ç¾ç
" prop="region"> | 
|---|
|  |  |  | <div class="xinz-inf"> | 
|---|
|  |  |  | <el-tag | 
|---|
|  |  |  | :key="item.icd10name" | 
|---|
|  |  |  | type="warning" | 
|---|
|  |  |  | v-for="item in illnesslist" | 
|---|
|  |  |  | closable | 
|---|
|  |  |  | :disable-transitions="false" | 
|---|
|  |  |  | @close="handleCloseillness(item)" | 
|---|
|  |  |  | <el-button type="warning" @click="$refs.child.handleAddpatient()" | 
|---|
|  |  |  | >æ·»å ç¾ç
</el-button | 
|---|
|  |  |  | > | 
|---|
|  |  |  | {{ item.icd10name }} | 
|---|
|  |  |  | </el-tag> | 
|---|
|  |  |  | <el-select | 
|---|
|  |  |  | v-model="inputValue" | 
|---|
|  |  |  | v-if="illnessVisible" | 
|---|
|  |  |  | @change="illnessConfirm" | 
|---|
|  |  |  | :remote-method="remoteMethod" | 
|---|
|  |  |  | filterable | 
|---|
|  |  |  | remote | 
|---|
|  |  |  | allow-create | 
|---|
|  |  |  | default-first-option | 
|---|
|  |  |  | placeholder="è¯·éæ©/æ¥è¯¢" | 
|---|
|  |  |  | :loading="loading" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <el-option | 
|---|
|  |  |  | v-for="item in optionsillness" | 
|---|
|  |  |  | :key="item.icdid" | 
|---|
|  |  |  | :label="item.icdname" | 
|---|
|  |  |  | :value="item.icdid" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </el-option> | 
|---|
|  |  |  | </el-select> | 
|---|
|  |  |  | <el-button | 
|---|
|  |  |  | v-else | 
|---|
|  |  |  | class="button-new-tag" | 
|---|
|  |  |  | size="small" | 
|---|
|  |  |  | @click="illnessshowInput" | 
|---|
|  |  |  | >+ æ°å¢ç¾ç
</el-button | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-form-item label="éç¨é¢åº" prop="region"> | 
|---|
|  |  |  | <el-select | 
|---|
|  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <!-- æ·»å éç¨ç¾ç
çªå£ --> | 
|---|
|  |  |  | <Optional-Form | 
|---|
|  |  |  | ref="child" | 
|---|
|  |  |  | :dialogVisiblepatient="dialogVisiblepatient" | 
|---|
|  |  |  | :overallCase="illnesslist" | 
|---|
|  |  |  | @addoption="dialogVisiblepatient = false" | 
|---|
|  |  |  | @kkoption="dialogVisiblepatient = true" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | illnesslistget, | 
|---|
|  |  |  | getillness, | 
|---|
|  |  |  | } from "@/api/AiCentre/index"; | 
|---|
|  |  |  | import OptionalForm from "@/components/OptionalForm"; //æ£åç»ä»¶ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import { listDept } from "@/api/system/dept"; | 
|---|
|  |  |  | // import * as Quill from "quill"; | 
|---|
|  |  |  | import Quill from "quill"; | 
|---|
|  |  |  | 
|---|
|  |  |  | ]; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | export default { | 
|---|
|  |  |  | components: { OptionalForm }, | 
|---|
|  |  |  | data() { | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | headers: { | 
|---|
|  |  |  | 
|---|
|  |  |  | dynamicTags: [], | 
|---|
|  |  |  | inputVisible: false, | 
|---|
|  |  |  | illnessVisible: false, | 
|---|
|  |  |  | dialogVisiblepatient: false, //éç¨ç¾ç
çªå£ | 
|---|
|  |  |  | inputValue: "", | 
|---|
|  |  |  | // å¯ææ¬ | 
|---|
|  |  |  | editorOption: { | 
|---|
|  |  |  | 
|---|
|  |  |  | this.ruleForm.suitway.length != 0 | 
|---|
|  |  |  | ? this.ruleForm.suitway.join(",") | 
|---|
|  |  |  | : ""; | 
|---|
|  |  |  | if (this.id) { | 
|---|
|  |  |  | this.ruleForm.isoperation = 2; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.ruleForm.isoperation = 1; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.illnesslist.forEach((item, index) => { | 
|---|
|  |  |  | if (!item.id) { | 
|---|
|  |  |  | addtargetillness(item).then((res) => {}); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | if (this.illnesslistapi.length) { | 
|---|
|  |  |  | deltargetillness(this.illnesslistapi.join(",")).then((res) => {}); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | addrichText({ | 
|---|
|  |  |  | content: this.content, | 
|---|
|  |  |  | fileName: this.fileName ? this.fileName : "æµè¯.html", | 
|---|
|  |  |  | }).then((res) => { | 
|---|
|  |  |  | this.ruleForm.richText = res.msg; | 
|---|
|  |  |  | if (this.id) { | 
|---|
|  |  |  | this.ruleForm.isoperation = 2; | 
|---|
|  |  |  | compilelibrary(this.ruleForm).then((res) => { | 
|---|
|  |  |  | this.$modal.msgSuccess("ç¼è¾æå"); | 
|---|
|  |  |  | this.confirmillness(); | 
|---|
|  |  |  | this.$router.go(-1); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.ruleForm.isoperation = 1; | 
|---|
|  |  |  | compilelibrary(this.ruleForm).then((res) => { | 
|---|
|  |  |  | this.$modal.msgSuccess("æ°å¢æå"); | 
|---|
|  |  |  | this.confirmillness(res.data); | 
|---|
|  |  |  | this.$router.go(-1); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // ä¿åç¾ç | 
|---|
|  |  |  | confirmillness(guid) { | 
|---|
|  |  |  | this.illnesslist.forEach((item, index) => { | 
|---|
|  |  |  | if (guid) { | 
|---|
|  |  |  | item.outid = guid; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | console.log(this.ruleForm); | 
|---|
|  |  |  | item.outid = this.ruleForm.id; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | item.icd10name = item.icdname; | 
|---|
|  |  |  | item.icd10code = item.icdcode; | 
|---|
|  |  |  | item.type = 6; | 
|---|
|  |  |  | if (!item.id) { | 
|---|
|  |  |  | addtargetillness(item).then((res) => {}); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | this.illnessVisible = false; | 
|---|
|  |  |  | this.$modal.msgSuccess("ç¼è¾æå"); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | getFileNameFromPath(path) { | 
|---|
|  |  |  | const parts = path.split("/"); | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // ç¾ç
----------------------- | 
|---|
|  |  |  | illnessUpdate() { | 
|---|
|  |  |  | this.illnesslistapi = []; | 
|---|
|  |  |  | const illnessqueryParams = { | 
|---|
|  |  |  | pageNum: 1, | 
|---|
|  |  |  | pageSize: 100, | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | getillnesslist(illnessqueryParams).then((response) => { | 
|---|
|  |  |  | this.optionsillness = response.rows; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | if (this.id) { | 
|---|
|  |  |  | getillness({ outid: this.$route.query.id, type: 6 }).then((res) => { | 
|---|
|  |  |  | this.illnesslist = res.rows; | 
|---|
|  |  |  | this.illnesslist.forEach((item) => { | 
|---|
|  |  |  | item.icdname = item.icd10name; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | handleCloseillness(tag) { | 
|---|
|  |  |  | this.illnesslist.splice(this.illnesslist.indexOf(tag), 1); | 
|---|
|  |  |  | if (tag.id) { | 
|---|
|  |  |  | this.illnesslistapi.push(tag.id); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | remoteMethod(value) { | 
|---|
|  |  |  | const illnessqueryParams = { | 
|---|
|  |  |  | pageNum: 1, | 
|---|
|  |  |  | pageSize: 100, | 
|---|
|  |  |  | icdname: value, | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | this.loading = true; | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.loading = false; | 
|---|
|  |  |  | getillnesslist(illnessqueryParams).then((response) => { | 
|---|
|  |  |  | this.optionsillness = response.rows; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, 200); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | illnessConfirm(item) { | 
|---|
|  |  |  | let opeavalue = {}; | 
|---|
|  |  |  | let tagname = this.inputValue; | 
|---|
|  |  |  | illnesslistget(item).then((res) => { | 
|---|
|  |  |  | opeavalue = res.data; | 
|---|
|  |  |  | opeavalue.outid = this.id; | 
|---|
|  |  |  | opeavalue.type = 6; | 
|---|
|  |  |  | opeavalue.icd10id = opeavalue.icdid; | 
|---|
|  |  |  | opeavalue.icd10name = opeavalue.icdname; | 
|---|
|  |  |  | opeavalue.icd10code = opeavalue.icdcode; | 
|---|
|  |  |  | if (tagname) { | 
|---|
|  |  |  | this.illnesslist.push(opeavalue); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | this.illnessVisible = false; | 
|---|
|  |  |  | this.inputValue = ""; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | illnessshowInput() { | 
|---|
|  |  |  | this.illnessVisible = true; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // -------------------------- | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // é¢è§æ¨¡ç | 
|---|
|  |  |  | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | <el-row> | 
|---|
|  |  |  | <el-form-item label="éç¨ç¾ç
" prop="region"> | 
|---|
|  |  |  | <div class="xinz-inf"> | 
|---|
|  |  |  | <el-tag | 
|---|
|  |  |  | :key="item.icd10name" | 
|---|
|  |  |  | type="warning" | 
|---|
|  |  |  | v-for="item in illnesslist" | 
|---|
|  |  |  | closable | 
|---|
|  |  |  | :disable-transitions="false" | 
|---|
|  |  |  | @close="handleCloseillness(item)" | 
|---|
|  |  |  | <el-button type="warning" @click="$refs.child.handleAddpatient()" | 
|---|
|  |  |  | >æ·»å ç¾ç
</el-button | 
|---|
|  |  |  | > | 
|---|
|  |  |  | {{ item.icd10name }} | 
|---|
|  |  |  | </el-tag> | 
|---|
|  |  |  | <el-select | 
|---|
|  |  |  | v-model="inputValueillness" | 
|---|
|  |  |  | v-if="inputVisibleillness" | 
|---|
|  |  |  | @change="illnessConfirm" | 
|---|
|  |  |  | :remote-method="remoteMethod" | 
|---|
|  |  |  | filterable | 
|---|
|  |  |  | remote | 
|---|
|  |  |  | allow-create | 
|---|
|  |  |  | default-first-option | 
|---|
|  |  |  | placeholder="è¯·éæ©/æ¥è¯¢" | 
|---|
|  |  |  | :loading="loading" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <el-option | 
|---|
|  |  |  | v-for="item in optionsillness" | 
|---|
|  |  |  | :key="item.icdid" | 
|---|
|  |  |  | :label="item.icdname" | 
|---|
|  |  |  | :value="item.icdid" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </el-option> | 
|---|
|  |  |  | </el-select> | 
|---|
|  |  |  | <el-button | 
|---|
|  |  |  | v-else | 
|---|
|  |  |  | class="button-new-tag" | 
|---|
|  |  |  | size="small" | 
|---|
|  |  |  | @click="inputVisibleillness = true" | 
|---|
|  |  |  | >+ æ°å¢ç¾ç
</el-button | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | <el-row :gutter="20"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <el-button type="primary" @click="laststep()">ä¸ä¸æ¥</el-button> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <!-- é¢è§æ¨¡ç弹窠--> | 
|---|
|  |  |  | <!-- æ·»å é¢ç®å¼¹çª --> | 
|---|
|  |  |  | <el-drawer | 
|---|
|  |  |  | title="æ·»å é¢ç®" | 
|---|
|  |  |  | :visible.sync="drawer" | 
|---|
|  |  |  | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </el-drawer> | 
|---|
|  |  |  | <!-- æ·»å éç¨ç¾ç
çªå£ --> | 
|---|
|  |  |  | <Optional-Form | 
|---|
|  |  |  | ref="child" | 
|---|
|  |  |  | :dialogVisiblepatient="dialogVisiblepatient" | 
|---|
|  |  |  | :overallCase="illnesslist" | 
|---|
|  |  |  | @addoption="dialogVisiblepatient = false" | 
|---|
|  |  |  | @kkoption="dialogVisiblepatient = true" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | getQtemplateclassify, | 
|---|
|  |  |  | delQtemplateclassify, | 
|---|
|  |  |  | addQtemplateclassify, | 
|---|
|  |  |  | getQtemplatelist, | 
|---|
|  |  |  | getQtemplateobj, | 
|---|
|  |  |  | compileQtemplate, | 
|---|
|  |  |  | Qtemplateinfo, | 
|---|
|  |  |  | compileissue, | 
|---|
|  |  |  | 
|---|
|  |  |  | illnesslistget, | 
|---|
|  |  |  | getillness, | 
|---|
|  |  |  | } from "@/api/AiCentre/index"; | 
|---|
|  |  |  | import OptionalForm from "@/components/OptionalForm"; //æ£åç»ä»¶ | 
|---|
|  |  |  | import { getToken } from "@/utils/auth"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | export default { | 
|---|
|  |  |  | name: "Qcompilequer", | 
|---|
|  |  |  |  | 
|---|
|  |  |  | components: { OptionalForm }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | data() { | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | headers: { | 
|---|
|  |  |  | 
|---|
|  |  |  | radioas: "", //填空é¢çæ¡ | 
|---|
|  |  |  | dynamicTags: [], | 
|---|
|  |  |  | inputVisible: false, | 
|---|
|  |  |  | dialogVisiblepatient: false, //éç¨ç¾ç
çªå£ | 
|---|
|  |  |  | inputValue: "", | 
|---|
|  |  |  | topicobj: {}, | 
|---|
|  |  |  | // æ»æ¡æ° | 
|---|
|  |  |  | 
|---|
|  |  |  | getissueinfo() { | 
|---|
|  |  |  | this.id = this.$route.query.id; | 
|---|
|  |  |  | if (this.id) { | 
|---|
|  |  |  | getQtemplatelist({ svyid: this.id }).then((res) => { | 
|---|
|  |  |  | getQtemplateobj({ svyid: this.id }).then((res) => { | 
|---|
|  |  |  | this.ruleForm = res.rows[0]; | 
|---|
|  |  |  | this.dynamicTags = this.ruleForm.svyLibTemplateTagList.map( | 
|---|
|  |  |  | this.processElement | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | this.tempDetpRelevanceslist = JSON.parse(this.ruleForm.deptNames); | 
|---|
|  |  |  | this.ruleForm.suitway = this.ruleForm.suitway.split(","); | 
|---|
|  |  |  | console.log(this.tempDetpRelevanceslist); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | getillness({ outid: this.id, type: 5 }).then((res) => { | 
|---|
|  |  |  | this.illnesslist = res.rows; | 
|---|
|  |  |  | this.illnesslist.forEach((item) => { | 
|---|
|  |  |  | item.icdname = item.icd10name; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | getillnesslist({ | 
|---|
|  |  |  | pageNum: 1, | 
|---|
|  |  |  | pageSize: 100, | 
|---|
|  |  |  | }).then((response) => { | 
|---|
|  |  |  | this.optionsillness = response.rows; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | listDept(this.queryParams).then((response) => { | 
|---|
|  |  |  | this.deptList = this.handleTree(response.data, "deptId"); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | // åç±» | 
|---|
|  |  |  | getQtemplateclassify({}).then((res) => { | 
|---|
|  |  |  | // this.optionsclass = this.flattenArray(res.rows); | 
|---|
|  |  |  | this.optionsclass = res.rows; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | showInput() { | 
|---|
|  |  |  | this.inputVisible = true; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // ç¾ç
----------------------- | 
|---|
|  |  |  |  | 
|---|
|  |  |  | handleCloseillness(tag) { | 
|---|
|  |  |  | this.illnesslist.splice(this.illnesslist.indexOf(tag), 1); | 
|---|
|  |  |  | if (tag.id) { | 
|---|
|  |  |  | this.illnesslistapi.push(tag.id); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | remoteMethod(value) { | 
|---|
|  |  |  | console.log(value); | 
|---|
|  |  |  | const illnessqueryParams = { | 
|---|
|  |  |  | pageNum: 1, | 
|---|
|  |  |  | pageSize: 100, | 
|---|
|  |  |  | icdname: value, | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | this.loading = true; | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.loading = false; | 
|---|
|  |  |  | getillnesslist(illnessqueryParams).then((response) => { | 
|---|
|  |  |  | this.optionsillness = response.rows; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, 200); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | illnessConfirm(item) { | 
|---|
|  |  |  | let opeavalue = {}; | 
|---|
|  |  |  | let tagname = this.inputValueillness; | 
|---|
|  |  |  | illnesslistget(item).then((res) => { | 
|---|
|  |  |  | opeavalue = res.data; | 
|---|
|  |  |  | opeavalue.outid = this.id; | 
|---|
|  |  |  | opeavalue.type = 5; | 
|---|
|  |  |  | opeavalue.icd10id = opeavalue.icdid; | 
|---|
|  |  |  | opeavalue.icd10name = opeavalue.icdname; | 
|---|
|  |  |  | opeavalue.icd10code = opeavalue.icdcode; | 
|---|
|  |  |  | if (tagname) { | 
|---|
|  |  |  | this.illnesslist.push(opeavalue); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | console.log(this.illnesslist); | 
|---|
|  |  |  | this.inputVisibleillness = false; | 
|---|
|  |  |  | this.inputValueillness = ""; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // ä¿å | 
|---|
|  |  |  | // ä¿åç¾ç | 
|---|
|  |  |  | confirmillness(guid) { | 
|---|
|  |  |  | this.illnesslist.forEach((item, index) => { | 
|---|
|  |  |  | if (guid) { | 
|---|
|  |  |  | item.outid = guid; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | console.log(this.ruleForm); | 
|---|
|  |  |  | item.outid = this.ruleForm.svyid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | item.icd10name = item.icdname; | 
|---|
|  |  |  | item.icd10code = item.icdcode; | 
|---|
|  |  |  | item.type = 5; | 
|---|
|  |  |  | if (!item.id) { | 
|---|
|  |  |  | addtargetillness(item).then((res) => {}); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | if (this.illnesslistapi.length) { | 
|---|
|  |  |  | deltargetillness(this.illnesslistapi.join(",")).then((res) => {}); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.illnessVisible = false; | 
|---|
|  |  |  | this.$modal.msgSuccess("ç¼è¾æå"); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | return data.name.indexOf(value) !== -1; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | handleNodeClick(data) { | 
|---|
|  |  |  | this.queryParams.assortid = data.id; | 
|---|
|  |  |  | this.queryParams.categoryid = data.id; | 
|---|
|  |  |  | this.getList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <el-form-item label="éç¨ç¾ç
" prop="region"> | 
|---|
|  |  |  | <div class="xinz-inf"> | 
|---|
|  |  |  | <el-tag | 
|---|
|  |  |  | :key="item.icd10name" | 
|---|
|  |  |  | type="warning" | 
|---|
|  |  |  | v-for="item in illnesslist" | 
|---|
|  |  |  | closable | 
|---|
|  |  |  | :disable-transitions="false" | 
|---|
|  |  |  | @close="handleCloseillness(item)" | 
|---|
|  |  |  | <el-button type="warning" @click="$refs.child.handleAddpatient()" | 
|---|
|  |  |  | >æ·»å ç¾ç
</el-button | 
|---|
|  |  |  | > | 
|---|
|  |  |  | {{ item.icd10name }} | 
|---|
|  |  |  | </el-tag> | 
|---|
|  |  |  | <el-select | 
|---|
|  |  |  | v-model="inputValueillness" | 
|---|
|  |  |  | v-if="inputVisibleillness" | 
|---|
|  |  |  | @change="illnessConfirm" | 
|---|
|  |  |  | :remote-method="remoteMethod" | 
|---|
|  |  |  | filterable | 
|---|
|  |  |  | remote | 
|---|
|  |  |  | allow-create | 
|---|
|  |  |  | default-first-option | 
|---|
|  |  |  | placeholder="è¯·éæ©/æ¥è¯¢" | 
|---|
|  |  |  | :loading="loading" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <el-option | 
|---|
|  |  |  | v-for="item in optionsillness" | 
|---|
|  |  |  | :key="item.icdid" | 
|---|
|  |  |  | :label="item.icdname" | 
|---|
|  |  |  | :value="item.icdid" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </el-option> | 
|---|
|  |  |  | </el-select> | 
|---|
|  |  |  | <el-button | 
|---|
|  |  |  | v-else | 
|---|
|  |  |  | class="button-new-tag" | 
|---|
|  |  |  | size="small" | 
|---|
|  |  |  | @click="inputVisibleillness = true" | 
|---|
|  |  |  | >+ æ°å¢ç¾ç
</el-button | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-form-item label="éç¨é¢åº" prop="region"> | 
|---|
|  |  |  | <el-select | 
|---|
|  |  |  | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </el-drawer> | 
|---|
|  |  |  | <!-- æ·»å éç¨ç¾ç
çªå£ --> | 
|---|
|  |  |  | <Optional-Form | 
|---|
|  |  |  | ref="child" | 
|---|
|  |  |  | :dialogVisiblepatient="dialogVisiblepatient" | 
|---|
|  |  |  | :overallCase="illnesslist" | 
|---|
|  |  |  | @addoption="dialogVisiblepatient = false" | 
|---|
|  |  |  | @kkoption="dialogVisiblepatient = true" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | getillness, | 
|---|
|  |  |  | getgenerallist, | 
|---|
|  |  |  | } from "@/api/AiCentre/index"; | 
|---|
|  |  |  | import OptionalForm from "@/components/OptionalForm"; //æ£åç»ä»¶ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | export default { | 
|---|
|  |  |  | name: "SpeechTemplates", | 
|---|
|  |  |  | components: { Regular }, | 
|---|
|  |  |  | components: { Regular, OptionalForm }, | 
|---|
|  |  |  | data() { | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | Editprogress: 1, //ç¼è¾è¿åº¦ | 
|---|
|  |  |  | 
|---|
|  |  |  | taskform: null, //ä»»å¡ä¿¡æ¯ | 
|---|
|  |  |  | labelInfovalue: [], //æ ç¾ä¸´æ¶åå¨ | 
|---|
|  |  |  | deptNamesvalue: [], //ç§å®¤ä¸´æ¶åå¨ | 
|---|
|  |  |  | dialogVisiblepatient: false, //éç¨ç¾ç
çªå£ | 
|---|
|  |  |  | dynamicTags: [], | 
|---|
|  |  |  | indexAssortlist: [], | 
|---|
|  |  |  | inputValue: "", | 
|---|
|  |  |  | 
|---|
|  |  |  | console.log(this.ruleForm.suitway); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | getillnesslist({ | 
|---|
|  |  |  | pageNum: 1, | 
|---|
|  |  |  | pageSize: 100, | 
|---|
|  |  |  | }).then((response) => { | 
|---|
|  |  |  | this.optionsillness = response.rows; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | if (this.id) { | 
|---|
|  |  |  | getillness({ outid: this.id, type: 3 }).then((res) => { | 
|---|
|  |  |  | this.illnesslist = res.rows; | 
|---|
|  |  |  | this.illnesslist.forEach((item) => { | 
|---|
|  |  |  | item.icdname = item.icd10name; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | listDept(this.queryParams).then((response) => { | 
|---|
|  |  |  | this.deptList = this.handleTree(response.data, "deptId"); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | 
|---|
|  |  |  | this.illnesslist.forEach((item, index) => { | 
|---|
|  |  |  | if (guid) { | 
|---|
|  |  |  | item.outid = guid; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | console.log(this.ruleForm); | 
|---|
|  |  |  | item.outid = this.ruleForm.id; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | item.icd10name = item.icdname; | 
|---|
|  |  |  | item.icd10code = item.icdcode; | 
|---|
|  |  |  | item.type = 3; | 
|---|
|  |  |  | if (!item.id) { | 
|---|
|  |  |  | addtargetillness(item).then((res) => {}); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | if (this.illnesslistapi.length) { | 
|---|
|  |  |  | deltargetillness(this.illnesslistapi.join(",")).then((res) => {}); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.illnessVisible = false; | 
|---|
|  |  |  | this.$modal.msgSuccess("ç¼è¾æå"); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | this.$refs[formName].resetFields(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // ç¾ç
----------------------- | 
|---|
|  |  |  |  | 
|---|
|  |  |  | handleCloseillness(tag) { | 
|---|
|  |  |  | this.illnesslist.splice(this.illnesslist.indexOf(tag), 1); | 
|---|
|  |  |  | if (tag.id) { | 
|---|
|  |  |  | this.illnesslistapi.push(tag.id); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | remoteMethod(value) { | 
|---|
|  |  |  | console.log(value); | 
|---|
|  |  |  | const illnessqueryParams = { | 
|---|
|  |  |  | pageNum: 1, | 
|---|
|  |  |  | pageSize: 100, | 
|---|
|  |  |  | icdname: value, | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | this.loading = true; | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.loading = false; | 
|---|
|  |  |  | getillnesslist(illnessqueryParams).then((response) => { | 
|---|
|  |  |  | this.optionsillness = response.rows; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, 200); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | illnessConfirm(item) { | 
|---|
|  |  |  | let opeavalue = {}; | 
|---|
|  |  |  | let tagname = this.inputValueillness; | 
|---|
|  |  |  | illnesslistget(item).then((res) => { | 
|---|
|  |  |  | opeavalue = res.data; | 
|---|
|  |  |  | opeavalue.outid = this.id; | 
|---|
|  |  |  | opeavalue.type = 3; | 
|---|
|  |  |  | opeavalue.icd10id = opeavalue.icdid; | 
|---|
|  |  |  | opeavalue.icd10name = opeavalue.icdname; | 
|---|
|  |  |  | opeavalue.icd10code = opeavalue.icdcode; | 
|---|
|  |  |  | if (tagname) { | 
|---|
|  |  |  | this.illnesslist.push(opeavalue); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | console.log(this.illnesslist); | 
|---|
|  |  |  | this.inputVisibleillness = false; | 
|---|
|  |  |  | this.inputValueillness = ""; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // é¢è§--------------- | 
|---|
|  |  |  | preview() { | 
|---|
|  |  |  | console.log(this.ruleForm); | 
|---|
|  |  |  | 
|---|
|  |  |  | @syioption="syioption" | 
|---|
|  |  |  | @xiayioption="xiayioption" | 
|---|
|  |  |  | :intent="false" | 
|---|
|  |  |  | :Verbalproblem="false" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </el-card> | 
|---|
|  |  |  | <el-row :gutter="20"> | 
|---|