diff --git a/src/components/sumDoctorCheck/SumSug.vue b/src/components/sumDoctorCheck/SumSug.vue
index 9b62417..ac867f4 100644
--- a/src/components/sumDoctorCheck/SumSug.vue
+++ b/src/components/sumDoctorCheck/SumSug.vue
@@ -81,7 +81,7 @@
'展开' : '折叠' }}全部建议
@@ -93,7 +93,7 @@
+ :height="sumHeight" border size="small" ref="tableSuggestion" @row-contextmenu="onCellRightClick" @row-click="rowClickS">
@@ -416,6 +416,7 @@ export default {
sugWidthRight: 0
},
+ curDiagSug:{}, // 当前选中诊断建议(中间位置插入诊断用)
};
},
@@ -617,7 +618,8 @@ export default {
},
//增加建议
- addSuggtion() {
+ addSuggtion(curDiagSug) {
+
let id = Date.now() + String(this.sumDoctorCheck.suggestionList.length)
let pojo = {
id,
@@ -647,7 +649,15 @@ export default {
],
}
- this.sumDoctorCheck.suggestionList.push(pojo);
+ if(curDiagSug?.id){
+ let lfind = arrayExistObj(this.sumDoctorCheck.suggestionList,'id',curDiagSug.id)
+ if(lfind > -1){
+ this.sumDoctorCheck.suggestionList.splice(Number(lfind) + 1,0,pojo)
+ }
+ }else{
+ this.sumDoctorCheck.suggestionList.push(pojo);
+ }
+
// 定位到新添加的行
this.$nextTick(() => {
this.$refs[id].focus();
@@ -1177,6 +1187,10 @@ export default {
console.log('this.sumDetails', this.sumDetails)
},
+ rowClickS(row){
+ this.curDiagSug = row
+ },
+
//综述明细拖拽
rowDropSumDetail(id) {
this.$nextTick(() => {