From 90fe898268ffd1cf1a3f351020c2c523a89a5e94 Mon Sep 17 00:00:00 2001 From: x_ying <2438792676@qq.com> Date: Wed, 20 Jul 2022 17:29:37 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../outInStorage/inStorage/index.vue | 16 +++------------- .../outInStorage/outInHistory/index.vue | 10 ---------- .../outInStorage/outStorage/index.vue | 15 --------------- 3 files changed, 3 insertions(+), 38 deletions(-) diff --git a/src/views/archivesManage/outInStorage/inStorage/index.vue b/src/views/archivesManage/outInStorage/inStorage/index.vue index 9cf5614..213b2eb 100644 --- a/src/views/archivesManage/outInStorage/inStorage/index.vue +++ b/src/views/archivesManage/outInStorage/inStorage/index.vue @@ -126,9 +126,7 @@ export default { child: [] } }, - created() { - this.getData() - }, + methods: { // 获取数据前的处理 [CRUD.HOOK.beforeRefresh]() { @@ -137,9 +135,7 @@ export default { this.crud.query.tid = null this.crud.query[this.optionVal] = this.keyWord }, - getData() { - console.log(this.crud, 'crud') - }, + // 单元格样式 cell({ row, columnIndex }) { if (row.storageType === 0 && columnIndex === 2) { // 未入 @@ -154,7 +150,6 @@ export default { // 双击详情 async handleDbClick(row) { this.$refs.detailDom.rowData = row - console.log(row, 'row') let logId = null // 获取logId await initStorageLogList().then(res => { @@ -166,27 +161,22 @@ export default { '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 - // console.log(val, '-----') }, // 入库 handleIn() { - // console.log(this.selections, 'sel') if (this.selections[0].storageType === 0) { 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 @@ -201,7 +191,7 @@ export default { if (bool) { // 全是'待入'状态弹出成功提示 const params = this.selections.map(item => item.id) readyCollectConfirm(params).then(res => { - console.log(res, '预人工确认res') + // console.log(res, '预人工确认res') const handDialogDom = this.$refs.handDialogDom if (res.length === 1) { const params = res.map(item => item.caseId) diff --git a/src/views/archivesManage/outInStorage/outInHistory/index.vue b/src/views/archivesManage/outInStorage/outInHistory/index.vue index 75fc9f2..c1ec8de 100644 --- a/src/views/archivesManage/outInStorage/outInHistory/index.vue +++ b/src/views/archivesManage/outInStorage/outInHistory/index.vue @@ -128,9 +128,6 @@ export default { 'baseApi' ]) }, - created() { - this.getData() - }, methods: { // 获取数据前的处理 [CRUD.HOOK.beforeRefresh]() { @@ -145,9 +142,6 @@ export default { } this.crud.query[this.optionVal] = this.keyWord }, - getData() { - console.log(this.crud, 'crud') - }, clickRowHandler(row) { this.$refs.table.toggleRowSelection(row) // 单击选中 }, @@ -156,7 +150,6 @@ export default { }, selectionChangeHandler(val) { this.selections = val - console.log(this.selections, '-----') }, // 单元格样式 cell({ row, columnIndex }) { @@ -187,14 +180,11 @@ export default { // 双击 详情 async handleDbClick(row) { this.$refs.detailDom.rowData = row - 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 4f1940d..768b2d4 100644 --- a/src/views/archivesManage/outInStorage/outStorage/index.vue +++ b/src/views/archivesManage/outInStorage/outStorage/index.vue @@ -135,14 +135,7 @@ export default { ] } }, - created() { - this.getData() - }, methods: { - getData() { - console.log(this.crud, 'crud') - // this.tableData = data1.rows - }, // 获取数据前的处理 [CRUD.HOOK.beforeRefresh]() { this.crud.query.caseName = null @@ -156,7 +149,6 @@ export default { // 双击 详情 async handleDbClick(row) { this.$refs.detailDom.rowData = row - console.log(row, 'row') let logId = null // 获取logId await initStorageLogList().then(res => { @@ -168,16 +160,13 @@ export default { '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 - // console.log(val, '-----') }, // 出库 handleOut() { @@ -194,7 +183,6 @@ export default { if (bool) { const params = this.selections.map(item => { return item.id }) grantConfirm(params).then(res => { - console.log(res, '--人工出库') if (res) { this.$message({ message: '出库成功!', @@ -210,12 +198,9 @@ export default { } }, handleConfirm() { - // console.log(this.selections, 'sel') this.crud.downloadLoading = true const params = this.selections.map(item => { return item.id }) - console.log(params, 'params') grant(params).then(res => { - // console.log(res, '--res') if (res) { this.crud.downloadLoading = false this.$message({