查询
This commit is contained in:
@@ -9,19 +9,15 @@
|
||||
<AiAreaPicker v-model="forms.areaId" ref="areaIds" :areaId="areaIdProps" @select="areaSelect" style="color: #333"> </AiAreaPicker>
|
||||
</u-form-item>
|
||||
|
||||
<u-form-item label="走访对象" prop="application" required style="position: relative">
|
||||
<u-input v-model="forms.application" disabled placeholder="请选择走访对象" @click="toWalkObject" />
|
||||
<!-- @click="showObject = true" @click="toWalkObject" -->
|
||||
|
||||
<!-- <u-select v-model="showObject" :list="Objectlist" @confirm="applicaStatus"></u-select> -->
|
||||
<u-form-item label="走访对象" prop="create_user_name" required style="position: relative">
|
||||
<u-input v-model="forms.create_user_name" disabled placeholder="请选择走访对象" @click="toWalkObject" />
|
||||
|
||||
<u-icon name="arrow-right" color="#CCCCCC" style="position: absolute; top: 25px; right: 30px"></u-icon>
|
||||
</u-form-item>
|
||||
|
||||
<u-form-item label="现实状态" prop="reality" style="position: relative">
|
||||
<u-input v-model="forms.reality" disabled placeholder="请选择走访对象" @click="showStstus = true" />
|
||||
<u-input v-model="forms.reality" disabled placeholder="请选择走访慰问对象" @click="showStstus = true" />
|
||||
|
||||
<!-- :disabled="!forms.object" -->
|
||||
<u-select v-model="showStstus" :list="$dict.getDict('realityStatus')" value-name="dictValue" label-name="dictName" @confirm="realityStstus"></u-select>
|
||||
|
||||
<u-icon name="arrow-right" color="#CCCCCC" style="position: absolute; top: 25px; right: 30px"></u-icon>
|
||||
@@ -48,7 +44,7 @@
|
||||
<AiBack></AiBack>
|
||||
</div>
|
||||
|
||||
<component v-else :is="comp" :params="params"></component>
|
||||
<component v-else :is="comp" :paramss="params" @back="backlist"></component>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -72,7 +68,8 @@ export default {
|
||||
show: false,
|
||||
forms: {
|
||||
areaId: '',
|
||||
application: '',
|
||||
optionId: '',
|
||||
create_user_name: '',
|
||||
reality: '',
|
||||
realityValue: '',
|
||||
title: '',
|
||||
@@ -80,7 +77,6 @@ export default {
|
||||
images: [],
|
||||
},
|
||||
showAreaId: false,
|
||||
showObject: false,
|
||||
showStstus: false,
|
||||
flag: false,
|
||||
addList: true,
|
||||
@@ -95,11 +91,7 @@ export default {
|
||||
this.getDetail()
|
||||
})
|
||||
},
|
||||
mounted() {
|
||||
this.$on('black', (data) => {
|
||||
console.log(data)
|
||||
})
|
||||
},
|
||||
mounted() {},
|
||||
methods: {
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appvisitvondolence/queryDetailById?id=${this.params.id}`).then((res) => {
|
||||
@@ -107,7 +99,6 @@ export default {
|
||||
this.forms = res.data
|
||||
this.forms.realityValue = res.data.reality
|
||||
this.forms.reality = this.$dict.getLabel('realityStatus', res.data.reality)
|
||||
|
||||
if (res.data.images) {
|
||||
this.forms.images = JSON.parse(res.data.images || '[]')
|
||||
}
|
||||
@@ -121,9 +112,9 @@ export default {
|
||||
|
||||
this.$refs.uForm.validate((valid) => {
|
||||
if (valid) {
|
||||
// if (!this.forms.application) {
|
||||
// return this.$u.toast('请选择走访对象')
|
||||
// }
|
||||
if (!this.forms.create_user_name) {
|
||||
return this.$u.toast('请选择走访慰问对象')
|
||||
}
|
||||
if (!this.forms.title) {
|
||||
return this.$u.toast('请输入入户走访事项')
|
||||
}
|
||||
@@ -140,8 +131,9 @@ export default {
|
||||
this.$http
|
||||
.post(`/app/appvisitvondolence/addOrUpdate`, {
|
||||
areaId: this.forms.areaId,
|
||||
applicationId: '02fcf19c81154f6ea9560d9a9deee9f4',
|
||||
optionId: '4703806718f842a98a28df554c6aa6b2',
|
||||
applicationId: this.forms.applicationId,
|
||||
name: this.forms.create_user_name,
|
||||
optionId: this.forms.applicationId,
|
||||
reality: this.forms.realityValue ? this.forms.realityValue : this.forms.reality,
|
||||
title: this.forms.title,
|
||||
description: this.forms.description,
|
||||
@@ -174,6 +166,14 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
backlist(e) {
|
||||
console.log(e.item)
|
||||
this.forms.create_user_name = e.item.create_user_name
|
||||
this.forms.applicationId = e.appId
|
||||
this.forms.optionId = e.item.id
|
||||
this.addList = true
|
||||
},
|
||||
|
||||
realityStstus(e) {
|
||||
this.forms.reality = e[0].label
|
||||
this.forms.realityValue = e[0].value
|
||||
@@ -182,7 +182,7 @@ export default {
|
||||
toWalkObject() {
|
||||
this.addList = false
|
||||
this.comp = 'walkObject'
|
||||
this.params = 111
|
||||
this.paramss = 111
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user