Преглед на файлове

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

liujt преди 2 месеца
родител
ревизия
a3befadabc
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      src/views/warehouseManagement/inventoryAllocation/accountstatement/generateStatement.vue

+ 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;