Commit 6a9a007a authored by liang's avatar liang

随访审核质控

parent 1495b22e
...@@ -47,7 +47,7 @@ export function getFollowUnCheckDetail(id) { ...@@ -47,7 +47,7 @@ export function getFollowUnCheckDetail(id) {
//随访病例审核 //随访病例审核
export function putFollowCheck(data = {}) { export function putFollowCheck(data = {}) {
return request({ return request({
url: "/disease-data/dataCheck/follow/check", url: "/disease-data/dataCheck/follow/uncheck",
method: "put", method: "put",
data, data,
}) })
......
...@@ -76,7 +76,8 @@ export default { ...@@ -76,7 +76,8 @@ export default {
}, },
methods: { methods: {
handleUnionName(v) { handleUnionName(v) {
return this.unionLists.filter((e) => e.id == v)[0].unionName const union = this.unionList.find((e) => e.id == v) || {}
return union.unionName || ""
}, },
}, },
filters: { filters: {
......
...@@ -227,8 +227,11 @@ export default { ...@@ -227,8 +227,11 @@ export default {
this.$router.push({ this.$router.push({
path: "/followaudit", path: "/followaudit",
query: { query: {
id: data["id"],
unionId: data["unionId"], unionId: data["unionId"],
unionName: data["unionName"], unionName: data["unionName"],
patientId: data.patientId,
checkStatus: data["checkStatus"],
}, },
}) })
} else { } else {
......
<template> <template>
<div> <div>
<el-dialog center :visible.sync="dialogVisible" width="40%" show-close @closed="cancelSubmit"> <el-dialog
center
:visible.sync="dialogVisible"
width="40%"
show-close
@closed="cancelSubmit"
>
<slot name="content"></slot> <slot name="content"></slot>
<slot name="footer"></slot> <slot name="footer"></slot>
</el-dialog> </el-dialog>
...@@ -24,4 +30,9 @@ export default { ...@@ -24,4 +30,9 @@ export default {
}, },
} }
</script> </script>
<style lang="scss" scoped></style> <style lang="scss" scoped>
::v-deep .el-dialog__body {
border-top: none;
text-align: center;
}
</style>
This diff is collapsed.
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
<el-header v-if="titlePosition === 'top'"> <el-header v-if="titlePosition === 'top'">
<div class="follow-tab-top"> <div class="follow-tab-top">
<el-tabs v-model="activeTab" type="card"> <el-tabs v-model="activeTab" type="card">
<el-tab-pane label="筛查" name="999"></el-tab-pane> <el-tab-pane label="筛查" name="0"></el-tab-pane>
<el-tab-pane <el-tab-pane
v-for="(item, index) in followList" v-for="(item, index) in followList"
:key="index" :key="index"
:label="'第' + Number(index + 1) + '次随访数据'" :label="'第' + Number(index + 1) + '次随访数据'"
:name="String(index)" :name="String(index + 1)"
></el-tab-pane> ></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<slot name="button"></slot> <slot name="button"></slot>
</div> </div>
</el-header> </el-header>
<el-container v-loading="fromLoading"> <el-container>
<el-aside width="auto" v-if="titlePosition === 'left'"> <el-aside width="auto" v-if="titlePosition === 'left'">
<div class="follow-tab"> <div class="follow-tab">
<el-tabs <el-tabs
...@@ -25,27 +25,36 @@ ...@@ -25,27 +25,36 @@
tab-position="right" tab-position="right"
style="height: 200px" style="height: 200px"
> >
<el-tab-pane label="筛查病例数据" name="999"></el-tab-pane> <el-tab-pane label="筛查病例数据" name="0">
<template slot="label">
<div class="tab-label">筛查病例数据</div></template
>
</el-tab-pane>
<el-tab-pane <el-tab-pane
v-for="(item, index) in followList" v-for="(item, index) in followList"
:key="index" :key="index"
:label="'第' + Number(index + 1) + '次随访数据'" :name="String(index + 1)"
:name="String(index)" >
></el-tab-pane> <template slot="label">
<div class="tab-label">
{{ "" + Number(index + 1) + "次随访数据" }}
</div></template
>
</el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
</el-aside> </el-aside>
<el-main class="transition-box"> <el-main class="transition-box" v-loading="fromLoading">
<div class="my_form"> <div class="my_form">
<MyCustomForm <MyCustomForm
v-show="activeTab === '999'" v-show="activeTab === '0'"
v-for="form in formTabs" v-for="form in formTabs"
:key="form.id" :key="form.id"
:form="form" :form="form"
:patientId="currentRow.patientId" :patientId="currentRow.patientId"
></MyCustomForm> ></MyCustomForm>
<MyCustomForm <MyCustomForm
v-show="activeTab !== '999'" v-show="activeTab !== '0'"
v-for="form in followForms" v-for="form in followForms"
:key="form.id" :key="form.id"
:form="form" :form="form"
...@@ -104,7 +113,7 @@ export default { ...@@ -104,7 +113,7 @@ export default {
fromLoading: false, fromLoading: false,
formTabs: [], formTabs: [],
followForms: [], followForms: [],
activeTab: "999", activeTab: "0",
screenList: [], screenList: [],
followList: [], followList: [],
} }
...@@ -118,8 +127,8 @@ export default { ...@@ -118,8 +127,8 @@ export default {
}, },
followId() { followId() {
return ( return (
(this.followList[this.activeTab] && (this.followList[this.activeTab - 1] &&
this.followList[this.activeTab].followId) || this.followList[this.activeTab - 1].followId) ||
null null
) )
}, },
...@@ -128,13 +137,17 @@ export default { ...@@ -128,13 +137,17 @@ export default {
followId() { followId() {
this.getLogList() this.getLogList()
}, },
"currentRow.patientId": {
handler(val) {
if (val) {
this.getCurrentFormByType()
this.getFollowInfo()
this.getLogList()
}
},
immediate: true,
},
}, },
created() {
this.getCurrentFormByType()
this.getFollowInfo()
this.getLogList()
},
methods: { methods: {
getLogList() { getLogList() {
const obj = { const obj = {
...@@ -179,6 +192,7 @@ export default { ...@@ -179,6 +192,7 @@ export default {
patientFrom: this.$store.getters["table/selectedIndex"], patientFrom: this.$store.getters["table/selectedIndex"],
}).then((res) => { }).then((res) => {
this.followList = res.data.filter((_) => _.followBatch > 0) this.followList = res.data.filter((_) => _.followBatch > 0)
this.activeTab = String(this.followList.length)
}) })
}, },
getFollowInfo() { getFollowInfo() {
...@@ -199,7 +213,7 @@ export default { ...@@ -199,7 +213,7 @@ export default {
justify-content: space-between; justify-content: space-between;
} }
.follow-tab-top { .follow-tab-top {
width: calc(100% - 200px); width: calc(100vh - 200px);
padding-left: 10px; padding-left: 10px;
::v-deep { ::v-deep {
.el-tabs--card > .el-tabs__header { .el-tabs--card > .el-tabs__header {
...@@ -223,26 +237,30 @@ export default { ...@@ -223,26 +237,30 @@ export default {
} }
} }
.my_form { .my_form {
height: calc(100vh - 200px); height: calc(100vh - 280px);
overflow-y: auto; overflow-y: auto;
} }
.el-main { .el-main {
padding: 0px 20px; padding: 0px 20px;
} }
.el-aside {
padding-bottom: 20px;
}
.extra_btn { .extra_btn {
width: 170px; width: 170px;
text-align: right; text-align: right;
margin-top: 5px; margin-top: 5px;
} }
.follow-tab { .follow-tab {
border-radius: 4px;
border: 1px solid #cccccc;
height: calc(100vh - 280px);
overflow: overlay;
::v-deep { ::v-deep {
border-radius: 4px; .tab-label {
border: 1px solid #cccccc; border-bottom: 1px solid #ccc;
height: calc(100vh - 200px); padding: 0 20px;
height: 60px;
line-height: 60px;
}
.el-tabs__header { .el-tabs__header {
margin-left: 0px; margin-left: 0px;
} }
...@@ -251,7 +269,6 @@ export default { ...@@ -251,7 +269,6 @@ export default {
} }
.el-tabs__active-bar.is-right { .el-tabs__active-bar.is-right {
width: 3px; width: 3px;
height: 52px !important;
} }
.el-tabs--right { .el-tabs--right {
height: auto !important; height: auto !important;
...@@ -263,12 +280,11 @@ export default { ...@@ -263,12 +280,11 @@ export default {
border-bottom: 1px solid #cccccc; border-bottom: 1px solid #cccccc;
} }
.el-tabs__item { .el-tabs__item {
padding: 16px;
width: 180px; width: 180px;
padding: 0;
background: #fafafa; background: #fafafa;
height: auto; height: 60px;
line-height: inherit; line-height: 60px;
border-bottom: 1px solid #cccccc;
transition: all 1s; transition: all 1s;
} }
.el-tabs__item.is-active { .el-tabs__item.is-active {
...@@ -282,7 +298,7 @@ export default { ...@@ -282,7 +298,7 @@ export default {
height: 100%; height: 100%;
background: #fafafa; background: #fafafa;
padding-right: 15px; padding-right: 15px;
height: calc(100vh - 200px); height: calc(100vh - 280px);
overflow-y: overlay; overflow-y: overlay;
li { li {
padding: 16px; padding: 16px;
......
<template> <template>
<custom-form <div>
v-if="!isEmpty" <el-skeleton v-if="isEmpty" animated />
class="mb-20" <custom-form
v-loading="pageLoading" v-if="!isEmpty"
ref="form" class="mb-20"
:options="widgetFormPreview" v-loading="pageLoading"
:form-edit="formEdit" ref="form"
></custom-form> :options="widgetFormPreview"
:form-edit="formEdit"
></custom-form>
</div>
</template> </template>
<script> <script>
import { getPatientDetail, getFollowDetail } from "@/api/patient.js" import { getPatientDetail, getFollowDetail } from "@/api/patient.js"
...@@ -83,6 +86,7 @@ export default { ...@@ -83,6 +86,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.form && this.$refs.form.resetForm() this.$refs.form && this.$refs.form.resetForm()
}) })
this.loading = true
getFollowDetail({ getFollowDetail({
followId: this.followId, followId: this.followId,
formId: this.form.formId, formId: this.form.formId,
......
...@@ -308,6 +308,7 @@ export default { ...@@ -308,6 +308,7 @@ export default {
// 处理followId 针对随访查询的列表数据的查询和修改操作 // 处理followId 针对随访查询的列表数据的查询和修改操作
if (this.$route.path == "/followupentry") { if (this.$route.path == "/followupentry") {
params.followId = this.followId || this.getTabFollowId params.followId = this.followId || this.getTabFollowId
params.formRecordId = this.formData.formRecordId
} }
this.$emit("handleConfirm", params, done, (res) => { this.$emit("handleConfirm", params, done, (res) => {
// 多次填写的表单新增时,获取最新数据 // 多次填写的表单新增时,获取最新数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment