From e6554a5f4ca0a1cfc39057b61c0bccbb7b07817e Mon Sep 17 00:00:00 2001 From: wuyouming666 <2265557248@qq.com> Date: 星期三, 26 六月 2024 14:23:44 +0800 Subject: [PATCH] 原片仓储 料架管理页面 --- UI-Project/src/views/GlassStorage/MaterialRackManagement.vue | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 107 insertions(+), 4 deletions(-) diff --git a/UI-Project/src/views/GlassStorage/MaterialRackManagement.vue b/UI-Project/src/views/GlassStorage/MaterialRackManagement.vue index 23b2204..b97b5c7 100644 --- a/UI-Project/src/views/GlassStorage/MaterialRackManagement.vue +++ b/UI-Project/src/views/GlassStorage/MaterialRackManagement.vue @@ -1,5 +1,5 @@ <template> - <div > + <div class="app-container"> <el-card style="flex: 1; margin-left: 10px; " :loading="loading"> <div slot="header" class="clearfix" style="display: flex; align-items: center;"> @@ -7,7 +7,7 @@ <div > <el-button type="success" size="mini" @click="handleInbound()">鍏ュ簱</el-button> <el-button type="success" size="mini" @click="handleInbound()">鍚婅浣嶅叆搴�</el-button> - <el-button type="success" size="mini" @click="handleInbound()">娣诲姞鍘熺墖</el-button> + <el-button type="success" size="mini" @click="addglass()">娣诲姞鍘熺墖</el-button> </div> <!-- 鍙充晶閫夋嫨妗� --> @@ -156,7 +156,51 @@ <el-button type="primary" @click="handleConfirmInbound">纭� 瀹�</el-button> </div> </el-dialog> - <div ref="chart" id="chart" style="width: 100%; height: 400px;"></div> + + + <el-dialog title="娣诲姞鍘熺墖" v-model="dialogVisible3" width="50%"> + <el-form :model="formData3" ref="form" label-width="80px"> + <el-form-item label="棰滆壊鑶滅郴"> + <el-input v-model="formData.selectedColor" readonly style="width: 250px; height: 35px; font-size: 20px"></el-input> + <el-dropdown @command="handleCommand"> + <span class="el-dropdown-link"> + 閫夋嫨<i class="el-icon-arrow-down el-icon--right"></i> + </span> + <el-dropdown-menu slot="dropdown"> + <el-dropdown-item v-for="color in colors" :key="color['0_glass_id']" :command="color['0_glass_id']"> + {{ color['0_glass_id'] }} + </el-dropdown-item> + </el-dropdown-menu> + </el-dropdown> + </el-form-item> + + <el-form-item label="闀垮害"> + <el-input v-model="formData.wid" required style="width: 250px; font-size: 20px" @focus="clearInput('wid')"></el-input> + </el-form-item> + + <el-form-item label="楂樺害"> + <el-input v-model="formData.heig" required style="width: 250px; font-size: 20px" @focus="clearInput('heig')"></el-input> + </el-form-item> + + <el-form-item label="鍘氬害"> + <el-input v-model="formData.thinkness" required style="width: 250px; font-size: 20px" @focus="clearInput('thinkness')"></el-input> + </el-form-item> + + <el-form-item label="鏁伴噺"> + <el-input-number v-model="formData.num" required :min="0" :max="9000" style="width: 250px; font-size: 20px" @focus="clearInput('num')"></el-input-number> + </el-form-item> + </el-form> + + <span slot="footer" class="dialog-footer"> + <el-button @click="dialogVisible3 = false">鍏抽棴</el-button> + <el-button type="primary" @click="submitForm">鎻愪氦</el-button> + </span> + </el-dialog> + + + + + <!-- <div ref="chart" id="chart" style="width: 100%; height: 400px;"></div> --> </div> </template> @@ -322,6 +366,45 @@ // 鍏抽棴瀵硅瘽妗� dialogVisible.value = false; }; + + + + + + const dialogVisible3 = ref(false); + const colors = ref([ + { '0_glass_id': 'Red' }, + { '0_glass_id': 'Green' }, + { '0_glass_id': 'Blue' } + // Add more colors as needed + ]); + + const formData3 = ref({ + selectedColor: '', + wid: '', + heig: '', + thinkness: '', + num: '' + }); + + + const addglass = () => { + // 鎵撳紑鍏ュ簱瀵硅瘽妗� + dialogVisible3.value = true; + }; + const handleCommand = (command) => { + formData.value.selectedColor = command; + }; + + const clearInput = (field) => { + formData.value[field] = ''; + }; + + const submitForm = () => { + console.log('鎻愪氦鏁版嵁:', formData.value); + dialogVisible3.value = false; + // Add your submit logic here + }; @@ -407,6 +490,26 @@ </script> -<style> +<style scoped> +html, body { + height: 100%; + margin: 0; + padding: 0; + overflow: hidden; /* 绂佹鍑虹幇婊氬姩鏉� */ +} +.app-container { + + flex-direction: column; + height: 100vh; /* 浣跨敤瑙嗗彛楂樺害 */ +} + + + + + +.custom-dialog { + max-height: 90vh; /* 鏈�澶ч珮搴︿负瑙嗗彛楂樺害鐨�90% */ + overflow-y: auto; /* 瀵硅瘽妗嗗唴閮ㄥ嚭鐜板瀭鐩存粴鍔ㄦ潯 */ +} </style> -- Gitblit v1.8.0