Blame view

src/views/business-info/fdcqdz/index.vue 5.36 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
        <el-row>
6
          <el-col :span="6">
7 8 9
            <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">
10 11
                </el-option>
              </el-select>
任超 committed
12 13
            </el-form-item>
          </el-col>
14
          <el-col :span="6">
15 16
            <el-form-item label="权属状态">
              <el-select  class="width100" v-model="form.QSZT" placeholder="权属状态">
17
                <el-option v-for="item in dicData['A22']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
任超 committed
18 19 20 21
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
22 23
          <el-col :span="6">
            <el-form-item label="坐落">
24
              <el-input v-model="form.ZL" placeholder="坐落"></el-input>
25 26 27 28
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="权利人" label-width="80px">
29 30
              <el-input v-model="form.QLR" placeholder="权利人"></el-input>
            </el-form-item>
31 32 33 34
          </el-col>
        </el-row>
        <el-row class="mt-10">
          <el-col :span="6">
任超 committed
35
            <el-form-item label="登记类型">
36 37 38
              <el-select v-model="form.DJLX" clearable class="width100" ref="selectlandDJ"
                @visible-change="isShowSelectOptions" placeholder="请选择登记类型">
                <el-option v-for="item in dicData['A21']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
任超 committed
39 40 41 42
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
43 44
          <el-col :span="6">
            <el-form-item label="不动产单元号" label-width="120px">
45
              <el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input>
46 47 48 49
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="不动产权证号" label-width="120px">
50
              <el-input v-model="form.BDCQZH" placeholder="不动产权证号"></el-input>
任超 committed
51 52
            </el-form-item>
          </el-col>
53
          <el-col :span="6" class="btnColRight">
yangwei committed
54
            <btn nativeType="cz" @click="resetForm">重置</btn>
yangwei committed
55
            <btn nativeType="cx" @click="handleSubmit">查询</btn>
任超 committed
56 57 58 59 60 61 62 63 64 65
          </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>
66
    <dataDetails ref="editLog" :title="title" />
任超 committed
67 68 69 70 71 72 73
  </div>
</template>

<script>
//  房地产权(项目内多幢房屋)
import data from "./data"
import business from '@/api/business'
74
import sjsbFunctionOper from '@/api/sjsbFunctionOper'
任超 committed
75 76 77
import tableMixin from '@/mixins/tableMixin.js'
import treeSelect from '@/components/treeSelect/index.vue'
export default {
1  
jiaozeping@pashanhoo.com committed
78
  name: "fdcqdz",
任超 committed
79 80
  mixins: [tableMixin],
  components: {
81
    treeSelect
任超 committed
82 83 84 85
  },
  data () {
    return {
      form: {
86 87 88 89 90 91 92
        XZQDM: '',
        QSZT: '',
        ZL: '',
        QLR: '',
        DJLX: '',
        BDCQZH: '',
        BDCDYH: '',
任超 committed
93 94 95 96 97 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: "操作",
            width: 170,
            render: (h, scope) => {
              return (
                <div>
                  <el-button
109 110 111 112
                    type="primary"
                    onClick={() => {
                      this.handleEdit(scope.row);
                    }}
任超 committed
113
                  >
114
                    详情
任超 committed
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
                  </el-button>
                </div>
              );
            },
          },

        ]),
        data: []
      },
      pageData: {
        total: 0,
        pageSize: 15,
        current: 1,
      },
      diaData: null,
130
      bsmSjsb: ''
任超 committed
131 132 133 134 135 136 137 138 139 140 141 142
    }
  },
  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 }
1  
jiaozeping@pashanhoo.com committed
143
        } = await business.getQltFwFdcqDzList(this.form)
任超 committed
144 145 146 147 148 149 150 151
        this.tableData.data = list
        this.pageData = {
          pageSize,
          current,
          total
        }
      } catch (error) {
        this.message = error
yangwei committed
152
        // this.$refs.msg.messageShow()
任超 committed
153 154 155
      }
    },
    async handlDatadetails (index, row) {
156
      let { result: res, message } = await sjsbFunctionOper.getQltFwFdcqYzByCondition(row.BSM_SJSB)
任超 committed
157 158 159 160 161 162 163 164 165 166
      if (res != null) {
        this.diaData = res
        this.bsmSjsb = row.BSM_SJSB
        this.$store.dispatch('business/setEdit'); this.$refs.editLog.isShow()
      } else {
        this.$message(message);
      }
    }
  }
}
任超 committed
167 168 169
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
xiaomiao committed
170
</style>