Lou
2024-03-22 f3fbf923a46e76947ad2f2344e50143f5b5d8705
subPackage/reside/edit.vue
@@ -46,6 +46,12 @@
      getResideApplyDetail,
      updateResideApply
   } from "@/api/reside/reside.js"
   import {
      getHouseholdDetail,
      getHouseholdLists
   } from "@/api/house/household.js"
   export default {
      data() {
         return {
@@ -113,6 +119,10 @@
         } else {
            this.$set(this.info, "houseCode", uni.getStorageSync("siteInfo").houseCode)
         }
         this.getHouseholdList();
         this.getHouseholdInfo()
      },
      onReady() {
@@ -133,9 +143,37 @@
            })
         },
         getHouseholdList() {
            getHouseholdLists({
               houseCode: this.info.houseCode,
               relationship: 1
            }).then(res => {
               console.log(res)
            })
         },
         //获取业主信息
         getHouseholdInfo() {
            getHouseholdDetail({
               houseCode: this.info.houseCode,
               associatedUserId: uni.getStorageSync("userInfo").user_id
            }).then(res => {
               console.log(res)
            })
         },
         sumitInfo() {
            this.$refs.form.validate().then(valid => {
               if (this.id) {
               if (this.isEdit) {
                  this.updateInfoRequest();
               } else {
                  this.addInfoRequst();