配置随工单、作业状态字典
This commit is contained in:
@@ -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