From 864b0203990d308294e0d8a9331158374822dbba Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期四, 12 六月 2025 10:14:32 +0800
Subject: [PATCH] 修改订单任务切换功能bug

---
 河北望美项目/MES_11/src/main/webapp/WEB-INF/views/cutmanage/gotasks2.jsp |  116 +++++++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 98 insertions(+), 18 deletions(-)

diff --git "a/\346\262\263\345\214\227\346\234\233\347\276\216\351\241\271\347\233\256/MES_11/src/main/webapp/WEB-INF/views/cutmanage/gotasks2.jsp" "b/\346\262\263\345\214\227\346\234\233\347\276\216\351\241\271\347\233\256/MES_11/src/main/webapp/WEB-INF/views/cutmanage/gotasks2.jsp"
index ac6c040..1b91268 100644
--- "a/\346\262\263\345\214\227\346\234\233\347\276\216\351\241\271\347\233\256/MES_11/src/main/webapp/WEB-INF/views/cutmanage/gotasks2.jsp"
+++ "b/\346\262\263\345\214\227\346\234\233\347\276\216\351\241\271\347\233\256/MES_11/src/main/webapp/WEB-INF/views/cutmanage/gotasks2.jsp"
@@ -13,44 +13,54 @@
 
 	//鍋滄椤甸潰鑷姩鍒锋柊
 
