pengjun 3 years ago
parent
commit
a8bf849970
  1. 5
      src/components/doctorCheck/CheckItemList.vue
  2. 8
      src/components/doctorCheck/CheckSumSug.vue
  3. 4
      src/components/patientRegister/PatientRegisterEdit.vue
  4. 33
      src/components/sumDoctorCheck/SumSug.vue

5
src/components/doctorCheck/CheckItemList.vue

@ -2,13 +2,14 @@
<div>
<el-table :data="doctorCheck.checkItemList" style="width: 100%"
:height="window.pageHeight < 600 ? Math.floor((380 - 40)*3/5):Math.floor((window.pageHeight-220-40)*3/5)"
:row-style="{ height: '60px' }" border @row-click="rowClick">
:row-style="{ height: '30px' }" border @row-click="rowClick">
<el-table-column prop="itemName" label="项目" width="180" />
<el-table-column prop="result" label="结果" width="500">
<template slot-scope="scope">
<el-autocomplete style="width: 480px" class="inline-input" type="textarea"
v-model="doctorCheck.checkItemList[scope.$index].result" :fetch-suggestions="querySearch"
placeholder="请输入结果值" @select="handleSelect" :disabled="doctorCheck.RegisterCheckEdit.completeFlag=='1' || doctorCheck.RegisterCheckEdit.completeFlag=='2'"/>
placeholder="请输入结果值" @select="handleSelect" :disabled="doctorCheck.RegisterCheckEdit.completeFlag=='1' || doctorCheck.RegisterCheckEdit.completeFlag=='2'"
:autosize="{ minRows: 1, maxRows: 100 }"/>
</template>
</el-table-column>
<el-table-column prop="unit" label="单位" width="80" />

8
src/components/doctorCheck/CheckSumSug.vue

@ -1,12 +1,12 @@
<template>
<div style="display: flex;">
<div :style="'width:'+Math.floor((window.pageWidth - 200 - 120 - 70)/2) + 'px;'">
<el-table id="tableSummary" row-key="id" :data="doctorCheck.checkSummaryList" :row-style="{ height: '60px' }"
<el-table id="tableSummary" row-key="id" :data="doctorCheck.checkSummaryList" :row-style="{ height: '30px' }"
:height="window.pageHeight < 600 ? Math.floor((380 - 40)*2/5):Math.floor((window.pageHeight-220-40)*2/5)"
width="100%" border @row-click="rowClick">
<el-table-column prop="summary" label="小结" :width="Math.floor((window.pageWidth - 200 - 124 - 70)/2)" >
<template slot-scope="scope">
<el-input type="textarea" v-model="scope.row.summary"
<el-input type="textarea" v-model="scope.row.summary" :autosize="{ minRows: 1, maxRows: 100 }"
:disabled="doctorCheck.RegisterCheckEdit.completeFlag=='1' || doctorCheck.RegisterCheckEdit.completeFlag=='2'" placeholder="请输入小结">
</el-input>
</template>
@ -14,12 +14,12 @@
</el-table>
</div>
<div :style="'margin-left:2px;width:'+Math.floor((window.pageWidth - 200 - 120 - 70)/2) + 'px;'">
<el-table id="tableSuggestion" row-key="id" :data="doctorCheck.checkSuggestionList" :row-style="{ height: '60px' }"
<el-table id="tableSuggestion" row-key="id" :data="doctorCheck.checkSuggestionList" :row-style="{ height: '30px' }"
:height="window.pageHeight < 600 ? Math.floor((380 - 40)*2/5):Math.floor((window.pageHeight-220-40)*2/5)"
width="100%" border @row-click="rowClick">
<el-table-column prop="suggestion" label="建议" :width="Math.floor((window.pageWidth - 200 - 124 - 70)/2)" >
<template slot-scope="scope">
<el-input type="textarea" v-model="scope.row.suggestion"
<el-input type="textarea" v-model="scope.row.suggestion" :autosize="{ minRows: 1, maxRows: 100 }"
:disabled="doctorCheck.RegisterCheckEdit.completeFlag=='1' || doctorCheck.RegisterCheckEdit.completeFlag=='2'" placeholder="请输入建议">
</el-input>
</template>

4
src/components/patientRegister/PatientRegisterEdit.vue

@ -1,5 +1,9 @@
<template>
<div>
<div style="display: flex">
</div>
<table>
<td style="width: 60%">
<div style="display: flex">

33
src/components/sumDoctorCheck/SumSug.vue

@ -9,11 +9,12 @@
<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: 30px;"
:data="scope.row.details" border @row-click="rowClick" :show-header="false" :row-style="{ height: '60px' }">
:data="scope.row.details" border @row-click="rowClick" :show-header="false" :row-style="{ height: '30px' }">
<el-table-column prop="summaryContent" label="综述">
<template slot-scope="scope2">
<el-input type="textarea" v-model="scope2.row.summaryContent" placeholder="请输入综述" style="width: 95%"
:disabled="sumDoctorCheck.sumPREdit.completeFlag=='3' || sumDoctorCheck.sumPREdit.isAudit=='Y'">
:disabled="sumDoctorCheck.sumPREdit.completeFlag=='3' || sumDoctorCheck.sumPREdit.isAudit=='Y'"
:autosize="{ minRows: 1, maxRows: 100 }">
</el-input>
</template>
</el-table-column>
@ -27,6 +28,8 @@
<el-table id="tableSuggestion" row-key="id" :data="sumDoctorCheck.suggestionList" width="100%"
:height="window.pageHeight < 600 ? 300:window.pageHeight-300"
border :row-style="{ height: '60px' }">
<el-table-column type="index" width="30" style="vertical-align: top;">
</el-table-column>
<el-table-column prop="suggestionTitle" label="建议" >
<template slot-scope="scope">
<div>
@ -39,15 +42,28 @@
<el-button slot="append" icon="el-icon-d-caret"></el-button>
-->
</el-input>
<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" :row-style="{ height: '60px' }">
<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' }">
<el-table-column width="30">
<template slot-scope="scope2">
<div>{{ scope2.$index+1 }}</div>
</template>
</el-table-column>
<el-table-column prop="suggestionContent" label="建议" >
<template slot-scope="scope2">
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容" style="width: 95%"
:disabled="sumDoctorCheck.sumPREdit.completeFlag=='3' || sumDoctorCheck.sumPREdit.isAudit=='Y'">
<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>
</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)"
:disabled="sumDoctorCheck.sumPREdit.completeFlag=='3' || sumDoctorCheck.sumPREdit.isAudit=='Y'"
size="small"></el-button>
</template>
</el-table-column>
</el-table>
</div>
</template>
@ -150,9 +166,14 @@ export default {
this.sumDoctorCheck.suggestionList[index].details.push({
sumSuggestionHeaderId:this.sumDoctorCheck.suggestionList[index].id,
suggestionContent: '',
displayOrder:Math.random(),
})
},
//
delSug(details,indexD){
details.splice(indexD,1);
},
//
rowClick(row) {
console.log('rowClick row',row)

Loading…
Cancel
Save