From 68b173b7c7f246f50e22aae4cb8fed6e021a5be5 Mon Sep 17 00:00:00 2001 From: "Mr.sun" <2290907227@qq.com> Date: Fri, 12 Apr 2024 14:34:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=98=E7=82=B9=E4=BC=A0ids?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/libraryManage/inventory.js | 10 +++++----- .../libraryManage/inventory/InventoryEntry.vue | 14 ++++---------- src/views/taskManagement/index.vue | 3 --- 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/src/api/libraryManage/inventory.js b/src/api/libraryManage/inventory.js index 55acbbd..d9d5767 100644 --- a/src/api/libraryManage/inventory.js +++ b/src/api/libraryManage/inventory.js @@ -64,18 +64,18 @@ export function list(query) { } // 取消盘点计划 -export function cancel(query) { +export function cancel(data) { return request({ url: `/wms/stock/inv/cancel`, - method: "delete", - data: query, + method: "post", + data, }); } -// 盘点录入保存 +// 盘点执行 export function entrySave(data) { return request({ - url: `/wms/stock/inv/entrySave`, + url: `/wms/stock/inv/exec`, method: "POST", data, }); diff --git a/src/views/libraryManage/inventory/InventoryEntry.vue b/src/views/libraryManage/inventory/InventoryEntry.vue index 6896083..36668ae 100644 --- a/src/views/libraryManage/inventory/InventoryEntry.vue +++ b/src/views/libraryManage/inventory/InventoryEntry.vue @@ -191,13 +191,6 @@ export default { // if (!this.enterForm.invOrderNo) return this.$message("单据编号必填!"); this.loading = true this.disabledFlag = true - // if (this.value1 !== null && this.value1 !== 'null' && this.value1 !== undefined) { - // this.enterForm.execTime = this.value1[0] - // this.enterForm.endTime = this.value1[1] - // } else { - // this.enterForm.execTime = null - // this.enterForm.endTime = null - // } list({ // invWay: 'open', ...this.enterForm @@ -278,7 +271,7 @@ export default { } return result }, - // 保存 + // 执行 async generateThePlan() { let arr = [] this.selectData.forEach((ele, index) => { @@ -302,7 +295,7 @@ export default { arr2.push(obj) }) // 获取货主ids - const { rows } = await entrySave(arr2) + const { rows } = await entrySave({ ids: this.handleSelect }) this.$message.success('操作成功') this.queryTable() } @@ -319,7 +312,8 @@ export default { }, // 取消盘点请求 remove() { - cancel(this.handleSelect) + // console.log(this.handleSelect) + cancel({ ids: this.handleSelect }) .then((response) => { if (response.code === 200) { this.$message({ diff --git a/src/views/taskManagement/index.vue b/src/views/taskManagement/index.vue index baf7130..23bcd63 100644 --- a/src/views/taskManagement/index.vue +++ b/src/views/taskManagement/index.vue @@ -603,9 +603,6 @@ export default { } queryTaskManagement(this.queryParams).then((res) => { - // res.rows.sort((a, b) => { - // a.createTime < b.createTime ? 1 : -1 - // }) res.rows = res.rows.sort((a, b) => { return this.formatStringToTimestamp(b['createTime']) - this.formatStringToTimestamp(a['createTime']) })