森林林木转移变更注销业务办理
Showing
3 changed files
with
235 additions
and
1 deletions
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-08-17 16:09:12 | ||
| 5 | --> | ||
| 6 | <template> | ||
| 7 | <div class="from-clues"> | ||
| 8 | <!-- 表单部分 森林林木 --> | ||
| 9 | <div class="from-clues-header"> | ||
| 10 | <el-form :model="queryForm" ref="queryForm"> | ||
| 11 | <el-row :gutter="20"> | ||
| 12 | <el-col :span="6"> | ||
| 13 | <el-form-item label="宗地代码"> | ||
| 14 | <el-input placeholder="请输入宗地代码" maxlength="19" v-model="queryForm.zddm" clearable class="width100"> | ||
| 15 | </el-input> | ||
| 16 | </el-form-item> | ||
| 17 | </el-col> | ||
| 18 | <el-col :span="6"> | ||
| 19 | <el-form-item label="不动产单元号"> | ||
| 20 | <el-input placeholder="请输入不动产单元号" maxlength="28" v-model="queryForm.bdcdyh" clearable class="width100"> | ||
| 21 | </el-input> | ||
| 22 | </el-form-item> | ||
| 23 | </el-col> | ||
| 24 | <el-col :span="6"> | ||
| 25 | <el-form-item label="坐落"> | ||
| 26 | <el-input placeholder="请输入坐落" v-model.trim="queryForm.zl" clearable class="width100"> | ||
| 27 | </el-input> | ||
| 28 | </el-form-item> | ||
| 29 | </el-col> | ||
| 30 | <el-col :span="6" class="btnColRight"> | ||
| 31 | <el-form-item> | ||
| 32 | <!-- <el-button type="primary" @click="resetForm(true)">重置</el-button> --> | ||
| 33 | <el-button type="primary" @click="handleSearch">查询</el-button> | ||
| 34 | </el-form-item> | ||
| 35 | </el-col> | ||
| 36 | </el-row> | ||
| 37 | </el-form> | ||
| 38 | </div> | ||
| 39 | <!-- 表格 --> | ||
| 40 | <div class="from-clues-content loadingtext"> | ||
| 41 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | ||
| 42 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select" | ||
| 43 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | ||
| 44 | :data="tableData.data"> | ||
| 45 | </lb-table> | ||
| 46 | </div> | ||
| 47 | <div class="submit_button"> | ||
| 48 | <el-button @click="$popupCacel">取消</el-button> | ||
| 49 | <el-button type="primary" plain @click="submitForm" :loading="loading">发起申请</el-button> | ||
| 50 | </div> | ||
| 51 | </div> | ||
| 52 | </template> | ||
| 53 | <script> | ||
| 54 | //首次登记 | ||
| 55 | import jump from "./mixin/jump"; | ||
| 56 | import store from '@/store/index.js' | ||
| 57 | import table from "@/utils/mixin/table"; | ||
| 58 | import { ywPopupDialog } from "@/utils/popup.js"; | ||
| 59 | import { selectLq } from "@/api/ywsq.js"; | ||
| 60 | import { startBusinessFlow } from "@/api/workFlow.js"; | ||
| 61 | import { datas, sendThis } from "../javascript/selectQjzdjbxx.js"; | ||
| 62 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | ||
| 63 | export default { | ||
| 64 | mixins: [table, jump], | ||
| 65 | props: { | ||
| 66 | isJump: { type: Boolean, default: false }, | ||
| 67 | sqywInfo: { type: Object, default: () => { } }, | ||
| 68 | }, | ||
| 69 | data () { | ||
| 70 | return { | ||
| 71 | loading: false, | ||
| 72 | queryForm: defaultParameters.defaultParameters(), | ||
| 73 | tableData: { | ||
| 74 | total: 0, | ||
| 75 | columns: datas.columns(), | ||
| 76 | data: [], | ||
| 77 | }, | ||
| 78 | bdcdysz: [], | ||
| 79 | }; | ||
| 80 | }, | ||
| 81 | mounted () { | ||
| 82 | sendThis(this); | ||
| 83 | }, | ||
| 84 | methods: { | ||
| 85 | /** | ||
| 86 | * @description: queryClick | ||
| 87 | * @author: renchao | ||
| 88 | */ | ||
| 89 | queryClick () { | ||
| 90 | this.$startLoading(); | ||
| 91 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 92 | selectLq({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 93 | this.$endLoading(); | ||
| 94 | if (res.code === 200) { | ||
| 95 | let { total, records } = res.result; | ||
| 96 | this.tableData.total = total; | ||
| 97 | this.tableData.data = records; | ||
| 98 | } | ||
| 99 | }); | ||
| 100 | }, | ||
| 101 | |||
| 102 | /** | ||
| 103 | * @description: submitForm | ||
| 104 | * @author: renchao | ||
| 105 | */ | ||
| 106 | submitForm () { | ||
| 107 | if (this.bdcdysz.length == 0) { | ||
| 108 | this.$alert("请至少选择一条数据"); | ||
| 109 | return; | ||
| 110 | } | ||
| 111 | this.loading = true | ||
| 112 | startBusinessFlow({ | ||
| 113 | bsmSqyw: this.sqywInfo.bsmSqyw, | ||
| 114 | bdcdysz: this.bdcdysz, | ||
| 115 | }).then((res) => { | ||
| 116 | this.loading = false | ||
| 117 | if (res.code == 200) { | ||
| 118 | this.$message({ | ||
| 119 | showClose: true, | ||
| 120 | message: "发起申请成功", | ||
| 121 | type: "success", | ||
| 122 | }); | ||
| 123 | if (!this.isJump) { | ||
| 124 | this.jump(res.result, this.djywbm); | ||
| 125 | } else { | ||
| 126 | store.dispatch('user/refreshPage', true); | ||
| 127 | } | ||
| 128 | this.$popupCacel() | ||
| 129 | } else { | ||
| 130 | if (res.result && res.result.length > 0) { | ||
| 131 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
| 132 | } else { | ||
| 133 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
| 134 | } | ||
| 135 | } | ||
| 136 | }).catch(() => { | ||
| 137 | this.loading = false | ||
| 138 | }) | ||
| 139 | }, | ||
| 140 | /** | ||
| 141 | * @description: handleSelectionChange | ||
| 142 | * @param {*} val | ||
| 143 | * @author: renchao | ||
| 144 | */ | ||
| 145 | handleSelectionChange (val) { | ||
| 146 | val.forEach((item, index) => { | ||
| 147 | item.bsm = item.zdbsm; | ||
| 148 | }); | ||
| 149 | if (this.sqywInfo.sqywdylx == "1") { | ||
| 150 | if (val.length > 1) { | ||
| 151 | this.bdcdysz = [...val[val.length - 1]]; | ||
| 152 | } else { | ||
| 153 | this.bdcdysz = val; | ||
| 154 | } | ||
| 155 | } else { | ||
| 156 | this.bdcdysz = val; | ||
| 157 | } | ||
| 158 | }, | ||
| 159 | /** | ||
| 160 | * @description: select | ||
| 161 | * @param {*} selection | ||
| 162 | * @param {*} row | ||
| 163 | * @author: renchao | ||
| 164 | */ | ||
| 165 | select (selection, row) { | ||
| 166 | if (this.sqywInfo.sqywdylx == "1") { | ||
| 167 | // 清除 所有勾选项 | ||
| 168 | this.$refs.table.clearSelection() | ||
| 169 | // 当表格数据都没有被勾选的时候 就返回 | ||
| 170 | // 主要用于将当前勾选的表格状态清除 | ||
| 171 | if (selection.length == 0) return | ||
| 172 | this.$refs.table.toggleRowSelection(row, true); | ||
| 173 | } | ||
| 174 | }, | ||
| 175 | |||
| 176 | /** | ||
| 177 | * @description: handleRowClick | ||
| 178 | * @param {*} row | ||
| 179 | * @author: renchao | ||
| 180 | */ | ||
| 181 | handleRowClick (row) { | ||
| 182 | // 如果状态是1,那就是单选 | ||
| 183 | if (this.sqywInfo.sqywdylx == "1") { | ||
| 184 | const bdcdysz = this.bdcdysz | ||
| 185 | this.$refs.table.clearSelection() | ||
| 186 | if (bdcdysz.length == 1) { | ||
| 187 | bdcdysz.forEach(item => { | ||
| 188 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | ||
| 189 | if (item == row) { | ||
| 190 | this.$refs.table.toggleRowSelection(row, false); | ||
| 191 | } | ||
| 192 | // 不然就让当前的一行勾选 | ||
| 193 | else { | ||
| 194 | this.$refs.table.toggleRowSelection(row, true); | ||
| 195 | } | ||
| 196 | }) | ||
| 197 | } | ||
| 198 | else { | ||
| 199 | this.$refs.table.toggleRowSelection(row, true); | ||
| 200 | } | ||
| 201 | } else { | ||
| 202 | this.$refs.table.toggleRowSelection(row); | ||
| 203 | } | ||
| 204 | }, | ||
| 205 | /** | ||
| 206 | * @description: openBook | ||
| 207 | * @param {*} row | ||
| 208 | * @author: renchao | ||
| 209 | */ | ||
| 210 | openBook (row) { | ||
| 211 | var param = { | ||
| 212 | bdcdyid: row.bdcdyid, | ||
| 213 | qllx: row.qllx, | ||
| 214 | bdcdyh: row.bdcdyh, | ||
| 215 | bsmQlxx: row.bsmQlxx, | ||
| 216 | }; | ||
| 217 | this.$popup("登记簿详情", "registerBook/djbFrame", { | ||
| 218 | formData: param | ||
| 219 | }) | ||
| 220 | }, | ||
| 221 | |||
| 222 | }, | ||
| 223 | }; | ||
| 224 | </script> | ||
| 225 | <style scoped lang="scss"> | ||
| 226 | @import "~@/styles/mixin.scss"; | ||
| 227 | @import "~@/styles/public.scss"; | ||
| 228 | </style> | ||
| 229 |
File moved
| ... | @@ -109,8 +109,13 @@ export function queueDjywmc (djywbm, djqxbm) { | ... | @@ -109,8 +109,13 @@ export function queueDjywmc (djywbm, djqxbm) { |
| 109 | vm = "selectLqqt"; | 109 | vm = "selectLqqt"; |
| 110 | break; | 110 | break; |
| 111 | case "A12100"://森林林木首次 | 111 | case "A12100"://森林林木首次 |
| 112 | vm = "selectSllm"; | 112 | vm = "selectSllmsc"; |
| 113 | break; | 113 | break; |
| 114 | case "A12200"://森林林木转移 | ||
| 115 | case "A12300"://森林林木登记 | ||
| 116 | case "A12400"://森林林木变更 | ||
| 117 | vm = "selectSllmqt"; | ||
| 118 | break; | ||
| 114 | default: | 119 | default: |
| 115 | vm = "selecBdcql"; | 120 | vm = "selecBdcql"; |
| 116 | break; | 121 | break; | ... | ... |
-
Please register or sign in to post a comment