配置随工单、作业状态字典

This commit is contained in:
tao
2025-12-29 17:21:47 +08:00
parent d0357d88b4
commit bc0fe2ce24
2 changed files with 24 additions and 19 deletions

View File

@@ -1,11 +1,14 @@
<script setup lang="ts">
import { ref, onMounted, watch } from 'vue';
import { ref, onMounted, watch, getCurrentInstance } from 'vue';
import { useRouter } from 'vue-router';
import { message } from 'ant-design-vue';
import type { ColumnsType } from 'ant-design-vue/es/table/interface';
import { listStation } from '@/api/pwoManage/station';
import { usePwoStore, useJobStore } from '@/store';
const { proxy } = getCurrentInstance() as any
const { mes_station_status } = proxy.useDict("mes_station_status", "lot_trace_order_status")
interface TableItem {
key: string;
index: number;
@@ -93,6 +96,9 @@ function rowClick(record: TableItem) {
:customRow="rowClick"
>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'status'">
<DictTag :options="mes_station_status" :value="record.status" size="large" />
</template>
<template v-if="column.key === 'action'">
<a-space>
<a-button size="large" type="primary" @click="handleInfeed(record)">进站</a-button>