Commit c0522876 authored by liang's avatar liang

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

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