style:转出
Showing
2 changed files
with
26 additions
and
35 deletions
| ... | @@ -26,26 +26,23 @@ | ... | @@ -26,26 +26,23 @@ |
| 26 | v-model="shyj" | 26 | v-model="shyj" |
| 27 | placeholder="请输入审批意见" | 27 | placeholder="请输入审批意见" |
| 28 | type="textarea" | 28 | type="textarea" |
| 29 | :rows="4" | 29 | :rows="4"></el-input> |
| 30 | ></el-input> | ||
| 31 | <!-- <el-button | 30 | <!-- <el-button |
| 32 | class="opinion_btn" | 31 | class="opinion_btn" |
| 33 | @click="commonOpinion" | 32 | @click="commonOpinion" |
| 34 | >常用意见</el-button | 33 | >常用意见</el-button |
| 35 | > --> | 34 | > --> |
| 36 | <el-button style="float: right" @click="cancelBack">取消转出</el-button> | 35 | <el-button style="float: right" @click="cancelBack">取消转出</el-button> |
| 37 | <el-button type="primary" @click="submitForm" style="float: right" | 36 | <el-button type="primary" @click="submitForm" :loading="loading" style="float: right">确定转出</el-button> |
| 38 | >确定转出</el-button | ||
| 39 | > | ||
| 40 | </div> | 37 | </div> |
| 41 | </div> | 38 | </div> |
| 42 | </template> | 39 | </template> |
| 43 | 40 | ||
| 44 | <script> | 41 | <script> |
| 45 | import { completeTask, getNextLinkInfo } from "@/api/workFlow.js"; | 42 | import { completeTask, getNextLinkInfo } from "@/api/workFlow.js"; |
| 46 | import { popupCacel } from "@/utils/popup.js"; | 43 | import { popupCacel } from "@/utils/popup.js"; |
| 47 | import { mapGetters } from 'vuex' | 44 | import { mapGetters } from 'vuex' |
| 48 | export default { | 45 | export default { |
| 49 | components: {}, | 46 | components: {}, |
| 50 | 47 | ||
| 51 | props: { | 48 | props: { |
| ... | @@ -57,8 +54,9 @@ export default { | ... | @@ -57,8 +54,9 @@ export default { |
| 57 | computed: { | 54 | computed: { |
| 58 | ...mapGetters(['yjsqOptions']) | 55 | ...mapGetters(['yjsqOptions']) |
| 59 | }, | 56 | }, |
| 60 | data() { | 57 | data () { |
| 61 | return { | 58 | return { |
| 59 | loading: false, | ||
| 62 | queryForm: {}, | 60 | queryForm: {}, |
| 63 | shyj: "", | 61 | shyj: "", |
| 64 | }; | 62 | }; |
| ... | @@ -74,7 +72,7 @@ export default { | ... | @@ -74,7 +72,7 @@ export default { |
| 74 | // }, | 72 | // }, |
| 75 | // }, | 73 | // }, |
| 76 | }, | 74 | }, |
| 77 | mounted() { | 75 | mounted () { |
| 78 | // this.queryForm= this.queryForm.obj | 76 | // this.queryForm= this.queryForm.obj |
| 79 | }, | 77 | }, |
| 80 | methods: { | 78 | methods: { |
| ... | @@ -82,7 +80,7 @@ export default { | ... | @@ -82,7 +80,7 @@ export default { |
| 82 | * @description: submitForm | 80 | * @description: submitForm |
| 83 | * @author: renchao | 81 | * @author: renchao |
| 84 | */ | 82 | */ |
| 85 | commonOpinion() { | 83 | commonOpinion () { |
| 86 | this.$popupDialog( | 84 | this.$popupDialog( |
| 87 | "常用意见", | 85 | "常用意见", |
| 88 | "workflow/components/dialog/commonOpinion", | 86 | "workflow/components/dialog/commonOpinion", |
| ... | @@ -91,21 +89,17 @@ export default { | ... | @@ -91,21 +89,17 @@ export default { |
| 91 | true | 89 | true |
| 92 | ); | 90 | ); |
| 93 | }, | 91 | }, |
| 94 | submitForm() { | 92 | submitForm () { |
| 93 | this.loading = true | ||
| 95 | this.queryForm = { | 94 | this.queryForm = { |
| 96 | bsmSlsq: this.formData.bsmSlsq, | 95 | bsmSlsq: this.formData.bsmSlsq, |
| 97 | shyj: this.shyj, | 96 | shyj: this.shyj, |
| 98 | stepform: JSON.stringify(this.formData.tabList), | 97 | stepform: JSON.stringify(this.formData.tabList), |
| 99 | }; | 98 | }; |
| 100 | completeTask(this.queryForm).then((res) => { | 99 | completeTask(this.queryForm).then((res) => { |
| 100 | this.loading = false | ||
| 101 | if (res.code === 200) { | 101 | if (res.code === 200) { |
| 102 | this.$message.success("转件成功"); | 102 | this.$message.success("转件成功"); |
| 103 | // setTimeout(() => { | ||
| 104 | // window.opener = null; | ||
| 105 | // window.open("about:blank", "_self"); | ||
| 106 | // window.close(); | ||
| 107 | // this.$emit("input", false); | ||
| 108 | // }, 1000); | ||
| 109 | popupCacel(); | 103 | popupCacel(); |
| 110 | setTimeout(() => { | 104 | setTimeout(() => { |
| 111 | // window.opener.location.reload(); //刷新父窗口 | 105 | // window.opener.location.reload(); //刷新父窗口 |
| ... | @@ -120,36 +114,36 @@ export default { | ... | @@ -120,36 +114,36 @@ export default { |
| 120 | } else { | 114 | } else { |
| 121 | this.$message.error(res.message); | 115 | this.$message.error(res.message); |
| 122 | } | 116 | } |
| 123 | }); | 117 | }).catch(() => { |
| 118 | this.loading = false | ||
| 119 | }) | ||
| 124 | }, | 120 | }, |
| 125 | 121 | ||
| 126 | /** | 122 | /** |
| 127 | * @description: closeDialog | 123 | * @description: closeDialog |
| 128 | * @author: renchao | 124 | * @author: renchao |
| 129 | */ | 125 | */ |
| 130 | cancelBack() { | 126 | cancelBack () { |
| 131 | popupCacel(); | 127 | popupCacel(); |
| 132 | }, | 128 | }, |
| 133 | }, | 129 | }, |
| 134 | }; | 130 | }; |
| 135 | </script> | 131 | </script> |
| 136 | <style scoped lang="scss"> | 132 | <style scoped lang="scss"> |
| 137 | @import "~@/styles/mixin.scss"; | 133 | @import "~@/styles/mixin.scss"; |
| 138 | .el-button { | 134 | .el-button { |
| 139 | margin-top: 20px; | 135 | margin-top: 20px; |
| 140 | margin-right: 10px; | 136 | margin-right: 10px; |
| 141 | } | 137 | } |
| 142 | 138 | ||
| 143 | .opinion { | 139 | .opinion { |
| 144 | position: relative; | 140 | position: relative; |
| 145 | font-size: 14px; | 141 | font-size: 14px; |
| 142 | } | ||
| 146 | 143 | ||
| 147 | 144 | .opinion_btn { | |
| 148 | } | ||
| 149 | |||
| 150 | .opinion_btn { | ||
| 151 | position: absolute; | 145 | position: absolute; |
| 152 | right: 35px; | 146 | right: 35px; |
| 153 | bottom: 80px; | 147 | bottom: 80px; |
| 154 | } | 148 | } |
| 155 | </style> | 149 | </style> | ... | ... |
| ... | @@ -201,7 +201,6 @@ | ... | @@ -201,7 +201,6 @@ |
| 201 | this.btnDisabled = true; | 201 | this.btnDisabled = true; |
| 202 | } | 202 | } |
| 203 | }, | 203 | }, |
| 204 | //获取下个节点类型数据 | ||
| 205 | /** | 204 | /** |
| 206 | * @description: 获取下个节点类型数据 | 205 | * @description: 获取下个节点类型数据 |
| 207 | * @param {*} bsmSqyw | 206 | * @param {*} bsmSqyw |
| ... | @@ -226,7 +225,6 @@ | ... | @@ -226,7 +225,6 @@ |
| 226 | }) | 225 | }) |
| 227 | }, | 226 | }, |
| 228 | 227 | ||
| 229 | //获取下个节点类型数据 | ||
| 230 | /** | 228 | /** |
| 231 | * @description: 获取下个节点类型数据 | 229 | * @description: 获取下个节点类型数据 |
| 232 | * @author: renchao | 230 | * @author: renchao |
| ... | @@ -305,7 +303,6 @@ | ... | @@ -305,7 +303,6 @@ |
| 305 | }) | 303 | }) |
| 306 | item.cselect = !item.cselect | 304 | item.cselect = !item.cselect |
| 307 | }, | 305 | }, |
| 308 | // 登记类型 | ||
| 309 | /** | 306 | /** |
| 310 | * @description: 登记类型 | 307 | * @description: 登记类型 |
| 311 | * @param {*} item | 308 | * @param {*} item | ... | ... |
-
Please register or sign in to post a comment