配置随工单、作业状态字典
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, nextTick, onUnmounted } from 'vue';
|
||||
import { ref, reactive, nextTick, onUnmounted, getCurrentInstance } from 'vue';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import { message } from 'ant-design-vue';
|
||||
import { debounce } from 'lodash';
|
||||
@@ -7,6 +7,9 @@ import { usePwoStore, useJobStore } from '@/store';
|
||||
import { listLotTraceOrder, getLotTraceOrder, addQualityAbnormalContact } from '@/api/pwoManage';
|
||||
import type { LotTraceOrderData } from '@/api/pwoManage/model';
|
||||
|
||||
const { proxy } = getCurrentInstance() as any
|
||||
const { mes_station_status, lot_trace_order_status } = proxy.useDict("mes_station_status", "lot_trace_order_status")
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
|
||||
@@ -158,25 +161,23 @@ onUnmounted(() => {
|
||||
<a-form-item label="工单批次">
|
||||
<a-input v-model:value="workOrderInfo.batchNo" readonly>
|
||||
<template #suffix>
|
||||
<a-button @click="handleCopy(workOrderInfo.batchNo)">
|
||||
<a-button @click="handleCopy(workOrderInfo.batchNo)" size="small">
|
||||
<template #icon><i-lucide-copy /></template>
|
||||
</a-button>
|
||||
</template>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="工单状态">
|
||||
<a-input v-model:value="workOrderInfo.status" readonly>
|
||||
<template #suffix>
|
||||
<a-button @click="handleCopy(workOrderInfo.status)">
|
||||
<template #icon><i-lucide-copy /></template>
|
||||
</a-button>
|
||||
<a-input readonly>
|
||||
<template #prefix>
|
||||
<DictTag :options="lot_trace_order_status" :value="workOrderInfo.status" size="medium" />
|
||||
</template>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="总计数量">
|
||||
<a-input v-model:value="workOrderInfo.planQty" readonly>
|
||||
<template #suffix>
|
||||
<a-button @click="handleCopy(workOrderInfo.planQty)">
|
||||
<a-button @click="handleCopy(workOrderInfo.planQty)" size="small">
|
||||
<template #icon><i-lucide-copy /></template>
|
||||
</a-button>
|
||||
</template>
|
||||
@@ -187,7 +188,7 @@ onUnmounted(() => {
|
||||
<a-form-item label="产品编码">
|
||||
<a-input v-model:value="workOrderInfo.tarMaterialCode" readonly>
|
||||
<template #suffix>
|
||||
<a-button @click="handleCopy(workOrderInfo.tarMaterialCode)">
|
||||
<a-button @click="handleCopy(workOrderInfo.tarMaterialCode)" size="small">
|
||||
<template #icon><i-lucide-copy /></template>
|
||||
</a-button>
|
||||
</template>
|
||||
@@ -196,7 +197,7 @@ onUnmounted(() => {
|
||||
<a-form-item label="产品名称">
|
||||
<a-input v-model:value="workOrderInfo.tarMaterialName" readonly>
|
||||
<template #suffix>
|
||||
<a-button @click="handleCopy(workOrderInfo.tarMaterialName)">
|
||||
<a-button @click="handleCopy(workOrderInfo.tarMaterialName)" size="small">
|
||||
<template #icon><i-lucide-copy /></template>
|
||||
</a-button>
|
||||
</template>
|
||||
@@ -205,7 +206,7 @@ onUnmounted(() => {
|
||||
<!-- <a-form-item label="产品规格">
|
||||
<a-input readonly>
|
||||
<template #suffix>
|
||||
<a-button @click="handleCopy('')">
|
||||
<a-button @click="handleCopy('')" size="small">
|
||||
<template #icon><i-lucide-copy /></template>
|
||||
</a-button>
|
||||
</template>
|
||||
@@ -234,25 +235,23 @@ onUnmounted(() => {
|
||||
<a-form-item label="工序名称">
|
||||
<a-input v-model:value="processInfo.operationTitle" readonly>
|
||||
<template #suffix>
|
||||
<a-button @click="handleCopy(processInfo.operationTitle)">
|
||||
<a-button @click="handleCopy(processInfo.operationTitle)" size="small">
|
||||
<template #icon><i-lucide-copy /></template>
|
||||
</a-button>
|
||||
</template>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="工序状态">
|
||||
<a-input v-model:value="processInfo.status" readonly>
|
||||
<template #suffix>
|
||||
<a-button @click="handleCopy(processInfo.status)">
|
||||
<template #icon><i-lucide-copy /></template>
|
||||
</a-button>
|
||||
<a-input readonly>
|
||||
<template #prefix>
|
||||
<DictTag :options="mes_station_status" :value="processInfo.status" size="medium" />
|
||||
</template>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="作业编码">
|
||||
<a-input v-model:value="processInfo.code" readonly>
|
||||
<template #suffix>
|
||||
<a-button @click="handleCopy(processInfo.code)">
|
||||
<a-button @click="handleCopy(processInfo.code)" size="small">
|
||||
<template #icon><i-lucide-copy /></template>
|
||||
</a-button>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user