+
-
- {{ scope.row.lendStatus }}
+
+ {{ scope.row.noLendStatus }}
@@ -123,20 +123,30 @@ export default {
},
// 移出
handleRemove() {
- this.$refs.delConfirmDom.deleteVisible = true
+ if (this.selections.length > 0) {
+ this.$refs.delConfirmDom.deleteVisible = true
+ } else {
+ this.$message({
+ message: '请选择要移出当前列表的档案',
+ type: 'warning'
+ })
+ }
},
cell({ row, columnIndex }) {
- if (row.lendStatus === '待借' && columnIndex === 11) {
+ if (columnIndex === 11) {
return 'no-lend'
- } else if (row.lendStatus === '已借' && columnIndex === 11) {
- return 'have-lend'
- } else if (row.lendStatus === '' && columnIndex === 11) {
- return 'other-lend'
}
},
handleLendBtn() {
- this.$refs.lendDialogDom.table = this.selections
- this.$refs.lendDialogDom.lendFormVisible = true
+ if (this.selections.length > 0) {
+ this.$refs.lendDialogDom.table = this.selections
+ this.$refs.lendDialogDom.lendFormVisible = true
+ } else {
+ this.$message({
+ message: '请选择要借出的档案',
+ type: 'warning'
+ })
+ }
}
}
}
diff --git a/src/views/archivesManage/lendManage/lendConfirm/module/archiveDetail.vue b/src/views/archivesManage/lendManage/lendConfirm/module/archiveDetail.vue
index 429130e..5b32c50 100644
--- a/src/views/archivesManage/lendManage/lendConfirm/module/archiveDetail.vue
+++ b/src/views/archivesManage/lendManage/lendConfirm/module/archiveDetail.vue
@@ -7,7 +7,7 @@
借阅人:{{ rowData[0].borrowerName }}
所属部门:{{ rowData[0].borrowerDepartment }}
-
借阅状态:{{ rowData[0].lendStatus }}
+
借阅状态:{{ rowData[0].lendStatus }}
证件类型:{{ rowData[0].borrowerIdType }}
@@ -54,7 +54,8 @@ export default {
}
::v-deep .el-dialog .el-dialog__header .el-dialog__close::before{
position: absolute;
- right: -280px;
+ right: -283px;
+ bottom: -10px;
}
p{
display: flex;
@@ -83,6 +84,7 @@ p{
flex: 1;
.cell-lend{
margin-left: 20px;
+ width: 76px;
}
}
}
diff --git a/src/views/archivesManage/lendManage/lendConfirm/module/lendDialog.vue b/src/views/archivesManage/lendManage/lendConfirm/module/lendDialog.vue
index 7dce781..baf295a 100644
--- a/src/views/archivesManage/lendManage/lendConfirm/module/lendDialog.vue
+++ b/src/views/archivesManage/lendManage/lendConfirm/module/lendDialog.vue
@@ -53,7 +53,8 @@ export default {
}
::v-deep .el-dialog .el-dialog__header .el-dialog__close::before{
position: absolute;
- right: -154px;
+ right: -163px;
+ bottom: -4px;
}
diff --git a/src/views/archivesManage/lendManage/lendQuery/index.vue b/src/views/archivesManage/lendManage/lendQuery/index.vue
index 52ccc1f..c5c59bf 100644
--- a/src/views/archivesManage/lendManage/lendQuery/index.vue
+++ b/src/views/archivesManage/lendManage/lendQuery/index.vue
@@ -55,10 +55,11 @@
- {{ scope.row.lendStatus }}
+ {{ scope.row.lendStatus }}
-
+
+
@@ -66,7 +67,7 @@
-
+
@@ -84,6 +85,7 @@ import crudOperation from '@crud/CRUD.operation'
import data3 from '../data3.json'
import archiveDetail from '../returnArchives/module/archiveDetail.vue'
export default {
+ name: 'LendQuery',
components: { headSlot, pagination, rrOperation, crudOperation, archiveDetail },
mixins: [presenter()],
cruds() {
@@ -141,7 +143,7 @@ export default {
cell({ row, columnIndex }) {
if (row.lendStatus === '逾期' && columnIndex === 2) {
return 'no-lend'
- } else if (row.lendStatus === '待还' && columnIndex === 2) {
+ } else if (row.lendStatus === '待归还' && columnIndex === 2) {
return 'have-lend'
}
},
@@ -153,7 +155,7 @@ export default {
const arr = data3.rows.filter(item => item.docNum === row.docNum)
archiveDetailDom.rowData = arr
// 借阅状态样式类名
- if (arr[0].lendStatus === '待还') {
+ if (arr[0].lendStatus === '待归还') {
archiveDetailDom.classLend = 'have-lend'
} else if (arr[0].lendStatus === '逾期') {
archiveDetailDom.classLend = 'no-lend'
@@ -179,6 +181,7 @@ export default {
background-color: #021941;
border: none;
caret-color: #fff;
+ color: #fff;
height: 28px;
line-height: 28px;
}
diff --git a/src/views/archivesManage/lendManage/lendQuery/module/archiveDetail.vue b/src/views/archivesManage/lendManage/lendQuery/module/archiveDetail.vue
index d2625ea..33ffa69 100644
--- a/src/views/archivesManage/lendManage/lendQuery/module/archiveDetail.vue
+++ b/src/views/archivesManage/lendManage/lendQuery/module/archiveDetail.vue
@@ -21,7 +21,7 @@
借阅目的:{{ rowData[0].borrowGoal }}
-
借阅状态:{{ rowData[0].lendStatus }}
+
借阅状态:{{ rowData[0].lendStatus }}
操作时间:{{ rowData[0].operationTime }}
diff --git a/src/views/archivesManage/lendManage/returnArchives/index.vue b/src/views/archivesManage/lendManage/returnArchives/index.vue
index 3302f4e..093efc7 100644
--- a/src/views/archivesManage/lendManage/returnArchives/index.vue
+++ b/src/views/archivesManage/lendManage/returnArchives/index.vue
@@ -1,7 +1,7 @@
-
+
归还
@@ -30,8 +30,8 @@
-
- {{ scope.row.lendStatus }}
+
+ {{ scope.row.lendStatus }}
@@ -48,18 +48,8 @@
-
-
-
-
-
-
-
当前标签已损坏,请先解除该档案的电子标签绑定
-
-
-
+
+
@@ -74,9 +64,9 @@ import CRUD, { presenter } from '@crud/crud'
import crudOperation from '@crud/CRUD.operation'
import data3 from '../data3.json'
import archiveDetail from './module/archiveDetail.vue'
-
+import returnDialog from './module/returnDialog.vue'
export default {
- components: { headSlot, pagination, crudOperation, archiveDetail },
+ components: { headSlot, pagination, crudOperation, archiveDetail, returnDialog },
mixins: [presenter()],
cruds() {
return CRUD({
@@ -116,7 +106,9 @@ export default {
// 归还确认
handleConfirm() {
this.returnVisible = false
- this.returnAgainVisible = true
+ const returnDialogDom = this.$refs.returnDialogDom
+ returnDialogDom.table = this.selections
+ returnDialogDom.returnVisible = true
},
handleConfirmAgain() {
this.returnAgainVisible = false
@@ -124,7 +116,7 @@ export default {
cell({ row, columnIndex }) {
if (row.lendStatus === '逾期' && columnIndex === 11) {
return 'no-lend'
- } else if (row.lendStatus === '待还' && columnIndex === 11) {
+ } else if (row.lendStatus === '待归还' && columnIndex === 11) {
return 'have-lend'
} else if (row.lendStatus === '' && columnIndex === 11) {
return 'other-lend'
@@ -138,12 +130,22 @@ export default {
const arr = data3.rows.filter(item => item.docNum === row.docNum)
archiveDetailDom.rowData = arr
// 借阅状态样式类名
- if (arr[0].lendStatus === '待还') {
+ if (arr[0].lendStatus === '待归还') {
archiveDetailDom.classLend = 'have-lend'
} else if (arr[0].lendStatus === '逾期') {
archiveDetailDom.classLend = 'no-lend'
}
console.log(archiveDetailDom.classLend)
+ },
+ handleReturn() {
+ if (this.selections.length > 0) {
+ this.returnVisible = true
+ } else {
+ this.$message({
+ message: '请选择要归还的档案',
+ type: 'warning'
+ })
+ }
}
}
}
@@ -154,4 +156,12 @@ export default {
.svg-style{
margin-right: 5px;
}
+::v-deep .el-dialog__footer {
+ background-color: #031435;
+}
+
+.el-dialog .dialog-footer {
+ padding: 0;
+ margin: 0;
+}
diff --git a/src/views/archivesManage/lendManage/returnArchives/module/archiveDetail.vue b/src/views/archivesManage/lendManage/returnArchives/module/archiveDetail.vue
index 909c3ea..c3833cd 100644
--- a/src/views/archivesManage/lendManage/returnArchives/module/archiveDetail.vue
+++ b/src/views/archivesManage/lendManage/returnArchives/module/archiveDetail.vue
@@ -22,7 +22,7 @@
借阅目的:{{ rowData[0].borrowGoal }}
-
借阅状态:{{ rowData[0].lendStatus }}
+
借阅状态:{{ rowData[0].lendStatus }}
操作时间:{{ rowData[0].operationTime }}
@@ -84,6 +84,12 @@ p{
}
}
.cell-lend{
+ width: 76px;
margin-left: 20px;
}
+::v-deep .el-dialog .el-dialog__header .el-dialog__close::before{
+ position: absolute;
+ right: -83px;
+ bottom: -10px;
+}
diff --git a/src/views/archivesManage/lendManage/returnArchives/module/returnDialog.vue b/src/views/archivesManage/lendManage/returnArchives/module/returnDialog.vue
new file mode 100644
index 0000000..a724b9c
--- /dev/null
+++ b/src/views/archivesManage/lendManage/returnArchives/module/returnDialog.vue
@@ -0,0 +1,60 @@
+
+
+
+
+
+ 以下档案需要先恢复电子标签警报
+
+
+
+
+
+
+
+
+ {{ scope.row.warnRestoreState }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/archivesManage/lendManage/toLend/index.vue b/src/views/archivesManage/lendManage/toLend/index.vue
index 268a37e..cf4a0d9 100644
--- a/src/views/archivesManage/lendManage/toLend/index.vue
+++ b/src/views/archivesManage/lendManage/toLend/index.vue
@@ -21,7 +21,7 @@
>
-
+
@@ -94,7 +94,14 @@ export default {
},
// 移出
handleRemove() {
- this.$refs.delConfirmDom.deleteVisible = true
+ if (this.selections.length > 0) {
+ this.$refs.delConfirmDom.deleteVisible = true
+ } else {
+ this.$message({
+ message: '请选择要移出当前列表的档案',
+ type: 'warning'
+ })
+ }
},
// 档案详情
handleDbClick(row) {