Blame view

src/views/ywbl/ywsq/components/jsydsyq100.vue 3.58 KB
任超 committed
1 2
<template>
  <div class="from-clues">
3
    <!-- 表单部分 国有建设用地使用权 -->
任超 committed
4
    <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">
任超 committed
8
            <el-form-item label="不动产单元号">
任超 committed
9
              <el-input placeholder="请输入不动产单元号" v-model="queryForm.bdcdyh" clearable class="width300px">
任超 committed
10 11 12
              </el-input>
            </el-form-item>
          </el-col>
jiaozeping@pashanhoo.com committed
13
          <el-col :span="10">
1  
jiaozeping@pashanhoo.com committed
14 15
            <el-form-item label="坐落">
              <el-input placeholder="请输入坐落" v-model="queryForm.zl" clearable class="width300px">
任超 committed
16 17 18
              </el-input>
            </el-form-item>
          </el-col>
1  
jiaozeping@pashanhoo.com committed
19
          <el-col :span="4" class="btnCol">
任超 committed
20 21 22 23 24 25 26 27 28
            <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">
任超 committed
29 30 31
      <lb-table border :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
32 33
      </lb-table>
    </div>
任超 committed
34 35
    <div class="submit_button">
      <el-button @click="closeDialog">取消</el-button>
任超 committed
36
      <el-button type="primary" plain @click="submitForm" :loading="saveloding">发起申请</el-button>
任超 committed
37
    </div>
任超 committed
38 39 40
  </div>
</template>
<script>
任超 committed
41
//首次登记
田浩浩 committed
42
import { datas, sendThis } from "../javascript/jsydsyq100.js";
43
import { defaultParameters } from "../javascript/publicDefaultPar.js";
任超 committed
44
import table from "@/utils/mixin/table";
任超 committed
45
import jump from "../components/mixin/jump";
46
import { selectScBdcdy, startBusinessFlow } from "@/api/ywbl.js";
任超 committed
47
export default {
任超 committed
48
  props: {
jiaozeping@pashanhoo.com committed
49 50
    bsmSqyw: { type: String, default: "" },
    djqxObj: { type: Object, default: "" },
51
    djywbm: { type: String, default: "" }
任超 committed
52
  },
任超 committed
53 54
  mixins: [table, jump],
  data () {
任超 committed
55
    return {
56
      queryForm: defaultParameters.defaultParameters(),
任超 committed
57

任超 committed
58 59 60 61 62 63
      qllxs: [],
      tableData: {
        total: 0,
        columns: datas.columns(),
        data: [],
      },
任超 committed
64
      bdcdysz: [],
jiaozeping@pashanhoo.com committed
65
      saveloding: false,
任超 committed
66 67
    };
  },
任超 committed
68
  watch: {
任超 committed
69
    bsmSqyw (val) {
jiaozeping@pashanhoo.com committed
70
      this.fetchData();
任超 committed
71 72
    },
  },
任超 committed
73
  mounted () {
任超 committed
74 75 76
    sendThis(this);
  },
  methods: {
任超 committed
77
    closeDialog () {
jiaozeping@pashanhoo.com committed
78
      this.$emit("closeDialog");
任超 committed
79
    },
任超 committed
80
    fetchData () {
任超 committed
81
      if (this.bsmSqyw) {
任超 committed
82
        this.queryForm.sqywbm = this.djywbm;
83

84
        selectScBdcdy({ ...this.queryForm, ...this.pageData }).then((res) => {
jiaozeping@pashanhoo.com committed
85 86 87 88 89 90
          if (res.code === 200) {
            let { total, records } = res.result;
            this.tableData.total = total;
            this.tableData.data = records;
          }
        });
任超 committed
91 92
      }
    },
任超 committed
93
    submitForm () {
任超 committed
94
      if (this.bdcdysz.length == 0) {
jiaozeping@pashanhoo.com committed
95 96
        this.$message.error("请至少选择一条数据");
        return;
任超 committed
97
      }
jiaozeping@pashanhoo.com committed
98
      this.saveloding = true;
任超 committed
99 100
      startBusinessFlow({
        bsmSqyw: this.bsmSqyw,
liangyifan committed
101
        bdcdysz: this.bdcdysz,
jiaozeping@pashanhoo.com committed
102 103 104 105 106
        djqxbm: this.djqxObj.djqxbm,
        djqxmc: this.djqxObj.djqxmc,
      }).then((res) => {
        this.saveloding = false;
        if (res.code == 200) {
任超 committed
107
          this.jump(res.result)
jiaozeping@pashanhoo.com committed
108 109
        } else {
          this.$message.error(res.message);
110
        }
jiaozeping@pashanhoo.com committed
111
      });
任超 committed
112
    },
任超 committed
113
    handleSelectionChange (val) {
jiaozeping@pashanhoo.com committed
114
      this.bdcdysz = val;
115
    },
任超 committed
116 117
  }
}
任超 committed
118 119 120 121 122
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
@import "~@/styles/public.scss";
</style>