diff --git a/src/views/archivesManage/outInStorage/inStorage/index.vue b/src/views/archivesManage/outInStorage/inStorage/index.vue
index 87feb39..211e3ca 100644
--- a/src/views/archivesManage/outInStorage/inStorage/index.vue
+++ b/src/views/archivesManage/outInStorage/inStorage/index.vue
@@ -66,7 +66,7 @@
-
+
@@ -94,13 +94,14 @@
import rrOperation from '@crud/RR.operation'
import CRUD, { presenter, crud } from '@crud/crud'
import pagination from '@crud/Pagination'
-import fieldDetail from './module/fieldDetail.vue'
+import detailDialog from '../module/detailDialog.vue'
import inDialog from './module/inDialog.vue'
import handDialog from './module/handDialog.vue'
-import { initCaseByArchives, readyCollectConfirm, collectConfirm } from '@/api/archivesManage/outInStorage'
+import { initCaseByArchives, readyCollectConfirm, collectConfirm, initStorageLogDetailes, initStorageLogList } from '@/api/archivesManage/outInStorage'
+// import { getDetail } from '../module/outIn'
export default {
name: 'InStorage',
- components: { rrOperation, pagination, fieldDetail, inDialog, handDialog },
+ components: { rrOperation, pagination, detailDialog, inDialog, handDialog },
mixins: [presenter(), crud()],
cruds() {
return CRUD({
@@ -143,11 +144,27 @@ export default {
clickRowHandler(row) {
this.$refs.table.toggleRowSelection(row) // 单击选中
},
- // 档案详情
- handleDbClick(row) {
- // this.$refs.table.clearSelection()
- this.$refs.archiveDetailDom.detailVisible = true
- this.$refs.archiveDetailDom.rowData = row
+ // 双击详情
+ async handleDbClick(row) {
+ this.$refs.detailDom.rowData = row
+ console.log(row, 'row')
+ let logId = null
+ // 获取logId
+ await initStorageLogList().then(res => {
+ const arr = res.content.filter(item => item.caseId === row.id)
+ const logIdArr = arr.map(item => { return item.id })
+ logId = Math.max(...logIdArr)
+ })
+ const params = {
+ 'logId': logId
+ }
+ // 调取详情接口
+ console.log(params)
+ initStorageLogDetailes(params).then(res => {
+ console.log(res, '==res')
+ this.$refs.detailDom.tableData = res
+ })
+ this.$refs.detailDom.detailVisible = true
},
selectionChangeHandler(val) {
this.selections = val
@@ -182,7 +199,10 @@ export default {
if (res.length === 1) {
const params = res.map(item => item.caseId)
collectConfirm(params).then(data => {
- handDialogDom.singleVisible = true
+ this.$message({
+ message: '入库成功!',
+ type: 'success'
+ })
this.crud.refresh()
})
} else if (res.length > 1) {
diff --git a/src/views/archivesManage/outInStorage/inStorage/module/fieldDetail.vue b/src/views/archivesManage/outInStorage/inStorage/module/fieldDetail.vue
deleted file mode 100644
index b708584..0000000
--- a/src/views/archivesManage/outInStorage/inStorage/module/fieldDetail.vue
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
-
-
-
-
-
-
盒名称:{{ rowData.fieldName }}
-
存放位置:{{ rowData.storagePath }}
-
-
-
条形码:{{ rowData.barCode }}
-
TID:{{ rowData.TID }}
-
-
-
创建时间:{{ rowData.operationTime }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/archivesManage/outInStorage/inStorage/module/handDialog.vue b/src/views/archivesManage/outInStorage/inStorage/module/handDialog.vue
index 6bcbc47..9b862d8 100644
--- a/src/views/archivesManage/outInStorage/inStorage/module/handDialog.vue
+++ b/src/views/archivesManage/outInStorage/inStorage/module/handDialog.vue
@@ -1,14 +1,6 @@
-
-
-
-
-
-
入库成功
-
提示:如果当前设备不在线或者未勾选联动操作,请人工完成上架操作
-
-
+
@@ -39,7 +31,6 @@ export default {
mixins: [crud()],
data() {
return {
- singleVisible: false,
manyVisible: false,
tableData: [],
selections: []
diff --git a/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue b/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue
index 74a57fd..ad4d8d4 100644
--- a/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue
+++ b/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue
@@ -1,7 +1,7 @@
-
+
@@ -74,7 +74,7 @@
- 保存
+ 保存
@@ -122,6 +122,15 @@
+
+
+
+
+
+
入库成功
+
提示:如果当前设备不在线或者未勾选联动操作,请人工完成上架操作
+
+
@@ -135,6 +144,7 @@ export default {
data() {
return {
dialogVisible: false,
+ singleVisible: false,
childData: [],
cnName: '',
defaultProps: { children: 'children', label: 'cnName' },
@@ -191,7 +201,7 @@ export default {
return JSON.parse(JSON.stringify(arr))
},
test() {
- console.log(this.numArr, '...........')
+ this.singleVisible = true
},
// 校验
async selectChange(index) {
@@ -204,7 +214,7 @@ export default {
}
if (bool === 0) {
const params = {
- // deviceId: 'FA0B05E2728EA8129A9F15', //状态改为已入
+ // deviceId: 'FA0B05E2728EA8129A9F15', // 已入
// position: '1-1-3-4-1',
deviceId: '3734A977C269ABEF6E284C', // 待入
position: '1-5-6-2-1',
@@ -229,6 +239,7 @@ export default {
handleSave() {
// const caseId = this.childData.map(item => item.id)
// console.log(caseId, '---caseId')
+ this.crud.downloadLoading = true
const params = []
this.isOccupy.forEach((item, i) => {
const obj = {}
@@ -239,17 +250,17 @@ export default {
obj.shelfId = item.id
params.push(obj)
})
- console.log(params, '==========')
+ console.log(params, '-----------')
collect(params).then(data => {
console.log(data, 'data')
- this.dialogVisible = false
- this.$message({
- message: '入库成功!',
- type: 'success'
- })
- this.crud.refresh()
- this.cnName = null
+ if (data) {
+ this.dialogVisible = false
+ this.singleVisible = true
+ this.crud.refresh()
+ this.cnName = null
+ }
})
+ this.crud.downloadLoading = false
},
handleClose() {
this.cnName = null
@@ -260,7 +271,7 @@ export default {
diff --git a/src/views/archivesManage/outInStorage/module/detailDialog.vue b/src/views/archivesManage/outInStorage/module/detailDialog.vue
index d38a27c..24d6b8e 100644
--- a/src/views/archivesManage/outInStorage/module/detailDialog.vue
+++ b/src/views/archivesManage/outInStorage/module/detailDialog.vue
@@ -5,30 +5,32 @@
-
盒名称:{{ rowData.caseName }}
-
盒条码:{{ rowData.barcode }}
+
盒名称:{{ rowData.caseName }}
+
存放位置:{{ rowData.folderLocationDetails }}
-
存放位置:{{ rowData.folderLocationDetails }}
-
TID:{{ rowData.tid }}
+
条形码:{{ rowData.barcode }}
+
TID:{{ rowData.tid }}
-
创建时间:{{ rowData.create_time | parseTime }}
-
+
+
创建时间:{{ rowData.create_time| parseTime }}
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
- {{ scope.row.create_time | parseTime }}
+ {{ scope.row.update_time | parseTime }}
@@ -50,34 +52,47 @@ export default {
diff --git a/src/views/archivesManage/outInStorage/outInHistory/index.vue b/src/views/archivesManage/outInStorage/outInHistory/index.vue
index 2997b80..75fc9f2 100644
--- a/src/views/archivesManage/outInStorage/outInHistory/index.vue
+++ b/src/views/archivesManage/outInStorage/outInHistory/index.vue
@@ -77,7 +77,7 @@ import qs from 'qs'
import { exportFile } from '@/utils/index'
import detailDialog from '../module/detailDialog.vue'
import { mapGetters } from 'vuex'
-// import { exportStorageLogList } from '@/api/archivesManage/outInStorage'
+import { initStorageLogDetailes } from '@/api/archivesManage/outInStorage'
// exportFile内容
export default {
@@ -185,18 +185,18 @@ export default {
exportFile(this.baseApi + '/api/storage/exportStorageLogList?' + qs.stringify(params, { indices: false }))
},
// 双击 详情
- handleDbClick(row) {
- console.log(row, 'row')
+ async handleDbClick(row) {
this.$refs.detailDom.rowData = row
- // const params = {
- // caseId: row.id
- // // caseId: '1716F6C668C83A929C738B'
- // }
- // this.crud.crudMethod.findInCase(params).then(res => {
- // if (res) {
- // this.$refs.detailDom.tableData = res.archives
- // }
- // })
+ console.log(row, 'row')
+ const params = {
+ 'logId': row.id
+ }
+ // 调取详情接口
+ console.log(params)
+ initStorageLogDetailes(params).then(res => {
+ console.log(res, '==res')
+ this.$refs.detailDom.tableData = res
+ })
this.$refs.detailDom.detailVisible = true
}
diff --git a/src/views/archivesManage/outInStorage/outStorage/index.vue b/src/views/archivesManage/outInStorage/outStorage/index.vue
index ff9c553..4f1940d 100644
--- a/src/views/archivesManage/outInStorage/outStorage/index.vue
+++ b/src/views/archivesManage/outInStorage/outStorage/index.vue
@@ -99,7 +99,7 @@
import rrOperation from '@crud/RR.operation'
import CRUD, { presenter, crud } from '@crud/crud'
import pagination from '@crud/Pagination'
-import { grant, grantConfirm } from '@/api/archivesManage/outInStorage'
+import { grant, grantConfirm, initStorageLogList, initStorageLogDetailes } from '@/api/archivesManage/outInStorage'
import detailDialog from '../module/detailDialog.vue'
export default {
@@ -154,18 +154,25 @@ export default {
this.$refs.table.toggleRowSelection(row) // 单击选中
},
// 双击 详情
- handleDbClick(row) {
- console.log(row, 'row')
+ async handleDbClick(row) {
this.$refs.detailDom.rowData = row
- // const params = {
- // caseId: row.id
- // // caseId: '1716F6C668C83A929C738B'
- // }
- // this.crud.crudMethod.findInCase(params).then(res => {
- // if (res) {
- // this.$refs.detailDom.tableData = res.archives
- // }
- // })
+ console.log(row, 'row')
+ let logId = null
+ // 获取logId
+ await initStorageLogList().then(res => {
+ const arr = res.content.filter(item => item.caseId === row.id)
+ const logIdArr = arr.map(item => { return item.id })
+ logId = Math.max(...logIdArr)
+ })
+ const params = {
+ 'logId': logId
+ }
+ // 调取详情接口
+ console.log(params)
+ initStorageLogDetailes(params).then(res => {
+ console.log(res, '==res')
+ this.$refs.detailDom.tableData = res
+ })
this.$refs.detailDom.detailVisible = true
},
selectionChangeHandler(val) {