liuhairui 1 ano atrás
pai
commit
6905759c7d

+ 65 - 65
src/view/performance/baozhuangbaogong.vue

@@ -4,68 +4,54 @@
 		  <layout-content >
 		  <!-- <el-main> -->
 			<div class="gva-table-box">
-				<h1 style="margin: 0%;margin-bottom: 10px;">包装报工</h1>
-				<el-row :gutter="24" style="margin-bottom: 15px;">
-					<el-input v-model="add_searchInfo" placeholder="扫描标签二维码" 
-								  @keyup.enter="add_onSubmit"
-								id="searchInput" 
-								  style="width: 230px;margin: 5px;height: 50px;">
-								  </el-input>
-					<el-button type="primary" icon="search" @click="add_onSubmit" style="margin: 5px;height: 50px;">查询</el-button>	
-					
-					<el-form-item label="机台号:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;">
-						<el-input v-model="add_formData['机台号']" readonly  style="width: 100px;height: 40px;" id="机台号" />
+				<h1 id="title" style="margin: 0%;margin-bottom: 10px;">包装报工</h1>
+				<el-row :gutter="24" style="margin-bottom: 0px;">
+		          <el-input v-model="add_searchInfo" placeholder="请扫描子订单编号" @keyup.enter="add_onSubmit" id="searchInput" 
+				  style="width: 280px;height: 50px;margin-left: 10px;"></el-input>
+			      <el-button type="primary" icon="search" @click="add_onSubmit" style="height: 50px;width: 60px;">查询</el-button>
+					<el-form-item label="机台号:" prop="jitaihao" class="mab" style="font-size: 30px;margin: 10px;" label-width="116px">
+					    <el-input v-model="add_formData['机台号']" readonly style="width: 100px; height: 40px;" id="jitaihao" />
 					</el-form-item>
-					<el-form-item label="工序:" prop="deliveryDate" class="mab"style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['工序']"  readonly  style="width: 150px;height: 40px;" id="工序" />
+					<el-form-item label="工序:" prop="gongxu" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['工序']" readonly style="width: 100px; height: 40px;" id="gongxu" />
 					</el-form-item>
-					<el-form-item label="组别:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['组别']" readonly  style="width: 150px;height: 40px;" id="组别" />
+					<el-form-item label="组别:" prop="zubie" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['组别']" readonly style="width: 140px; height: 40px;" id="zubie" />
 					</el-form-item>
-					<el-form-item label="人员:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['人员']" readonly  style="width: 170px;height: 40px;" id="人员" />
+					<el-form-item label="人员:" prop="renyuan" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['人员']" readonly style="width: 110px; height: 40px;" id="renyuan" />
 					</el-form-item>
-
-				</el-row>
+		      </el-row>
 				
 				<el-row :gutter="24">  
-					<el-form-item label="数量:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['数量']" style="width: 110px;height: 40px;" id="数量" />
+					<el-form-item label="数量:" prop="shuliang" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
+						<el-input v-model="add_formData['数量']" style="width: 110px;height: 40px;" id="shuliang" />
 					</el-form-item>
-					<el-form-item label="尺码:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['尺码']" style="width: 110px;height: 40px;" id="尺码" />
+					<el-form-item label="尺码:" prop="chima" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
+						<el-input v-model="add_formData['尺码']" readonly style="width: 110px;height: 40px;" id="chima" />
 					</el-form-item>
 					<el-form-item label="是否尾包:" prop="joinDate" style="font-size: 30px; margin: 10px;" label-width="150">  
 					<!-- 假设 activeButtonValue 是从后端或某个方法获取的,这里直接硬编码为 0 或 1 -->  
-					<div  
-						:class="{'info-button': activeButtonValue === '1', 'default-button': activeButtonValue !== '1'}"  
-						style="margin-top:-20px; margin-right:15px; height: 50px; width: 70px; display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc; border-radius: 4px; color: #000000;"  
-						:style="{ backgroundColor: activeButtonValue === '1' ? '#ff0000' : '#808080' }"  
-					>  
-						是  
-					</div>  
-					<div  
-						:class="{'info-button': activeButtonValue === '0', 'default-button': activeButtonValue !== '0'}"  
-						style="margin-top:-20px; height: 50px; width: 70px; display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc; border-radius: 4px; color: #000000;"  
-						:style="{ backgroundColor: activeButtonValue === '0' ? '#ff0000' : '#808080' }"  
-					>  
-						否  
-					</div>  
+					<div :class="{'info-button': activeButtonValue === '1', 'default-button': activeButtonValue !== '1'}"    
+						style="margin-top:-20px; margin-right:15px; height: 50px; width: 70px; 
+						display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc;
+						 border-radius: 4px; color: #000000; font-size: 24px;"    
+						:style="{ backgroundColor: activeButtonValue === '1' ? '#ff0000' : '#808080' }">是</div>    
+					<div :class="{'info-button': activeButtonValue === '0', 'default-button': activeButtonValue !== '0'}"    
+						style="margin-top:-20px; height: 50px; width: 70px; 
+						display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc; 
+						border-radius: 4px; color: #000000; font-size: 24px;"    
+						:style="{ backgroundColor: activeButtonValue === '0' ? '#ff0000' : '#808080' }">否</div>
 					</el-form-item>  
 				</el-row>  
-					
-
 
 				<el-row :gutter="24" style="margin-bottom: 15px;margin-left: 0px;">
 					<div @contextmenu.prevent>
-						 <el-table
-							 ref="multipleTableRef"
-							 style="width: 100%;height: 53vh"
-							 tooltip-effect="dark"
-							 :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '30px' }"
-							 :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '30px' }"
+						 <el-table ref="multipleTableRef" style="width: 100%;height: 53vh"
+							 :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
+							 :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
 							 :data="add_tableData" border row-key="ID" size="small"
-							 highlight-current-row="true"
+							 highlight-current-row="true" tooltip-effect="dark"
 							 @row-dblclick="add_updateCompanyFunc" @row-click="add_tableRowClick" @row-contextmenu="handleRightClick"
 							 :show-overflow-tooltip="true" @selection-change="add_xpSelectionChange">
 						  <el-table-column type="selection" width="70" />
@@ -171,25 +157,6 @@ const getMachineMacdata = async () => {
 	add_formData['工序'] = data.data['生产工序']
 	add_formData['组别'] = data.data['组别']
 	add_formData['人员'] = data.data['组长']
-	document.getElementById('searchInput').style.fontSize = '28px'
-	document.getElementById('searchInput').style.color = 'red'
-
-	
-	document.getElementById('机台号').style.fontSize = '28px'
-	document.getElementById('工序').style.fontSize = '28px'
-	document.getElementById('组别').style.fontSize = '28px'
-	document.getElementById('人员').style.fontSize = '28px'
-	document.getElementById('数量').style.fontSize = '28px'
-	document.getElementById('尺码').style.fontSize = '28px'
-
-	document.getElementById('机台号').style.color = 'red'
-	document.getElementById('工序').style.color = 'red'
-	document.getElementById('组别').style.color = 'red'
-	document.getElementById('人员').style.color = 'red'
-	document.getElementById('数量').style.color = 'red'
-	document.getElementById('尺码').style.color = 'red'
-
-
   } catch (error) {
     console.error(error)
   }
@@ -222,9 +189,17 @@ const add_onSubmit = async ()=>{
 		 add_formData['尺码'] = getSpotLists.data.result.cm
 		 add_tableData.splice(0,add_tableData.length,...getSpotLists.data.records);
 		 searcs.value = 1;
+		 add_searchInfo.value = ''
+		 
 	}else{
 		 add_Dialog();
 	}
+	setTimeout(() => {
+		const inputElement = document.getElementById('searchInput');
+		if (inputElement) {
+			inputElement.focus();		
+		}
+	}, 100); // 延迟100毫秒
   }
 }
 const AttendanceVisible=ref(false)
@@ -470,4 +445,29 @@ margin-bottom: 5px;
 .default-button {  
   background-color: #808080;
 }
+
+
+/* 搜索样式 */
+::v-deep .el-input__wrapper #searchInput {  
+  font-size: 16px; 
+} 
+::v-deep .el-input__wrapper #jitaihao {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #gongxu {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #zubie {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #renyuan {  
+  font-size: 18px; 
+} 
+::v-deep .el-input__wrapper #shuliang {  
+  font-size: 18px; 
+  color: red;
+} 
+::v-deep .el-input__wrapper #chima {  
+  font-size: 18px; 
+} 
 </style>

+ 169 - 72
src/view/performance/caiqiebaogong.vue

@@ -3,79 +3,61 @@
 	<layout>
 	  <layout-content >
 		<div class="gva-table-box">
-			<h1 style="margin: 0%;margin-bottom: 10px;">裁切完工报工</h1>
-		      <el-row :gutter="24" style="margin-bottom: 5px;">
-		          <el-input v-model="add_searchInfo" placeholder="扫描订单编号获取订单信息" 
-			  				  @keyup.enter="add_onSubmit"
-							  id="searchInput" 
-			  				  style="width: 230px;margin: 5px;height: 50px;">
-			  				  </el-input>
-			      <el-button type="primary" icon="search" @click="add_onSubmit" style="margin: 5px;height: 50px;">查询</el-button>
-            <el-form-item label="机台号:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;">
-						<el-input v-model="add_formData['机台号']" disabled style="width: 70px;height: 40px;" id="机台号" />
+			<div style="display: flex; align-items: baseline; margin-bottom: 10px;">
+			    <h1 style="margin: 0;">裁切完工报工</h1>
+			</div>
+		      <el-row :gutter="24">
+		          <el-input v-model="add_searchInfo" placeholder="请扫描子订单编号" @keyup.enter="add_onSubmit"id="searchInput" 
+				  style="width: 280px;height: 50px;margin-left: 10px;"></el-input>
+			      <el-button type="primary" icon="search" @click="add_onSubmit" style="height: 50px;width: 60px;">查询</el-button>
+					<el-form-item label="机台号:" prop="jitaihao" class="mab" style="font-size: 30px;margin: 10px;" label-width="116px">
+					    <el-input v-model="add_formData['机台号']" readonly style="width: 100px; height: 40px;" id="jitaihao" />
 					</el-form-item>
