From 47534868894ad3143a0336871dab868130f71121 Mon Sep 17 00:00:00 2001 From: x_z Date: Fri, 16 Dec 2022 17:32:22 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inventory/InvPreInProducts.js | 8 ++++++++ src/views/inout/IOAddOrder.vue | 11 +++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/api/inventory/InvPreInProducts.js b/src/api/inventory/InvPreInProducts.js index 6de1c9f..593dae9 100644 --- a/src/api/inventory/InvPreInProducts.js +++ b/src/api/inventory/InvPreInProducts.js @@ -34,3 +34,11 @@ export function statDetailProducts(query) { }); } +export function clearAllProducts(data) { + return axios({ + url: "/spms/prein/inv/products/clearAll", + method: "post", + data: data + }); +} + diff --git a/src/views/inout/IOAddOrder.vue b/src/views/inout/IOAddOrder.vue index 7a572d1..164b7a2 100644 --- a/src/views/inout/IOAddOrder.vue +++ b/src/views/inout/IOAddOrder.vue @@ -786,10 +786,13 @@ export default { customClass: 'messageIndex' }); } else { - this.$message({ - type: 'error', - message: "提交失败!" + this.editTitle, - customClass: 'messageIndex' + this.$alert(response.message, '提示', { + confirmButtonText: '确定', + type: 'warning', + closeOnClickModal: true, + callback: action => { + this.$refs.inputRef.focus(); + } }); } }