Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev
Showing
8 changed files
with
631 additions
and
13 deletions
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-25 14:46:16 | 4 | * @LastEditTime: 2023-07-27 10:05:25 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
... | @@ -267,3 +267,16 @@ export function unClaimTask (bsmSlsq, bestepid) { | ... | @@ -267,3 +267,16 @@ export function unClaimTask (bsmSlsq, bestepid) { |
267 | method: 'get', | 267 | method: 'get', |
268 | }) | 268 | }) |
269 | } | 269 | } |
270 | |||
271 | /** | ||
272 | * @description: 发起一并申请流程 | ||
273 | * @param {*} data | ||
274 | * @author: renchao | ||
275 | */ | ||
276 | export function startTogetherFlow (data) { | ||
277 | return request({ | ||
278 | url: SERVER.SERVERAPI + '/rest/business/workFlow/startTogetherFlow', | ||
279 | method: 'post', | ||
280 | data | ||
281 | }) | ||
282 | } | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-05-17 10:39:47 | 4 | * @LastEditTime: 2023-07-27 09:03:56 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <dialogBox title="申请人信息" width="60%" isMain v-model="myValue" :isFullscreen="false" @submitForm="submitForm" | 7 | <dialogBox title="申请人信息" width="60%" isMain v-model="myValue" :isFullscreen="false" @submitForm="submitForm" |
... | @@ -176,7 +176,7 @@ | ... | @@ -176,7 +176,7 @@ |
176 | dlrmc: "", | 176 | dlrmc: "", |
177 | dlrzjlx: "", | 177 | dlrzjlx: "", |
178 | dlrzjh: "", | 178 | dlrzjh: "", |
179 | dlrdh:"", | 179 | dlrdh: "", |
180 | }, | 180 | }, |
181 | rules: { | 181 | rules: { |
182 | sqrlx: [{ required: true, message: "权利人类型", trigger: "change" }], | 182 | sqrlx: [{ required: true, message: "权利人类型", trigger: "change" }], |
... | @@ -215,6 +215,7 @@ | ... | @@ -215,6 +215,7 @@ |
215 | if (valid) { | 215 | if (valid) { |
216 | this.$emit("input", false); | 216 | this.$emit("input", false); |
217 | this.$emit("updateDetail", _.cloneDeep(this.ruleForm)); | 217 | this.$emit("updateDetail", _.cloneDeep(this.ruleForm)); |
218 | this.$refs['ruleForm'].resetFields(); | ||
218 | } else { | 219 | } else { |
219 | return false; | 220 | return false; |
220 | } | 221 | } | ... | ... |
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-07-27 10:04:09 | ||
5 | --> | ||
6 | <template> | ||
7 | <!-- 主体权利信息查询 --> | ||
8 | <div class="from-clues"> | ||
9 | <!-- 表单部分 --> | ||
10 | <div class="from-clues-header"> | ||
11 | <el-form :model="queryForm" ref="queryForm" label-width="100px"> | ||
12 | <el-row> | ||
13 | <el-col :span="6"> | ||
14 | <el-form-item label="不动产权证号"> | ||
15 | <el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable class="width100"> | ||
16 | </el-input> | ||
17 | </el-form-item> | ||
18 | </el-col> | ||
19 | <el-col :span="6"> | ||
20 | <el-form-item label="不动产单元号"> | ||
21 | <el-input placeholder="请输入不动产单元号" maxlength="28" v-model="queryForm.bdcdyh" clearable class="width100"> | ||
22 | </el-input> | ||
23 | </el-form-item> | ||
24 | </el-col> | ||
25 | <el-col :span="6"> | ||
26 | <el-form-item label="坐落"> | ||
27 | <el-input placeholder="" v-model.trim="queryForm.zl" clearable class="width100"> | ||
28 | </el-input> | ||
29 | </el-form-item> | ||
30 | </el-col> | ||
31 | <el-col :span="6" class="btnColRight"> | ||
32 | <el-form-item> | ||
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">发起申请</el-button> | ||
50 | </div> | ||
51 | </div> | ||
52 | </template> | ||
53 | <script> | ||
54 | import store from '@/store/index.js' | ||
55 | import { ywPopupDialog } from "@/utils/popup.js"; | ||
56 | import { datas, sendThis } from "../javascript/selectYgdj200.js"; | ||
57 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | ||
58 | import table from "@/utils/mixin/table"; | ||
59 | import jump from "./mixin/jump"; | ||
60 | import { selectYgdj200 } from "@/api/ywsq.js"; | ||
61 | import { startTogetherFlow } from "@/api/workFlow.js"; | ||
62 | export default { | ||
63 | mixins: [table, jump], | ||
64 | props: { | ||
65 | isJump: { type: Boolean, default: false }, | ||
66 | sqywInfo: { type: Object, default: () => { } }, | ||
67 | }, | ||
68 | data () { | ||
69 | return { | ||
70 | queryForm: defaultParameters.defaultParameters(), | ||
71 | tableData: { | ||
72 | total: 0, | ||
73 | columns: datas.columns(), | ||
74 | data: [], | ||
75 | }, | ||
76 | bdcdysz: [], | ||
77 | }; | ||
78 | }, | ||
79 | mounted () { | ||
80 | sendThis(this); | ||
81 | }, | ||
82 | methods: { | ||
83 | /** | ||
84 | * @description: queryClick | ||
85 | * @author: renchao | ||
86 | */ | ||
87 | queryClick () { | ||
88 | this.$startLoading(); | ||
89 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
90 | selectYgdj200({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
91 | this.$endLoading(); | ||
92 | if (res.code === 200) { | ||
93 | let { total, records } = res.result; | ||
94 | this.tableData.total = total; | ||
95 | this.tableData.data = records; | ||
96 | } | ||
97 | }); | ||
98 | }, | ||
99 | /** | ||
100 | * @description: submitForm | ||
101 | * @author: renchao | ||
102 | */ | ||
103 | submitForm () { | ||
104 | if (this.bdcdysz.length == 0) { | ||
105 | this.$message.error("请至少选择一条数据"); | ||
106 | return; | ||
107 | } | ||
108 | startTogetherFlow({ | ||
109 | bsmSqyw: this.sqywInfo.bsmSqyw, | ||
110 | bdcdysz: this.bdcdysz, | ||
111 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
112 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
113 | }).then((res) => { | ||
114 | if (res.code == 200) { | ||
115 | this.$message({ | ||
116 | showClose: true, | ||
117 | message: '发起申请成功', | ||
118 | type: 'success' | ||
119 | }) | ||
120 | if (!this.isJump) { | ||
121 | this.jump(res.result, this.sqywInfo.djywbm) | ||
122 | } else { | ||
123 | store.dispatch('user/refreshPage', true); | ||
124 | this.$popupCacel() | ||
125 | } | ||
126 | } else { | ||
127 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%') | ||
128 | } | ||
129 | }) | ||
130 | }, | ||
131 | /** | ||
132 | * @description: handleSelectionChange | ||
133 | * @param {*} val | ||
134 | * @author: renchao | ||
135 | */ | ||
136 | handleSelectionChange (val) { | ||
137 | if (this.sqywInfo.sqywdylx == "1") { | ||
138 | if (val.length > 1) { | ||
139 | this.bdcdysz = [...val[val.length - 1]]; | ||
140 | } else { | ||
141 | this.bdcdysz = val; | ||
142 | } | ||
143 | } else { | ||
144 | this.bdcdysz = val; | ||
145 | } | ||
146 | }, | ||
147 | /** | ||
148 | * @description: select | ||
149 | * @param {*} selection | ||
150 | * @param {*} row | ||
151 | * @author: renchao | ||
152 | */ | ||
153 | select (selection, row) { | ||
154 | if (this.sqywInfo.sqywdylx == "1") { | ||
155 | // 清除 所有勾选项 | ||
156 | this.$refs.table.clearSelection() | ||
157 | // 当表格数据都没有被勾选的时候 就返回 | ||
158 | // 主要用于将当前勾选的表格状态清除 | ||
159 | if (selection.length == 0) return | ||
160 | this.$refs.table.toggleRowSelection(row, true); | ||
161 | } | ||
162 | }, | ||
163 | /** | ||
164 | * @description: handleRowClick | ||
165 | * @param {*} row | ||
166 | * @author: renchao | ||
167 | */ | ||
168 | handleRowClick (row) { | ||
169 | // 如果状态是1,那就是单选 | ||
170 | if (this.sqywInfo.sqywdylx == "1") { | ||
171 | const bdcdysz = this.bdcdysz | ||
172 | this.$refs.table.clearSelection() | ||
173 | if (bdcdysz.length == 1) { | ||
174 | bdcdysz.forEach(item => { | ||
175 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | ||
176 | if (item == row) { | ||
177 | this.$refs.table.toggleRowSelection(row, false); | ||
178 | } | ||
179 | // 不然就让当前的一行勾选 | ||
180 | else { | ||
181 | this.$refs.table.toggleRowSelection(row, true); | ||
182 | } | ||
183 | }) | ||
184 | } | ||
185 | else { | ||
186 | this.$refs.table.toggleRowSelection(row, true); | ||
187 | } | ||
188 | } else { | ||
189 | this.$refs.table.toggleRowSelection(row); | ||
190 | } | ||
191 | }, | ||
192 | }, | ||
193 | }; | ||
194 | </script> | ||
195 | <style scoped lang="scss"> | ||
196 | @import "~@/styles/mixin.scss"; | ||
197 | @import "~@/styles/public.scss"; | ||
198 | </style> |
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-07-21 11:18:36 | ||
5 | --> | ||
6 | <template> | ||
7 | <!-- 主体权利信息查询 --> | ||
8 | <div class="from-clues"> | ||
9 | <!-- 表单部分 --> | ||
10 | <div class="from-clues-header"> | ||
11 | <el-form :model="queryForm" ref="queryForm"> | ||
12 | <el-row> | ||
13 | <el-col :span="6"> | ||
14 | <el-form-item label="不动产权证号"> | ||
15 | <el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable class="width200px"> | ||
16 | </el-input> | ||
17 | </el-form-item> | ||
18 | </el-col> | ||
19 | <el-col :span="6"> | ||
20 | <el-form-item label="不动产单元号"> | ||
21 | <el-input placeholder="请输入不动产单元号" maxlength="28" v-model="queryForm.bdcdyh" clearable class="width200px"> | ||
22 | </el-input> | ||
23 | </el-form-item> | ||
24 | </el-col> | ||
25 | <el-col :span="8"> | ||
26 | <el-form-item label="坐落"> | ||
27 | <el-input placeholder="请输入坐落" v-model.trim="queryForm.zl" clearable class="width100"> | ||
28 | </el-input> | ||
29 | </el-form-item> | ||
30 | </el-col> | ||
31 | <el-col :span="4" class="btnColRight"> | ||
32 | <el-form-item> | ||
33 | <!-- <el-button type="primary" @click="resetForm(true)">重置</el-button> --> | ||
34 | <el-button type="primary" @click="handleSearch">查询</el-button> | ||
35 | </el-form-item> | ||
36 | </el-col> | ||
37 | </el-row> | ||
38 | </el-form> | ||
39 | </div> | ||
40 | <!-- 表格 --> | ||
41 | <div class="from-clues-content loadingtext"> | ||
42 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | ||
43 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select" | ||
44 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | ||
45 | :data="tableData.data"> | ||
46 | </lb-table> | ||
47 | </div> | ||
48 | <div class="submit_button"> | ||
49 | <el-button @click="$popupCacel">取消</el-button> | ||
50 | <el-button type="primary" plain @click="submitForm">发起申请</el-button> | ||
51 | </div> | ||
52 | </div> | ||
53 | </template> | ||
54 | <script> | ||
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 { datas, sendThis } from "../javascript/selectFwsyq.js"; | ||
60 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | ||
61 | import { selectFwsyq } from "@/api/ywsq.js"; | ||
62 | import { startTogetherFlow } from "@/api/workFlow.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 | queryForm: defaultParameters.defaultParameters(), | ||
72 | tableData: { | ||
73 | total: 0, | ||
74 | columns: datas.columns(), | ||
75 | data: [], | ||
76 | }, | ||
77 | bdcdysz: [], | ||
78 | }; | ||
79 | }, | ||
80 | mounted () { | ||
81 | sendThis(this); | ||
82 | }, | ||
83 | methods: { | ||
84 | /** | ||
85 | * @description: queryClick | ||
86 | * @author: renchao | ||
87 | */ | ||
88 | queryClick () { | ||
89 | this.$startLoading(); | ||
90 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
91 | selectFwsyq({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
92 | this.$endLoading(); | ||
93 | if (res.code === 200) { | ||
94 | let { total, records } = res.result; | ||
95 | this.tableData.total = total; | ||
96 | this.tableData.data = records; | ||
97 | } | ||
98 | }); | ||
99 | }, | ||
100 | /** | ||
101 | * @description: submitForm | ||
102 | * @author: renchao | ||
103 | */ | ||
104 | submitForm () { | ||
105 | if (this.bdcdysz.length == 0) { | ||
106 | this.$message.error("请至少选择一条数据"); | ||
107 | return; | ||
108 | } | ||
109 | startTogetherFlow({ | ||
110 | bsmSqyw: this.sqywInfo.bsmSqyw, | ||
111 | bdcdysz: this.bdcdysz, | ||
112 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
113 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
114 | }).then((res) => { | ||
115 | if (res.code == 200) { | ||
116 | this.$message({ | ||
117 | showClose: true, | ||
118 | message: "发起申请成功", | ||
119 | type: "success", | ||
120 | }); | ||
121 | if (!this.isJump) { | ||
122 | this.jump(res.result, this.sqywInfo.djywbm); | ||
123 | } else { | ||
124 | store.dispatch('user/refreshPage', true); | ||
125 | } | ||
126 | this.$popupCacel() | ||
127 | } else { | ||
128 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%') | ||
129 | } | ||
130 | }) | ||
131 | }, | ||
132 | /** | ||
133 | * @description: handleSelectionChange | ||
134 | * @param {*} val | ||
135 | * @author: renchao | ||
136 | */ | ||
137 | handleSelectionChange (val) { | ||
138 | if (this.sqywInfo.sqywdylx == "1") { | ||
139 | if (val.length > 1) { | ||
140 | this.bdcdysz = [...val[val.length - 1]]; | ||
141 | } else { | ||
142 | this.bdcdysz = val; | ||
143 | } | ||
144 | } else { | ||
145 | this.bdcdysz = val; | ||
146 | } | ||
147 | }, | ||
148 | /** | ||
149 | * @description: select | ||
150 | * @param {*} selection | ||
151 | * @param {*} row | ||
152 | * @author: renchao | ||
153 | */ | ||
154 | select (selection, row) { | ||
155 | if (this.sqywInfo.sqywdylx == "1") { | ||
156 | // 清除 所有勾选项 | ||
157 | this.$refs.table.clearSelection() | ||
158 | // 当表格数据都没有被勾选的时候 就返回 | ||
159 | // 主要用于将当前勾选的表格状态清除 | ||
160 | if (selection.length == 0) return | ||
161 | this.$refs.table.toggleRowSelection(row, true); | ||
162 | } | ||
163 | }, | ||
164 | /** | ||
165 | * @description: handleRowClick | ||
166 | * @param {*} row | ||
167 | * @author: renchao | ||
168 | */ | ||
169 | handleRowClick (row) { | ||
170 | // 如果状态是1,那就是单选 | ||
171 | if (this.sqywInfo.sqywdylx == "1") { | ||
172 | const bdcdysz = this.bdcdysz | ||
173 | this.$refs.table.clearSelection() | ||
174 | if (bdcdysz.length == 1) { | ||
175 | bdcdysz.forEach(item => { | ||
176 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | ||
177 | if (item == row) { | ||
178 | this.$refs.table.toggleRowSelection(row, false); | ||
179 | } | ||
180 | // 不然就让当前的一行勾选 | ||
181 | else { | ||
182 | this.$refs.table.toggleRowSelection(row, true); | ||
183 | } | ||
184 | }) | ||
185 | } | ||
186 | else { | ||
187 | this.$refs.table.toggleRowSelection(row, true); | ||
188 | } | ||
189 | } else { | ||
190 | this.$refs.table.toggleRowSelection(row); | ||
191 | } | ||
192 | }, | ||
193 | }, | ||
194 | }; | ||
195 | </script> | ||
196 | <style scoped lang="scss"> | ||
197 | @import "~@/styles/mixin.scss"; | ||
198 | @import "~@/styles/public.scss"; | ||
199 | </style> |
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-07-27 10:04:28 | ||
5 | --> | ||
6 | <template> | ||
7 | <!-- 主体权利信息查询 --> | ||
8 | <div class="from-clues"> | ||
9 | <!-- 表单部分 --> | ||
10 | <div class="from-clues-header"> | ||
11 | <el-form :model="queryForm" ref="queryForm" label-width="100px"> | ||
12 | <el-row> | ||
13 | <el-col :span="6"> | ||
14 | <el-form-item label="不动产权证号"> | ||
15 | <el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable class="width100"> | ||
16 | </el-input> | ||
17 | </el-form-item> | ||
18 | </el-col> | ||
19 | <el-col :span="6"> | ||
20 | <el-form-item label="不动产单元号"> | ||
21 | <el-input placeholder="请输入不动产单元号" maxlength="28" v-model="queryForm.bdcdyh" clearable class="width100"> | ||
22 | </el-input> | ||
23 | </el-form-item> | ||
24 | </el-col> | ||
25 | <el-col :span="6"> | ||
26 | <el-form-item label="坐落" label-width="60px"> | ||
27 | <el-input placeholder="" v-model.trim="queryForm.zl" clearable class="width100"> | ||
28 | </el-input> | ||
29 | </el-form-item> | ||
30 | </el-col> | ||
31 | <el-col :span="6" class="btnColRight"> | ||
32 | <el-form-item> | ||
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">发起申请</el-button> | ||
50 | </div> | ||
51 | </div> | ||
52 | </template> | ||
53 | <script> | ||
54 | import jump from "./mixin/jump"; | ||
55 | import store from '@/store/index.js' | ||
56 | import table from "@/utils/mixin/table"; | ||
57 | import { ywPopupDialog } from "@/utils/popup.js"; | ||
58 | import { datas, sendThis } from "../javascript/selectH.js"; | ||
59 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | ||
60 | import { selectHQjdc } from "@/api/ywsq.js"; | ||
61 | import { startTogetherFlow } from "@/api/workFlow.js"; | ||
62 | export default { | ||
63 | mixins: [table, jump], | ||
64 | props: { | ||
65 | isJump: { type: Boolean, default: false }, | ||
66 | sqywInfo: { type: Object, default: () => { } }, | ||
67 | }, | ||
68 | data () { | ||
69 | return { | ||
70 | queryForm: defaultParameters.defaultParameters(), | ||
71 | tableData: { | ||
72 | total: 0, | ||
73 | columns: datas.columns(), | ||
74 | data: [], | ||
75 | }, | ||
76 | bdcdysz: [], | ||
77 | }; | ||
78 | }, | ||
79 | mounted () { | ||
80 | sendThis(this); | ||
81 | }, | ||
82 | methods: { | ||
83 | /** | ||
84 | * @description: queryClick | ||
85 | * @author: renchao | ||
86 | */ | ||
87 | queryClick () { | ||
88 | this.$startLoading(); | ||
89 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
90 | selectHQjdc({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
91 | this.$endLoading(); | ||
92 | if (res.code === 200) { | ||
93 | let { total, records } = res.result; | ||
94 | this.tableData.total = total; | ||
95 | this.tableData.data = records; | ||
96 | } | ||
97 | }); | ||
98 | }, | ||
99 | /** | ||
100 | * @description: submitForm | ||
101 | * @author: renchao | ||
102 | */ | ||
103 | submitForm () { | ||
104 | if (this.bdcdysz.length == 0) { | ||
105 | this.$message.error("请至少选择一条数据"); | ||
106 | return; | ||
107 | } | ||
108 | startTogetherFlow({ | ||
109 | bsmSqyw: this.sqywInfo.bsmSqyw, | ||
110 | bdcdysz: this.bdcdysz, | ||
111 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
112 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
113 | }).then((res) => { | ||
114 | if (res.code == 200) { | ||
115 | this.$message({ | ||
116 | showClose: true, | ||
117 | message: '发起申请成功', | ||
118 | type: 'success' | ||
119 | }) | ||
120 | if (!this.isJump) { | ||
121 | this.jump(res.result, this.sqywInfo.djywbm) | ||
122 | } else { | ||
123 | store.dispatch('user/refreshPage', true); | ||
124 | } | ||
125 | this.$popupCacel() | ||
126 | } else { | ||
127 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%') | ||
128 | } | ||
129 | }) | ||
130 | }, | ||
131 | /** | ||
132 | * @description: handleSelectionChange | ||
133 | * @param {*} val | ||
134 | * @author: renchao | ||
135 | */ | ||
136 | handleSelectionChange (val) { | ||
137 | if (this.sqywInfo.sqywdylx == "1") { | ||
138 | if (val.length > 1) { | ||
139 | this.bdcdysz = [...val[val.length - 1]]; | ||
140 | } else { | ||
141 | this.bdcdysz = val; | ||
142 | } | ||
143 | } else { | ||
144 | this.bdcdysz = val; | ||
145 | } | ||
146 | }, | ||
147 | /** | ||
148 | * @description: select | ||
149 | * @param {*} selection | ||
150 | * @param {*} row | ||
151 | * @author: renchao | ||
152 | */ | ||
153 | select (selection, row) { | ||
154 | if (this.sqywInfo.sqywdylx == "1") { | ||
155 | // 清除 所有勾选项 | ||
156 | this.$refs.table.clearSelection() | ||
157 | // 当表格数据都没有被勾选的时候 就返回 | ||
158 | // 主要用于将当前勾选的表格状态清除 | ||
159 | if (selection.length == 0) return | ||
160 | this.$refs.table.toggleRowSelection(row, true); | ||
161 | } | ||
162 | }, | ||
163 | /** | ||
164 | * @description: handleRowClick | ||
165 | * @param {*} row | ||
166 | * @author: renchao | ||
167 | */ | ||
168 | handleRowClick (row) { | ||
169 | // 如果状态是1,那就是单选 | ||
170 | if (this.sqywInfo.sqywdylx == "1") { | ||
171 | const bdcdysz = this.bdcdysz | ||
172 | this.$refs.table.clearSelection() | ||
173 | if (bdcdysz.length == 1) { | ||
174 | bdcdysz.forEach(item => { | ||
175 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | ||
176 | if (item == row) { | ||
177 | this.$refs.table.toggleRowSelection(row, false); | ||
178 | } | ||
179 | // 不然就让当前的一行勾选 | ||
180 | else { | ||
181 | this.$refs.table.toggleRowSelection(row, true); | ||
182 | } | ||
183 | }) | ||
184 | } | ||
185 | else { | ||
186 | this.$refs.table.toggleRowSelection(row, true); | ||
187 | } | ||
188 | } else { | ||
189 | this.$refs.table.toggleRowSelection(row); | ||
190 | } | ||
191 | }, | ||
192 | }, | ||
193 | }; | ||
194 | </script> | ||
195 | <style scoped lang="scss"> | ||
196 | @import "~@/styles/mixin.scss"; | ||
197 | @import "~@/styles/public.scss"; | ||
198 | </style> |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-21 11:19:14 | 4 | * @LastEditTime: 2023-07-27 09:46:21 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <!-- 主体权利信息查询 --> | 7 | <!-- 主体权利信息查询 --> |
... | @@ -10,27 +10,26 @@ | ... | @@ -10,27 +10,26 @@ |
10 | <div class="from-clues-header"> | 10 | <div class="from-clues-header"> |
11 | <el-form :model="queryForm" ref="queryForm" label-width="100px"> | 11 | <el-form :model="queryForm" ref="queryForm" label-width="100px"> |
12 | <el-row> | 12 | <el-row> |
13 | <el-col :span="8"> | 13 | <el-col :span="6"> |
14 | <el-form-item label="不动产权证号"> | 14 | <el-form-item label="不动产权证号"> |
15 | <el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable class="width200px"> | 15 | <el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable class="width100"> |
16 | </el-input> | 16 | </el-input> |
17 | </el-form-item> | 17 | </el-form-item> |
18 | </el-col> | 18 | </el-col> |
19 | <el-col :span="8"> | 19 | <el-col :span="6"> |
20 | <el-form-item label="不动产单元号"> | 20 | <el-form-item label="不动产单元号"> |
21 | <el-input placeholder="请输入不动产单元号" maxlength="28" v-model="queryForm.bdcdyh" clearable class="width200px"> | 21 | <el-input placeholder="请输入不动产单元号" maxlength="28" v-model="queryForm.bdcdyh" clearable class="width100"> |
22 | </el-input> | 22 | </el-input> |
23 | </el-form-item> | 23 | </el-form-item> |
24 | </el-col> | 24 | </el-col> |
25 | <el-col :span="6"> | 25 | <el-col :span="6"> |
26 | <el-form-item label="坐落"> | 26 | <el-form-item label="坐落"> |
27 | <el-input placeholder="" v-model.trim="queryForm.zl" clearable class="width200px"> | 27 | <el-input placeholder="" v-model.trim="queryForm.zl" clearable class="width100"> |
28 | </el-input> | 28 | </el-input> |
29 | </el-form-item> | 29 | </el-form-item> |
30 | </el-col> | 30 | </el-col> |
31 | <el-col :span="2" class="btnColRight"> | 31 | <el-col :span="6" class="btnColRight"> |
32 | <el-form-item> | 32 | <el-form-item> |
33 | <!-- <el-button type="primary" @click="resetForm(true)">重置</el-button> --> | ||
34 | <el-button type="primary" @click="handleSearch">查询</el-button> | 33 | <el-button type="primary" @click="handleSearch">查询</el-button> |
35 | </el-form-item> | 34 | </el-form-item> |
36 | </el-col> | 35 | </el-col> | ... | ... |
... | @@ -184,7 +184,6 @@ | ... | @@ -184,7 +184,6 @@ |
184 | this.djqxList = []; | 184 | this.djqxList = []; |
185 | this.getNextNode(this.sqywQllxList[index].bsmSqyw); | 185 | this.getNextNode(this.sqywQllxList[index].bsmSqyw); |
186 | }, | 186 | }, |
187 | //选择申请业务事件 | ||
188 | /** | 187 | /** |
189 | * @description: 选择申请业务事件 | 188 | * @description: 选择申请业务事件 |
190 | * @param {*} data | 189 | * @param {*} data | ... | ... |
1 | export function queueDjywmc(djywbm, djqxbm) { | 1 | export function queueDjywmc (djywbm, djqxbm) { |
2 | console.log(djqxbm); | 2 | console.log(djqxbm); |
3 | if (djqxbm == "A0320099" || djqxbm == "A0330099") { | 3 | if (djqxbm == "A0320099" || djqxbm == "A0330099") { |
4 | return "selectJsydsyqSplitMerge"; | 4 | return "selectJsydsyqSplitMerge"; |
... | @@ -83,6 +83,17 @@ export function queueDjywmc(djywbm, djqxbm) { | ... | @@ -83,6 +83,17 @@ export function queueDjywmc(djywbm, djqxbm) { |
83 | case "B41400": //预告抵押注销 | 83 | case "B41400": //预告抵押注销 |
84 | vm = "selectYgdy"; | 84 | vm = "selectYgdy"; |
85 | break; | 85 | break; |
86 | case "C40100": //一并申请首次 | ||
87 | vm = "selectYbsc"; | ||
88 | break; | ||
89 | case "C40300": //一并申请变更 | ||
90 | case "C40400": //一并申请注销 | ||
91 | vm = "selectYbbg"; | ||
92 | break; | ||
93 | case "C04372": //一并国有房屋变更 | ||
94 | case "C04371": //一并国有房屋转移 | ||
95 | vm = "selectYbgybg"; | ||
96 | break; | ||
86 | default: | 97 | default: |
87 | vm = "selecBdcql"; | 98 | vm = "selecBdcql"; |
88 | break; | 99 | break; | ... | ... |
-
Please register or sign in to post a comment