|
|
|
@ -1,78 +1,83 @@ |
|
|
|
<template> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div :style="`width:${sumWidth}px;`"> |
|
|
|
<el-table id="tableSummary" row-key="id" :data="doctorCheck.checkSummaryList" size="samll" :height="sumHeight" |
|
|
|
width="100%" border> |
|
|
|
<el-table-column type="index" width="25" align="center" /> |
|
|
|
<el-table-column prop="summary" label="小结"> |
|
|
|
<template slot="header"> |
|
|
|
<div style="display: flex;justify-content:space-between;"> |
|
|
|
<div>小结</div> |
|
|
|
<div> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div :style="`width:${sumWidth}px;`"> |
|
|
|
<el-table id="tableSummary" row-key="id" :data="doctorCheck.checkSummaryList" size="samll" :height="sumHeight" |
|
|
|
width="100%" border> |
|
|
|
<el-table-column type="index" width="25" align="center" /> |
|
|
|
<el-table-column prop="summary" label="小结"> |
|
|
|
<template slot="header"> |
|
|
|
<div style="display: flex;justify-content:space-between;"> |
|
|
|
<div>小结</div> |
|
|
|
<div></div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '生成小结')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="btnMakeDiagnosis" :disabled="doctorBtnDisabled('btnMakeDiagnosis')">生成小结</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '新增小结')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="addSummary" :disabled="doctorBtnDisabled('addSummary')">新增小结</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '保存结果')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="save" :disabled="doctorBtnDisabled('save')">保存结果</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '审核')"> |
|
|
|
<el-button type="primary" class="btnClass" style="min-width: 40px;" @click="audit" :disabled="doctorBtnDisabled('audit')">审核</el-button> |
|
|
|
<el-input type="textarea" v-model="scope.row.summary" :autosize="{ minRows: 1, maxRows: 100 }" |
|
|
|
:disabled="doctorBtnDisabled('delSum')" placeholder="请输入小结"> |
|
|
|
</el-input> |
|
|
|
<el-button type="danger" style="min-width:23px;padding:2px;" icon="el-icon-delete" |
|
|
|
@click="delSum(scope.$index)" :disabled="doctorBtnDisabled('delSum')" size="small"></el-button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div style="display: flex; position:absolute; top:0px;right:0px;z-index: 300;"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '生成小结')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="btnMakeDiagnosis" |
|
|
|
:disabled="doctorBtnDisabled('btnMakeDiagnosis')">生成小结</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '新增小结')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="addSummary" |
|
|
|
:disabled="doctorBtnDisabled('addSummary')">新增小结</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '保存结果')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="save" |
|
|
|
:disabled="doctorBtnDisabled('save')">保存结果</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '审核')"> |
|
|
|
<el-button type="primary" class="btnClass" style="min-width: 40px;" @click="audit" |
|
|
|
:disabled="doctorBtnDisabled('audit')">审核</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '排队')"> |
|
|
|
<el-button type="primary" class="btnClass" style="min-width: 40px;" @click="btnLineUp" |
|
|
|
:disabled="doctorBtnDisabled('btnLineUp')">排队</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '排队')"> |
|
|
|
<el-button type="primary" class="btnClass" style="min-width: 40px;" @click="btnLineUp" :disabled="doctorBtnDisabled('btnLineUp')">排队</el-button> |
|
|
|
|
|
|
|
<div :style="`margin-left:2px;width:${sumWidth}px;`"> |
|
|
|
<el-table id="tableSuggestion" row-key="id" :data="doctorCheck.checkSuggestionList" size="samll" |
|
|
|
:height="sumHeight" width="100%" border> |
|
|
|
<el-table-column type="index" width="25" align="center" /> |
|
|
|
<el-table-column prop="suggestion" label="建议"> |
|
|
|
<template slot="header"> |
|
|
|
<div style="display: flex;justify-content:space-between;"> |
|
|
|
<div>建议</div> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '新增建议')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="addSuggestion" |
|
|
|
:disabled="doctorBtnDisabled('addSuggestion')">新增建议</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div style="display: flex;"> |
|
|
|
<el-input type="textarea" v-model="scope.row.summary" :autosize="{ minRows: 1, maxRows: 100 }" |
|
|
|
:disabled="doctorBtnDisabled('delSum')" |
|
|
|
placeholder="请输入小结"> |
|
|
|
</el-input> |
|
|
|
<el-button type="danger" style="min-width:23px;padding:2px;" icon="el-icon-delete" |
|
|
|
@click="delSum(scope.$index)" |
|
|
|
:disabled="doctorBtnDisabled('delSum')" |
|
|
|
size="small"></el-button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div :style="`margin-left:2px;width:${sumWidth}px;`"> |
|
|
|
<el-table id="tableSuggestion" row-key="id" :data="doctorCheck.checkSuggestionList" size="samll" :height="sumHeight" |
|
|
|
width="100%" border> |
|
|
|
<el-table-column type="index" width="25" align="center" /> |
|
|
|
<el-table-column prop="suggestion" label="建议"> |
|
|
|
<template slot="header"> |
|
|
|
<div style="display: flex;justify-content:space-between;"> |
|
|
|
<div>建议</div> |
|
|
|
</template> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '新增建议')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="addSuggestion" |
|
|
|
:disabled="doctorBtnDisabled('addSuggestion')">新增建议</el-button> |
|
|
|
</div> |
|
|
|
<el-input type="textarea" v-model="scope.row.suggestion" :autosize="{ minRows: 1, maxRows: 100 }" |
|
|
|
:disabled="doctorBtnDisabled('delSug')" placeholder="请输入建议"> |
|
|
|
</el-input> |
|
|
|
<el-button type="danger" style="min-width:23px;padding:2px;" icon="el-icon-delete" |
|
|
|
@click="delSug(scope.$index)" :disabled="doctorBtnDisabled('delSug')" size="small"></el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div style="display: flex;"> |
|
|
|
<el-input type="textarea" v-model="scope.row.suggestion" :autosize="{ minRows: 1, maxRows: 100 }" |
|
|
|
:disabled="doctorBtnDisabled('delSug')" |
|
|
|
placeholder="请输入建议"> |
|
|
|
</el-input> |
|
|
|
<el-button type="danger" style="min-width:23px;padding:2px;" icon="el-icon-delete" |
|
|
|
@click="delSug(scope.$index)" |
|
|
|
:disabled="doctorBtnDisabled('delSug')" |
|
|
|
size="small"></el-button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
@ -82,7 +87,7 @@ import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { getPagePriv, checkPagePriv, deepCopy } from "../../utlis/proFunc"; |
|
|
|
export default { |
|
|
|
components: {}, |
|
|
|
props: ["registerCheckId", "isCheckPicture", "optGrant", "addSummary", "btnMakeDiagnosis", "save", "audit", "unAudit", "btnLineUp","doctorBtnDisabled"], |
|
|
|
props: ["registerCheckId", "isCheckPicture", "optGrant", "addSummary", "btnMakeDiagnosis", "save", "audit", "unAudit", "btnLineUp", "doctorBtnDisabled"], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
pagePriv: { |
|
|
|
@ -275,5 +280,6 @@ export default { |
|
|
|
height: 23px; |
|
|
|
line-height: 1.25; |
|
|
|
padding: 1px 15px 1px 2px; |
|
|
|
}</style> |
|
|
|
} |
|
|
|
</style> |
|
|
|
|