7b737a42 by zhaoqian

范围属性变更工作流添加

1 parent 085bfe00
......@@ -286,6 +286,7 @@
import { getSearchList } from "@api/search";
import { fwsxbgbl } from "@api/common";
import {getQjHDetailByBsm} from "@api/h";
import { createProcessInstance } from "@api/user";
import {queryFwsxbg} from "@api/search"
import lpbContent from "./../../views/zrz/lpb/bjlp/lpbContent/index"
import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit} from "@api/lpb";
......@@ -389,7 +390,8 @@
lpbContentHeight: 0,
lpbContentwidth: 0,
lpbloading:true,
hbsm:''
hbsm:'',
workflowName:'宗地范围属性变更'
};
},
created() {},
......@@ -476,7 +478,7 @@
},*/
//点击办理
handleClick(row) {
let params = { bsm: row.bsm, type: this.queryType };
let params = { bsm: row.bsm, type: this.queryType, ywlx:"fwsxbg"};
this.bdcdyh = row.bdcdyh;
if(row.dylx == 'h0' || row.dylx == 'h1'){
this.hbsm = row.bsm;
......@@ -496,40 +498,100 @@
type: 'warning'
}).then(() => {
vm.loadingShow('业务办理中');
fwsxbgbl(params)
.then((res) => {
vm.loadingHide();
if (res.success) {
let data = {
params:params,
workflowName:this.workflowName
}
// fwsxbgbl(params)
// .then((res) => {
// vm.loadingHide();
// if (res.success) {
// // this.$message({
// // message: res.message,
// // type: "变更成功",
// // });
// let path = "";
// switch (this.queryType) {
// case "zrz":
// this.$store.state.zrzbsm = res.result;
// this.getTreeByBsm(res.result,this.queryType,'0,1,2');
// path = "/zrz";
// break;
// case "zd":
// this.$store.state.zdbsm = res.result;
// this.getRightTree(res.result,'0,1,2');
// path = "/zd";
// break;
// case "dz":
// this.$store.state.dzbsm = res.result;
// this.getTreeByBsm(res.result,this.queryType,'0,1,2');
// path = "/dz";
// break;
// default:
// break;
// }
// this.$router.push({
// path: path,
// query: {
// bsm: res.result,
// source: 2,
// auth:'2'
// }
// });
// } else {
// this.$message({
// message: res.message,
// type: "warning",
// });
// }
// })
// .catch((error) => {
// vm.loadingHide();
// this.$message({
// message: res.message,
// type: "变更成功",
// type: "error",
// });
// });
createProcessInstance(data)
.then((res) => {
console.log(res);
vm.loadingHide();
if (res.needShow) {
this.$message({
message: "创建成功!",
type: "success",
});
let path = "";
switch (this.queryType) {
case "zrz":
this.$store.state.zrzbsm = res.result;
this.getTreeByBsm(res.result,this.queryType,'0,1,2');
this.$store.state.zrzbsm = res.processInstance.title;
this.getTreeByBsm(res.processInstance.title,this.queryType,'0,1,2');
path = "/zrz";
break;
case "zd":
this.$store.state.zdbsm = res.result;
this.getRightTree(res.result,'0,1,2');
this.$store.state.zdbsm = res.processInstance.title;
this.getRightTree(res.processInstance.title,'0,1,2');
path = "/zd";
break;
case "dz":
this.$store.state.dzbsm = res.result;
this.getTreeByBsm(res.result,this.queryType,'0,1,2');
this.$store.state.dzbsm = res.processInstance.title;
this.getTreeByBsm(res.processInstance.title,this.queryType,'0,1,2');
path = "/dz";
break;
default:
break;
}
this.$router.push({
path: path,
query: {
bsm: res.result,
bsm: res.processInstance.title,
source: 2,
auth:'2'
auth:'2',
workitemInstanceId:res.workitemInstance.id
}
});
} else {
......@@ -738,6 +800,19 @@
queryType(val){
console.log(val,"范围属性变更,tab")
this.queryData.type=val;
switch (val) {
case "zrz":
this.workflowName = "自然幢范围属性变更";
break;
case "zd":
this.workflowName = "宗地范围属性变更";
break;
case "dz":
this.workflowName = "多幢范围属性变更";
break;
default:
break;
}
}
},
};
......