| | |
| | | /> |
| | | </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" |
| | |
| | | </div> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import { Select, Input, Form, FormItem } from 'ant-design-vue'; |
| | | 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'; |
| | | |
| | | const { mesRoute } = useRouteDesignState(); |
| | | const options1 = ref<SelectTypes['options']>([ |
| | |
| | | label: '不启用', |
| | | }, |
| | | ]); |
| | | const options2 = ref<SelectTypes['options']>([]); |
| | | RouteTypeStatus().then((res) => { |
| | | console.log(res); |
| | | res.Data.forEach((d) => { |
| | | options2.value.push({ |
| | | value: d.Value, |
| | | label: d.Desc, |
| | | }); |
| | | }); |
| | | }); |
| | | </script> |