c6791465 by tianhaohao@pashanhoo.com

修改一并申请登记业务逻辑代码

1 parent 1ea2b042
......@@ -67,7 +67,7 @@
import { datas, sendThis } from "../javascript/selecBdcql.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import { selectQlxx } from "@/api/ywsq.js";
import { startBusinessFlow } from "@/api/workFlow.js";
import { startBusinessFlow,startTogetherFlow } from "@/api/workFlow.js";
import { getQllxByBsmSqyw } from "@/api/sysSqdjyw.js";
export default {
mixins: [table, jump],
......@@ -126,7 +126,8 @@
this.$alert("请至少选择一条数据");
return;
}
this.loading = true
this.loading = true;
if(this.sqywInfo.sqfl=='1'){
startBusinessFlow({
bsmSqyw: this.sqywInfo.bsmSqyw,
bdcdysz: this.bdcdysz,
......@@ -154,6 +155,36 @@
}).catch(() => {
this.loading = false
})
}else{
startTogetherFlow({
bsmSqyw: this.sqywInfo.bsmSqyw,
bdcdysz: this.bdcdysz,
}).then((res) => {
this.loading = false
if (res.code == 200) {
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
if (!this.isJump) {
this.jump(res.result, this.sqywInfo.djywbm)
} else {
store.dispatch('user/refreshPage', true);
this.$popupCacel()
}
} else {
if (res.result && res.result.length > 0) {
ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true)
} else {
ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true)
}
}
}).catch(() => {
this.loading = false
})
}
},
/**
* @description: handleSelectionChange
......
......@@ -92,10 +92,10 @@ export function queueDjywmc (djywbm, djqxbm) {
case "C40100": //一并申请首次
vm = "selectYbsc";
break;
case "C40300": //一并申请变更
case "C40400": //一并申请注销
vm = "selectYbbg";
break;
// case "C40300": //一并申请变更
// case "C40400": //一并申请注销
// vm = "selectYbbg";
// break;
case "C04372": //一并国有房屋变更
case "C04371": //一并国有房屋转移
vm = "selectYbgybg";
......