Browse Source

借阅管理

master
xuhuajiao 3 years ago
parent
commit
68d75f140e
  1. 11
      src/api/archivesManage/lendManage.js
  2. 258
      src/views/archivesManage/lendManage/data1.json
  3. 247
      src/views/archivesManage/lendManage/data2.json
  4. 252
      src/views/archivesManage/lendManage/data3.json
  5. 2
      src/views/archivesManage/lendManage/lendConfirm/index.vue
  6. 119
      src/views/archivesManage/lendManage/lendConfirm/module/lendDialog.vue
  7. 4
      src/views/archivesManage/lendManage/lendQuery/index.vue
  8. 155
      src/views/archivesManage/lendManage/mixins/lending.js
  9. 6
      src/views/archivesManage/lendManage/returnArchives/index.vue
  10. 57
      src/views/archivesManage/lendManage/returnArchives/module/returnDialog.vue

11
src/api/archivesManage/lendManage.js

@ -117,7 +117,7 @@ export function FetchUpdateBorrowRule(parameter) {
})
}
// 根据单据号显示标签
// 根据单据号显示标签 - 借出
export function FetchReadyBorrowShowTid(parameter) {
return request({
url: 'api/borrow/readyBorrowShowTid',
@ -126,6 +126,15 @@ export function FetchReadyBorrowShowTid(parameter) {
})
}
// 根据借阅档案id显示标签 - 归还
export function FetchReadyReturnShowTid(parameter) {
return request({
url: 'api/borrow/readyReturnShowTid',
method: 'post',
data: parameter
})
}
// 借出确认
export function FetchBillBorrowConfirm(parameter) {
return request({

258
src/views/archivesManage/lendManage/data1.json

@ -1,258 +0,0 @@
{
"total":12,
"rows":[
{
"id":"29f16d62bc7242d5ba8dc84de5451f93",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"",
"noLendStatus":"待借阅",
"operationTime":"2022-05-26 14:02",
"borrowerName":"李四",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"已解除",
"docNum":"JY202205050001",
"archiveNum":"1",
"lendHandler":"管理员"
},
{
"id":"3d6d548d30db426ea3d95d63f589b294",
"categoryName":"文书档案-卷案级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"已借",
"noLendStatus":"待借阅",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"已解除",
"docNum":"JY202205050002",
"lendHandler":"管理员"
},
{
"id":"45ff597e7cc64d11803ac422816b1e23",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待借",
"noLendStatus":"待借阅",
"operationTime":"2022-05-27 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"未解除",
"docNum":"JY202205050002",
"archiveNum":"1",
"lendHandler":"管理员"
},
{
"id":"49106aa0d1534a7a900843d0c4531840",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待借",
"noLendStatus":"待借阅",
"operationTime":"2022-05-28 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"未解除",
"docNum":"JY202205050004",
"archiveNum":"1",
"lendHandler":"管理员"
},
{
"id":"6e604355ff1e47e8b48117dca36420c7",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待借",
"noLendStatus":"待借阅",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"解除失败",
"docNum":"JY202205050005",
"archiveNum":"1"
},
{
"id":"6f4a6631d9d3424b960793704f3757b3",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"已借",
"noLendStatus":"待借阅",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"解除失败",
"docNum":"JY202205050006",
"archiveNum":"1"
},
{
"id":"76e29d5c0a0541bfb1ee9da432183b15",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待借",
"noLendStatus":"待借阅",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"docNum":"JY202205050007"
},
{
"id":"a0ffdd94161146c49161662c3f9a70cd",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"已借",
"noLendStatus":"待借阅",
"operationTime":"2022-07-25 14:02",
"borrowerName":"王五",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"docNum":"JY202205050008"
},
{
"id":"a79e0d67165a4b08b089b309dd947908",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待借",
"noLendStatus":"待借阅",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085"
},
{
"id":"ca9b850145b74eeda3c22a997696c979",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"",
"noLendStatus":"待借阅",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085"
},
{
"id":"dff5529c0d0f45b2b19f2adec7ca0102",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"",
"noLendStatus":"待借阅",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085"
},
{
"id":"f3f6ff94c26a4a54967de9cfc56a3b01",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待借",
"noLendStatus":"待借阅",
"operationTime":"2022-06-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085"
}
],
"footer":null,
"postparam":null
}

247
src/views/archivesManage/lendManage/data2.json

@ -1,247 +0,0 @@
{
"total":12,
"rows":[
{
"id":"29f16d62bc7242d5ba8dc84de5451f93",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待登记",
"operationTime":"2022-05-26 14:02",
"borrowerName":"李四",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"已解除",
"docNum":"JY202205050001",
"archiveNum":"1",
"lendHandler":"管理员"
},
{
"id":"3d6d548d30db426ea3d95d63f589b294",
"categoryName":"文书档案-卷案级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待登记",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"已解除",
"docNum":"JY202205050002",
"lendHandler":"管理员"
},
{
"id":"45ff597e7cc64d11803ac422816b1e23",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待登记",
"operationTime":"2022-05-27 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"未解除",
"docNum":"JY202205050003",
"archiveNum":"1",
"lendHandler":"管理员"
},
{
"id":"49106aa0d1534a7a900843d0c4531840",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待登记",
"operationTime":"2022-05-28 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"未解除",
"docNum":"JY202205050004",
"archiveNum":"1",
"lendHandler":"管理员"
},
{
"id":"6e604355ff1e47e8b48117dca36420c7",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待登记",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"解除失败",
"docNum":"JY202205050005",
"archiveNum":"1"
},
{
"id":"6f4a6631d9d3424b960793704f3757b3",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待登记",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"解除失败",
"docNum":"JY202205050006",
"archiveNum":"1"
},
{
"id":"76e29d5c0a0541bfb1ee9da432183b15",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待登记",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"docNum":"JY202205050007"
},
{
"id":"a0ffdd94161146c49161662c3f9a70cd",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待登记",
"operationTime":"2022-07-25 14:02",
"borrowerName":"王五",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"docNum":"JY202205050008"
},
{
"id":"a79e0d67165a4b08b089b309dd947908",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待登记",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085"
},
{
"id":"ca9b850145b74eeda3c22a997696c979",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待登记",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085"
},
{
"id":"dff5529c0d0f45b2b19f2adec7ca0102",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待登记",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085"
},
{
"id":"f3f6ff94c26a4a54967de9cfc56a3b01",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待登记",
"operationTime":"2022-06-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085"
}
],
"footer":null,
"postparam":null
}

252
src/views/archivesManage/lendManage/data3.json

@ -1,252 +0,0 @@
{
"total":12,
"rows":[
{
"id":"29f16d62bc7242d5ba8dc84de5451f93",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"逾期",
"operationTime":"2022-05-26 14:02",
"borrowerName":"李四",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"已解除",
"warnRestoreState":"已恢复",
"docNum":"JY202205050001",
"archiveNum":"1",
"lendHandler":"管理员"
},
{
"id":"3d6d548d30db426ea3d95d63f589b294",
"categoryName":"文书档案-卷案级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"逾期",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"已解除",
"warnRestoreState":"已恢复",
"docNum":"JY202205050002",
"lendHandler":"管理员"
},
{
"id":"45ff597e7cc64d11803ac422816b1e23",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"逾期",
"operationTime":"2022-05-27 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"未解除",
"warnRestoreState":"未恢复",
"docNum":"JY202205050003",
"archiveNum":"1",
"lendHandler":"管理员"
},
{
"id":"49106aa0d1534a7a900843d0c4531840",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"逾期",
"operationTime":"2022-05-28 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"未解除",
"warnRestoreState":"未恢复",
"docNum":"JY202205050004",
"archiveNum":"1",
"lendHandler":"管理员"
},
{
"id":"6e604355ff1e47e8b48117dca36420c7",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待归还",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"解除失败",
"docNum":"JY202205050005",
"archiveNum":"1"
},
{
"id":"6f4a6631d9d3424b960793704f3757b3",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"逾期",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"warnState":"解除失败",
"warnRestoreState":"恢复失败",
"docNum":"JY202205050006",
"archiveNum":"1"
},
{
"id":"76e29d5c0a0541bfb1ee9da432183b15",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"逾期",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"docNum":"JY202205050007"
},
{
"id":"a0ffdd94161146c49161662c3f9a70cd",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待归还",
"operationTime":"2022-07-25 14:02",
"borrowerName":"王五",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085",
"docNum":"JY202205050008"
},
{
"id":"a79e0d67165a4b08b089b309dd947908",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待归还",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085"
},
{
"id":"ca9b850145b74eeda3c22a997696c979",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待归还",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085"
},
{
"id":"dff5529c0d0f45b2b19f2adec7ca0102",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待归还",
"operationTime":"2022-05-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085"
},
{
"id":"f3f6ff94c26a4a54967de9cfc56a3b01",
"categoryName":"文书档案-文件级",
"fieldCnName":"盒号",
"archivesID":"FTZN-2022-BGS-D30-0001",
"titleName":"这是一份文件的标题标题...",
"fieldName":"文书-文件-2022",
"storagePath":"库房A-库区A-01列-1节1层-左",
"lendStatus":"待归还",
"operationTime":"2022-06-25 14:02",
"borrowerName":"张三",
"borrowDays":"2022-5-25至2022-6-25",
"borrowGoal":"工作考察",
"borrowerDepartment":"办公室",
"borrowerIdType":"身份证",
"borrowerIdNum":"420880190011115636",
"borrowerTel":"027-5955 7085"
}
],
"footer":null,
"postparam":null
}

2
src/views/archivesManage/lendManage/lendConfirm/index.vue

@ -148,7 +148,7 @@ export default {
if (this.lineStateVal === 'offline') {
// 线
this.$refs.lendDialogDom.lendSelections = this.selections
this.$refs.lendDialogDom.getLendTid()
this.$refs.lendDialogDom.getLendTid(0)
} else {
// 线
const params = this.selections.map(item => item.orderNo)

119
src/views/archivesManage/lendManage/lendConfirm/module/lendDialog.vue

@ -6,7 +6,7 @@
<span class="dialog-left-bottom" />
<div class="setting-dialog">
<p style="color: #fff; margin: 0 0 20px 40px;">以下档案需要先解除电子标签警报</p>
<el-table :key="Math.random()" :data="table" :cell-class-name="cellWarn" height="325px">
<el-table :key="Math.random()" :data="tipTable" :cell-class-name="cellWarn" height="325px">
<el-table-column type="index" label="序号" align="center" width="80" />
<el-table-column prop="tagType" label="类型" align="center">
<template slot-scope="scope">
@ -24,7 +24,7 @@
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer">
<el-button v-loading="unbindWarnLoading" type="primary" :disabled="btnDisabled" @click="writeEPC">解除警报</el-button>
<el-button v-loading="unbindWarnLoading" type="primary" :disabled="btnDisabled" @click="writeEPC(0)">解除警报</el-button>
</div>
</div>
</el-dialog>
@ -32,7 +32,6 @@
</template>
<script>
import RFID from '@/api/RFID/RFID'
import { FetchReadyBorrowShowTid } from '@/api/archivesManage/lendManage'
import { lendingCrud } from '../../mixins/lending'
import { form } from '@crud/crud'
@ -42,133 +41,29 @@ export default {
return {
lendFormVisible: false,
lendSelections: [],
table: [],
btnDisabled: false,
devId: 'D001',
timer: null,
flagNum: 0,
unbindWarnLoading: false,
n: 0
tipTable: []
}
},
mounted() {
},
methods: {
async fn(n, eas) {
return new Promise(async(resolve, reject) => {
const params = { op: 'RFID_WriteEPC', sDevID: this.devId, EAS: eas, Type: this.table[n].tagType, Code: this.table[n].archivesId, Tid: this.table[n].tid }
let writeRes = await RFID.writeEPC(params)
writeRes = JSON.parse(writeRes)
console.log(writeRes)
if (writeRes.code === '0') {
this.table[n].warnState = '已解除'
this.btnDisabled = false
this.unbindWarnLoading = false
this.n = this.n + 1
if (this.n !== this.table.length) {
this.flagNum = 0
this.flagNum++
this.btnDisabled = true
this.unbindWarnLoading = true
clearTimeout(this.timer)
this.timer = setTimeout(() => {
resolve(this.writeEPC())
}, 2000)
} else {
const index = this.table.findIndex((item) => item.warnState === '解除失败')
if (index === -1) {
const params = this.lendSelections.map(item => item.orderNo)
this.handleConfirmLend(params, this.lendSelections)
} else {
console.log('you')
}
}
// resolve()
} else if (writeRes.code === '-1') {
console.log('n', this.n)
console.log('flagNum', this.flagNum)
console.log('length', this.table.length)
if (this.flagNum > 3) {
this.table[n].warnState = '解除失败'
this.btnDisabled = false
this.unbindWarnLoading = false
this.n = this.n + 1
this.flagNum = 0
this.flagNum++
this.$message({
message: writeRes.message,
type: 'error'
})
}
if (this.n !== this.table.length) {
this.btnDisabled = true
this.unbindWarnLoading = true
clearTimeout(this.timer)
this.timer = setTimeout(() => {
resolve(this.writeEPC())
}, 2000)
}
// reject()
} else if (writeRes.code === '-1000') {
if (this.flagNum > 3) {
this.table[n].warnState = '解除失败'
this.btnDisabled = false
this.unbindWarnLoading = false
this.n = this.n + 1
this.flagNum = 0
this.flagNum++
this.$message({
message: '读写器超时未响应',
type: 'error'
})
}
if (this.n !== this.table.length) {
this.btnDisabled = true
this.unbindWarnLoading = true
clearTimeout(this.timer)
this.timer = setTimeout(() => {
resolve(this.writeEPC())
}, 2000)
}
// reject()
}
})
},
async writeEPC() {
this.flagNum++
this.btnDisabled = true
this.unbindWarnLoading = true
this.fn(this.n, 0)
},
getLendTid() {
const params = this.lendSelections.map(item => item.orderNo)
FetchReadyBorrowShowTid(params).then(data => {
if (data) {
this.table = data.archives
if (this.table.length === 0) {
this.tipTable = data.archives
if (this.tipTable.length === 0) {
this.lendFormVisible = false
this.handleConfirmLend(params, this.lendSelections)
} else {
this.lendFormVisible = true
this.table.forEach(item => {
this.tipTable.forEach(item => {
item.warnState = '未解除'
})
this.n = 0
this.tipIndex = 0
}
}
})
},
handleCancle() {
this.lendFormVisible = !!this.btnDisabled
},
cellWarn({ row, columnIndex }) {
if (row.warnState === '未解除' && columnIndex === 4) {
return 'no-clear'
} else if (row.warnState === '已解除' && columnIndex === 4) {
return 'have-clear'
} else if (row.warnState === '解除失败' && columnIndex === 4) {
return 'fail-clear'
}
}
}
}

4
src/views/archivesManage/lendManage/lendQuery/index.vue

@ -57,7 +57,7 @@
<el-table-column prop="borrowerName" align="center" label="借阅人" width="100" />
<el-table-column prop="borrowDays" align="center" label="借阅时间" width="200">
<template slot-scope="scope">
<div>{{ parseTime(scope.row.borrowStart, '{y}-{m}-{d}') + ' 至 ' + parseTime(scope.row.borrowEnd, '{y}-{m}-{d}') }}</div>
<div>{{ scope.row.borrowType ==='待登记' ? '' : parseTime(scope.row.borrowStart, '{y}-{m}-{d}') + ' 至 ' + parseTime(scope.row.borrowEnd, '{y}-{m}-{d}') }}</div>
</template>
</el-table-column>
<el-table-column prop="purpose" align="center" label="借阅目的" width="100" />
@ -101,7 +101,7 @@ export default {
download: true,
group: false
},
sort: []
sort: ['create_time,desc']
})
},
data() {

155
src/views/archivesManage/lendManage/mixins/lending.js

@ -1,5 +1,6 @@
import { FetchInitBorrowRule, FetchBillBorrowConfirm, FetchArchivesReturnConfirm } from '@/api/archivesManage/lendManage'
import { FetchFindAllSubsetById } from '@/api/archivesConfig/dictDetail'
import RFID from '@/api/RFID/RFID'
export const lendingCrud = {
filters: {
borrowStatus(val) {
@ -34,7 +35,13 @@ export const lendingCrud = {
lineStateVal: '',
lendQuery: {},
lendSelect: '',
isTrue: false
btnDisabled: false,
devId: 'D001',
timer: null,
flagNum: 0,
unbindWarnLoading: false,
tipIndex: 0,
ase: 0
}
},
// 组件挂载时的共用方法
@ -46,7 +53,6 @@ export const lendingCrud = {
// 组件共用方法
methods: {
borrowStyle(val) {
console.log(val)
switch (val) {
case '逾期':
return 'cell-lend have-lend'
@ -94,8 +100,153 @@ export const lendingCrud = {
if (data === selections.length) {
this.$message.success('归还成功 ' + data + ' 条数据' + ' ' + '归还失败0条数据')
this.crud.refresh()
this.returnVisible = false
}
})
},
handleCancle() {
this.lendFormVisible = !!this.btnDisabled
this.returnVisible = !!this.btnDisabled
},
cellWarn({ row, columnIndex }) {
if ((row.warnState === '未解除' || row.warnState === '未恢复') && columnIndex === 4) {
return 'no-clear'
} else if ((row.warnState === '已解除' || row.warnState === '已恢复') && columnIndex === 4) {
return 'have-clear'
} else if ((row.warnState === '解除失败' || row.warnState === '恢复失败') && columnIndex === 4) {
return 'fail-clear'
}
},
async fn() {
return new Promise(async(resolve, reject) => {
const params = { op: 'RFID_WriteEPC', sDevID: this.devId, EAS: this.ase, Type: this.tipTable[this.tipIndex].tagType, Code: this.tipTable[this.tipIndex].archivesId, Tid: this.tipTable[this.tipIndex].tid }
let writeRes = await RFID.writeEPC(params)
writeRes = JSON.parse(writeRes)
console.log(writeRes)
if (writeRes.code === '0') {
if (this.ase === 0) {
this.tipTable[this.tipIndex].warnState = '已解除'
} else {
this.tipTable[this.tipIndex].warnState = '已恢复'
}
this.btnDisabled = false
this.unbindWarnLoading = false
this.tipIndex = this.tipIndex + 1
if (this.tipIndex !== this.tipTable.length) {
this.flagNum = 0
this.flagNum++
this.btnDisabled = true
this.unbindWarnLoading = true
clearTimeout(this.timer)
this.timer = setTimeout(() => {
if (this.ase === 0) {
resolve(this.writeEPC(0))
} else {
resolve(this.writeEPC(1))
}
}, 2000)
} else {
const index = this.tipTable.findIndex((item) => item.warnState === '解除失败')
if (index === -1) {
if (this.ase === 0) {
const params = this.lendSelections.map(item => item.orderNo)
this.handleConfirmLend(params, this.lendSelections)
} else {
const params = this.selections.map(item => item.id)
this.handleConfirmReturn(params, this.lendSelections)
}
} else {
console.log('you')
}
}
// resolve()
} else if (writeRes.code === '-1') {
console.log('tipIndex', this.tipIndex)
console.log('flagNum', this.flagNum)
console.log('length', this.tipTable.length)
if (this.flagNum >= 3) {
if (this.ase === 0) {
this.tipTable[this.tipIndex].warnState = '解除失败'
} else {
this.tipTable[this.tipIndex].warnState = '恢复失败'
}
this.btnDisabled = false
this.unbindWarnLoading = false
this.tipIndex = this.tipIndex + 1
this.flagNum = 0
this.flagNum++
this.$message({
message: writeRes.message,
type: 'error'
})
}
if (this.tipIndex !== this.tipTable.length) {
this.btnDisabled = true
this.unbindWarnLoading = true
clearTimeout(this.timer)
this.timer = setTimeout(() => {
if (this.ase === 0) {
resolve(this.writeEPC(0))
} else {
resolve(this.writeEPC(1))
}
}, 2000)
}
// reject()
} else if (writeRes.code === '-1000') {
console.log('eas', this.ase)
if (this.flagNum >= 3) {
if (this.ase === 0) {
this.tipTable[this.tipIndex].warnState = '解除失败'
} else {
this.tipTable[this.tipIndex].warnState = '恢复失败'
}
this.btnDisabled = false
this.unbindWarnLoading = false
this.tipIndex = this.tipIndex + 1
this.flagNum = 0
this.flagNum++
// this.$message({
// message: '读写器超时未响应',
// type: 'error'
// })
}
if (this.tipIndex !== this.tipTable.length) {
this.btnDisabled = true
this.unbindWarnLoading = true
clearTimeout(this.timer)
this.timer = setTimeout(() => {
console.log('eas111', this.ase)
if (this.ase === 0) {
resolve(this.writeEPC(0))
} else {
resolve(this.writeEPC(1))
}
}, 2000)
} else {
const findErrorArray = this.tipTable.map((item) => item.warnState === '解除失败' || item.warnState === '恢复失败')
if (findErrorArray.length === this.tipTable.length) {
if (this.ase === 0) {
this.lendFormVisible = false
this.crud.refresh()
this.$message.error('解除成功0条数据' + ' ' + '归还失败' + this.tipTable.length + '条数据')
} else {
this.crud.refresh()
this.returnVisible = false
this.$message.error('恢复成功0条数据' + ' ' + '恢复失败' + this.tipTable.length + '条数据')
}
}
}
// reject()
}
})
},
async writeEPC(ase) {
this.flagNum++
this.ase = ase
this.btnDisabled = true
this.unbindWarnLoading = true
this.fn()
}
}
}

6
src/views/archivesManage/lendManage/returnArchives/index.vue

@ -120,13 +120,11 @@ export default {
if (this.selections.length > 0) {
if (this.lineStateVal === 'offline') {
// 线
const returnDialogDom = this.$refs.returnDialogDom
returnDialogDom.table = this.selections
returnDialogDom.returnVisible = true
this.$refs.returnDialogDom.lendSelections = this.selections
this.$refs.returnDialogDom.getLendTid(1)
} else {
// 线
const params = this.selections.map(item => item.id)
console.log(params)
this.handleConfirmReturn(params, this.selections)
}
}

57
src/views/archivesManage/lendManage/returnArchives/module/returnDialog.vue

@ -1,24 +1,29 @@
<template>
<div>
<el-dialog ref="dialogTable" title="归还" :visible.sync="returnVisible">
<el-dialog ref="dialogTable" title="归还" :visible.sync="returnVisible" :close-on-click-modal="false" @close="handleCancle">
<span class="dialog-right-top" />
<span class="dialog-left-bottom" />
<div class="setting-dialog">
<p style="color:#fff; margin:0 0 20px 20px;">以下档案需要先恢复电子标签警报</p>
<el-table :data="table" :cell-class-name="cellWarn" height="325px">
<el-table-column type="index" label="序号" width="80" />
<el-table-column prop="categoryName" label="类型" />
<el-table-column prop="titleName" label="题名" min-width="140" />
<el-table-column prop="TID" label="TID" min-width="140" />
<el-table-column prop="warnRestoreState" label="状态" min-width="85">
<p style="color:#fff; margin:0 0 20px 40px;">以下档案需要先恢复电子标签警报</p>
<el-table :key="Math.random()" :data="tipTable" :cell-class-name="cellWarn" height="325px">
<el-table-column type="index" label="序号" align="center" width="80" />
<el-table-column prop="tagType" label="类型" align="center">
<template slot-scope="scope">
<!-- 已恢复 / 未恢复/恢复失败 -->
<span class="clear">{{ scope.row.warnRestoreState }}</span>
<!-- tagType 1 案卷标签 2 盒标签 3 层架位标签 -->
<span class="clear">{{ scope.row.tagType | tidType }}</span>
</template>
</el-table-column>
<el-table-column prop="maintitle" label="题名" align="center" min-width="140" />
<el-table-column prop="tid" label="TID" align="center" min-width="140" />
<el-table-column prop="warnState" label="状态" align="center" min-width="85">
<template slot-scope="scope">
<!-- 已解除 / 未解除 / 解除失败 -->
<span class="clear">{{ scope.row.warnState }}</span>
</template>
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer">
<el-button disabled>恢复警报</el-button>
<el-button v-loading="unbindWarnLoading" :disabled="btnDisabled" @click="writeEPC(1)">恢复警报</el-button>
</div>
</div>
</el-dialog>
@ -26,22 +31,36 @@
</template>
<script>
import { FetchReadyReturnShowTid } from '@/api/archivesManage/lendManage'
import { lendingCrud } from '../../mixins/lending'
import { form } from '@crud/crud'
export default {
mixins: [lendingCrud, form({})],
data() {
return {
returnVisible: false,
table: []
lendSelections: [],
tipTable: []
}
},
methods: {
cellWarn({ row, columnIndex }) {
if (row.warnRestoreState === '未恢复' && columnIndex === 4) {
return 'no-clear'
} else if (row.warnRestoreState === '已恢复' && columnIndex === 4) {
return 'have-clear'
} else if (row.warnRestoreState === '恢复失败' && columnIndex === 4) {
return 'fail-clear'
getLendTid() {
const params = this.lendSelections.map(item => item.id)
FetchReadyReturnShowTid(params).then(data => {
if (data) {
this.tipTable = data
if (this.tipTable.length === 0) {
this.returnVisible = false
this.handleConfirmReturn(params, this.lendSelections)
} else {
this.returnVisible = true
this.tipTable.forEach(item => {
item.warnState = '未恢复'
})
this.tipIndex = 0
}
}
})
}
}
}

Loading…
Cancel
Save