Commit 8b966d3d authored by miaojiale's avatar miaojiale

筛查驳回消息跳转筛查查询

parent 606995d5
...@@ -191,3 +191,11 @@ export function getMessage(params = {}) { ...@@ -191,3 +191,11 @@ export function getMessage(params = {}) {
params, params,
}) })
} }
// 获取驳回修改消息
export function getRefuteMessage(params) {
return request({
url: `/disease-data//sys/message/remind/${params}`,
method: "get",
params,
})
}
...@@ -226,6 +226,15 @@ export default { ...@@ -226,6 +226,15 @@ export default {
form: {}, form: {},
} }
}, },
watch: {
formDefaults: {
handler(v) {
console.log(v)
this.initforms()
},
deep: true,
},
},
methods: { methods: {
// 表单赋值 // 表单赋值
initforms() { initforms() {
......
...@@ -52,7 +52,13 @@ ...@@ -52,7 +52,13 @@
<span class="blue-dot mt-5 mr-8"></span> <span class="blue-dot mt-5 mr-8"></span>
<span class="top-text">{{ item.createTime }}</span> <span class="top-text">{{ item.createTime }}</span>
</div> </div>
<div class="main-text ml-8">{{ item.content }}</div> <div
class="main-text ml-8"
style="cursor: pointer"
@click="goSearch(item.bizType)"
>
{{ item.content }}
</div>
</div> </div>
<div v-show="loading" v-loading="loading" class="loading"></div> <div v-show="loading" v-loading="loading" class="loading"></div>
</div> </div>
...@@ -79,20 +85,20 @@ import { getMessage } from "@/api/user" ...@@ -79,20 +85,20 @@ import { getMessage } from "@/api/user"
import Message from "@/mixins/getMessage" import Message from "@/mixins/getMessage"
import { import {
Avatar, Avatar,
Breadcrumb, // Breadcrumb,
ErrorLog, ErrorLog,
FullScreenBar, // FullScreenBar,
ThemeBar, // ThemeBar,
} from "@/layouts/components" } from "@/layouts/components"
export default { export default {
name: "NavBar", name: "NavBar",
components: { components: {
Avatar, Avatar,
Breadcrumb, // Breadcrumb,
ErrorLog, ErrorLog,
FullScreenBar, // FullScreenBar,
ThemeBar, // ThemeBar,
}, },
mixins: [Message], mixins: [Message],
props: { props: {
...@@ -178,6 +184,11 @@ export default { ...@@ -178,6 +184,11 @@ export default {
this.getMessage() this.getMessage()
} }
}, },
goSearch(val) {
if (val == "screen") {
this.$router.push("/screening/index?checkStatus=2")
}
},
getMessage() { getMessage() {
this.loading = true this.loading = true
getMessage({ getMessage({
......
...@@ -174,6 +174,35 @@ ...@@ -174,6 +174,35 @@
</div> </div>
</el-dialog> </el-dialog>
</el-dialog> </el-dialog>
<!-- 自动提醒 -->
<el-dialog
custom-class="autoDialog"
:title="''"
:visible.sync="autoFlag"
:close-on-click-modal="false"
:close-on-press-escape="false"
:show-close="true"
width="520px"
>
<div class="innerBody">
<div class="title">驳回修改提醒</div>
<div class="refuteList">
<div
class="rufuteItem"
v-for="(item, index) in autoDialogList"
:key="index"
>
<div class="title">{{ item.title }}病例数据驳回修改</div>
<div class="num">【{{ item.num }}条】</div>
<div class="btn">
<el-button type="warning" @click="goSearch(item.title)"
>去处理</el-button
>
</div>
</div>
</div>
</div>
</el-dialog>
</div> </div>
</template> </template>
...@@ -189,6 +218,7 @@ import { ...@@ -189,6 +218,7 @@ import {
import { mapGetters, mapActions } from "vuex" import { mapGetters, mapActions } from "vuex"
import { tokenName } from "@/config/settings" import { tokenName } from "@/config/settings"
import Media from "./mixin/Media" import Media from "./mixin/Media"
import { getRefuteMessage } from "@/api/user"
export default { export default {
name: "Layout", name: "Layout",
...@@ -204,6 +234,7 @@ export default { ...@@ -204,6 +234,7 @@ export default {
data() { data() {
return { return {
modalFlag: false, modalFlag: false,
autoFlag: false,
innerVisible: false, innerVisible: false,
screeningList: [ screeningList: [
{ {
...@@ -272,6 +303,7 @@ export default { ...@@ -272,6 +303,7 @@ export default {
], ],
}, },
], ],
autoDialogList: [],
} }
}, },
computed: { computed: {
...@@ -292,6 +324,7 @@ export default { ...@@ -292,6 +324,7 @@ export default {
created() { created() {
this.selectedIndex = sessionStorage.getItem("selectedIndex") || "" this.selectedIndex = sessionStorage.getItem("selectedIndex") || ""
this.curSelectedIndex = String(this.selectedIndex) ? this.selectedIndex : "" this.curSelectedIndex = String(this.selectedIndex) ? this.selectedIndex : ""
this.getRefuteMessage()
}, },
mounted() { mounted() {
if (!this.selectedIndex) { if (!this.selectedIndex) {
...@@ -304,7 +337,7 @@ export default { ...@@ -304,7 +337,7 @@ export default {
: "" : ""
} }
// console.log(this.curSelectedIndex) // console.log(this.curSelectedIndex)
this.getRefuteMessage()
this.$nextTick(() => { this.$nextTick(() => {
window.addEventListener( window.addEventListener(
"storage", "storage",
...@@ -320,6 +353,37 @@ export default { ...@@ -320,6 +353,37 @@ export default {
...mapActions({ ...mapActions({
handleFoldSideBar: "settings/foldSideBar", handleFoldSideBar: "settings/foldSideBar",
}), }),
goSearch(title) {
if (title == "筛查") {
this.$router.push("/screening/index?checkStatus=2")
}
this.autoFlag = false
},
// 获取消息
getRefuteMessage() {
getRefuteMessage(this.curSelectedIndex)
.then((res) => {
if (res.code == 1) {
this.autoDialogList = []
if (res.data.筛查) {
this.autoDialogList.push({
title: "筛查",
num: res.data.筛查 || 0,
})
}
if (res.data.随访) {
this.autoDialogList.push({
title: "随访",
num: res.data.随访 || 0,
})
}
if (this.autoDialogList.length > 0) {
this.autoFlag = true
}
}
})
.catch()
},
setSelectedIndex() { setSelectedIndex() {
console.log(this.selectedIndex) console.log(this.selectedIndex)
this.curSelectedIndex = this.selectedIndex this.curSelectedIndex = this.selectedIndex
...@@ -475,6 +539,10 @@ export default { ...@@ -475,6 +539,10 @@ export default {
::v-deep .homeDialog .el-dialog__header { ::v-deep .homeDialog .el-dialog__header {
display: none; display: none;
} }
::v-deep .autoDialog .el-dialog__header {
// display: none;
padding: 0px;
}
.modalContent { .modalContent {
padding: 60px; padding: 60px;
.title { .title {
...@@ -604,6 +672,38 @@ export default { ...@@ -604,6 +672,38 @@ export default {
} }
} }
} }
.refuteList {
display: flex;
justify-content: space-around;
.rufuteItem {
width: 200px;
height: 148px;
border-radius: 4px;
border: 1px solid #dddddd;
display: flex;
flex-direction: column;
align-items: center;
.title {
font-size: 16px;
margin: 16px 0;
font-family: AlibabaPuHuiTiR;
color: #333333;
}
.num {
font-size: 16px;
font-family: AlibabaPuHuiTiM;
color: #4e68ff;
margin-bottom: 16px;
}
.btn {
.el-button {
width: 100px;
background: #ff7900;
border-radius: 5px;
}
}
}
}
} }
.submit { .submit {
margin-top: 60px; margin-top: 60px;
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
ref="form" ref="form"
:label-position="'right'" :label-position="'right'"
:forms="searchList" :forms="searchList"
:form-defaults="initForm"
:style="{ textAlign: 'left' }" :style="{ textAlign: 'left' }"
@handleSearch="handleFormSearch" @handleSearch="handleFormSearch"
/> />
...@@ -17,9 +18,9 @@ ...@@ -17,9 +18,9 @@
:total-count="total" :total-count="total"
:page-sizes="pageSizes" :page-sizes="pageSizes"
:page-size="pageSize" :page-size="pageSize"
:sort-change="sortChange"
@pageSizeChange="handleSizeChange" @pageSizeChange="handleSizeChange"
@currentPageChange="handleCurrentChange" @currentPageChange="handleCurrentChange"
:sortChange="sortChange"
/> />
</div> </div>
...@@ -31,8 +32,8 @@ ...@@ -31,8 +32,8 @@
form-type="1" form-type="1"
:patient-id="patientId" :patient-id="patientId"
:disabled="disabled" :disabled="disabled"
:tabDisabled="tabDisabled" :tab-disabled="tabDisabled"
:isDraft="'0'" :is-draft="'0'"
:operation="'edit'" :operation="'edit'"
></ConfigForms> ></ConfigForms>
</div> </div>
...@@ -46,8 +47,8 @@ import ConfigForms from "./components/ConfigForms.vue" ...@@ -46,8 +47,8 @@ import ConfigForms from "./components/ConfigForms.vue"
import { mapGetters } from "vuex" import { mapGetters } from "vuex"
export default { export default {
name: "ScreeningIndex", name: "ScreeningIndex",
mixins: [paginationMixin],
components: { ConfigForms }, components: { ConfigForms },
mixins: [paginationMixin],
data() { data() {
return { return {
isDetail: false, //! 控制详情显隐 isDetail: false, //! 控制详情显隐
...@@ -255,6 +256,7 @@ export default { ...@@ -255,6 +256,7 @@ export default {
}, },
], ],
searchForm: {}, searchForm: {},
initForm: {},
} }
}, },
methods: { methods: {
...@@ -323,21 +325,9 @@ export default { ...@@ -323,21 +325,9 @@ export default {
selectedIndex: "table/selectedIndex", selectedIndex: "table/selectedIndex",
refreshFlag: "table/refreshFlag", refreshFlag: "table/refreshFlag",
}), }),
}, initCheckStatus() {
created() { return this.$route.query.checkStatus
this.handleFormSearch() },
// if (this.$route.path == "/screening/index") {
// this.tabDisabled = false
// }
if (this.$route.query.patientId) {
let patientId = this.$route.query.patientId
// this.$nextTick(() => {
this.disabled = true
this.tabDisabled = false
this.patientId = patientId || null
this.isDetail = true
// })
}
}, },
watch: { watch: {
selectedIndex(v) { selectedIndex(v) {
...@@ -355,6 +345,42 @@ export default { ...@@ -355,6 +345,42 @@ export default {
}) })
} }
}, },
initCheckStatus(v) {
if (v) {
this.initForm = {
checkStatus: this.$route.query.checkStatus + "",
}
// console.log(this.searchForm)
this.handleSearch(this.initForm)
}
console.log("status" + v)
},
},
created() {
if (this.$route.query.checkStatus) {
this.initForm = {
checkStatus: this.$route.query.checkStatus + "",
}
this.handleSearch(this.initForm)
} else {
this.handleFormSearch()
}
// if (this.$route.path == "/screening/index") {
// this.tabDisabled = false
// }
if (this.$route.query.patientId) {
let patientId = this.$route.query.patientId
// this.$nextTick(() => {
this.disabled = true
this.tabDisabled = false
this.patientId = patientId || null
this.isDetail = true
// })
}
},
mounted() {
// console.log(this.$route.query.checkStatus)
}, },
} }
</script> </script>
......
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