-					<el-form-item label="工序:" prop="deliveryDate" class="mab"style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['工序']" disabled style="width: 70px;height: 40px;" id="工序" />
+					<el-form-item label="工序:" prop="gongxu" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['工序']" readonly style="width: 100px; height: 40px;" id="gongxu" />
 					</el-form-item>
-					<el-form-item label="组别:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['组别']" disabled style="width: 90px;height: 40px;" id="组别" />
+					<el-form-item label="组别:" prop="zubie" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['组别']" readonly style="width: 140px; height: 40px;" id="zubie" />
 					</el-form-item>
-					<el-form-item label="人员:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['人员']" disabled style="width: 90px;height: 40px;" id="人员" />
+					<el-form-item label="人员:" prop="renyuan" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['人员']" readonly style="width: 110px; height: 40px;" id="renyuan" />
 					</el-form-item>
 		      </el-row>
 
 			  <el-row :gutter="24">
-		          <el-form-item label="尺码/制单数合计:" class="mab" prop="keyOrder" label-width="240" style="font-size: 30px;margin: 5px;">
-		              <el-input v-model="cmformdata.cm1" disabled style="width: 90px;height: 40px;"/>
-		              <el-input v-model="cmformdata.cm2" disabled style="width: 90px;height: 40px;"/>
-		              <el-input v-model="cmformdata.cm3" disabled style="width: 90px;height: 40px;"/>
-		              <el-input v-model="cmformdata.cm4" disabled style="width: 90px;height: 40px;"/>
-		              <el-input v-model="cmformdata.cm5" disabled style="width: 90px;height: 40px;"/>
-		              <el-input v-model="cmformdata.cm6" disabled style="width: 90px;height: 40px;"/>
-		              <el-input v-model="cmformdata.cm7" disabled style="width: 90px;height: 40px;"/>
-		              <el-input v-model="cmformdata.cm8" disabled style="width: 90px;height: 40px;"/>
-					  <el-input v-model="cmformdata.cm9" disabled style="width: 90px;height: 40px;"/>	
-		              <el-input v-model="cmformdata.cm10" disabled style="width: 90px;height: 40px;"/>
-					  <el-input v-model="cmformdata.cm11" disabled style="width: 90px;height: 40px;"/>
+		          <el-form-item label="尺码/制单数合计:" class="mab"  prop="keyOrder" label-width="240" style="font-size: 28px;">
+		              <el-input v-model="cmformdata.cm1"  id="cm1"  readonly style="width: 90px;height: 40px;"/>
+		              <el-input v-model="cmformdata.cm2"  id="cm2"  readonly style="width: 90px;height: 40px;"/>
+		              <el-input v-model="cmformdata.cm3"  id="cm3"  readonly style="width: 90px;height: 40px;"/>
+		              <el-input v-model="cmformdata.cm4"  id="cm4"  readonly style="width: 90px;height: 40px;"/>
+		              <el-input v-model="cmformdata.cm5"  id="cm5"  readonly style="width: 90px;height: 40px;"/>
+		              <el-input v-model="cmformdata.cm6"  id="cm6"  readonly style="width: 90px;height: 40px;"/>
+		              <el-input v-model="cmformdata.cm7"  id="cm7"  readonly style="width: 90px;height: 40px;"/>
+		              <el-input v-model="cmformdata.cm8"  id="cm8"  readonly style="width: 90px;height: 40px;"/>
+					  <el-input v-model="cmformdata.cm9"  id="cm9"  readonly style="width: 90px;height: 40px;"/>	
+		              <el-input v-model="cmformdata.cm10" id="cm10" readonly style="width: 90px;height: 40px;"/>
+					  <el-input v-model="cmformdata.cm11" id="cm11" readonly style="width: 90px;height: 40px;"/>
 		          </el-form-item>
 		      </el-row>
 		      
-
-		      
 		      <el-row :gutter="24">
-		          <el-form-item label="本次实裁新增:" class="mab" prop="keyOrder" label-width="240" style="font-size: 30px;margin: 5px;">
-		              <el-input  v-model="scsformdata.scs1"@input="updateTotal" style="width: 90px;height: 40px;" id="scs1" @keydown="handleKeyDown($event, 'scs10', 'scs1', 'scs2')"/>
-		              <el-input  v-model="scsformdata.scs2"@input="updateTotal" style="width: 90px;height: 40px;" id="scs2" @keydown="handleKeyDown($event, 'scs1', 'scs2', 'scs3')"/>
-		              <el-input  v-model="scsformdata.scs3"@input="updateTotal" style="width: 90px;height: 40px;" id="scs3"@keydown="handleKeyDown($event, 'scs2', 'scs3', 'scs4')"/>
-		              <el-input  v-model="scsformdata.scs4"@input="updateTotal" style="width: 90px;height: 40px;" id="scs4"@keydown="handleKeyDown($event, 'scs3', 'scs4', 'scs5')"/>
-		              <el-input  v-model="scsformdata.scs5"@input="updateTotal" style="width: 90px;height: 40px;" id="scs5"@keydown="handleKeyDown($event, 'scs4', 'scs5', 'scs6')"/>
-		              <el-input  v-model="scsformdata.scs6"@input="updateTotal" style="width: 90px;height: 40px;" id="scs6"@keydown="handleKeyDown($event, 'scs5', 'scs6', 'scs7')"/>
-		              <el-input  v-model="scsformdata.scs7"@input="updateTotal" style="width: 90px;height: 40px;" id="scs7"@keydown="handleKeyDown($event, 'scs6', 'scs7', 'scs8')"/>
-		              <el-input  v-model="scsformdata.scs8"@input="updateTotal" style="width: 90px;height: 40px;" id="scs8"@keydown="handleKeyDown($event, 'scs7', 'scs8', 'scs9')"/>
-		              <el-input  v-model="scsformdata.scs9"@input="updateTotal" style="width: 90px;height: 40px;" id="scs9"@keydown="handleKeyDown($event, 'scs8', 'scs9', 'scs10')"/>
-					        <el-input  v-model="scsformdata.scs10"@input="updateTotal" style="width: 90px;height: 40px;" id="scs10"@keydown="handleKeyDown($event, 'scs9', 'scs10', 'scs1')"/>
-					        <el-input  v-model="scsformdata.sctotal" disabled style="width: 90px;height: 40px;" id="sctotal"/>
+		          <el-form-item label="本次实裁新增:" class="mab" prop="keyOrder" label-width="240" style="font-size: 28px;">
+					<el-input  v-model="scsformdata.scs1"  id="scs1"  @input="updateTotal" style="width: 90px;height: 40px;" @keydown="handleKeyDown($event, 'scs10', 'scs1', 'scs2')"/>
+					<el-input  v-model="scsformdata.scs2"  id="scs2"  @input="updateTotal" style="width: 90px;height: 40px;" @keydown="handleKeyDown($event, 'scs1', 'scs2', 'scs3')"/>
+					<el-input  v-model="scsformdata.scs3"  id="scs3"  @input="updateTotal" style="width: 90px;height: 40px;" @keydown="handleKeyDown($event, 'scs2', 'scs3', 'scs4')"/>
+					<el-input  v-model="scsformdata.scs4"  id="scs4"  @input="updateTotal" style="width: 90px;height: 40px;" @keydown="handleKeyDown($event, 'scs3', 'scs4', 'scs5')"/>
+					<el-input  v-model="scsformdata.scs5"  id="scs5"  @input="updateTotal" style="width: 90px;height: 40px;" @keydown="handleKeyDown($event, 'scs4', 'scs5', 'scs6')"/>
+					<el-input  v-model="scsformdata.scs6"  id="scs6"  @input="updateTotal" style="width: 90px;height: 40px;" @keydown="handleKeyDown($event, 'scs5', 'scs6', 'scs7')"/>
+					<el-input  v-model="scsformdata.scs7"  id="scs7"  @input="updateTotal" style="width: 90px;height: 40px;" @keydown="handleKeyDown($event, 'scs6', 'scs7', 'scs8')"/>
+					<el-input  v-model="scsformdata.scs8"  id="scs8"  @input="updateTotal" style="width: 90px;height: 40px;" @keydown="handleKeyDown($event, 'scs7', 'scs8', 'scs9')"/>
+					<el-input  v-model="scsformdata.scs9"  id="scs9"  @input="updateTotal" style="width: 90px;height: 40px;" @keydown="handleKeyDown($event, 'scs8', 'scs9', 'scs10')"/>
+					<el-input  v-model="scsformdata.scs10" id="scs10" @input="updateTotal" style="width: 90px;height: 40px;" @keydown="handleKeyDown($event, 'scs9', 'scs10', 'scs1')"/>
+					<el-input  v-model="scsformdata.sctotal" readonly style="width: 90px;height: 40px;" id="sctotal"/>
 		          </el-form-item>
 		      </el-row>
