Blame view

src/views/bdcsj/jsydzjdsyq/index.vue 5.72 KB
任超 committed
1
<template>
1  
jiaozeping@pashanhoo.com committed
2
  <div class="jsydzjdsyq from-clues">
任超 committed
3
    <div class="from-clues-header">
4
      <el-form ref="form" :model="form" label-width="120px">
‘jikai@pashanhoo.com’ committed
5
        <el-form-item v-if="BASE_API.THEME=='jg'">
任超 committed
6 7
          <Breadcrumb />
        </el-form-item>
xiaomiao committed
8
        <el-row class="mb-5">
9
          <el-col :span="6">
10
            <el-form-item label="行政区">
任超 committed
11 12 13
              <el-select
                v-model="$store.state.user.userInfo.grade === 'county' ? form.XZQDM = $store.state.user.userInfo.areaCode : form.XZQDM"
                class="width100" clearable placeholder="行政区" :disabled="$store.state.user.userInfo.grade === 'county'">
14
                <el-option v-for="item in dicData['A20']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
15 16
                </el-option>
              </el-select>
任超 committed
17 18
            </el-form-item>
          </el-col>
19
          <el-col :span="6">
20
            <el-form-item label="权属状态">
任超 committed
21
              <el-select class="width100" v-model="form.QSZT" clearable placeholder="权属状态">
22
                <el-option v-for="item in dicData['A22']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
任超 committed
23 24 25 26
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
27 28
          <el-col :span="6">
            <el-form-item label="坐落">
任超 committed
29
              <el-input v-model="form.ZL" clearable placeholder="坐落"></el-input>
30 31 32 33
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="权利人" label-width="80px">
任超 committed
34
              <el-input v-model="form.QLR" clearable placeholder="权利人"></el-input>
35
            </el-form-item>
36 37 38 39
          </el-col>
        </el-row>
        <el-row class="mt-10">
          <el-col :span="6">
任超 committed
40
            <el-form-item label="登记类型">
41
              <el-select v-model="form.DJLX" clearable class="width100" ref="selectlandDJ"
42
                @visible-change="isShowSelectOptions" placeholder="登记类型">
43
                <el-option v-for="item in dicData['A21']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
任超 committed
44 45 46 47
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
48 49
          <el-col :span="6">
            <el-form-item label="不动产权证号" label-width="120px">
任超 committed
50
              <el-input v-model="form.BDCQZH" clearable placeholder="不动产权证号"></el-input>
任超 committed
51 52
            </el-form-item>
          </el-col>
任超 committed
53 54 55 56 57 58
          <el-col :span="6">
            <el-form-item label="证件号">
              <el-input v-model="form.ZJH" clearable placeholder="证件号"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6" class="btnColRight">
yangwei committed
59
            <btn nativeType="cz" @click="resetForm">重置</btn>
任超 committed
60
            <btn nativeType="cx" @click="handleSearch">查询</btn>
任超 committed
61 62 63 64 65 66 67 68 69 70
          </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
71
    <dataDetails ref="editLog" :title="title" :tabsActiveName="'qlfQlJsydsyq'" />
任超 committed
72 73 74 75 76 77
  </div>
</template>

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

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