受理申请
Showing
2 changed files
with
123 additions
and
121 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2024-02-02 14:56:22 | 4 | * @LastEditTime: 2024-02-06 14:43:33 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -76,7 +76,7 @@ | ... | @@ -76,7 +76,7 @@ |
76 | </div> | 76 | </div> |
77 | <div class="submit_button"> | 77 | <div class="submit_button"> |
78 | <el-button @click="$popupCacel">取消</el-button> | 78 | <el-button @click="$popupCacel">取消</el-button> |
79 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> | 79 | <el-button type="primary" plain @click="handleAdd" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> |
80 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-else>发起申请</el-button> | 80 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-else>发起申请</el-button> |
81 | </div> | 81 | </div> |
82 | </div> | 82 | </div> |
... | @@ -155,6 +155,35 @@ | ... | @@ -155,6 +155,35 @@ |
155 | * @description: submitForm | 155 | * @description: submitForm |
156 | * @author: renchao | 156 | * @author: renchao |
157 | */ | 157 | */ |
158 | handleAdd () { | ||
159 | let that = this | ||
160 | this.loading = true; | ||
161 | store.dispatch('user/reMenuRefresh', false) | ||
162 | againAddSldy({ | ||
163 | bsmSqyw: that.sqywInfo.bsmSqyw, | ||
164 | bdcdysz: that.bdcdysz, | ||
165 | bsmSlsq: that.sqywInfo.bsmSlsq, | ||
166 | }).then(res => { | ||
167 | that.loading = false | ||
168 | if (res.code == 200) { | ||
169 | if (this.sqywInfo.sqywdylx != "1") { | ||
170 | that.bdcdysz = [] | ||
171 | that.$refs.table.clearSelection() | ||
172 | } | ||
173 | store.dispatch('user/reMenuRefresh', true) | ||
174 | that.queryClick() | ||
175 | that.$message({ | ||
176 | showClose: true, | ||
177 | message: '添加成功', | ||
178 | type: 'success' | ||
179 | }) | ||
180 | } else { | ||
181 | that.$message.error(res.message); | ||
182 | } | ||
183 | }).catch(() => { | ||
184 | that.loading = false | ||
185 | }) | ||
186 | }, | ||
158 | submitForm () { | 187 | submitForm () { |
159 | let that = this | 188 | let that = this |
160 | if (this.bdcdysz.length == 0) { | 189 | if (this.bdcdysz.length == 0) { |
... | @@ -162,83 +191,55 @@ | ... | @@ -162,83 +191,55 @@ |
162 | return; | 191 | return; |
163 | } | 192 | } |
164 | this.loading = true | 193 | this.loading = true |
165 | if (this.sqywInfo.isworkFrame) { | 194 | if (!that.isJump) { |
166 | store.dispatch('user/reMenuRefresh', false) | 195 | startBusinessFlow({ |
167 | againAddSldy({ | ||
168 | bsmSqyw: that.sqywInfo.bsmSqyw, | 196 | bsmSqyw: that.sqywInfo.bsmSqyw, |
169 | bdcdysz: that.bdcdysz, | 197 | bdcdysz: that.bdcdysz, |
170 | bsmSlsq: that.sqywInfo.bsmSlsq, | 198 | }).then((res) => { |
171 | }).then(res => { | ||
172 | that.loading = false | 199 | that.loading = false |
173 | if (res.code == 200) { | 200 | if (res.code == 200) { |
174 | if (this.sqywInfo.sqywdylx != "1") { | 201 | that.$message({ |
175 | that.bdcdysz = [] | 202 | showClose: true, |
176 | that.$refs.table.clearSelection() | 203 | message: "发起申请成功", |
204 | type: "success", | ||
205 | }); | ||
206 | if (!that.isJump) { | ||
207 | that.jump(res.result, that.sqywInfo.djywbm); | ||
208 | } else { | ||
209 | store.dispatch('user/refreshPage', true); | ||
210 | } | ||
211 | that.$popupCacel() | ||
212 | |||
213 | } else { | ||
214 | if (res.result && res.result.length > 0) { | ||
215 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
216 | } else { | ||
217 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
177 | } | 218 | } |
178 | store.dispatch('user/reMenuRefresh', true) | 219 | } |
179 | that.queryClick() | 220 | }).catch(() => { |
221 | that.loading = false | ||
222 | }) | ||
223 | } else { | ||
224 | choiceBdcdy({ | ||
225 | bsmSlsq: that.$route.query.bsmSlsq, | ||
226 | bdcdysz: that.bdcdysz, | ||
227 | }).then((res) => { | ||
228 | that.loading = false | ||
229 | if (res.code == 200) { | ||
180 | that.$message({ | 230 | that.$message({ |
181 | showClose: true, | 231 | showClose: true, |
182 | message: '添加成功', | 232 | message: "发起申请成功", |
183 | type: 'success' | 233 | type: "success", |
184 | }) | 234 | }); |
235 | store.dispatch("user/refreshPage", true); | ||
185 | } else { | 236 | } else { |
186 | that.$message.error(res.message); | 237 | that.$message.error(res.message); |
187 | } | 238 | } |
239 | that.$popupCacel(); | ||
188 | }).catch(() => { | 240 | }).catch(() => { |
189 | that.loading = false | 241 | that.loading = false |
190 | }) | 242 | }) |
191 | } else { | ||
192 | if (!that.isJump) { | ||
193 | startBusinessFlow({ | ||
194 | bsmSqyw: that.sqywInfo.bsmSqyw, | ||
195 | bdcdysz: that.bdcdysz, | ||
196 | }).then((res) => { | ||
197 | that.loading = false | ||
198 | if (res.code == 200) { | ||
199 | that.$message({ | ||
200 | showClose: true, | ||
201 | message: "发起申请成功", | ||
202 | type: "success", | ||
203 | }); | ||
204 | if (!that.isJump) { | ||
205 | that.jump(res.result, that.sqywInfo.djywbm); | ||
206 | } else { | ||
207 | store.dispatch('user/refreshPage', true); | ||
208 | } | ||
209 | that.$popupCacel() | ||
210 | |||
211 | } else { | ||
212 | if (res.result && res.result.length > 0) { | ||
213 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
214 | } else { | ||
215 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
216 | } | ||
217 | } | ||
218 | }).catch(() => { | ||
219 | that.loading = false | ||
220 | }) | ||
221 | } else { | ||
222 | choiceBdcdy({ | ||
223 | bsmSlsq: that.$route.query.bsmSlsq, | ||
224 | bdcdysz: that.bdcdysz, | ||
225 | }).then((res) => { | ||
226 | that.loading = false | ||
227 | if (res.code == 200) { | ||
228 | that.$message({ | ||
229 | showClose: true, | ||
230 | message: "发起申请成功", | ||
231 | type: "success", | ||
232 | }); | ||
233 | store.dispatch("user/refreshPage", true); | ||
234 | } else { | ||
235 | that.$message.error(res.message); | ||
236 | } | ||
237 | that.$popupCacel(); | ||
238 | }).catch(() => { | ||
239 | that.loading = false | ||
240 | }) | ||
241 | } | ||
242 | } | 243 | } |
243 | }, | 244 | }, |
244 | /** | 245 | /** | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2024-02-02 16:35:05 | 4 | * @LastEditTime: 2024-02-06 14:43:44 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <!-- 抵押权利信息查询 --> | 7 | <!-- 抵押权利信息查询 --> |
... | @@ -67,7 +67,7 @@ | ... | @@ -67,7 +67,7 @@ |
67 | </div> | 67 | </div> |
68 | <div class="submit_button"> | 68 | <div class="submit_button"> |
69 | <el-button @click="$popupCacel">取消</el-button> | 69 | <el-button @click="$popupCacel">取消</el-button> |
70 | <el-button type="primary" plain @click="submitFormClick()" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> | 70 | <el-button type="primary" plain @click="handleAdd" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> |
71 | <el-button type="primary" plain @click="submitFormClick()" :loading="loading" v-else>发起申请</el-button> | 71 | <el-button type="primary" plain @click="submitFormClick()" :loading="loading" v-else>发起申请</el-button> |
72 | </div> | 72 | </div> |
73 | </div> | 73 | </div> |
... | @@ -147,6 +147,35 @@ | ... | @@ -147,6 +147,35 @@ |
147 | * @description: submitFormClick | 147 | * @description: submitFormClick |
148 | * @author: renchao | 148 | * @author: renchao |
149 | */ | 149 | */ |
150 | handleAdd () { | ||
151 | let that = this | ||
152 | this.loading = true; | ||
153 | store.dispatch('user/reMenuRefresh', false) | ||
154 | againAddSldy({ | ||
155 | bsmSqyw: that.sqywInfo.bsmSqyw, | ||
156 | bdcdysz: that.bdcdysz, | ||
157 | bsmSlsq: that.sqywInfo.bsmSlsq, | ||
158 | }).then(res => { | ||
159 | that.loading = false | ||
160 | if (res.code == 200) { | ||
161 | if (this.sqywInfo.sqywdylx != "1") { | ||
162 | that.bdcdysz = [] | ||
163 | that.$refs.table.clearSelection() | ||
164 | } | ||
165 | store.dispatch('user/reMenuRefresh', true) | ||
166 | that.queryClick() | ||
167 | that.$message({ | ||
168 | showClose: true, | ||
169 | message: '添加成功', | ||
170 | type: 'success' | ||
171 | }) | ||
172 | } else { | ||
173 | that.$message.error(res.message); | ||
174 | } | ||
175 | }).catch(() => { | ||
176 | that.loading = false | ||
177 | }) | ||
178 | }, | ||
150 | submitFormClick () { | 179 | submitFormClick () { |
151 | let that = this | 180 | let that = this |
152 | if (this.bdcdysz.length == 0) { | 181 | if (this.bdcdysz.length == 0) { |
... | @@ -154,63 +183,35 @@ | ... | @@ -154,63 +183,35 @@ |
154 | return; | 183 | return; |
155 | } | 184 | } |
156 | this.loading = true; | 185 | this.loading = true; |
157 | if (this.sqywInfo.isworkFrame) { | 186 | startBusinessFlow({ |
158 | store.dispatch('user/reMenuRefresh', false) | 187 | bsmSqyw: this.sqywInfo.bsmSqyw, |
159 | againAddSldy({ | 188 | bdcdysz: this.bdcdysz, |
160 | bsmSqyw: that.sqywInfo.bsmSqyw, | 189 | // djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
161 | bdcdysz: that.bdcdysz, | 190 | // djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
162 | bsmSlsq: that.sqywInfo.bsmSlsq, | 191 | }).then((res) => { |
163 | }).then(res => { | 192 | this.loading = false |
164 | that.loading = false | 193 | if (res.code == 200) { |
165 | if (res.code == 200) { | 194 | that.$message({ |
166 | if (this.sqywInfo.sqywdylx != "1") { | 195 | showClose: true, |
167 | that.bdcdysz = [] | 196 | message: "发起申请成功", |
168 | that.$refs.table.clearSelection() | 197 | type: "success", |
169 | } | 198 | }); |
170 | store.dispatch('user/reMenuRefresh', true) | 199 | if (!that.isJump) { |
171 | that.queryClick() | 200 | that.jump(res.result, that.sqywInfo.djywbm); |
172 | that.$message({ | ||
173 | showClose: true, | ||
174 | message: '添加成功', | ||
175 | type: 'success' | ||
176 | }) | ||
177 | } else { | 201 | } else { |
178 | that.$message.error(res.message); | 202 | store.dispatch('user/refreshPage', true); |
179 | } | 203 | } |
180 | }).catch(() => { | 204 | that.$popupCacel() |
181 | that.loading = false | 205 | } else { |
182 | }) | 206 | if (res.result && res.result.length > 0) { |
183 | } else { | 207 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) |
184 | startBusinessFlow({ | ||
185 | bsmSqyw: this.sqywInfo.bsmSqyw, | ||
186 | bdcdysz: this.bdcdysz, | ||
187 | // djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
188 | // djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
189 | }).then((res) => { | ||
190 | this.loading = false | ||
191 | if (res.code == 200) { | ||
192 | that.$message({ | ||
193 | showClose: true, | ||
194 | message: "发起申请成功", | ||
195 | type: "success", | ||
196 | }); | ||
197 | if (!that.isJump) { | ||
198 | that.jump(res.result, that.sqywInfo.djywbm); | ||
199 | } else { | ||
200 | store.dispatch('user/refreshPage', true); | ||
201 | } | ||
202 | that.$popupCacel() | ||
203 | } else { | 208 | } else { |
204 | if (res.result && res.result.length > 0) { | 209 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) |
205 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
206 | } else { | ||
207 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
208 | } | ||
209 | } | 210 | } |
210 | }).catch(() => { | 211 | } |
211 | this.loading = false | 212 | }).catch(() => { |
212 | }) | 213 | this.loading = false |
213 | } | 214 | }) |
214 | }, | 215 | }, |
215 | /** | 216 | /** |
216 | * @description: handleSelectionChange | 217 | * @description: handleSelectionChange | ... | ... |
-
Please register or sign in to post a comment