99de54c7 by 杨威
2 parents dad0d6d1 d2d493fe
......@@ -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)
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: "error",
// });
// });
createProcessInstance(data)
.then((res) => {
console.log(res);
vm.loadingHide();
if (res.success) {
// this.$message({
// message: res.message,
// type: "变更成功",
// });
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;
}
}
},
};
......
......@@ -328,7 +328,7 @@ export default {
// .catch((error) => {});
let data = {
params:this.ruleForm,
workflowName:'新建1'
workflowName:'新建宗地'
}
createProcessInstance(data)
.then((res) => {
......
......@@ -252,25 +252,25 @@
switch (row.dylx) {
case "zd":
this.$store.state.zdbsm = res.processInstance.title;
this.getRightTree(res.result,'0,1,2');
this.getRightTree(res.processInstance.title,'0,1,2');
break;
case "zrz":
this.$store.state.zrzbsm = res.processInstance.title;
this.getTreeByBsm(res.result,row.dylx,'0,1,2');
this.getTreeByBsm(res.processInstance.title,row.dylx,'0,1,2');
break;
case "h":
case "h0":
case "h1":
this.$store.state.hbsm = res.processInstance.title;
this.getTreeByBsm(res.result,'h','0,1,2');
this.getTreeByBsm(res.processInstance.title,'h','0,1,2');
break;
case "dz":
this.$store.state.dzbsm = res.processInstance.title;
this.getTreeByBsm(res.result,row.dylx,'0,1,2');
this.getTreeByBsm(res.processInstance.title,row.dylx,'0,1,2');
break;
case "gzw":
this.$store.state.dzbsm = res.processInstance.title;
this.getTreeByBsm(res.result,row.dylx,'0,1,2');
this.getTreeByBsm(res.processInstance.title,row.dylx,'0,1,2');
break;
default:
......