Blame view

src/views/ywbl/ywsq/components/jsydsyq200.vue 4.89 KB
任超 committed
1 2 3 4
<template>
  <div class="from-clues">
    <!-- 表单部分 -->
    <div class="from-clues-header">
jiaozeping@pashanhoo.com committed
5
      <el-form :model="queryForm" ref="queryForm" label-width="120px">
任超 committed
6
        <el-row>
jiaozeping@pashanhoo.com committed
7
          <el-col :span="10">
8
            <el-form-item label="权利类型200">
jiaozeping@pashanhoo.com committed
9 10 11 12 13
              <el-select
                v-model="queryForm.qllx"
                filterable
                clearable
                placeholder="请选择权利类型"
jiaozeping@pashanhoo.com committed
14
                class="width300px"
jiaozeping@pashanhoo.com committed
15 16 17 18 19 20 21
              >
                <el-option
                  v-for="item in qllxs"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
任超 committed
22 23 24 25
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
jiaozeping@pashanhoo.com committed
26
          <el-col :span="10">
任超 committed
27
            <el-form-item label="不动产单元号">
jiaozeping@pashanhoo.com committed
28 29 30 31 32 33
              <el-input
                placeholder="请输入不动产单元号"
                v-model="queryForm.bdcdyh"
                clearable
                class="width300px"
              >
任超 committed
34 35 36
              </el-input>
            </el-form-item>
          </el-col>
jiaozeping@pashanhoo.com committed
37 38 39
        </el-row>
        <el-row>
          <el-col :span="10">
任超 committed
40
            <el-form-item label="业务号">
jiaozeping@pashanhoo.com committed
41 42 43 44
              <el-input
                placeholder="请输入业务号"
                v-model="queryForm.ywh"
                clearable
jiaozeping@pashanhoo.com committed
45
                class="width300px"
jiaozeping@pashanhoo.com committed
46
              >
任超 committed
47 48 49
              </el-input>
            </el-form-item>
          </el-col>
jiaozeping@pashanhoo.com committed
50
          <el-col :span="10">
任超 committed
51
            <el-form-item label="不动产权证号">
jiaozeping@pashanhoo.com committed
52 53 54 55 56 57
              <el-input
                placeholder="请输入不动产权证号"
                v-model="queryForm.bdcqzh"
                clearable
                class="width300px"
              >
任超 committed
58 59 60 61 62 63 64 65 66 67 68 69 70
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="2" class="btnCol">
            <el-form-item>
              <el-button type="primary" @click="queryClick()">查询</el-button>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <!-- 表格 -->
    <div class="from-clues-content">
jiaozeping@pashanhoo.com committed
71 72 73 74 75 76 77 78 79 80 81
      <lb-table
        :page-size="pageData.pageSize"
        :heightNum="400"
        :current-page.sync="pageData.currentPage"
        :total="tableData.total"
        @size-change="handleSizeChange"
        @p-current-change="handleCurrentChange"
        @selection-change="handleSelectionChange"
        :column="tableData.columns"
        :data="tableData.data"
      >
任超 committed
82 83
      </lb-table>
    </div>
任超 committed
84 85
    <div class="submit_button">
      <el-button @click="closeDialog">取消</el-button>
jiaozeping@pashanhoo.com committed
86 87 88
      <el-button type="primary" plain @click="submitForm" :loading="saveloding"
        >发起申请</el-button
      >
任超 committed
89
    </div>
任超 committed
90 91 92
  </div>
</template>
<script>
任超 committed
93
//首次登记
田浩浩 committed
94
import { datas, sendThis } from "../javascript/jsydsyq200.js";
任超 committed
95
import table from "@/utils/mixin/table";
蔡俊立 committed
96
import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js";
任超 committed
97
export default {
任超 committed
98
  props: {
jiaozeping@pashanhoo.com committed
99 100
    bsmSqyw: { type: String, default: "" },
    djqxObj: { type: Object, default: "" },
任超 committed
101
  },
任超 committed
102
  mixins: [table],
jiaozeping@pashanhoo.com committed
103
  data() {
任超 committed
104 105 106 107 108 109
    return {
      queryForm: {
        qllx: "",
        bdcdyh: "",
        ywh: "",
        bdcqzh: "",
蔡俊立 committed
110
        sqywbm: "A03200",
任超 committed
111 112 113 114 115 116 117
      },
      qllxs: [],
      tableData: {
        total: 0,
        columns: datas.columns(),
        data: [],
      },
任超 committed
118
      bdcdysz: [],
jiaozeping@pashanhoo.com committed
119
      saveloding: false,
任超 committed
120 121
    };
  },
任超 committed
122
  watch: {
jiaozeping@pashanhoo.com committed
123 124
    bsmSqyw(val) {
      this.fetchData();
任超 committed
125 126
    },
  },
jiaozeping@pashanhoo.com committed
127
  mounted() {
任超 committed
128 129 130
    sendThis(this);
  },
  methods: {
jiaozeping@pashanhoo.com committed
131 132
    closeDialog() {
      this.$emit("closeDialog");
任超 committed
133
    },
jiaozeping@pashanhoo.com committed
134
    fetchData() {
任超 committed
135
      if (this.bsmSqyw) {
蔡俊立 committed
136
        selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => {
jiaozeping@pashanhoo.com committed
137 138 139 140 141 142
          if (res.code === 200) {
            let { total, records } = res.result;
            this.tableData.total = total;
            this.tableData.data = records;
          }
        });
任超 committed
143 144
      }
    },
jiaozeping@pashanhoo.com committed
145
    submitForm() {
任超 committed
146
      if (this.bdcdysz.length == 0) {
jiaozeping@pashanhoo.com committed
147 148
        this.$message.error("请至少选择一条数据");
        return;
任超 committed
149
      }
jiaozeping@pashanhoo.com committed
150
      this.saveloding = true;
任超 committed
151 152
      startBusinessFlow({
        bsmSqyw: this.bsmSqyw,
liangyifan committed
153
        bdcdysz: this.bdcdysz,
jiaozeping@pashanhoo.com committed
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
        djqxbm: this.djqxObj.djqxbm,
        djqxmc: this.djqxObj.djqxmc,
      }).then((res) => {
        this.saveloding = false;
        if (res.code == 200) {
          this.$emit("closeDialog");
          const { href } = this.$router.resolve(
            "/fqsq?bsmSlsq=" +
              res.result.bsmSlsq +
              "&bestepid=" +
              res.result.bestepid
          );
          window.open(href, "_blank");
        } else {
          this.$message.error(res.message);
169
        }
jiaozeping@pashanhoo.com committed
170
      });
任超 committed
171
    },
jiaozeping@pashanhoo.com committed
172 173
    handleSelectionChange(val) {
      this.bdcdysz = val;
174
    },
jiaozeping@pashanhoo.com committed
175
    queryClick() {
176
      this.fetchData();
jiaozeping@pashanhoo.com committed
177
    },
任超 committed
178 179 180 181 182 183 184
  },
};
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
@import "~@/styles/public.scss";
</style>