From 8cae1dcd8d2bde01880ac4b70bdda4e61df3c7ef Mon Sep 17 00:00:00 2001
From: YangYuGang <1378265336@qq.com>
Date: 星期六, 08 三月 2025 12:46:26 +0800
Subject: [PATCH] 送货单(U9)

---
 src/views/tigerprojects/mes/eng/route/components/FormProps.vue |  109 +++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 78 insertions(+), 31 deletions(-)

diff --git a/src/views/tigerprojects/mes/eng/route/components/FormProps.vue b/src/views/tigerprojects/mes/eng/route/components/FormProps.vue
index f10bda1..56479c2 100644
--- a/src/views/tigerprojects/mes/eng/route/components/FormProps.vue
+++ b/src/views/tigerprojects/mes/eng/route/components/FormProps.vue
@@ -1,43 +1,90 @@
 <!--
+ * @Description: file content
+ * @Author: Ben Lin
+ * @version: 
+ * @Date: 2024-06-18 15:09:48
+ * @LastEditors: Ben Lin
+ * @LastEditTime: 2024-08-04 22:14:54
+-->
+<!--
  * @Description: 鍙充晶灞炴�ч潰鏉挎帶浠� 琛ㄥ崟灞炴�ч潰鏉�
 -->
 <template>
-  <div class="properties-content">
-    <Form class="properties-body" label-align="left" layout="vertical">
-      <!--      <e-upload v-model="fileList"></e-upload>-->
-
-      <FormItem label="琛ㄥ崟甯冨眬">
-        <RadioGroup button-style="solid" v-model:value="formConfig.layout">
-          <RadioButton value="horizontal">姘村钩</RadioButton>
-          <RadioButton value="vertical" :disabled="formConfig.labelLayout === 'Grid'">
-            鍨傜洿
-          </RadioButton>
-          <RadioButton value="inline" :disabled="formConfig.labelLayout === 'Grid'">
-            琛屽唴
-          </RadioButton>
-        </RadioGroup>
+  <div>
+    <Form label-align="left" layout="vertical">
+      <FormItem label="宸ヨ壓璺嚎缂栫爜" name="宸ヨ壓璺嚎缂栫爜">
+        <Input
+          :style="{ width: '100%' }"
+          v-model:value="mesRoute.ROT_CODE"
+          :min="0"
+          :step="1"
+          :readonly="true"
+        />
       </FormItem>
-
-      <!-- <Row> -->
+      <FormItem label="宸ヨ壓璺嚎鍚嶇О" name="宸ヨ壓璺嚎鍚嶇О">
+        <Input
+          :style="{ width: '100%' }"
+          v-model:value="mesRoute.ROT_NAME"
+          :min="0"
+          :step="1"
+          :readonly="true"
+        />
+      </FormItem>
+      <FormItem label="宸ヨ壓璺嚎绫诲瀷" name="宸ヨ壓璺嚎绫诲瀷">
+        <Select
+          ref="select"
+          v-model:value="mesRoute.ROT_TYPE"
+          style="width: 120px"
+          :options="options2"
+          :disabled="true"
+        />
+      </FormItem>
+      <FormItem label="宸ヨ壓璺嚎鐗堟湰" name="宸ヨ壓璺嚎鐗堟湰">
+        <InputNumber
+          :style="{ width: '100%' }"
+          v-model:value="mesRoute.ROT_VER"
+          :min="0"
+          :step="1"
+          :readonly="true"
+        />
+      </FormItem>
+      <FormItem label="鏄惁鍚敤" name="鏄惁鍚敤">
+        <Select
+          ref="select"
+          v-model:value="mesRoute.IS_ACTIVE"
+          style="width: 120px"
+          :options="options1"
+          :disabled="true"
+        />
+      </FormItem>
     </Form>
   </div>
 </template>
-<script lang="ts" setup>
-  import { Radio, 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 { ref } from 'vue';
+  import { GetEnum } from '/@/api/tigerapi/system';
 
-  const RadioGroup = Radio.Group;
-  const RadioButton = Radio.Button;
-
-  const formConfig = ref({
-    colon: true,
-    disabled: false,
-    hideRequiredMark: true,
-    layout: 'horizontal',
-    size: 120,
-    labelLayout: 'Grid',
-    labelWidth: '120',
-    labelCol: 24,
-    labelAlign: 'Left',
+  const { routeConfig, mesRoute } = useRouteDesignState();
+  const options1 = ref<any>([
+    {
+      value: 'Y',
+      label: '鍚敤',
+    },
+    {
+      value: 'N',
+      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