修改业务申请对应的问题
Showing
3 changed files
with
40 additions
and
17 deletions
| ... | @@ -32,6 +32,16 @@ export function getDjlxInfo (id) { | ... | @@ -32,6 +32,16 @@ export function getDjlxInfo (id) { |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | /* | 34 | /* |
| 35 | 获取登记类型信息-申请业务规则 | ||
| 36 | */ | ||
| 37 | export function getQllxByBsmSqyw (id) { | ||
| 38 | return request({ | ||
| 39 | url: SERVER.SERVERAPI + '/rest/system/sysSqdjyw/getQllxByBsmSqyw?bsmSqyw=' + id, | ||
| 40 | method: 'post' | ||
| 41 | }) | ||
| 42 | } | ||
| 43 | |||
| 44 | /* | ||
| 35 | 读取申请登记业务信息-申请业务规则 | 45 | 读取申请登记业务信息-申请业务规则 |
| 36 | */ | 46 | */ |
| 37 | export function getSqdjywDetail (bsmSqyw) { | 47 | export function getSqdjywDetail (bsmSqyw) { | ... | ... |
| ... | @@ -383,8 +383,7 @@ export default { | ... | @@ -383,8 +383,7 @@ export default { |
| 383 | this.getDetail(this.djlxList[0].bsmSqyw); | 383 | this.getDetail(this.djlxList[0].bsmSqyw); |
| 384 | }else{ | 384 | }else{ |
| 385 | this.getDetail(this.sqqlRule.bsmSqyw); | 385 | this.getDetail(this.sqqlRule.bsmSqyw); |
| 386 | } | 386 | } |
| 387 | |||
| 388 | }); | 387 | }); |
| 389 | //} | 388 | //} |
| 390 | }, | 389 | }, | ... | ... |
| ... | @@ -15,9 +15,9 @@ | ... | @@ -15,9 +15,9 @@ |
| 15 | > | 15 | > |
| 16 | <el-option | 16 | <el-option |
| 17 | v-for="item in qllxs" | 17 | v-for="item in qllxs" |
| 18 | :key="item.value" | 18 | :key="item.sxzdz" |
| 19 | :label="item.label" | 19 | :label="item.sxzdmc" |
| 20 | :value="item.value" | 20 | :value="item.sxzdz" |
| 21 | > | 21 | > |
| 22 | </el-option> | 22 | </el-option> |
| 23 | </el-select> | 23 | </el-select> |
| ... | @@ -93,12 +93,13 @@ import { defaultParameters } from "../javascript/publicDefaultPar.js"; | ... | @@ -93,12 +93,13 @@ import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 93 | import table from "@/utils/mixin/table"; | 93 | import table from "@/utils/mixin/table"; |
| 94 | import jump from "./mixin/jump"; | 94 | import jump from "./mixin/jump"; |
| 95 | import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js"; | 95 | import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js"; |
| 96 | import { getQllxByBsmSqyw } from "@/api/system.js"; | ||
| 96 | export default { | 97 | export default { |
| 97 | mixins: [table, jump], | 98 | mixins: [table, jump], |
| 98 | props: { | 99 | props: { |
| 99 | isJump: { type: Boolean, default: false }, | 100 | isJump: { type: Boolean, default: false }, |
| 100 | djywbm: { type: String, default: "" }, | 101 | djywbm: { type: String, default: "" }, |
| 101 | djqxObj: {type: Object,default: {}}, | 102 | djqxObj: { type: Object, default: {} }, |
| 102 | bsmSqyw: { type: String, default: "" }, | 103 | bsmSqyw: { type: String, default: "" }, |
| 103 | }, | 104 | }, |
| 104 | data() { | 105 | data() { |
| ... | @@ -111,11 +112,24 @@ export default { | ... | @@ -111,11 +112,24 @@ export default { |
| 111 | data: [], | 112 | data: [], |
| 112 | }, | 113 | }, |
| 113 | bdcdysz: [], | 114 | bdcdysz: [], |
| 115 | bsmSqyw: "", | ||
| 114 | }; | 116 | }; |
| 115 | }, | 117 | }, |
| 116 | mounted() { | 118 | mounted() { |
| 117 | sendThis(this); | 119 | sendThis(this); |
| 118 | }, | 120 | }, |
| 121 | created() { | ||
| 122 | if (this.djqxObj.nodetype === "djlx") { | ||
| 123 | this.bsmSqyw = this.djqxObj.bsmSqyw; | ||
| 124 | } else { | ||
| 125 | this.bsmSqyw = this.djqxObj.parentid; | ||
| 126 | } | ||
| 127 | getQllxByBsmSqyw(this.bsmSqyw).then((res) => { | ||
| 128 | if (res.code === 200) { | ||
| 129 | this.qllxs = res.result ? res.result : []; | ||
| 130 | } | ||
| 131 | }); | ||
| 132 | }, | ||
| 119 | methods: { | 133 | methods: { |
| 120 | //点击行选中或取消复选框 | 134 | //点击行选中或取消复选框 |
| 121 | handleRowClick(row, column, event) { | 135 | handleRowClick(row, column, event) { |
| ... | @@ -125,13 +139,13 @@ export default { | ... | @@ -125,13 +139,13 @@ export default { |
| 125 | closeDialog() { | 139 | closeDialog() { |
| 126 | this.$emit("closeDialog"); | 140 | this.$emit("closeDialog"); |
| 127 | }, | 141 | }, |
| 128 | fetchData() { | 142 | fetchData() { |
| 129 | if(this.djqxObj.nodetype==="djlx"){ | 143 | //this.queryForm.bsmSqyw = this.bsmSqyw; |
| 130 | this.queryForm.bsmSqyw = this.djqxObj.bsmSqyw; | 144 | if (this.djqxObj.nodetype === "djlx") { |
| 131 | }else{ | 145 | this.queryForm.bsmSqyw = this.djqxObj.bsmSqyw; |
| 132 | this.queryForm.bsmSqyw = this.djqxObj.parentid; | 146 | } else { |
| 147 | this.queryForm.bsmSqyw = this.djqxObj.parentid; | ||
| 133 | } | 148 | } |
| 134 | console.log(this.queryForm); | ||
| 135 | selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | 149 | selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { |
| 136 | if (res.code === 200) { | 150 | if (res.code === 200) { |
| 137 | let { total, records } = res.result; | 151 | let { total, records } = res.result; |
| ... | @@ -154,13 +168,13 @@ export default { | ... | @@ -154,13 +168,13 @@ export default { |
| 154 | if (res.code == 200) { | 168 | if (res.code == 200) { |
| 155 | this.$message({ | 169 | this.$message({ |
| 156 | showClose: true, | 170 | showClose: true, |
| 157 | message: '发起申请成功', | 171 | message: "发起申请成功", |
| 158 | type: 'success' | 172 | type: "success", |
| 159 | }) | 173 | }); |
| 160 | if (!this.isJump) { | 174 | if (!this.isJump) { |
| 161 | this.jump(res.result, this.djywbm) | 175 | this.jump(res.result, this.djywbm); |
| 162 | } else { | 176 | } else { |
| 163 | this.$emit('updateDialog', true) | 177 | this.$emit("updateDialog", true); |
| 164 | } | 178 | } |
| 165 | } else { | 179 | } else { |
| 166 | this.$message.error(res.message); | 180 | this.$message.error(res.message); | ... | ... |
-
Please register or sign in to post a comment