Ver código fonte

feat(仓库管理): 添加入出库物品列表接口并优化导出按钮功能

yusheng 6 meses atrás
pai
commit
575bbb9b33

+ 10 - 0
src/api/warehouseManagement/index.js

@@ -90,6 +90,16 @@ export default {
     }
     return Promise.reject(new Error(res.data.message));
   },
+  // 出入库物品列表
+  getInboundGoodsList: async (params) => {
+    const res = await request.get(`/wms/outintwo/goodsPage`, {
+      params
+    });
+    if (res.data.code == 0) {
+      return res.data.data;
+    }
+    return Promise.reject(new Error(res.data.message));
+  },
   // 获取入库详情
   getInboundDetailsById: async (id) => {
     const res = await request.get(`/wms/outintwo/getById/${id}`);

+ 11 - 3
src/views/warehouseManagement/statisticalReports/transceiverDetails/add.vue

@@ -117,7 +117,15 @@
         @click="downLoad"
         :loading="loading"
         type="primary"
-        >提交并导出</el-button
+        >统计导出</el-button
+      >
+      <el-button
+        v-if="!isView"
+        size="small"
+        @click="downLoad"
+        :loading="loading"
+        type="primary"
+        >明细导出</el-button
       >
       <el-button v-else size="small" @click="visible = false" type="primary"
         >确定</el-button
@@ -387,7 +395,7 @@
               align: 'center',
               showOverflowTooltip: true
             },
-             {
+            {
               prop: 'remark',
               label: '备注',
               align: 'center',
@@ -602,7 +610,7 @@
             params.endTime = params.time[1];
           }
           delete params.time;
-          const data = await storageApi.getInboundList({
+          const data = await storageApi.getInboundGoodsList({
             ...params,
             ...where,
             ...order,