From 3f3817a39238b262155cd5ec76fa351bb344602d Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期三, 01 一月 2025 21:33:57 +0800
Subject: [PATCH] 打印工单流程卡

---
 src/views/tigerprojects/mes/eng/route/components/FormProps.vue |   46 ++++++++++++++++++++++++++++++++--------------
 1 files changed, 32 insertions(+), 14 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..56479c2 100644
--- a/src/views/tigerprojects/mes/eng/route/components/FormProps.vue
+++ b/src/views/tigerprojects/mes/eng/route/components/FormProps.vue
@@ -1,9 +1,17 @@
 <!--
+ * @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">
+  <div>
+    <Form label-align="left" layout="vertical">
       <FormItem label="宸ヨ壓璺嚎缂栫爜" name="宸ヨ壓璺嚎缂栫爜">
         <Input
           :style="{ width: '100%' }"
@@ -23,16 +31,16 @@
         />
       </FormItem>
       <FormItem label="宸ヨ壓璺嚎绫诲瀷" name="宸ヨ壓璺嚎绫诲瀷">
-        <Input
-          :style="{ width: '100%' }"
+        <Select
+          ref="select"
           v-model:value="mesRoute.ROT_TYPE"
-          :min="0"
-          :step="1"
-          :readonly="true"
+          style="width: 120px"
+          :options="options2"
+          :disabled="true"
         />
       </FormItem>
       <FormItem label="宸ヨ壓璺嚎鐗堟湰" name="宸ヨ壓璺嚎鐗堟湰">
-        <Input
+        <InputNumber
           :style="{ width: '100%' }"
           v-model:value="mesRoute.ROT_VER"
           :min="0"
@@ -46,20 +54,20 @@
           v-model:value="mesRoute.IS_ACTIVE"
           style="width: 120px"
           :options="options1"
-          :readonly="true"
+          :disabled="true"
         />
       </FormItem>
     </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 { routeConfig, mesRoute } = useRouteDesignState();
+  const options1 = ref<any>([
     {
       value: 'Y',
       label: '鍚敤',
@@ -69,4 +77,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