|
|
|
@ -1,181 +1,215 @@ |
|
|
|
<template> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div style="width:50%;"> |
|
|
|
<el-table id="tableSummary" row-key="id" :data="sumDoctorCheck.summaryList" width="100%" :height="sumHeight" border |
|
|
|
size="small"> |
|
|
|
<el-table-column type="index" width="20" align="center" /> |
|
|
|
<el-table-column prop="summaryTitle" label="综述"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
<el-input v-model="scope.row.summaryTitle" placeholder="请输入综述" disabled></el-input> |
|
|
|
<el-table :id="scope.row.id" :row-key="scope.$index + scope.row.id" style="margin-left: 10px;" |
|
|
|
:data="scope.row.details" border @row-click="rowClick" :show-header="false"> |
|
|
|
<el-table-column width="30"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<div>{{ scope2.$index + 1 }})</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="summaryContent" label="综述" min-width="200"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<!--:autosize="{ minRows: 1, maxRows: 20 } "--> |
|
|
|
<el-input type="textarea" v-model="scope2.row.summaryContent" placeholder="请输入综述" disabled |
|
|
|
:autosize="{ minRows: 1, maxRows: 20 }"> |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column width="8" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div style="position: absolute; top: 0px; right: 2px; display: flex;z-index: 3;"> |
|
|
|
<div style="margin-right: 5px;"> |
|
|
|
<el-button style="height: 28px;" class="commonbutton" @click="btnCollapseAll" :disabled="sumBtnDisabled('collapse')">{{ |
|
|
|
collapse ? |
|
|
|
'展开' : '折叠' }}全部建议</el-button> |
|
|
|
<div> |
|
|
|
<!--组件--> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div style="width:50%;"> |
|
|
|
<el-table id="tableSummary" row-key="id" :data="sumDoctorCheck.summaryList" width="100%" :height="sumHeight" |
|
|
|
border size="small"> |
|
|
|
<el-table-column type="index" width="20" align="center" /> |
|
|
|
<el-table-column prop="summaryTitle" label="综述"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
<el-input v-model="scope.row.summaryTitle" placeholder="请输入综述" disabled></el-input> |
|
|
|
<el-table :id="scope.row.id" :row-key="scope.$index + scope.row.id" style="margin-left: 10px;" |
|
|
|
:data="scope.row.details" border @row-click="rowClick" :show-header="false"> |
|
|
|
<el-table-column width="30"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<div>{{ scope2.$index + 1 }})</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="summaryContent" label="综述" min-width="200"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<!--:autosize="{ minRows: 1, maxRows: 20 } "--> |
|
|
|
<el-input type="textarea" v-model="scope2.row.summaryContent" placeholder="请输入综述" disabled |
|
|
|
:autosize="{ minRows: 1, maxRows: 20 }"> |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column width="8" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '新增建议')"> |
|
|
|
<el-button style="height: 28px;" class="commonbutton" @click="addSuggtion" |
|
|
|
:disabled="sumBtnDisabled()">新增建议</el-button> |
|
|
|
<div style="position: absolute; top: 0px; right: 2px; display: flex;z-index: 3;"> |
|
|
|
<div style="margin-right: 5px;"> |
|
|
|
<el-button style="height: 28px;" class="commonbutton" @click="btnCollapseAll" |
|
|
|
:disabled="sumBtnDisabled('collapse')">{{ |
|
|
|
collapse ? |
|
|
|
'展开' : '折叠' }}全部建议</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '新增建议')"> |
|
|
|
<el-button style="height: 28px;" class="commonbutton" @click="addSuggtion" |
|
|
|
:disabled="sumBtnDisabled()">新增建议</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="width:50%;"> |
|
|
|
<el-table id="tableSuggestion" row-key="id" :data="sumDoctorCheck.suggestionList" width="100%" :height="sumHeight" |
|
|
|
border size="small" ref="tableSuggestion"> |
|
|
|
<el-table-column type="index" width="20" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="suggestionTitle" label="建议"> |
|
|
|
<template slot="header"> |
|
|
|
<div style="display: flex;justify-content:space-between;"> |
|
|
|
<div>建议</div> |
|
|
|
<div></div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
<div style="display: flex;"> |
|
|
|
<el-input v-model="scope.row.suggestionTitle" placeholder="请输入建议标题" :ref="scope.row.id" :id="scope.row.id" |
|
|
|
:disabled="sumBtnDisabled()"> |
|
|
|
</el-input> |
|
|
|
<el-button type="danger" :icon="scope.row.collapse ? 'el-icon-arrow-down' : 'el-icon-arrow-up'" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" @click="btnCollapse(sumDoctorCheck.suggestionList,scope.$index,scope.row)" |
|
|
|
:disabled="sumBtnDisabled('collapse')"></el-button> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除建议')" type="danger" icon="el-icon-delete" |
|
|
|
style="margin-left: 2px;min-width:21px;height:21px;padding:2px;" @click="delSugHead(scope.$index)" |
|
|
|
:disabled="sumBtnDisabled()"></el-button> |
|
|
|
<div style="width:50%;"> |
|
|
|
<el-table id="tableSuggestion" row-key="id" :data="sumDoctorCheck.suggestionList" width="100%" :height="sumHeight" |
|
|
|
border size="small" ref="tableSuggestion"> |
|
|
|
<el-table-column type="index" width="20" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="suggestionTitle" label="建议"> |
|
|
|
<template slot="header"> |
|
|
|
<div style="display: flex;justify-content:space-between;"> |
|
|
|
<div>建议</div> |
|
|
|
<div></div> |
|
|
|
</div> |
|
|
|
<div v-show="!scope.row.collapse"> |
|
|
|
<div style="display: flex;margin-top: 2px;"> |
|
|
|
<div style="width:60px;">诊断</div> |
|
|
|
<el-select v-model="scope.row.diagnosisIds" multiple placeholder="请选择" style="width: 100%;" |
|
|
|
:disabled="sumBtnDisabled()" @change="changeDiagnosis" filterable> |
|
|
|
<el-option v-for="item in diagnosises" :key="item.id" :value="item.id" :label="item.displayName" |
|
|
|
:disabled="disabledDiagnosis(item.id, scope.$index)" /> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div style="display: flex;margin-top: 2px;"> |
|
|
|
<div style="width:60px;">医学解释</div> |
|
|
|
<el-tooltip content="新增医学解释" placement="top"> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '新增医学解释')" type="success" icon="el-icon-plus" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 0)" |
|
|
|
:disabled="sumBtnDisabled()"> |
|
|
|
</el-button> |
|
|
|
</el-tooltip> |
|
|
|
<el-table :id="'0_sug' + scope.row.id" row-key="displayOrder" style="margin-left: 5px;" |
|
|
|
:data="scope.row.medicalInterpretations" border @row-click="rowClickSug0" :show-header="false"> |
|
|
|
<el-table-column width="30"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<div>{{ scope2.$index + 1 }}).</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="suggestionContent" label="建议" min-width="200"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容" |
|
|
|
:disabled="sumBtnDisabled()" :autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" width="25"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除医学解释')" type="danger" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete" |
|
|
|
@click="delSug(scope.row.medicalInterpretations, scope2.$index)" :disabled="sumBtnDisabled()" |
|
|
|
size="small"></el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</template> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
<div style="display: flex;" @dblclick="openSymbols(scope.$index, 'suggestionTitle', -1)"> |
|
|
|
<el-input v-model="scope.row.suggestionTitle" placeholder="请输入建议标题" :ref="scope.row.id" |
|
|
|
:id="scope.row.id" :disabled="sumBtnDisabled()"> |
|
|
|
</el-input> |
|
|
|
<el-button type="danger" :icon="scope.row.collapse ? 'el-icon-arrow-down' : 'el-icon-arrow-up'" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" |
|
|
|
@click="btnCollapse(sumDoctorCheck.suggestionList, scope.$index, scope.row)" |
|
|
|
:disabled="sumBtnDisabled('collapse')"></el-button> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除建议')" type="danger" icon="el-icon-delete" |
|
|
|
style="margin-left: 2px;min-width:21px;height:21px;padding:2px;" @click="delSugHead(scope.$index)" |
|
|
|
:disabled="sumBtnDisabled()"></el-button> |
|
|
|
</div> |
|
|
|
<div style="display: flex;margin-top: 2px;"> |
|
|
|
<div style="width:60px;">常见原因</div> |
|
|
|
<el-tooltip content="新增常见原因" placement="top"> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '新增常见原因')" type="danger" icon="el-icon-plus" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 1)" |
|
|
|
:disabled="sumBtnDisabled()"> |
|
|
|
</el-button> |
|
|
|
</el-tooltip> |
|
|
|
<el-table :id="'1_sug' + scope.row.id" row-key="displayOrder" style="margin-left: 5px;" |
|
|
|
:data="scope.row.commonReasons" border @row-click="rowClickSug1" :show-header="false"> |
|
|
|
<el-table-column width="30"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<div>{{ scope2.$index + 1 }}).</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="suggestionContent" label="建议" min-width="200"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容" |
|
|
|
:disabled="sumBtnDisabled()" :autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" width="25"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除常见原因')" type="danger" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete" |
|
|
|
@click="delSug(scope.row.commonReasons, scope2.$index)" :disabled="sumBtnDisabled()" |
|
|
|
size="small"></el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div style="display: flex;margin-top: 2px;"> |
|
|
|
<div style="width:60px;">健康指导</div> |
|
|
|
<el-tooltip content="新增健康指导" placement="top"> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '新增健康指导')" type="danger" icon="el-icon-plus" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 2)" |
|
|
|
:disabled="sumBtnDisabled()"> |
|
|
|
</el-button> |
|
|
|
</el-tooltip> |
|
|
|
<el-table :id="'2_sug' + scope.row.id" row-key="displayOrder" style="margin-left: 5px;" |
|
|
|
:data="scope.row.healthGuidances" border @row-click="rowClickSug2" :show-header="false"> |
|
|
|
<el-table-column width="30"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<div>{{ scope2.$index + 1 }}).</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="suggestionContent" label="建议" min-width="200"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入健康指导" |
|
|
|
:disabled="sumBtnDisabled()" :autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" width="25"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除健康指导')" type="danger" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete" |
|
|
|
@click="delSug(scope.row.healthGuidances, scope2.$index)" :disabled="sumBtnDisabled()" |
|
|
|
size="small"></el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<div v-show="!scope.row.collapse"> |
|
|
|
<div style="display: flex;margin-top: 2px;"> |
|
|
|
<div style="width:60px;">诊断</div> |
|
|
|
<el-select v-model="scope.row.diagnosisIds" multiple placeholder="请选择" style="width: 100%;" |
|
|
|
:disabled="sumBtnDisabled()" @change="changeDiagnosis" filterable> |
|
|
|
<el-option v-for="item in diagnosises" :key="item.id" :value="item.id" :label="item.displayName" |
|
|
|
:disabled="disabledDiagnosis(item.id, scope.$index)" /> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div style="display: flex;margin-top: 2px;"> |
|
|
|
<div style="width:60px;">医学解释</div> |
|
|
|
<el-tooltip content="新增医学解释" placement="top"> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '新增医学解释')" type="success" icon="el-icon-plus" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 0)" |
|
|
|
:disabled="sumBtnDisabled()"> |
|
|
|
</el-button> |
|
|
|
</el-tooltip> |
|
|
|
<el-table :id="'0_sug' + scope.row.id" row-key="displayOrder" style="margin-left: 5px;" |
|
|
|
:data="scope.row.medicalInterpretations" border @row-click="rowClickSug0" :show-header="false"> |
|
|
|
<el-table-column width="30"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<div>{{ scope2.$index + 1 }}).</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="suggestionContent" label="建议" min-width="200"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<div @dblclick="openSymbols(scope.$index, 'medicalInterpretations', scope2.$index)"> |
|
|
|
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容" |
|
|
|
:disabled="sumBtnDisabled()" :autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
|
</el-input> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" width="25"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除医学解释')" type="danger" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete" |
|
|
|
@click="delSug(scope.row.medicalInterpretations, scope2.$index)" :disabled="sumBtnDisabled()" |
|
|
|
size="small"></el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div style="display: flex;margin-top: 2px;"> |
|
|
|
<div style="width:60px;">常见原因</div> |
|
|
|
<el-tooltip content="新增常见原因" placement="top"> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '新增常见原因')" type="danger" icon="el-icon-plus" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 1)" |
|
|
|
:disabled="sumBtnDisabled()"> |
|
|
|
</el-button> |
|
|
|
</el-tooltip> |
|
|
|
<el-table :id="'1_sug' + scope.row.id" row-key="displayOrder" style="margin-left: 5px;" |
|
|
|
:data="scope.row.commonReasons" border @row-click="rowClickSug1" :show-header="false"> |
|
|
|
<el-table-column width="30"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<div>{{ scope2.$index + 1 }}).</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="suggestionContent" label="建议" min-width="200"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<div @dblclick="openSymbols(scope.$index, 'commonReasons', scope2.$index)"> |
|
|
|
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容" |
|
|
|
:disabled="sumBtnDisabled()" :autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
|
</el-input> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" width="25"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除常见原因')" type="danger" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete" |
|
|
|
@click="delSug(scope.row.commonReasons, scope2.$index)" :disabled="sumBtnDisabled()" |
|
|
|
size="small"></el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div style="display: flex;margin-top: 2px;"> |
|
|
|
<div style="width:60px;">健康指导</div> |
|
|
|
<el-tooltip content="新增健康指导" placement="top"> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '新增健康指导')" type="danger" icon="el-icon-plus" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 2)" |
|
|
|
:disabled="sumBtnDisabled()"> |
|
|
|
</el-button> |
|
|
|
</el-tooltip> |
|
|
|
<el-table :id="'2_sug' + scope.row.id" row-key="displayOrder" style="margin-left: 5px;" |
|
|
|
:data="scope.row.healthGuidances" border @row-click="rowClickSug2" :show-header="false"> |
|
|
|
<el-table-column width="30"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<div>{{ scope2.$index + 1 }}).</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="suggestionContent" label="建议" min-width="200"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<div @dblclick="openSymbols(scope.$index, 'healthGuidances', scope2.$index)"> |
|
|
|
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入健康指导" |
|
|
|
:disabled="sumBtnDisabled()" :autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
|
</el-input> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" width="25"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除健康指导')" type="danger" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete" |
|
|
|
@click="delSug(scope.row.healthGuidances, scope2.$index)" :disabled="sumBtnDisabled()" |
|
|
|
size="small"></el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!--弹窗--> |
|
|
|
<div> |
|
|
|
<!-- 插入特殊符号 --> |
|
|
|
<el-dialog title="插入特殊符号" :visible.sync="dialogWinSymbols" width="600px" :close-on-click-modal="false"> |
|
|
|
<div style="margin-top: -5px;"> |
|
|
|
<div style="overflow-y:auto; width:100%;display: flex;flex-wrap: wrap;align-content: flex-start;"> |
|
|
|
<div v-for="item in symbols" :key="item.id" style="margin: 1px; 2px;cursor:pointer;" |
|
|
|
@click="insertSymbols(item.displayName)"> |
|
|
|
<el-tag style="padding: 0 3px;height: 24px;line-height: 24px;font-size: 15px;"> |
|
|
|
{{ item.displayName }} |
|
|
|
</el-tag> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div style="padding: 5px 0;">录入结果:</div> |
|
|
|
<el-input id="resultBox" style="width: 100%;" type="textarea" :autosize="{ minRows: 4, maxRows: 4 }" |
|
|
|
v-model="curResult" /> |
|
|
|
</div> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="btnOkResult">确 定</el-button> |
|
|
|
<el-button @click="dialogWinSymbols = false">关闭</el-button> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -197,6 +231,19 @@ export default { |
|
|
|
suggestionCurRow: 0, //当前操作建议的行 |
|
|
|
diagnosises: [], // 诊断 |
|
|
|
collapse: false, // 折叠/展开全部建议 |
|
|
|
|
|
|
|
dialogWinSymbols: false, |
|
|
|
selection: { // 光标位置 |
|
|
|
start: 0, end: 0 |
|
|
|
}, |
|
|
|
symbols: [], //特殊符号 |
|
|
|
curResult: "", // 当前输入框内容 |
|
|
|
|
|
|
|
dbclObj: { // 输入特殊符号前,双击的对象 |
|
|
|
index: -1, |
|
|
|
colName: '', // |
|
|
|
subIndex: -1, |
|
|
|
} |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -245,11 +292,19 @@ export default { |
|
|
|
// }, |
|
|
|
// 获取诊断数据 |
|
|
|
dictInit() { |
|
|
|
// 获取诊断 |
|
|
|
postapi('/api/app/diagnosis/getlistinsuggestion', {}).then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.diagnosises = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
//获取结果状态提示数据 |
|
|
|
postapi('/api/app/CommonChar/GetCommonCharList', {}).then(res => { |
|
|
|
if (res.code >= 0) { |
|
|
|
this.symbols = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//增加建议 |
|
|
|
@ -291,16 +346,16 @@ export default { |
|
|
|
// 单个折叠展开建议 |
|
|
|
btnCollapseAll() { |
|
|
|
this.collapse = !this.collapse |
|
|
|
this.sumDoctorCheck.suggestionList.forEach((e,index) => { |
|
|
|
this.sumDoctorCheck.suggestionList.forEach((e, index) => { |
|
|
|
e.collapse = this.collapse |
|
|
|
this.$set(this.sumDoctorCheck.suggestionList,index,e) |
|
|
|
this.$set(this.sumDoctorCheck.suggestionList, index, e) |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 单个折叠展开建议 |
|
|
|
btnCollapse(data,index,row) { |
|
|
|
row.collapse=!row.collapse |
|
|
|
this.$set(data,index,row) |
|
|
|
btnCollapse(data, index, row) { |
|
|
|
row.collapse = !row.collapse |
|
|
|
this.$set(data, index, row) |
|
|
|
// this.sumDoctorCheck.suggestionList[index]['collapse'] = !this.sumDoctorCheck.suggestionList[index]['collapse'] |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['tableSuggestion'].doLayout() |
|
|
|
@ -328,7 +383,7 @@ export default { |
|
|
|
distinguishCancelAndClose: true, |
|
|
|
confirmButtonText: '重新生成总检信息', |
|
|
|
cancelButtonText: '获取上次总检信息', |
|
|
|
showClose:false |
|
|
|
showClose: false |
|
|
|
}) |
|
|
|
isGetExistData = 'N' |
|
|
|
} catch (error) { |
|
|
|
@ -449,7 +504,7 @@ export default { |
|
|
|
// '人员已锁定,不可执行此操作' |
|
|
|
if (patientRegister.isLock && patientRegister.isLock == 'Y') return ret |
|
|
|
|
|
|
|
if(btnType && btnType == 'collapse') ret = false |
|
|
|
if (btnType && btnType == 'collapse') ret = false |
|
|
|
|
|
|
|
if (patientRegister.completeFlag && patientRegister.completeFlag != '3') ret = false |
|
|
|
|
|
|
|
@ -640,6 +695,71 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 打开特殊符号输入 |
|
|
|
openSymbols(index, colName, subIndex) { |
|
|
|
if (this.dataTransOpts.tableS.patient_register.completeFlag == '3') return |
|
|
|
this.dbclObj = { index, colName, subIndex } |
|
|
|
switch (colName) { |
|
|
|
case 'suggestionTitle': |
|
|
|
this.curResult = this.sumDoctorCheck.suggestionList[index][colName] |
|
|
|
break; |
|
|
|
default: |
|
|
|
this.curResult = this.sumDoctorCheck.suggestionList[index][colName][subIndex]['suggestionContent'] |
|
|
|
break; |
|
|
|
} |
|
|
|
this.dialogWinSymbols = true |
|
|
|
this.watchSelection() |
|
|
|
}, |
|
|
|
|
|
|
|
// 光标位置插入特殊符号 |
|
|
|
insertSymbols(symbols) { |
|
|
|
let result = this.curResult || '' |
|
|
|
if (result) { |
|
|
|
result = result.substring(0, this.selection.start) + symbols + result.substring(this.selection.end) |
|
|
|
} else { |
|
|
|
result = symbols |
|
|
|
} |
|
|
|
this.curResult = result |
|
|
|
this.selection.start++ |
|
|
|
this.selection.end++ |
|
|
|
}, |
|
|
|
// 获取光标位置的函数 |
|
|
|
getCaretPosition() { |
|
|
|
let input = document.getElementById('resultBox'); |
|
|
|
this.selection.start = input.selectionStart; |
|
|
|
this.selection.end = input.selectionEnd; |
|
|
|
// console.log('selection',this.selection) |
|
|
|
}, |
|
|
|
|
|
|
|
watchSelection() { |
|
|
|
this.$nextTick(() => { |
|
|
|
let that = this |
|
|
|
let resultBox = document.getElementById('resultBox'); //用数组可以读取多个标签的元素 //.inline-input |
|
|
|
// 绑定键盘事件到文本框 |
|
|
|
resultBox.addEventListener('click', function (event) { |
|
|
|
// 获取光标位置 |
|
|
|
that.getCaretPosition() |
|
|
|
}) |
|
|
|
|
|
|
|
resultBox.addEventListener('input', function (event) { |
|
|
|
// 获取光标位置 |
|
|
|
that.getCaretPosition() |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
btnOkResult() { |
|
|
|
switch (this.dbclObj.colName) { |
|
|
|
case 'suggestionTitle': |
|
|
|
this.sumDoctorCheck.suggestionList[this.dbclObj.index][this.dbclObj.colName] = this.curResult |
|
|
|
break; |
|
|
|
default: |
|
|
|
this.sumDoctorCheck.suggestionList[this.dbclObj.index][this.dbclObj.colName][this.dbclObj.subIndex]['suggestionContent'] = this.curResult |
|
|
|
break; |
|
|
|
} |
|
|
|
this.dialogWinSymbols = false |
|
|
|
}, |
|
|
|
|
|
|
|
findEl(fEl, nodeName) { |
|
|
|
let el = null |
|
|
|
for (let i = 0; i < fEl.children.length; i++) { |
|
|
|
@ -779,14 +899,17 @@ export default { |
|
|
|
::v-deep .el-table__empty-text { |
|
|
|
line-height: 22px; |
|
|
|
} |
|
|
|
|
|
|
|
::v-deep .el-tag { |
|
|
|
color: black; |
|
|
|
padding: 0 5px; |
|
|
|
font-size: 14px; |
|
|
|
color: black; |
|
|
|
padding: 0 5px; |
|
|
|
font-size: 14px; |
|
|
|
} |
|
|
|
|
|
|
|
::v-deep .el-table__empty-block { |
|
|
|
min-height: 22px; |
|
|
|
min-height: 22px; |
|
|
|
} |
|
|
|
|
|
|
|
::v-deep .el-input__inner { |
|
|
|
min-height: 23px; |
|
|
|
height: 23px; |
|
|
|
|