Commit 3dfa2583 authored by miaojiale's avatar miaojiale

1. 修改切换筛查提示图片

2. 修改临时保存按钮位置
3. 去除接口所传的formRecordId
parent c6ac0b41
......@@ -271,44 +271,45 @@ export default {
},
// 临时保存
temporarySave() {
//? 只传数据
this.$refs.form.validate((valid) => {
if (valid) {
const data = {}
const form = this.deepClone(this.form)
Object.keys(form).forEach((k) => {
if (form[k] === undefined) {
data[k] = ""
return false
}
if (k === "YZZKJC") {
// 牙周表格
data[k] = JSON.stringify(form[k])
} else if (
Array.isArray(form[k]) &&
form[k][0] &&
isObject(form[k][0])
) {
// 子表单 去除前端添加的显隐辅助数据($_)和 删除按钮辅助数据(showDelBtn)
data[k] = form[k].map((item) => {
for (let key in item) {
if (["$_keyField", "$_hidden", "showDelBtn"].includes(key))
delete item[key]
}
return item
})
} else {
data[k] = form[k]
//? 只传数据 获取当前步数,如果个人信息已经提交可以临时保存
// this.$refs.form.validate((valid) => {
// if (valid) {
const data = {}
const form = this.deepClone(this.form)
Object.keys(form).forEach((k) => {
if (form[k] === undefined) {
data[k] = ""
return false
}
if (k === "YZZKJC") {
// 牙周表格
data[k] = JSON.stringify(form[k])
} else if (
Array.isArray(form[k]) &&
form[k][0] &&
isObject(form[k][0])
) {
// 子表单 去除前端添加的显隐辅助数据($_)和 删除按钮辅助数据(showDelBtn)
data[k] = form[k].map((item) => {
for (let key in item) {
if (["$_keyField", "$_hidden", "showDelBtn"].includes(key))
delete item[key]
}
})
this.$emit("temporaryConfirm", data, () => {
// 完成之后的回调
this.loading = false
return item
})
} else {
this.loading = false
data[k] = form[k]
}
})
this.$emit("temporaryConfirm", data, () => {
// 完成之后的回调
this.loading = false
})
// } else {
// this.loading = false
// }
// })
},
handleConfirm() {
this.loading = true
......@@ -461,6 +462,7 @@ export default {
}
.form-footer {
margin-top: 20px;
margin-bottom: 20px;
text-align: center;
}
}
......
......@@ -569,12 +569,18 @@ export default {
}
.right {
flex: 1;
.r_col_item:nth-child(4) {
img {
align-self: flex-start;
}
}
.r_col_item {
min-height: 72px;
display: flex;
justify-content: flex-start;
align-items: center;
padding: 20px 0 20px 20px;
img {
width: 26px;
height: 26px;
......
<template>
<div
id="publicContent"
:style="{
padding:
$route.path == '/screening/draft'
? ' 10px 24px 60px;'
: ' 32px 24px 60px;',
}"
:class="activeName == 'index0' && formClass ? formClass : ''"
:class="[
activeName == 'index0' && formClass ? formClass : '',
$route.path === '/screening/draft' ? 'p_padding' : '',
]"
>
<div v-if="formTabs && formTabs.length > 0">
<div v-if="formTabs && formTabs.length > 0" style="position: relative">
<el-button
v-if="!disabled"
class="draftButton"
......@@ -31,6 +28,7 @@
:key="form.id"
:label="form.label"
:name="'index' + index"
disabled
>
<!-- disabled -->
<transition mode="out-in" name="fade-transform">
......@@ -148,7 +146,7 @@ export default {
watch: {
activeName(val) {
if (!this.disabled) {
if (!["index0"].includes(val)) {
if (!["index0", "index1"].includes(val)) {
this.infoCompelete = true
} else {
this.infoCompelete = false
......@@ -277,9 +275,10 @@ export default {
<style lang="scss" scoped>
#publicContent {
position: relative;
padding: 32px 24px 32px;
.draftButton {
position: absolute;
top: 46px;
top: 0px;
right: 40px;
z-index: 999;
border-radius: 4px;
......@@ -293,6 +292,9 @@ export default {
}
}
}
#publicContent.p_padding {
padding: 10px 24px 32px;
}
::v-deep .el-dialog__body {
.title {
font-size: 22px;
......
......@@ -180,7 +180,7 @@ export default {
data,
formId: this.form.formId, // 每个大表单的id
patientId: this.patientId || this.patientStandbyId,
formRecordId: this.formData.formRecordId || this.newformRecordId, // 是否为编辑的表单id
// formRecordId: this.formData.formRecordId || this.newformRecordId, // 是否为编辑的表单id
statusMap: {
patient_from: this.$store.getters["table/selectedIndex"],
is_draft: 1, //是否为草稿
......@@ -204,7 +204,7 @@ export default {
data,
formId: this.form.formId, // 每个大表单的id
patientId: this.patientId || this.patientStandbyId,
formRecordId: this.formData.formRecordId || this.newformRecordId, // 是否为编辑的表单id
// formRecordId: this.formData.formRecordId || this.newformRecordId, // 是否为编辑的表单id
statusMap: {
patient_from: this.$store.getters["table/selectedIndex"],
is_draft: 0, //是否为草稿
......@@ -421,7 +421,7 @@ export default {
z-index: 9;
}
.header {
height: 36px;
height: 5px;
box-shadow: 0 5px 4px rgb(0 21 41 / 8%);
padding-right: 20px;
position: relative;
......
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