-          <!-- <el-row :gutter="24">
-		          <el-form-item label="总的制单数合计/总的实裁数累计:" class="mab" prop="keyOrder" label-width="390" style="font-size: 30px;margin:5px;">
-		              <el-input v-model="zdsformdata.zds1" disabled style="width: 90px;height: 40px;" id="zds1"/>
-		              <el-input v-model="zdsformdata.zds2" disabled style="width: 90px;height: 40px;" id="zds2"/>
-		              <el-input v-model="zdsformdata.zds3" disabled style="width: 90px;height: 40px;" id="zds3"/>
-		              <el-input v-model="zdsformdata.zds4" disabled style="width: 90px;height: 40px;" id="zds4"/>
-		              <el-input v-model="zdsformdata.zds5" disabled style="width: 90px;height: 40px;" id="zds5"/>
-		              <el-input v-model="zdsformdata.zds6" disabled style="width: 90px;height: 40px;" id="zds6"/>
-		              <el-input v-model="zdsformdata.zds7" disabled style="width: 90px;height: 40px;" id="zds7"/>
-		              <el-input v-model="zdsformdata.zds8" disabled style="width: 90px;height: 40px;" id="zds8"/>
-		              <el-input v-model="zdsformdata.zds9" disabled style="width: 90px;height: 40px;" id="zds9"/>
-					        <el-input v-model="zdsformdata.zds10" disabled style="width: 90px;height: 40px;" id="zds10"/>
-					        <el-input v-model="zdsformdata.zdtotal" disabled style="width: 90px;height: 40px;" id="zds11"/>
-		          </el-form-item>
-		      </el-row> -->
 
 				<el-row :gutter="24" style="margin-bottom: 15px;">
-					<el-table ref="multipleTable" style="width: 100%;height: 41vh" tooltip-effect="dark"
+					<el-table ref="multipleTable" style="width: 100%;height: 52vh" tooltip-effect="dark"
                       :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
                       :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
                       :data="add_tableData"  border row-key="ID"
@@ -345,20 +327,20 @@ const add_Dialog = async ()=>{
   }else{
 	if (_order.value.indexOf('-') !== -1) {
 	    let params = {}
-      params.scsl1 = scsformdata.scs1
-      params.scsl2 = scsformdata.scs2
-      params.scsl3 = scsformdata.scs3
-      params.scsl4 = scsformdata.scs4
-      params.scsl5 = scsformdata.scs5
-      params.scsl6 = scsformdata.scs6
-      params.scsl7 = scsformdata.scs7
-      params.scsl8 = scsformdata.scs8
-      params.scsl9 = scsformdata.scs9
-      params.scsl10 = scsformdata.scs10
-	    params.sctotal = scsformdata['sctotal'];
-	    params.order_id = _order.value;//子订单编号
-	    params.rq = currentDates;//时间
-      params.UniqId = _UniqId.value
+		params.scsl1 = scsformdata.scs1
+		params.scsl2 = scsformdata.scs2
+		params.scsl3 = scsformdata.scs3
+		params.scsl4 = scsformdata.scs4
+		params.scsl5 = scsformdata.scs5
+		params.scsl6 = scsformdata.scs6
+		params.scsl7 = scsformdata.scs7
+		params.scsl8 = scsformdata.scs8
+		params.scsl9 = scsformdata.scs9
+		params.scsl10 = scsformdata.scs10
+		params.sctotal = scsformdata['sctotal'];
+		params.order_id = _order.value;//子订单编号
+		params.rq = currentDates;//时间
+		params.UniqId = _UniqId.value
 	    console.log(params)
 	    //裁切完工报工接口
 	    const baogong_getInfo = await getInfo(params);
@@ -496,4 +478,119 @@ const handleSizeChange = (val) => {
 .mab{
   margin-bottom: 5px;
 }
+
+/* 搜索样式 */
+::v-deep .el-input__wrapper #searchInput {  
+  font-size: 16px; 
+} 
+::v-deep .el-input__wrapper #jitaihao {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #gongxu {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #zubie {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #renyuan {  
+  font-size: 18px; 
+} 
+::v-deep .el-input__wrapper #shuliang {  
+  font-size: 18px; 
+  color: red;
+} 
+::v-deep .el-input__wrapper #chima {  
+  font-size: 18px; 
+} 
+
+/* 尺码/制单数合计样式 */
+::v-deep .el-input__wrapper  #cm1{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm2{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm3{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm4{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm5{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm6{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm7{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm8{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm9{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm10{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm11{
+	font-size: 20px; 
+}
+/* 本次实裁新增样式 */
+::v-deep .el-input__wrapper  #scs1{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scs2{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scs3{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scs4{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scs5{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scs6{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scs7{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scs8{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scs9{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scs10{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #sctotal{
+	font-size: 20px; 
+}
+
+
 </style>

+ 350 - 141
src/view/performance/chafengbaogong.vue

@@ -5,23 +5,20 @@
 			<div class="gva-table-box">
 				<h1 style="margin: 0%;margin-bottom: 10px;">车缝完工报工</h1>
 				<el-row :gutter="24" style="margin-bottom: 15px;">
-					<el-input v-model="add_searchInfo" placeholder="扫描订单子编号获取订单信息" 
-								  @keyup.enter="add_onSubmit"
-								id="searchInput" 
-								  style="width: 230px;margin: 5px;height: 50px;">
-								  </el-input>
-					<el-button type="primary" icon="search" @click="add_onSubmit" style="margin: 5px;height: 50px;">查询</el-button>	
-					<el-form-item label="机台号:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;">
-						<el-input v-model="add_formData['机台号']" disabled style="width: 70px;height: 40px;" id="机台号" />
+		          <el-input v-model="add_searchInfo" placeholder="请扫描子订单编号" @keyup.enter="add_onSubmit"id="searchInput" 
+				  style="width: 150px;height: 50px;margin-left: 10px;"></el-input>
+			      <el-button type="primary" icon="search" @click="add_onSubmit" style="height: 50px;width: 60px;">查询</el-button>
+					<el-form-item label="机台号:" prop="jitaihao" class="mab" style="font-size: 30px;margin: 10px;" label-width="116px">
+					    <el-input v-model="add_formData['机台号']" readonly style="width: 100px; height: 40px;" id="jitaihao" />
 					</el-form-item>
-					<el-form-item label="工序:" prop="deliveryDate" class="mab"style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['工序']" disabled style="width: 70px;height: 40px;" id="工序" />
+					<el-form-item label="工序:" prop="gongxu" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['工序']" readonly style="width: 100px; height: 40px;" id="gongxu" />
 					</el-form-item>
-					<el-form-item label="组别:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['组别']" disabled style="width: 90px;height: 40px;" id="组别" />
+					<el-form-item label="组别:" prop="zubie" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['组别']" readonly style="width: 140px; height: 40px;" id="zubie" />
 					</el-form-item>
-					<el-form-item label="人员:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['人员']" disabled style="width: 90px;height: 40px;" id="人员" />
+					<el-form-item label="人员:" prop="renyuan" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['人员']" readonly style="width: 110px; height: 40px;" id="renyuan" />
 					</el-form-item>
 				</el-row>
 				<el-row :gutter="24">
@@ -34,52 +31,51 @@
 				</el-row>
 				<el-row :gutter="24">
 					<el-form-item label="尺码" class="mab" prop="keyOrder" label-width="160" style="font-size: 30px;margin:10px 0 0 0 ;">
-						<el-input v-model="cmformdata.cm1" class="cm_input"  disabled style="width: 90px;height: 40px;"/>
-
-						<el-input v-model="cmformdata.cm2" class="large-input" disabled style="width: 90px;height: 40px;"/>
-						<el-input v-model="cmformdata.cm3" class="large-input" disabled style="width: 90px;height: 40px;"/>
-						<el-input v-model="cmformdata.cm4" class="large-input"  disabled style="width: 90px;height: 40px;"/>
-						<el-input v-model="cmformdata.cm5" class="large-input"  disabled style="width: 90px;height: 40px;"/>	
-						<el-input v-model="cmformdata.cm6" class="large-input"  disabled style="width: 90px;height: 40px;"/>
-						<el-input v-model="cmformdata.cm7" class="large-input"  disabled style="width: 90px;height: 40px;"/>
-						<el-input v-model="cmformdata.cm8" class="large-input"  disabled style="width: 90px;height: 40px;"/>
-						<el-input v-model="cmformdata.cm9" class="large-input"  disabled style="width: 90px;height: 40px;"/>	
-						<el-input v-model="cmformdata.cm10" class="large-input"  disabled style="width: 90px;height: 40px;"/>
-						<el-input v-model="cmformdata.cm11" class="large-input"  disabled style="width: 90px;height: 40px;"/>
+						<el-input v-model="cmformdata.cm1"  id="cm1"   readonly style="width: 90px;height: 40px;"/>
+						<el-input v-model="cmformdata.cm2"  id="cm2"   readonly style="width: 90px;height: 40px;"/>
+						<el-input v-model="cmformdata.cm3"  id="cm3"   readonly style="width: 90px;height: 40px;"/>
+						<el-input v-model="cmformdata.cm4"  id="cm4"   readonly style="width: 90px;height: 40px;"/>
+						<el-input v-model="cmformdata.cm5"  id="cm5"   readonly style="width: 90px;height: 40px;"/>	
+						<el-input v-model="cmformdata.cm6"  id="cm6"   readonly style="width: 90px;height: 40px;"/>
+						<el-input v-model="cmformdata.cm7"  id="cm7"   readonly style="width: 90px;height: 40px;"/>
+						<el-input v-model="cmformdata.cm8"  id="cm8"   readonly style="width: 90px;height: 40px;"/>
+						<el-input v-model="cmformdata.cm9"  id="cm9"   readonly style="width: 90px;height: 40px;"/>	
+						<el-input v-model="cmformdata.cm10" id="cm10"  readonly style="width: 90px;height: 40px;"/>
+						<el-input v-model="cmformdata.cm11" id="cm11"  readonly style="width: 90px;height: 40px;"/>
 					</el-form-item>
 				</el-row>
 		      <el-row :gutter="24">
 		          <el-form-item label="制单数" class="mab" prop="keyOrder" label-width="160" style="font-size: 30px;margin-top: -5px;">
