diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsDocTransfer/domain/EhsDocTransfer.java b/ruoyi-system/src/main/java/com/ruoyi/ehsDocTransfer/domain/EhsDocTransfer.java
index 2c71d6b..251b6a1 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/ehsDocTransfer/domain/EhsDocTransfer.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/ehsDocTransfer/domain/EhsDocTransfer.java
@@ -70,4 +70,7 @@ public class EhsDocTransfer extends BaseEntity {
@Excel(name = "公文名称")
private String documentName;
+ //@Excel(name = "公文名称")
+ private String transferDept;//流转情况
+
}
diff --git a/ruoyi-system/src/main/resources/mapper/ehs/EhsDocTransferMapper.xml b/ruoyi-system/src/main/resources/mapper/ehs/EhsDocTransferMapper.xml
index 0201c9d..b9adfbd 100644
--- a/ruoyi-system/src/main/resources/mapper/ehs/EhsDocTransferMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/ehs/EhsDocTransferMapper.xml
@@ -12,7 +12,7 @@
-
+
@@ -24,7 +24,9 @@
- select id, transfer_user_id, transfer_name, transfer_time, doc_transfer_status, document_id, document_name, create_by, create_time, update_by, update_time, remark, dept_id, create_user_id, update_user_id from ehs_doc_transfer
+ select id, transfer_user_id, transfer_name, transfer_time, doc_transfer_status,
+ document_id, document_name, create_by, create_time, update_by, update_time,
+ remark, dept_id, create_user_id, update_user_id,transfer_dept from ehs_doc_transfer
@@ -38,6 +40,7 @@
and document_id = #{documentId}
and document_name = #{documentName}
+ order by transfer_time desc
diff --git a/ruoyi-ui/src/views/ehs/ehsDocument/index.vue b/ruoyi-ui/src/views/ehs/ehsDocument/index.vue
index 1b0cc91..16f2622 100644
--- a/ruoyi-ui/src/views/ehs/ehsDocument/index.vue
+++ b/ruoyi-ui/src/views/ehs/ehsDocument/index.vue
@@ -129,7 +129,7 @@
{{ parseTime(scope.row.receiveTime, "{y}-{m}-{d}") }}
-
+
-
+
归还
+
+
+
+
+
+
+
+
+
+
@@ -352,10 +367,9 @@ import {
} from "@/api/ehs/ehsDocTransfer";
import { parseTime } from "../../../utils/ruoyi";
import dict from "@/utils/dict";
-
export default {
name: "EhsDocument",
- dicts: ["doc_type", "doc_transfer_status"],
+ dicts: ["doc_type", "doc_transfer_status","transfer_dept"],
data() {
return {
// 遮罩层
@@ -455,6 +469,7 @@ export default {
deptId: null,
createUserId: null,
updateUserId: null,
+ transferDept: null,
};
this.resetForm("form");
},
@@ -547,6 +562,11 @@ export default {
submitLendForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
+ console.log(this.form)
+ if(this.form.transferDept!=null){
+ this.form.transferDept = this.form.transferDept.join();
+ }
+
lendEhsDoc(this.form).then((response) => {
this.$modal.msgSuccess("借出成功");
this.open2 = false;
diff --git a/ruoyi-ui/src/views/ehs/ehsEnterprise/index.vue b/ruoyi-ui/src/views/ehs/ehsEnterprise/index.vue
index efe1a47..1c1677f 100644
--- a/ruoyi-ui/src/views/ehs/ehsEnterprise/index.vue
+++ b/ruoyi-ui/src/views/ehs/ehsEnterprise/index.vue
@@ -265,8 +265,8 @@
-
-
+
+