Blame view

src/views/bdcsj/ygdj/index.vue 5.18 KB
任超 committed
1
<template>
任超 committed
2
  <div class="from-clues">
任超 committed
3
    <div class="from-clues-header">
任超 committed
4
      <el-form ref="form" :model="form" label-width="110px">
‘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">
任超 committed
9
          <el-col :span="6">
任超 committed
10
            <el-form-item label="行政区" label-width="106px">
任超 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'">
任超 committed
14 15 16 17 18
                <el-option v-for="item in dicData['A20']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
任超 committed
19
          <el-col :span="6">
任超 committed
20
            <el-form-item label="不动产权证号">
任超 committed
21
              <el-input v-model="form.BDCQZH" clearable placeholder="不动产权证号"></el-input>
任超 committed
22 23
            </el-form-item>
          </el-col>
任超 committed
24
          <el-col :span="6">
1  
jiaozeping@pashanhoo.com committed
25
            <el-form-item label="业务号">
任超 committed
26
              <el-input v-model="form.YWH" clearable placeholder="业务号"></el-input>
任超 committed
27 28
            </el-form-item>
          </el-col>
任超 committed
29
          <el-col :span="6">
任超 committed
30
            <el-form-item label="预告登记种类" label-width="106px">
任超 committed
31
              <el-select v-model="form.YGDJZL" clearable ref="selectnoticeRegQL" class="width100"
32
                @visible-change="isShowSelectOptions" placeholder="预告登记种类">
任超 committed
33 34 35 36 37
                <el-option v-for="item in dicData['A29']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
任超 committed
38 39
        </el-row>
        <el-row class="mt-10">
任超 committed
40
          <el-col :span="6">
任超 committed
41
            <el-form-item label="登记类型">
42
              <el-select v-model="form.DJLX" clearable class="width100" placeholder="登记类型">
任超 committed
43
                <el-option v-for="item in dicData['A21']" :key="item.value" :label="item.label" :value="item.value">
任超 committed
44 45 46 47
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
任超 committed
48
          <el-col :span="6">
任超 committed
49
            <el-form-item label="不动产单元号" label-width="105px">
任超 committed
50
              <el-input v-model="form.BDCDYH" clearable placeholder="不动产单元号"></el-input>
任超 committed
51 52
            </el-form-item>
          </el-col>
任超 committed
53 54 55 56 57
          <el-col :span="6">
            <el-form-item label="证件号">
              <el-input v-model="form.ZJH" clearable placeholder="证件号"></el-input>
            </el-form-item>
          </el-col>
任超 committed
58
          <el-col :span="6" class="btnColRight">
任超 committed
59
            <btn nativeType="cz" @click="resetForm">重置</btn>
任超 committed
60
            <btn nativeType="cx" @click="handleSearch">查询</btn>
任超 committed
61 62 63 64 65
          </el-col>
        </el-row>
      </el-form>
    </div>
    <div class="from-clues-content">
任超 committed
66 67 68
      <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">
任超 committed
69 70
      </lb-table>
    </div>
任超 committed
71
    <!-- 编辑 -->
任超 committed
72
    <dataDetails ref="editLog" title="预告登记" :tabsActiveName="'qlfQlYgdj'" />
任超 committed
73 74 75 76 77 78
  </div>
</template>

<script>
// 预告登记
import data from "./data"
yangwei committed
79
import qlfQlYgdj from '@/api/qlfQlYgdj'
任超 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: "ygdj",
任超 committed
84 85 86 87 88 89 90
  mixins: [tableMixin],
  components: {
    treeSelect,
  },
  data () {
    return {
      form: {
任超 committed
91
        XZQDM: '',
任超 committed
92 93
        QSZT: '',
        BDCQZH: '',
任超 committed
94
        YWH: '',
任超 committed
95

任超 committed
96 97 98
        YGDJZL: '',
        DJLX: '',
        BDCDYH: '',
任超 committed
99
        ZJH: '',
任超 committed
100 101 102 103 104 105 106 107 108 109 110
        currentPage: 1
      },
      tableData: {
        columns: [{
          label: '序号',
          type: 'index',
          width: '50',
          index: this.indexMethod,
        }].concat(data.columns()).concat([
          {
            label: "操作",
任超 committed
111
            width: 80,
任超 committed
112 113 114 115
            render: (h, scope) => {
              return (
                <div>
                  <el-button
任超 committed
116 117
                    type="text"
                    class='btnColor'
任超 committed
118
                    onClick={() => { this.handleEdit(scope.row) }}
任超 committed
119
                  >
任超 committed
120
                    详情
任超 committed
121 122
                  </el-button>
                </div>
任超 committed
123 124 125
              )
            }
          }
任超 committed
126 127 128 129 130 131 132 133 134
        ]),
        data: []
      },
      pageData: {
        total: 0,
        pageSize: 15,
        current: 1,
      },
      diaData: null,
任超 committed
135
      bsmSjsb: ''
任超 committed
136 137 138 139 140 141 142 143 144 145 146
    }
  },
  methods: {
    // 是否显示下拉框
    isShowSelectOptions (e) {
      if (!e) this.$refs.selectnoticeRegQL.blur()
      if (!e) this.$refs.selectnoticeRegDJ.blur()
    },
    async featchData () {
      try {
        let { result: { list, total, pages: pageSize, pageNum: current }
yangwei committed
147
        } = await qlfQlYgdj.getQlfQlYgdjList(this.form)
任超 committed
148 149 150 151 152 153 154 155 156 157 158 159
        this.tableData.data = list
        this.pageData = {
          pageSize,
          current,
          total
        }
      } catch (error) {
        this.$refs.msg.messageShow()
      }
    }
  }
}
任超 committed
160
</script>