-		              <el-input v-model="zdscformdata.zdsc1" disabled style="width: 90px;height: 40px;" id="zdsc1"/>
-		              <el-input v-model="zdscformdata.zdsc2" disabled style="width: 90px;height: 40px;" id="zdsc2"/>
-		              <el-input v-model="zdscformdata.zdsc3" disabled style="width: 90px;height: 40px;" id="zdsc3"/>
-		              <el-input v-model="zdscformdata.zdsc4" disabled style="width: 90px;height: 40px;" id="zdsc4"/>
-		              <el-input v-model="zdscformdata.zdsc5" disabled style="width: 90px;height: 40px;" id="zdsc5"/>
-		              <el-input v-model="zdscformdata.zdsc6" disabled style="width: 90px;height: 40px;" id="zdsc6"/>
-		              <el-input v-model="zdscformdata.zdsc7" disabled style="width: 90px;height: 40px;" id="zdsc7"/>
-		              <el-input v-model="zdscformdata.zdsc8" disabled style="width: 90px;height: 40px;" id="zdsc8"/>
-		              <el-input v-model="zdscformdata.zdsc9" disabled style="width: 90px;height: 40px;" id="zdsc9"/>
-					  <el-input v-model="zdscformdata.zdsc10" disabled style="width: 90px;height: 40px;" id="zdsc10"/>
-					  <el-input v-model="zdscformdata.zdtotal" disabled style="width: 90px;height: 40px;" id="zdsc11"/>
+		              <el-input v-model="zdslformdata.zdsl1" readonly style="width: 90px;height: 40px;" id="zdsc1"/>
+		              <el-input v-model="zdslformdata.zdsl2" readonly style="width: 90px;height: 40px;" id="zdsc2"/>
+		              <el-input v-model="zdslformdata.zdsl3" readonly style="width: 90px;height: 40px;" id="zdsc3"/>
+		              <el-input v-model="zdslformdata.zdsl4" readonly style="width: 90px;height: 40px;" id="zdsc4"/>
+		              <el-input v-model="zdslformdata.zdsl5" readonly style="width: 90px;height: 40px;" id="zdsc5"/>
+		              <el-input v-model="zdslformdata.zdsl6" readonly style="width: 90px;height: 40px;" id="zdsc6"/>
+		              <el-input v-model="zdslformdata.zdsl7" readonly style="width: 90px;height: 40px;" id="zdsc7"/>
+		              <el-input v-model="zdslformdata.zdsl8" readonly style="width: 90px;height: 40px;" id="zdsc8"/>
+		              <el-input v-model="zdslformdata.zdsl9" readonly style="width: 90px;height: 40px;" id="zdsc9"/>
+					  <el-input v-model="zdslformdata.zdsl10" readonly style="width: 90px;height: 40px;" id="zdsc10"/>
+					  <el-input v-model="zdslformdata.zdtotal" readonly style="width: 90px;height: 40px;" id="zdtotal"/>
 		          </el-form-item>
 		      </el-row>
 			  <el-row :gutter="24">
-		          <el-form-item label="实裁" class="mab" prop="keyOrder" label-width="160" style="font-size: 30px;margin-top: -10px;">
-		              <el-input v-model="zdscformdata.zdsc1" disabled style="width: 90px;height: 40px;" id="zdsc1"/>
-		              <el-input v-model="zdscformdata.zdsc2" disabled style="width: 90px;height: 40px;" id="zdsc2"/>
-		              <el-input v-model="zdscformdata.zdsc3" disabled style="width: 90px;height: 40px;" id="zdsc3"/>
-		              <el-input v-model="zdscformdata.zdsc4" disabled style="width: 90px;height: 40px;" id="zdsc4"/>
-		              <el-input v-model="zdscformdata.zdsc5" disabled style="width: 90px;height: 40px;" id="zdsc5"/>
-		              <el-input v-model="zdscformdata.zdsc6" disabled style="width: 90px;height: 40px;" id="zdsc6"/>
-		              <el-input v-model="zdscformdata.zdsc7" disabled style="width: 90px;height: 40px;" id="zdsc7"/>
-		              <el-input v-model="zdscformdata.zdsc8" disabled style="width: 90px;height: 40px;" id="zdsc8"/>
-		              <el-input v-model="zdscformdata.zdsc9" disabled style="width: 90px;height: 40px;" id="zdsc9"/>
-					  <el-input v-model="zdscformdata.zdsc10" disabled style="width: 90px;height: 40px;" id="zdsc10"/>
-					  <el-input v-model="zdscformdata.zdtotal" disabled style="width: 90px;height: 40px;" id="zdsc11"/>
+		          <el-form-item label="实裁" class="mab" prop="keyOrder" label-width="160" style="font-size: 30px;margin-top: -10px;">
+		              <el-input v-model="scslformdata.scsl1" readonly style="width: 90px;height: 40px;" id="scsl1"/>
+		              <el-input v-model="scslformdata.scsl2" readonly style="width: 90px;height: 40px;" id="scsl2"/>
+		              <el-input v-model="scslformdata.scsl3" readonly style="width: 90px;height: 40px;" id="scsl3"/>
+		              <el-input v-model="scslformdata.scsl4" readonly style="width: 90px;height: 40px;" id="scsl4"/>
+		              <el-input v-model="scslformdata.scsl5" readonly style="width: 90px;height: 40px;" id="scsl5"/>
+		              <el-input v-model="scslformdata.scsl6" readonly style="width: 90px;height: 40px;" id="scsl6"/>
+		              <el-input v-model="scslformdata.scsl7" readonly style="width: 90px;height: 40px;" id="scsl7"/>
+		              <el-input v-model="scslformdata.scsl8" readonly style="width: 90px;height: 40px;" id="scsl8"/>
+		              <el-input v-model="scslformdata.scsl9" readonly style="width: 90px;height: 40px;" id="scsl9"/>
+					  <el-input v-model="scslformdata.scsl10" readonly style="width: 90px;height: 40px;" id="scsl10"/>
+					  <el-input v-model="scslformdata.scsltotal" readonly style="width: 90px;height: 40px;" id="sctotal"/>
 		          </el-form-item>
 		      </el-row>
 		      <el-row :gutter="24">
-		          <el-form-item label="数量" class="mab" prop="keyOrder" label-width="160" style="font-size: 30px;margin-top: -10px;">
+		          <el-form-item label="上报数量" class="mab" prop="keyOrder" label-width="160" style="font-size: 30px;margin-top: -10px;">
 		              <el-input  v-model="slformdata.sl1" @input="updateTotal" style="width: 90px;height: 40px;" id="sl1" @keydown="handleKeyDown($event, 'sl10', 'sl1', 'sl2')"/>
 		              <el-input  v-model="slformdata.sl2" @input="updateTotal" style="width: 90px;height: 40px;" id="sl2" @keydown="handleKeyDown($event, 'sl1', 'sl2', 'sl3')"/>
 		              <el-input  v-model="slformdata.sl3" @input="updateTotal" style="width: 90px;height: 40px;" id="sl3"@keydown="handleKeyDown($event, 'sl2', 'sl3', 'sl4')"/>
@@ -90,7 +86,7 @@
 		              <el-input  v-model="slformdata.sl8" @input="updateTotal" style="width: 90px;height: 40px;" id="sl8"@keydown="handleKeyDown($event, 'sl7', 'sl8', 'sl9')"/>
 		              <el-input  v-model="slformdata.sl9" @input="updateTotal" style="width: 90px;height: 40px;" id="sl9"@keydown="handleKeyDown($event, 'sl8', 'sl9', 'sl10')"/>
 					  <el-input  v-model="slformdata.sl10" @input="updateTotal" style="width: 90px;height: 40px;" id="sl10"@keydown="handleKeyDown($event, 'sl9', 'sl10', 'sl1')"/>
-					  <el-input  v-model="slformdata.sctotal" disabled style="width: 90px;height: 40px;" id="sctotal"/>
+					  <el-input  v-model="slformdata.sctotal" readonly style="width: 90px;height: 40px;" id="sctotal"/>
 		          </el-form-item>
 		      </el-row>
 				<el-row :gutter="24" style="margin-bottom: 15px;margin-left: 0px;">
@@ -240,21 +236,35 @@ const cmformdata = reactive({
   cm10:'',
   cm11:'合计',
 });
