|
|
|
@ -32,14 +32,17 @@ |
|
|
|
<el-table-column prop="suggestionTitle" label="建议"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
<el-input v-model="scope.row.suggestionTitle" placeholder="请输入建议标题" |
|
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"> |
|
|
|
<el-button slot="append" icon="el-icon-plus" @click="addSug(scope.$index)" |
|
|
|
<div style="display: flex;"> |
|
|
|
<el-input v-model="scope.row.suggestionTitle" placeholder="请输入建议标题" |
|
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"> |
|
|
|
</el-input> |
|
|
|
|
|
|
|
<el-button type="success" icon="el-icon-plus" style="min-width: 30px;" @click="addSug(scope.$index)" |
|
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"></el-button> |
|
|
|
<el-button type="danger" icon="el-icon-delete" style="margin-left: 2px;min-width: 30px;" @click="delSugHead(scope.$index)" |
|
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"></el-button> |
|
|
|
<!-- |
|
|
|
<el-button slot="append" icon="el-icon-d-caret"></el-button> |
|
|
|
--> |
|
|
|
</el-input> |
|
|
|
</div> |
|
|
|
|
|
|
|
<el-table :id="'sug' + scope.row.id" row-key="displayOrder" style="margin-left: 30px;" |
|
|
|
:data="scope.row.details" border @row-click="rowClickSug" :show-header="false" |
|
|
|
:row-style="{ height: '30px' }"> |
|
|
|
@ -48,21 +51,21 @@ |
|
|
|
<div>{{ scope2.$index + 1 }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="suggestionContent" label="建议"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<el-table-column prop="suggestionContent" label="建议" min-width="400"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容" |
|
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'" |
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"> |
|
|
|
</el-input> |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="" width="87"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<el-button type="danger" icon="el-icon-delete" @click="delSug(scope.row.details, scope2.$index)" |
|
|
|
<el-table-column prop="suggestionContent" label="操作" min-width="60"> |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<el-button type="danger" style="min-width:30px;" icon="el-icon-delete" @click="delSug(scope.row.details, scope2.$index)" |
|
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'" |
|
|
|
size="small"></el-button> |
|
|
|
size="small"></el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -91,11 +94,6 @@ export default { |
|
|
|
mounted() { |
|
|
|
this.rowDrop(); |
|
|
|
this.rowDropSuggestion(); |
|
|
|
|
|
|
|
if(this.sumDoctorCheck.sumPREdit.id){ |
|
|
|
this.summaryList(this.sumDoctorCheck.sumPREdit.id); |
|
|
|
this.suggestionList(this.sumDoctorCheck.sumPREdit.id); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
@ -105,6 +103,10 @@ export default { |
|
|
|
methods: { |
|
|
|
//获取综述 |
|
|
|
summaryList(RegisterId) { |
|
|
|
if(!RegisterId){ |
|
|
|
this.sumDoctorCheck.summaryList = []; |
|
|
|
return |
|
|
|
} |
|
|
|
// [ |
|
|
|
// { |
|
|
|
// "id": "3a0c5bbb-dfea-eec1-ed37-78203086987c", |
|
|
|
@ -136,6 +138,10 @@ export default { |
|
|
|
|
|
|
|
//获取建议 |
|
|
|
suggestionList(RegisterId) { |
|
|
|
if(!RegisterId){ |
|
|
|
this.sumDoctorCheck.suggestionList = []; |
|
|
|
return; |
|
|
|
}; |
|
|
|
// [ |
|
|
|
// { |
|
|
|
// "id": "3a0c6589-9b6f-bbb1-bb8b-d6876ea5e4e6", |
|
|
|
@ -174,6 +180,11 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//删除建议头及明细 |
|
|
|
delSugHead(index) { |
|
|
|
this.sumDoctorCheck.suggestionList.splice(index,1) |
|
|
|
}, |
|
|
|
|
|
|
|
//删除建议明细 |
|
|
|
delSug(details, indexD) { |
|
|
|
details.splice(indexD, 1); |
|
|
|
@ -295,20 +306,19 @@ export default { |
|
|
|
//监听事件 |
|
|
|
watch: { |
|
|
|
//检查项目切换 |
|
|
|
"sumDoctorCheck.sumPREdit.id"(newVal, oldVal) { |
|
|
|
console.log("watch sumDoctorCheck.sumPREdit.id newVal:", newVal, " oldVal:", oldVal); |
|
|
|
if (newVal != oldVal && newVal != '') { |
|
|
|
"sumDoctorCheck.sumPREdit.id":{ |
|
|
|
immediate:true, |
|
|
|
handler(newVal, oldVal) { |
|
|
|
console.log("watch sumDoctorCheck.sumPREdit.id newVal:", newVal, " oldVal:", oldVal); |
|
|
|
this.summaryList(newVal) |
|
|
|
this.suggestionList(newVal) |
|
|
|
this.suggestionList(newVal) |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|
::v-deep .el-table td.el-table__cell, |
|
|
|
.el-table th.el-table__cell.is-leaf { |
|
|
|
padding: 0; |
|
|
|
} |
|
|
|
@import '../../assets/css/global_table.css'; |
|
|
|
|
|
|
|
</style> |
|
|
|
|