Blame view

src/views/sqcx/jtfc/components/addjtfc.vue 4.86 KB
任超 committed
1
<template>
任超 committed
2
  <dialogBox title="家庭房产查询" @closeDialog="closeDialog" width="70%" height="700" :isButton="false" v-model="myValue">
任超 committed
3 4 5
    <div class="jtfccx-edit">
      <div class="jtfccx-edit-con">
        <b class="title">申请信息</b>
任超 committed
6
        <el-form :model="ruleForm" label-width="120px">
任超 committed
7
          <el-row>
任超 committed
8 9
            <el-col :span="8">
              <el-form-item label="查询用途" label-width="90px">
jiaozeping@pashanhoo.com committed
10
                <el-input v-model="ruleForm.cxyt" class="width200px"></el-input>
任超 committed
11 12
              </el-form-item>
            </el-col>
任超 committed
13 14 15
            <el-col :span="16">
              <el-form-item label="与产权人的关系">
                <el-radio-group v-model="ruleForm.ycyrgx">
任超 committed
16
                  <el-radio :label="1">房屋权利人</el-radio>
任超 committed
17 18
                  <el-radio :label="2">产权利害关系人</el-radio>
                  <el-radio :label="3">委托人</el-radio>
任超 committed
19 20 21 22 23
                </el-radio-group>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
jiaozeping@pashanhoo.com committed
24 25
        <personInfoTable @getInfoList="handleGetSqList" :dataList="sqdataList" />

任超 committed
26
        <b class="title">权利人</b>
任超 committed
27
        <personInfoTable @getInfoList="handleGetQlList" :dataList="qldataList" />
任超 committed
28
        <div class="submit-button">
任超 committed
29 30
          <el-button type="primary" @click="queryChick">查询</el-button>
          <el-button @click="resetClick">重置</el-button>
任超 committed
31
        </div>
任超 committed
32
        <b class="title" v-show="isSearch">查询结果</b>
任超 committed
33 34
        <lb-table :column="searchData.columns" v-if="isSearch" :data="searchData.data" :maxHeight="200" heightNumSetting
          :pagination="false">
任超 committed
35 36 37
        </lb-table>
      </div>

任超 committed
38
      <div class="submit-button" v-show="isSearch" style="padding-bottom:20px">
任超 committed
39 40
        <el-button type="primary" v-if="searchData.data.length > 0">房产结果打印(1)</el-button>
        <el-button type="primary" v-else>无房证明打印(1)</el-button>
任超 committed
41 42
        <el-button @click="closeDialog">关闭</el-button>
      </div>
任超 committed
43 44 45 46 47
    </div>
  </dialogBox>
</template>

<script>
任超 committed
48
import personInfoTable from '@/views/components/personInfoTable'
任超 committed
49
import { addJtfcCxjgXx } from '@/api/sqcx'
50 51
import { datas, sendThis } from "./addjtfcdata";

