|
@@ -91,12 +91,12 @@
|
|
|
>
|
|
|
<Workflow
|
|
|
:list="fromList"
|
|
|
- v-if="isWorkflowStatus"
|
|
|
+ v-if="isWorkflowStatus == true"
|
|
|
@beforeClose="beforeClose"
|
|
|
:requestForm="requestForm"
|
|
|
/>
|
|
|
<WorkflowEntrance
|
|
|
- :list="fromList"
|
|
|
+ :list="fromList"
|
|
|
v-else
|
|
|
@beforeClose="beforeClose"
|
|
|
:requestForm="requestForm"
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- isWorkflowStatus: false, //默认展示模式组件,为true时展示多人处理组件
|
|
|
+ isWorkflowStatus: true, //默认展示模式组件,为true时展示多人处理组件
|
|
|
buttonStatus: true,
|
|
|
copyStatus: false,
|
|
|
dialogTitle: "",
|
|
@@ -801,7 +801,7 @@ export default {
|
|
|
|
|
|
let res = await this.common.httpPost(obj, success);
|
|
|
function success(data) {
|
|
|
- _this.isWorkflowStatus = data.lastMan == true ? true : false;
|
|
|
+ _this.isWorkflowStatus = data.lastMan == false ? false : true;
|
|
|
console.log(_this.isWorkflowStatus);
|
|
|
}
|
|
|
},
|
|
@@ -1243,16 +1243,44 @@ export default {
|
|
|
this.clickHandle(res.data.body);
|
|
|
});
|
|
|
},
|
|
|
+ getNextPath(e) {
|
|
|
+ let list = {
|
|
|
+ // fresourceId: "bf79721c-33f3-11ed-ba0b-00505687dcd3", //测试环境
|
|
|
+ fresourceId: this.requestForm.fresourceId, // 本地环境
|
|
|
+ processId: this.requestForm.processDefinitionKey,
|
|
|
+ // fresourceId: "0d94de8a-0281-11ed-a302-4ae7da54db39", // 本地环境
|
|
|
+ // processId: "request_form_process",
|
|
|
+ // resourceId: e,
|
|
|
+ };
|
|
|
+ if (e) {
|
|
|
+ // this.propsList = [];
|
|
|
+ list.resourceId = e;
|
|
|
+ }
|
|
|
+ this.$http({
|
|
|
+ url: "/market/waf/queryPath",
|
|
|
+ method: "post",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ },
|
|
|
+ data: list,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.data.body.nextShapes[0].multi) {
|
|
|
+ if (res.data.body.nextShapes[0].multi.multi === "true") {
|
|
|
+ this.getLastName();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.fromList.taskId) {
|
|
|
+ this.destroy = true;
|
|
|
+ this.handleStatus = true;
|
|
|
+ this.getMetirialType();
|
|
|
+ } else {
|
|
|
+ this.$message.error("请先点击保存按钮");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
//处理按钮,开始工作流接口
|
|
|
clickHandles() {
|
|
|
- this.getLastName();
|
|
|
- if (this.fromList.taskId) {
|
|
|
- this.destroy = true;
|
|
|
- this.handleStatus = true;
|
|
|
- } else {
|
|
|
- this.$message.error("请先点击保存按钮");
|
|
|
- }
|
|
|
- this.getMetirialType();
|
|
|
+ this.getNextPath(this.fromList.resourceId || "");
|
|
|
},
|
|
|
|
|
|
//批量审批
|