Commit c0522876 authored by liang's avatar liang

审核质控-筛查/随访可以修改

parent abd66e8e
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
> >
</div> </div>
<div class="right"> <div class="right">
<el-button class="btn" @click="handleEdit" v-if="auditNum > 0"
>修改</el-button
>
<el-button class="btn" @click="$router.go(-1)">返回</el-button> <el-button class="btn" @click="$router.go(-1)">返回</el-button>
</div> </div>
</div> </div>
...@@ -20,6 +23,7 @@ ...@@ -20,6 +23,7 @@
:is="curComponent" :is="curComponent"
:patient-id="patientId" :patient-id="patientId"
:no-data="isEmpty" :no-data="isEmpty"
ref="screen"
></component> ></component>
</div> </div>
<div v-if="!isEmpty" class="choose-handle p-24"> <div v-if="!isEmpty" class="choose-handle p-24">
...@@ -230,11 +234,21 @@ ...@@ -230,11 +234,21 @@
</div> </div>
</template> </template>
</public-dialog> </public-dialog>
<DialogConfigForms
ref="follow"
:patientId="patientId"
formType="1"
is-draft="0"
operation="edit"
@update="refresh"
></DialogConfigForms>
</div> </div>
</template> </template>
<script> <script>
import publicDialog from "./components/publicDialog.vue" import publicDialog from "./components/publicDialog.vue"
import screenReview from "./components/screenReview.vue" import screenReview from "./components/screenReview.vue"
import DialogConfigForms from "../followupentry/components/DialogConfigForms.vue"
import { import {
getScreeningUser, getScreeningUser,
putScreeningCheck, putScreeningCheck,
...@@ -243,7 +257,7 @@ import { ...@@ -243,7 +257,7 @@ import {
getSysCheckNote, getSysCheckNote,
} from "@/api/screeningAudit" } from "@/api/screeningAudit"
export default { export default {
components: { publicDialog, screenReview }, components: { publicDialog, screenReview, DialogConfigForms },
data() { data() {
return { return {
isEmpty: false, isEmpty: false,
...@@ -307,6 +321,12 @@ export default { ...@@ -307,6 +321,12 @@ export default {
// this.$refs.publicDialog.dialogVisible = true // this.$refs.publicDialog.dialogVisible = true
}, },
methods: { methods: {
refresh() {
this.$refs["screen"].getPatientDetail()
},
handleEdit() {
this.$refs.follow.open()
},
// 获取标签 // 获取标签
getSysCheckNote() { getSysCheckNote() {
getSysCheckNote().then((res) => { getSysCheckNote().then((res) => {
......
<template>
<el-dialog
center
:title="title"
:visible.sync="visible"
:width="width"
@close="close"
:append-to-body="appendToBody"
:close-on-click-modal="closeModal"
top="5vh"
>
<div class="main">
<ConfigForms
:key="patientId"
isDialogEdit
:form-type="formType"
:disabled="disabled"
:tab-disabled="tabDisabled"
:patient-id="patientId"
:isDraft="isDraft"
:operation="operation"
@changeShow="changeShow"
></ConfigForms>
</div>
</el-dialog>
</template>
<script>
import ConfigForms from "@/views/screening/components/ConfigForms.vue"
export default {
components: { ConfigForms },
name: "DialogConfigForms",
data() {
return {
loading: false,
visible: false,
disabled: false,
tabDisabled: true,
screenList: [],
}
},
props: {
formType: String,
operation: String,
isDraft: String,
patientId: String,
followId: String,
confirmText: {
type: String,
default: "确 认",
},
appendToBody: {
type: Boolean,
default: false,
},
closeModal: {
type: Boolean,
default: false,
},
title: {
type: String,
default: "修改",
},
width: {
type: String,
default: "80%",
},
},
provide() {
return {
tabFollowId: () => this.followId,
}
},
methods: {
open() {
this.visible = true
},
close() {
this.loading = false
this.visible = false
},
handleConfirm() {
this.loading = true
},
changeShow() {
this.close()
},
},
watch: {
visible() {
if (this.visible) {
} else {
this.$emit("update")
}
},
},
computed: {},
}
</script>
<style lang="scss" scoped>
.el-dialog__wrapper ::v-deep .el-dialog__header {
display: none;
}
</style>
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
> >
</div> </div>
<div class="right"> <div class="right">
<el-button class="btn" @click="handleEdit" v-if="isShowEdit"
>修改</el-button
>
<el-button class="btn" @click="$router.go(-1)">返回</el-button> <el-button class="btn" @click="$router.go(-1)">返回</el-button>
</div> </div>
</div> </div>
...@@ -17,7 +20,12 @@ ...@@ -17,7 +20,12 @@
<template v-if="!isEmpty"> <template v-if="!isEmpty">
<div class="table-content p-24"> <div class="table-content p-24">
<FollowReview :currentRow="currentRow" titlePosition="left"> <FollowReview
:currentRow="currentRow"
ref="follow-review"
titlePosition="left"
@update="update"
>
</FollowReview> </FollowReview>
</div> </div>
<div class="choose-handle p-24"> <div class="choose-handle p-24">
...@@ -227,11 +235,20 @@ ...@@ -227,11 +235,20 @@
</div> </div>
</template> </template>
</public-dialog> </public-dialog>
<DialogConfigForms
ref="follow"
:patientId="currentRow.patientId"
:followId="currentRow.id"
formType="2"
@update="refresh"
></DialogConfigForms>
</div> </div>
</template> </template>
<script> <script>
import publicDialog from "./components/publicDialog.vue" import publicDialog from "./components/publicDialog.vue"
import FollowReview from "../followupquery/components/FollowReview.vue" import FollowReview from "../followupquery/components/FollowReview.vue"
import DialogConfigForms from "./components/DialogConfigForms.vue"
import { import {
getFollowUnCheckDetail, getFollowUnCheckDetail,
putFollowCheck, putFollowCheck,
...@@ -239,7 +256,7 @@ import { ...@@ -239,7 +256,7 @@ import {
} from "@/api/followup" } from "@/api/followup"
import { saveSysCheckNote, getSysCheckNote } from "@/api/screeningAudit" import { saveSysCheckNote, getSysCheckNote } from "@/api/screeningAudit"
export default { export default {
components: { publicDialog, FollowReview }, components: { publicDialog, FollowReview, DialogConfigForms },
data() { data() {
return { return {
isEmpty: false, isEmpty: false,
...@@ -279,6 +296,7 @@ export default { ...@@ -279,6 +296,7 @@ export default {
curBtn: 0, curBtn: 0,
curComponent: "screenReview", curComponent: "screenReview",
confirmStatus: false, confirmStatus: false,
isLast: false,
} }
}, },
computed: { computed: {
...@@ -288,11 +306,30 @@ export default { ...@@ -288,11 +306,30 @@ export default {
showClose() { showClose() {
return this.curBtn == 1 ? false : true return this.curBtn == 1 ? false : true
}, },
isShowEdit() {
const { checkStatus, followBatch } = this.currentRow
return (
this.currentRow.patientId &&
this.isLast &&
followBatch > 0 &&
checkStatus !== 3 &&
checkStatus !== 4
)
},
}, },
created() { created() {
this.init() this.init()
}, },
methods: { methods: {
refresh() {
this.$refs["follow-review"].refreshFollow()
},
handleEdit() {
this.$refs.follow.open()
},
update(val) {
this.isLast = val
},
async getFollowUnCheckDetail() { async getFollowUnCheckDetail() {
this.loading = true this.loading = true
let res = await getFollowUnCheckDetail(this.unionId) let res = await getFollowUnCheckDetail(this.unionId)
......
...@@ -15,7 +15,14 @@ ...@@ -15,7 +15,14 @@
style="position: relative; display: flex" style="position: relative; display: flex"
> >
<el-button <el-button
v-if="formType == 1 ? (!disabled ? true : false) : true" v-if="isDialogEdit"
class="draftButton"
@click="$emit('changeShow')"
>
关闭</el-button
>
<el-button
v-else-if="formType == 1 ? (!disabled ? true : false) : true"
class="draftButton" class="draftButton"
:loading="loading" :loading="loading"
:disabled="formType == 1 ? !infoCompelete : false" :disabled="formType == 1 ? !infoCompelete : false"
...@@ -26,7 +33,9 @@ ...@@ -26,7 +33,9 @@
v-model="activeName" v-model="activeName"
v-loading="fromLoading" v-loading="fromLoading"
type="card" type="card"
:style="{ width: formType == 1 ? '100%' : 'calc(100% - 200px)' }" :style="{
width: formType == 1 || !contrast ? '100%' : 'calc(100% - 200px)',
}"
class="publicTab" class="publicTab"
@tab-click="handleTabClick" @tab-click="handleTabClick"
> >
...@@ -168,6 +177,7 @@ export default { ...@@ -168,6 +177,7 @@ export default {
components: { publicDialog }, components: { publicDialog },
mixins: [mixin], mixins: [mixin],
props: { props: {
isDialogEdit: Boolean,
disabled: Boolean, disabled: Boolean,
screenList: Array, screenList: Array,
tabDisabled: { type: Boolean, default: true }, tabDisabled: { type: Boolean, default: true },
...@@ -346,12 +356,11 @@ export default { ...@@ -346,12 +356,11 @@ export default {
} else if (type == 3) { } else if (type == 3) {
// 筛查提交 // 筛查提交
this.dialogType = "submit" this.dialogType = "submit"
if (this.formType == 2) { if (this.isDialogEdit || this.$route.query.model === "edit") {
if (this.$route.query.model === "edit") { // 审核质控弹窗修改提交关闭/随访修改
this.$emit("changeShow", true) this.$emit("changeShow", true)
} else { } else if (this.formType == 2) {
this.$refs.followDialog.dialogVisible = true this.$refs.followDialog.dialogVisible = true
}
} else { } else {
this.$refs.showDialog.dialogVisible = true this.$refs.showDialog.dialogVisible = true
} }
......
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