From e6554a5f4ca0a1cfc39057b61c0bccbb7b07817e Mon Sep 17 00:00:00 2001
From: wuyouming666 <2265557248@qq.com>
Date: 星期三, 26 六月 2024 14:23:44 +0800
Subject: [PATCH] 原片仓储 料架管理页面

---
 hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/impl/DownStorageCageDetailsServiceImpl.java |   22 +++++++
 UI-Project/src/views/UnLoadGlass/Landingindication.vue                                                                                  |    2 
 UI-Project/src/views/GlassStorage/MaterialRackManagement.vue                                                                            |  111 +++++++++++++++++++++++++++++++++++-
 UI-Project/src/views/UnLoadGlass/Landingindicationtwo.vue                                                                               |    2 
 hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/controller/DownStorageCageDetailsController.java    |   11 +++
 hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/DownStorageCageDetailsService.java          |    7 ++
 6 files changed, 147 insertions(+), 8 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>
diff --git a/UI-Project/src/views/UnLoadGlass/Landingindication.vue b/UI-Project/src/views/UnLoadGlass/Landingindication.vue
index 2424c68..ffec81d 100644
--- a/UI-Project/src/views/UnLoadGlass/Landingindication.vue
+++ b/UI-Project/src/views/UnLoadGlass/Landingindication.vue
@@ -43,7 +43,7 @@
  
   { x: 280, y: 100, height: 100, width: 60, fillColor: '#6a6da9', item: { height: 90, width: 10, fillColor: 'yellow', content: 'NG12345678',downGlassInfoList:"" } },
  
-  { x: 140, y: 420, height: 60, width: 110, fillColor: '#6a6da9', item: { height: 20, width: 100, fillColor: 'yellow', content: 'NG1234561454' ,downGlassInfoList:""} }
+  { x: 140, y: 320, height: 60, width: 110, fillColor: '#6a6da9', item: { height: 20, width: 100, fillColor: 'yellow', content: 'NG1234561454' ,downGlassInfoList:""} }
   
 ]);
 
diff --git a/UI-Project/src/views/UnLoadGlass/Landingindicationtwo.vue b/UI-Project/src/views/UnLoadGlass/Landingindicationtwo.vue
index 4e16fae..4fc077c 100644
--- a/UI-Project/src/views/UnLoadGlass/Landingindicationtwo.vue
+++ b/UI-Project/src/views/UnLoadGlass/Landingindicationtwo.vue
@@ -43,7 +43,7 @@
  
   { x: 280, y: 100, height: 100, width: 60, fillColor: '#6a6da9', item: { height: 90, width: 10, fillColor: 'yellow', content: 'NG12345678' } },
  
-  { x: 140, y: 420, height: 60, width: 110, fillColor: '#6a6da9', item: { height: 20, width: 100, fillColor: 'yellow', content: 'NG1234561454' } }
+  { x: 140, y: 320, height: 60, width: 110, fillColor: '#6a6da9', item: { height: 20, width: 100, fillColor: 'yellow', content: 'NG1234561454' } }
   
 ]);
 
diff --git a/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/controller/DownStorageCageDetailsController.java b/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/controller/DownStorageCageDetailsController.java
index 2f56341..e7feaef 100644
--- a/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/controller/DownStorageCageDetailsController.java
+++ b/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/controller/DownStorageCageDetailsController.java
@@ -69,8 +69,15 @@
 
 
 
-//
+    @ApiOperation("淇敼鐜荤拑鐘舵��   鍔熻兘锛氬绗煎唴鏍呮牸鐜荤拑杩涜銆愮牬鎹�/鎷胯蛋銆�  ")
+    @PostMapping("/ReportStatus")
+    @ResponseBody
+    public Result edgReportStatus(@RequestBody Map<String, String> arguments) {
+        String downStorageCageDetailsId=arguments.get("glassId");
+        int controlsId=Integer.valueOf(arguments.get("controlsId"));
+        boolean isSucess=downStorageCageDetailsService.identWorn(downStorageCageDetailsId,controlsId);
+        return Result.build(200,"銆愮牬鎹�/鎷胯蛋銆戞垚鍔�",1);
+    }
 
 
-    // Other CRUD operations can be defined here
 }
diff --git a/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/DownStorageCageDetailsService.java b/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/DownStorageCageDetailsService.java
index fa22c2d..d5eb659 100644
--- a/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/DownStorageCageDetailsService.java
+++ b/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/DownStorageCageDetailsService.java
@@ -69,4 +69,11 @@
      * @return 鐩撮�氭煡璇�
      */
     boolean DirectConnection(GlassInfo glassInfo);
+
+    /**
+     * @param glassId
+     * @param ControlsId
+     * @return  鐮存崯
+     */
+    boolean identWorn(String glassId, int ControlsId);
 }
diff --git a/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/impl/DownStorageCageDetailsServiceImpl.java b/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/impl/DownStorageCageDetailsServiceImpl.java
index 42c4c7a..c0808fa 100644
--- a/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/impl/DownStorageCageDetailsServiceImpl.java
+++ b/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/impl/DownStorageCageDetailsServiceImpl.java
@@ -3,12 +3,14 @@
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+import com.github.yulichang.query.MPJLambdaQueryWrapper;
 import com.github.yulichang.query.MPJQueryWrapper;
 
 
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 
 import com.github.yulichang.toolkit.JoinWrappers;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
 import com.mes.common.config.Const;
 import com.mes.downstorage.entity.DownStorageCage;
 import com.mes.downstorage.entity.DownStorageCageDetails;
@@ -350,4 +352,24 @@
     }
 
 
+
+
+    @Override
+    public boolean identWorn(String glassId, int ControlsId) {
+        List<DownStorageCageDetails> edgStorageCageDetails = baseMapper.selectList(new MPJLambdaQueryWrapper<DownStorageCageDetails>().selectAll(DownStorageCageDetails.class).eq(DownStorageCageDetails::getGlassId, glassId));
+        if (edgStorageCageDetails.size() == 1) {
+            DownStorageCageDetails item = edgStorageCageDetails.get(0);
+            item.setState(ControlsId);
+            baseMapper.update(item, new MPJLambdaWrapper<DownStorageCageDetails>().selectAll(DownStorageCageDetails.class).eq(DownStorageCageDetails::getGlassId, glassId));
+            return true;
+        }
+
+        return false;
+    }
+
+
+
+
+
+
 }

--
Gitblit v1.8.0