Blame view

src/views/ywbl/ybx/ybx.vue 8.82 KB
1
<!--
2
 * @Description:
3
 * @Autor: renchao
4
 * @LastEditTime: 2023-10-27 17:19:42
5
-->
jiaozeping@pashanhoo.com committed
6 7 8 9
<template>
  <div class="from-clues">
    <!-- 表单部分 -->
    <div class="from-clues-header">
xiaomiao committed
10 11 12 13
      <el-form
        :model="queryForm"
        ref="queryForm"
        @submit.native.prevent
1  
renchao@pashanhoo.com committed
14
        label-width="100px">
jiaozeping@pashanhoo.com committed
15
        <el-row>
1  
renchao@pashanhoo.com committed
16
          <el-col :span="5">
17
            <el-form-item label="业务来源">
xiaomiao committed
18 19 20 21
              <el-select
                v-model="queryForm.ywly"
                class="width100"
                filterable
22 23
                @change="handleSelect('ywly', 'ywlymc', 'ywly')"
                @clear="handleEmpty('ywlymc')"
xiaomiao committed
24
                clearable
25
                placeholder="请选择业务来源">
xiaomiao committed
26 27 28 29
                <el-option
                  v-for="item in dictData['ywly']"
                  :key="item.dcode"
                  :label="item.dname"
30
                  :value="item.dcode">
jiaozeping@pashanhoo.com committed
31 32 33 34 35 36
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="权利类型">
xiaomiao committed
37 38
              <el-select
                v-model="queryForm.qllx"
39
                class="width100"
xiaomiao committed
40 41 42 43
                @change="handleSelect('A8', 'qllxmc', 'qllx')"
                @clear="handleEmpty('qllxmc')"
                filterable
                clearable
44
                placeholder="请选择权利类型">
xiaomiao committed
45 46 47 48
                <el-option
                  v-for="item in dictData['A8']"
                  :key="item.dcode"
                  :label="item.dname"
49
                  :value="item.dcode">
jiaozeping@pashanhoo.com committed
50 51 52 53 54 55
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="登记类型">
xiaomiao committed
56 57
              <el-select
                v-model="queryForm.djlx"
58
                class="width100"
xiaomiao committed
59 60 61 62
                @change="handleSelect('A21', 'djlxmc', 'djlx')"
                @clear="handleEmpty('djlxmc')"
                filterable
                clearable
63
                placeholder="请选择登记类型">
xiaomiao committed
64 65 66 67
                <el-option
                  v-for="item in dictData['A21']"
                  :key="item.dcode"
                  :label="item.dname"
68
                  :value="item.dcode">
jiaozeping@pashanhoo.com committed
69 70 71 72
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
73
          <el-col :span="6">
jiaozeping@pashanhoo.com committed
74
            <el-form-item label="业务号">
xiaomiao committed
75 76
              <el-input
                placeholder="请输入业务号"
77
                v-model.trim="queryForm.ywh"
xiaomiao committed
78
                clearable
79
                class="width100">
jiaozeping@pashanhoo.com committed
80 81 82 83
              </el-input>
            </el-form-item>
          </el-col>

84
          <el-col :span="3" class="btnColRight">
jiaozeping@pashanhoo.com committed
85
            <el-form-item>
xiaomiao committed
86 87 88
              <el-button
                type="primary"
                native-type="submit"
89
                @click="handleSearch">查询</el-button>
1  
jiaozeping@pashanhoo.com committed
90
              <el-button @click="moreQueryClick">高级查询</el-button>
jiaozeping@pashanhoo.com committed
91 92 93
            </el-form-item>
          </el-col>
        </el-row>
1  
renchao@pashanhoo.com committed
94
        <el-row>
95 96 97 98
          <el-col :span="5">
            <el-form-item label="不动产单元号">
              <el-input
                placeholder="请输入不动产单元号"
99
                v-model.trim="queryForm.bdcdyh"
100 101 102 103 104 105 106 107 108
                clearable
                class="width100">
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="申请人">
              <el-input
                placeholder="如需要模糊查询,前后输入%"
109
                v-model.trim="queryForm.sqrmc"
110 111 112 113 114 115 116 117 118
                clearable
                class="width100">
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="申请人证件号">
              <el-input
                placeholder="如需要模糊查询,前后输入%"
119
                v-model.trim="queryForm.sqrzjhm"
120 121 122 123 124
                clearable
                class="width100">
              </el-input>
            </el-form-item>
          </el-col>
125
          <el-col :span="9">
126 127 128 129 130 131 132 133 134 135
            <el-form-item label="坐落">
              <el-input
                placeholder="如需要模糊查询,前后输入%"
                v-model.trim="queryForm.zl"
                clearable
                class="width100">
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
任超 committed
136
        <el-row class="advanced-search">
137
          <span>搜索条件:</span>
任超 committed
138
          <ul>
任超 committed
139 140
            <li v-for="(item, index) in searchList" :key="index">
              {{ item.name }}:{{ item.value }}
xiaomiao committed
141 142
              <i
                class="el-icon-circle-close"
143
                @click="handelItem(item, index)"></i>
任超 committed
144
            </li>
