Blame view

src/views/bdcsj/fdcqdz/index.vue 5.51 KB
任超 committed
1
<template>
1  
jiaozeping@pashanhoo.com committed
2
  <div class="fdcqdz from-clues">
任超 committed
3
    <div class="from-clues-header">
4
      <el-form ref="form" :model="form" label-width="120px">
任超 committed
5 6 7
        <el-form-item>
          <Breadcrumb />
        </el-form-item>
任超 committed
8
        <el-row>
9
          <el-col :span="6">
10 11 12
            <el-form-item label="行政区">
              <el-select v-model="form.XZQDM" class="width100" clearable placeholder="行政区">
                <el-option v-for="item in dicData['A20']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
13 14
                </el-option>
              </el-select>
任超 committed
15 16
            </el-form-item>
          </el-col>
17
          <el-col :span="6">
18
            <el-form-item label="权属状态">
任超 committed
19
              <el-select class="width100" v-model="form.QSZT" clearable placeholder="权属状态">
20
                <el-option v-for="item in dicData['A22']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
任超 committed
21 22 23 24
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
25 26
          <el-col :span="6">
            <el-form-item label="坐落">
任超 committed
27
              <el-input v-model="form.ZL" clearable placeholder="坐落"></el-input>
28 29 30 31
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="权利人" label-width="80px">
任超 committed
32
              <el-input v-model="form.QLR" clearable placeholder="权利人"></el-input>
33
            </el-form-item>
34 35 36 37
          </el-col>
        </el-row>
        <el-row class="mt-10">
          <el-col :span="6">
任超 committed
38
            <el-form-item label="登记类型">
39
              <el-select v-model="form.DJLX" clearable class="width100" ref="selectlandDJ"
40
                @visible-change="isShowSelectOptions" placeholder="登记类型">
41
                <el-option v-for="item in dicData['A21']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
任超 committed
42 43 44 45
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
46 47
          <el-col :span="6">
            <el-form-item label="不动产单元号" label-width="120px">
任超 committed
48
              <el-input v-model="form.BDCDYH" clearable placeholder="不动产单元号"></el-input>
49 50 51 52
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="不动产权证号" label-width="120px">
任超 committed
53
              <el-input v-model="form.BDCQZH" clearable placeholder="不动产权证号"></el-input>
任超 committed
54 55
            </el-form-item>
          </el-col>
56
          <el-col :span="6" class="btnColRight">
yangwei committed
57
            <btn nativeType="cz" @click="resetForm">重置</btn>
任超 committed
58
            <btn nativeType="cx" @click="handleSearch">查询</btn>
任超 committed
59 60 61 62 63 64 65 66 67 68
          </el-col>
        </el-row>
      </el-form>
    </div>
    <div class="from-clues-content">
      <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="pageData.total"
        @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
        :data="tableData.data">
      </lb-table>
    </div>
任超 committed
69
    <dataDetails ref="editLog" :title="title" :tabsActiveName="'qltFwFdcqDz'" />
任超 committed
70 71 72 73 74 75
  </div>
</template>

<script>
//  房地产权(项目内多幢房屋)
import data from "./data"
yangwei committed
76
import qltFwFdcqDz from '@/api/qltFwFdcqDz'
77
import sjsbFunctionOper from '@/api/sjsbFunctionOper'
任超 committed
78
import tableMixin from '@/mixins/tableMixin.js'
79
import treeSelect from '@/components/TreeSelect.vue'
任超 committed
80
export default {
1  
jiaozeping@pashanhoo.com committed
81
  name: "fdcqdz",
任超 committed
82 83
  mixins: [tableMixin],
  components: {
84
    treeSelect
任超 committed
85 86 87 88
  },
  data () {
    return {
      form: {
89 90 91 92 93 94 95
        XZQDM: '',
        QSZT: '',
        ZL: '',
        QLR: '',
        DJLX: '',
        BDCQZH: '',
        BDCDYH: '',
任超 committed
96 97 98 99 100 101 102 103 104 105 106
        currentPage: 1
      },
      tableData: {
        columns: [{
          label: '序号',
          type: 'index',
          width: '50',
          index: this.indexMethod,
        }].concat(data.columns()).concat([
          {
            label: "操作",
任超 committed
107
            width: 90,
任超 committed
108 109 110 111
            render: (h, scope) => {
              return (
                <div>
                  <el-button
112 113 114 115
                    type="primary"
                    onClick={() => {
                      this.handleEdit(scope.row);
                    }}
任超 committed
116
                  >
117
                    详情
任超 committed
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
                  </el-button>
                </div>
              );
            },
          },

        ]),
        data: []
      },
      pageData: {
        total: 0,
        pageSize: 15,
        current: 1,
      },
      diaData: null,
133
      bsmSjsb: ''
任超 committed
134 135 136 137 138 139 140 141 142 143 144 145
    }
  },
  methods: {
    // 是否显示下拉框
    isShowSelectOptions (e) {
      if (!e) this.$refs.selectmanyQL.blur()
      if (!e) this.$refs.selectmanyDJ.blur()
    },
    async featchData () {
      try {
        this.form = Object.assign(this.form, this.formData)
        let { result: { list, total, pages: pageSize, pageNum: current }
yangwei committed
146
        } = await qltFwFdcqDz.getQltFwFdcqDzList(this.form)
任超 committed
147 148 149 150 151 152 153 154
        this.tableData.data = list
        this.pageData = {
          pageSize,
          current,
          total
        }
      } catch (error) {
        this.message = error
yangwei committed
155
        // this.$refs.msg.messageShow()
任超 committed
156 157 158
      }
    },
    async handlDatadetails (index, row) {
159
      let { result: res, message } = await sjsbFunctionOper.getQltFwFdcqYzByCondition(row.BSM_SJSB)
任超 committed
160 161 162
      if (res != null) {
        this.diaData = res
        this.bsmSjsb = row.BSM_SJSB
yangwei committed
163
        this.$store.dispatch('qltFwFdcqDz/setEdit'); this.$refs.editLog.isShow()
任超 committed
164 165 166 167 168 169
      } else {
        this.$message(message);
      }
    }
  }
}
任超 committed
170 171
</script>
<style scoped lang="scss">
任超 committed
172
// @import "~@/styles/public.scss";
xiaomiao committed
173
</style>