48eefff8 by 田浩浩

修改业务申请对应的问题

1 parent af6dd985
......@@ -32,6 +32,16 @@ export function getDjlxInfo (id) {
}
/*
获取登记类型信息-申请业务规则
*/
export function getQllxByBsmSqyw (id) {
return request({
url: SERVER.SERVERAPI + '/rest/system/sysSqdjyw/getQllxByBsmSqyw?bsmSqyw=' + id,
method: 'post'
})
}
/*
读取申请登记业务信息-申请业务规则
*/
export function getSqdjywDetail (bsmSqyw) {
......
......@@ -383,8 +383,7 @@ export default {
this.getDetail(this.djlxList[0].bsmSqyw);
}else{
this.getDetail(this.sqqlRule.bsmSqyw);
}
}
});
//}
},
......
......@@ -15,9 +15,9 @@
>
<el-option
v-for="item in qllxs"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item.sxzdz"
:label="item.sxzdmc"
:value="item.sxzdz"
>
</el-option>
</el-select>
......@@ -93,12 +93,13 @@ import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
import jump from "./mixin/jump";
import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js";
import { getQllxByBsmSqyw } from "@/api/system.js";
export default {
mixins: [table, jump],
props: {
isJump: { type: Boolean, default: false },
djywbm: { type: String, default: "" },
djqxObj: {type: Object,default: {}},
djqxObj: { type: Object, default: {} },
bsmSqyw: { type: String, default: "" },
},
data() {
......@@ -111,11 +112,24 @@ export default {
data: [],
},
bdcdysz: [],
bsmSqyw: "",
};
},
mounted() {
sendThis(this);
},
created() {
if (this.djqxObj.nodetype === "djlx") {
this.bsmSqyw = this.djqxObj.bsmSqyw;
} else {
this.bsmSqyw = this.djqxObj.parentid;
}
getQllxByBsmSqyw(this.bsmSqyw).then((res) => {
if (res.code === 200) {
this.qllxs = res.result ? res.result : [];
}
});
},
methods: {
//点击行选中或取消复选框
handleRowClick(row, column, event) {
......@@ -125,13 +139,13 @@ export default {
closeDialog() {
this.$emit("closeDialog");
},
fetchData() {
if(this.djqxObj.nodetype==="djlx"){
this.queryForm.bsmSqyw = this.djqxObj.bsmSqyw;
}else{
this.queryForm.bsmSqyw = this.djqxObj.parentid;
fetchData() {
//this.queryForm.bsmSqyw = this.bsmSqyw;
if (this.djqxObj.nodetype === "djlx") {
this.queryForm.bsmSqyw = this.djqxObj.bsmSqyw;
} else {
this.queryForm.bsmSqyw = this.djqxObj.parentid;
}
console.log(this.queryForm);
selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
......@@ -154,13 +168,13 @@ export default {
if (res.code == 200) {
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
message: "发起申请成功",
type: "success",
});
if (!this.isJump) {
this.jump(res.result, this.djywbm)
this.jump(res.result, this.djywbm);
} else {
this.$emit('updateDialog', true)
this.$emit("updateDialog", true);
}
} else {
this.$message.error(res.message);
......