فهرست منبع

物料发放频次

zhujindu 8 ماه پیش
والد
کامیت
22ad220bd9
2فایلهای تغییر یافته به همراه53 افزوده شده و 0 حذف شده
  1. 9 0
      src/api/index.js
  2. 44 0
      src/views/deviceOutside/suishenbangOutstoreVisit.vue

+ 9 - 0
src/api/index.js

@@ -970,3 +970,12 @@ export function addPhotoToDB(data) {
     data: data,
   });
 }
+
+// 获取门店发放的物料记录接口
+export function getMaterialHistory(query) {
+  return request({
+    url: '/mobile/storeGroup/getMaterialHistory',
+    method: 'get',
+    params: query,
+  });
+}

+ 44 - 0
src/views/deviceOutside/suishenbangOutstoreVisit.vue

@@ -46,6 +46,15 @@
           @click="overbookingFn(urlParameter)"
           >去下单</van-button
         >
+        <van-button
+          type="info"
+          style="background: rgb(0, 87, 186); color: #fff; margin: 10px; border-radius: 5px"
+          size="small"
+          plain
+          class="centerBtn"
+          @click="wuliaoLog(urlParameter)"
+          >物料历史</van-button
+        >
         <van-button
           type="info"
           style="
@@ -110,6 +119,20 @@
       </div>
     </van-dialog>
     <div id="allmap"></div>
+    <!-- 物料历史列表 -->
+    <el-dialog
+      :visible.sync="wuliaoTable"
+      width="90%"
+      :append-to-body="true"
+      :close-on-click-modal="false"
+      @close="wuliaoTableClose"
+      custom-class="wuliaoTable">
+      <el-table :data="wuliaoList" border style="width: 100%">
+        <el-table-column label="物料名称" prop="materialDataName" />
+        <el-table-column label="发放时间" prop="issuerTime" />
+        <el-table-column label="发放数量" prop="inventoryNum" />
+      </el-table>
+    </el-dialog>
   </div>
 </template>
 
@@ -122,6 +145,7 @@ import {
   suishenbangStoreSale,
   stopVisit,
   buryingPoint,
+  getMaterialHistory,
 } from '@/api/index';
 import axios from 'axios';
 import { saveVisitsParams, getOrderUrlByStoreId } from '@/api/inventory';
@@ -173,6 +197,8 @@ export default {
       id: '89',
       startTime: null,
       timeN: null,
+      wuliaoTable: false,
+      wuliaoList: [],
     };
   },
   created() {
@@ -676,6 +702,24 @@ export default {
         },
       });
     },
+    // 物料历史
+    wuliaoLog() {
+      this.toastLoading(0, '加载中...', true);
+      getMaterialHistory({ storeId: this.storeId })
+        .then((res) => {
+          this.toastLoading().clear();
+          if (res.code == 200 && res.data) {
+            this.wuliaoList = res.data;
+            this.wuliaoTable = true;
+          }
+        })
+        .catch(() => {
+          this.toastLoading().clear();
+        });
+    },
+    wuliaoTableClose() {
+      this.wuliaoTable = false;
+    },
   },
   destroyed() {
     this.timeN = null;