fwsyq中楼盘表发起申请
Showing
1 changed file
with
29 additions
and
27 deletions
| ... | @@ -225,39 +225,41 @@ export default { | ... | @@ -225,39 +225,41 @@ export default { |
| 225 | * @author: renchao | 225 | * @author: renchao |
| 226 | */ | 226 | */ |
| 227 | submitForm () { | 227 | submitForm () { |
| 228 | debugger | ||
| 229 | if (this.bsmList.length == 0) { | 228 | if (this.bsmList.length == 0) { |
| 230 | this.$message.error("请至少选择一条数据"); | 229 | this.$message.error("请至少选择一条数据"); |
| 231 | return; | 230 | return; |
| 232 | } | 231 | } |
| 233 | this.loading = true | 232 | this.loading = true |
| 234 | startBusinessFlow({ | 233 | this.bsmList.forEach(item=>{ |
| 235 | bsmSqyw: this.sqywInfo.bsmSqyw, | 234 | item['bdcdyid'] = item.dyhbsm |
| 236 | bdcdysz: this.bsmList, | 235 | }) |
| 237 | }).then((res) => { | 236 | startBusinessFlow({ |
| 238 | this.loading = false | 237 | bsmSqyw: this.sqywInfo.bsmSqyw, |
| 239 | if (res.code == 200) { | 238 | bdcdysz: this.bsmList, |
| 240 | this.$message({ | 239 | }).then((res) => { |
| 241 | showClose: true, | 240 | this.loading = false |
| 242 | message: '发起申请成功', | 241 | if (res.code == 200) { |
| 243 | type: 'success' | 242 | this.$message({ |
| 244 | }) | 243 | showClose: true, |
| 245 | if (!this.isJump) { | 244 | message: '发起申请成功', |
| 246 | this.jump(res.result, this.sqywInfo.djywbm) | 245 | type: 'success' |
| 247 | } else { | 246 | }) |
| 248 | store.dispatch('user/refreshPage', true); | 247 | if (!this.isJump) { |
| 249 | } | 248 | this.jump(res.result, this.sqywInfo.djywbm) |
| 250 | this.$popupCacel() | ||
| 251 | } else { | 249 | } else { |
| 252 | if (res.result && res.result.length > 0) { | 250 | store.dispatch('user/refreshPage', true); |
| 253 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
| 254 | } else { | ||
| 255 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
| 256 | } | ||
| 257 | } | 251 | } |
| 258 | }).catch(() => { | 252 | this.$popupCacel() |
| 259 | this.loading = false | 253 | } else { |
| 260 | }) | 254 | if (res.result && res.result.length > 0) { |
| 255 | this.$popup("申请错误明细", "components/ywdialog", { width:'36%', formData:{result: res.result} }) | ||
| 256 | } else { | ||
| 257 | this.$popup("申请错误明细", "components/ywdialog", { width:'36%', formData:{message: res.message} }) | ||
| 258 | } | ||
| 259 | } | ||
| 260 | }).catch(() => { | ||
| 261 | this.loading = false | ||
| 262 | }) | ||
| 261 | }, | 263 | }, |
| 262 | }, | 264 | }, |
| 263 | computed:{ | 265 | computed:{ | ... | ... |
-
Please register or sign in to post a comment