Commit 1fb9382e authored by 刘予佳's avatar 刘予佳

Merge remote-tracking branch 'remotes/origin/dev' into dev_lyj

parents 707b1ae3 8fd75fa4
...@@ -186,7 +186,6 @@ export default { ...@@ -186,7 +186,6 @@ export default {
// 切换不符合筛查条件的显示 // 切换不符合筛查条件的显示
formChange() { formChange() {
// 入选,排除标准,一个填写是就不符合筛查条件 // 入选,排除标准,一个填写是就不符合筛查条件
console.log(this.form)
let arr = [ let arr = [
"is_one_year", "is_one_year",
"is_subtotal_history", "is_subtotal_history",
...@@ -202,6 +201,9 @@ export default { ...@@ -202,6 +201,9 @@ export default {
flag++ flag++
} }
} }
if (this.form.is_know && this.form.is_know == 0) {
flag = 1
}
if (flag == 0) { if (flag == 0) {
this.$emit("showError", false) this.$emit("showError", false)
} else { } else {
......
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
>上一步</el-button >上一步</el-button
> >
</template> </template>
<!-- 下一步按钮 -->
<template v-if="options.submitBtn"> <template v-if="options.submitBtn">
<el-button <el-button
type="primary" type="primary"
...@@ -424,6 +425,7 @@ export default { ...@@ -424,6 +425,7 @@ export default {
} }
.noCol { .noCol {
font-size: 12px; font-size: 12px;
margin-left: 12px;
font-family: AlibabaPuHuiTiR; font-family: AlibabaPuHuiTiR;
color: #ff4d4f; color: #ff4d4f;
} }
......
```js
!实在是累的没办法了,只能在这里记住这些文件的层级关系
? FormItemSelf\ FormContent\
? FormItemText/ CustomForm/index——————views/screening/FormTab——————ConfigForms————index
*/
上一步下一步提交按钮触发:CustomForm/index 最终处理实在ConfigForms以及同级中的mixin
```
...@@ -49,10 +49,9 @@ ...@@ -49,10 +49,9 @@
> >
<template slot="title"> <template slot="title">
{{ g.label }} {{ g.label }}
<span <span v-if="g.label == '二、排除标准'" class="noCol">{{
v-if="g.label == '二、排除标准'" errorText
class="noCol" }}</span>
>{{errorText}}</span>
</template> </template>
<form-content <form-content
v-if="collapseNames.includes(g.prop)" v-if="collapseNames.includes(g.prop)"
...@@ -63,7 +62,7 @@ ...@@ -63,7 +62,7 @@
:is-show-important="isShowImportant" :is-show-important="isShowImportant"
@showError="showError" @showError="showError"
:showIndex="g.showIndex" :showIndex="g.showIndex"
:class="g.showIndex?'simple-form':'index-form'" :class="g.showIndex ? 'simple-form' : 'index-form'"
></form-content> ></form-content>
</el-collapse-item> </el-collapse-item>
</template> </template>
...@@ -160,7 +159,7 @@ export default { ...@@ -160,7 +159,7 @@ export default {
}, },
}, },
watch: { watch: {
formEdit:{ formEdit: {
handler() { handler() {
this.initfields(this.formEdit) this.initfields(this.formEdit)
}, },
...@@ -313,19 +312,19 @@ export default { ...@@ -313,19 +312,19 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
// 子组件数据初始化完成后 // 子组件数据初始化完成后
// setTimeout(() => { // setTimeout(() => {
this.initfields(this.formEdit) this.initfields(this.formEdit)
// }, 0) // }, 0)
if (this.$refs.form && this.$refs.form.clearValidate) { if (this.$refs.form && this.$refs.form.clearValidate) {
this.$refs.form.clearValidate() this.$refs.form.clearValidate()
} }
this.$forceUpdate(); this.$forceUpdate()
}) })
}, },
// 绑定部分值(此时表单已渲染) // 绑定部分值(此时表单已渲染)
initfields(obj) { initfields(obj) {
for (let k in obj) { for (let k in obj) {
// if (this.form.hasOwnProperty(k)) { // if (this.form.hasOwnProperty(k)) {
this.form[k] = obj[k] this.form[k] = obj[k]
// } // }
} }
}, },
...@@ -420,10 +419,10 @@ export default { ...@@ -420,10 +419,10 @@ export default {
// } // }
} }
.simple-form { .simple-form {
::v-deep { ::v-deep {
.el-form-item__label { .el-form-item__label {
margin-left: 20px; margin-left: 20px;
} }
} }
} }
</style> </style>
...@@ -44,9 +44,16 @@ ...@@ -44,9 +44,16 @@
</div> </div>
</div> </div>
<div v-if="allianceToken" class="userInfo"> <div v-if="allianceToken" class="userInfo">
<div class="white"></div> <div class="top">
<div class="text">欢迎,{{ userInfo.name }}</div> <div class="text">欢迎,{{ userInfo.name }}</div>
<div class="exit" @click="logout">退出</div> <div class="exit" @click="logout">退出</div>
</div>
<div class="bot" @click="$router.push('/')">
<div class="left_chart">
<img src="@/assets/img/Home/chart.png" alt="" />
</div>
<div class="right_text">数据中心</div>
</div>
</div> </div>
</header> </header>
<div class="sider"> <div class="sider">
...@@ -260,26 +267,56 @@ export default { ...@@ -260,26 +267,56 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-end; align-items: flex-end;
.white { .top {
width: 32px; display: flex;
height: 4px; align-items: center;
background: #ffffff; .text {
} font-size: 20px;
.text { font-family: AlibabaPuHuiTiM;
font-size: 20px; color: #ffffff;
font-family: AlibabaPuHuiTiM; margin: 10px 24px;
color: #ffffff; }
margin: 10px 0; .exit {
font-size: 16px;
cursor: pointer;
font-family: AlibabaPuHuiTiR;
text-decoration: underline;
color: rgba(255, 255, 255, 0.8);
line-height: 16px;
&:active {
color: #4e68ff;
}
}
} }
.exit { .bot {
font-size: 16px; width: 183px;
height: 60px;
background: rgba(255, 255, 255, 0.9);
box-shadow: 0px 12px 36px 0px rgba(23, 44, 105, 0.3);
border-radius: 8px;
display: flex;
margin-top: 32px;
cursor: pointer; cursor: pointer;
font-family: AlibabaPuHuiTiR; .left_chart {
text-decoration: underline; width: 60px;
color: rgba(255, 255, 255, 0.8); height: 60px;
line-height: 16px; display: flex;
&:active { justify-content: center;
color: #4e68ff; align-items: center;
img {
width: 36px;
height: 36px;
}
}
.right_text {
flex: 1;
background: #4e68ff;
border-radius: 0px 8px 8px 0px;
line-height: 60px;
font-size: 22px;
font-family: PingFangSC-Medium, PingFang SC;
color: #f1f5fd;
text-align: center;
} }
} }
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<div class="userInfo"> <div class="userInfo">
<error-log></error-log> <error-log></error-log>
<!-- <avatar></avatar> --> <!-- <avatar></avatar> -->
<div class="fontSelect"> <div v-if="$route.path != '/auditqualitycontrol'" class="fontSelect">
<div <div
v-for="(item, index) in fontList" v-for="(item, index) in fontList"
:key="index" :key="index"
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</div> </div>
</div> </div>
<div <div
v-show="curSelectedIndex != -1" v-show="curSelectedIndex != -1 && $route.path != '/auditqualitycontrol'"
class="community" class="community"
@click="openModalFlag" @click="openModalFlag"
> >
...@@ -62,6 +62,10 @@ ...@@ -62,6 +62,10 @@
</el-badge> </el-badge>
</template> </template>
</el-popover> </el-popover>
<div class="user" @click="$router.push('/home')">
<img src="~@/assets/img/DataCenter/backhome.png" alt />
<span>返回首页</span>
</div>
</div> </div>
</div> </div>
</template> </template>
......
export { default as TagsBar } from "zx-layouts/zx-tags-bar" export { default as TagsBar } from "zx-layouts/zx-tags-bar"
export { default as SideBar } from "zx-layouts/zx-side-bar" export { default as SideBar } from "@/layouts/components/zx-side-bar"
export { default as Breadcrumb } from "zx-layouts/zx-breadcrumb" export { default as Breadcrumb } from "zx-layouts/zx-breadcrumb"
export { default as FullScreenBar } from "zx-layouts/zx-full-screen-bar" export { default as FullScreenBar } from "zx-layouts/zx-full-screen-bar"
export { default as ErrorLog } from "zx-layouts/zx-error-log" export { default as ErrorLog } from "zx-layouts/zx-error-log"
......
<template>
<div v-if="!item.hidden">
<template
v-if="
handleChildren(item.children, item) &&
(!onlyOneChildren.children || onlyOneChildren.notShowChildren) &&
!item.alwaysShow
"
>
<app-link
v-if="onlyOneChildren.meta"
:target="onlyOneChildren.meta.target ? onlyOneChildren.meta.target : ''"
:to="handlePath(onlyOneChildren.path)"
>
<el-menu-item
:class="{ 'submenu-title-noDropdown': !isNest }"
:index="handlePath(onlyOneChildren.path)"
>
<vab-icon
v-if="onlyOneChildren.meta && onlyOneChildren.meta.icon"
:icon="['fas', onlyOneChildren.meta.icon]"
class="vab-nav-icon"
/>
<vab-remix-icon
v-if="onlyOneChildren.meta && onlyOneChildren.meta.remixIcon"
:icon-class="onlyOneChildren.meta.remixIcon"
class="vab-nav-icon"
/>
<span slot="title">{{ onlyOneChildren.meta.title }} </span>
<el-tag
v-if="onlyOneChildren.meta && onlyOneChildren.meta.badge"
type="danger"
effect="dark"
>{{ onlyOneChildren.meta.badge }}</el-tag
>
</el-menu-item>
</app-link>
</template>
<el-submenu v-else ref="subMenu" :index="handlePath(item.path)">
<template slot="title">
<vab-icon
v-if="item.meta && item.meta.icon"
:icon="['fas', item.meta.icon]"
class="vab-nav-icon"
/>
<vab-remix-icon
v-if="item.meta && item.meta.remixIcon"
:icon-class="item.meta.remixIcon"
class="vab-nav-icon"
/>
<span>{{ item.meta.title }}</span>
</template>
<side-bar-item
v-for="child in item.children"
:key="child.path"
:base-path="handlePath(child.path)"
:is-nest="true"
:item="child"
class="nest-menu"
/>
</el-submenu>
</div>
</template>
<script>
import path from "path";
import { isExternal } from "@/utils/validate";
import AppLink from "@/layouts/components/Link";
export default {
name: "SideBarItem",
components: { AppLink },
props: {
item: {
type: Object,
required: true,
},
isNest: {
type: Boolean,
default: false,
},
basePath: {
type: String,
default: "",
},
},
data() {
this.onlyOneChild = null;
return {};
},
methods: {
handleChildren(children = [], parent) {
if (children === null) children = [];
const showChildren = children.filter((item) => {
if (item.hidden) {
return false;
} else {
this.onlyOneChildren = item;
return true;
}
});
if (showChildren.length === 1) {
return true;
}
if (showChildren.length === 0) {
this.onlyOneChildren = {
...parent,
path: "",
notShowChildren: true,
};
return true;
}
return false;
},
handlePath(routePath) {
if (isExternal(routePath)) {
return routePath;
}
if (isExternal(this.basePath)) {
return this.basePath;
}
return path.resolve(this.basePath, routePath);
},
},
};
</script>
<style lang="scss" scoped>
.vab-nav-icon {
margin-right: 4px;
}
::v-deep {
.el-tag {
margin-top: 15px;
padding-left: 3px;
padding-right: 3px;
height: 16px;
line-height: 13px;
float: right;
}
}
</style>
<template>
<el-scrollbar class="side-bar-container" :class="{ 'is-collapse': collapse }">
<logo />
<el-menu
:background-color="variables['menu-background']"
:text-color="variables['menu-color']"
:active-text-color="variables['menu-color-active']"
:default-active="activeMenu"
:collapse="collapse"
:collapse-transition="false"
:default-openeds="defaultOpens"
:unique-opened="uniqueOpened"
mode="vertical"
class="undefineMenu"
>
<side-bar-item
v-for="route in routes"
:key="route.path"
:base-path="route.path"
:item="route"
/>
<div class="qrcode">
<div class="img"></div>
<div class="text">问题反馈群</div>
</div>
</el-menu>
</el-scrollbar>
</template>
<script>
import Logo from "@/layouts/components/Logo"
import SideBarItem from "./components/SideBarItem"
import variables from "@/styles/variables.scss"
import { mapGetters } from "vuex"
import { defaultOopeneds, uniqueOpened } from "@/config/settings"
export default {
name: "SideBar",
components: { SideBarItem, Logo },
data() {
return {
uniqueOpened,
}
},
computed: {
...mapGetters({
collapse: "settings/collapse",
routes: "routes/routes",
}),
defaultOpens() {
if (this.collapse) {
}
return defaultOopeneds
},
activeMenu() {
const route = this.$route
const { meta, path } = route
if (meta.activeMenu) {
return meta.activeMenu
}
return path
},
variables() {
return variables
},
},
}
</script>
<style lang="scss" scoped>
.qrcode {
width: 108px;
height: 136px;
background: #546184;
border-radius: 4px;
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
padding: 8px;
display: flex;
flex-direction: column;
align-items: center;
.img {
width: 92px;
height: 92px;
background: url("~@/assets/img/DataCenter/qrcode.png") no-repeat;
background-size: cover;
background-position: center center;
border-radius: 2px;
}
.text {
font-size: 14px;
font-family: AlibabaPuHuiTiR;
color: #ffffff;
text-align: center;
margin-top: 8px;
}
}
@mixin active {
&:hover {
color: $base-color-white !important;
background-color: $base-menu-background-active !important;
}
&.is-active {
color: $base-color-white !important;
background-color: $base-menu-background-active !important;
}
}
.undefineMenu {
min-height: calc(100vh - 120px);
padding-bottom: 166px;
}
.side-bar-container {
position: fixed;
top: 0;
bottom: 0;
left: 0;
z-index: $base-z-index;
width: $base-left-menu-width;
height: 100vh;
overflow: hidden;
background: $base-menu-background;
box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
transition: all 0.1s;
padding: 8px 0 14px;
&.is-collapse {
width: $base-left-menu-width-min;
border-right: 0 !important;
::v-deep {
.el-menu {
transition: all 0.1s;
}
.el-menu--collapse {
border-right: 0 !important;
.el-submenu__icon-arrow {
right: 10px;
margin-top: -3px;
}
.el-submenu__title {
span {
display: none;
}
}
}
}
}
::v-deep {
.el-scrollbar__wrap {
overflow-x: hidden;
}
.el-menu {
border: 0;
}
.svg-inline {
&--fa {
width: 1rem;
}
}
.el-menu-item {
height: 46px !important;
overflow: hidden;
line-height: 46px !important;
text-overflow: ellipsis;
white-space: nowrap;
@include active;
}
.nest-menu {
.el-menu-item {
background-color: $base-menu-children-background !important;
@include active;
}
.el-submenu .el-menu-item {
background-color: $base-menu-children-background !important;
@include active;
}
}
}
}
</style>
<template>
<div>草稿箱</div>
</template>
<script>
export default {
data() {
return {}
},
methods: {},
mounted() {},
watch: {},
}
</script>
<style lang="scss" scoped></style>
<template> <template>
<ConfigForms form-type="1"></ConfigForms> <ConfigForms form-type="1" :prods="'add'"></ConfigForms>
</template> </template>
<script> <script>
......
...@@ -107,6 +107,7 @@ export default { ...@@ -107,6 +107,7 @@ export default {
formType: String, formType: String,
patientId: String, patientId: String,
formClass: String, formClass: String,
prods: String,
}, },
data() { data() {
return { return {
......
...@@ -230,7 +230,13 @@ export default { ...@@ -230,7 +230,13 @@ export default {
formId: this.form.formId, formId: this.form.formId,
patientId: this.patientId || this.patientStandbyId, patientId: this.patientId || this.patientStandbyId,
formRecordId: this.formData.formRecordId, formRecordId: this.formData.formRecordId,
statusMap: {
patientFrom: this.$store.getters["table/selectedIndex"],
is_draft: 1,
check_status: 1,
},
}, },
done, done,
(res) => { (res) => {
// 多次填写的表单新增时,获取最新数据 // 多次填写的表单新增时,获取最新数据
...@@ -351,6 +357,9 @@ export default { ...@@ -351,6 +357,9 @@ export default {
) )
} }
}, },
mounted() {
// console.log()
},
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
......
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