From 943954bdcb3b672b89cfa097e53d2ac17a36a101 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期日, 30 六月 2024 13:13:25 +0800 Subject: [PATCH] 产品工艺路线路由节点选择功能更新 --- src/views/tigerprojects/mes/eng/route/components/FormProps.vue | 32 +++++++++++++++++++++----------- 1 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/views/tigerprojects/mes/eng/route/components/FormProps.vue b/src/views/tigerprojects/mes/eng/route/components/FormProps.vue index 5ce906b..681358d 100644 --- a/src/views/tigerprojects/mes/eng/route/components/FormProps.vue +++ b/src/views/tigerprojects/mes/eng/route/components/FormProps.vue @@ -2,8 +2,8 @@ * @Description: 鍙充晶灞炴�ч潰鏉挎帶浠� 琛ㄥ崟灞炴�ч潰鏉� --> <template> - <div class="properties-content"> - <Form class="properties-body" label-align="left" layout="vertical"> + <div> + <Form label-align="left" layout="vertical"> <FormItem label="宸ヨ壓璺嚎缂栫爜" name="宸ヨ壓璺嚎缂栫爜"> <Input :style="{ width: '100%' }" @@ -23,16 +23,16 @@ /> </FormItem> <FormItem label="宸ヨ壓璺嚎绫诲瀷" name="宸ヨ壓璺嚎绫诲瀷"> - <Input - :style="{ width: '100%' }" + <Select + ref="select" v-model:value="mesRoute.ROT_TYPE" - :min="0" - :step="1" + style="width: 120px" + :options="options2" :readonly="true" /> </FormItem> <FormItem label="宸ヨ壓璺嚎鐗堟湰" name="宸ヨ壓璺嚎鐗堟湰"> - <Input + <InputNumber :style="{ width: '100%' }" v-model:value="mesRoute.ROT_VER" :min="0" @@ -52,14 +52,14 @@ </Form> </div> </template> -<script lang="ts" setup> - import { Select, Input, Form, FormItem } from 'ant-design-vue'; +<script lang="ts" setup name="FormProps"> + import { Select, Input, InputNumber, Form, FormItem } from 'ant-design-vue'; import { useRouteDesignState } from '../hooks/useRouteDesignState'; - import { SelectTypes } from 'ant-design-vue/es/select'; import { ref } from 'vue'; + import { GetEnum } from '/@/api/tigerapi/system'; const { mesRoute } = useRouteDesignState(); - const options1 = ref<SelectTypes['options']>([ + const options1 = ref<any>([ { value: 'Y', label: '鍚敤', @@ -69,4 +69,14 @@ label: '涓嶅惎鐢�', }, ]); + const options2 = ref<any>([]); + GetEnum({ name: 'MES_ROUTE+ROT_TYPEs' }).then((res) => { + console.log(res); + res.Data.forEach((d) => { + options2.value.push({ + value: d.Value, + label: d.Desc, + }); + }); + }); </script> -- Gitblit v1.9.3