Forráskód Böngészése

达沃特 库存账计算内贸锁定 2023年5月29日16:41:13

纪新园 2 éve
szülő
commit
78bff2d904

+ 7 - 0
src/api/basicData/inventoryAccount.js

@@ -66,3 +66,10 @@ export function getDetail(data) {
     params: data
   })
 }
+// 计算内贸锁定
+export function LockingQuantity() {
+  return request({
+    url: '/api/blade-stock/stockgoods/batchModifyLockingQuantity',
+    method: 'get'
+  })
+}

+ 16 - 2
src/views/businessManagement/inventoryAccount/index.vue

@@ -57,9 +57,16 @@
             icon="el-icon-printer"
             size="small"
             :loading="exportLoading"
-            @click.stop="statement"
+            @click="derivation()"
           >报表打印
           </el-button>
+          <el-button
+            type="info"
+            icon="el-icon-printer"
+            size="small"
+            @click.stop="LockingQuantity"
+          >计算内贸锁定
+          </el-button>
         </template>
       </avue-crud>
       <el-dialog title="导入库存"
@@ -80,7 +87,7 @@
 </template>
 <script>
 import option from "./configuration/mainList.json"
-import {deleteTemplate,customerList,typeSave} from "@/api/basicData/inventoryAccount"
+import {deleteTemplate,customerList,typeSave,LockingQuantity} from "@/api/basicData/inventoryAccount"
 import {getToken} from "@/util/auth";
 import { defaultDate } from "@/util/date";
 import reportDialog from "@/components/report-dialog/main";
@@ -292,6 +299,13 @@ export default {
       this.page.currentPage = 1;
       this.onLoad(this.page,this.search);
     },
+    //计算内贸锁定
+    LockingQuantity() {
+      this.loading = true;
+      LockingQuantity().finally(() => {
+        this.loading = false;
+      })
+    },
   }
 }
 </script>