style:转出
Showing
2 changed files
with
86 additions
and
95 deletions
... | @@ -26,45 +26,43 @@ | ... | @@ -26,45 +26,43 @@ |
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: { |
52 | formData: { | 49 | formData: { |
53 | type: Object, | 50 | type: Object, |
54 | default: {}, | 51 | default: {}, |
52 | }, | ||
55 | }, | 53 | }, |
56 | }, | ||
57 | computed: { | 54 | computed: { |
58 | ...mapGetters(['yjsqOptions']) | 55 | ...mapGetters(['yjsqOptions']) |
59 | }, | 56 | }, |
60 | data() { | 57 | data () { |
61 | return { | 58 | return { |
62 | queryForm: {}, | 59 | loading: false, |
63 | shyj: "", | 60 | queryForm: {}, |
64 | }; | 61 | shyj: "", |
65 | }, | 62 | }; |
63 | }, | ||
66 | 64 | ||
67 | watch: { | 65 | watch: { |
68 | // yjsqOptions: { | 66 | // yjsqOptions: { |
69 | // handler (val) { | 67 | // handler (val) { |
70 | // if(val){ | 68 | // if(val){ |
... | @@ -74,82 +72,78 @@ export default { | ... | @@ -74,82 +72,78 @@ 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 | }, | ||
80 | methods: { | ||
81 | /** | ||
82 | * @description: submitForm | ||
83 | * @author: renchao | ||
84 | */ | ||
85 | commonOpinion() { | ||
86 | this.$popupDialog( | ||
87 | "常用意见", | ||
88 | "workflow/components/dialog/commonOpinion", | ||
89 | {}, | ||
90 | "70%", | ||
91 | true | ||
92 | ); | ||
93 | }, | ||
94 | submitForm() { | ||
95 | this.queryForm = { | ||
96 | bsmSlsq: this.formData.bsmSlsq, | ||
97 | shyj: this.shyj, | ||
98 | stepform: JSON.stringify(this.formData.tabList), | ||
99 | }; | ||
100 | completeTask(this.queryForm).then((res) => { | ||
101 | if (res.code === 200) { | ||
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(); | ||
110 | setTimeout(() => { | ||
111 | // window.opener.location.reload(); //刷新父窗口 | ||
112 | if (window.opener && window.opener.getBpageList) { | ||
113 | window.opener.getBpageList(); | ||
114 | } else { | ||
115 | window.opener.frames[0].getBpageList(); | ||
116 | } | ||
117 | window.close(); | ||
118 | this.$emit("input", false); | ||
119 | }, 1000); | ||
120 | } else { | ||
121 | this.$message.error(res.message); | ||
122 | } | ||
123 | }); | ||
124 | }, | 77 | }, |
78 | methods: { | ||
79 | /** | ||
80 | * @description: submitForm | ||
81 | * @author: renchao | ||
82 | */ | ||
83 | commonOpinion () { | ||
84 | this.$popupDialog( | ||
85 | "常用意见", | ||
86 | "workflow/components/dialog/commonOpinion", | ||
87 | {}, | ||
88 | "70%", | ||
89 | true | ||
90 | ); | ||
91 | }, | ||
92 | submitForm () { | ||
93 | this.loading = true | ||
94 | this.queryForm = { | ||
95 | bsmSlsq: this.formData.bsmSlsq, | ||
96 | shyj: this.shyj, | ||
97 | stepform: JSON.stringify(this.formData.tabList), | ||
98 | }; | ||
99 | completeTask(this.queryForm).then((res) => { | ||
100 | this.loading = false | ||
101 | if (res.code === 200) { | ||
102 | this.$message.success("转件成功"); | ||
103 | popupCacel(); | ||
104 | setTimeout(() => { | ||
105 | // window.opener.location.reload(); //刷新父窗口 | ||
106 | if (window.opener && window.opener.getBpageList) { | ||
107 | window.opener.getBpageList(); | ||
108 | } else { | ||
109 | window.opener.frames[0].getBpageList(); | ||
110 | } | ||
111 | window.close(); | ||
112 | this.$emit("input", false); | ||
113 | }, 1000); | ||
114 | } else { | ||
115 | this.$message.error(res.message); | ||
116 | } | ||
117 | }).catch(() => { | ||
118 | this.loading = false | ||
119 | }) | ||
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(); |
128 | }, | ||
132 | }, | 129 | }, |
133 | }, | 130 | }; |
134 | }; | ||
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 | |||
143 | .opinion { | ||
144 | position: relative; | ||
145 | font-size: 14px; | ||
146 | |||
147 | 138 | ||
148 | } | 139 | .opinion { |
140 | position: relative; | ||
141 | font-size: 14px; | ||
142 | } | ||
149 | 143 | ||
150 | .opinion_btn { | 144 | .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