From 504b712bc9dac49aad4276df285968a47fdd3962 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期五, 12 七月 2024 10:15:37 +0800
Subject: [PATCH] #

---
 zy-asrs-admin/src/views/loc/locDetl/edit.vue |  244 ++++++++++++++----------------------------------
 1 files changed, 71 insertions(+), 173 deletions(-)

diff --git a/zy-asrs-admin/src/views/loc/locDetl/edit.vue b/zy-asrs-admin/src/views/loc/locDetl/edit.vue
index 82638f3..7438f29 100644
--- a/zy-asrs-admin/src/views/loc/locDetl/edit.vue
+++ b/zy-asrs-admin/src/views/loc/locDetl/edit.vue
@@ -41,26 +41,26 @@
     console.log('Failed:', errorInfo);
 };
 
-const locQueryList = ref(null); 
+const locQueryList = ref(null);
 locQuery();
-function locQuery() { 
-    postForm('/api/loc/query', {}).then(resp => { 
+function locQuery() {
+    postForm('/api/loc/query', {}).then(resp => {
         let result = resp.data;
         locQueryList.value = result.data;
     })
 }
-const matQueryList = ref(null); 
+const matQueryList = ref(null);
 matQuery();
-function matQuery() { 
-    postForm('/api/mat/query', {}).then(resp => { 
+function matQuery() {
+    postForm('/api/mat/query', {}).then(resp => {
         let result = resp.data;
         matQueryList.value = result.data;
     })
 }
-const userQueryList = ref(null); 
+const userQueryList = ref(null);
 userQuery();
-function userQuery() { 
-    postForm('/api/user/query', {}).then(resp => { 
+function userQuery() {
+    postForm('/api/user/query', {}).then(resp => {
         let result = resp.data;
         userQueryList.value = result.data;
     })
@@ -87,175 +87,73 @@
         <a-modal v-model:open="open"
             :title="isSave ? formatMessage('page.add', '娣诲姞') : formatMessage('page.edit', '缂栬緫')" @ok="handleOk"
             style="width: 600px;">
-            <a-form :model="formData" ref="formTable" name="formTable" :label-col="{ span: 8 }" :wrapper-col="{ span: 16 }"
-                style="display: flex;justify-content: space-between;flex-wrap: wrap;" autocomplete="off"
-                @finish="onFinish" @finishFailed="onFinishFailed">
-                    <a-form-item 
-                      :label="formatMessage('db.man_loc_detl.loc_id', '搴撲綅') " 
-                      name="locId" 
-                      style="width: 250px;" 
-                            >
-                    <a-select 
-                        v-model:value="formData.locId" 
-                        :placeholder="formatMessage('common.select', '璇烽�夋嫨')" 
-                        style="width: 100%" 
-                        show-search 
-                        :options="locQueryList" 
-                        optionFilterProp="label" 
-                        optionLabelProp="label" 
-                     > 
+            <a-form :model="formData" ref="formTable" name="formTable" :label-col="{ span: 8 }"
+                :wrapper-col="{ span: 16 }" style="display: flex;justify-content: space-between;flex-wrap: wrap;"
+                autocomplete="off" @finish="onFinish" @finishFailed="onFinishFailed">
+                <a-form-item :label="formatMessage('db.man_loc_detl.loc_id', '搴撲綅')" name="locId" style="width: 250px;">
+                    <a-select v-model:value="formData.locId" :placeholder="formatMessage('common.select', '璇烽�夋嫨')"
+                        style="width: 100%" show-search :options="locQueryList" optionFilterProp="label"
+                        optionLabelProp="label">
                     </a-select>
-                        </a-form-item>
-                    <a-form-item 
-                      :label="formatMessage('db.man_loc_detl.loc_no', '搴撲綅鍙�') " 
-                      name="locNo" 
-                      style="width: 250px;" 
-                            :rules="[{ required: true }]"
-                            >
-                    <a-input 
-                        v-model:value="formData.locNo" 
-                     /> 
-                        </a-form-item>
-                    <a-form-item 
-                      :label="formatMessage('db.man_loc_detl.mat_id', '鐗╂枡') " 
-                      name="matId" 
-                      style="width: 250px;" 
-                            >
-                    <a-select 
-                        v-model:value="formData.matId" 
-                        :placeholder="formatMessage('common.select', '璇烽�夋嫨')" 
-                        style="width: 100%" 
-                        show-search 
-                        :options="matQueryList" 
-                        optionFilterProp="label" 
-                        optionLabelProp="label" 
-                     > 
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.man_loc_detl.loc_no', '搴撲綅鍙�')" name="locNo" style="width: 250px;"
+                    :rules="[{ required: true }]">
+                    <a-input v-model:value="formData.locNo" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.man_loc_detl.mat_id', '鐗╂枡')" name="matId" style="width: 250px;">
+                    <a-select v-model:value="formData.matId" :placeholder="formatMessage('common.select', '璇烽�夋嫨')"
+                        style="width: 100%" show-search :options="matQueryList" optionFilterProp="label"
+                        optionLabelProp="label">
                     </a-select>
-                        </a-form-item>
-                    <a-form-item 
-                      :label="formatMessage('db.man_loc_detl.matnr', '鐗╂枡鍙�') " 
-                      name="matnr" 
-                      style="width: 250px;" 
-                            >
-                    <a-input 
-                        v-model:value="formData.matnr" 
-                     /> 
-                        </a-form-item>
-                    <a-form-item 
-                      :label="formatMessage('db.man_loc_detl.order_no', '璁㈠崟鍙�') " 
-                      name="orderNo" 
-                      style="width: 250px;" 
-                            >
-                    <a-input 
-                        v-model:value="formData.orderNo" 
-                     /> 
-                        </a-form-item>
-                    <a-form-item 
-                      :label="formatMessage('db.man_loc_detl.batch', '鎵瑰彿') " 
-                      name="batch" 
-                      style="width: 250px;" 
-                            >
-                    <a-input 
-                        v-model:value="formData.batch" 
-                     /> 
-                        </a-form-item>
-                    <a-form-item 
-                      :label="formatMessage('db.man_loc_detl.anfme', '鏁伴噺') " 
-                      name="anfme" 
-                      style="width: 250px;" 
-                            >
-                    <a-input 
-                        v-model:value="formData.anfme" 
-                     /> 
-                        </a-form-item>
-                    <a-form-item 
-                      :label="formatMessage('db.man_loc_detl.extend', '鎵╁睍') " 
-                      name="extend" 
-                      style="width: 250px;" 
-                            >
-                    <a-input 
-                        v-model:value="formData.extend" 
-                     /> 
-                        </a-form-item>
-                    <a-form-item 
-                      :label="formatMessage('db.man_loc_detl.status', '鐘舵��') " 
-                      name="status" 
-                      style="width: 250px;" 
-                            >
-                    <a-select 
-                        v-model:value="formData.status" 
-                        :options="[
-                                { label: '姝e父', value: 1 },
-                                { label: '绂佺敤', value: 0 },
-                            ]"
-                        >
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.man_loc_detl.matnr', '鐗╂枡鍙�')" name="matnr" style="width: 250px;">
+                    <a-input v-model:value="formData.matnr" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.man_loc_detl.order_no', '璁㈠崟鍙�')" name="orderNo"
+                    style="width: 250px;">
+                    <a-input v-model:value="formData.orderNo" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.man_loc_detl.batch', '鎵瑰彿')" name="batch" style="width: 250px;">
+                    <a-input v-model:value="formData.batch" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.man_loc_detl.anfme', '鏁伴噺')" name="anfme" style="width: 250px;">
+                    <a-input v-model:value="formData.anfme" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.man_loc_detl.status', '鐘舵��')" name="status"
+                    style="width: 250px;">
+                    <a-select v-model:value="formData.status" :options="[
+                        { label: '姝e父', value: 1 },
+                        { label: '绂佺敤', value: 0 },
+                    ]">
                     </a-select>
-                        </a-form-item>
-                    <a-form-item 
-                      :label="formatMessage('db.man_loc_detl.create_time', '娣诲姞鏃堕棿') " 
-                      name="createTime" 
-                      style="width: 250px;" 
-                            >
-                    <a-date-picker 
-                        v-model:value="formData.createTime" 
-                        show-time 
-                        format="YYYY-MM-DD HH:mm:ss" 
-                        value-format="YYYY-MM-DD HH:mm:ss" 
-                     /> 
-                        </a-form-item>
-                    <a-form-item 
-                      :label="formatMessage('db.man_loc_detl.create_by', '娣诲姞浜哄憳') " 
-                      name="createBy" 
-                      style="width: 250px;" 
-                            >
-                    <a-select 
-                        v-model:value="formData.createBy" 
-                        :placeholder="formatMessage('common.select', '璇烽�夋嫨')" 
-                        style="width: 100%" 
-                        show-search 
-                        :options="userQueryList" 
-                        optionFilterProp="label" 
-                        optionLabelProp="label" 
-                     > 
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.man_loc_detl.create_time', '娣诲姞鏃堕棿')" name="createTime"
+                    style="width: 250px;">
+                    <a-date-picker v-model:value="formData.createTime" show-time format="YYYY-MM-DD HH:mm:ss"
+                        value-format="YYYY-MM-DD HH:mm:ss" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.man_loc_detl.create_by', '娣诲姞浜哄憳')" name="createBy"
+                    style="width: 250px;">
+                    <a-select v-model:value="formData.createBy" :placeholder="formatMessage('common.select', '璇烽�夋嫨')"
+                        style="width: 100%" show-search :options="userQueryList" optionFilterProp="label"
+                        optionLabelProp="label">
                     </a-select>
-                        </a-form-item>
-                    <a-form-item 
-                      :label="formatMessage('db.man_loc_detl.update_time', '淇敼鏃堕棿') " 
-                      name="updateTime" 
-                      style="width: 250px;" 
-                            >
-                    <a-date-picker 
-                        v-model:value="formData.updateTime" 
-                        show-time 
-                        format="YYYY-MM-DD HH:mm:ss" 
-                        value-format="YYYY-MM-DD HH:mm:ss" 
-                     /> 
-                        </a-form-item>
-                    <a-form-item 
-                      :label="formatMessage('db.man_loc_detl.update_by', '淇敼浜哄憳') " 
-                      name="updateBy" 
-                      style="width: 250px;" 
-                            >
-                    <a-select 
-                        v-model:value="formData.updateBy" 
-                        :placeholder="formatMessage('common.select', '璇烽�夋嫨')" 
-                        style="width: 100%" 
-                        show-search 
-                        :options="userQueryList" 
-                        optionFilterProp="label" 
-                        optionLabelProp="label" 
-                     > 
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.man_loc_detl.update_time', '淇敼鏃堕棿')" name="updateTime"
+                    style="width: 250px;">
+                    <a-date-picker v-model:value="formData.updateTime" show-time format="YYYY-MM-DD HH:mm:ss"
+                        value-format="YYYY-MM-DD HH:mm:ss" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.man_loc_detl.update_by', '淇敼浜哄憳')" name="updateBy"
+                    style="width: 250px;">
+                    <a-select v-model:value="formData.updateBy" :placeholder="formatMessage('common.select', '璇烽�夋嫨')"
+                        style="width: 100%" show-search :options="userQueryList" optionFilterProp="label"
+                        optionLabelProp="label">
                     </a-select>
-                        </a-form-item>
-                    <a-form-item 
-                      :label="formatMessage('db.man_loc_detl.memo', '澶囨敞') " 
-                      name="memo" 
-                      style="width: 250px;" 
-                            >
-                    <a-input 
-                        v-model:value="formData.memo" 
-                     /> 
-                        </a-form-item>
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.man_loc_detl.memo', '澶囨敞')" name="memo" style="width: 250px;">
+                    <a-input v-model:value="formData.memo" />
+                </a-form-item>
 
                 <a-form-item>
                     <a-button type="primary" html-type="submit" ref="submitButton"

--
Gitblit v1.9.1