6 changed files with 477 additions and 253 deletions
-
207src/components/doctorCheck/ButtonList.vue
-
18src/components/doctorCheck/CheckItemList.vue
-
168src/components/doctorCheck/CheckSumSug.vue
-
3src/components/doctorCheck/RegisterCheckList.vue
-
4src/components/patientRegister/PatientRegisterList.vue
-
330src/views/doctorCheck/doctorCheck.vue
@ -1,88 +1,108 @@ |
|||
<template> |
|||
<div style="display: flex;"> |
|||
<div style="width:50%;"> |
|||
<el-table :data="doctorCheck.checkSummaryList" width="100%" height="350" border |
|||
@row-click="rowClick"> |
|||
<el-table-column prop="summary" label="小结" width="380" /> |
|||
<el-table-column label="排序" width="80"> |
|||
<template> |
|||
<el-tag class="move" style="cursor: move; margin-left: 15px" draggable="true" > |
|||
<i class="el-icon-d-caret" style="width: 1rem; height: 1rem"></i> |
|||
</el-tag> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<div style="width:50%;"> |
|||
<el-table :data="doctorCheck.checkSuggestionList" width="100%" height="350" border |
|||
@row-click="rowClick"> |
|||
<el-table-column prop="suggestion" label="建议" width="380" /> |
|||
<el-table-column label="排序" width="80"> |
|||
<template> |
|||
<el-tag class="move" style="cursor: move; margin-left: 15px" draggable="true" > |
|||
<i class="el-icon-d-caret" style="width: 1rem; height: 1rem"></i> |
|||
</el-tag> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<div style="display: flex;"> |
|||
<div style="width:50%;"> |
|||
<el-table :data="doctorCheck.checkSummaryList" width="100%" height="350" border @row-click="rowClick"> |
|||
<el-table-column prop="summary" label="小结" width="380" > |
|||
<template slot-scope="scope"> |
|||
<el-input type="textarea" v-model="doctorCheck.checkSummaryList[scope.$index].summary" placeholder="请输入小结"></el-input> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="排序" width="80"> |
|||
<template> |
|||
<el-tag class="move" style="cursor: move; margin-left: 15px" draggable="true"> |
|||
<i class="el-icon-d-caret" style="width: 1rem; height: 1rem"></i> |
|||
</el-tag> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
</template> |
|||
<script> |
|||
import { mapState } from 'vuex'; |
|||
export default { |
|||
components: {}, |
|||
data() { |
|||
return { |
|||
<div style="width:50%;"> |
|||
<el-table :data="doctorCheck.checkSuggestionList" width="100%" height="350" border @row-click="rowClick"> |
|||
<el-table-column prop="suggestion" label="建议" width="380" > |
|||
<template slot-scope="scope"> |
|||
<el-input type="textarea" v-model="doctorCheck.checkSuggestionList[scope.$index].suggestion" placeholder="请输入建议"></el-input> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="排序" width="80"> |
|||
<template> |
|||
<el-tag class="move" style="cursor: move; margin-left: 15px" draggable="true"> |
|||
<i class="el-icon-d-caret" style="width: 1rem; height: 1rem"></i> |
|||
</el-tag> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
<script> |
|||
import { mapState } from 'vuex'; |
|||
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|||
export default { |
|||
components: {}, |
|||
data() { |
|||
return { |
|||
|
|||
}; |
|||
}, |
|||
|
|||
created() {}, |
|||
|
|||
//挂载完成 |
|||
mounted() {}, |
|||
}; |
|||
}, |
|||
|
|||
computed:{ |
|||
...mapState(['dict','doctorCheck']), |
|||
}, |
|||
created() { }, |
|||
|
|||
methods: { |
|||
tableRowClassName({row, rowIndex}) { |
|||
if (row.completeFlag === '0') { |
|||
return 'warning-row'; //未检 |
|||
} else if (row.completeFlag === '2') { |
|||
return 'refuse-row'; //弃检 |
|||
} |
|||
return ''; |
|||
}, |
|||
|
|||
//选择组合项目 |
|||
rowClick(row){ |
|||
//registerCheckId |
|||
getapi(`/api/app/customer-org-group/in-customer-org-id/${customerOrgld}`) |
|||
//挂载完成 |
|||
mounted() { }, |
|||
|
|||
computed: { |
|||
...mapState(['dict', 'doctorCheck']), |
|||
}, |
|||
|
|||
methods: { |
|||
//获取小结 |
|||
checkSummaryList(RegisterCheckId) { |
|||
console.log(`/api/app/registerchecksummary/getregisterchecksummarylist?RegisterCheckId=${RegisterCheckId}`) |
|||
getapi(`/api/app/registerchecksummary/getregisterchecksummarylist?RegisterCheckId=${RegisterCheckId}`) |
|||
.then((res) => { |
|||
console.log("getCustomerOrgGroup", res.data); |
|||
if (res.code == 1) { |
|||
this.doctorCheck.checkItemList = res.data; |
|||
} |
|||
console.log("checkSummaryList", res.data); |
|||
if (res.code != -1) { |
|||
this.doctorCheck.checkSummaryList = res.data; |
|||
} |
|||
}) |
|||
.catch((err) => { |
|||
this.$message({type: "error",message: `操作失败,原因:${err}`}); |
|||
this.$message({ type: "error", message: `操作失败,原因:${err}` }); |
|||
}); |
|||
}, |
|||
|
|||
}, |
|||
//获取建议 |
|||
checkSuggestionList(RegisterCheckId) { |
|||
console.log(`/api/app/registerchecksuggestion/getregisterchecksuggestionlist?RegisterCheckId=${RegisterCheckId}`) |
|||
getapi(`/api/app/registerchecksuggestion/getregisterchecksuggestionlist?RegisterCheckId=${RegisterCheckId}`) |
|||
.then((res) => { |
|||
console.log("checkSuggestionList", res.data); |
|||
if (res.code != -1) { |
|||
this.doctorCheck.checkSuggestionList = res.data; |
|||
} |
|||
}) |
|||
.catch((err) => { |
|||
this.$message({ type: "error", message: `操作失败,原因:${err}` }); |
|||
}); |
|||
}, |
|||
}; |
|||
</script> |
|||
<style scoped> |
|||
.el-table .warning-row { |
|||
background: rgb(240, 125, 125); |
|||
} |
|||
|
|||
.el-table .refuse-row { |
|||
background: rgb(192, 192, 192); |
|||
} |
|||
//选择组合项目 |
|||
rowClick(row) { |
|||
|
|||
}, |
|||
}, |
|||
|
|||
</style> |
|||
//监听事件 |
|||
watch: { |
|||
//检查项目切换 |
|||
"doctorCheck.RegisterCheckId"(newVal, oldVal) { |
|||
console.log("watch doctorCheck.RegisterCheckId newVal:", newVal, " oldVal:", oldVal); |
|||
if (newVal != oldVal && newVal != '') { |
|||
this.checkSummaryList(newVal) |
|||
this.checkSuggestionList(newVal) |
|||
} |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
<style></style> |
|||
|
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue