|
|
@ -1,8 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div style="display: flex;"> |
|
|
<div style="display: flex;"> |
|
|
<div :style="`width:${sumWidth}px;`"> |
|
|
<div :style="`width:${sumWidth}px;`"> |
|
|
<el-table id="tableSummary" row-key="id" :data="doctorCheck.checkSummaryList" size="samll" |
|
|
|
|
|
:height="sumHeight" |
|
|
|
|
|
|
|
|
<el-table id="tableSummary" row-key="id" :data="doctorCheck.checkSummaryList" size="samll" :height="sumHeight" |
|
|
width="100%" border> |
|
|
width="100%" border> |
|
|
<el-table-column type="index" width="25" align="center" /> |
|
|
<el-table-column type="index" width="25" align="center" /> |
|
|
<el-table-column prop="summary" label="小结"> |
|
|
<el-table-column prop="summary" label="小结"> |
|
|
@ -31,9 +30,11 @@ |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<div style="display: flex;"> |
|
|
<div style="display: flex;"> |
|
|
<el-input type="textarea" v-model="scope.row.summary" :autosize="{ minRows: 1, maxRows: 100 }" |
|
|
<el-input type="textarea" v-model="scope.row.summary" :autosize="{ minRows: 1, maxRows: 100 }" |
|
|
:disabled="doctorCheck.RegisterCheckEdit.completeFlag=='1' || doctorCheck.RegisterCheckEdit.completeFlag=='2'" placeholder="请输入小结"> |
|
|
|
|
|
|
|
|
:disabled="doctorCheck.RegisterCheckEdit.completeFlag == '1' || doctorCheck.RegisterCheckEdit.completeFlag == '2'" |
|
|
|
|
|
placeholder="请输入小结"> |
|
|
</el-input> |
|
|
</el-input> |
|
|
<el-button type="danger" style="min-width:23px;padding:2px;" icon="el-icon-delete" @click="delSum(scope.$index)" |
|
|
|
|
|
|
|
|
<el-button type="danger" style="min-width:23px;padding:2px;" icon="el-icon-delete" |
|
|
|
|
|
@click="delSum(scope.$index)" |
|
|
:disabled="doctorCheck.RegisterCheckEdit.completeFlag == '1' || doctorCheck.RegisterCheckEdit.completeFlag == '2'" |
|
|
:disabled="doctorCheck.RegisterCheckEdit.completeFlag == '1' || doctorCheck.RegisterCheckEdit.completeFlag == '2'" |
|
|
size="small"></el-button> |
|
|
size="small"></el-button> |
|
|
</div> |
|
|
</div> |
|
|
@ -42,17 +43,29 @@ |
|
|
</el-table> |
|
|
</el-table> |
|
|
</div> |
|
|
</div> |
|
|
<div :style="`margin-left:2px;width:${sumWidth}px;`"> |
|
|
<div :style="`margin-left:2px;width:${sumWidth}px;`"> |
|
|
<el-table id="tableSuggestion" row-key="id" :data="doctorCheck.checkSuggestionList" size="samll" |
|
|
|
|
|
:height="sumHeight" |
|
|
|
|
|
|
|
|
<el-table id="tableSuggestion" row-key="id" :data="doctorCheck.checkSuggestionList" size="samll" :height="sumHeight" |
|
|
width="100%" border> |
|
|
width="100%" border> |
|
|
<el-table-column type="index" width="25" align="center" /> |
|
|
<el-table-column type="index" width="25" align="center" /> |
|
|
<el-table-column prop="suggestion" label="建议"> |
|
|
<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="doctorCheck.RegisterCheckEdit.completeFlag == '1' || doctorCheck.RegisterCheckEdit.completeFlag == '2'">新增建议</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<div style="display: flex;"> |
|
|
<div style="display: flex;"> |
|
|
<el-input type="textarea" v-model="scope.row.suggestion" :autosize="{ minRows: 1, maxRows: 100 }" |
|
|
<el-input type="textarea" v-model="scope.row.suggestion" :autosize="{ minRows: 1, maxRows: 100 }" |
|
|
:disabled="doctorCheck.RegisterCheckEdit.completeFlag=='1' || doctorCheck.RegisterCheckEdit.completeFlag=='2'" placeholder="请输入建议"> |
|
|
|
|
|
|
|
|
:disabled="doctorCheck.RegisterCheckEdit.completeFlag == '1' || doctorCheck.RegisterCheckEdit.completeFlag == '2'" |
|
|
|
|
|
placeholder="请输入建议"> |
|
|
</el-input> |
|
|
</el-input> |
|
|
<el-button type="danger" style="min-width:23px;padding:2px;" icon="el-icon-delete" @click="delSug(scope.$index)" |
|
|
|
|
|
|
|
|
<el-button type="danger" style="min-width:23px;padding:2px;" icon="el-icon-delete" |
|
|
|
|
|
@click="delSug(scope.$index)" |
|
|
:disabled="doctorCheck.RegisterCheckEdit.completeFlag == '1' || doctorCheck.RegisterCheckEdit.completeFlag == '2'" |
|
|
:disabled="doctorCheck.RegisterCheckEdit.completeFlag == '1' || doctorCheck.RegisterCheckEdit.completeFlag == '2'" |
|
|
size="small"></el-button> |
|
|
size="small"></el-button> |
|
|
</div> |
|
|
</div> |
|
|
@ -197,10 +210,17 @@ export default { |
|
|
console.log('已取消删除') |
|
|
console.log('已取消删除') |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addSuggestion() { |
|
|
|
|
|
this.doctorCheck.checkSuggestionList.push({ |
|
|
|
|
|
id: Math.random(), |
|
|
|
|
|
registerCheckId: this.doctorCheck.RegisterCheckEdit.id, |
|
|
|
|
|
suggestion: '', |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//删除建议明细 |
|
|
//删除建议明细 |
|
|
delSug(index) { |
|
|
delSug(index) { |
|
|
this.$confirm("此操作将删除该记录, 是否继续?", "提示", { |
|
|
this.$confirm("此操作将删除该记录, 是否继续?", "提示", { |
|
|
@ -242,16 +262,18 @@ export default { |
|
|
</script> |
|
|
</script> |
|
|
<style scoped> |
|
|
<style scoped> |
|
|
@import '../../assets/css/global_table.css'; |
|
|
@import '../../assets/css/global_table.css'; |
|
|
|
|
|
|
|
|
.btnClass { |
|
|
.btnClass { |
|
|
margin-left: 2px; |
|
|
margin-left: 2px; |
|
|
height: 22px; |
|
|
height: 22px; |
|
|
padding: 2px 2px; /*原始 默认值 500 */ |
|
|
|
|
|
|
|
|
padding: 2px 2px; |
|
|
|
|
|
/*原始 默认值 500 */ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
::v-deep .el-textarea__inner { |
|
|
::v-deep .el-textarea__inner { |
|
|
min-height: 23px; |
|
|
min-height: 23px; |
|
|
height: 23px; |
|
|
height: 23px; |
|
|
line-height: 1.25; |
|
|
line-height: 1.25; |
|
|
padding: 1px 15px 1px 2px; |
|
|
padding: 1px 15px 1px 2px; |
|
|
} |
|
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
}</style> |
|
|
|
|
|
|