lin
2024-03-22 d1a18d1d0cf5ece7713ac57f244fb5d0fb5a023c
Merge remote-tracking branch 'origin/master'
5 files modified
681 ■■■■ changed files
src/api/task/residencePermitApply.js 10 ●●●●● patch | view | raw | blame | history
src/views/place/residencePermitApply.vue 116 ●●●●● patch | view | raw | blame | history
src/views/place/tenanthold.vue 421 ●●●● patch | view | raw | blame | history
src/views/userHouse/hireInfoList.vue 65 ●●●● patch | view | raw | blame | history
src/views/userHouse/houseHoldList.vue 69 ●●●●● patch | view | raw | blame | history
src/api/task/residencePermitApply.js
@@ -33,4 +33,14 @@
    method: 'post',
    data: row
  })
}
export const remove = (ids) => {
  return request({
    url: '/api/blade-taskResidencePermitApply/taskResidencePermitApply/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}
src/views/place/residencePermitApply.vue
@@ -23,19 +23,15 @@
        </el-tag>
      </template>
      <!--   <template slot="menuLeft">
        <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出
        </el-button>
      </template> -->
      <template slot-scope="{row, size}" slot="phoneNumber">
        <el-button :size="size" type="text" @click="showStringDispose(row, 'phoneNumberflag')"
          v-text="textDispose(row, 'phoneNumberflag', 'phoneNumber')">
        </el-button>
      <template slot-scope="{row, size}" slot="minors">
        <el-tag :size="size">{{
      row.minors == 2?'是':row.minors==1?'否':''
    }}</el-tag>
      </template>
      <template slot-scope="{row, size}" slot="transactionObjectTel">
        <el-button :size="size" type="text" @click="showStringDispose(row, 'transactionObjectTelflag')"
          v-text="textDispose(row, 'transactionObjectTelflag', 'transactionObjectTel')">
      <template slot-scope="{row, size}" slot="phone">
        <el-button :size="size" type="text" @click="showStringDispose(row, 'phoneflag')"
          v-text="textDispose(row, 'phoneflag', 'phone')">
        </el-button>
      </template>
      <template slot-scope="{row, size}" slot="idCard">
@@ -62,9 +58,9 @@
<script>
  import {
    getList,
    remove,
    updateAuditing
  } from "@/api/task/residencePermitApply"
  import NProgress from 'nprogress'
  import 'nprogress/nprogress.css'
  import Qs from "qs"
  import {
@@ -138,21 +134,20 @@
          searchShow: true,
          searchMenuSpan: 3,
          menuWidth: 190,
          selection: true,
          height: "auto",
          calcHeight: 54,
          dialogWidth: 950,
          tip: false,
          // menu: false,
          border: true,
          //stripe:true,
          stripe:true,
          index: true,
          viewBtn: true,
          addBtn: false,
          editBtn: false,
          delBtn: false,
          refreshBtn: false,
          menuFixed: 'right',
          searchShowBtn: false,
          columnBtn: false,
          selection: true,
          dialogClickModal: false,
          column: [{
@@ -161,22 +156,12 @@
              label: "名称",
              prop: "name",
              searchSpan: 4,
              searchLabelWidth: 100,
              searchLabelWidth: 60,
              search: true,
              align: 'center',
              labelWidth: 110,
            },
            {
              width: 110,
              span: 12,
              label: "地址",
              prop: "address",
              searchSpan: 4,
              searchLabelWidth: 110,
              search: true,
              align: 'center',
              labelWidth: 110,
            }, {
             {
              width: 120,
              span: 12,
              label: "联系电话",
@@ -192,26 +177,7 @@
              slot: true,
              labelWidth: 110,
            },
            {
              width: 60,
              searchSpan: 4,
              searchLabelWidth: 60,
              label: "未成年",
              hide: true,
              viewDisplay: false,
              search: true,
              prop: "minors",
              type: "select",
              dicData: [{
                  label: "未成年人员",
                  value: 2
                },
                {
                  label: "全部人员",
                  value: 1
                }
              ],
            },
            {
              width: 160,
              span: 12,
@@ -224,6 +190,15 @@
              labelWidth: 110,
            },
            {
              minWidth: 150,
              span: 12,
              label: "地址",
              prop: "address",
              align: 'center',
              labelWidth: 110,
              overHidden:true,
            },
            {
              width: 110,
              span: 12,
              label: "申请事由",
@@ -234,7 +209,7 @@
            {
              width: 140,
              span: 12,
              label: "创建时间",
              label: "申请时间",
              prop: "createTime",
              align: 'center',
              labelWidth: 110,
@@ -242,8 +217,6 @@
            {
              width: 110,
              label: "所属街道",
              // hide: true,
              // search: true,
              parent: false,
              searchSpan: 4,
              prop: "streetName",
@@ -259,12 +232,36 @@
              labelWidth: 110,
            },
            {
              width: 80,
              labelWidth: 110,
              searchSpan: 3,
              searchLabelWidth: 70,
              label: "未成年",
              search: true,
              prop: "minors",
              type: "select",
              align:"center",
              dicData: [
              {
                  label: "全部",
                  value: ""
                },{
                  label: "是",
                  value: 2
                },
                {
                  label: "否",
                  value: 1
                },
              ],
            },
            {
              width: 100,
              addDisplay: false,
              editDisplay: false,
              label: '审核状态',
              prop: 'confirmFlag',
              type: 'radio',
              type: 'select',
              slot: true,
              dicData: [{
                label: '待审核',
@@ -539,12 +536,10 @@
            type: "warning",
          })
          .then(() => {
            row.isDeleted = 1
            return removeTask(row)
            return remove(row.id)
          })
          .then(() => {
            this.onLoad(this.page)
            this.$message({
              type: "success",
              message: "操作成功!",
@@ -624,15 +619,6 @@
        let values = {
          ...params,
        }
        // if (dateTime) {
        //   values = {
        //     ...params,
        //     startTime: dateTime[0],
        //     endTime: dateTime[1],
        //     ...this.query,
        //   }
        //   values.dateTime = null
        // }
        values.reportType = 2
        this.loading = true
        getList(page.currentPage, page.pageSize, values).then((res) => {
src/views/place/tenanthold.vue
@@ -6,15 +6,20 @@
      @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
      @refresh-change="refreshChange" @on-load="onLoad">
      <template slot-scope="{row, size}" slot="menu">
      <!-- <template slot-scope="{row, size}" slot="menu">
        <el-button :size="size" type="text" icon="el-icon-circle-plus-outline" v-if="permission.household_manager"
          @click="manageLabel(row)">标签
        </el-button>
      </template>
      </template> -->
      <template slot-scope="{row, size}" slot="phoneNumber">
        <el-button :size="size" type="text" @click="showStringDispose(row, 'phoneNumberflag')">
          {{ textDispose(row, 'phoneNumberflag', 'phoneNumber') }}
        </el-button>
      </template>
      <template slot-scope="{row, size}" slot="minors">
        <el-tag :size="size">{{
      row.minors == 2?'是':row.minors==1?'否':''
    }}</el-tag>
      </template>
      <template slot-scope="{row, size}" slot="idCard">
        <el-button :size="size" type="text" @click="showStringDispose(row, 'idCardflag')"
@@ -36,42 +41,14 @@
      </span>
    </el-dialog>
    <el-dialog title="标签管理" append-to-body :visible.sync="labelFlag" center width="600px">
      <div v-for="(item, index) in labelData" :key="index">
        <el-row>
          <el-col :span="24">
            <div>
              <el-divider content-position="left">{{ item.name }}</el-divider>
            </div>
          </el-col>
        </el-row>
        <div class="grid-container2" v-if="item.children">
          <div class="grid-item" :style="{ backgroundColor: getColor(item2.color) }"
            v-for="(item2, index2) in item.children" @click="changLabel(item2)" :key="index2">
            {{ item2.name }}
          </div>
        </div>
      </div>
    </el-dialog>
    <el-dialog :title="'编辑标签   ' + currentLabel.name" append-to-body :visible.sync="editLabelFlge" width="655px">
    <!-- <el-dialog :title="'编辑标签   ' + currentLabel.name" append-to-body :visible.sync="editLabelFlge" width="655px">
      <avue-form :option="labelOption" v-model="labelForm" :submit="onsubmit">
      </avue-form>
      <span slot="footer" class="dialog-footer">
        <el-button size="small" @click="editLabelFlge = false">取 消</el-button>
        <el-button size="small" type="primary" @click="onsubmit">确 定</el-button>
      </span>
    </el-dialog>
    <el-dialog title="用户数据导入" append-to-body :visible.sync="excelBox" width="555px">
      <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter">
        <template slot="excelTemplate">
          <el-button size="small" type="primary" @click="handleTemplate">
            点击下载<i class="el-icon-download el-icon--right"></i>
          </el-button>
        </template>
      </avue-form>
    </el-dialog>
    </el-dialog> -->
  </basic-container>
</template>
@@ -198,8 +175,7 @@
          searchLabelWidth: 96,
          searchShow: true,
          searchMenuSpan: 3,
          menuWidth: 280,
          menuWidth: 240,
          height: 'auto',
          calcHeight: 80,
          tip: false,
@@ -208,28 +184,10 @@
          selection: true,
          viewBtn: true,
          addBtn: true,
          dialogType: 'drawer',
          dialogType: 'dialog',
          dialogClickModal: false,
          menuFixed: 'right',
          column: [{
              label: "与业主关系",
              prop: "relationship",
              type: "select",
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=roleRelation",
              dataType: "number",
              // hide: true,
              width: 120,
              props: {
                label: "dictValue",
                value: "dictKey",
              },
              rules: [{
                required: true,
                message: "请选择与业主关系",
                trigger: "blur",
              }],
            },
          column: [
            {
              width: 110,
              label: "姓名",
@@ -243,20 +201,6 @@
                trigger: "blur",
              }],
            },
            {
              hide: true,
              label: "证件类型",
              prop: "cardType",
              type: "select",
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=cardType",
              dataType: "number",
              props: {
                label: "dictValue",
                value: "dictKey",
              },
            },
            {
              width: 160,
              display: true,
@@ -270,7 +214,6 @@
                trigger: 'blur'
              }],
            },
            {
              hide: true,
              display: false,
@@ -278,21 +221,23 @@
              label: "证件号码",
              prop: "cardNo",
            },
            {
              label: "出生日期",
              prop: "birthday",
              type: "date",
              format: "yyyy-MM-dd",
              valueFormat: "yyyy-MM-dd",
              label: "民族",
              prop: "ethnicity",
              type: "select",
              hide: true,
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=nationType",
              dataType: "number",
              props: {
                label: "dictValue",
                value: "dictKey",
              },
            },
            {
              hide: false,
              display: false,
              // display: false,
              width: 60,
              align:"center",
              label: "性别",
              prop: "gender",
              type: "select",
@@ -310,7 +255,6 @@
                }
              ],
            },
            {
              width: 120,
              label: "手机号码",
@@ -331,60 +275,13 @@
            },
            {
              label: "居住情况",
              prop: "residentialStatus",
              type: "select",
              hide: true,
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=residentialStatusType",
              dataType: "number",
              props: {
                label: "dictValue",
                value: "dictKey",
              },
            },
            {
              label: "其他联系方式",
              prop: "otherContact",
              hide: true,
              rules: [{
                validator: validatorPhone,
                trigger: 'blur'
              }],
            },
            {
              label: "是否主要联系人",
              prop: "isPrimaryContact",
              type: "select",
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=primaryContactType",
              dataType: "number",
              hide: true,
              props: {
                label: "dictValue",
                value: "dictKey",
              },
            },
            // {
            // label: "关系",
            // prop: "roleType",
            // type: "select",
            // dicUrl: "/api/blade-system/dict-biz/dictionary?code=roleType",
            // dataType: "number",
            //     props: {
            //         label: "dictValue",
            //         value: "dictKey",
            //     },
            // },
            {
              width: 220,
              minWidth: 150,
              overHidden: true,
              label: '小区名称',
              prop: "aoiName",
              search: true,
              searchSpan: 4,
              overHidden:true,
              display: false
            },
@@ -420,276 +317,43 @@
              viewDisplay: false,
              prop: "gridName",
            },
            {
              width: 156,
              overHidden: true,
              label: "地址",
              prop: "address",
              display: false
            },
            {
              hide: true,
              parent: false,
              width: 160,
              label: "籍贯地区",
              prop: "nativePlaceAdcode",
              type: "tree",
              typeformat(item, label, value) {
                return item.addressDetail
              },
              change: ({
                value,
                column,
                item,
                dic
              }) => {
                item.addressDetail = findParentOrCur(dic, item.id)
              },
              props: {
                label: 'name',
                value: 'id'
              },
              dicUrl: `/api/blade-system/region/getBaseTree`,
            },
            {
              hide: true,
              label: "户籍类型",
              prop: "residentType",
              type: "select",
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=residentType",
              dataType: "number",
              props: {
                label: "dictValue",
                value: "dictKey",
              },
            },
            {
              hide: true,
              parent: false,
              width: 160,
              label: "户籍地区",
              prop: "residentAdcode",
              type: "tree",
              typeformat(item, label, value) {
                return item.addressDetail
              },
              change: ({
                value,
                column,
                item,
                dic
              }) => {
                item.addressDetail = findParentOrCur(dic, item.id)
              },
              props: {
                label: 'name',
                value: 'id'
              },
              dicUrl: `/api/blade-system/region/getBaseTree`,
            },
            {
              label: "户籍地址",
              prop: "hukouRegistration",
              hide: true,
            },
            {
              disabled: false,
              label: "居住地区",
              prop: "homeAdcode",
              hide: true,
              type: 'select',
              props: {
                label: 'name',
                value: 'code'
              },
              dicUrl: `/api/blade-system/region/select?code=361102`,
            },
            {
              disabled: false,
              label: "现居住地",
              prop: "currentAddress",
              hide: true,
            },
            {
              width: 210,
              overHidden: true,
              label: "标签",
              prop: "householdLabelList",
              display: false
            },
            {
              label: "民族",
              prop: "ethnicity",
              type: "select",
              hide: true,
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=nationType",
              dataType: "number",
              props: {
                label: "dictValue",
                value: "dictKey",
              },
            },
            {
              label: "学历",
              prop: "education",
              type: "select",
              hide: true,
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType",
              dataType: "number",
              props: {
                label: "dictValue",
                value: "dictKey",
              },
            },
            {
              hide: true,
              width: 160,
              label: "职业类别",
              prop: "occupation"
              // hide: true,
              minWidth:150,
              overHidden:true,
            },
            {
              label: "工作单位",
              prop: "employer",
              hide: true,
            },
            {
              hide: true,
              width: 160,
              label: "工作单位地址",
              prop: "cmpyRegAddr"
            },
            {
              label: "工作状态",
              prop: "workStatus",
              type: "select",
              hide: true,
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=workStatusType",
              dataType: "number",
              props: {
                label: "dictValue",
                value: "dictKey",
              },
            },
            {
              label: "婚姻状态",
              prop: "maritalStatus",
              type: "select",
              hide: true,
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=marriageStatusType",
              dataType: "number",
              props: {
                label: "dictValue",
                value: "dictKey",
              },
            },
            {
              hide: true,
              width: 160,
              label: "宗教信仰",
              prop: "religiousBelief",
            },
            {
              hide: true,
              label: "健康状态",
              prop: "healthStatus",
              type: "select",
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=healthStatus",
              dataType: "number",
              props: {
                label: "dictValue",
                value: "dictKey",
              },
            },
            {
              disabled: true,
              hide: true,
              width: 160,
              label: "疾病名称",
              prop: "diseaseName"
            },
            {
              hide: true,
              width: 160,
              label: "外出去向",
              prop: "goOutWhere"
            },
            {
              hide: true,
              width: 160,
              label: "外出原因",
              prop: "goOutReason"
            },
            {
              hide: true,
              label: "外出时间",
              prop: "goOutTime",
              type: "date",
              format: "yyyy-MM-dd",
              valueFormat: "yyyy-MM-dd",
              width: 160,
            },
            {
              hide: true,
              width: 160,
              label: "外出详址",
              prop: "goOutAddr"
            },
            {
              label: "车牌号",
              prop: "cardNumber",
              // editDisplay:false,
              hide: true,
            },
            {
              label: "自愿者组织",
              prop: "volunteerOrg",
              hide: true,
            },
            {
              label: "备注",
              prop: "remark",
              hide: true,
            },
            {
              width: 60,
              searchSpan: 4,
              width: 80,
              // labelWidth: 110,
              searchSpan: 3,
              searchLabelWidth: 60,
              editDisplay:false,
              label: "未成年",
              search: true,
              prop: "minors",
              type: "select",
              dicData: [{
                  label: "未成年人员",
              align:"center",
              dicData: [
              {
                  label: "全部",
                  value: ""
                },{
                  label: "是",
                  value: 2
                },
                {
                  label: "全部人员",
                  label: "否",
                  value: 1
                }
                },
              ],
            },
          ]
@@ -1101,6 +765,7 @@
      },
      onLoad(page, params = {}) {
        params['relationship'] = 18
        this.loading = true
        getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
          const data = {
src/views/userHouse/hireInfoList.vue
@@ -25,7 +25,7 @@
                    <template slot-scope="{row, size}" slot="menu">
                        <el-button type="text" :size="size" icon="el-icon-edit" v-if="permission.houseRental_edit"
                            @click="showEditMoel(2,row)">编 辑
                            @click="showEditMoel(2, row)">编 辑
                        </el-button>
@@ -116,7 +116,7 @@
import retalInfo from './components/retalInfo'
export default {
    components: {retalInfo},
    components: { retalInfo },
    data() {
        return {
            roleBox: false,
@@ -193,17 +193,29 @@
                    }
                    ],
                },
                // {
                //     label: "关系",
                //     prop: "relationship",
                //     type: "select",
                //     dicUrl: "/api/blade-system/dict-biz/dictionary?code=roleRelation",
                //     dataType: "number",
                //     props: {
                //         label: "dictValue",
                //         value: "dictKey",
                //     },
                //     display: false
                // },
                {
                    label: "关系",
                    prop: "relationship",
                    label: "民族",
                    prop: "ethnicity",
                    type: "select",
                    dicUrl: "/api/blade-system/dict-biz/dictionary?code=roleRelation",
                    // hide: true,
                    dicUrl: "/api/blade-system/dict-biz/dictionary?code=nationType",
                    dataType: "number",
                    props: {
                        label: "dictValue",
                        value: "dictKey",
                    },
                    display: false
                },
                {
                    width: 220,
@@ -214,12 +226,26 @@
                    searchSpan: 4,
                    display: false
                },
                // {
                //     label: "地址",
                //     prop: "address",
                //     minWidth: 160,
                //     overHidden: true,
                //     display: false
                // },
                {
                    label: "地址",
                    prop: "address",
                    minWidth: 160,
                    label: "户籍地址",
                    prop: "hukouRegistration",
                    // hide: true,
                    minWidth: 150,
                    overHidden: true,
                    display: false
                },
                {
                    label: "工作单位",
                    prop: "employer",
                    // editDisplay:false,
                    // hide: true,
                },
                ]
            },
@@ -245,7 +271,8 @@
                        label: "房屋",
                        prop: "houseName",
                        display: false,
                        width:120
                        minWidth: 150,
                        overHidden: true,
                    },
                    {
                        label: "房屋",
@@ -592,6 +619,9 @@
            row.address = this.rowHouseHold.address
            row.housingRentalId = this.rowHouseHold.id
            row.houseCode = this.rowHouseHold.houseCode
            if (row.idCard) {
                row.cardType = 111
            }
            householdAdd(row).then(() => {
                this.initFlag = false
                this.onLoadHouseHold()
@@ -652,6 +682,9 @@
            })
        },
        houseHoldRowUpdate(row, index, done, loading) {
            if (row.idCard) {
                row.cardType = 111
            }
            householdUpdate(row).then(() => {
                this.initFlag = false
                this.onLoadHouseHold()
@@ -823,13 +856,13 @@
            })
        },
        showEditMoel(type,item) {
            if(type == 1){
        showEditMoel(type, item) {
            if (type == 1) {
                this.$refs.RetalInfo.initOpen(type)
            }else {
                this.$refs.RetalInfo.initOpen(type,item.id)
            } else {
                this.$refs.RetalInfo.initOpen(type, item.id)
            }
        },
    }
}
src/views/userHouse/houseHoldList.vue
@@ -382,29 +382,18 @@
                trigger: "blur",
              }],
            },
            // {
            // label: "关系",
            // prop: "roleType",
            // type: "select",
            // dicUrl: "/api/blade-system/dict-biz/dictionary?code=roleType",
            // dataType: "number",
            //     props: {
            //         label: "dictValue",
            //         value: "dictKey",
            //     },
            // },
            {
              width: 220,
              overHidden: true,
              label: '小区名称',
              prop: "aoiName",
              search: true,
              searchSpan: 4,
              display: false
              label: "民族",
              prop: "ethnicity",
              type: "select",
              // hide: true,
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=nationType",
              dataType: "number",
              props: {
                label: "dictValue",
                value: "dictKey",
              },
            },
            {
              width: 110,
              label: "所属街道",
@@ -415,7 +404,6 @@
              search: true,
              searchSpan: 4
            },
            {
              width: 156,
              overHidden: true,
@@ -427,7 +415,6 @@
              search: true,
              searchSpan: 4
            },
            {
              width: 110,
              overHidden: true,
@@ -437,16 +424,16 @@
              viewDisplay: false,
              prop: "gridName",
            },
            {
              width: 156,
              width: 220,
              overHidden: true,
              label: "地址",
              prop: "address",
              label: '小区名称',
              prop: "aoiName",
              search: true,
              searchSpan: 4,
              display: false
            },
            {
              hide: true,
              parent: false,
@@ -533,30 +520,18 @@
              disabled: false,
              label: "现居住地",
              prop: "currentAddress",
              hide: true,
              minWidth:150,
              overHidden:true
              // hide: true,
            },
            {
              width: 210,
              minWidth:180,
              overHidden: true,
              label: "标签",
              prop: "householdLabelList",
              display: false
              display: false,
              overHidden:true
            },
            {
              label: "民族",
              prop: "ethnicity",
              type: "select",
              hide: true,
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=nationType",
              dataType: "number",
              props: {
                label: "dictValue",
                value: "dictKey",
              },
            },
            {
              label: "学历",
              prop: "education",