|
@@ -508,10 +508,6 @@ export default {
|
|
|
);
|
|
|
this.centerDialogVisible = false;
|
|
|
},
|
|
|
- //下载文件
|
|
|
- download(id) {
|
|
|
- console.log(id + "被下载啦"); //这里应该有下载记录
|
|
|
- },
|
|
|
//报废文件上传
|
|
|
confirmUpload() {
|
|
|
if (
|
|
@@ -589,6 +585,35 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
);
|
|
|
+ },
|
|
|
+ //获取操作记录
|
|
|
+ getOperationRecord() {
|
|
|
+ this.http.post(
|
|
|
+ this.port.mold.moldOperationList,
|
|
|
+ {
|
|
|
+ mould_id: this.detailId,
|
|
|
+ belong_type: 0
|
|
|
+ },
|
|
|
+ res => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ this.$message({
|
|
|
+ message: "获取操作记录成功",
|
|
|
+ type: "success"
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ );
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -602,6 +627,7 @@ export default {
|
|
|
mounted() {
|
|
|
this.getDetail();
|
|
|
this.getDocument();
|
|
|
+ this.getOperationRecord()
|
|
|
}
|
|
|
};
|
|
|
</script>
|