Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev
Showing
6 changed files
with
164 additions
and
196 deletions
| ... | @@ -4,82 +4,109 @@ | ... | @@ -4,82 +4,109 @@ |
| 4 | * @LastEditTime: 2023-05-17 10:42:01 | 4 | * @LastEditTime: 2023-05-17 10:42:01 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <dialogBox title="转出" @submitForm="submitForm" saveButton="确认转出" width="45%" height='30%' @closeDialog="closeDialog" | ||
| 8 | v-model="value"> | ||
| 9 | <div class="from-clues"> | 7 | <div class="from-clues"> |
| 10 | <!-- 表单部分 --> | 8 | <!-- 表单部分 --> |
| 11 | <div class="from-clues-header"> | 9 | <div class="from-clues-header"> |
| 12 | <el-form :model="queryForm" ref="queryForm" label-width="120px"> | 10 | <el-form ref="queryForm" label-width="180px" v-if="this.formData.obj"> |
| 13 | <el-form-item label="下一环节名称:"> | 11 | <el-form-item label="下一环节名称:"> |
| 14 | {{this.tableData.taskName}} | 12 | {{ this.formData.obj.taskName }} |
| 15 | </el-form-item> | 13 | </el-form-item> |
| 16 | <el-form-item label="下一环节办理人:"> | 14 | <el-form-item label="下一环节办理人:"> |
| 17 | {{this.usernames}} | 15 | {{ this.formData.obj.usernames.join(",") }} |
| 16 | </el-form-item> | ||
| 17 | </el-form> | ||
| 18 | <el-form ref="queryForm" label-width="180px" v-else> | ||
| 19 | <el-form-item label=""> | ||
| 20 | 此环节为流程最后环节,转出后流程将结束 | ||
| 18 | </el-form-item> | 21 | </el-form-item> |
| 19 | |||
| 20 | </el-form> | 22 | </el-form> |
| 23 | <div class="invalid-reson">转出原因:</div> | ||
| 24 | <el-input | ||
| 25 | v-model="shyj" | ||
| 26 | placeholder="请输入转出原因" | ||
| 27 | type="textarea" | ||
| 28 | :rows="4" | ||
| 29 | ></el-input> | ||
| 30 | <el-button style="float: right" @click="cancelBack">取消转出</el-button> | ||
| 31 | <el-button type="primary" @click="submitForm" style="float: right" | ||
| 32 | >确定转出</el-button | ||
| 33 | > | ||
| 21 | </div> | 34 | </div> |
| 22 | </div> | 35 | </div> |
| 23 | </dialogBox> | ||
| 24 | </template> | 36 | </template> |
| 25 | 37 | ||
| 26 | <script> | 38 | <script> |
| 27 | import { completeTask, getNextLinkInfo } from "@/api/workFlow.js" | 39 | import { completeTask, getNextLinkInfo } from "@/api/workFlow.js"; |
| 28 | export default { | 40 | import { popupCacel } from "@/utils/popup.js"; |
| 29 | components: { | 41 | export default { |
| 30 | }, | 42 | components: {}, |
| 31 | props: { | 43 | props: { |
| 32 | value: { type: Boolean, default: false }, | 44 | formData: { |
| 33 | queryForm: { type: Object, default: false } | 45 | type: Object, |
| 46 | default: {}, | ||
| 47 | }, | ||
| 34 | }, | 48 | }, |
| 35 | data () { | 49 | data() { |
| 36 | return { | 50 | return { |
| 37 | tableData: {}, | 51 | queryForm: {}, |
| 38 | usernames: '', | 52 | shyj: "", |
| 39 | } | 53 | }; |
| 40 | }, | 54 | }, |
| 41 | methods: { | 55 | mounted() { |
| 42 | /** | 56 | // this.queryForm= this.queryForm.obj |
| 43 | * @description: tablelistFn | 57 | console.log("formDataformDataformData", this.formData); |
| 44 | * @author: renchao | ||
| 45 | */ | ||
| 46 | tablelistFn () { | ||
| 47 | getNextLinkInfo(this.queryForm).then(res => { | ||
| 48 | if (res.code === 200) { | ||
| 49 | this.tableData = res.result | ||
| 50 | if (res.result.usernames) { | ||
| 51 | this.usernames = String(res.result.usernames) | ||
| 52 | } | ||
| 53 | } | ||
| 54 | }) | ||
| 55 | }, | 58 | }, |
| 59 | methods: { | ||
| 56 | /** | 60 | /** |
| 57 | * @description: submitForm | 61 | * @description: submitForm |
| 58 | * @author: renchao | 62 | * @author: renchao |
| 59 | */ | 63 | */ |
| 60 | submitForm () { | 64 | submitForm() { |
| 61 | completeTask(this.queryForm).then(res => { | 65 | this.queryForm = { |
| 66 | bsmSlsq: this.formData.bsmSlsq, | ||
| 67 | shyj: this.shyj, | ||
| 68 | stepform: JSON.stringify(this.formData.tabList), | ||
| 69 | }; | ||
| 70 | console.log("this.queryForm", this.queryForm); | ||
| 71 | completeTask(this.queryForm).then((res) => { | ||
| 62 | if (res.code === 200) { | 72 | if (res.code === 200) { |
| 63 | this.$message.success('转件成功') | 73 | this.$message.success("转件成功"); |
| 74 | // setTimeout(() => { | ||
| 75 | // window.opener = null; | ||
| 76 | // window.open("about:blank", "_self"); | ||
| 77 | // window.close(); | ||
| 78 | // this.$emit("input", false); | ||
| 79 | // }, 1000); | ||
| 80 | popupCacel(); | ||
| 64 | setTimeout(() => { | 81 | setTimeout(() => { |
| 65 | window.opener = null; | 82 | // window.opener.location.reload(); //刷新父窗口 |
| 66 | window.open("about:blank", "_self"); | 83 | if (window.opener && window.opener.getBpageList) { |
| 84 | window.opener.getBpageList(); | ||
| 85 | } else { | ||
| 86 | window.opener.frames[0].getBpageList(); | ||
| 87 | } | ||
| 67 | window.close(); | 88 | window.close(); |
| 68 | this.$emit('input', false) | 89 | this.$emit("input", false); |
| 69 | }, 1000); | 90 | }, 1000); |
| 91 | }else{ | ||
| 92 | this.$message.error(res.message); | ||
| 70 | } | 93 | } |
| 71 | }) | 94 | }); |
| 72 | }, | 95 | }, |
| 73 | /** | 96 | /** |
| 74 | * @description: closeDialog | 97 | * @description: closeDialog |
| 75 | * @author: renchao | 98 | * @author: renchao |
| 76 | */ | 99 | */ |
| 77 | closeDialog () { | 100 | cancelBack() { |
| 78 | this.$emit("input", false); | 101 | popupCacel(); |
| 79 | }, | 102 | }, |
| 80 | } | 103 | }, |
| 81 | } | 104 | }; |
| 82 | </script> | 105 | </script> |
| 83 | <style scoped lang="scss"> | 106 | <style scoped lang="scss"> |
| 84 | @import "~@/styles/mixin.scss"; | 107 | @import "~@/styles/mixin.scss"; |
| 108 | .el-button { | ||
| 109 | margin-top: 20px; | ||
| 110 | margin-right: 10px; | ||
| 111 | } | ||
| 85 | </style> | 112 | </style> | ... | ... |
| ... | @@ -403,7 +403,7 @@ export default { | ... | @@ -403,7 +403,7 @@ export default { |
| 403 | djjgrules: [{ required: true, message: "登记机构", trigger: "blur" }], | 403 | djjgrules: [{ required: true, message: "登记机构", trigger: "blur" }], |
| 404 | dbrrules: [{ required: true, message: "登簿人", trigger: "blur" }], | 404 | dbrrules: [{ required: true, message: "登簿人", trigger: "blur" }], |
| 405 | djsjrules: [{ required: true, message: "登记时间", trigger: "blur" }], | 405 | djsjrules: [{ required: true, message: "登记时间", trigger: "blur" }], |
| 406 | djlxrules: [{ required: true, message: "登记类型", trigger: "blur" }], | 406 | djlxrules: [{ required: true, message: "登记类型", trigger: "change" }], |
| 407 | }, | 407 | }, |
| 408 | }; | 408 | }; |
| 409 | }, | 409 | }, | ... | ... |
| ... | @@ -325,18 +325,25 @@ export default { | ... | @@ -325,18 +325,25 @@ export default { |
| 325 | * @author: renchao | 325 | * @author: renchao |
| 326 | */ | 326 | */ |
| 327 | sendToNext (obj) { | 327 | sendToNext (obj) { |
| 328 | this.$popupDialog("转出", "workflow/components/zc", { | 328 | this.$popupDialog("转出", "djbworkflow/components/zc", { |
| 329 | obj:obj, | ||
| 329 | bsmSlsq: this.bsmSlsq, | 330 | bsmSlsq: this.bsmSlsq, |
| 330 | bestepid: this.bestepid | 331 | tabList: this.tabList |
| 331 | }, '800px', true) | 332 | }, '800px', true) |
| 332 | }, | 333 | }, |
| 334 | //转出最后一个流程 | ||
| 333 | /** | 335 | /** |
| 334 | * @description: sendToEnd | 336 | * @description: 转出最后一个流程 |
| 335 | * @author: renchao | 337 | * @author: renchao |
| 336 | */ | 338 | */ |
| 337 | sendToEnd () { | 339 | sendToEnd () { |
| 338 | 340 | this.$popupDialog("转出", "djbworkflow/components/zc", { | |
| 341 | obj:"", | ||
| 342 | bsmSlsq: this.bsmSlsq, | ||
| 343 | tabList: this.tabList | ||
| 344 | }, '800px', true) | ||
| 339 | }, | 345 | }, |
| 346 | |||
| 340 | //批量操作 | 347 | //批量操作 |
| 341 | /** | 348 | /** |
| 342 | * @description: 批量操作 | 349 | * @description: 批量操作 | ... | ... |
| ... | @@ -4,82 +4,109 @@ | ... | @@ -4,82 +4,109 @@ |
| 4 | * @LastEditTime: 2023-05-17 10:42:01 | 4 | * @LastEditTime: 2023-05-17 10:42:01 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <dialogBox title="转出" @submitForm="submitForm" saveButton="确认转出" width="45%" height='30%' @closeDialog="closeDialog" | ||
| 8 | v-model="value"> | ||
| 9 | <div class="from-clues"> | 7 | <div class="from-clues"> |
| 10 | <!-- 表单部分 --> | 8 | <!-- 表单部分 --> |
| 11 | <div class="from-clues-header"> | 9 | <div class="from-clues-header"> |
| 12 | <el-form :model="queryForm" ref="queryForm" label-width="120px"> | 10 | <el-form ref="queryForm" label-width="180px" v-if="this.formData.obj"> |
| 13 | <el-form-item label="下一环节名称:"> | 11 | <el-form-item label="下一环节名称:"> |
| 14 | {{this.tableData.taskName}} | 12 | {{ this.formData.obj.taskName }} |
| 15 | </el-form-item> | 13 | </el-form-item> |
| 16 | <el-form-item label="下一环节办理人:"> | 14 | <el-form-item label="下一环节办理人:"> |
| 17 | {{this.usernames}} | 15 | {{ this.formData.obj.usernames.join(",") }} |
| 16 | </el-form-item> | ||
| 17 | </el-form> | ||
| 18 | <el-form ref="queryForm" label-width="180px" v-else> | ||
| 19 | <el-form-item label=""> | ||
| 20 | 此环节为流程最后环节,转出后流程将结束 | ||
| 18 | </el-form-item> | 21 | </el-form-item> |
| 19 | |||
| 20 | </el-form> | 22 | </el-form> |
| 23 | <div class="invalid-reson">转出原因:</div> | ||
| 24 | <el-input | ||
| 25 | v-model="shyj" | ||
| 26 | placeholder="请输入转出原因" | ||
| 27 | type="textarea" | ||
| 28 | :rows="4" | ||
| 29 | ></el-input> | ||
| 30 | <el-button style="float: right" @click="cancelBack">取消转出</el-button> | ||
| 31 | <el-button type="primary" @click="submitForm" style="float: right" | ||
| 32 | >确定转出</el-button | ||
| 33 | > | ||
| 21 | </div> | 34 | </div> |
| 22 | </div> | 35 | </div> |
| 23 | </dialogBox> | ||
| 24 | </template> | 36 | </template> |
| 25 | 37 | ||
| 26 | <script> | 38 | <script> |
| 27 | import { completeTask, getNextLinkInfo } from "@/api/workFlow.js" | 39 | import { completeTask, getNextLinkInfo } from "@/api/workFlow.js"; |
| 28 | export default { | 40 | import { popupCacel } from "@/utils/popup.js"; |
| 29 | components: { | 41 | export default { |
| 30 | }, | 42 | components: {}, |
| 31 | props: { | 43 | props: { |
| 32 | value: { type: Boolean, default: false }, | 44 | formData: { |
| 33 | queryForm: { type: Object, default: false } | 45 | type: Object, |
| 46 | default: {}, | ||
| 47 | }, | ||
| 34 | }, | 48 | }, |
| 35 | data () { | 49 | data() { |
| 36 | return { | 50 | return { |
| 37 | tableData: {}, | 51 | queryForm: {}, |
| 38 | usernames: '', | 52 | shyj: "", |
| 39 | } | 53 | }; |
| 40 | }, | 54 | }, |
| 41 | methods: { | 55 | mounted() { |
| 42 | /** | 56 | // this.queryForm= this.queryForm.obj |
| 43 | * @description: tablelistFn | 57 | console.log("formDataformDataformData", this.formData); |
| 44 | * @author: renchao | ||
| 45 | */ | ||
| 46 | tablelistFn () { | ||
| 47 | getNextLinkInfo(this.queryForm).then(res => { | ||
| 48 | if (res.code === 200) { | ||
| 49 | this.tableData = res.result | ||
| 50 | if (res.result.usernames) { | ||
| 51 | this.usernames = String(res.result.usernames) | ||
| 52 | } | ||
| 53 | } | ||
| 54 | }) | ||
| 55 | }, | 58 | }, |
| 59 | methods: { | ||
| 56 | /** | 60 | /** |
| 57 | * @description: submitForm | 61 | * @description: submitForm |
| 58 | * @author: renchao | 62 | * @author: renchao |
| 59 | */ | 63 | */ |
| 60 | submitForm () { | 64 | submitForm() { |
| 61 | completeTask(this.queryForm).then(res => { | 65 | this.queryForm = { |
| 66 | bsmSlsq: this.formData.bsmSlsq, | ||
| 67 | shyj: this.shyj, | ||
| 68 | stepform: JSON.stringify(this.formData.tabList), | ||
| 69 | }; | ||
| 70 | console.log("this.queryForm", this.queryForm); | ||
| 71 | completeTask(this.queryForm).then((res) => { | ||
| 62 | if (res.code === 200) { | 72 | if (res.code === 200) { |
| 63 | this.$message.success('转件成功') | 73 | this.$message.success("转件成功"); |
| 74 | // setTimeout(() => { | ||
| 75 | // window.opener = null; | ||
| 76 | // window.open("about:blank", "_self"); | ||
| 77 | // window.close(); | ||
| 78 | // this.$emit("input", false); | ||
| 79 | // }, 1000); | ||
| 80 | popupCacel(); | ||
| 64 | setTimeout(() => { | 81 | setTimeout(() => { |
| 65 | window.opener = null; | 82 | // window.opener.location.reload(); //刷新父窗口 |
| 66 | window.open("about:blank", "_self"); | 83 | if (window.opener && window.opener.getBpageList) { |
| 84 | window.opener.getBpageList(); | ||
| 85 | } else { | ||
| 86 | window.opener.frames[0].getBpageList(); | ||
| 87 | } | ||
| 67 | window.close(); | 88 | window.close(); |
| 68 | this.$emit('input', false) | 89 | this.$emit("input", false); |
| 69 | }, 1000); | 90 | }, 1000); |
| 91 | }else{ | ||
| 92 | this.$message.error(res.message); | ||
| 70 | } | 93 | } |
| 71 | }) | 94 | }); |
| 72 | }, | 95 | }, |
| 73 | /** | 96 | /** |
| 74 | * @description: closeDialog | 97 | * @description: closeDialog |
| 75 | * @author: renchao | 98 | * @author: renchao |
| 76 | */ | 99 | */ |
| 77 | closeDialog () { | 100 | cancelBack() { |
| 78 | this.$emit("input", false); | 101 | popupCacel(); |
| 79 | }, | 102 | }, |
| 80 | } | 103 | }, |
| 81 | } | 104 | }; |
| 82 | </script> | 105 | </script> |
| 83 | <style scoped lang="scss"> | 106 | <style scoped lang="scss"> |
| 84 | @import "~@/styles/mixin.scss"; | 107 | @import "~@/styles/mixin.scss"; |
| 108 | .el-button { | ||
| 109 | margin-top: 20px; | ||
| 110 | margin-right: 10px; | ||
| 111 | } | ||
| 85 | </style> | 112 | </style> | ... | ... |
| ... | @@ -274,109 +274,24 @@ export default { | ... | @@ -274,109 +274,24 @@ export default { |
| 274 | * @author: renchao | 274 | * @author: renchao |
| 275 | */ | 275 | */ |
| 276 | sendToNext (obj) { | 276 | sendToNext (obj) { |
| 277 | const h = this.$createElement; | 277 | this.$popupDialog("转出", "djbworkflow/components/zc", { |
| 278 | this.$msgbox({ | 278 | obj:obj, |
| 279 | title: "您确定转出吗?", | ||
| 280 | message: h("div", { style: "margin: auto" }, [ | ||
| 281 | h("span", null, "下个环节名称:"), | ||
| 282 | h("i", { style: "color: teal" }, obj.taskName), | ||
| 283 | h("div", null, ""), | ||
| 284 | h("span", null, "下个环节经办人: "), | ||
| 285 | h("i", { style: "color: teal" }, obj.usernames.join(",")), | ||
| 286 | ]), | ||
| 287 | showCancelButton: true, | ||
| 288 | beforeClose: (action, instance, done) => { | ||
| 289 | if (action === "confirm") { | ||
| 290 | instance.confirmButtonLoading = true; | ||
| 291 | instance.confirmButtonText = "执行中..."; | ||
| 292 | completeTask({ | ||
| 293 | bsmSlsq: this.bsmSlsq, | 279 | bsmSlsq: this.bsmSlsq, |
| 294 | shyj: "this.bestepid", | 280 | tabList: this.tabList |
| 295 | stepform: JSON.stringify(this.tabList), | 281 | }, '800px', true) |
| 296 | }).then((res) => { | ||
| 297 | if (res.code === 200) { | ||
| 298 | instance.confirmButtonLoading = false; | ||
| 299 | this.$message.success("转件成功"); | ||
| 300 | // window.opener.location.reload(); //刷新父窗口 | ||
| 301 | if (window.opener && window.opener.getBpageList) { | ||
| 302 | window.opener.getBpageList(); | ||
| 303 | } else { | ||
| 304 | window.opener.frames[0].getBpageList(); | ||
| 305 | } | ||
| 306 | window.close(); | ||
| 307 | this.$emit("input", false); | ||
| 308 | } else { | ||
| 309 | instance.confirmButtonLoading = false; | ||
| 310 | instance.confirmButtonText = "确定"; | ||
| 311 | let msgArr = res.message.split(';'), | ||
| 312 | listMsg = [] | ||
| 313 | msgArr.forEach(item => { | ||
| 314 | let parts = item.split(':') | ||
| 315 | listMsg.push({ ywh: parts[0], msg: parts[1] }) | ||
| 316 | }) | ||
| 317 | this.$msgbox.close() | ||
| 318 | ywPopupDialog("转出错误明细", "workflow/components/dialog/dblist", { result: listMsg }, '33%', true) | ||
| 319 | } | ||
| 320 | }); | ||
| 321 | } else { | ||
| 322 | done(); | ||
| 323 | } | ||
| 324 | }, | ||
| 325 | }).then((action) => { | ||
| 326 | this.$message({ | ||
| 327 | type: "info", | ||
| 328 | message: "action: " + action, | ||
| 329 | }); | ||
| 330 | }); | ||
| 331 | }, | 282 | }, |
| 283 | //转出最后一个流程 | ||
| 332 | /** | 284 | /** |
| 333 | * @description: sendToEnd | 285 | * @description: 转出最后一个流程 |
| 286 | * @param {*} obj | ||
| 334 | * @author: renchao | 287 | * @author: renchao |
| 335 | */ | 288 | */ |
| 336 | sendToEnd () { | 289 | sendToNext (obj) { |
| 337 | let that = this | 290 | this.$popupDialog("转出", "djbworkflow/components/zc", { |
| 338 | const h = this.$createElement; | 291 | obj:"", |
| 339 | this.$msgbox({ | ||
| 340 | title: "您确定转出吗?", | ||
| 341 | message: "此环节为流程最后环节,转出后流程将结束", | ||
| 342 | showCancelButton: true, | ||
| 343 | beforeClose: (action, instance, done) => { | ||
| 344 | if (action === "confirm") { | ||
| 345 | instance.confirmButtonLoading = true; | ||
| 346 | instance.confirmButtonText = "执行中..."; | ||
| 347 | completeTask({ | ||
| 348 | bsmSlsq: this.bsmSlsq, | 292 | bsmSlsq: this.bsmSlsq, |
| 349 | shyj: "this.bestepid", | 293 | tabList: this.tabList |
| 350 | stepform: JSON.stringify(this.tabList), | 294 | }, '800px', true) |
| 351 | }).then((res) => { | ||
| 352 | if (res.code === 200) { | ||
| 353 | instance.confirmButtonLoading = false; | ||
| 354 | that.$message.success("转件成功"); | ||
| 355 | localStorage.setItem('transfer', true) | ||
| 356 | // window.opener.location.reload(); //刷新父窗口 | ||
| 357 | if (window.opener && window.opener.getBpageList) { | ||
| 358 | window.opener.getBpageList(); | ||
| 359 | } else { | ||
| 360 | window.opener.frames[0].getBpageList(); | ||
| 361 | } | ||
| 362 | window.close(); | ||
| 363 | that.$emit("input", false); | ||
| 364 | } else { | ||
| 365 | instance.confirmButtonLoading = false; | ||
| 366 | instance.confirmButtonText = "确定"; | ||
| 367 | this.$message.error(res.message); | ||
| 368 | } | ||
| 369 | }) | ||
| 370 | } else { | ||
| 371 | done(); | ||
| 372 | } | ||
| 373 | }, | ||
| 374 | }).then((action) => { | ||
| 375 | this.$message({ | ||
| 376 | type: "info", | ||
| 377 | message: "action: " + action | ||
| 378 | }) | ||
| 379 | }) | ||
| 380 | }, | 295 | }, |
| 381 | //批量操作 | 296 | //批量操作 |
| 382 | /** | 297 | /** | ... | ... |
-
Please register or sign in to post a comment