-// 制单数/实裁量
-const zdscformdata = reactive({
-  zdsc1:'',
-  zdsc2:'',
-  zdsc3:'',
-  zdsc4:'',
-  zdsc5:'',
-  zdsc6:'',
-  zdsc7:'',
-  zdsc8:'',
-  zdsc9:'',
-  zdsc10:'',
+// 制单数
+const zdslformdata = reactive({
+  zdsl1:'',
+  zdsl2:'',
+  zdsl3:'',
+  zdsl4:'',
+  zdsl5:'',
+  zdsl6:'',
+  zdsl7:'',
+  zdsl8:'',
+  zdsl9:'',
+  zdsl10:'',
   zdtotal:'',
 });
-// 实裁数
+// 实裁量
+const scslformdata = reactive({
+  scsl1:'',
+  scsl2:'',
+  scsl3:'',
+  scsl4:'',
+  scsl5:'',
+  scsl6:'',
+  scsl7:'',
+  scsl8:'',
+  scsl9:'',
+  scsl10:'',
+  scsltotal:'',
+});
+// 数量
 const slformdata = reactive({
   sl1:'',
   sl2:'',
@@ -278,7 +288,7 @@ function updateTotal() {
 }  
 
 //搜索
-const add_searchInfo = ref('')
+const add_searchInfo = ref('DC2409004-01')
 //表格
 const add_tableData = reactive([]);
 //全局获取颜色款式款号
@@ -293,19 +303,19 @@ const add_onSubmit = async ()=>{
     add_tableData.splice(0,add_tableData.length,...WorkListdata);
       ElMessage({type: 'warning',message: '请扫描小票二维码' })
   }else{
-	  if(searcs.value === ''){
-	  	 const order =add_searchInfo.value;
-	  	 const sys_sbID = add_formData['机台号']
+	  // if(searcs.value === ''){
 	  	 //获取下面报工历史记录
-	  	 const getSpotLists = await getSpotList({order:order,code:_code,sys_sbID:sys_sbID});
+	  	 const getSpotLists = await getSpotList({order:add_searchInfo.value,code:_code,sys_sbID:add_formData['机台号']});
+		 console.log(getSpotLists)
+		 add_tableData.splice(0,add_tableData.length,...getSpotLists.data.records);//表格数据
+		 
 	  	  _yskskh.value = getSpotLists.data.list[0]
-	  	  
 	  	 //获取尺码、制单数/实裁量上面信息
 	  	 const keys1 = ['cm1', 'cm2', 'cm3', 'cm4','cm5','cm6','cm7','cm8','cm9','cm10',];
-	  	 const keys2 = ['zdsc1', 'zdsc2', 'zdsc3', 'zdsc4','zdsc5','zdsc6','zdsc7','zdsc8','zdsc9','zdsc10','zdtotal',];
-	  	 
+	  	 const keys2 = ['zdsl1', 'zdsl2', 'zdsl3', 'zdsl4','zdsl5','zdsl6','zdsl7','zdsl8','zdsl9','zdsl10','zdtotal',];
+	  	 const keys3 = ['scsl1', 'scsl2', 'scsl3', 'scsl4','scsl5','scsl6','scsl7','scsl8','scsl9','scsl10','scsltotal',];
 	  	 //如果搜索是子订单编号    不是
-	  	 if(order.includes('-')){
+	  	 if(add_searchInfo.value.includes('-')){
 	  	 	for (let key of keys1) {  
 	  	 		if (getSpotLists.data.list[0].hasOwnProperty(key)) { // 确保键存在于对象中  
 	  	 			cmformdata[key] = getSpotLists.data.list[0][key];  
@@ -313,11 +323,16 @@ const add_onSubmit = async ()=>{
 	  	 	}  
 	  	 	for (let key of keys2) {  
 	  	 		if (getSpotLists.data.list[0].hasOwnProperty(key)) { // 确保键存在于对象中  
-	  	 			zdscformdata[key] = getSpotLists.data.list[0][key];  
+	  	 			zdslformdata[key] = getSpotLists.data.list[0][key];  
 	  	 		}  
-	  	 	}  
+	  	 	} 
+			for (let key of keys3) {
+				if (getSpotLists.data.list[0].hasOwnProperty(key)) { // 确保键存在于对象中  
+					scslformdata[key] = getSpotLists.data.list[0][key];  
+				}  
+			}  
 	  	 	setTimeout(() => {
-	  	     const inputElement = document.getElementById('scs1');
+	  	     const inputElement = document.getElementById('sl1');
 	  	     if (inputElement) {
 	  	         inputElement.focus();		
 	  	     }
@@ -327,14 +342,13 @@ const add_onSubmit = async ()=>{
 	  	 		cmformdata[key] = '';  
 	  	 	}  
 	  	 	for (let key of keys2) {  
-	  	 		zdscformdata[key] = '';  
+	  	 		zdslformdata[key] = '';  
 	  	 	}   
 	  	 }
-	  	 add_tableData.splice(0,add_tableData.length,...getSpotLists.data.records);//表格数据
 	  	 searcs.value = 1;
-	  }else{
-	  	 add_Dialog();
-	  }
+	  // }else{
+	  // 	 add_Dialog();
+	  // }
   }
 }
   
@@ -364,13 +378,13 @@ const add_Dialog = async ()=>{
   if(add_searchInfo.value === ''){
     ElMessage({type: 'warning',message: '请勾选具体的出库订单后,再操作此功能'})
   }else{
-	let cmArray = [cmformdata.cm1, cmformdata.cm2,cmformdata.cm3,cmformdata.cm4,cmformdata.cm5,cmformdata.cm6,cmformdata.cm7,cmformdata.cm8,cmformdata.cm9,cmformdata.cm10,];
-	let zdscArray = [zdscformdata.zdsc1, zdscformdata.zdsc2,zdscformdata.zdsc3,zdscformdata.zdsc4,zdscformdata.zdsc5,zdscformdata.zdsc6,zdscformdata.zdsc7,zdscformdata.zdsc8,zdscformdata.zdsc9,zdscformdata.zdsc10,]; 
-	let slArray = [slformdata.sl1, slformdata.sl2,slformdata.sl3,slformdata.sl4,slformdata.sl5,slformdata.sl6,slformdata.sl7,slformdata.sl8,slformdata.sl9,slformdata.sl10,]; 
+	let cmArray = [cmformdata.cm1, cmformdata.cm2,cmformdata.cm3,cmformdata.cm4,cmformdata.cm5,cmformdata.cm6,cmformdata.cm7,cmformdata.cm8,cmformdata.cm9,cmformdata.cm10];
+	let zdsl1Array = [zdslformdata.zdsl1, zdslformdata.zdsl12,zdslformdata.zdsl13,zdslformdata.zdsl14,zdslformdata.zdsl15,zdslformdata.zdsl16,zdslformdata.zdsl17,zdslformdata.zdsl18,zdslformdata.zdsl19,zdslformdata.zdsl110]; 
+	let slArray = [slformdata.sl1, slformdata.sl2,slformdata.sl3,slformdata.sl4,slformdata.sl5,slformdata.sl6,slformdata.sl7,slformdata.sl8,slformdata.sl9,slformdata.sl10]; 
 	let resultArrays = [];
 	for (let i = 0; i < slArray.length; i++) {  
 		// 创建一个新数组来存储当前索引下的所有值  
-		let currentValues = [add_formData['机台号'],cmArray[i], zdscArray[i], slArray[i]]; 
+		let currentValues = [add_formData['机台号'],cmArray[i], zdsl1Array[i], slArray[i]]; 
 		// 添加到结果数组中  
 		resultArrays.push(currentValues);  
   	}  
@@ -396,14 +410,14 @@ const add_Dialog = async ()=>{
 	
 	if (paramsList.length === 0) {  
 		ElMessage({ type: 'info', message: '请填写报告尺码数量' });  
-		return; // 如果没有有效的参数,则提前返回  
+		return;  
   	}  
   
   	let allSuccess = true;  
 	for (let i = 0; i < paramsList.length; i++) {  
 		const cf_gettab = await search(paramsList[i]);  
 		if (cf_gettab.code !== 0) {  
-		ElMessage({ type: 'error', message: '报工失败' });  
+		// ElMessage({ type: 'error', message: '报工失败' });  
 		allSuccess = false;  
 		break; // 如果某个报工失败,则中断循环  
 		}  
@@ -414,6 +428,7 @@ const add_Dialog = async ()=>{
 		add_tableData.splice(0,add_tableData.length,...lsjltable.data.records);
 		add_searchInfo.value = ''; // 清除选择  
 		searcs.value = '';
+		add_printxp();
 		ElMessage({ type: 'success', message: '报工成功' });  
 	}  
  }
@@ -520,59 +535,54 @@ const confirmDialogVisible = () => {
 	  const hiprintTemplate = new hiprint.PrintTemplate({ template: jsondata });
 	  hiprintTemplate.print(allPrintData.value);
   };
-    // 打印小票
-	const add_printxp = () => {
-		let cmArray = [cmformdata.cm1, cmformdata.cm2,cmformdata.cm3,cmformdata.cm4,cmformdata.cm5,cmformdata.cm6,cmformdata.cm7,cmformdata.cm8,cmformdata.cm9,cmformdata.cm10,];
-		let slArray = [slformdata.sl1, slformdata.sl2,slformdata.sl3,slformdata.sl4,slformdata.sl5,slformdata.sl6,slformdata.sl7,slformdata.sl8,slformdata.sl9,slformdata.sl10,]; 
-		let allParams = []; // 用于存储所有要打印的参数对象  
-		let allParamss = ref([]); // 用于存储所有要打印的参数对象
-		console.log(slArray)
-		if (!slArray.some(item => item !== "" && item !== null && item !== undefined))  {  
-		  ElMessage({type: 'warning', message: '没有填写数量,请填写数量后再使用此功能'});
-		  return;  
-	  }else{
-			for (let i = 0; i <  slArray.length; i++) {  
-				if (slArray[i]) { 
-					let params = {};  
-					params.order_id =add_searchInfo.value ;
-					params.sczl_jtbh = add_formData['组别'];
-					params.gx = add_formData['工序'];
-					params.sys_id = add_formData['人员']; 
-					params.wb = add_formData['是否订单尾包'];
-					params.cm = cmArray[i];  
-					params.sl = slArray[i];
-					params.sys_rq =currentDate ;
-					allParams.push(params);  
-					// console.log(allParams)
-
-					allParamss.value = allParams.map((row) => {
-						console.log(allParamss)
-					let weibao = row['wb'] === '是' ? 1 : 0;
-					//二维码数据:订单子编号,组别,工序(固定),尺码,数量,是否尾包(1代表是0代表否)如2408001-1,CF01,3,10,20,0
-					const ewm = `${row['order_id']},${add_formData['机台号']},3,${row['cm']},${row['sl']},${weibao}`;
-					console.log(123)
-					console.log(_yskskh._value['款号'])
-					return {
-						emm: ewm,
-						zddbh: row['order_id'],
-						kh: _yskskh._value['款号'],
-						pm: _yskskh._value['款式'],
-						ys: _yskskh._value['颜色'],
-						cm: row['cm'],
-						sl: row['sl'],
-						zb: row['sczl_jtbh'],
-						dyrq: currentDates,
-						wb: row['wb']
-					};
-				});
-					console.log(allParamss)
-					const hiprintTemplate = new hiprint.PrintTemplate({ template: jsondata });
-					hiprintTemplate.print(allParamss.value);
-				}
-			} 
+// 打印小票
+const add_printxp = () => {
+	let cmArray = [cmformdata.cm1, cmformdata.cm2,cmformdata.cm3,cmformdata.cm4,cmformdata.cm5,cmformdata.cm6,cmformdata.cm7,cmformdata.cm8,cmformdata.cm9,cmformdata.cm10];
+	let slArray = [slformdata.sl1, slformdata.sl2,slformdata.sl3,slformdata.sl4,slformdata.sl5,slformdata.sl6,slformdata.sl7,slformdata.sl8,slformdata.sl9,slformdata.sl10]; 
+	let allParams = []; // 用于存储所有要打印的参数对象  
+	let allParamss = ref([]); // 用于存储所有要打印的参数对象
+	console.log(slArray)
+	if (!slArray.some(item => item !== "" && item !== null && item !== undefined))  {  
+	  ElMessage({type: 'warning', message: '没有填写数量,请填写数量后再使用此功能'});
+	  return;  
+  }else{
+	for (let i = 0; i <  slArray.length; i++) {  
+		if (slArray[i]) { 
+			let params = {};  
+			params.order_id =add_searchInfo.value ;
+			params.sczl_jtbh = add_formData['组别'];
+			params.gx = add_formData['工序'];
+			params.sys_id = add_formData['人员']; 
+			params.wb = add_formData['是否订单尾包'];
+			params.cm = cmArray[i];  
+			params.sl = slArray[i];
+			params.sys_rq =currentDate ;
+			allParams.push(params);  
+			allParamss.value = allParams.map((row) => {
+			let weibao = row['wb'] === '是' ? 1 : 0;
+			//二维码数据:订单子编号,组别,工序(固定),尺码,数量,是否尾包(1代表是0代表否)如2408001-1,CF01,3,10,20,0
+			const ewm = `${row['order_id']},${add_formData['机台号']},3,${row['cm']},${row['sl']},${weibao}`;
+			console.log(_yskskh.value['款号'])
+			return {
+				emm: ewm,
+				zddbh: row['order_id'],
+				kh: _yskskh.value['款号'],
+				pm: _yskskh.value['款式'],
+				ys: _yskskh.value['颜色'],
+				cm: row['cm'],
+				sl: row['sl'],
+				zb: row['sczl_jtbh'],
+				dyrq: currentDates,
+				wb: row['wb']
+			};
+		});
+			console.log(allParamss)
+			const hiprintTemplate = new hiprint.PrintTemplate({ template: jsondata });
+			hiprintTemplate.print(allParamss.value);
+		}
+	} 
   }
-
-  };
+};
   // =========== 删除按钮 ===========
   //记录复选框的值
   const bgSelection = ref(null)
@@ -817,7 +827,7 @@ const confirmDialogVisible = () => {
 	background: oldlace;
   }
   :deep(.el-input .is-disabled .cm_input){
-	color: #ff0000;
+	color: red;
   }
   /* 选中某行时的背景色 */
   :deep(.el-table__body tr.current-row) > td {
@@ -860,6 +870,205 @@ const confirmDialogVisible = () => {
   font-size: 20px; /* 更改为你想要的字体大小 */  
 }  
 
+/* 搜索样式 */
+::v-deep .el-input__wrapper #searchInput {  
+  font-size: 16px; 
+} 
+::v-deep .el-input__wrapper #jitaihao {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #gongxu {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #zubie {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #renyuan {  
+  font-size: 18px; 
+} 
+::v-deep .el-input__wrapper #shuliang {  
+  font-size: 18px; 
+  color: red;
+} 
+::v-deep .el-input__wrapper #chima {  
+  font-size: 18px; 
+} 
 
-  </style>
+/* 尺码 */
+::v-deep .el-input__wrapper  #cm1{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm2{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm3{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm4{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm5{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm6{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm7{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm8{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm9{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm10{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #cm11{
+	font-size: 20px; 
+}
+/* 制单数 */
+::v-deep .el-input__wrapper  #zdsc1{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #zdsc2{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #zdsc3{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #zdsc4{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #zdsc5{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #zdsc6{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #zdsc7{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #zdsc8{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #zdsc9{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #zdsc10{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #zdtotal{
+	font-size: 20px; 
+}
+/* 实裁数 */
+::v-deep .el-input__wrapper  #scsl1{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scsl2{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scsl3{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scsl4{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scsl5{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scsl6{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scsl7{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scsl8{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scsl9{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #scsl10{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #sctotal{
+	font-size: 20px; 
+}
+/* 数量 */
+::v-deep .el-input__wrapper  #sl1{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #sl2{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #sl3{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #sl4{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #sl5{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #sl6{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #sl7{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #sl8{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #sl9{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #sl10{
+	font-size: 20px; 
+	color: red !important;
+}
+::v-deep .el-input__wrapper  #sctotal{
+	font-size: 20px; 
+}
+</style>
   

+ 5 - 5
src/view/performance/chukubaogong.vue

@@ -8,7 +8,7 @@
 				  <el-input v-model="add_searchInfo" placeholder="请扫描子订单编号"
 				  			  @keyup.enter="add_onSubmit"
 								id="searchInput" 
-				  			  style="width: 230px;margin: 5px;height: 50px;">
+				  			  style="width: 280px;margin: 5px;height: 50px;margin-left: 10px;">
 				  			  </el-input>
 				  <el-button type="primary" icon="search" @click="add_onSubmit" style="margin: 5px;height: 50px;">查询</el-button>
 				  <el-button type="primary" icon="" @click="Restore_onSubmit" style="margin: 5px;height: 50px;">恢复未出库</el-button>
@@ -69,7 +69,7 @@ const seconds = String(today.getSeconds()).padStart(2, '0');
 const currentDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
 const currentDates = `${year}-${month}-${day}`;
 
-const add_searchInfo = ref('DC2409004-01')//搜索
+const add_searchInfo = ref('')//搜索
 const add_tableData = reactive([])//表格
 const _orderid = ref('')//订单自编号
 const searcs = ref('')
@@ -354,8 +354,8 @@ const tableDataCellClass = ({row, column, rowIndex, columnIndex}) =>{
 .mab{
   margin-bottom: 5px;
 }
- ::v-deep .el-input__wrapper #searchInput {  
-  font-size: 20px; 
-  color: red; 
+/* 搜索样式 */
+::v-deep .el-input__wrapper #searchInput {  
+  font-size: 16px; 
 }  
 </style>

+ 64 - 45
src/view/performance/datangbaogong.vue

@@ -4,68 +4,54 @@
 		  <layout-content >
 		  <!-- <el-main> -->
 			<div class="gva-table-box">
-				<h1 style="margin: 0%;margin-bottom: 10px;">大烫报工</h1>
-				<el-row :gutter="24" style="margin-bottom: 15px;">
-					<el-input v-model="add_searchInfo" placeholder="扫描标签二维码" 
-								  @keyup.enter="add_onSubmit"
-								id="searchInput" 
-								  style="width: 230px;margin: 5px;height: 50px;">
-								  </el-input>
-					<el-button type="primary" icon="search" @click="add_onSubmit" style="margin: 5px;height: 50px;">查询</el-button>	
-					
-					<el-form-item label="机台号:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;">
-						<el-input v-model="add_formData['机台号']" disabled  style="width: 110px;height: 40px;" id="机台号" />
+				<h1 id="title" style="margin: 0%;margin-bottom: 10px;">大烫报工</h1>
+				<el-row :gutter="24" style="margin-bottom: 0px;">
+		          <el-input v-model="add_searchInfo" placeholder="请扫描子订单编号" @keyup.enter="add_onSubmit" id="searchInput" 
+				  style="width: 280px;height: 50px;margin-left: 10px;"></el-input>
+			      <el-button type="primary" icon="search" @click="add_onSubmit" style="height: 50px;width: 60px;">查询</el-button>
+					<el-form-item label="机台号:" prop="jitaihao" class="mab" style="font-size: 30px;margin: 10px;" label-width="116px">
+					    <el-input v-model="add_formData['机台号']" readonly style="width: 100px; height: 40px;" id="jitaihao" />
 					</el-form-item>
-					<el-form-item label="工序:" prop="deliveryDate" class="mab"style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['工序']" disabled  style="width: 110px;height: 40px;" id="工序" />
+					<el-form-item label="工序:" prop="gongxu" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['工序']" readonly style="width: 100px; height: 40px;" id="gongxu" />
 					</el-form-item>
-					<el-form-item label="组别:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['组别']" disabled  style="width: 110px;height: 40px;" id="组别" />
+					<el-form-item label="组别:" prop="zubie" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['组别']" readonly style="width: 140px; height: 40px;" id="zubie" />
 					</el-form-item>
-					<el-form-item label="人员:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['人员']" disabled  style="width: 110px;height: 40px;" id="人员" />
+					<el-form-item label="人员:" prop="renyuan" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['人员']" readonly style="width: 110px; height: 40px;" id="renyuan" />
 					</el-form-item>
-
-				</el-row>
+		      </el-row>
 				
 				<el-row :gutter="24">  
-					<el-form-item label="数量:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['数量']" style="width: 110px;height: 40px;" id="数量" />
+					<el-form-item label="数量:" prop="shuliang" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
+						<el-input v-model="add_formData['数量']" style="width: 110px;height: 40px;" id="shuliang" />
 					</el-form-item>
-					<el-form-item label="尺码:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['尺码']" style="width: 110px;height: 40px;" id="尺码" />
+					<el-form-item label="尺码:" prop="chima" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
+						<el-input v-model="add_formData['尺码']" readonly style="width: 110px;height: 40px;" id="chima" />
 					</el-form-item>
 					<el-form-item label="是否尾包:" prop="joinDate" style="font-size: 30px; margin: 10px;" label-width="150">  
 					<!-- 假设 activeButtonValue 是从后端或某个方法获取的,这里直接硬编码为 0 或 1 -->  
-					<div  
-						:class="{'info-button': activeButtonValue === '1', 'default-button': activeButtonValue !== '1'}"  
-						style="margin-top:-20px; margin-right:15px; height: 50px; width: 70px; display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc; border-radius: 4px; color: #000000;"  
-						:style="{ backgroundColor: activeButtonValue === '1' ? '#ff0000' : '#808080' }"  
-					>  
-						是  
-					</div>  
-					<div  
-						:class="{'info-button': activeButtonValue === '0', 'default-button': activeButtonValue !== '0'}"  
-						style="margin-top:-20px; height: 50px; width: 70px; display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc; border-radius: 4px; color: #000000;"  
-						:style="{ backgroundColor: activeButtonValue === '0' ? '#ff0000' : '#808080' }"  
-					>  
-						否  
-					</div>  
+					<div :class="{'info-button': activeButtonValue === '1', 'default-button': activeButtonValue !== '1'}"    
+						style="margin-top:-20px; margin-right:15px; height: 50px; width: 70px; 
+						display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc;
+						 border-radius: 4px; color: #000000; font-size: 24px;"    
+						:style="{ backgroundColor: activeButtonValue === '1' ? '#ff0000' : '#808080' }">是</div>    
+					<div :class="{'info-button': activeButtonValue === '0', 'default-button': activeButtonValue !== '0'}"    
+						style="margin-top:-20px; height: 50px; width: 70px; 
+						display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc; 
+						border-radius: 4px; color: #000000; font-size: 24px;"    
+						:style="{ backgroundColor: activeButtonValue === '0' ? '#ff0000' : '#808080' }">否</div>
 					</el-form-item>  
 				</el-row>  
-					
-
 
 				<el-row :gutter="24" style="margin-bottom: 15px;margin-left: 0px;">
 					<div @contextmenu.prevent>
-						 <el-table
-							 ref="multipleTableRef"
-							 style="width: 100%;height: 53vh"
-							 tooltip-effect="dark"
+						 <el-table ref="multipleTableRef" style="width: 100%;height: 53vh"
 							 :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
 							 :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
 							 :data="add_tableData" border row-key="ID" size="small"
-							 highlight-current-row="true"
+							 highlight-current-row="true" tooltip-effect="dark"
 							 @row-dblclick="add_updateCompanyFunc" @row-click="add_tableRowClick" @row-contextmenu="handleRightClick"
 							 :show-overflow-tooltip="true" @selection-change="add_xpSelectionChange">
 						  <el-table-column type="selection" width="70" />
@@ -157,7 +143,7 @@ const currentDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
 const currentDates = `${year}-${month}-${day}`;
 
 //全局接口接受的物理地址
-const Machine = '68-ED-A4-16-7F-37'
+const Machine = '68-ED-A4-16-7F-36'
 //全局获取code,接口接收code
 const _code = '大烫'
 //全局获取UniqId
@@ -203,9 +189,17 @@ const add_onSubmit = async ()=>{
 		 add_formData['尺码'] = getSpotLists.data.result.cm
 		 add_tableData.splice(0,add_tableData.length,...getSpotLists.data.records);
 		 searcs.value = 1;
+		 add_searchInfo.value = ''
+		 
 	}else{
 		 add_Dialog();
 	}
+	setTimeout(() => {
+		const inputElement = document.getElementById('searchInput');
+		if (inputElement) {
+			inputElement.focus();		
+		}
+	}, 100); // 延迟100毫秒
   }
 }
 const AttendanceVisible=ref(false)
@@ -451,4 +445,29 @@ margin-bottom: 5px;
 .default-button {  
   background-color: #808080;
 }
+
+
+/* 搜索样式 */
+::v-deep .el-input__wrapper #searchInput {  
+  font-size: 16px; 
+} 
+::v-deep .el-input__wrapper #jitaihao {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #gongxu {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #zubie {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #renyuan {  
+  font-size: 18px; 
+} 
+::v-deep .el-input__wrapper #shuliang {  
+  font-size: 18px; 
+  color: red;
+} 
+::v-deep .el-input__wrapper #chima {  
+  font-size: 18px; 
+} 
 </style>

+ 62 - 43
src/view/performance/houdaoshougong.vue

@@ -5,67 +5,53 @@
 		  <!-- <el-main> -->
 			<div class="gva-table-box">
 				<h1 id="title" style="margin: 0%;margin-bottom: 10px;">后道(手工确认)</h1>
-				<el-row :gutter="24" style="margin-bottom: 15px;">
-					<el-input v-model="add_searchInfo" placeholder="扫描标签二维码" 
-								  @keyup.enter="add_onSubmit"
-								id="searchInput" 
-								  style="width: 230px;margin: 5px;height: 50px;">
-								  </el-input>
-					<el-button type="primary" icon="search" @click="add_onSubmit" style="margin: 5px;height: 50px;">查询</el-button>	
-					
-					<el-form-item label="机台号:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;">
-						<el-input v-model="add_formData['机台号']" disabled style="width: 110px;height: 40px;" id="机台号" />
+				<el-row :gutter="24" style="margin-bottom: 0px;">
+		          <el-input v-model="add_searchInfo" placeholder="请扫描子订单编号" @keyup.enter="add_onSubmit" id="searchInput" 
+				  style="width: 280px;height: 50px;margin-left: 10px;"></el-input>
+			      <el-button type="primary" icon="search" @click="add_onSubmit" style="height: 50px;width: 60px;">查询</el-button>
+					<el-form-item label="机台号:" prop="jitaihao" class="mab" style="font-size: 30px;margin: 10px;" label-width="116px">
+					    <el-input v-model="add_formData['机台号']" readonly style="width: 100px; height: 40px;" id="jitaihao" />
 					</el-form-item>
