Merge branch 'dev'
Showing
5 changed files
with
294 additions
and
321 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-25 09:21:53 | 4 | * @LastEditTime: 2023-08-23 15:07:51 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -10,8 +10,7 @@ | ... | @@ -10,8 +10,7 @@ |
10 | :model="queryForm" | 10 | :model="queryForm" |
11 | ref="queryForm" | 11 | ref="queryForm" |
12 | @submit.native.prevent | 12 | @submit.native.prevent |
13 | label-width="100px" | 13 | label-width="100px"> |
14 | > | ||
15 | <el-row> | 14 | <el-row> |
16 | <el-col :span="5"> | 15 | <el-col :span="5"> |
17 | <el-form-item label="业务来源"> | 16 | <el-form-item label="业务来源"> |
... | @@ -22,14 +21,12 @@ | ... | @@ -22,14 +21,12 @@ |
22 | @change="handleSelect('ywly', 'ywlymc', 'ywly')" | 21 | @change="handleSelect('ywly', 'ywlymc', 'ywly')" |
23 | @clear="handleEmpty('ywlymc')" | 22 | @clear="handleEmpty('ywlymc')" |
24 | clearable | 23 | clearable |
25 | placeholder="请选择业务来源" | 24 | placeholder="请选择业务来源"> |
26 | > | ||
27 | <el-option | 25 | <el-option |
28 | v-for="item in dictData['ywly']" | 26 | v-for="item in dictData['ywly']" |
29 | :key="item.dcode" | 27 | :key="item.dcode" |
30 | :label="item.dname" | 28 | :label="item.dname" |
31 | :value="item.dcode" | 29 | :value="item.dcode"> |
32 | > | ||
33 | </el-option> | 30 | </el-option> |
34 | </el-select> | 31 | </el-select> |
35 | </el-form-item> | 32 | </el-form-item> |
... | @@ -43,14 +40,12 @@ | ... | @@ -43,14 +40,12 @@ |
43 | @clear="handleEmpty('qllxmc')" | 40 | @clear="handleEmpty('qllxmc')" |
44 | filterable | 41 | filterable |
45 | clearable | 42 | clearable |
46 | placeholder="请选择权利类型" | 43 | placeholder="请选择权利类型"> |
47 | > | ||
48 | <el-option | 44 | <el-option |
49 | v-for="item in dictData['A8']" | 45 | v-for="item in dictData['A8']" |
50 | :key="item.dcode" | 46 | :key="item.dcode" |
51 | :label="item.dname" | 47 | :label="item.dname" |
52 | :value="item.dcode" | 48 | :value="item.dcode"> |
53 | > | ||
54 | </el-option> | 49 | </el-option> |
55 | </el-select> | 50 | </el-select> |
56 | </el-form-item> | 51 | </el-form-item> |
... | @@ -64,14 +59,12 @@ | ... | @@ -64,14 +59,12 @@ |
64 | @clear="handleEmpty('djlxmc')" | 59 | @clear="handleEmpty('djlxmc')" |
65 | filterable | 60 | filterable |
66 | clearable | 61 | clearable |
67 | placeholder="请选择登记类型" | 62 | placeholder="请选择登记类型"> |
68 | > | ||
69 | <el-option | 63 | <el-option |
70 | v-for="item in dictData['A21']" | 64 | v-for="item in dictData['A21']" |
71 | :key="item.dcode" | 65 | :key="item.dcode" |
72 | :label="item.dname" | 66 | :label="item.dname" |
73 | :value="item.dcode" | 67 | :value="item.dcode"> |
74 | > | ||
75 | </el-option> | 68 | </el-option> |
76 | </el-select> | 69 | </el-select> |
77 | </el-form-item> | 70 | </el-form-item> |
... | @@ -82,8 +75,7 @@ | ... | @@ -82,8 +75,7 @@ |
82 | placeholder="请输入业务号" | 75 | placeholder="请输入业务号" |
83 | v-model="queryForm.ywh" | 76 | v-model="queryForm.ywh" |
84 | clearable | 77 | clearable |
85 | class="width100" | 78 | class="width100"> |
86 | > | ||
87 | </el-input> | 79 | </el-input> |
88 | </el-form-item> | 80 | </el-form-item> |
89 | </el-col> | 81 | </el-col> |
... | @@ -93,9 +85,7 @@ | ... | @@ -93,9 +85,7 @@ |
93 | <el-button | 85 | <el-button |
94 | type="primary" | 86 | type="primary" |
95 | native-type="submit" | 87 | native-type="submit" |
96 | @click="handleSearch" | 88 | @click="handleSearch">查询</el-button> |
97 | >查询</el-button | ||
98 | > | ||
99 | <el-button @click="moreQueryClick">高级查询</el-button> | 89 | <el-button @click="moreQueryClick">高级查询</el-button> |
100 | </el-form-item> | 90 | </el-form-item> |
101 | </el-col> | 91 | </el-col> |
... | @@ -107,8 +97,7 @@ | ... | @@ -107,8 +97,7 @@ |
107 | placeholder="请输入不动产单元号" | 97 | placeholder="请输入不动产单元号" |
108 | v-model="queryForm.bdcdyh" | 98 | v-model="queryForm.bdcdyh" |
109 | clearable | 99 | clearable |
110 | class="width100" | 100 | class="width100"> |
111 | > | ||
112 | </el-input> | 101 | </el-input> |
113 | </el-form-item> | 102 | </el-form-item> |
114 | </el-col> | 103 | </el-col> |
... | @@ -118,8 +107,7 @@ | ... | @@ -118,8 +107,7 @@ |
118 | placeholder="如需要模糊查询,前后输入%" | 107 | placeholder="如需要模糊查询,前后输入%" |
119 | v-model="queryForm.sqrmc" | 108 | v-model="queryForm.sqrmc" |
120 | clearable | 109 | clearable |
121 | class="width100" | 110 | class="width100"> |
122 | > | ||
123 | </el-input> | 111 | </el-input> |
124 | </el-form-item> | 112 | </el-form-item> |
125 | </el-col> | 113 | </el-col> |
... | @@ -129,8 +117,7 @@ | ... | @@ -129,8 +117,7 @@ |
129 | placeholder="如需要模糊查询,前后输入%" | 117 | placeholder="如需要模糊查询,前后输入%" |
130 | v-model="queryForm.sqrzjhm" | 118 | v-model="queryForm.sqrzjhm" |
131 | clearable | 119 | clearable |
132 | class="width100" | 120 | class="width100"> |
133 | > | ||
134 | </el-input> | 121 | </el-input> |
135 | </el-form-item> | 122 | </el-form-item> |
136 | </el-col> | 123 | </el-col> |
... | @@ -140,8 +127,7 @@ | ... | @@ -140,8 +127,7 @@ |
140 | placeholder="如需要模糊查询,前后输入%" | 127 | placeholder="如需要模糊查询,前后输入%" |
141 | v-model.trim="queryForm.zl" | 128 | v-model.trim="queryForm.zl" |
142 | clearable | 129 | clearable |
143 | class="width100" | 130 | class="width100"> |
144 | > | ||
145 | </el-input> | 131 | </el-input> |
146 | </el-form-item> | 132 | </el-form-item> |
147 | </el-col> | 133 | </el-col> |
... | @@ -153,16 +139,14 @@ | ... | @@ -153,16 +139,14 @@ |
153 | {{ item.name }}:{{ item.value }} | 139 | {{ item.name }}:{{ item.value }} |
154 | <i | 140 | <i |
155 | class="el-icon-circle-close" | 141 | class="el-icon-circle-close" |
156 | @click="handelItem(item, index)" | 142 | @click="handelItem(item, index)"></i> |
157 | ></i> | ||
158 | </li> | 143 | </li> |
159 | </ul> | 144 | </ul> |
160 | <el-button | 145 | <el-button |
161 | class="clean-btn" | 146 | class="clean-btn" |
162 | type="text" | 147 | type="text" |
163 | v-if="searchList.length > 0" | 148 | v-if="searchList.length > 0" |
164 | @click.native="hanldeCleanAll" | 149 | @click.native="hanldeCleanAll">清除全部 |
165 | >清除全部 | ||
166 | </el-button> | 150 | </el-button> |
167 | </el-row> | 151 | </el-row> |
168 | </el-form> | 152 | </el-form> |
... | @@ -177,152 +161,149 @@ | ... | @@ -177,152 +161,149 @@ |
177 | @size-change="handleSizeChange" | 161 | @size-change="handleSizeChange" |
178 | @p-current-change="handleCurrentChange" | 162 | @p-current-change="handleCurrentChange" |
179 | :column="tableData.columns" | 163 | :column="tableData.columns" |
180 | :data="tableData.data" | 164 | :data="tableData.data"> |
181 | > | ||
182 | </lb-table> | 165 | </lb-table> |
183 | </div> | 166 | </div> |
184 | <searchBox | 167 | <searchBox |
185 | v-model="isSearch" | 168 | v-model="isSearch" |
186 | @getSearch="getSearch" | 169 | @getSearch="getSearch" |
187 | :advancedForm="otherForm" | 170 | :advancedForm="otherForm" /> |
188 | /> | ||
189 | </div> | 171 | </div> |
190 | </template> | 172 | </template> |
191 | <script> | 173 | <script> |
192 | import { mapGetters } from "vuex"; | 174 | import { mapGetters } from "vuex"; |
193 | import searchBox from "../components/search.vue"; | 175 | import searchBox from "../components/search.vue"; |
194 | import table from "@/utils/mixin/table"; | 176 | import table from "@/utils/mixin/table"; |
195 | import searchMin from "../components/mixin/index"; | 177 | import searchMin from "../components/mixin/index"; |
196 | import { datas, sendThis } from "./dbxdata"; | 178 | import { datas, sendThis } from "./dbxdata"; |
197 | import { searchTaskToDo } from "@/api/workflow/search.js"; | 179 | import { searchTaskToDo } from "@/api/workflow/search.js"; |
198 | import { | 180 | import { |
199 | judgeUserTaskPermission, | 181 | judgeUserTaskPermission, |
200 | deleteFlow, | 182 | deleteFlow, |
201 | claimTask, | 183 | claimTask, |
202 | } from "@/api/workFlow.js"; | 184 | } from "@/api/workFlow.js"; |
203 | export default { | 185 | export default { |
204 | name: "dbx", | 186 | components: { searchBox }, |
205 | components: { searchBox }, | 187 | mixins: [table, searchMin], |
206 | mixins: [table, searchMin], | 188 | computed: { |
207 | computed: { | 189 | ...mapGetters(["dictData", "transfer"]), |
208 | ...mapGetters(["dictData", "transfer"]), | ||
209 | }, | ||
210 | data() { | ||
211 | return { | ||
212 | queryForm: {}, | ||
213 | searchForm: { | ||
214 | ywlymc: "", | ||
215 | qllxmc: "", | ||
216 | djlxmc: "", | ||
217 | ywh: "", | ||
218 | }, | ||
219 | tableData: { | ||
220 | total: 0, | ||
221 | columns: datas.columns(), | ||
222 | data: [], | ||
223 | }, | ||
224 | jumpid: "", | ||
225 | }; | ||
226 | }, | ||
227 | mounted() { | ||
228 | sendThis(this); | ||
229 | }, | ||
230 | watch: { | ||
231 | queryForm: { | ||
232 | handler(newName, oldName) {}, | ||
233 | immediate: true, | ||
234 | }, | 190 | }, |
235 | }, | 191 | data () { |
236 | activated() { | 192 | return { |
237 | this.queryClick(); | 193 | queryForm: {}, |
238 | window["getBpageList"] = () => { | 194 | searchForm: { |
239 | this.queryClick(); | 195 | ywlymc: "", |
240 | }; | 196 | qllxmc: "", |
241 | }, | 197 | djlxmc: "", |
242 | methods: { | 198 | ywh: "", |
243 | // 列表渲染接口 | 199 | }, |
244 | /** | 200 | tableData: { |
245 | * @description: 列表渲染接口 | 201 | total: 0, |
246 | * @author: renchao | 202 | columns: datas.columns(), |
247 | */ | 203 | data: [], |
248 | queryClick() { | 204 | }, |
249 | this.$startLoading(); | 205 | jumpid: "", |
250 | this.searchForm.ywh = this.queryForm.ywh; | 206 | }; |
251 | this.iterationData(); | ||
252 | searchTaskToDo({ | ||
253 | ...this.queryForm, | ||
254 | ...this.otherForm, | ||
255 | ...this.pageData, | ||
256 | }).then((res) => { | ||
257 | this.$endLoading(); | ||
258 | if (res.code === 200) { | ||
259 | let { total, records } = res.result; | ||
260 | this.tableData.total = total ? total : 0; | ||
261 | this.tableData.data = records ? records : []; | ||
262 | } | ||
263 | }); | ||
264 | }, | 207 | }, |
265 | /** | 208 | mounted () { |
266 | * @description: handleSort | 209 | sendThis(this); |
267 | * @param {*} val | 210 | }, |
268 | * @author: renchao | 211 | watch: { |
269 | */ | 212 | queryForm: { |
270 | handleSort(val) { | 213 | handler (newName, oldName) { }, |
271 | this.queryForm.sortField = val.prop; | 214 | immediate: true, |
272 | this.queryForm.sortOrder = val.order == "ascending" ? "asc" : "desc"; | 215 | }, |
216 | }, | ||
217 | activated () { | ||
273 | this.queryClick(); | 218 | this.queryClick(); |
219 | window["getBpageList"] = () => { | ||
220 | this.queryClick(); | ||
221 | }; | ||
274 | }, | 222 | }, |
275 | /** | 223 | methods: { |
276 | * @description: del | 224 | // 列表渲染接口 |
277 | * @param {*} item | 225 | /** |
278 | * @author: renchao | 226 | * @description: 列表渲染接口 |
279 | */ | 227 | * @author: renchao |
280 | del(item) { | 228 | */ |
281 | let formdata = new FormData(); | 229 | queryClick () { |
282 | formdata.append("bsmSlsq", item.bsmSlsq); | 230 | this.$startLoading(); |
283 | this.$confirm("确定要删除吗, 是否继续?", "提示", { | 231 | this.searchForm.ywh = this.queryForm.ywh; |
284 | confirmButtonText: "确定", | 232 | this.iterationData(); |
285 | cancelButtonText: "取消", | 233 | searchTaskToDo({ |
286 | type: "warning", | 234 | ...this.queryForm, |
287 | }) | 235 | ...this.otherForm, |
288 | .then(() => { | 236 | ...this.pageData, |
289 | deleteFlow(formdata).then((res) => { | 237 | }).then((res) => { |
290 | if (res.code === 200) { | 238 | this.$endLoading(); |
291 | this.handleDel(); | 239 | if (res.code === 200) { |
292 | this.$message({ | 240 | let { total, records } = res.result; |
293 | type: "success", | 241 | this.tableData.total = total ? total : 0; |
294 | message: "删除成功!", | 242 | this.tableData.data = records ? records : []; |
295 | }); | 243 | } |
296 | this.queryClick(); | 244 | }); |
297 | } else { | 245 | }, |
298 | this.$message.error(res.message); | 246 | /** |
299 | } | 247 | * @description: handleSort |
300 | }); | 248 | * @param {*} val |
249 | * @author: renchao | ||
250 | */ | ||
251 | handleSort (val) { | ||
252 | this.queryForm.sortField = val.prop; | ||
253 | this.queryForm.sortOrder = val.order == "ascending" ? "asc" : "desc"; | ||
254 | this.queryClick(); | ||
255 | }, | ||
256 | /** | ||
257 | * @description: del | ||
258 | * @param {*} item | ||
259 | * @author: renchao | ||
260 | */ | ||
261 | del (item) { | ||
262 | let formdata = new FormData(); | ||
263 | formdata.append("bsmSlsq", item.bsmSlsq); | ||
264 | this.$confirm("确定要删除吗, 是否继续?", "提示", { | ||
265 | confirmButtonText: "确定", | ||
266 | cancelButtonText: "取消", | ||
267 | type: "warning", | ||
301 | }) | 268 | }) |
302 | .catch(() => { | 269 | .then(() => { |
303 | this.$message({ | 270 | deleteFlow(formdata).then((res) => { |
304 | type: "info", | 271 | if (res.code === 200) { |
305 | message: "已取消删除", | 272 | this.handleDel(); |
273 | this.$message({ | ||
274 | type: "success", | ||
275 | message: "删除成功!", | ||
276 | }); | ||
277 | this.queryClick(); | ||
278 | } else { | ||
279 | this.$message.error(res.message); | ||
280 | } | ||
281 | }); | ||
282 | }) | ||
283 | .catch(() => { | ||
284 | this.$message({ | ||
285 | type: "info", | ||
286 | message: "已取消删除", | ||
287 | }); | ||
306 | }); | 288 | }); |
307 | }); | 289 | }, |
308 | }, | 290 | /** |
309 | /** | 291 | * @description: ywhClick |
310 | * @description: ywhClick | 292 | * @param {*} item |
311 | * @param {*} item | 293 | * @author: renchao |
312 | * @author: renchao | 294 | */ |
313 | */ | 295 | ywhClick (item) { |
314 | ywhClick(item) { | 296 | //判断用户是否拥有该任务的权限,若有则跳转,无权限则给予提示并刷新页面 |
315 | //判断用户是否拥有该任务的权限,若有则跳转,无权限则给予提示并刷新页面 | 297 | judgeUserTaskPermission({ |
316 | judgeUserTaskPermission({ | 298 | bsmSlsq: item.bsmSlsq, |
317 | bsmSlsq: item.bsmSlsq, | 299 | bestepid: item.bestepid, |
318 | bestepid: item.bestepid, | 300 | }).then((res) => { |
319 | }).then((res) => { | 301 | if (res.code == 200) { |
320 | if (res.code == 200) { | 302 | if (res.result) { |
321 | if (res.result) { | 303 | //有任务权限 |
322 | //有任务权限 | 304 | if (item.sjlx == "3") { |
323 | if (item.sjlx == "3") { | 305 | const { href } = this.$router.resolve( |
324 | const { href } = this.$router.resolve( | 306 | "/djbworkFrame?bsmSlsq=" + |
325 | "/djbworkFrame?bsmSlsq=" + | ||
326 | item.bsmSlsq + | 307 | item.bsmSlsq + |
327 | "&bestepid=" + | 308 | "&bestepid=" + |
328 | item.bestepid + | 309 | item.bestepid + |
... | @@ -331,11 +312,11 @@ export default { | ... | @@ -331,11 +312,11 @@ export default { |
331 | item.djywbm + | 312 | item.djywbm + |
332 | "&zbhj=" + | 313 | "&zbhj=" + |
333 | item.zbhj | 314 | item.zbhj |
334 | ); | 315 | ); |
335 | window.open(href, `djbworkFrame${item.bsmSlsq}`); | 316 | window.open(href, `djbworkFrame${item.bsmSlsq}`); |
336 | } else { | 317 | } else { |
337 | const { href } = this.$router.resolve( | 318 | const { href } = this.$router.resolve( |
338 | "/workFrame?bsmSlsq=" + | 319 | "/workFrame?bsmSlsq=" + |
339 | item.bsmSlsq + | 320 | item.bsmSlsq + |
340 | "&bestepid=" + | 321 | "&bestepid=" + |
341 | item.bestepid + | 322 | item.bestepid + |
... | @@ -344,28 +325,28 @@ export default { | ... | @@ -344,28 +325,28 @@ export default { |
344 | item.djywbm + | 325 | item.djywbm + |
345 | "&zbhj=" + | 326 | "&zbhj=" + |
346 | item.zbhj | 327 | item.zbhj |
347 | ); | 328 | ); |
348 | window.open(href, `workFrame${item.bsmSlsq}`); | 329 | window.open(href, `workFrame${item.bsmSlsq}`); |
349 | } | 330 | } |
350 | 331 | ||
351 | localStorage.setItem("ywbl", JSON.stringify(item)); | 332 | localStorage.setItem("ywbl", JSON.stringify(item)); |
352 | 333 | ||
353 | //从待办箱进入的调取任务领取接口 | 334 | //从待办箱进入的调取任务领取接口 |
354 | claimTask(item.bsmSlsq, item.bestepid); | 335 | claimTask(item.bsmSlsq, item.bestepid); |
336 | } else { | ||
337 | //无任务权限 | ||
338 | this.$message.error("无该任务操作权限,或已被他人抢办,请重新操作"); | ||
339 | //刷新页面 | ||
340 | this.queryClick(); | ||
341 | } | ||
355 | } else { | 342 | } else { |
356 | //无任务权限 | 343 | this.$message.error("用户任务权限判断失败,请联系管理员"); |
357 | this.$message.error("无该任务操作权限,或已被他人抢办,请重新操作"); | ||
358 | //刷新页面 | ||
359 | this.queryClick(); | ||
360 | } | 344 | } |
361 | } else { | 345 | }); |
362 | this.$message.error("用户任务权限判断失败,请联系管理员"); | 346 | }, |
363 | } | ||
364 | }); | ||
365 | }, | 347 | }, |
366 | }, | 348 | }; |
367 | }; | ||
368 | </script> | 349 | </script> |
369 | <style scoped lang="scss"> | 350 | <style scoped lang="scss"> |
370 | @import "~@/styles/public.scss"; | 351 | @import "~@/styles/public.scss"; |
371 | </style> | 352 | </style> | ... | ... |
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-08 14:32:47 | 4 | * @LastEditTime: 2023-08-23 15:06:21 |
5 | */ | 5 | */ |
6 | import filter from '@/utils/filter.js' | 6 | import filter from '@/utils/filter.js' |
7 | let vm = null | 7 | let vm = null |
... | @@ -83,8 +83,8 @@ class data extends filter { | ... | @@ -83,8 +83,8 @@ class data extends filter { |
83 | { | 83 | { |
84 | prop: "zl", | 84 | prop: "zl", |
85 | label: "坐落", | 85 | label: "坐落", |
86 | minWidth: '130', | 86 | width: '150', |
87 | showOverflowTooltip: true | 87 | showOverflowTooltip: true, |
88 | }, | 88 | }, |
89 | { | 89 | { |
90 | prop: "slsj", | 90 | prop: "slsj", |
... | @@ -95,7 +95,7 @@ class data extends filter { | ... | @@ -95,7 +95,7 @@ class data extends filter { |
95 | { | 95 | { |
96 | prop: "slry", | 96 | prop: "slry", |
97 | label: "受理人员", | 97 | label: "受理人员", |
98 | width: '80' | 98 | minWidth: '80' |
99 | }, | 99 | }, |
100 | { | 100 | { |
101 | label: "转入时间", | 101 | label: "转入时间", | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-25 09:21:40 | 4 | * @LastEditTime: 2023-08-23 15:07:37 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -11,8 +11,7 @@ | ... | @@ -11,8 +11,7 @@ |
11 | :model="queryForm" | 11 | :model="queryForm" |
12 | ref="queryForm" | 12 | ref="queryForm" |
13 | @submit.native.prevent | 13 | @submit.native.prevent |
14 | label-width="80px" | 14 | label-width="80px"> |
15 | > | ||
16 | <el-row> | 15 | <el-row> |
17 | <el-col :span="5"> | 16 | <el-col :span="5"> |
18 | <el-form-item label="业务来源" label-width="70px"> | 17 | <el-form-item label="业务来源" label-width="70px"> |
... | @@ -23,14 +22,12 @@ | ... | @@ -23,14 +22,12 @@ |
23 | class="width100" | 22 | class="width100" |
24 | filterable | 23 | filterable |
25 | clearable | 24 | clearable |
26 | placeholder="请选择业务来源" | 25 | placeholder="请选择业务来源"> |
27 | > | ||
28 | <el-option | 26 | <el-option |
29 | v-for="item in dictData['ywly']" | 27 | v-for="item in dictData['ywly']" |
30 | :key="item.dcode" | 28 | :key="item.dcode" |
31 | :label="item.dname" | 29 | :label="item.dname" |
32 | :value="item.dcode" | 30 | :value="item.dcode"> |
33 | > | ||
34 | </el-option> | 31 | </el-option> |
35 | </el-select> | 32 | </el-select> |
36 | </el-form-item> | 33 | </el-form-item> |
... | @@ -44,14 +41,12 @@ | ... | @@ -44,14 +41,12 @@ |
44 | class="width100" | 41 | class="width100" |
45 | filterable | 42 | filterable |
46 | clearable | 43 | clearable |
47 | placeholder="请选择权利类型" | 44 | placeholder="请选择权利类型"> |
48 | > | ||
49 | <el-option | 45 | <el-option |
50 | v-for="item in dictData['A8']" | 46 | v-for="item in dictData['A8']" |
51 | :key="item.dcode" | 47 | :key="item.dcode" |
52 | :label="item.dname" | 48 | :label="item.dname" |
53 | :value="item.dcode" | 49 | :value="item.dcode"> |
54 | > | ||
55 | </el-option> | 50 | </el-option> |
56 | </el-select> | 51 | </el-select> |
57 | </el-form-item> | 52 | </el-form-item> |
... | @@ -65,14 +60,12 @@ | ... | @@ -65,14 +60,12 @@ |
65 | class="width100" | 60 | class="width100" |
66 | filterable | 61 | filterable |
67 | clearable | 62 | clearable |
68 | placeholder="请选择登记类型" | 63 | placeholder="请选择登记类型"> |
69 | > | ||
70 | <el-option | 64 | <el-option |
71 | v-for="item in dictData['A21']" | 65 | v-for="item in dictData['A21']" |
72 | :key="item.dcode" | 66 | :key="item.dcode" |
73 | :label="item.dname" | 67 | :label="item.dname" |
74 | :value="item.dcode" | 68 | :value="item.dcode"> |
75 | > | ||
76 | </el-option> | 69 | </el-option> |
77 | </el-select> | 70 | </el-select> |
78 | </el-form-item> | 71 | </el-form-item> |
... | @@ -83,8 +76,7 @@ | ... | @@ -83,8 +76,7 @@ |
83 | placeholder="请输入业务号" | 76 | placeholder="请输入业务号" |
84 | v-model="queryForm.ywh" | 77 | v-model="queryForm.ywh" |
85 | clearable | 78 | clearable |
86 | class="width200px" | 79 | class="width200px"> |
87 | > | ||
88 | </el-input> | 80 | </el-input> |
89 | </el-form-item> | 81 | </el-form-item> |
90 | </el-col> | 82 | </el-col> |
... | @@ -94,9 +86,7 @@ | ... | @@ -94,9 +86,7 @@ |
94 | <el-button | 86 | <el-button |
95 | type="primary" | 87 | type="primary" |
96 | native-type="submit" | 88 | native-type="submit" |
97 | @click="handleSearch" | 89 | @click="handleSearch">查询</el-button> |
98 | >查询</el-button | ||
99 | > | ||
100 | <el-button @click="moreQueryClick">高级查询</el-button> | 90 | <el-button @click="moreQueryClick">高级查询</el-button> |
101 | </el-form-item> | 91 | </el-form-item> |
102 | </el-col> | 92 | </el-col> |
... | @@ -108,16 +98,14 @@ | ... | @@ -108,16 +98,14 @@ |
108 | {{ item.name }}:{{ item.value }} | 98 | {{ item.name }}:{{ item.value }} |
109 | <i | 99 | <i |
110 | class="el-icon-circle-close" | 100 | class="el-icon-circle-close" |
111 | @click="handelItem(item, index)" | 101 | @click="handelItem(item, index)"></i> |
112 | ></i> | ||
113 | </li> | 102 | </li> |
114 | </ul> | 103 | </ul> |
115 | <el-button | 104 | <el-button |
116 | class="clean-btn" | 105 | class="clean-btn" |
117 | type="text" | 106 | type="text" |
118 | v-if="searchList.length > 0" | 107 | v-if="searchList.length > 0" |
119 | @click.native="hanldeCleanAll" | 108 | @click.native="hanldeCleanAll">清除全部 |
120 | >清除全部 | ||
121 | </el-button> | 109 | </el-button> |
122 | </el-row> | 110 | </el-row> |
123 | </el-form> | 111 | </el-form> |
... | @@ -134,131 +122,128 @@ | ... | @@ -134,131 +122,128 @@ |
134 | @size-change="handleSizeChange" | 122 | @size-change="handleSizeChange" |
135 | @p-current-change="handleCurrentChange" | 123 | @p-current-change="handleCurrentChange" |
136 | :column="tableData.columns" | 124 | :column="tableData.columns" |
137 | :data="tableData.data" | 125 | :data="tableData.data"> |
138 | > | ||
139 | </lb-table> | 126 | </lb-table> |
140 | </div> | 127 | </div> |
141 | <searchBox | 128 | <searchBox |
142 | v-model="isSearch" | 129 | v-model="isSearch" |
143 | @getSearch="getSearch" | 130 | @getSearch="getSearch" |
144 | :advancedForm="otherForm" | 131 | :advancedForm="otherForm" /> |
145 | /> | ||
146 | </div> | 132 | </div> |
147 | </template> | 133 | </template> |
148 | <script> | 134 | <script> |
149 | import { mapGetters } from "vuex"; | 135 | import { mapGetters } from "vuex"; |
150 | import searchMin from "../components/mixin/index"; | 136 | import searchMin from "../components/mixin/index"; |
151 | import table from "@/utils/mixin/table"; | 137 | import table from "@/utils/mixin/table"; |
152 | import { datas, sendThis } from "./ybxdata"; | 138 | import { datas, sendThis } from "./ybxdata"; |
153 | import { searchTaskDone } from "@/api/workflow/search.js"; | 139 | import { searchTaskDone } from "@/api/workflow/search.js"; |
154 | import searchBox from "../components/search.vue"; | 140 | import searchBox from "../components/search.vue"; |
155 | export default { | 141 | export default { |
156 | name: "ybx", | 142 | name: "ybx", |
157 | components: { searchBox }, | 143 | components: { searchBox }, |
158 | mixins: [table, searchMin], | 144 | mixins: [table, searchMin], |
159 | mounted() { | 145 | mounted () { |
160 | sendThis(this); | 146 | sendThis(this); |
161 | }, | 147 | }, |
162 | computed: { | 148 | computed: { |
163 | ...mapGetters(["dictData"]), | 149 | ...mapGetters(["dictData"]), |
164 | }, | ||
165 | data() { | ||
166 | return { | ||
167 | queryForm: { | ||
168 | ywly: "", | ||
169 | qllx: "", | ||
170 | djlx: "", | ||
171 | ywh: "", | ||
172 | }, | ||
173 | searchForm: { | ||
174 | ywlymc: "", | ||
175 | qllxmc: "", | ||
176 | djlxmc: "", | ||
177 | ywh: "", | ||
178 | }, | ||
179 | tableData: { | ||
180 | total: 0, | ||
181 | columns: datas.columns(), | ||
182 | data: [], | ||
183 | }, | ||
184 | }; | ||
185 | }, | ||
186 | activated() { | ||
187 | this.queryClick(); | ||
188 | window["getBpageList"] = () => { | ||
189 | this.queryClick(); | ||
190 | }; | ||
191 | }, | ||
192 | methods: { | ||
193 | // 列表渲染接口 | ||
194 | /** | ||
195 | * @description: 列表渲染接口 | ||
196 | * @author: renchao | ||
197 | */ | ||
198 | queryClick() { | ||
199 | this.$startLoading(); | ||
200 | this.searchForm.ywh = this.queryForm.ywh; | ||
201 | this.iterationData(); | ||
202 | searchTaskDone({ | ||
203 | ...this.queryForm, | ||
204 | ...this.otherForm, | ||
205 | ...this.pageData, | ||
206 | }).then((res) => { | ||
207 | this.$endLoading(); | ||
208 | if (res.code === 200) { | ||
209 | let { total, records } = res.result; | ||
210 | records.forEach((item) => { | ||
211 | item.qlrmc = item.qlrmc.join(","); | ||
212 | item.ywh = item.ywh.join(","); | ||
213 | item.zl = item.zl.join(","); | ||
214 | item.outstepdate = item.outstepdate[0]; | ||
215 | }); | ||
216 | this.tableData.total = total ? total : 0; | ||
217 | this.tableData.data = records ? records : []; | ||
218 | } | ||
219 | }); | ||
220 | }, | 150 | }, |
221 | /** | 151 | data () { |
222 | * @description: handleSort | 152 | return { |
223 | * @param {*} val | 153 | queryForm: { |
224 | * @author: renchao | 154 | ywly: "", |
225 | */ | 155 | qllx: "", |
226 | handleSort(val) { | 156 | djlx: "", |
227 | this.queryForm.sortField = val.prop; | 157 | ywh: "", |
228 | this.queryForm.sortOrder = val.order == "ascending" ? "asc" : "desc"; | 158 | }, |
159 | searchForm: { | ||
160 | ywlymc: "", | ||
161 | qllxmc: "", | ||
162 | djlxmc: "", | ||
163 | ywh: "", | ||
164 | }, | ||
165 | tableData: { | ||
166 | total: 0, | ||
167 | columns: datas.columns(), | ||
168 | data: [], | ||
169 | }, | ||
170 | }; | ||
171 | }, | ||
172 | activated () { | ||
229 | this.queryClick(); | 173 | this.queryClick(); |
174 | window["getBpageList"] = () => { | ||
175 | this.queryClick(); | ||
176 | }; | ||
230 | }, | 177 | }, |
231 | /** | 178 | methods: { |
232 | * @description: ywhClick | 179 | /** |
233 | * @param {*} item | 180 | * @description: 列表渲染接口 |
234 | * @author: renchao | 181 | * @author: renchao |
235 | */ | 182 | */ |
236 | ywhClick(item) { | 183 | queryClick () { |
237 | //有任务权限 | 184 | this.$startLoading(); |
238 | if (item.sjlx == "3") { | 185 | this.searchForm.ywh = this.queryForm.ywh; |
239 | item.djywbm = "DJBBL"; | 186 | this.iterationData(); |
240 | const { href } = this.$router.resolve( | 187 | searchTaskDone({ |
241 | "/djbworkFrameview?bsmSlsq=" + | 188 | ...this.queryForm, |
189 | ...this.otherForm, | ||
190 | ...this.pageData, | ||
191 | }).then((res) => { | ||
192 | this.$endLoading(); | ||
193 | if (res.code === 200) { | ||
194 | let { total, records } = res.result; | ||
195 | records.forEach((item) => { | ||
196 | item.qlrmc = item.qlrmc.join(","); | ||
197 | item.ywh = item.ywh.join(","); | ||
198 | item.zl = item.zl.join(","); | ||
199 | item.outstepdate = item.outstepdate[0]; | ||
200 | }); | ||
201 | this.tableData.total = total ? total : 0; | ||
202 | this.tableData.data = records ? records : []; | ||
203 | } | ||
204 | }); | ||
205 | }, | ||
206 | /** | ||
207 | * @description: handleSort | ||
208 | * @param {*} val | ||
209 | * @author: renchao | ||
210 | */ | ||
211 | handleSort (val) { | ||
212 | this.queryForm.sortField = val.prop; | ||
213 | this.queryForm.sortOrder = val.order == "ascending" ? "asc" : "desc"; | ||
214 | this.queryClick(); | ||
215 | }, | ||
216 | /** | ||
217 | * @description: ywhClick | ||
218 | * @param {*} item | ||
219 | * @author: renchao | ||
220 | */ | ||
221 | ywhClick (item) { | ||
222 | //有任务权限 | ||
223 | if (item.sjlx == "3") { | ||
224 | item.djywbm = "DJBBL"; | ||
225 | const { href } = this.$router.resolve( | ||
226 | "/djbworkFrameview?bsmSlsq=" + | ||
242 | item.bsmSlsq + | 227 | item.bsmSlsq + |
243 | "&bestepid=" + | 228 | "&bestepid=" + |
244 | item.bestepid + | 229 | item.bestepid + |
245 | "&sqywbm=" + | 230 | "&sqywbm=" + |
246 | item.djywbm | 231 | item.djywbm |
247 | ); | 232 | ); |
248 | window.open(href, `djbworkFrameview${item.bsmSlsq}`); | 233 | window.open(href, `djbworkFrameview${item.bsmSlsq}`); |
249 | } else { | 234 | } else { |
250 | const { href } = this.$router.resolve( | 235 | const { href } = this.$router.resolve( |
251 | "/workFrameView?bsmSlsq=" + | 236 | "/workFrameView?bsmSlsq=" + |
252 | item.bsmSlsq + | 237 | item.bsmSlsq + |
253 | "&bestepid=" + | 238 | "&bestepid=" + |
254 | item.bestepid | 239 | item.bestepid |
255 | ); | 240 | ); |
256 | window.open(href, `workFrameView${item.bsmSlsq}`); | 241 | window.open(href, `workFrameView${item.bsmSlsq}`); |
257 | } | 242 | } |
243 | }, | ||
258 | }, | 244 | }, |
259 | }, | 245 | }; |
260 | }; | ||
261 | </script> | 246 | </script> |
262 | <style scoped lang="scss"> | 247 | <style scoped lang="scss"> |
263 | @import "~@/styles/public.scss"; | 248 | @import "~@/styles/public.scss"; |
264 | </style> | 249 | </style> | ... | ... |
1 | /* | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-08-23 15:04:35 | ||
5 | */ | ||
1 | import filter from '@/utils/filter.js' | 6 | import filter from '@/utils/filter.js' |
2 | let vm = null | 7 | let vm = null |
3 | 8 | ||
... | @@ -57,6 +62,7 @@ class data extends filter { | ... | @@ -57,6 +62,7 @@ class data extends filter { |
57 | { | 62 | { |
58 | prop: "sqywmc", | 63 | prop: "sqywmc", |
59 | label: "申请业务名称", | 64 | label: "申请业务名称", |
65 | width: '150', | ||
60 | }, | 66 | }, |
61 | { | 67 | { |
62 | prop: "qlrmc", | 68 | prop: "qlrmc", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-23 14:53:01 | 4 | * @LastEditTime: 2023-08-23 14:56:57 |
5 | */ | 5 | */ |
6 | import filter from '@/utils/filter.js' | 6 | import filter from '@/utils/filter.js' |
7 | let vm = null | 7 | let vm = null |
... | @@ -99,7 +99,8 @@ class data extends filter { | ... | @@ -99,7 +99,8 @@ class data extends filter { |
99 | { | 99 | { |
100 | prop: "zl", | 100 | prop: "zl", |
101 | label: "坐落", | 101 | label: "坐落", |
102 | minWidth: '130' | 102 | width: '130', |
103 | showOverflowTooltip: true | ||
103 | }, | 104 | }, |
104 | { | 105 | { |
105 | label: '操作', | 106 | label: '操作', | ... | ... |
-
Please register or sign in to post a comment