diff --git a/src/api/archivesManage/caseManage.js b/src/api/archivesManage/caseManage.js
index 362a901..f34240a 100644
--- a/src/api/archivesManage/caseManage.js
+++ b/src/api/archivesManage/caseManage.js
@@ -1,4 +1,5 @@
import request from '@/utils/request'
+import qs from 'qs'
export function add(form) {
return edit(form)
@@ -62,4 +63,11 @@ export function unpacking(data) {
data: data
})
}
-export default { add, edit, del, unpacking }
+// 盒详情
+export function findInCase(params) {
+ return request({
+ url: 'api/case/findInCase' + '?' + qs.stringify(params, { indices: false }),
+ method: 'get'
+ })
+}
+export default { add, edit, del, unpacking, findInCase }
diff --git a/src/views/archivesManage/caseManage/caseList/index.vue b/src/views/archivesManage/caseManage/caseList/index.vue
index ad0cfb9..4e5866a 100644
--- a/src/views/archivesManage/caseManage/caseList/index.vue
+++ b/src/views/archivesManage/caseManage/caseList/index.vue
@@ -2,7 +2,6 @@
-
@@ -28,13 +27,13 @@
-
+
-
-
+
+
+ 未入
+
@@ -58,6 +57,8 @@
+
+
@@ -70,10 +71,10 @@ import CRUD, { presenter, crud } from '@crud/crud'
import crudOperation from '@crud/CRUD.operation'
import rrOperation from '@crud/RR.operation'
import pagination from '@crud/Pagination'
-
+import detailDialog from './module/detailDialog.vue'
export default {
name: 'CaseList',
- components: { eForm, crudOperation, rrOperation, pagination, BindingTagDlg, openCaseDlg },
+ components: { eForm, crudOperation, rrOperation, pagination, BindingTagDlg, openCaseDlg, detailDialog },
mixins: [presenter(), crud()],
cruds() {
return CRUD({
@@ -133,14 +134,6 @@ export default {
}
},
methods: {
- // test() {
- // console.log(this.crud.data, '---')
- // },
- handleConfirm() {
- },
- handleClose(done) {
- done()
- },
clickRowHandler(row) {
this.$refs.table.toggleRowSelection(row)
},
@@ -163,13 +156,42 @@ export default {
this.$refs.openCase.openCaseVisible = true
this.$refs.openCase.caseData = data
}
+ },
+ // 表格双击
+ 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 => {
+ console.log(res, 'res')
+ if (res) {
+ this.$refs.detailDom.tableData = res.archives
+ }
+ })
+ this.$refs.detailDom.detailVisible = true
+ },
+ // 单元格样式
+ cell({ row, columnIndex }) {
+ if (row.depositNum === 0 && columnIndex === 2) { // 未入
+ console.log(row.depositNum, '-----')
+ return 'fail-clear'
+ } else if (row.depositNum === '待入' && columnIndex === 2) { // 待入
+ return 'no-clear'
+ } else if (row.depositNum === '待入' && columnIndex === 2) { // 已入
+ return 'have-clear'
+ }
}
}
}
diff --git a/src/views/archivesManage/caseManage/caseList/module/detailDialog.vue b/src/views/archivesManage/caseManage/caseList/module/detailDialog.vue
new file mode 100644
index 0000000..1c136a5
--- /dev/null
+++ b/src/views/archivesManage/caseManage/caseList/module/detailDialog.vue
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
盒名称:{{ rowData.caseName }}
+
盒条码:{{ rowData.barcode }}
+
+
+
存放位置:{{ rowData.folderLocation }}
+
TID:{{ rowData.tid }}
+
+
创建时间:{{ rowData.create_time | parseTime }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.create_time | parseTime }}
+
+
+
+
+
+
+
+
+
+
+