-					<el-form-item label="工序:" prop="deliveryDate" class="mab"style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['工序']" disabled  style="width: 110px;height: 40px;" id="工序" />
+					<el-form-item label="工序:" prop="gongxu" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['工序']" readonly style="width: 100px; height: 40px;" id="gongxu" />
 					</el-form-item>
-					<el-form-item label="组别:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['组别']" disabled  style="width: 110px;height: 40px;" id="组别" />
+					<el-form-item label="组别:" prop="zubie" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['组别']" readonly style="width: 140px; height: 40px;" id="zubie" />
 					</el-form-item>
-					<el-form-item label="人员:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['人员']" disabled  style="width: 110px;height: 40px;" id="人员" />
+					<el-form-item label="人员:" prop="renyuan" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['人员']" readonly style="width: 110px; height: 40px;" id="renyuan" />
 					</el-form-item>
-
-				</el-row>
+		      </el-row>
 				
 				<el-row :gutter="24">  
-					<el-form-item label="数量:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['数量']" style="width: 110px;height: 40px;" id="数量" />
+					<el-form-item label="数量:" prop="shuliang" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
+						<el-input v-model="add_formData['数量']" style="width: 110px;height: 40px;" id="shuliang" />
 					</el-form-item>
-					<el-form-item label="尺码:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['尺码']" style="width: 110px;height: 40px;" id="尺码" />
+					<el-form-item label="尺码:" prop="chima" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
+						<el-input v-model="add_formData['尺码']" readonly style="width: 110px;height: 40px;" id="chima" />
 					</el-form-item>
 					<el-form-item label="是否尾包:" prop="joinDate" style="font-size: 30px; margin: 10px;" label-width="150">  
 					<!-- 假设 activeButtonValue 是从后端或某个方法获取的,这里直接硬编码为 0 或 1 -->  
-					<div    
-    :class="{'info-button': activeButtonValue === '1', 'default-button': activeButtonValue !== '1'}"    
-    style="margin-top:-20px; margin-right:15px; height: 50px; width: 70px; display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc; border-radius: 4px; color: #000000; font-size: 24px;"    
-    :style="{ backgroundColor: activeButtonValue === '1' ? '#ff0000' : '#808080' }"    
->    
-    是    
-</div>    
-<div    
-    :class="{'info-button': activeButtonValue === '0', 'default-button': activeButtonValue !== '0'}"    
-    style="margin-top:-20px; height: 50px; width: 70px; display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc; border-radius: 4px; color: #000000; font-size: 32px;"    
-    :style="{ backgroundColor: activeButtonValue === '0' ? '#ff0000' : '#808080' }"    
->    
-    否    
-</div>
+					<div :class="{'info-button': activeButtonValue === '1', 'default-button': activeButtonValue !== '1'}"    
+						style="margin-top:-20px; margin-right:15px; height: 50px; width: 70px; 
+						display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc;
+						 border-radius: 4px; color: #000000; font-size: 24px;"    
+						:style="{ backgroundColor: activeButtonValue === '1' ? '#ff0000' : '#808080' }">是</div>    
+					<div :class="{'info-button': activeButtonValue === '0', 'default-button': activeButtonValue !== '0'}"    
+						style="margin-top:-20px; height: 50px; width: 70px; 
+						display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc; 
+						border-radius: 4px; color: #000000; font-size: 24px;"    
+						:style="{ backgroundColor: activeButtonValue === '0' ? '#ff0000' : '#808080' }">否</div>
 					</el-form-item>  
 				</el-row>  
