Browse Source

Merge branch 'dev-220411' into test

shibei_master
jiangyy 3 years ago
parent
commit
087260a124
  1. 9
      src/views/components/editResi.vue
  2. 9
      src/views/components/resiForm.vue
  3. 62
      src/views/pages/caijisuccess.vue

9
src/views/components/editResi.vue

@ -75,6 +75,7 @@
<el-form-item prop="HOME_ID"> <el-form-item prop="HOME_ID">
<el-select v-model.trim="form.HOME_ID" placeholder="请选择房号" size="small" <el-select v-model.trim="form.HOME_ID" placeholder="请选择房号" size="small"
clearable :disabled="disabled" class="resi-cell-select resi-cell-select-middle" clearable :disabled="disabled" class="resi-cell-select resi-cell-select-middle"
@change="handleChangeH"
> >
<el-option <el-option
v-for="item in optionsH" v-for="item in optionsH"
@ -611,6 +612,14 @@ export default {
this.form.HOME_ID = '' this.form.HOME_ID = ''
this.getHouseList() this.getHouseList()
}, },
//
handleChangeH(val){
let item = this.optionsH.find(item => item.value === val);
if(item && item.type == '1'){
this.form.IS_TENANT = '1'
console.log('item-----', item)
} else this.form.IS_TENANT = '0'
},
handlerMuscForm () { handlerMuscForm () {
let arr = [] let arr = []
this.addList.forEach(item => { this.addList.forEach(item => {

9
src/views/components/resiForm.vue

@ -554,10 +554,11 @@ export default {
}, },
// //
handleChangeH(val){ handleChangeH(val){
let item = this.optionsH.find(item => item.value===val); let item = this.optionsH.find(item => item.value === val);
if(item){ if(item && item.type == '1'){
// this.form.IS_TENANT = '1'; this.form.IS_TENANT = '1'
} console.log('item-----', item)
} else this.form.IS_TENANT = '0'
}, },
// form // form
handleChangeForm (val) { handleChangeForm (val) {

62
src/views/pages/caijisuccess.vue

@ -76,37 +76,37 @@ export default {
let query = this.$route.query let query = this.$route.query
this.formData = query.formData this.formData = query.formData
this.formData = { // this.formData = {
shequName: '清江路社区', // shequName: '',
address: "金玉良缘1花好月圆1单元3123123金玉良缘1花好月圆1单元3123123", // address: "113123123113123123",
buildId: "1494482424728395778", // buildId: "1494482424728395778",
buildName: "花好月圆", // buildName: "",
customerId: "45687aa479955f9d06204d415238f7cc", // customerId: "45687aa479955f9d06204d415238f7cc",
homeId: "other", // homeId: "other",
homeName: "3123123", // homeName: "3123123",
houseHolderName: "张三", // houseHolderName: "",
houseType: "1", // houseType: "1",
memberList: [ // memberList: [
{ // {
customerId: "45687aa479955f9d06204d415238f7cc", // customerId: "45687aa479955f9d06204d415238f7cc",
domicilePlace: "23123", // domicilePlace: "23123",
heSuanCount: "2", // heSuanCount: "2",
idNum: "312312", // idNum: "312312",
mobile: "15111111111", // mobile: "15111111111",
name: "张三", // name: "",
}, // },
{ // {
customerId: "45687aa479955f9d06204d415238f7cc", // customerId: "45687aa479955f9d06204d415238f7cc",
domicilePlace: "123123", // domicilePlace: "123123",
heSuanCount: null, // heSuanCount: null,
idNum: "王二麻", // idNum: "",
mobile: "3123123123", // mobile: "3123123123",
name: "李四", // name: "",
} // }
] // ]
} // }
console.log(this.formData) // console.log(this.formData)
}, },

Loading…
Cancel
Save