| | |
| | | * @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%' }" |
| | |
| | | </Form> |
| | | </div> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | <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 { RouteTypeStatus } from '/@/api/tigerapi/mes/router'; |
| | | import { GetEnum } from '/@/api/tigerapi/system'; |
| | | |
| | | const { mesRoute } = useRouteDesignState(); |
| | | const options1 = ref<SelectTypes['options']>([ |
| | | const options1 = ref<any>([ |
| | | { |
| | | value: 'Y', |
| | | label: '启用', |
| | |
| | | label: '不启用', |
| | | }, |
| | | ]); |
| | | const options2 = ref<SelectTypes['options']>([]); |
| | | RouteTypeStatus().then((res) => { |
| | | const options2 = ref<any>([]); |
| | | GetEnum({ name: 'MES_ROUTE+ROT_TYPEs' }).then((res) => { |
| | | console.log(res); |
| | | res.Data.forEach((d) => { |
| | | options2.value.push({ |