修改一并申请登记业务逻辑代码
Showing
2 changed files
with
43 additions
and
12 deletions
| ... | @@ -67,7 +67,7 @@ | ... | @@ -67,7 +67,7 @@ |
| 67 | import { datas, sendThis } from "../javascript/selecBdcql.js"; | 67 | import { datas, sendThis } from "../javascript/selecBdcql.js"; |
| 68 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 68 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 69 | import { selectQlxx } from "@/api/ywsq.js"; | 69 | import { selectQlxx } from "@/api/ywsq.js"; |
| 70 | import { startBusinessFlow } from "@/api/workFlow.js"; | 70 | import { startBusinessFlow,startTogetherFlow } from "@/api/workFlow.js"; |
| 71 | import { getQllxByBsmSqyw } from "@/api/sysSqdjyw.js"; | 71 | import { getQllxByBsmSqyw } from "@/api/sysSqdjyw.js"; |
| 72 | export default { | 72 | export default { |
| 73 | mixins: [table, jump], | 73 | mixins: [table, jump], |
| ... | @@ -126,8 +126,37 @@ | ... | @@ -126,8 +126,37 @@ |
| 126 | this.$alert("请至少选择一条数据"); | 126 | this.$alert("请至少选择一条数据"); |
| 127 | return; | 127 | return; |
| 128 | } | 128 | } |
| 129 | this.loading = true | 129 | this.loading = true; |
| 130 | startBusinessFlow({ | 130 | if(this.sqywInfo.sqfl=='1'){ |
| 131 | startBusinessFlow({ | ||
| 132 | bsmSqyw: this.sqywInfo.bsmSqyw, | ||
| 133 | bdcdysz: this.bdcdysz, | ||
| 134 | }).then((res) => { | ||
| 135 | this.loading = false | ||
| 136 | if (res.code == 200) { | ||
| 137 | this.$message({ | ||
| 138 | showClose: true, | ||
| 139 | message: "发起申请成功", | ||
| 140 | type: "success", | ||
| 141 | }); | ||
| 142 | if (!this.isJump) { | ||
| 143 | this.jump(res.result, this.sqywInfo.djywbm); | ||
| 144 | } else { | ||
| 145 | store.dispatch('user/refreshPage', true); | ||
| 146 | } | ||
| 147 | this.$popupCacel() | ||
| 148 | } else { | ||
| 149 | if (res.result && res.result.length > 0) { | ||
| 150 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
| 151 | } else { | ||
| 152 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
| 153 | } | ||
| 154 | } | ||
| 155 | }).catch(() => { | ||
| 156 | this.loading = false | ||
| 157 | }) | ||
| 158 | }else{ | ||
| 159 | startTogetherFlow({ | ||
| 131 | bsmSqyw: this.sqywInfo.bsmSqyw, | 160 | bsmSqyw: this.sqywInfo.bsmSqyw, |
| 132 | bdcdysz: this.bdcdysz, | 161 | bdcdysz: this.bdcdysz, |
| 133 | }).then((res) => { | 162 | }).then((res) => { |
| ... | @@ -135,15 +164,15 @@ | ... | @@ -135,15 +164,15 @@ |
| 135 | if (res.code == 200) { | 164 | if (res.code == 200) { |
| 136 | this.$message({ | 165 | this.$message({ |
| 137 | showClose: true, | 166 | showClose: true, |
| 138 | message: "发起申请成功", | 167 | message: '发起申请成功', |
| 139 | type: "success", | 168 | type: 'success' |
| 140 | }); | 169 | }) |
| 141 | if (!this.isJump) { | 170 | if (!this.isJump) { |
| 142 | this.jump(res.result, this.sqywInfo.djywbm); | 171 | this.jump(res.result, this.sqywInfo.djywbm) |
| 143 | } else { | 172 | } else { |
| 144 | store.dispatch('user/refreshPage', true); | 173 | store.dispatch('user/refreshPage', true); |
| 174 | this.$popupCacel() | ||
| 145 | } | 175 | } |
| 146 | this.$popupCacel() | ||
| 147 | } else { | 176 | } else { |
| 148 | if (res.result && res.result.length > 0) { | 177 | if (res.result && res.result.length > 0) { |
| 149 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | 178 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) |
| ... | @@ -154,6 +183,8 @@ | ... | @@ -154,6 +183,8 @@ |
| 154 | }).catch(() => { | 183 | }).catch(() => { |
| 155 | this.loading = false | 184 | this.loading = false |
| 156 | }) | 185 | }) |
| 186 | } | ||
| 187 | |||
| 157 | }, | 188 | }, |
| 158 | /** | 189 | /** |
| 159 | * @description: handleSelectionChange | 190 | * @description: handleSelectionChange | ... | ... |
| ... | @@ -92,10 +92,10 @@ export function queueDjywmc (djywbm, djqxbm) { | ... | @@ -92,10 +92,10 @@ export function queueDjywmc (djywbm, djqxbm) { |
| 92 | case "C40100": //一并申请首次 | 92 | case "C40100": //一并申请首次 |
| 93 | vm = "selectYbsc"; | 93 | vm = "selectYbsc"; |
| 94 | break; | 94 | break; |
| 95 | case "C40300": //一并申请变更 | 95 | // case "C40300": //一并申请变更 |
| 96 | case "C40400": //一并申请注销 | 96 | // case "C40400": //一并申请注销 |
| 97 | vm = "selectYbbg"; | 97 | // vm = "selectYbbg"; |
| 98 | break; | 98 | // break; |
| 99 | case "C04372": //一并国有房屋变更 | 99 | case "C04372": //一并国有房屋变更 |
| 100 | case "C04371": //一并国有房屋转移 | 100 | case "C04371": //一并国有房屋转移 |
| 101 | vm = "selectYbgybg"; | 101 | vm = "selectYbgybg"; | ... | ... |
-
Please register or sign in to post a comment