走访慰问

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;
box-sizing: border-box;
background-color: #fff;
z-index: 9999999;
.tab-item {
flex: 1;
text-align: center;

View File

@@ -4,7 +4,10 @@
<div class="header-description">
<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-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>
<div class="line"></div>
@@ -67,6 +70,7 @@ export default {
optionId: '',
name: '',
id: '',
reality: '',
realityValue: '',
@@ -108,18 +112,23 @@ export default {
this.getDetail()
})
uni.$on('goBack', (data) => {
this.forms.menuLevel3Name = data.applicationName
this.forms.applicationId = data.applicationId
this.forms.name = data.selectUser.name
this.forms.optionId = data.selectUser.id
})
// uni.$on('goBack', (data) => {
// this.forms.menuLevel3Name = data.applicationName
// this.forms.applicationId = data.applicationId
// this.forms.name = data.selectUser.name
// this.forms.optionId = data.selectUser.id
// })
},
onShow() {
document.title = '新建走访'
},
mounted() {},
methods: {
handleSelectUser(v) {
console.log(v)
this.forms.id = v?.[0]?.id || ""
this.forms.name = v?.[0]?.name || ""
},
realityClick() {
if (this.id) return
if (!this.forms.name) {