From a77749d9df7273b9aed103412c419c79d8cbf268 Mon Sep 17 00:00:00 2001
From: x_ying <2438792676@qq.com>
Date: Mon, 18 Jul 2022 15:05:53 +0800
Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93/=E5=87=BA=E5=85=A5=E5=BA=93?=
=?UTF-8?q?=E8=AE=B0=E5=BD=95=20bug=E4=BF=AE=E6=AD=A3/=E6=A1=A3=E6=A1=88?=
=?UTF-8?q?=E7=9B=92=E8=AF=A6=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../caseList/module/detailDialog.vue | 4 +-
.../outInStorage/module/detailDialog.vue | 83 +++++++++++++++++++
.../outInStorage/outInHistory/index.vue | 25 +++++-
.../outInStorage/outStorage/index.vue | 21 ++++-
4 files changed, 129 insertions(+), 4 deletions(-)
create mode 100644 src/views/archivesManage/outInStorage/module/detailDialog.vue
diff --git a/src/views/archivesManage/caseManage/caseList/module/detailDialog.vue b/src/views/archivesManage/caseManage/caseList/module/detailDialog.vue
index 1c136a5..d35438c 100644
--- a/src/views/archivesManage/caseManage/caseList/module/detailDialog.vue
+++ b/src/views/archivesManage/caseManage/caseList/module/detailDialog.vue
@@ -9,7 +9,7 @@
盒条码:{{ rowData.barcode }}
-
存放位置:{{ rowData.folderLocation }}
+
存放位置:{{ rowData.folderLocationDetails }}
TID:{{ rowData.tid }}
创建时间:{{ rowData.create_time | parseTime }}
@@ -25,7 +25,7 @@
-
+
{{ scope.row.create_time | parseTime }}
diff --git a/src/views/archivesManage/outInStorage/module/detailDialog.vue b/src/views/archivesManage/outInStorage/module/detailDialog.vue
new file mode 100644
index 0000000..d38a27c
--- /dev/null
+++ b/src/views/archivesManage/outInStorage/module/detailDialog.vue
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
盒名称:{{ rowData.caseName }}
+
盒条码:{{ rowData.barcode }}
+
+
+
存放位置:{{ rowData.folderLocationDetails }}
+
TID:{{ rowData.tid }}
+
+
创建时间:{{ rowData.create_time | parseTime }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.create_time | parseTime }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/archivesManage/outInStorage/outInHistory/index.vue b/src/views/archivesManage/outInStorage/outInHistory/index.vue
index 57fe36b..09ae672 100644
--- a/src/views/archivesManage/outInStorage/outInHistory/index.vue
+++ b/src/views/archivesManage/outInStorage/outInHistory/index.vue
@@ -36,6 +36,7 @@
:loading="crud.downloadLoading"
:cell-class-name="cell"
@row-click="clickRowHandler"
+ @row-dblclick="handleDbClick"
@selection-change="selectionChangeHandler"
>
@@ -62,6 +63,8 @@
+
+
@@ -71,11 +74,12 @@ import CRUD, { presenter, crud } from '@crud/crud'
import pagination from '@crud/Pagination'
// import crudOperation from '@crud/CRUD.operation'
import { exportFile } from '@/utils/index'
+import detailDialog from '../module/detailDialog.vue'
// exportFile内容
export default {
name: 'OutInHistory',
- components: { rrOperation, pagination },
+ components: { rrOperation, pagination, detailDialog },
mixins: [presenter(), crud()],
cruds() {
return CRUD({
@@ -92,6 +96,9 @@ export default {
},
data() {
return {
+ permission: {
+ download: ['admin', 'permission:download']
+ },
msgVisible: false,
selections: [],
keyWord: '',
@@ -157,7 +164,23 @@ export default {
this.crud.downloadLoading = true
exportFile(this.baseApi + '/api/storage/exportStorageLogList')
this.crud.downloadLoading = false
+ },
+ // 双击 详情
+ handleDbClick(row) {
+ // console.log(row, '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
+ // }
+ // })
+ this.$refs.detailDom.detailVisible = true
}
+
}
}
diff --git a/src/views/archivesManage/outInStorage/outStorage/index.vue b/src/views/archivesManage/outInStorage/outStorage/index.vue
index c75c3a6..fc727de 100644
--- a/src/views/archivesManage/outInStorage/outStorage/index.vue
+++ b/src/views/archivesManage/outInStorage/outStorage/index.vue
@@ -33,6 +33,7 @@
:data="crud.data"
:cell-class-name="cell"
@row-click="clickRowHandler"
+ @row-dblclick="handleDbClick"
@selection-change="selectionChangeHandler"
>
@@ -68,6 +69,8 @@
+
+
@@ -77,10 +80,11 @@ import rrOperation from '@crud/RR.operation'
import CRUD, { presenter, crud } from '@crud/crud'
import pagination from '@crud/Pagination'
// import { grant } from '@/api/archivesManage/outInStorage'
+import detailDialog from '../module/detailDialog.vue'
export default {
name: 'OutInStorage',
- components: { rrOperation, pagination },
+ components: { rrOperation, pagination, detailDialog },
mixins: [presenter(), crud()],
cruds() {
return CRUD({
@@ -127,6 +131,21 @@ export default {
clickRowHandler(row) {
this.$refs.table.toggleRowSelection(row) // 单击选中
},
+ // 双击 详情
+ handleDbClick(row) {
+ // console.log(row, '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
+ // }
+ // })
+ this.$refs.detailDom.detailVisible = true
+ },
selectionChangeHandler(val) {
this.selections = val
// console.log(val, '-----')