145 146 147 148 149 150
            <el-button
              class="clean-btn"
              type="text"
              v-if="searchList.length > 0"
              @click.native="hanldeCleanAll">清除全部
            </el-button>
任超 committed
151 152
          </ul>
        </el-row>
jiaozeping@pashanhoo.com committed
153 154 155 156
      </el-form>
    </div>
    <!-- 表格 -->
    <div class="from-clues-content">
xiaomiao committed
157
      <lb-table
158
        ref="Lbtable"
xiaomiao committed
159 160 161 162 163 164 165 166
        :page-size="pageData.size"
        class="loadingtext"
        @sort-change="handleSort"
        :current-page.sync="pageData.currentPage"
        :total="tableData.total"
        @size-change="handleSizeChange"
        @p-current-change="handleCurrentChange"
        :column="tableData.columns"
167
        :data="tableData.data">
jiaozeping@pashanhoo.com committed
168 169
      </lb-table>
    </div>
xiaomiao committed
170 171 172
    <searchBox
      v-model="isSearch"
      @getSearch="getSearch"
173
      :advancedForm="otherForm" />
jiaozeping@pashanhoo.com committed
174 175 176
  </div>
</template>
<script>
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
  import { mapGetters } from "vuex";
  import searchMin from "../components/mixin/index";
  import table from "@/utils/mixin/table";
  import { datas, sendThis } from "./ybxdata";
  import { searchTaskDone } from "@/api/workflow/search.js";
  import searchBox from "../components/search.vue";
  export default {
    name: "ybx",
    components: { searchBox },
    mixins: [table, searchMin],
    mounted () {
      sendThis(this);
    },
    computed: {
      ...mapGetters(["dictData"]),
xiaomiao committed
192
    },
193 194 195 196 197 198 199
    data () {
      return {
        queryForm: {
          ywly: "",
          qllx: "",
          djlx: "",
          ywh: "",
200 201 202 203
          bdcdyh: "",
          sqrmc: "",
          sqrzjhm: "",
          zl: ""
204 205 206 207 208 209
        },
        searchForm: {
          ywlymc: "",
          qllxmc: "",
          djlxmc: "",
          ywh: "",
210 211 212 213
          bdcdyh: "",
          sqrmc: "",
          sqrzjhm: "",
          zl: ""
214 215 216 217
        },
        tableData: {
          total: 0,
          columns: datas.columns(),
218 219 220
          data: []
        }
      }
221 222
    },
    activated () {
xiaomiao committed
223
      this.queryClick();
224
      window["getBpageList"] = () => {
225 226
        this.queryClick()
      }
xiaomiao committed
227
    },
228 229 230 231 232 233
    methods: {
      /**
       * @description: 列表渲染接口
       */
      queryClick () {
        this.$startLoading();
234 235 236 237 238 239
        const { ywh, bdcdyh, sqrmc, sqrzjhm, zl } = this.queryForm;
        this.searchForm.ywh = ywh;
        this.searchForm.bdcdyh = bdcdyh;
        this.searchForm.sqrmc = sqrmc;
        this.searchForm.sqrzjhm = sqrzjhm;
        this.searchForm.zl = zl;
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270
        this.iterationData();
        searchTaskDone({
          ...this.queryForm,
          ...this.otherForm,
          ...this.pageData,
        }).then((res) => {
          this.$endLoading();
          if (res.code === 200) {
            let { total, records } = res.result;
            records.forEach((item) => {
              item.qlrmc = item.qlrmc.join(",");
              item.ywh = item.ywh.join(",");
              item.zl = item.zl.join(",");
              item.outstepdate = item.outstepdate[0];
            });
            this.tableData.total = total ? total : 0;
            this.tableData.data = records ? records : [];
          }
        });
      },
      /**
       * @description: handleSort
       * @param {*} val
       * @author: renchao
       */
      handleSort (val) {
        this.queryForm.sortField = val.prop;
        this.queryForm.sortOrder = val.order == "ascending" ? "asc" : "desc";
        this.queryClick();
      },
      /**
271
       * @description: 有任务权限
272 273 274 275 276 277 278
       * @param {*} item
       * @author: renchao
       */
      ywhClick (item) {
        if (item.sjlx == "3") {
          item.djywbm = "DJBBL";
          const { href } = this.$router.resolve(
279
            "/djbworkFrameview?bsmSlsq=" + item.bsmSlsq +
280
            "&bestepid=" + item.bestepid +
281
            "&djywbm=" + item.djywbm
282 283 284
          );
          window.open(href, `djbworkFrameview${item.bsmSlsq}`);
        } else {
1  
renchao@pashanhoo.com committed
285
          const { href } = this.$router.resolve(
286
            "/workFrameView?bsmSlsq=" + item.bsmSlsq +
287
            "&bestepid=" + item.bestepid
1  
renchao@pashanhoo.com committed
288
          );
289
          window.open(href, `workFrameView${item.bsmSlsq}`)
290
        }
renchao@pashanhoo.com committed
291 292 293
      }
    }
  }
jiaozeping@pashanhoo.com committed
294 295
</script>
<style scoped lang="scss">
296
  @import "~@/styles/public.scss";
jiaozeping@pashanhoo.com committed
297
</style>