<!--
|
* @Description: 表单项属性,控件属性面板
|
-->
|
<template>
|
<div class="properties-content">
|
<Form class="properties-body" label-align="left" layout="vertical">
|
<FormItem label="工艺路线编码" name="工艺路线编码">
|
<Input
|
:style="{ width: '100%' }"
|
v-model:value="routeConfig.currentItem.ROT_CODE"
|
:min="0"
|
:step="1"
|
:readonly="true"
|
/>
|
</FormItem>
|
<FormItem label="节点编码" name="节点编码">
|
<Input
|
:style="{ width: '100%' }"
|
v-model:value="routeConfig.currentItem.NODE_CODE"
|
:min="0"
|
:step="1"
|
/>
|
</FormItem>
|
<FormItem label="节点名称" name="节点名称">
|
<Input
|
:style="{ width: '100%' }"
|
v-model:value="routeConfig.currentItem.NODE_NAME"
|
:min="0"
|
:step="1"
|
/>
|
</FormItem>
|
<FormItem label="工序编码" name="工序编码">
|
<Input
|
:style="{ width: '100%' }"
|
v-model:value="routeConfig.currentItem.OPER_CODE"
|
:min="0"
|
:step="1"
|
/>
|
</FormItem>
|
<FormItem label="是否启用" name="是否启用">
|
<Select
|
ref="select"
|
v-model:value="routeConfig.currentItem.IS_ACTIVE"
|
style="width: 120px"
|
:options="options1"
|
:readonly="true"
|
/>
|
</FormItem>
|
</Form>
|
</div>
|
</template>
|
<script lang="ts" setup>
|
import { Select, Input, Form, FormItem } from 'ant-design-vue';
|
import { useRouteDesignState } from '../hooks/useRouteDesignState';
|
import { SelectTypes } from 'ant-design-vue/es/select';
|
import { ref } from 'vue';
|
|
const { routeConfig } = useRouteDesignState();
|
const options1 = ref<SelectTypes['options']>([
|
{
|
value: 'Y',
|
label: '启用',
|
},
|
{
|
value: 'N',
|
label: '不启用',
|
},
|
]);
|
</script>
|