|
|
|
@ -1,50 +1,25 @@ |
|
|
|
<template> |
|
|
|
<div style="margin-left: 15px; display: flex"> |
|
|
|
<div |
|
|
|
:style=" |
|
|
|
'width:' + |
|
|
|
(window.pageWidth - 200 - 110 - 50 - 14) + |
|
|
|
'px;padding: 15px;background-color: #fff;border-radius: 8px;' |
|
|
|
" |
|
|
|
> |
|
|
|
<div :style="'width:' + |
|
|
|
(window.pageWidth - 200 - 110 - 50 - 14) + |
|
|
|
'px;padding: 15px;background-color: #fff;border-radius: 8px;' |
|
|
|
"> |
|
|
|
<el-tabs v-model="activeName"> |
|
|
|
<el-tab-pane label="医学解释" name="first"> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<div :style=" |
|
|
|
'width:' + |
|
|
|
(window.pageWidth - 200 - 110 - 50 - 10-110-10) + |
|
|
|
'px;' |
|
|
|
"> |
|
|
|
<el-table |
|
|
|
id="elTableDiagnosisSug" |
|
|
|
:data="tableData" |
|
|
|
row-key="id" |
|
|
|
:height=" |
|
|
|
window.pageHeight < 600 |
|
|
|
? 215 |
|
|
|
: Math.floor((window.pageHeight - 174) / 2) |
|
|
|
" |
|
|
|
highlight-current-row |
|
|
|
@row-click="rowClick" |
|
|
|
size="small" |
|
|
|
ref="elTable" |
|
|
|
> |
|
|
|
<el-table-column |
|
|
|
type="index" |
|
|
|
label="序号" |
|
|
|
width="40" |
|
|
|
align="center" |
|
|
|
/> |
|
|
|
<div :style="'width:' + |
|
|
|
(window.pageWidth - 200 - 110 - 50 - 10 - 110 - 10) + |
|
|
|
'px;' |
|
|
|
"> |
|
|
|
<el-table id="elTableDiagnosisSug" :data="tableData" row-key="id" :height="window.pageHeight < 600 |
|
|
|
? 215 |
|
|
|
: Math.floor((window.pageHeight - 174) / 2) |
|
|
|
" highlight-current-row @row-click="rowClick" size="small" ref="elTable"> |
|
|
|
<el-table-column type="index" label="序号" width="40" align="center" /> |
|
|
|
<el-table-column prop="suggestionContent" label="解释内容"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input |
|
|
|
type="textarea" |
|
|
|
:id="scope.row.id" |
|
|
|
v-model="scope.row.suggestionContent" |
|
|
|
placeholder="解释内容" |
|
|
|
style="width: 100%" |
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }" |
|
|
|
> |
|
|
|
<el-input type="textarea" :id="scope.row.id" v-model="scope.row.suggestionContent" placeholder="解释内容" |
|
|
|
:autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -71,22 +46,13 @@ |
|
|
|
<!--按钮--> |
|
|
|
<div style="margin-left: 15px"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnAdd" |
|
|
|
>新增</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnAdd">新增</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<el-button type="danger" class="deleteButton" @click="btnDel" |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
<el-button type="danger" class="deleteButton" @click="btnDel">删除</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<el-button |
|
|
|
type="success" |
|
|
|
class="commonbutton" |
|
|
|
@click="btnSave(0)" |
|
|
|
>保存解释</el-button |
|
|
|
> |
|
|
|
<el-button type="success" class="commonbutton" @click="btnSave(0)">保存解释</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -94,36 +60,15 @@ |
|
|
|
<el-tab-pane label="常见原因" name="second"> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<div style="width: 95%"> |
|
|
|
<el-table |
|
|
|
id="elTableDiagnosisSug" |
|
|
|
:data="commonReasons" |
|
|
|
row-key="id" |
|
|
|
:height=" |
|
|
|
window.pageHeight < 600 |
|
|
|
? 215 |
|
|
|
: Math.floor((window.pageHeight - 174) / 2) |
|
|
|
" |
|
|
|
highlight-current-row |
|
|
|
@row-click="rowClickes" |
|
|
|
size="small" |
|
|
|
ref="elTable" |
|
|
|
> |
|
|
|
<el-table-column |
|
|
|
type="index" |
|
|
|
label="序号" |
|
|
|
width="40" |
|
|
|
align="center" |
|
|
|
/> |
|
|
|
<el-table id="elTableDiagnosisSug" :data="commonReasons" row-key="id" :height="window.pageHeight < 600 |
|
|
|
? 215 |
|
|
|
: Math.floor((window.pageHeight - 174) / 2) |
|
|
|
" highlight-current-row @row-click="rowClickes" size="small" ref="elTable"> |
|
|
|
<el-table-column type="index" label="序号" width="40" align="center" /> |
|
|
|
<el-table-column prop="suggestionContent" label="原因"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input |
|
|
|
type="textarea" |
|
|
|
:id="scope.row.id" |
|
|
|
v-model="scope.row.suggestionContent" |
|
|
|
placeholder="原因" |
|
|
|
style="width: 100%" |
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }" |
|
|
|
> |
|
|
|
<el-input type="textarea" :id="scope.row.id" v-model="scope.row.suggestionContent" placeholder="原因" |
|
|
|
:autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -150,22 +95,13 @@ |
|
|
|
<!--按钮--> |
|
|
|
<div style="margin-left: 15px"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnAddes" |
|
|
|
>新增</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnAddes">新增</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<el-button type="danger" class="deleteButton" @click="btnDeles" |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
<el-button type="danger" class="deleteButton" @click="btnDeles">删除</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<el-button |
|
|
|
type="success" |
|
|
|
class="commonbutton" |
|
|
|
@click="btnSave(1)" |
|
|
|
>保存原因</el-button |
|
|
|
> |
|
|
|
<el-button type="success" class="commonbutton" @click="btnSave(1)">保存原因</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -173,36 +109,15 @@ |
|
|
|
<el-tab-pane label="健康指导" name="third"> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<div style="width: 95%"> |
|
|
|
<el-table |
|
|
|
id="elTableDiagnosisSug" |
|
|
|
:data="tableDatas" |
|
|
|
row-key="id" |
|
|
|
:height=" |
|
|
|
window.pageHeight < 600 |
|
|
|
? 215 |
|
|
|
: Math.floor((window.pageHeight - 174) / 2) |
|
|
|
" |
|
|
|
highlight-current-row |
|
|
|
@row-click="rowClicks" |
|
|
|
size="small" |
|
|
|
ref="elTable" |
|
|
|
> |
|
|
|
<el-table-column |
|
|
|
type="index" |
|
|
|
label="序号" |
|
|
|
width="40" |
|
|
|
align="center" |
|
|
|
/> |
|
|
|
<el-table id="elTableDiagnosisSug" :data="tableDatas" row-key="id" :height="window.pageHeight < 600 |
|
|
|
? 215 |
|
|
|
: Math.floor((window.pageHeight - 174) / 2) |
|
|
|
" highlight-current-row @row-click="rowClicks" size="small" ref="elTable"> |
|
|
|
<el-table-column type="index" label="序号" width="40" align="center" /> |
|
|
|
<el-table-column prop="suggestionContent" label="指导内容"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input |
|
|
|
type="textarea" |
|
|
|
:id="scope.row.id" |
|
|
|
v-model="scope.row.suggestionContent" |
|
|
|
placeholder="指导内容" |
|
|
|
style="width: 100%" |
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }" |
|
|
|
> |
|
|
|
<el-input type="textarea" :id="scope.row.id" v-model="scope.row.suggestionContent" placeholder="指导内容" |
|
|
|
:autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -229,22 +144,13 @@ |
|
|
|
<!--按钮--> |
|
|
|
<div style="margin-left: 15px"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnAdds" |
|
|
|
>新增</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnAdds">新增</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<el-button type="danger" class="deleteButton" @click="btnDels" |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
<el-button type="danger" class="deleteButton" @click="btnDels">删除</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<el-button |
|
|
|
type="success" |
|
|
|
class="commonbutton" |
|
|
|
@click="btnSave(2)" |
|
|
|
>保存指导</el-button |
|
|
|
> |
|
|
|
<el-button type="success" class="commonbutton" @click="btnSave(2)">保存指导</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -263,7 +169,7 @@ import { deepCopy, dddw, arrayExistObj } from "@/utlis/proFunc"; |
|
|
|
|
|
|
|
export default { |
|
|
|
components: {}, |
|
|
|
props: ["formDiagnosis", "refreshSugs","refreshSuges","refreshSugess"], |
|
|
|
props: ["formDiagnosis", "refreshSugs", "refreshSuges", "refreshSugess"], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
tableData: [], //建议列表 |
|
|
|
@ -271,8 +177,8 @@ export default { |
|
|
|
activeName: "first", |
|
|
|
tableDatas: [], |
|
|
|
curRows: {}, |
|
|
|
curRowes:{}, |
|
|
|
commonReasons:[] |
|
|
|
curRowes: {}, |
|
|
|
commonReasons: [] |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -396,7 +302,7 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
let body = { diagnosisId, details,suggestionType:"0" }; |
|
|
|
let body = { diagnosisId, details, suggestionType: "0" }; |
|
|
|
|
|
|
|
postapi("/api/app/suggestion/createsuggestionmany", body).then( |
|
|
|
(res) => { |
|
|
|
@ -407,7 +313,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
}else if(e == 1){ |
|
|
|
} else if (e == 1) { |
|
|
|
let details = []; |
|
|
|
|
|
|
|
this.commonReasons.forEach((e) => { |
|
|
|
@ -417,7 +323,7 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
let bodys = { diagnosisId, details,suggestionType:"1" }; |
|
|
|
let bodys = { diagnosisId, details, suggestionType: "1" }; |
|
|
|
|
|
|
|
postapi("/api/app/suggestion/createsuggestionmany", bodys).then( |
|
|
|
(res) => { |
|
|
|
@ -428,7 +334,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
} else{ |
|
|
|
} else { |
|
|
|
let details = []; |
|
|
|
|
|
|
|
this.tableDatas.forEach((e) => { |
|
|
|
@ -438,7 +344,7 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
let bodys = { diagnosisId, details,suggestionType:"2" }; |
|
|
|
let bodys = { diagnosisId, details, suggestionType: "2" }; |
|
|
|
|
|
|
|
postapi("/api/app/suggestion/createsuggestionmany", bodys).then( |
|
|
|
(res) => { |
|
|
|
|