Commit 038c39b7 authored by songrui's avatar songrui

筛查提交接口修改

parent 482f662c
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
<div v-for="item in columnsBase" :key="item.key" <div v-for="item in columnsBase" :key="item.key"
class="flex justify-between py-4 border-bottom item"> class="flex justify-between py-4 border-bottom item">
<span class="shrink-0 mr-2 label">{{ item.title }}</span> <span class="shrink-0 mr-2 label">{{ item.title }}</span>
<span class="text-end">{{ residentInfo[item.key] || '-' }}</span> <span v-if="item.key === 'idCard'">{{ $idCardHide(residentInfo.idCard) || '-' }}</span>
<span class="text-end" v-else>{{ residentInfo[item.key] || '-' }}</span>
</div> </div>
</div> </div>
...@@ -82,6 +83,7 @@ export default { ...@@ -82,6 +83,7 @@ export default {
info: {}, info: {},
columnsBase: [ columnsBase: [
{ title: '姓名', key: 'residentName' }, { title: '姓名', key: 'residentName' },
{ title: '证件号码', key: 'idCard'},
{ title: '性别', key: 'genderName' }, { title: '性别', key: 'genderName' },
{ title: '出生日期', key: 'dataBirth' }, { title: '出生日期', key: 'dataBirth' },
{ title: '年龄', key: 'currentAge' }, { title: '年龄', key: 'currentAge' },
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
</template> </template>
<script> <script>
import { computed } from 'vue'
import { showNotify } from 'vant' import { showNotify } from 'vant'
import { backHome } from '@/utils/common.js' import { backHome } from '@/utils/common.js'
import IdCheck from './IdCheck.vue' import IdCheck from './IdCheck.vue'
...@@ -55,8 +56,8 @@ export default { ...@@ -55,8 +56,8 @@ export default {
}, },
provide() { provide() {
return { return {
checkInfo: this.checkInfo, checkInfo: computed(() => this.checkInfo),
recordForm: this.recordForm recordForm: computed(() => this.recordForm)
} }
}, },
computed: { computed: {
...@@ -76,10 +77,6 @@ export default { ...@@ -76,10 +77,6 @@ export default {
}, },
methods: { methods: {
onNext(step) { onNext(step) {
if (this.step === 1) {
this.recordForm = {}
this.checkInfo = {}
}
this.step = step ? step : this.step + 1 this.step = step ? step : this.step + 1
this.setpHistory.push(this.step) this.setpHistory.push(this.step)
const dom = this.$refs.top const dom = this.$refs.top
...@@ -90,6 +87,10 @@ export default { ...@@ -90,6 +87,10 @@ export default {
if (this.step === 1) return if (this.step === 1) return
this.setpHistory.pop() this.setpHistory.pop()
this.step = this.setpHistory[this.setpHistory.length - 1] this.step = this.setpHistory[this.setpHistory.length - 1]
if (this.step === 1) {
this.recordForm = {}
this.checkInfo = {}
}
}, },
onClose() { onClose() {
backHome() backHome()
......
...@@ -468,9 +468,11 @@ export default { ...@@ -468,9 +468,11 @@ export default {
const query = { const query = {
...this.form, ...this.form,
screenDoctorId: this.recordForm.doctorId, screenDoctorId: this.recordForm.doctorId,
residentsRecord: this.recordForm.base, residentsRecord: {
...this.recordForm.base,
idCard: this.checkInfo.idCard idCard: this.checkInfo.idCard
} }
}
// 提交表单 // 提交表单
savefirstScreen(fetchDataHandle(query, { savefirstScreen(fetchDataHandle(query, {
familyHistory: 'arrToStr', familyHistory: 'arrToStr',
......
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