|
|
|
@ -38,7 +38,7 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
<div style="display: flex;"> |
|
|
|
<el-input v-model="scope.row.suggestionTitle" placeholder="请输入建议标题" |
|
|
|
<el-input v-model="scope.row.suggestionTitle" placeholder="请输入建议标题" :ref="scope.row.id" :id="scope.row.id" |
|
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"> |
|
|
|
</el-input> |
|
|
|
|
|
|
|
@ -60,7 +60,7 @@ |
|
|
|
<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 }"> |
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }" > |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -86,7 +86,7 @@ import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { arrayExistObj } from '@/utlis/proFunc'; |
|
|
|
export default { |
|
|
|
components: {}, |
|
|
|
props:["patientRegisterId"], |
|
|
|
props:["patientRegisterId","curGetFocusSuggestionId"], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
sumDetails: [], |
|
|
|
@ -188,12 +188,39 @@ export default { |
|
|
|
|
|
|
|
//删除建议头及明细 |
|
|
|
delSugHead(index) { |
|
|
|
this.sumDoctorCheck.suggestionList.splice(index,1) |
|
|
|
this.$confirm("此操作将删除该记录, 是否继续?", "提示", { |
|
|
|
confirmButtonText: "是", |
|
|
|
cancelButtonText: "否", |
|
|
|
type: "warning", |
|
|
|
}).then(() => { |
|
|
|
//删除建议 |
|
|
|
this.sumDoctorCheck.suggestionList.splice(index,1) |
|
|
|
}).catch((err) => { |
|
|
|
if(err == 'cancel'){ |
|
|
|
console.log(`已取消 ${err}`) |
|
|
|
}else{ |
|
|
|
this.$message.error(`操作失败 ${err}`) |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
//删除建议明细 |
|
|
|
delSug(details, indexD) { |
|
|
|
details.splice(indexD, 1); |
|
|
|
this.$confirm("此操作将删除该记录, 是否继续?", "提示", { |
|
|
|
confirmButtonText: "是", |
|
|
|
cancelButtonText: "否", |
|
|
|
type: "warning", |
|
|
|
}).then(() => { |
|
|
|
//删除建议明细 |
|
|
|
details.splice(indexD, 1); |
|
|
|
}).catch((err) => { |
|
|
|
if(err == 'cancel'){ |
|
|
|
console.log(`已取消 ${err}`) |
|
|
|
}else{ |
|
|
|
this.$message.error(`操作失败 ${err}`) |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
//选择组合项目 |
|
|
|
rowClick(row) { |
|
|
|
@ -320,6 +347,19 @@ export default { |
|
|
|
this.suggestionList(newVal) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 新增时,光标定位 |
|
|
|
"curGetFocusSuggestionId":{ |
|
|
|
immediate:true, |
|
|
|
handler(newVal, oldVal) { |
|
|
|
console.log(`watch curGetFocusSuggestionId newVal: ${newVal}, oldVal: ${oldVal}`); |
|
|
|
if(newVal){ |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs[newVal].focus(); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|