| | |
| | | </view> |
| | | <view class="basic-info"> |
| | | |
| | | <u-form-item @click="showList.relation = true" class="form-item" labelWidth="100" label="租客关系:" required |
| | | prop="type"> |
| | | <u--input border="none" v-model="nameList.relation" disabled disabledColor="#ffffff" |
| | | placeholder="请选择租客关系"> |
| | | |
| | | |
| | | <u-form-item @click="showSelectBus(dataList.relation, '租客关系', 'relationName','relation')" |
| | | class="form-item" labelWidth="100" label="租客关系" required prop="type"> |
| | | <u--input border="none" v-model="relationName" disabled disabledColor="#ffffff" placeholder="请选择"> |
| | | </u--input> |
| | | <u-icon slot="right" name="arrow-right"></u-icon> |
| | | </u-form-item> |
| | | |
| | | <u-form-item @click="typeShow = true" class="form-item" labelWidth="100" label="事件类型:" required |
| | | <u-form-item @click="showSelectBus(dataList.houseType, '房屋状态', 'houseTypeName','houseType')" |
| | | class="form-item" labelWidth="100" label="房屋状态:" required prop="type"> |
| | | <u--input border="none" v-model="houseTypeName" disabled disabledColor="#ffffff" placeholder="请选择"> |
| | | </u--input> |
| | | <u-icon slot="right" name="arrow-right"></u-icon> |
| | | </u-form-item> |
| | | |
| | | |
| | | <u-form-item @click="showSelectBus(dataList.rentalUse, '租房用途', 'rentalUseName','rentalUse')" |
| | | class="form-item" labelWidth="100" label="租房用途:" required prop="type"> |
| | | <u--input border="none" v-model="rentalUseName" disabled disabledColor="#ffffff" placeholder="请选择"> |
| | | </u--input> |
| | | <u-icon slot="right" name="arrow-right"></u-icon> |
| | | </u-form-item> |
| | | |
| | | <u-form-item @click="rentTimeShow = true" class="form-item" labelWidth="100" label="租房时间:" required |
| | | prop="type"> |
| | | <u--input border="none" v-model="typeName" disabled disabledColor="#ffffff" placeholder="请选择事件类型"> |
| | | <u--input border="none" v-model="form.rentTime" disabled disabledColor="#ffffff" placeholder="请选择"> |
| | | </u--input> |
| | | <u-icon slot="right" name="arrow-right"></u-icon> |
| | | </u-form-item> |
| | |
| | | </u-form> |
| | | |
| | | |
| | | <!-- 租客关系下拉框 --> |
| | | <my-select v-if="showList.relation" :show="showList.relation" v-model="form.relation" type="radio" |
| | | popupTitle="请选择租客关系" :dataLists="dataList.relation" @cancel="showList.relation = false"> |
| | | </my-select> |
| | | |
| | | <!-- 事件类型下拉框 --> |
| | | <select-bus v-if="typeShow" :show="typeShow" v-model="form[selectBusModel]" type="radio" |
| | | :popupTitle="selectBusTitle" :dataLists="selectBusList" @cancel="typeShow = false" @submit="typeSelect"> |
| | | </select-bus> |
| | | <!--出租时间选择--> |
| | | <u-datetime-picker :show="rentTimeShow" v-model="form.rentTime" mode="date"></u-datetime-picker> |
| | | |
| | | |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import selectBus from "@/components/my-components/selectBus.vue" |
| | | import uploadMixin from "@/mixin/uploadMixin"; |
| | | export default { |
| | | mixins: [uploadMixin], |
| | | components: { |
| | | selectBus |
| | | }, |
| | | data() { |
| | | return { |
| | | form: { |
| | | relation: "" |
| | | relation: "", |
| | | houseTyep: "", |
| | | rentTime: "", |
| | | }, |
| | | showList: { |
| | | relation: false |
| | | }, |
| | | nameList: { |
| | | relation: "" |
| | | }, |
| | | rules: {}, |
| | | rentTimeShow: false, |
| | | |
| | | relationName: "", |
| | | houseTypeName: "", |
| | | rentalUseName: "", |
| | | dataList: { |
| | | relation: [] |
| | | } |
| | | relation: [{ |
| | | name: "同一户", |
| | | value: "1" |
| | | }, |
| | | { |
| | | name: "不同户", |
| | | value: "2" |
| | | } |
| | | ], |
| | | houseType: [{ |
| | | name: "部分出租", |
| | | value: "1" |
| | | }, |
| | | { |
| | | name: "全部出租", |
| | | value: "2" |
| | | } |
| | | ], |
| | | rentalUse: [{ |
| | | name: "仓库", |
| | | value: "1" |
| | | }, |
| | | { |
| | | name: "办公", |
| | | value: "2" |
| | | }, |
| | | { |
| | | name: "商用", |
| | | value: "3" |
| | | }, |
| | | { |
| | | name: "居住", |
| | | value: "4" |
| | | } |
| | | ] |
| | | }, |
| | | selectBusList: [], |
| | | selectBusTitle: '', |
| | | selectBusModel: '', |
| | | selectBusKey: '', |
| | | typeShow: false |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | |
| | | showSelectBus(data, title, model, key) { |
| | | this.selectBusList = data |
| | | this.selectBusTitle = title |
| | | this.selectBusModel = model |
| | | this.selectBusKey = key |
| | | this.typeShow = true |
| | | }, |
| | | //类型选择确认 |
| | | typeSelect(item) { |
| | | this[this.selectBusModel] = item.name |
| | | this.form[this.selectBusKey] = item.value |
| | | this.typeShow = !this.typeShow |
| | | }, |
| | | } |
| | | } |
| | | </script> |