Parcourir la source

fix(库存分配): 优化生成对账单的成功提示信息

liujt il y a 2 mois
Parent
commit
a3befadabc

+ 4 - 2
src/views/warehouseManagement/inventoryAllocation/accountstatement/generateStatement.vue

@@ -235,9 +235,11 @@
             console.log('params~~~', params);
             this.saveLoading = true;
             try {
-                await batchGenerateStatementAPI(params);
+                const res = await batchGenerateStatementAPI(params);
+                console.log('res~~~', res);
                 this.saveLoading = false;
-                this.$message.success('操作成功');
+                const msg = res && res.length > 0 ? res.join(',') : '操作成功';
+                this.$message.success(msg);
                 this.reload();
             } catch (error) {
                 this.saveLoading = false;