pengjun 2 years ago
parent
commit
301f9213a5
  1. 9
      src/components/sumDoctorCheck/ButtonList.vue
  2. 15
      src/components/sumDoctorCheck/SumSug.vue

9
src/components/sumDoctorCheck/ButtonList.vue

@ -250,7 +250,7 @@ export default {
// //
addSuggtion(){ addSuggtion(){
let id = new Date()
let id = String(new Date().getTime())
let pojo = { let pojo = {
id, id,
patientRegisterId: this.sumDoctorCheck.sumPREdit.id, patientRegisterId: this.sumDoctorCheck.sumPREdit.id,
@ -322,7 +322,7 @@ export default {
body.push(item) body.push(item)
}); });
console.log(`/api/app/sumsummaryheader/createsumsummary`, body) console.log(`/api/app/sumsummaryheader/createsumsummary`, body)
if(body.length > 0) return
if(body.length < 1) return
postapi(`/api/app/sumsummaryheader/createsumsummary`, body) postapi(`/api/app/sumsummaryheader/createsumsummary`, body)
.then((res) => { .then((res) => {
console.log("saveSummary", res.data); console.log("saveSummary", res.data);
@ -349,11 +349,10 @@ export default {
delete e.sumSuggestionHeaderId; delete e.sumSuggestionHeaderId;
delete e.displayOrder; delete e.displayOrder;
}) })
body.push(item) body.push(item)
});
});
console.log(`/api/app/sumsuggestionheader/createsumsuggestion`, body) console.log(`/api/app/sumsuggestionheader/createsumsuggestion`, body)
if(body.length > 0) return
if(body.length < 1) return
postapi(`/api/app/sumsuggestionheader/createsumsuggestion`, body) postapi(`/api/app/sumsuggestionheader/createsumsuggestion`, body)
.then((res) => { .then((res) => {
console.log("saveSuggestion", res.data); console.log("saveSuggestion", res.data);

15
src/components/sumDoctorCheck/SumSug.vue

@ -1,13 +1,13 @@
<template> <template>
<div style="display: flex;"> <div style="display: flex;">
<div style="width:50%;"> <div style="width:50%;">
<el-table id="tableSummary" row-key="id" :data="sumDoctorCheck.summaryList" width="100%" height="680" border >
<el-table id="tableSummary" row-key="id" :data="sumDoctorCheck.summaryList" width="100%" height="680" border :row-style="{ height: '60px' }">
<el-table-column prop="summaryTitle" label="综述" > <el-table-column prop="summaryTitle" label="综述" >
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
<el-input v-model="scope.row.summaryTitle" placeholder="请输入综述" disabled></el-input> <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: 30px;" <el-table :id="scope.row.id" :row-key="scope.$index + scope.row.id" style="margin-left: 30px;"
:data="scope.row.details" border @row-click="rowClick" :show-header="false">
:data="scope.row.details" border @row-click="rowClick" :show-header="false" :row-style="{ height: '60px' }">
<el-table-column prop="summaryContent" label="综述"> <el-table-column prop="summaryContent" label="综述">
<template slot-scope="scope2"> <template slot-scope="scope2">
<el-input type="textarea" v-model="scope2.row.summaryContent" placeholder="请输入综述" style="width: 95%" <el-input type="textarea" v-model="scope2.row.summaryContent" placeholder="请输入综述" style="width: 95%"
@ -22,7 +22,7 @@
</el-table> </el-table>
</div> </div>
<div style="width:50%;"> <div style="width:50%;">
<el-table id="tableSuggestion" row-key="id" :data="sumDoctorCheck.suggestionList" width="100%" height="680" border>
<el-table id="tableSuggestion" row-key="id" :data="sumDoctorCheck.suggestionList" width="100%" height="680" border :row-style="{ height: '60px' }">
<el-table-column prop="suggestionTitle" label="建议" > <el-table-column prop="suggestionTitle" label="建议" >
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
@ -36,7 +36,7 @@
--> -->
</el-input> </el-input>
<el-table :id="'sug' + scope.row.id" :row-key="'sug' + scope.$index + scope.row.id" style="margin-left: 30px;" <el-table :id="'sug' + scope.row.id" :row-key="'sug' + scope.$index + scope.row.id" style="margin-left: 30px;"
:data="scope.row.details" border @row-click="rowClickSug" :show-header="false">
:data="scope.row.details" border @row-click="rowClickSug" :show-header="false" :row-style="{ height: '60px' }">
<el-table-column prop="suggestionContent" label="建议" > <el-table-column prop="suggestionContent" label="建议" >
<template slot-scope="scope2"> <template slot-scope="scope2">
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容" style="width: 95%" <el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容" style="width: 95%"
@ -276,5 +276,10 @@ export default {
}, },
}; };
</script> </script>
<style></style>
<style scoped>
::v-deep .el-table td.el-table__cell,
.el-table th.el-table__cell.is-leaf {
padding: 0;
}
</style>
Loading…
Cancel
Save