|
|
@@ -64,9 +64,10 @@
|
|
|
},
|
|
|
|
|
|
// 表单注入数据
|
|
|
- setData({ id, status, processInstanceId }) {
|
|
|
+ setData({ id, status, processTaskId, processInstanceId }) {
|
|
|
this.form["id"] = id;
|
|
|
this.form["status"] = status;
|
|
|
+ this.form["processTaskId"] = processTaskId;
|
|
|
this.form["processInstanceId"] = processInstanceId;
|
|
|
},
|
|
|
|
|
|
@@ -78,9 +79,7 @@
|
|
|
if (!this.form.status) {
|
|
|
this.popoverShow = true;
|
|
|
this.$nextTick(() => this.$refs.approveIframe.open().setData());
|
|
|
- } else {
|
|
|
- console.log("重新发起");
|
|
|
- }
|
|
|
+ } else this.submit("resubmit");
|
|
|
} else this.submit(mode);
|
|
|
} else {
|
|
|
return false;
|
|
|
@@ -91,7 +90,8 @@
|
|
|
submit(mode, templateId) {
|
|
|
const data = Object.assign({}, this.$refs.scPlan.form);
|
|
|
if (templateId) data["templateId"] = templateId;
|
|
|
-
|
|
|
+ if (mode == "resubmit") data["processTaskId"] = this.form.processTaskId;
|
|
|
+
|
|
|
this.isSaveing = true;
|
|
|
this.$API.procurement.plan[mode](data).then(() => {
|
|
|
this.isSaveing = false;
|