From f11bd0d8d9c1190340a445a67df9e43cdbde0a3e Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期四, 27 八月 2026 11:21:26 +0800
Subject: [PATCH] feat(mes): 基础参数与工序绑定前端 + 报工填写参数字段
---
src/views/mes/pro/feedback/detail/index.vue | 39 ++++++++++++++++++++++++++++++++++++++-
1 files changed, 38 insertions(+), 1 deletions(-)
diff --git a/src/views/mes/pro/feedback/detail/index.vue b/src/views/mes/pro/feedback/detail/index.vue
index e3ecf9c..01acd2e 100644
--- a/src/views/mes/pro/feedback/detail/index.vue
+++ b/src/views/mes/pro/feedback/detail/index.vue
@@ -7,15 +7,27 @@
import { Page } from '@vben/common-ui';
import { useTabs } from '@vben/hooks';
-import { Card, Tabs } from 'ant-design-vue';
+import { DICT_TYPE } from '@vben/constants';
+
+import { Card, Table, Tabs } from 'ant-design-vue';
import { TableAction } from '#/adapter/vxe-table';
import { getFeedback } from '#/api/mes/pro/feedback';
+import { DictTag } from '#/components/dict-tag';
import { useDescription } from '#/components/description';
import { useDetailSchema } from '../data';
import ItemConsumeList from '../modules/item-consume-list.vue';
import ProductProduceList from '../modules/product-produce-list.vue';
+
+const paramColumns = [
+ { title: '鍙傛暟鍚嶇О', dataIndex: 'paramName', key: 'paramName' },
+ { title: '鍙傛暟缂栫爜', dataIndex: 'paramCode', key: 'paramCode' },
+ { title: '鍙傛暟绫诲瀷', dataIndex: 'paramType', key: 'paramType' },
+ { title: '鍗曚綅', dataIndex: 'unitMeasureName', key: 'unitMeasureName' },
+ { title: '鍙傛暟鍊�', dataIndex: 'paramValue', key: 'paramValue' },
+ { title: '鏄惁蹇呭~', dataIndex: 'required', key: 'required' },
+];
const props = defineProps<{ id: string }>();
@@ -62,6 +74,31 @@
<Card class="min-h-[10%]">
<Descriptions :data="feedback" />
</Card>
+ <Card v-if="feedback.paramValues && feedback.paramValues.length > 0" class="mt-3" title="宸ヨ壓鍙傛暟">
+ <Table
+ :columns="paramColumns"
+ :data-source="feedback.paramValues"
+ :pagination="false"
+ row-key="detailId"
+ size="small"
+ >
+ <template #bodyCell="{ column, record }">
+ <template v-if="column.key === 'paramType'">
+ <DictTag
+ v-if="record.paramType !== undefined && record.paramType !== null"
+ :type="DICT_TYPE.MES_PD_PARAM_TYPE"
+ :value="record.paramType"
+ />
+ </template>
+ <template v-else-if="column.key === 'required'">
+ <DictTag
+ :type="DICT_TYPE.INFRA_BOOLEAN_STRING"
+ :value="record.required ? 'true' : 'false'"
+ />
+ </template>
+ </template>
+ </Table>
+ </Card>
</Page>
</template>
--
Gitblit v1.9.3