-					
-
 
 				<el-row :gutter="24" style="margin-bottom: 15px;margin-left: 0px;">
 					<div @contextmenu.prevent>
-						 <el-table
-							 ref="multipleTableRef"
-							 style="width: 100%;height: 53vh"
-							 tooltip-effect="dark"
+						 <el-table ref="multipleTableRef" style="width: 100%;height: 53vh"
 							 :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
 							 :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
 							 :data="add_tableData" border row-key="ID" size="small"
-							 highlight-current-row="true"
+							 highlight-current-row="true" tooltip-effect="dark"
 							 @row-dblclick="add_updateCompanyFunc" @row-click="add_tableRowClick" @row-contextmenu="handleRightClick"
 							 :show-overflow-tooltip="true" @selection-change="add_xpSelectionChange">
 						  <el-table-column type="selection" width="70" />
@@ -203,9 +189,17 @@ const add_onSubmit = async ()=>{
 		 add_formData['尺码'] = getSpotLists.data.result.cm
 		 add_tableData.splice(0,add_tableData.length,...getSpotLists.data.records);
 		 searcs.value = 1;
+		 add_searchInfo.value = ''
+		 
 	}else{
 		 add_Dialog();
 	}
+	setTimeout(() => {
+		const inputElement = document.getElementById('searchInput');
+		if (inputElement) {
+			inputElement.focus();		
+		}
+	}, 100); // 延迟100毫秒
   }
 }
 const AttendanceVisible=ref(false)
@@ -451,4 +445,29 @@ margin-bottom: 5px;
 .default-button {  
   background-color: #808080;
 }
+
+
+/* 搜索样式 */
+::v-deep .el-input__wrapper #searchInput {  
+  font-size: 16px; 
+} 
+::v-deep .el-input__wrapper #jitaihao {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #gongxu {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #zubie {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #renyuan {  
+  font-size: 18px; 
+} 
+::v-deep .el-input__wrapper #shuliang {  
+  font-size: 18px; 
+  color: red;
+} 
+::v-deep .el-input__wrapper #chima {  
+  font-size: 18px; 
+} 
 </style>

+ 64 - 45
src/view/performance/zongjianbaogong.vue

@@ -4,68 +4,54 @@
 		  <layout-content >
 		  <!-- <el-main> -->
 			<div class="gva-table-box">
-				<h1 style="margin: 0%;margin-bottom: 10px;">总检报工</h1>
-				<el-row :gutter="24" style="margin-bottom: 15px;">
-					<el-input v-model="add_searchInfo" placeholder="扫描标签二维码" 
-								  @keyup.enter="add_onSubmit"
-								id="searchInput" 
-								  style="width: 230px;margin: 5px;height: 50px;">
-								  </el-input>
-					<el-button type="primary" icon="search" @click="add_onSubmit" style="margin: 5px;height: 50px;">查询</el-button>	
-					
-					<el-form-item label="机台号:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;">
-						<el-input v-model="add_formData['机台号']" disabled  style="width: 110px;height: 40px;" id="机台号" />
+				<h1 id="title" style="margin: 0%;margin-bottom: 10px;">总检报工</h1>
+				<el-row :gutter="24" style="margin-bottom: 0px;">
+		          <el-input v-model="add_searchInfo" placeholder="请扫描子订单编号" @keyup.enter="add_onSubmit" id="searchInput" 
+				  style="width: 280px;height: 50px;margin-left: 10px;"></el-input>
+			      <el-button type="primary" icon="search" @click="add_onSubmit" style="height: 50px;width: 60px;">查询</el-button>
+					<el-form-item label="机台号:" prop="jitaihao" class="mab" style="font-size: 30px;margin: 10px;" label-width="116px">
+					    <el-input v-model="add_formData['机台号']" readonly style="width: 100px; height: 40px;" id="jitaihao" />
 					</el-form-item>
-					<el-form-item label="工序:" prop="deliveryDate" class="mab"style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['工序']" disabled  style="width: 110px;height: 40px;" id="工序" />
+					<el-form-item label="工序:" prop="gongxu" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['工序']" readonly style="width: 100px; height: 40px;" id="gongxu" />
 					</el-form-item>
-					<el-form-item label="组别:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['组别']" disabled  style="width: 110px;height: 40px;" id="组别" />
+					<el-form-item label="组别:" prop="zubie" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['组别']" readonly style="width: 140px; height: 40px;" id="zubie" />
 					</el-form-item>
-					<el-form-item label="人员:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['人员']" disabled  style="width: 110px;height: 40px;" id="人员" />
+					<el-form-item label="人员:" prop="renyuan" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
+					    <el-input v-model="add_formData['人员']" readonly style="width: 110px; height: 40px;" id="renyuan" />
 					</el-form-item>
-
-				</el-row>
+		      </el-row>
 				
 				<el-row :gutter="24">  
-					<el-form-item label="数量:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['数量']" style="width: 110px;height: 40px;" id="数量" />
+					<el-form-item label="数量:" prop="shuliang" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
+						<el-input v-model="add_formData['数量']" style="width: 110px;height: 40px;" id="shuliang" />
 					</el-form-item>
-					<el-form-item label="尺码:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
-						<el-input v-model="add_formData['尺码']" style="width: 110px;height: 40px;" id="尺码" />
+					<el-form-item label="尺码:" prop="chima" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
+						<el-input v-model="add_formData['尺码']" readonly style="width: 110px;height: 40px;" id="chima" />
 					</el-form-item>
 					<el-form-item label="是否尾包:" prop="joinDate" style="font-size: 30px; margin: 10px;" label-width="150">  
 					<!-- 假设 activeButtonValue 是从后端或某个方法获取的,这里直接硬编码为 0 或 1 -->  
-					<div  
-						:class="{'info-button': activeButtonValue === '1', 'default-button': activeButtonValue !== '1'}"  
-						style="margin-top:-20px; margin-right:15px; height: 50px; width: 70px; display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc; border-radius: 4px; color: #000000;"  
-						:style="{ backgroundColor: activeButtonValue === '1' ? '#ff0000' : '#808080' }"  
-					>  
-						是  
-					</div>  
-					<div  
-						:class="{'info-button': activeButtonValue === '0', 'default-button': activeButtonValue !== '0'}"  
-						style="margin-top:-20px; height: 50px; width: 70px; display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc; border-radius: 4px; color: #000000;"  
-						:style="{ backgroundColor: activeButtonValue === '0' ? '#ff0000' : '#808080' }"  
-					>  
-						否  
-					</div>  
+					<div :class="{'info-button': activeButtonValue === '1', 'default-button': activeButtonValue !== '1'}"    
+						style="margin-top:-20px; margin-right:15px; height: 50px; width: 70px; 
+						display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc;
+						 border-radius: 4px; color: #000000; font-size: 24px;"    
+						:style="{ backgroundColor: activeButtonValue === '1' ? '#ff0000' : '#808080' }">是</div>    
+					<div :class="{'info-button': activeButtonValue === '0', 'default-button': activeButtonValue !== '0'}"    
+						style="margin-top:-20px; height: 50px; width: 70px; 
+						display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc; 
+						border-radius: 4px; color: #000000; font-size: 24px;"    
+						:style="{ backgroundColor: activeButtonValue === '0' ? '#ff0000' : '#808080' }">否</div>
 					</el-form-item>  
 				</el-row>  
-					
-
 
 				<el-row :gutter="24" style="margin-bottom: 15px;margin-left: 0px;">
 					<div @contextmenu.prevent>
-						 <el-table
-							 ref="multipleTableRef"
-							 style="width: 100%;height: 53vh"
-							 tooltip-effect="dark"
+						 <el-table ref="multipleTableRef" style="width: 100%;height: 53vh"
 							 :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
 							 :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
 							 :data="add_tableData" border row-key="ID" size="small"
-							 highlight-current-row="true"
+							 highlight-current-row="true" tooltip-effect="dark"
 							 @row-dblclick="add_updateCompanyFunc" @row-click="add_tableRowClick" @row-contextmenu="handleRightClick"
 							 :show-overflow-tooltip="true" @selection-change="add_xpSelectionChange">
 						  <el-table-column type="selection" width="70" />
@@ -157,7 +143,7 @@ const currentDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
 const currentDates = `${year}-${month}-${day}`;
 
 //全局接口接受的物理地址
-const Machine = '68-ED-A4-26-5F-84'
+const Machine = '68-ED-A4-26-5E-4F'
 //全局获取code,接口接收code
 const _code = '总检'
 //全局获取UniqId
@@ -203,9 +189,17 @@ const add_onSubmit = async ()=>{
 		 add_formData['尺码'] = getSpotLists.data.result.cm
 		 add_tableData.splice(0,add_tableData.length,...getSpotLists.data.records);
 		 searcs.value = 1;
+		 add_searchInfo.value = ''
+		 
 	}else{
 		 add_Dialog();
 	}
+	setTimeout(() => {
+		const inputElement = document.getElementById('searchInput');
+		if (inputElement) {
+			inputElement.focus();		
+		}
+	}, 100); // 延迟100毫秒
   }
 }
 const AttendanceVisible=ref(false)
@@ -451,4 +445,29 @@ margin-bottom: 5px;
 .default-button {  
   background-color: #808080;
 }
+
+
+/* 搜索样式 */
+::v-deep .el-input__wrapper #searchInput {  
+  font-size: 16px; 
+} 
+::v-deep .el-input__wrapper #jitaihao {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #gongxu {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #zubie {  
+  font-size: 18px; 
+}  
+::v-deep .el-input__wrapper #renyuan {  
+  font-size: 18px; 
+} 
+::v-deep .el-input__wrapper #shuliang {  
+  font-size: 18px; 
+  color: red;
+} 
+::v-deep .el-input__wrapper #chima {  
+  font-size: 18px; 
+} 
 </style>