|
@@ -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();
|