任超 committed
52 53
export default {
  components: {
任超 committed
54
    personInfoTable
任超 committed
55 56 57 58
  },
  props: {
    value: { type: Boolean, default: false },
  },
任超 committed
59
  mounted () {
60 61
    sendThis(this);
  },
任超 committed
62 63
  data () {
    return {
任超 committed
64
      myValue: this.value,
任超 committed
65 66
      ruleForm: {
        cxyt: '',
蔡俊立 committed
67 68
        ycyrgx: 1,
        cxlx: '1' //查询类型 1:房产查询 2:登记簿查询
任超 committed
69
      },
任超 committed
70
      isSearch: false,
任超 committed
71 72 73 74
      dataList: [{
        sqrxm: '',
        sqrzjlxbm: '',
        sqrzjhm: '',
任超 committed
75 76
        lxdh: '',
        inputErr: false
任超 committed
77
      }],
任超 committed
78
      sqdataList: [],
任超 committed
79
      qldataList: [],
任超 committed
80 81 82 83 84
      options: [{
        name: '1',
        value: 1
      }],

85 86 87
      searchData: {
        columns: datas.columns(),
        data: [],
任超 committed
88
      },
89

任超 committed
90
      addJtfc: {
任超 committed
91
        djSqcxDO: {},
任超 committed
92 93
        sqxx: [],
        qlrxx: [],
任超 committed
94 95 96
      }
    }
  },
任超 committed
97 98 99
  watch: {
    value (val) {
      this.myValue = val
任超 committed
100 101
      this.qldataList = _.cloneDeep(this.dataList)
      this.sqdataList = _.cloneDeep(this.dataList)
任超 committed
102 103
      this.addJtfc.sqxx = _.cloneDeep(this.dataList)
      this.addJtfc.qlrxx = _.cloneDeep(this.dataList)
任超 committed
104
    },
任超 committed
105
    'ruleForm.ycyrgx' (val) {
任超 committed
106
      if (val != 1) {
任超 committed
107
        this.qldataList = _.cloneDeep(this.dataList)
任超 committed
108 109 110 111
        this.addJtfc.qlrxx = _.cloneDeep(this.dataList)
      } else {
        this.qldataList = this.addJtfc.sqxx
        this.addJtfc.qlrxx = this.addJtfc.sqxx
任超 committed
112 113
      }
    }
任超 committed
114
  },
任超 committed
115 116 117 118
  methods: {
    closeDialog () {
      this.$emit('input', false)
    },
任超 committed
119
    handleGetSqList (val) {
任超 committed
120
      if (!_.isEqual(val, this.dataList) && this.ruleForm.ycyrgx == 1) {
任超 committed
121
        this.qldataList = val
任超 committed
122 123 124 125 126
        this.addJtfc.qlrxx = val
      } else
        this.addJtfc.sqxx = val
    },
    handleGetQlList (val) {
任超 committed
127
      if (this.ruleForm.ycyrgx != 1) {
任超 committed
128
        this.addJtfc.qlrxx = val
任超 committed
129 130
      }
    },
任超 committed
131
    queryChick () {
任超 committed
132
      this.addJtfc.djSqcxDO = { ...this.ruleForm }
任超 committed
133
      addJtfcCxjgXx(this.addJtfc).then(res => {
134
        this.searchData.data = res.result;
任超 committed
135
        console.log(res);
任超 committed
136
        this.isSearch = true
任超 committed
137 138
      })
    },
139
    resetClick () {
任超 committed
140 141
      this.qldataList = _.cloneDeep(this.dataList)
      this.sqdataList = _.cloneDeep(this.dataList)
任超 committed
142
    },
jiaozeping@pashanhoo.com committed
143 144 145
    handleRead (row) { },

    //抵押
任超 committed
146
    dyClick () {
jiaozeping@pashanhoo.com committed
147 148 149 150

    },

    //查封
任超 committed
151
    cfClick () {
jiaozeping@pashanhoo.com committed
152 153

    }
任超 committed
154 155 156 157 158
  }
}
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
jiaozeping@pashanhoo.com committed
159
@import "~@/styles/public.scss";
任超 committed
160

任超 committed
161 162 163 164 165 166 167
.title {
  padding-bottom: 10px;
  margin-bottom: 10px;
  display: block;
  border-bottom: 1px solid $borderColor;
}

任超 committed
168 169 170 171 172
.jtfccx-edit {
  @include flex;
  flex-direction: column;
  overflow-y: hidden;
  max-height: 87vh;
任超 committed
173
  padding: 0 2px;
任超 committed
174 175 176 177 178 179 180 181 182 183 184 185 186

  .jtfccx-edit-con {
    flex: 1;
    height: 100%;
    overflow-y: scroll;
  }

  .submit-button {
    text-align: center;
    height: 52px;
    padding-top: 10px;
    background-color: #fff;
  }
任超 committed
187 188
}
</style>