走访慰问

This commit is contained in:
liuye
2022-08-16 13:54:13 +08:00
parent 9aa783671c
commit 9afee3171f
2 changed files with 17 additions and 7 deletions

View File

@@ -76,6 +76,7 @@ export default {
padding: 16px 36px 8px; padding: 16px 36px 8px;
box-sizing: border-box; box-sizing: border-box;
background-color: #fff; background-color: #fff;
z-index: 9999999;
.tab-item { .tab-item {
flex: 1; flex: 1;
text-align: center; text-align: center;

View File

@@ -4,7 +4,10 @@
<div class="header-description"> <div class="header-description">
<u-form :model="forms" ref="uForm" label-width="auto"> <u-form :model="forms" ref="uForm" label-width="auto">
<u-form-item label="走访对象" prop="name" required :right-icon="id ? '' : 'arrow-right'" class="create_user_names"> <u-form-item label="走访对象" prop="name" required :right-icon="id ? '' : 'arrow-right'" class="create_user_names">
<u-input v-model="forms.name" disabled placeholder="请选择走访对象" @click="toWalkObject" /> <!-- <u-input v-model="forms.name" disabled placeholder="请选择走访对象" @click="toWalkObject" /> -->
<AiPagePicker single @select="handleSelectUser" type="resident" style="width:100%;text-align:right;">
<AiMore v-model="forms.name"/>
</AiPagePicker>
</u-form-item> </u-form-item>
<div class="line"></div> <div class="line"></div>
@@ -67,6 +70,7 @@ export default {
optionId: '', optionId: '',
name: '', name: '',
id: '',
reality: '', reality: '',
realityValue: '', realityValue: '',
@@ -108,18 +112,23 @@ export default {
this.getDetail() this.getDetail()
}) })
uni.$on('goBack', (data) => { // uni.$on('goBack', (data) => {
this.forms.menuLevel3Name = data.applicationName // this.forms.menuLevel3Name = data.applicationName
this.forms.applicationId = data.applicationId // this.forms.applicationId = data.applicationId
this.forms.name = data.selectUser.name // this.forms.name = data.selectUser.name
this.forms.optionId = data.selectUser.id // this.forms.optionId = data.selectUser.id
}) // })
}, },
onShow() { onShow() {
document.title = '新建走访' document.title = '新建走访'
}, },
mounted() {}, mounted() {},
methods: { methods: {
handleSelectUser(v) {
console.log(v)
this.forms.id = v?.[0]?.id || ""
this.forms.name = v?.[0]?.name || ""
},
realityClick() { realityClick() {
if (this.id) return if (this.id) return
if (!this.forms.name) { if (!this.forms.name) {