From fcc086f48917662df2d648597452dcf2322ee5be Mon Sep 17 00:00:00 2001 From: x_ying <2438792676@qq.com> Date: Fri, 15 Jul 2022 13:38:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=85=A5=E5=BA=93=E7=AE=A1=E7=90=86?= =?UTF-8?q?=20=E5=85=A5=E5=BA=93=20=E8=AE=BE=E5=A4=87=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/archivesManage/outInStorage.js | 26 ++++++++ .../outInStorage/inStorage/index.vue | 64 ++++++++++++------- .../inStorage/module/inDialog.vue | 34 +++++----- 3 files changed, 84 insertions(+), 40 deletions(-) create mode 100644 src/api/archivesManage/outInStorage.js diff --git a/src/api/archivesManage/outInStorage.js b/src/api/archivesManage/outInStorage.js new file mode 100644 index 0000000..c621689 --- /dev/null +++ b/src/api/archivesManage/outInStorage.js @@ -0,0 +1,26 @@ +import request from '@/utils/request' +import qs from 'qs' + +// // 拆盒 +// export function unpacking(data) { +// return request({ +// url: 'api/case/unpacking', +// method: 'post', +// data: data +// }) +// } +// // 盒详情 +// export function findInCase(params) { +// return request({ +// url: 'api/case/findInCase' + '?' + qs.stringify(params, { indices: false }), +// method: 'get' +// }) +// } +// 入库 初始化档案盒装盒信息 +export function initCaseByArchives(params) { + return request({ + url: 'api/storage/initCaseByArchives' + '?' + qs.stringify(params, { indices: false }), + method: 'get' + }) +} +export default { initCaseByArchives } diff --git a/src/views/archivesManage/outInStorage/inStorage/index.vue b/src/views/archivesManage/outInStorage/inStorage/index.vue index 3bbb3b7..e0693d5 100644 --- a/src/views/archivesManage/outInStorage/inStorage/index.vue +++ b/src/views/archivesManage/outInStorage/inStorage/index.vue @@ -31,9 +31,10 @@ - + - {{ scope.row.inState }} + 未入 + 未入 + + + + + + + + + + + + {{ scope.row.update_time | parseTime }} - - - - - - - + @@ -94,14 +104,14 @@ import CRUD, { presenter, crud } from '@crud/crud' import pagination from '@crud/Pagination' import fieldDetail from './module/fieldDetail.vue' import inDialog from './module/inDialog.vue' -import data1 from './data1.json' +import { initCaseByArchives } from '@/api/archivesManage/outInStorage' export default { name: 'InStorage', components: { rrOperation, pagination, fieldDetail, inDialog }, mixins: [presenter(), crud()], cruds() { return CRUD({ - url: 'api/case/initCaseList', + url: 'api/storage/readyInto', // crudMethod: caseCrudMethod, title: '档案盒', optShow: {} @@ -129,13 +139,15 @@ export default { }, methods: { getData() { - this.tableData = data1.rows + // this.tableData = this.crud.data + // console.log(this.tableData) + console.log(this.crud, '---------crud') }, // 单元格样式 cell({ row, columnIndex }) { - if (row.inState === '未入' && columnIndex === 2) { + if (row.storageType === 0 && columnIndex === 2) { return 'fail-clear' - } else if (row.inState === '待入' && columnIndex === 2) { + } else if (row.storageType === 1 && columnIndex === 2) { return 'no-clear' } }, @@ -154,15 +166,21 @@ export default { }, // 入库 handleIn() { - if (this.selections.length > 0) { - if (this.selections[0].inState === '待入') { - this.msgVisible = true - } else { - // this.$refs.inDialogDom.child = this.selections[0].child - this.child = this.selections[0].child - console.log(this.child, '----------') - this.$refs.inDialogDom.dialogVisible = true + // console.log(this.selections, 'sel') + if (this.selections[0].storageType === 0) { + // this.child = this.selections[0].child + // console.log(this.selections[0].id, '----------') + const params = { + caseId: this.selections[0].id + // caseId: '8A686B1E9F255DCBE6B262' } + initCaseByArchives(params).then(res => { + console.log(res, 'res') + this.$refs.inDialogDom.childData = res + }) + this.$refs.inDialogDom.dialogVisible = true + } else { + this.msgVisible = true } }, // 人工确认 diff --git a/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue b/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue index c4774a2..ed06988 100644 --- a/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue +++ b/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue @@ -16,11 +16,11 @@ - + 测试 - 盒名称:{{ eItem.fieldName }} + 盒名称:{{ eItem.caseName }} 区号 @@ -64,7 +64,7 @@ - 盒名称:{{ eItem.fieldName }} + 盒名称:{{ eItem.caseName }} 柜号 @@ -107,18 +107,18 @@
盒名称:{{ eItem.fieldName }}
盒名称:{{ eItem.caseName }}