|
@@ -262,8 +262,8 @@ export default {
|
|
{
|
|
{
|
|
label: "状态",
|
|
label: "状态",
|
|
props: "status",
|
|
props: "status",
|
|
- type:'dictionary',
|
|
|
|
- dictionary: {"0":"待处理","1":"待汇总","2":"待审批","3":"已完成"},
|
|
|
|
|
|
+ type: "dictionary",
|
|
|
|
+ dictionary: { 0: "待处理", 1: "待汇总", 2: "待审批", 3: "已完成" },
|
|
},
|
|
},
|
|
],
|
|
],
|
|
};
|
|
};
|
|
@@ -295,6 +295,8 @@ export default {
|
|
precautions: "填报注意事项",
|
|
precautions: "填报注意事项",
|
|
endTime: new Date(),
|
|
endTime: new Date(),
|
|
loginNameStr: "发起人",
|
|
loginNameStr: "发起人",
|
|
|
|
+ id:23,
|
|
|
|
+ templateContent:'templateContent'
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -334,21 +336,22 @@ export default {
|
|
this.track_visible = true;
|
|
this.track_visible = true;
|
|
},
|
|
},
|
|
handleTransfer() {
|
|
handleTransfer() {
|
|
- const object = {
|
|
|
|
- ...JSON.parse(sessionStorage.global_data)[0],
|
|
|
|
- department_status: "待审批",
|
|
|
|
- };
|
|
|
|
- sessionStorage.setItem("global_data", JSON.stringify([object]));
|
|
|
|
- const process_array = JSON.parse(sessionStorage.global_process);
|
|
|
|
- process_array.push({
|
|
|
|
- link: "转派工单",
|
|
|
|
- creatperson: `ADMIN ${this.$formatDate(new Date(), "YYYY-MM-DD")}`,
|
|
|
|
- explain: "",
|
|
|
|
- });
|
|
|
|
- sessionStorage.setItem("global_process", JSON.stringify(process_array));
|
|
|
|
- this.handleInit();
|
|
|
|
- this.handleCancel("visible");
|
|
|
|
- this.$message.success("转派成功");
|
|
|
|
|
|
+ console.log(this.edit_form, "prams");
|
|
|
|
+ // const object = {
|
|
|
|
+ // ...JSON.parse(sessionStorage.global_data)[0],
|
|
|
|
+ // department_status: "待审批",
|
|
|
|
+ // };
|
|
|
|
+ // sessionStorage.setItem("global_data", JSON.stringify([object]));
|
|
|
|
+ // const process_array = JSON.parse(sessionStorage.global_process);
|
|
|
|
+ // process_array.push({
|
|
|
|
+ // link: "转派工单",
|
|
|
|
+ // creatperson: `ADMIN ${this.$formatDate(new Date(), "YYYY-MM-DD")}`,
|
|
|
|
+ // explain: "",
|
|
|
|
+ // });
|
|
|
|
+ // sessionStorage.setItem("global_process", JSON.stringify(process_array));
|
|
|
|
+ // this.handleInit();
|
|
|
|
+ // this.handleCancel("visible");
|
|
|
|
+ // this.$message.success("转派成功");
|
|
},
|
|
},
|
|
handleTurn(type) {
|
|
handleTurn(type) {
|
|
this.handleCancel("approve_visible");
|
|
this.handleCancel("approve_visible");
|
|
@@ -410,7 +413,24 @@ export default {
|
|
this.handleCancel("approve_visible");
|
|
this.handleCancel("approve_visible");
|
|
},
|
|
},
|
|
handleSubmit() {
|
|
handleSubmit() {
|
|
- this.$message.success("提交成功");
|
|
|
|
|
|
+ let reqdata = {
|
|
|
|
+ id: this.edit_form.id,
|
|
|
|
+ templateContent: this.edit_form.templateContent,
|
|
|
|
+ };
|
|
|
|
+ console.log(reqdata,'reqdata')
|
|
|
|
+ // 提交好了
|
|
|
|
+ // this.$http({
|
|
|
|
+ // url: "/CMKIssued/CMKIssuedSubmit",
|
|
|
|
+ // method: "post",
|
|
|
|
+ // headers: {
|
|
|
|
+ // "Content-Type": "application/json",
|
|
|
|
+ // },
|
|
|
|
+ // data: reqdata,
|
|
|
|
+ // }).then((res) => {
|
|
|
|
+ // console.log(res);
|
|
|
|
+ // this.$message.success("提交成功");
|
|
|
|
+ // this.handleCancel("visible");
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|