|
@@ -9,7 +9,7 @@
|
|
|
选择路径
|
|
|
|
|
|
<div class="flex-path-list">
|
|
|
- <div @click="clickTransfer(1)">转派</div>
|
|
|
+ <div @click="getTreeLists()">转派</div>
|
|
|
<div @click="clickTransfer(2)">结束</div>
|
|
|
<!-- <div
|
|
|
v-for="(item, index) in node.nextShapes"
|
|
@@ -96,7 +96,7 @@
|
|
|
</div>
|
|
|
<div class="flex-footer-botton">
|
|
|
<div class="flex-button">
|
|
|
- <el-button type="primary" @click="submitWork()">提交</el-button>
|
|
|
+ <el-button type="primary" @click="getnewtransfertask()">提交</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-dialog
|
|
@@ -170,6 +170,25 @@ export default {
|
|
|
this.getMetirialType();
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
+ //新转派接口
|
|
|
+ async getnewtransfertask() {
|
|
|
+ let _this = this;
|
|
|
+ let list = {
|
|
|
+ userId: JSON.parse(window.sessionStorage.userInfo).loginNo,
|
|
|
+ taskId: _this.list.taskId,
|
|
|
+ content: _this.textarea,
|
|
|
+ };
|
|
|
+ let obj = {
|
|
|
+ url: _this.$url.formList.getNewTransferTask + _this.list.taskId, //下一步工作流接口
|
|
|
+ status: "form",
|
|
|
+ data: list,
|
|
|
+ };
|
|
|
+ await _this.common.httpPost(obj, success);
|
|
|
+ function success(data) {
|
|
|
+ console.log("[ data ] >", data);
|
|
|
+ }
|
|
|
+ },
|
|
|
//生成需求决策编号接口
|
|
|
getDemand() {
|
|
|
this.$http({
|
|
@@ -352,48 +371,49 @@ export default {
|
|
|
},
|
|
|
data: list,
|
|
|
}).then((res) => {
|
|
|
- // if (status === 1) {
|
|
|
- // //第一次进入取路径
|
|
|
- // this.initialList = res.data.body;
|
|
|
- // if (
|
|
|
- // this.initialList.nextShapes[0].multi?.multi &&
|
|
|
- // res.data.body.nextShapes[0].multi.multi === "true"
|
|
|
- // ) {
|
|
|
- // this.transferStatus = true;
|
|
|
- // } else {
|
|
|
- // this.transferStatus = false;
|
|
|
- // }
|
|
|
- // if (
|
|
|
- // res.data.body.nextShapes[0].copy?.copy &&
|
|
|
- // res.data.body.nextShapes[0].copy.copy === "true"
|
|
|
- // ) {
|
|
|
- // this.CopyStatus = true;
|
|
|
- // } else {
|
|
|
- // this.CopyStatus = false;
|
|
|
- // }
|
|
|
- // // if (res.data.body.nextShapes[0].loop !== null) {
|
|
|
- // // if (res.data.body.nextShapes[0].loop.loop === "true") {
|
|
|
- // // this.transferStatus = true; //转派按钮生效
|
|
|
- // // } else {
|
|
|
- // // this.transferStatus = false;
|
|
|
- // // }
|
|
|
- // // } else {
|
|
|
- // // this.transferStatus = false;
|
|
|
- // // }
|
|
|
- // // if (res.data.body.nextShapes[0].copy !== null) {
|
|
|
- // // if (res.data.body.nextShapes[0].copy.copy === "true") {
|
|
|
- // // // this.copyStatus = true; //抄送按钮生效
|
|
|
- // // this.CopyStatus = true;
|
|
|
- // // } else {
|
|
|
- // // this.copyStatus = false;
|
|
|
- // // }
|
|
|
- // // } else {
|
|
|
- // // this.copyStatus = false;
|
|
|
- // // }
|
|
|
- // res.data.body.currentShape.map((item, index) => {
|
|
|
- // this.getNextPath(item.resourceId, 2);
|
|
|
- // });
|
|
|
- // }
|
|
|
+ if (status === 1) {
|
|
|
+ //第一次进入取路径
|
|
|
+ this.initialList = res.data.body;
|
|
|
+ // this.getTreeLists(this.initialList)
|
|
|
+ // if (
|
|
|
+ // this.initialList.nextShapes[0].multi?.multi &&
|
|
|
+ // res.data.body.nextShapes[0].multi.multi === "true"
|
|
|
+ // ) {
|
|
|
+ // this.transferStatus = true;
|
|
|
+ // } else {
|
|
|
+ // this.transferStatus = false;
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // res.data.body.nextShapes[0].copy?.copy &&
|
|
|
+ // res.data.body.nextShapes[0].copy.copy === "true"
|
|
|
+ // ) {
|
|
|
+ // this.CopyStatus = true;
|
|
|
+ // } else {
|
|
|
+ // this.CopyStatus = false;
|
|
|
+ // }
|
|
|
+ // if (res.data.body.nextShapes[0].loop !== null) {
|
|
|
+ // if (res.data.body.nextShapes[0].loop.loop === "true") {
|
|
|
+ // this.transferStatus = true; //转派按钮生效
|
|
|
+ // } else {
|
|
|
+ // this.transferStatus = false;
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // this.transferStatus = false;
|
|
|
+ // }
|
|
|
+ // if (res.data.body.nextShapes[0].copy !== null) {
|
|
|
+ // if (res.data.body.nextShapes[0].copy.copy === "true") {
|
|
|
+ // // this.copyStatus = true; //抄送按钮生效
|
|
|
+ // this.CopyStatus = true;
|
|
|
+ // } else {
|
|
|
+ // this.copyStatus = false;
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // this.copyStatus = false;
|
|
|
+ // }
|
|
|
+ // res.data.body.currentShape.map((item, index) => {
|
|
|
+ // this.getNextPath(item.resourceId, 2);
|
|
|
+ // });
|
|
|
+ }
|
|
|
if (status === 2) {
|
|
|
if (res.data.body.nextShapes[0].condition !== null) {
|
|
|
this.node = res.data.body;
|
|
@@ -409,16 +429,16 @@ export default {
|
|
|
},
|
|
|
//查询候选人接口
|
|
|
getTreeLists(e, status) {
|
|
|
- let id = "";
|
|
|
- if (status === 2) {
|
|
|
- id = "copy." + e;
|
|
|
- } else {
|
|
|
- id =
|
|
|
- e.nextShapes[0].properties.documentation == "createId" ||
|
|
|
- e.nextShapes[0].properties.documentation == "createId-copy"
|
|
|
- ? this.list.createId
|
|
|
- : e.nextShapes[0].properties.documentation;
|
|
|
- }
|
|
|
+ let id = this.initialList.nextShapes[0].properties.documentation;
|
|
|
+ // if (status === 2) {
|
|
|
+ // id = "copy." + e;
|
|
|
+ // } else {
|
|
|
+ // id =
|
|
|
+ // e.nextShapes[0].properties.documentation == "createId" ||
|
|
|
+ // e.nextShapes[0].properties.documentation == "createId-copy"
|
|
|
+ // ? this.list.createId
|
|
|
+ // : e.nextShapes[0].properties.documentation;
|
|
|
+ // }
|
|
|
|
|
|
this.$http({
|
|
|
url: "/market/api/user/info/queryNodePers?params=" + id,
|