Commit 708bda5c authored by songrui's avatar songrui

随访删除修改

parent ad3e751f
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
.text-16 { font-size: 16px; } .text-16 { font-size: 16px; }
.text-12 { font-size: 12px; } .text-12 { font-size: 12px; }
.text-center { text-align: center; } .text-center { text-align: center; }
.text-end { text-align: end; }
.text-black { color: #000; } .text-black { color: #000; }
.text-red { color: #FF4D4F; } .text-red { color: #FF4D4F; }
.text-primary { color: var(--van-primary-color); } .text-primary { color: var(--van-primary-color); }
......
...@@ -80,6 +80,7 @@ body { ...@@ -80,6 +80,7 @@ body {
display: none; display: none;
} }
} }
} }
// 按键形式的单选框 // 按键形式的单选框
......
...@@ -212,7 +212,7 @@ export default { ...@@ -212,7 +212,7 @@ export default {
}).then(() => { }).then(() => {
// on confirm // on confirm
// console.log(item.id) // console.log(item.id)
deleteVisit(item.id).then(res => { deleteVisit({ id: item.id }).then(res => {
this.load() this.load()
}) })
}) })
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<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>{{ residentInfo[item.key] || '-' }}</span> <span class="text-end">{{ residentInfo[item.key] || '-' }}</span>
</div> </div>
</div> </div>
......
...@@ -96,7 +96,11 @@ ...@@ -96,7 +96,11 @@
placeholder="请选择所在地区" placeholder="请选择所在地区"
:rules="rules.presentCode" :rules="rules.presentCode"
@click="showPresent = true" @click="showPresent = true"
/> >
<template #input>
<span class="text-end">{{ form.presentCodeName }}</span>
</template>
</van-field>
<van-popup v-model:show="showPresent" :close-on-click-overlay="false" position="bottom" <van-popup v-model:show="showPresent" :close-on-click-overlay="false" position="bottom"
:lazy-render="false"> :lazy-render="false">
<DocAddress v-model:value="form.presentCode" @close="showPresent = false" <DocAddress v-model:value="form.presentCode" @close="showPresent = false"
...@@ -126,7 +130,11 @@ ...@@ -126,7 +130,11 @@
placeholder="请选择所在地区" placeholder="请选择所在地区"
:rules="rules.registeredCode" :rules="rules.registeredCode"
@click="showRegistered = true" @click="showRegistered = true"
/> >
<template #input>
<span class="text-end">{{ form.registeredCodeName }}</span>
</template>
</van-field>
<van-popup v-model:show="showRegistered" :close-on-click-overlay="false" position="bottom" <van-popup v-model:show="showRegistered" :close-on-click-overlay="false" position="bottom"
:lazy-render="false"> :lazy-render="false">
<DocAddress v-model:value="form.registeredCode" @close="showRegistered = false" <DocAddress v-model:value="form.registeredCode" @close="showRegistered = false"
......
<template> <template>
<div class="h-full pb-5 flex flex-col "> <div class="pb-5 flex flex-col" style="height: 100vh;">
<div class="p-3 text-16 text-black text-center shrink-0 top-bar"> <div class="p-3 text-16 text-black text-center shrink-0 top-bar">
<span class="back-bt" v-if="step >= 2"> <span class="back-bt" v-if="step >= 2">
<span @click="onClose" v-if="[5].includes(step)"> <span @click="onClose" v-if="[5].includes(step)">
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<span>居民慢病筛查</span> <span>居民慢病筛查</span>
</div> </div>
<div class="grow overflow-y-auto"> <div class="grow overflow-y-auto">
<div ref="top"></div>
<IdCheck v-show="step === 1"/> <IdCheck v-show="step === 1"/>
<CheckTip v-if="step === 2"/> <CheckTip v-if="step === 2"/>
<!-- 居民基础信息 --> <!-- 居民基础信息 -->
...@@ -80,6 +81,9 @@ export default { ...@@ -80,6 +81,9 @@ export default {
} }
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
console.log(dom)
dom && dom.scrollIntoView()
}, },
onBack() { onBack() {
if (this.step === 1) return if (this.step === 1) return
......
...@@ -56,7 +56,7 @@ export const addressValidator = { validator: (value) => { ...@@ -56,7 +56,7 @@ export const addressValidator = { validator: (value) => {
if (!array.length || array.length === 5) { if (!array.length || array.length === 5) {
return return
} }
if (value.length < 5) { if (array.length < 5) {
return '请选择至第五级地址' return '请选择至第五级地址'
} }
return return
......
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