-	function delecttask(id) {
+	function delecttask(groups,id) {
 		//disableAutoRefresh();
 		$.ajax({
 			async : false,
 
 			type : "GET",
 
-			url : "${ctx}/cutmanage/delecttask/" + id,
+			url : "${ctx}/cutmanage/delecttask/" + id +"/" +groups,
 
 			dataType : "text",
 
 			success : function(data) {
-				window.location.href = "${ctx}/cutmanage/gettask/" + id;
+				window.location.href = "${ctx}/cutmanage/gettask/" + groups;
 			}
 		});
 		alert(id);
 	}
 
-	function delecttask1(id) {
+	function delecttask1(groups,id) {
 		//disableAutoRefresh();disableAutoRefresh();
 		$.ajax({
 			async : false,
 
 			type : "GET",
 
-			url : "${ctx}/cutmanage/delecttask1/" + id,
+			url : "${ctx}/cutmanage/delecttask/" + id +"/" +groups,
 
 			dataType : "text",
 
 			success : function(data) {
-				window.location.href = "${ctx}/cutmanage/gettask/" + id;
+				window.location.href = "${ctx}/cutmanage/gettask/" + groups;
 			}
 		});
 	}
 
-	function updatetask(id) {
+	function updatetask(id,width,height,thinkness,color,count) {
 		$("#add-info1").modal('show');
+		document.getElementById("width_t").value=width;
+		document.getElementById("length_t").value=height;
+		document.getElementById("thinkness_t").value=thinkness;
+		document.getElementById("color_t").value=color;
+		
 		rankId=id;
+		width_T=width;
+		height_T=height;
+		thinkness_T=thinkness;
+		color_T=color;
+		count_T=count;
 	}
 
 	function updatetask1(id) {
@@ -117,9 +127,22 @@
 	//淇敼鏁伴噺
 	function addrack1(){
 		
-     	var pieces=document.getElementById("pieces7").value;
-     	if(pieces==null||pieces==""){
+     	var width=document.getElementById("width_t").value;
+     	var length=document.getElementById("length_t").value;
+     	var thinkness=document.getElementById("thinkness_t").value;
+     	var color=document.getElementById("color_t").value;
+     	var count=document.getElementById("count_t").value;
+     	
+     	if(count==null||count==""){
      		alert("璇疯緭鍏ユ暟閲� ");
+     	}else if(width==null||width==""){
+     		alert("璇疯緭鍏ュ ");
+     	}else if(length==null||length==""){
+     		alert("璇疯緭鍏ラ暱 ");
+     	}else if(thinkness==null||thinkness==""){
+     		alert("璇疯緭鍏ュ帤 ");
+     	}else if(color==null||color==""){
+     		alert("璇疯緭鍏ヨ啘绯� ");
      	}else{
             $.ajax({
           		cache:false,
@@ -128,7 +151,11 @@
         		 	url:"${ctx}/cutmanage/updatepieces",
         		 	data:{
         		 		"rankid":rankId,
-        		 		"pieces":pieces
+        		 		"width":width,
+        		 		"height":length,
+        		 		"thinkness":thinkness,
+        		 		"color":color,
+        		 		"count":count
         		 	},success:function(data){ 
           		 		window.location.href="${ctx}/cutmanage/gettask/4";
           			}
@@ -144,6 +171,13 @@
 	var group = ${groups};
 	var rTime = 5000;
 	var rankId=0;
+	
+	
+	var width_T=0;
+	var height_T=0;
+	var thinkness_T=0;
+	var color_T=0;
+	var count_T=0;
 </script>
 <style>
 .box table tr th, .box table tr td {
@@ -246,7 +280,6 @@
 							<th>鎬绘暟閲�</th>
 							<th>瀹屾垚闈㈢Н(mm)</th>
 							<th>鎿嶄綔</th>
-
 						</tr>
 					</thead>
 					<tbody>${pattertaskHtml}
@@ -264,7 +297,7 @@
 							<th>楂樺害</th>
 							<th>鍘氬害</th>
 							<th>棰滆壊</th>
-							<th>鐘舵��</th>
+							<th>鏁伴噺</th>
 							<th>鎿嶄綔</th>
 
 						</tr>
@@ -278,30 +311,77 @@
 			<div class="modal fade" id="add-info1" tabindex="-1" role="dialog"
 				aria-labelledby="myModalLabel" aria-hidden="true">
 				<div class="modal-dialog">
-					<div class="modal-content" style="height: 500px;">
+					<div class="modal-content" style="height: 350px;">
 						<div class="modal-header">
 							<button type="button" class="close" data-dismiss="modal"
 								aria-hidden="true" data-backdrop="static">&times;</button>
 							<h3 class="modal-title" id="myModalLabel"
-								style="font-weight: bolder;">淇敼鏁伴噺</h3>
+								style="font-weight: bolder;">鎻愪氦璁㈠崟浜ч噺</h3>
 						</div>
 						
 							<input type="hidden" id="addRawPackage" name="Ids">
 							<div class="modal-body">
 								
-								<div id="linheight" class="form-group">
+								
+								<div id="width" class="form-group">
+									
+									<h4>
+										<label class="col-sm-3 control-label no-padding-right"
+											style="font-weight: bolder;">闀� </label>
+									</h4>
+									<div class="col-sm-9">
+										<input type="number" required="required" max="9000" min="0" class=" sortNumber form-control"
+											value="" name="width_t" id="width_t"
+											onclick="this.value=''" style="width: 250px; font-size: 20px" />
+									</div>
+								</div>
+								<div id="length" class="form-group">
+									
+									<h4>
+										<label class="col-sm-3 control-label no-padding-right"
+											style="font-weight: bolder;">瀹� </label>
+									</h4>
+									<div class="col-sm-9">
+										<input type="number" required="required" max="9000" min="0" class=" sortNumber form-control"
+											value="" name="length_t" id="length_t"
+											onclick="this.value=''" style="width: 250px; font-size: 20px" />
+									</div>
+								</div>
+								<div id="thinkness" class="form-group">
+									
+									<h4>
+										<label class="col-sm-3 control-label no-padding-right"
+											style="font-weight: bolder;">鍘� </label>
+									</h4>
+									<div class="col-sm-9">
+										<input type="number" required="required" max="9000" min="0" class=" sortNumber form-control"
+											value="" name="thinkness_t" id="thinkness_t"
+											onclick="this.value=''" style="width: 250px; font-size: 20px" />
+									</div>
+								</div>
+								<div id="color" class="form-group">
+									
+									<h4>
+										<label class="col-sm-3 control-label no-padding-right"
+											style="font-weight: bolder;">鑶滅郴 </label>
+									</h4>
+									<div class="col-sm-9">
+										<input type="text" required="required" class=" sortNumber form-control"
+											value="" name="color_t" id="color_t"
+											onclick="this.value=''" style="width: 250px; font-size: 20px" />
+									</div>
+								</div>
+								<div id="count" class="form-group">
 									<h4>
 										<label class="col-sm-3 control-label no-padding-right"
 											style="font-weight: bolder;">鏁伴噺 </label>
 									</h4>
-
 									<div class="col-sm-9">
 										<input type="number" required="required" max="9000" min="0" class=" sortNumber form-control"
-											value="" name="pieces2" id="pieces7"
+											value="" name="count_t" id="count_t"
 											onclick="this.value=''" style="width: 250px; font-size: 20px" />
 									</div>
 								</div>
-
 							</div>
 							<div class="modal-footer" >
 								<button type="button" class="btn btn-default btn-lg"

--
Gitblit v1.8.0