dengrui 1 日 前
コミット
16d53b66ad
2 ファイル変更25 行追加3 行削除
  1. 10 2
      src/api/process/index.ts
  2. 15 1
      src/views/pro-steps/index.vue

+ 10 - 2
src/api/process/index.ts

@@ -33,14 +33,22 @@ export function getScan(data: any) {
 }
 export function carCall(data: any) {
   return request({
-    url: "/api/v1/wms/common/callMaterial",
+    url: "/api/v1/test/callMaterial",
     method: "post",
     data: data,
   });
 }
+export function carExtend(data: any) {
+  return request({
+    url: "/api/v1/test/operateDrawer",
+    method: "post",
+    data: data,
+  });
+}
+
 export function carBack(data: any) {
   return request({
-    url: "/api/v1/wms/common/stockIn",
+    url: "/api/v1/test/stockIn",
     method: "post",
     data: data,
   });

+ 15 - 1
src/views/pro-steps/index.vue

@@ -98,6 +98,8 @@
             <div v-if="selectStepIndex !== null">
               <el-button type="primary" @click="toCall" link>叫料</el-button>
               <el-button type="warning" @click="toBack" link>回库</el-button>
+              <el-button type="success" @click="toExtend" link>伸出</el-button>
+              <el-button type="danger" @click="toWithdraw" link>缩回</el-button>
             </div>
           </div>
           <el-scrollbar
@@ -247,7 +249,7 @@ import { useProcessStore } from "@/store";
 import { getOpCompent } from "@/api/prosteps";
 import { getOrders } from "@/api/process";
 import { getScan } from "@/api/process";
-import { carCall, carBack } from "@/api/process";
+import { carCall, carBack, carExtend } from "@/api/process";
 
 defineOptions({
   name: "ProSteps",
@@ -260,6 +262,18 @@ const toBack = async () => {
   await carBack();
   ElMessage.success("操作成功,请等待");
 };
+const toExtend = async () => {
+  await carExtend({
+    drawerStatus: 0,
+  });
+  ElMessage.success("操作成功,请等待");
+};
+const toWithdraw = async () => {
+  await carExtend({
+    drawerStatus: 1,
+  });
+  ElMessage.success("操作成功,请等待");
+};
 const popStatus = ref(null);
 const openPop = async () => {
   await getTaskArray();