فهرست منبع

设备运行跟踪接口对接

su 1 سال پیش
والد
کامیت
51b0557cea
2فایلهای تغییر یافته به همراه476 افزوده شده و 105 حذف شده
  1. 24 0
      src/api/jixiaoguanli/jitairibaobiao.js
  2. 452 105
      src/view/yunyin/shengchanguanli/shebeiyunxing.vue

+ 24 - 0
src/api/jixiaoguanli/jitairibaobiao.js

@@ -550,6 +550,30 @@ export const  facilityWorklist= (params) => {
 	params
   })
 }
+//印件、工序、完成数量
+export const  facilityProcedure= (params) => {
+  return service({
+    url:'/mes_server/facility/Procedure',
+    method: 'get',
+	params
+  })
+}
+//机台印版领用->左侧菜单
+export const  facilityPrintGetTab= (params) => {
+  return service({
+    url:'/mes_server/facility/PrintGetTab',
+    method: 'get',
+	params
+  })
+}
+//机台印版领用->右侧详情
+export const  facilityPrintDetail= (params) => {
+  return service({
+    url:'/mes_server/facility/PrintDetail',
+    method: 'get',
+	params
+  })
+}
 //当前生产订单
 export const  facilityProduction= (params) => {
   return service({

+ 452 - 105
src/view/yunyin/shengchanguanli/shebeiyunxing.vue

@@ -6,6 +6,7 @@
 			<el-button type="primary" @click="onDel">删除</el-button>
 			<el-button type="primary" @click="onSMB">入仓末板数据统计</el-button>
 			<el-button type="primary" @click="ondianjian">设备点检</el-button>
+			<el-button type="primary" @click="onyinban">印版领退</el-button>
 		</header>
 		
 		
@@ -28,13 +29,13 @@
 			<div style="flex: 1; border: 1px magenta solid; margin: 0; padding: 0;">
 
 			  <el-row :gutter="20">
-				<el-col :span="6">
+				<el-col :span="24">
 				  <el-form-item label="工单编号" prop="name">
 					<el-row :gutter="20">
-					  <el-col :span="12">
+					  <el-col :span="6">
 						<el-input v-model="formData.工单编号" :clearable="true" placeholder="ZT01733" />							
 					  </el-col>
-					  <el-col :span="12">
+					  <el-col :span="18">
 						<el-input v-model="formData.产品名称" :clearable="true" placeholder="ZT01733" />
 					  </el-col>
 					</el-row>
@@ -44,12 +45,12 @@
 			  </el-row>
 			  
 			  <el-row :gutter="20">
-				<el-col :span="4">
+				<el-col :span="6">
 				 <el-form-item label="印件编号" prop="id">
 				   <el-input v-model="formData.印件编号" :clearable="true" placeholder="2023.12.14" />
 				 </el-form-item>
 				</el-col>
-			  <el-col :span="3">
+			  <el-col :span="17">
 				 <el-form-item label="工序名称" prop="name">
 				   <el-input v-model="formData.工序名称" :clearable="true" placeholder="A班" />
 				 </el-form-item>
@@ -65,23 +66,23 @@
                                  				  
 <el-row :gutter="1">
 			 
-			 <el-col :span="3">
+			 <el-col :span="4">
 			   <el-input v-model="formData.sczl_bh1" :clearable="true" placeholder="ZT01733" />
 			 </el-col>
-			<el-col :span="3">
+			<el-col :span="4">
 			  <el-input v-model="formData.sczl_bh2" :clearable="true" placeholder="ZT01733" />
 			</el-col>
-			  <el-col :span="3">			  			
+			  <el-col :span="4">			  			
 				<el-input v-model="formData.sczl_bh3" :clearable="true" placeholder="ZT01733" />
 			  </el-col>
 			  
-			 <el-col :span="3">
+			 <el-col :span="4">
 				<el-input v-model="formData.sczl_bh4" :clearable="true" placeholder="ZT01733" />
 			  </el-col>
-			  <el-col :span="3">
+			  <el-col :span="4">
 				<el-input v-model="formData.sczl_bh5" :clearable="true" placeholder="ZT01733" />
 			  </el-col>
-			  <el-col :span="3">
+			  <el-col :span="4">
 				<el-input v-model="formData.sczl_bh6" :clearable="true" placeholder="ZT01733" />
 			  </el-col> 
 			<!-- <el-col :span="1">
@@ -100,37 +101,24 @@
 		   
 		   <el-row :gutter="1">
 		 
-		 <el-col :span="3">
+		 <el-col :span="4">
 		   <el-input v-model="formData.sczl_name1" :clearable="true" placeholder="ZT01733" />
 		 </el-col>
-		<el-col :span="3">
+		<el-col :span="4">
 		  <el-input v-model="formData.sczl_name2" :clearable="true" placeholder="ZT01733" />
 		</el-col>
-		  <el-col :span="3">			  			
+		  <el-col :span="4">			  			
 			<el-input v-model="formData.sczl_name3" :clearable="true" placeholder="ZT01733" />
 		  </el-col>
-		  
-		  <!-- <el-col :span="3">
-			<el-input v-model="formData.name4" :clearable="true" placeholder="ZT01733" />
-		  </el-col>
-		 <!-- <el-col :span="1">
-			<el-input v-model="formData.name5" :clearable="true" placeholder="ZT01733" />
+		  <el-col :span="4">
+		  			<el-input v-model="formData.sczl_name4" :clearable="true" placeholder="ZT01733" />
 		  </el-col>
-		  <el-col :span="1">
-			<el-input v-model="formData.name6" :clearable="true" placeholder="ZT01733" />
+		  <el-col :span="4">
+		  			<el-input v-model="formData.sczl_name5" :clearable="true" placeholder="ZT01733" />
 		  </el-col>
-		  <el-col :span="1">
-			<el-input v-model="formData.name7" :clearable="true" placeholder="ZT01733" />
+		  <el-col :span="4">
+		  			<el-input v-model="formData.sczl_name6" :clearable="true" placeholder="ZT01733" />
 		  </el-col>
-		  <el-col :span="1">
-			<el-input v-model="formData.name8" :clearable="true" placeholder="ZT01733" />
-		  </el-col>
-		  <el-col :span="1">
-			<el-input v-model="formData.name9" :clearable="true" placeholder="ZT01733" />
-		  </el-col>
-		   <el-col :span="1">
-		   <el-input v-model="formData.name10" :clearable="true" placeholder="2023.12.14" />
-		   </el-col> -->
 	   </el-row>
                                  		                    
 </div>
@@ -143,16 +131,16 @@
 	   row-key="ID"
 	   highlight-current-row="true"
 	   border
-	   style="width:100%"
+	   style="width:100%;height: 30vh;"
 	   @row-dblclick="handleSelectClick"
 	 >
 	   <el-table-column
-	     prop="Gd_cpmc"
+	     prop="process"
 	     label="印件及工序"
 	     width="340"
 	   />
 	   <el-table-column
-	     prop="jyGx"
+	     prop="completed"
 	     label="已完成板数"
 	     width="150"
 	   />			 
@@ -184,20 +172,20 @@
                                     :row-style="{ height: '20px' }"
                                     :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
                                     :header-cell-style="{ padding: '0px' }"
-                                    @row-dblclick="yjupdateCompanyFunc"
-                                    style="width: 100%;height: 330px" border tooltip-effect="dark" :data="yjtableData" row-key="ID" @selection-change="handleSelectionChange">
+                                    @row-click="yjupdateCompanyFunc"
+                                    style="width: 100%;height: 330px" border tooltip-effect="dark" :data="sbzyData" row-key="ID" @selection-change="handleSelectionChange">
             <!--                <el-table-column type="selection" width="55" />-->
-                            <el-table-column align="left" label="选择" prop="yj_yjno"  width="80"/>
-                            <el-table-column align="left" label="工单编号|质量信息" prop="yj_yjdh" width="180" />
-							<el-table-column align="left" label="印件资料" prop="yj_yjdh" width="240" />
-                            <el-table-column align="left" label="工序名称" prop="yj_yjmc" width="100" />
-                            <el-table-column align="left" label="计划产量/已完成" prop="yj_zzdh" width="180"/>
-                            <el-table-column align="left" label="装版时数" prop="yj_zzmc" width="100"/>
-                            <el-table-column align="left" label="工序产能" prop="yj_tlgg" width="100"/>
-                            <el-table-column align="left" label="计划工时" prop="yj_klgg" width="100"/>
-                            <el-table-column align="left" label="计划生产时段" prop="yj_ks" width="240" />
-                            <el-table-column align="left" label="排产备注" prop="yj_ls" width="100" />
-                            <el-table-column align="left" label="产品名称" prop="yj_desc" width="240" />
+                            <el-table-column align="left" label="选择" prop="bh"  width="80"/>
+                            <el-table-column align="left" label="工单编号|质量信息" prop="工单编号|质量信息" width="180" />
+							<el-table-column align="left" label="印件资料" prop="印件资料" width="240" />
+                            <el-table-column align="left" label="工序名称" prop="工序名称" width="100" />
+                            <el-table-column align="left" label="计划产量/已完成" prop="计划产量/已完成" width="180"/>
+                            <el-table-column align="left" label="装版时数" prop="装版时数" width="100"/>
+                            <el-table-column align="left" label="工序产能" prop="工序产能" width="100"/>
+                            <el-table-column align="left" label="计划工时" prop="计划工时" width="100"/>
+                            <el-table-column align="left" label="计划生产时段" prop="计划生产时段" width="240" />
+                            <el-table-column align="left" label="排产备注" prop="排产备注" width="100" />
+                            <el-table-column align="left" label="产品名称" prop="产品名称" width="240" />
                           </el-table>
                         </el-tab-pane>
             
@@ -210,21 +198,21 @@
                                     :header-cell-style="{ padding: '0px' }"
                                     @row-dblclick="gyupdateCompanyFunc"
                                     :row-class-name="rowClassStyle"
-                                    style="width: 100%;height: 400px" border tooltip-effect="dark" :data="gytableData" row-key="ID" @selection-change="handleSelectionChange"
+                                    style="width: 100%;height: 400px" border tooltip-effect="dark" :data="FPData" row-key="ID" @selection-change="handleSelectionChange"
                                     @row-click="clickybupdate">
             <!--                <el-table-column type="selection" width="55" />-->
                             <el-table-column align="left" label="选择" prop="方案"  width="70"/>
-                            <el-table-column align="left" label="班组号" prop="Gy0_yjno" width="80" />
-                            <el-table-column align="left" label="组员1" prop="Gy0_gxh" width="240" />
-                            <el-table-column align="left" label="组员2" prop="gy0_gxmc" width="240" />
-                            <el-table-column align="left" label="组员3" prop="add_gxmc" width="240" />
-                            <el-table-column align="left" label="组员4" prop="Gy0_Ks" width="240" />
-                            <el-table-column align="left" label="组员5" prop="Gy0_ls" width="100" />
-                            <el-table-column align="left" label="组员6" prop="备注" width="100" />
-                            <el-table-column align="left" label="组员7" prop="工价系数" width="100" />
-                            <el-table-column align="left" label="组员8" prop="损耗系数" width="100" />
-                            <el-table-column align="left" label="组员9" prop="Gy0_Ms" width="100" />
-                            <el-table-column align="left" label="组员10" prop="人工检_正品版" width="120" />
+                            <el-table-column align="left" label="班组号" prop="班组号" width="80" />
+                            <el-table-column align="left" label="组员1" prop="0" width="240" />
+                            <el-table-column align="left" label="组员2" prop="1" width="240" />
+                            <el-table-column align="left" label="组员3" prop="2" width="240" />
+                            <el-table-column align="left" label="组员4" prop="3" width="240" />
+                            <el-table-column align="left" label="组员5" prop="4" width="100" />
+                            <el-table-column align="left" label="组员6" prop="5" width="100" />
+                            <el-table-column align="left" label="组员7" prop="6" width="100" />
+                            <el-table-column align="left" label="组员8" prop="7" width="100" />
+                            <el-table-column align="left" label="组员9" prop="8" width="100" />
+                            <el-table-column align="left" label="组员10" prop="9_正品版" width="120" />
                           </el-table>
                         </el-tab-pane>
             
@@ -236,30 +224,30 @@
                                   :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
                                   :header-cell-style="{ padding: '0px' }"
                                   @row-dblclick="ybupdateCompanyFunc"
-                                  style="width: 100%;height: 400px" border tooltip-effect="dark" :data="ybtableData" row-key="ID" @selection-change="handleSelectionChange"
+                                  style="width: 100%;height: 400px" border tooltip-effect="dark" :data="CLMXData" row-key="ID" @selection-change="handleSelectionChange"
                                   >
             <!--              <el-table-column type="selection" width="55" />-->
-                          <el-table-column align="left" label="生产时段" prop="YB_方案"  width="180"/>
-                          <el-table-column align="left" label="工单编号" prop="YB_Yjno" width="120" />
-                          <el-table-column align="left" label="产品名称" prop="印版类别" width="240" />
-                          <el-table-column align="left" label="印件及工序" prop="存货编码" width="320"/>
-                          <el-table-column align="left" label="标牌号" prop="印版名称"  width="80"/>
-                          <el-table-column align="left" label="产量" prop="考核印数" width="100"/>
-                          <el-table-column align="left" label="制程废品" prop="Sys_id" width="100" />
-                          <el-table-column align="left" label="制程次品" prop="建档日期" width="100" />
-                          <el-table-column align="left" label="前工序废" prop="更新日期" width="100" />
-						  <el-table-column align="left" label="来料异常" prop="YB_方案"  width="100"/>
-						  <el-table-column align="left" label="装版工时" prop="YB_Yjno" width="100" />
-						  <el-table-column align="left" label="保养工时" prop="印版类别" width="100" />
-						  <el-table-column align="left" label="打样工时" prop="存货编码" width="100"/>
-						  <el-table-column align="left" label="异常停机工时" prop="印版名称"  width="120"/>
-						  <el-table-column align="left" label="通电工时" prop="考核印数" width="100"/>
-						  <el-table-column align="left" label="码开始行" prop="Sys_id" width="100" />
-						  <el-table-column align="left" label="码结束行" prop="建档日期" width="100" />
-						  <el-table-column align="left" label="码包" prop="更新日期" width="100" />
-						  <el-table-column align="left" label="主电表" prop="YB_方案"  width="100"/>
-						  <el-table-column align="left" label="辅电表" prop="YB_Yjno" width="100" />
-						  <el-table-column align="left" label="色度数" prop="印版类别" width="100" />
+                          <el-table-column align="left" label="生产时段" prop="生产时间段"  width="180"/>
+                          <el-table-column align="left" label="工单编号" prop="工单编号" width="120" />
+                          <el-table-column align="left" label="产品名称" prop="产品名称" width="240" />
+                          <el-table-column align="left" label="印件及工序" prop="印件及工序" width="320"/>
+                          <el-table-column align="left" label="标牌号" prop="标牌号"  width="80"/>
+                          <el-table-column align="left" label="产量" prop="产量" width="100"/>
+                          <el-table-column align="left" label="制程废品" prop="制程废品" width="100" />
+                          <el-table-column align="left" label="制程次品" prop="制程次品" width="100" />
+                          <el-table-column align="left" label="前工序废" prop="前工序废" width="100" />
+						  <el-table-column align="left" label="来料异常" prop="来料异常"  width="100"/>
+						  <el-table-column align="left" label="装版工时" prop="装版工时" width="100" />
+						  <el-table-column align="left" label="保养工时" prop="保养工时" width="100" />
+						  <el-table-column align="left" label="打样工时" prop="打样工时" width="100"/>
+						  <el-table-column align="left" label="异常停机工时" prop="异常停机工时"  width="120"/>
+						  <el-table-column align="left" label="通电工时" prop="通电工时" width="100"/>
+						  <el-table-column align="left" label="码开始行" prop="码开始行" width="100" />
+						  <el-table-column align="left" label="码结束行" prop="码结束行" width="100" />
+						  <el-table-column align="left" label="码包" prop="码包" width="100" />
+						  <el-table-column align="left" label="主电表" prop="主电表"  width="100"/>
+						  <el-table-column align="left" label="辅电表" prop="辅电表" width="100" />
+						  <el-table-column align="left" label="色度数" prop="色度数" width="100" />
                         </el-table>
                         </el-tab-pane>
             
@@ -270,16 +258,20 @@
                                   :header-cell-style="{ padding: '0px' }"
                                   :show-overflow-tooltip="true"
                                   highlight-current-row="true"
-                                  style="width: 100%;height: 400px" border tooltip-effect="dark" :data="jstableData" row-key="ID" @selection-change="handleSelectionChange">
+                                  style="width: 100%;height: 400px" border tooltip-effect="dark" :data="JYData" row-key="ID" @selection-change="handleSelectionChange">
             <!--              <el-table-column type="selection" width="55" />-->
-                          <el-table-column align="left" label="工单编号" prop="序号"  width="120"/>
-                          <el-table-column align="left" label="印件号" prop="适用工序" width="120" />
-                          <el-table-column align="left" label="工序名称" prop="备注" width="330" />
-                          <el-table-column align="left" label="检验项目" prop="文件类型" width="120"/>
-                          <el-table-column align="left" label="12:39" prop="关联产品"  width="100"/>
-                          <el-table-column align="left" label="13:08" prop="建档用户" width="100"/>
-                          <el-table-column align="left" label="13:25" prop="建档日期" width="100" />
-                          <el-table-column align="left" label="14:31" prop="更新日期" width="100" />
+                          <el-table-column align="left" label="工单编号" prop="工单编号"  width="120"/>
+                          <el-table-column align="left" label="印件号" prop="印件号" width="120" />
+                          <el-table-column align="left" label="工序名称" prop="工序名称" width="330" />
+                          <el-table-column align="left" label="检验项目" prop="检验项目" width="120"/>
+                          <el-table-column
+                             v-for="time in columnNames"
+                             :key="time"
+                             :label="time"
+                             :prop="time"
+                             align="center"
+                             width="120"
+                           ></el-table-column>
                         </el-table>
                         </el-tab-pane>
             
@@ -643,24 +635,25 @@
                   width="80"
                 >
                   
-                 <el-checkbox v-model="checked1" :indeterminate="isIndeterminate" @change="handleCheckAllChange"  ></el-checkbox>
+                 <el-checkbox v-model="dianjianselectData.zc" :indeterminate="isIndeterminate" @change="handleCheckAllChange"  ></el-checkbox>
                 
                 </el-table-column>
                 <el-table-column
                   label="异常"
                   width="80"
                 >
-                  <el-checkbox v-model="checked2" :indeterminate="isIndeterminate" @change="handleCheckAllChange"></el-checkbox>
+                  <el-checkbox v-model="dianjianselectData.yc" :indeterminate="isIndeterminate" @change="handleCheckAllChange"></el-checkbox>
                 </el-table-column>
                 <el-table-column
                   label="备注说明"
                   width="180"
                 />
                 <el-table-column
+				  v-slot="scope"
                   label="不检测" 
                   width="80"
                 >
-                   <el-checkbox v-model="checked3" :indeterminate="isIndeterminate" @change="handleCheckAllChange" ></el-checkbox>
+                   <el-checkbox v-model="scope.row.notjc" :indeterminate="isIndeterminate" @change="handleCheckAllChange" ></el-checkbox>
                 </el-table-column>
               </el-table>
 			  <el-row :gutter="20">
@@ -672,6 +665,128 @@
           </div>
         </el-dialog>
 		
+		<el-dialog
+		  v-model="yinbanVisible"
+		  title="选择"
+		  destroy-on-close
+		  width="1300px"
+		  style="height: 110%;"
+		>
+		  <el-row :gutter="0">
+		    <el-col :span="4">
+		      <el-form-item label="工单编号" prop="id">
+		        <el-input v-model="formData.sczl_gdbh" :clearable="true" placeholder="2023.12.14" />
+		      </el-form-item>
+		    </el-col>
+		    <el-col :span="20">
+		      <el-row :gutter="20">
+		        <el-col :span="5">
+		          <el-input v-model="formData.sczl_bzdh" :clearable="true" placeholder="ZT01733" />
+		        </el-col>
+		      </el-row>
+		    </el-col>
+		  </el-row>
+		
+		  <div style="display: flex;">
+		    <div style="flex: 1;">
+		      <el-aside width="250px" style="margin: 0;">
+		        <div class="JKWTree-tree" style="height: 100%; border-right: 1px solid #ebeef5;">		          
+		          <el-tree :data="yinbantreeData" :props="defaultProps" highlight-current="true"
+		            @node-click="yinbanNodeClick" @node-dblclick="handleNodeDoubleClick"></el-tree>
+		        </div>
+		      </el-aside>
+		    </div>
+		    <div style="flex: 1; margin: 0;">
+		      <el-table
+		        tooltip-effect="dark"
+		        :data="yinbanselectData"
+		        row-key="ID"
+		        highlight-current-row="true"
+		        border  @row-click="dianjianhandle"
+		        style="width:1000px; height:400px;"
+		        @row-dblclick="handleSelectClick"
+		        :row-class-name="rowClassName"
+		      >
+		        <el-table-column
+		          prop="存货编码"
+		          label="存货编码"
+		          width="180"
+		        />
+		        <el-table-column
+		          prop="存货名称"
+		          label="存货名称"
+		          width="180"
+		        />
+		        
+		        <el-table-column
+				  prop="印版名称"
+		          label="印版名称"
+		          width="180"
+		        />
+				<el-table-column
+				  prop="供方批号"
+				  label="供方批号"
+				  width="180"
+				/>
+				<el-table-column
+				  prop="制造日期"
+				  label="制造日期"
+				  width="180"
+				/>
+				
+				<el-table-column
+				  prop="印数"
+				  label="印数"
+				  width="180"
+				/>
+				<el-table-column
+				  prop="印版类别"
+				  label="印版类别"
+				  width="180"
+				/>
+				<el-table-column
+				  prop="客户编号"
+				  label="客户编号"
+				  width="180"
+				/>
+				
+				<el-table-column
+				  prop="客户名称"
+				  label="客户名称"
+				  width="180"
+				/>
+				<el-table-column
+				  prop="产品编号"
+				  label="产品编号"
+				  width="180"
+				/>
+				<el-table-column
+				  prop="产品名称"
+				  label="产品名称"
+				  width="180"
+				/>
+				
+				<el-table-column
+				  prop="点检方法"
+				  label="备注说明"
+				  width="180"
+				/>
+				<el-table-column
+				  prop="点检方法"
+				  label="备注说明"
+				  width="180"
+				/>
+		        
+		      </el-table>
+			  <!-- <el-row :gutter="20">
+			    <el-col :span="20">			      
+			        <el-input v-model="pandingfangfa"  style="height: 50px;" :clearable="true"  />			      
+			    </el-col>
+			  </el-row> -->
+		    </div>
+		  </div>
+		</el-dialog>
+		
         </el-main>
 
       </el-container>
@@ -702,7 +817,20 @@ import {
   facilityTeam,
   facilityMachineList,
   facilitySpotCheckItem,
-  facilityInspectionItem
+  facilityInspectionItem,
+  reportProduceInfo,
+  reportName,
+  reportInfo,
+  reportMachineMac,
+  facilityWorklist,
+  setProcessStatus,
+  submitDailyProduction,
+  facilityDetail,
+  inspectionRecord,
+  getYg,
+  facilityProcedure,
+  facilityPrintGetTab,
+  facilityPrintDetail
 } from '@/api/jixiaoguanli/jitairibaobiao'
 
 import {
@@ -722,8 +850,15 @@ let checked2=ref(false)
 let checked3=ref(false)
 const detailData = reactive([])
 const treeData=ref([])
+const yinbantreeData=ref([])
 let  dianjiantreeData;
 let JTMC=ref()
+let productCode=ref(104601001)
+const sbzyData = reactive([])
+const FPData = reactive([])
+const CLMXData = reactive([])
+let JYData = reactive([])
+const selectData = ref([])
 const handleNodeClick = (nodeData,node) => {
   //存放当前节点的nodeId
    if (nodeData.level === 1) {
@@ -743,11 +878,12 @@ const FacilityProduction = async () => {
   if (response.code === 0) {
 	console.log(response)
 	// 填充formData对象的基本字段
-	    formData.value.工单编号 = response.data.工单编号;
-	    formData.value.印件编号 = response.data.印件编号;
-	    formData.value.工序名称 = response.data.工序名称;
-	    formData.value.产品名称 = response.data.产品名称;
-	
+	    formData.value.工单编号 = response.data[0].工单编号;
+	    formData.value.印件编号 = response.data[0].印件号;
+	    formData.value.工序名称 = response.data[0].工序名称;
+	    formData.value.产品名称 = response.data[0].产品名称;
+	    FacilityTeam(JTMC)
+		
 	       // 填充sczl_bh和sczl_name字段
 	        for (let i = 1; i <= 10; i++) {
 	          const sczl_bh = `sczl_bh${i}`;
@@ -767,13 +903,97 @@ const FacilityProduction = async () => {
 				// console.log(sczl_name)
 	          }
 	        }
-	    
 	        // 输出填充后的formData对象
 	        // console.log(formData.value);
   }
   // getTableData()
 }
 
+//设备工作清单
+const FacilityWorklist = async () => {
+  const response = await facilityWorklist({machine:JTMC});
+  if (response.code === 0) {
+	console.log(response)
+	sbzyData.splice(0, sbzyData.length, ...response.data);
+	const res = await facilityProcedure({ Gd_gdbh: sbzyData[0]['工单编号|质量信息'].substring(0, 7) })
+	console.log(res)
+	if (res.code === 0) {
+	    selectData.value = res.data
+	}
+  }
+}
+//检验记录
+const InspectionRecord = async () => {
+	console.log(formData.value.班组)
+  const response = await inspectionRecord({machine:JTMC,Gd_gdbh:formData.value.工单编号,team:formData.value.班组});
+  console.log(response)
+  if(response.code==0){
+	 // 提取 inspectiontime 作为列名
+	        // Extract inspectiontime as columnNames
+	  columnNames = response.data.inspectiontime;
+
+	  // Populate drzcData with row data
+	  for (const key in response.data) {
+		if (key !== 'inspectiontime') {
+		  const item = response.data[key];
+		  const rowData = {
+			'工单编号': item['工单编号'],
+			'印件号': item['印件号'],
+			'工序名称': item['工序名称'],
+			'检验项目': item['检验项目']
+		  };
+
+		  // Initialize time columns with '—'
+		 columnNames.forEach(time => {
+			rowData[time] = '';
+		  });
+
+		  // Split inspectresult and fill the corresponding time columns
+		  const results = item['inspectresult'].split(',');
+		  results.forEach(result => {
+			if (columnNames.includes(result)) {
+			  rowData[result] = '√';
+			}else{rowData[result] = ''}
+		  });
+
+		  // Add the row data to drzcData
+		  JYData.push(rowData);
+		}
+	  }
+	  console.log(JYData);
+  }
+}
+//当班产量明细
+const FacilityDetail = async () => {
+  const response = await facilityDetail({ machine: JTMC, Gd_gdbh: formData.value.工单编号, team: formData.value.班组 });
+  if (response.code === 0) {
+    console.log(response);
+    CLMXData.splice(0, CLMXData.length, ...Object.values(response.data));
+  }
+};
+//员工编号回车事件
+const getygsubmit = (event, inputName) => {
+
+	  console.log(inputName)
+	 
+		  let combinedString = 'sczl_bh' + inputName;
+		   console.log(combinedString)
+		  //  let variableName = 'sczl_gdbh'+inputName;
+		   let variableValue = eval('formData3.value.' + combinedString);
+		   console.log(variableValue)
+		   GetYg(variableValue,inputName)  
+}
+//获取员工信息
+const GetYg = async (value,inputName) => {
+  const response = await getYg({sczl_bh:value});
+  console.log(response) 
+  if (response.code === 0) {
+	console.log(response.data.ygxm) 
+	let Bname = 'sczl_name' + inputName;
+	formData3.value[Bname]=response.data.ygxm
+	// console.log(formData.value[Bname])
+  }
+}
 
 // 验证规则
 const rule = reactive({
@@ -917,6 +1137,44 @@ function ondianjian() {
   });
   
 }
+
+const onyinban = async() => {
+	const res = await facilityPrintGetTab({productCode:productCode.value})
+	if(res.code===0){
+		yinbantreeData.value=[{
+			label:'产品印版库',
+			children:res.data.map(item=>({
+			label:item.印版分类,
+			code:item.编号
+		}))
+		}]
+		console.log(res.data.map(item=>({
+			label:item.印版分类,
+			code:item.编号
+		})))
+		yinbanVisible.value = true;
+	}
+}
+// function onyinban() {
+	
+//   getSpotCheckItem(productCode).then(treeData  => {
+//     if (treeData) {
+//       // 如果获取成功,treeData 就是我们需要的树形结构数据
+//       dianjiantreeData = treeData;
+//       console.log('222');
+//       console.log(dianjiantreeData);
+//       // 使用 nextTick 来确保在更新 dianjianVisible 后立即刷新视图
+//       nextTick(() => {
+//         dianjianVisible.value = true;
+//       });
+//       // 这里可以处理treeData,例如将其赋值给某个状态管理变量或者用于渲染界面
+//     } else {
+//       // 如果获取失败,则treeData为null
+//       console.log('获取巡检项目树形结构数据失败');
+//     }
+//   });
+  
+// }
 //获取设备点检->检验项目
 const FacilityInspectionItem = async (value) => {
   try {
@@ -924,8 +1182,13 @@ const FacilityInspectionItem = async (value) => {
     const response = await facilityInspectionItem({ unitName: value });
     // 检查接口返回的状态码
     if (response.code === 0) {
-     console.log(response)
-	 dianjianselectData.splice(0, dianjianselectData.length, ...response.data)
+	 dianjianselectData.splice(0, dianjianselectData.length, ...response.data.map(item=>{
+		 item.notjc=true;
+		 item.zc=true;
+		 item.yc=true;
+		 return item
+	 }))
+	 console.log(dianjianselectData)
     }
   } catch (error) {
     // 捕获并打印异常
@@ -934,8 +1197,27 @@ const FacilityInspectionItem = async (value) => {
   }
 };
 
+//机台印版领用->右侧详情
+const facilityPrintDetailItem = async (value) => {
+  try {
+    // 调用接口获取巡检项目数据
+    // const response = await facilityPrintDetail({ workOrder: formData.value.工单编号,code:value,productCode:productCode.value });
+	const response = await facilityPrintDetail({ workOrder: '2312165',code:'0521',productCode:'104601001' });
+    // 检查接口返回的状态码
+    if (response.code === 0) {
+     console.log(response)
+	 yinbanselectData.value=response.data
+    }
+  } catch (error) {
+    // 捕获并打印异常
+    console.error("获取数据出错:" + error);
+    return null;
+  }
+};
+
 //树形结构单机
 const dianjianselectData = reactive([])
+const yinbanselectData = ref([])
 const dianjianNodeClick = (node, check, nodeData) => {
   if (node.children && node.children.length > 0) {
     // 点击的是父节点,且有子节点
@@ -947,6 +1229,17 @@ const dianjianNodeClick = (node, check, nodeData) => {
      FacilityInspectionItem(node.label)
   }
 };
+const yinbanNodeClick = (node, check, nodeData) => {
+  if (node.children && node.children.length > 0) {
+    // 点击的是父节点,且有子节点
+    // 执行相应的父节点单击事件处理逻辑
+    // 这里可以添加你想要的处理逻辑,比如展开/折叠节点等
+  } else {
+    // 点击的是子节点,或者没有子节点
+    // 执行相应的子节点单击事件处理逻辑
+     facilityPrintDetailItem(node.code)
+  }
+};
 let pandingfangfa=ref()
 //检验项目单击
 const dianjianhandle = async (val, row) => {
@@ -1023,8 +1316,52 @@ const getSpotCheckItem = async (machineName) => {
 const FacilityTeam = async (value) => {
   const response = await facilityTeam({ machine: value });
   if (response.code === 0) {
-    console.log(response);
+	formData.value.班组 = response.data[0]['班组号'];
+	if(response.data[0][2]){
+		// console.log(response.data[0][2].split(' '));
+		for (let i = 1; i <= 3; i++) {
+		  const sczl_bh = `sczl_bh${i}`;
+		  const sczl_name = `sczl_name${i}`;
+		  formData.value[sczl_bh] = response.data[0][i-1].split(' ')[0];
+		  formData.value[sczl_name] = response.data[0][i-1].split(' ')[1];
+		 
+		}
+	}
+	if(response.data[0][0]){
+		// console.log(response.data[0][2].split(' '));
+		for (let i = 1; i <= 1; i++) {
+		  const sczl_bh = `sczl_bh${i}`;
+		  const sczl_name = `sczl_name${i}`;
+		  formData.value[sczl_bh] = response.data[0][i-1].split(' ')[0];
+		  formData.value[sczl_name] = response.data[0][i-1].split(' ')[1];
+		 
+		}
+	}
+	if(response.data[0][1]){
+		// console.log(response.data[0][2].split(' '));
+		for (let i = 1; i <= 2; i++) {
+		  const sczl_bh = `sczl_bh${i}`;
+		  const sczl_name = `sczl_name${i}`;
+		  formData.value[sczl_bh] = response.data[0][i-1].split(' ')[0];
+		  formData.value[sczl_name] = response.data[0][i-1].split(' ')[1];
+		 
+		}
+	}
+	if(response.data[0][3]){
+		// console.log(response.data[0][2].split(' '));
+		for (let i = 1; i <= 4; i++) {
+		  const sczl_bh = `sczl_bh${i}`;
+		  const sczl_name = `sczl_name${i}`;
+		  formData.value[sczl_bh] = response.data[0][i-1].split(' ')[0];
+		  formData.value[sczl_name] = response.data[0][i-1].split(' ')[1];
+		 
+		}
+	}
 
+	
+	FacilityWorklist()
+	InspectionRecord()
+	FacilityDetail()
     // 清空 bzData 数组
     bzData.splice(0, bzData.length);
 
@@ -1035,6 +1372,8 @@ const FacilityTeam = async (value) => {
 
     // 将更新后的数据添加到 bzData 数组
     bzData.push(...updatedData);
+	FPData.push(...updatedData)
+	return 1
   }
 };
 //班组维护
@@ -1239,6 +1578,13 @@ const updateCompanyFunc = async(row) => {
     }
 }
 
+const yjupdateCompanyFunc = async(row) => {
+    const res = await facilityProcedure({ Gd_gdbh: row['工单编号|质量信息'].substring(0, 7) })
+	console.log(res)
+    if (res.code === 0) {
+        selectData.value = res.data
+    }
+}
 
 // 删除行
 const deleteCompanyFunc = async (row) => {
@@ -1258,6 +1604,7 @@ const deleteCompanyFunc = async (row) => {
 // 弹窗控制标记
 const dialogFormVisible = ref(false)
 const dianjianVisible = ref(false)
+const yinbanVisible = ref(false)
 // 查看详情控制标记
 const detailShow = ref(false)
 const bzData = reactive([])