From f5257df10b3258e76ea12dc98c301f459c466f7f Mon Sep 17 00:00:00 2001
From: xuhuajiao <13476289682@163.com>
Date: Thu, 6 Jul 2023 17:13:12 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E5=BA=93=E5=A4=9A=E9=80=89/=E5=80=9F?=
=?UTF-8?q?=E9=98=85=E8=AF=A6=E6=83=85=E5=8A=A0=E5=BC=80=E6=9E=B6/?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/archivesManage/outInStorage.js | 6 +-
src/assets/styles/index.scss | 4 +-
.../module/archivesInfo/index.vue | 2 -
.../archivesManage/archivesSearch/index.vue | 2 -
.../lendManage/components/archiveDetail.vue | 330 +++++++++-------
.../components/lendArchivesList.vue | 2 -
.../lendManage/lendQuery/index.vue | 367 +++++++++---------
.../lendManage/returnArchives/index.vue | 319 +++++++--------
.../outInStorage/inStorage/index.vue | 13 +-
.../inStorage/module/handDialog.vue | 4 +-
.../inStorage/module/inDialog.vue | 89 ++++-
.../warehouse3D/deseCabinet/index.vue | 2 -
12 files changed, 626 insertions(+), 514 deletions(-)
diff --git a/src/api/archivesManage/outInStorage.js b/src/api/archivesManage/outInStorage.js
index 42e276f..22dd13f 100644
--- a/src/api/archivesManage/outInStorage.js
+++ b/src/api/archivesManage/outInStorage.js
@@ -2,9 +2,9 @@ import request from '@/utils/request'
import qs from 'qs'
// 入库 初始化档案盒装盒信息
-export function initCaseByArchives(params) {
+export function initCasesByArchives(params) {
return request({
- url: 'api/storage/initCaseByArchives' + '?' + qs.stringify(params, { indices: false }),
+ url: 'api/storage/initCasesByArchives' + '?' + qs.stringify(params, { indices: false }),
method: 'get'
})
}
@@ -94,7 +94,7 @@ export function initStorageDetailes(params) {
}
export default {
- initCaseByArchives,
+ initCasesByArchives,
isOccupy,
collect,
grant,
diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss
index 25739f5..b1c1d89 100644
--- a/src/assets/styles/index.scss
+++ b/src/assets/styles/index.scss
@@ -200,8 +200,8 @@ ul{
/**滚动条的宽度*/
::-webkit-scrollbar {
- width: 4px;
- height: 4px;
+ width: 8px;
+ height: 8px;
}
//滚动条的滑块
diff --git a/src/views/archivesManage/archivesList/module/archivesInfo/index.vue b/src/views/archivesManage/archivesList/module/archivesInfo/index.vue
index 9f20511..13048e2 100644
--- a/src/views/archivesManage/archivesList/module/archivesInfo/index.vue
+++ b/src/views/archivesManage/archivesList/module/archivesInfo/index.vue
@@ -157,8 +157,6 @@ export default {
// 获取密集架相关信息
getDeviceListAll() {
const params = {
- page: 0,
- size: 10,
sort: 'sequence,asc',
storeroomId: 'D6490DA3D4261E8C26D0E3'
}
diff --git a/src/views/archivesManage/archivesSearch/index.vue b/src/views/archivesManage/archivesSearch/index.vue
index 9e9d86a..1ed3cdc 100644
--- a/src/views/archivesManage/archivesSearch/index.vue
+++ b/src/views/archivesManage/archivesSearch/index.vue
@@ -246,8 +246,6 @@ export default {
// 获取密集架相关信息
getDeviceListAll() {
const params = {
- page: 0,
- size: 10,
sort: 'sequence,asc',
storeroomId: 'D6490DA3D4261E8C26D0E3'
}
diff --git a/src/views/archivesManage/lendManage/components/archiveDetail.vue b/src/views/archivesManage/lendManage/components/archiveDetail.vue
index 7918d32..da1f567 100644
--- a/src/views/archivesManage/lendManage/components/archiveDetail.vue
+++ b/src/views/archivesManage/lendManage/components/archiveDetail.vue
@@ -1,130 +1,200 @@
-
- 单据号:{{ otherInfo.id }} 借阅人:{{ borrowerInfo.borrowerName }} 所属部门:{{ borrowerInfo.department }} 证件类型:{{ borrowerInfo.cardType }} 证件号码:{{ borrowerInfo.idcard }} 电话号码:{{ borrowerInfo.phone }} 借阅目的:{{ otherInfo.purpose }} 借阅日期:{{ lendDatesInfo }} 借阅状态:{{ otherInfo.borrow_type | borrowStatus }} 操作时间:{{ otherInfo.create_time | parseTime }} 单据号:{{ otherInfo.id }} 借阅人:{{ borrowerInfo.borrowerName }} 所属部门:{{ borrowerInfo.department }} 证件类型:{{ borrowerInfo.cardType }} 证件号码:{{ borrowerInfo.idcard }} 电话号码:{{ borrowerInfo.phone }} 借阅目的:{{ otherInfo.purpose }} 借阅日期:{{ lendDatesInfo }} 借阅状态:{{ otherInfo.borrow_type | borrowStatus }} 操作时间:{{ otherInfo.create_time | parseTime }}
盒名称:{{ eItem.caseName }}
+盒名称:
- 位置已核对成功,层位名称:{{ fieldNum }}区{{ childData[index].colNum }}列{{ childData[index].sectionNum }}节{{ childData[index].levelNum }}层{{ (childData[index].direction==='1'? '左边':'')||(childData[index].direction==='2'?'右边':'') }} + 位置已核对成功,层位名称:{{ fieldNum }}区{{ mijiChild[index].colNum }}列{{ mijiChild[index].sectionNum }}节{{ mijiChild[index].levelNum }}层{{ (mijiChild[index].direction==='1'? '左边':'')||(mijiChild[index].direction==='2'?'右边':'') }}
@@ -146,6 +146,7 @@ export default { dialogVisible: false, singleVisible: false, childData: [], // 档案盒信息列表 + mijiChild: [], fieldNum: 1, // 柜号 btnChecked: [], // 校验状态 columnOptions: [], // 密集架-列,回转柜-列 @@ -170,20 +171,33 @@ export default { handleNodeClick(data) { this.deviceId = data.id this.cnName = data.deviceTypeId.name - console.log(data) + this.mijiChild.push(this.childData[0]) // 按钮状态 this.btnChecked = this.childArr(1) this.isOccupy = this.childArr({}) const params = { deviceInfoId: data.id } - // 清空上一次选择数据 - for (let index = 0; index < this.childData.length; index++) { - this.childData[index].colNum = '' - this.childData[index].sectionNum = '' - this.childData[index].levelNum = '' - this.childData[index].direction = '' - this.childData[index].cabLevel = '' - this.childData[index].cabCol = '' + if (this.deviceType === 1) { + // 清空上一次选择数据 + for (let index = 0; index < this.mijiChild.length; index++) { + this.mijiChild[index].colNum = '' + this.mijiChild[index].sectionNum = '' + this.mijiChild[index].levelNum = '' + this.mijiChild[index].direction = '' + this.mijiChild[index].cabLevel = '' + this.mijiChild[index].cabCol = '' + } + } else { + // 清空上一次选择数据 + for (let index = 0; index < this.childData.length; index++) { + this.childData[index].colNum = '' + this.childData[index].sectionNum = '' + this.childData[index].levelNum = '' + this.childData[index].direction = '' + this.childData[index].cabLevel = '' + this.childData[index].cabCol = '' + } } + // 选择器 if (data.deviceTypeId.name === '密集架') { this.deviceType = 1 @@ -223,9 +237,18 @@ export default { // 计算 -----删除 childArr(str) { const arr = [] - for (let i = 0; i < this.childData.length; i++) { - arr.push(str) + if (this.deviceType === 1) { + for (let i = 0; i < this.mijiChild.length; i++) { + arr.push(str) + } + } else { + for (let i = 0; i < this.childData.length; i++) { + arr.push(str) + } } + // for (let i = 0; i < this.childData.length; i++) { + // arr.push(str) + // } return JSON.parse(JSON.stringify(arr)) }, test() { @@ -233,7 +256,12 @@ export default { }, // 校验 async selectChange(index, position) { - const obj = this.childData[index] + let obj + if (this.deviceType === 1) { + obj = this.mijiChild[index] + } else { + obj = this.childData[index] + } // 密集架因业务原因,最后2列(9,10列)为战备柜,且层数只有5层 // if (this.deviceType === 1 && position === 'col') { // if (obj.colNum > 8) { @@ -282,8 +310,15 @@ export default { }) // 按钮变化 if (res) { - this.btnChecked[index] = 2 - this.isOccupy[index] = res + if (this.deviceType === 1) { + this.childData.forEach((item, i) => { + this.isOccupy[i] = res + this.btnChecked[i] = 2 + }) + } else { + this.btnChecked[index] = 2 + this.isOccupy[index] = res + } } else { this.btnChecked[index] = 3 } @@ -295,6 +330,7 @@ export default { // const caseId = this.childData.map(item => item.id) this.crud.downloadLoading = true const params = [] + console.log('isOccupy2', this.isOccupy) this.isOccupy.forEach((item, i) => { const obj = {} obj.caseId = this.childData[i].id @@ -304,6 +340,7 @@ export default { obj.shelfId = item.id params.push(obj) }) + console.log('params', params) collect(params).then(data => { console.log(data, 'data') if (data) { @@ -317,6 +354,12 @@ export default { }, handleClose() { this.cnName = null + this.mijiChild = [] + this.childData = [] + this.crud.downloadLoading = false + this.btnChecked = this.childArr(1) + this.isOccupy = this.childArr({}) + this.crud.refresh() }, open() { if (this.$refs.deviceTree) { @@ -465,4 +508,8 @@ export default { color: #fff; font-size: 16px; } +.el-tag{ + font-size: 14px; + margin-right: 4px; +} diff --git a/src/views/storeManage/warehouse3D/deseCabinet/index.vue b/src/views/storeManage/warehouse3D/deseCabinet/index.vue index 6026f39..ef039db 100644 --- a/src/views/storeManage/warehouse3D/deseCabinet/index.vue +++ b/src/views/storeManage/warehouse3D/deseCabinet/index.vue @@ -177,8 +177,6 @@ export default { getDeviceListAll() { this.loading = true const params = { - page: 0, - size: 10, sort: 'sequence,asc', storeroomId: this.storeroomId }