|
@@ -39,10 +39,26 @@
|
|
|
>{{ item.seqNo }}</span
|
|
|
>
|
|
|
</el-tooltip>
|
|
|
- <div :class="item.state == '2' ? 'status success' : 'status'">
|
|
|
- {{
|
|
|
- dictS.getLableByValue("station_task_state", String(item.state))
|
|
|
- }}
|
|
|
+ <div
|
|
|
+ style="display: flex; flex-direction: column; align-items: end"
|
|
|
+ >
|
|
|
+ <div :class="item.state == '2' ? 'status success' : 'status'">
|
|
|
+ {{
|
|
|
+ dictS.getLableByValue(
|
|
|
+ "station_task_state",
|
|
|
+ String(item.state)
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ </div>
|
|
|
+ <el-button
|
|
|
+ class="btn"
|
|
|
+ style="margin-bottom: 5px"
|
|
|
+ color="#0A59F7"
|
|
|
+ @click="pull(item.seqNo)"
|
|
|
+ v-if="item.state != '2'"
|
|
|
+ >
|
|
|
+ 拉料
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -54,11 +70,21 @@
|
|
|
<script lang="ts" setup>
|
|
|
import { useDictionaryStore, useProcessStore } from "@/store";
|
|
|
import { Transition } from "vue";
|
|
|
+import { getPull } from "@/api/process";
|
|
|
const refArray = ref([]);
|
|
|
const store = useProcessStore();
|
|
|
const dictS = useDictionaryStore();
|
|
|
const selectSeqIndex = inject("selectSeqIndex");
|
|
|
const selectSeqArray = inject("selectSeqArray");
|
|
|
+const pull = async (seq: string) => {
|
|
|
+ const { data, code } = await getPull({ seqNo: seq });
|
|
|
+ if (code == "200") {
|
|
|
+ ElMessage.success("拉料成功!");
|
|
|
+ } else {
|
|
|
+ ElMessage.error("拉料失败!");
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
const fz = (index: any) => {
|
|
|
const text = refArray.value[index].textContent;
|
|
|
copyTextUsingTextarea(text);
|