Blame view

src/views/sqcx/jtfc/components/addjtfc.vue 4.89 KB
任超 committed
1
<template>
2
  <dialogBox title="家庭房产查询" @closeDialog="closeDialog" width="90%" :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>
27
        <personInfoTable @getInfoList="handleGetQlList" :dataList="qldataList"  />
任超 committed
28
        <div class="submit-button">
29 30
          <el-button type="primary"  @click="queryChick()">查询</el-button>
          <el-button  @click="resetClick()">重置</el-button>
任超 committed
31 32
        </div>
        <b class="title">查询结果</b>
33
        <!-- <p>查询编号:{{cxbh}}</p> -->
34
        <lb-table :column="searchData.columns" border :data="searchData.data" :maxHeight="200" heightNumSetting
任超 committed
35
          :pagination="false">
任超 committed
36 37 38 39
        </lb-table>
      </div>

      <div class="submit-button" style="padding-bottom:20px">
任超 committed
40 41
        <el-button type="primary">无房证明打印(1)</el-button>
        <el-button type="primary">房产结果打印(1)</el-button>
任超 committed
42 43
        <el-button @click="closeDialog">关闭</el-button>
      </div>
任超 committed
44 45 46 47 48
    </div>
  </dialogBox>
</template>

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

任超 committed
53 54
export default {
  components: {
任超 committed
55
    personInfoTable
任超 committed
56 57 58 59
  },
  props: {
    value: { type: Boolean, default: false },
  },
60 61 62 63
  mounted() {
    sendThis(this);
  },

任超 committed
64 65
  data () {
    return {
任超 committed
66
      myValue: this.value,
任超 committed
67 68
      ruleForm: {
        cxyt: '',
蔡俊立 committed
69 70
        ycyrgx: 1,
        cxlx: '1' //查询类型 1:房产查询 2:登记簿查询
任超 committed
71
      },
任超 committed
72 73 74 75
      dataList: [{
        sqrxm: '',
        sqrzjlxbm: '',
        sqrzjhm: '',
任超 committed
76 77
        lxdh: '',
        inputErr: false
任超 committed
78
      }],
任超 committed
79
      sqdataList: [],
任超 committed
80
      qldataList: [],
任超 committed
81 82 83 84 85
      options: [{
        name: '1',
        value: 1
      }],

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

任超 committed
91
      addJtfc: {
任超 committed
92
        djSqcxDO: {},
任超 committed
93 94
        sqxx: [],
        qlrxx: [],
任超 committed
95 96 97
      }
    }
  },
任超 committed
98 99 100
  watch: {
    value (val) {
      this.myValue = val
任超 committed
101 102
      this.qldataList = _.cloneDeep(this.dataList)
      this.sqdataList = _.cloneDeep(this.dataList)
任超 committed
103 104
      this.addJtfc.sqxx = _.cloneDeep(this.dataList)
      this.addJtfc.qlrxx = _.cloneDeep(this.dataList)
任超 committed
105
    },
任超 committed
106
    'ruleForm.ycyrgx' (val) {
任超 committed
107
      if (val != 1) {
任超 committed
108
        this.qldataList = _.cloneDeep(this.dataList)
任超 committed
109 110 111 112
        this.addJtfc.qlrxx = _.cloneDeep(this.dataList)
      } else {
        this.qldataList = this.addJtfc.sqxx
        this.addJtfc.qlrxx = this.addJtfc.sqxx
任超 committed
113 114
      }
    }
任超 committed
115
  },
任超 committed
116 117 118 119
  methods: {
    closeDialog () {
      this.$emit('input', false)
    },
任超 committed
120
    handleGetSqList (val) {
任超 committed
121
      if (!_.isEqual(val, this.dataList) && this.ruleForm.ycyrgx == 1) {
任超 committed
122
        this.qldataList = val
任超 committed
123 124 125 126 127
        this.addJtfc.qlrxx = val
      } else
        this.addJtfc.sqxx = val
    },
    handleGetQlList (val) {
任超 committed
128
      if (this.ruleForm.ycyrgx != 1) {
任超 committed
129
        this.addJtfc.qlrxx = val
任超 committed
130 131
      }
    },
132
    queryChick () {      
133
      debugger;
任超 committed
134
      this.addJtfc.djSqcxDO = { ...this.ruleForm }
jiaozeping@pashanhoo.com committed
135 136 137 138
      // this.$message({
      //     type: 'success',
      //     message: '删除成功!'
      //   });
139

任超 committed
140
      addJtfcCxjgXx(this.addJtfc).then(res => {
141
        this.searchData.data = res.result;
任超 committed
142
        console.log(res);
任超 committed
143 144
      })
    },
145
    resetClick () {
任超 committed
146 147
      this.qldataList = _.cloneDeep(this.dataList)
      this.sqdataList = _.cloneDeep(this.dataList)
任超 committed
148
    },
jiaozeping@pashanhoo.com committed
149 150 151 152 153 154 155 156 157 158 159
    handleRead (row) { },

    //抵押
    dyClick(){

    },

    //查封
    cfClick(){

    }
任超 committed
160 161 162 163 164
  }
}
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
jiaozeping@pashanhoo.com committed
165
@import "~@/styles/public.scss";
任超 committed
166 167 168 169 170 171 172
.title {
  padding-bottom: 10px;
  margin-bottom: 10px;
  display: block;
  border-bottom: 1px solid $borderColor;
}

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

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

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