liuhairui 1 年之前
父节点
当前提交
cc23aebe01

+ 8 - 0
src/api/yunyin/yunying.js

@@ -793,6 +793,14 @@ export const Procedure = (params) => {
         params
     })
 }
+//获取开数联数
+export const getCouplet = (params) => {
+    return service({
+        url: '/mes_server/work_order/getCouplet',
+        method: 'get',
+        params
+    })
+}
 //班组人员及分配比例
 export const Team = (params) => {
     return service({

+ 88 - 91
src/view/performance/chejianbaogong.vue

@@ -16,7 +16,6 @@
 			<el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="oncomplaints" >客诉记录</el-button>
 		</div>
 		</header>
-
     <el-container>
       <!-- <el-aside width="200px">
         <div class="JKWTree-tree">
@@ -28,23 +27,12 @@
 <!--        <el-header>dd</el-header>-->
         <el-main>
 
-
 <div class="gva-search-box" style=" overflow: hidden; padding: 0; margin-top:20px;display: flex;">
 			<div style="flex: 1; border: 0px magenta solid; margin: 0; padding: 0; margin-left: 20px; margin-top: 20px; color: red;">
-<!--						  <el-form-item label="工单编号" prop="name">-->
-<!--							<el-row :gutter="24">-->
-<!--							  <el-col :span="6">-->
-<!--								<el-input v-model="formData.工单编号"  placeholder="" />-->
-<!--							  </el-col>-->
-<!--							  <el-col :span="18">-->
-<!--								<el-input v-model="formData.产品名称"  placeholder="" />-->
-<!--							  </el-col>-->
-<!--							</el-row>-->
-<!--						  </el-form-item>-->
               <el-row :gutter="20">
-                <el-col :span="7">
-                  <el-form-item label="机台号" prop="id" class="zy-label">
-                    <el-input v-model="formData.机台号"  placeholder="" />
+                <el-col :span="5">
+                  <el-form-item label="机台号" prop="id" label-width="60" class="zy-label">
+                    <el-input v-model="formData.机台号"  placeholder=""/>
                   </el-form-item>
                 </el-col>
                 <el-col :span="8">
@@ -52,7 +40,7 @@
                     <el-input v-model="formData.工单编号"  placeholder=""  />
                   </el-form-item>
                 </el-col>
-                <el-col :span="7">
+                <el-col :span="10">
                   <el-form-item label=" "prop="name">
                     <el-input v-model="formData.产品名称"  placeholder="" />
                   </el-form-item>
@@ -95,42 +83,26 @@
 
 	<div style="flex: 1; border: 0px lawngreen solid; margin: 0; padding: 0; overflow: hidden;">
 
-	 <el-table
-	   tooltip-effect="dark"
-	   :data="selectData"
-	   row-key="ID"
-	   highlight-current-row="true"
-	   border
-
-      :row-style="{ height: '20px'}"
-      :cell-style="{ padding: '0px'}"
-	  :header-row-style="{ height: '20px'}"
-	   style="width:100%;height: 30vh; "
-	   @row-dblclick="handleSelectClick"
-	 >
-	   <el-table-column
-	     prop="process"
-	     label="印件及工序"
-	     width="480"
-	   />
-	   <el-table-column
-	     prop="completed"
-	     label="已完成板数"
-	     width="470"
-	   />
+	 <el-table tooltip-effect="dark" :data="selectData" row-key="ID"
+	   highlight-current-row="true" border
+      :row-style="{ height: '20px'}" :cell-style="{ padding: '0px'}"
+	  :header-row-style="{ height: '20px'}" style="width:100%;height: 30vh;"  @row-dblclick="handleSelectClick" >
+	   <el-table-column prop="process" label="印件及工序"width="480" />
+	   <el-table-column prop="completed" label="已完成板数" width="470" />
 	 </el-table>
 	</div>
 
 </div>
           <div class="gva-table-box" style="margin-top: 20px;">
             <el-tabs v-model="activName" type="card" @tab-click="duohandleClick"   >
-			<el-tab-pane label="设备作业清单" @click="showTable('印件资料')" name="first" style="font-size: 14px;">
+			<el-tab-pane label="设备作业清单" @click="showTable('设备作业清单')" name="first"  :class="{ 'active-tab': activeTab === 'first' }" style="font-size: 16px;">
 				<el-table ref="multipleTable"
 						:show-overflow-tooltip="true"
 						highlight-current-row="true"
 						:row-style="{ height: '40px' }"
 						:cell-style="{ padding: '0px' }" :header-row-style="{ height: '40px' }"
 						:header-cell-style="{ padding: '0px' }"
+            @contextmenu.prevent="yjonRightClick"
 						@row-click="yjupdateCompanyFunc"
 						style="width: 100%;height: 330px;color:purple;font-weight: bold;" border tooltip-effect="dark" :data="sbzyData" row-key="ID" @selection-change="handleSelectionChange">
 <!--                <el-table-column type="selection" width="55" />-->
@@ -149,12 +121,13 @@
 			</el-tab-pane>
 
 
-                        <el-tab-pane label="班组人员及分配比例" @click="showTable('工艺资料')" name="second">
+        <el-tab-pane label="班组人员及分配比例" @click="showTable('班组人员及分配比例')" name="second">
 						  <el-table ref="multipleTable"
 									:show-overflow-tooltip="true"
 									:row-style="{ height: '40px' }"
 									:cell-style="{ padding: '0px' }" :header-row-style="{ height: '40px' }"
 									:header-cell-style="{ padding: '0px' }"
+                        @contextmenu.prevent="bzonRightClick"
 									@row-dblclick="gyupdateCompanyFunc"
 									:row-class-name="rowClassStyle"
 									:cell-class-name="bzryplanUsageCellClass"
@@ -175,7 +148,7 @@
 						  </el-table>
 						</el-tab-pane>
 
-                        <el-tab-pane label="当班产量明细" @click="showsTable('印版资料')" name="third">
+                        <el-tab-pane label="当班产量明细" @click="showsTable('当班产量明细')" name="third">
                         <el-table ref="multipleTable"
                                   highlight-current-row="true"
                                   :show-overflow-tooltip="true"
@@ -210,7 +183,7 @@
                         </el-table>
                         </el-tab-pane>
 
-                        <el-tab-pane label="检验记录" @click="showTable('技术资料附件')" name="fourth">
+                        <el-tab-pane label="检验记录" @click="showTable('检验记录')" name="fourth">
                         <el-table ref="multipleTable"
                                   :row-style="{ height: '40px' }"
                                   :cell-style="{ padding: '0px'}" :header-row-style="{ height: '40px' }"
@@ -2171,6 +2144,7 @@ import {
 
 import {
   EquipmentSchedulingEdit,
+  Procedure,
   teamDel, workOrderListDetail
 } from "@/api/yunyin/yunying";
 
@@ -2377,11 +2351,11 @@ const remodelDetail = async (val) => {
 }
 const handleNodeClick = (nodeData,node) => {
   //存放当前节点的nodeId
-  if(nodeData.level === 1){
-	  console.log('1')
-  }else{
-	  console.log('2')
-  }
+  // if(nodeData.level === 1){
+	//   console.log('1')
+  // }else{
+	//   console.log('2')
+  // }
   //  if (nodeData.level === 1) {
   //       console.log(node.label); // 第一级节点
   //     } else if (nodeData.level === 2) {
@@ -2487,10 +2461,9 @@ const FacilityWorklist = async () => {
 			formData.value.productCode=item.产品代号
 		}
 	})
-	selectData.value=[]
-	const res = await facilityProcedure({ Gd_gdbh: sbzyData[0]['工单编号|质量信息'].substring(0, 7) })
-	// formData.value.productCode= response.data[0]['产品代号']
-	// console.log(res)
+	  selectData.value=[]
+    const res = await facilityProcedure({ Gd_gdbh: formData.value.工单编号 })
+  	console.log(res)
 	if (res.code === 0) {
 	    selectData.value = res.data
 	}
@@ -2616,7 +2589,40 @@ const chanliangEdits = async() => {
     })
   }
 }
+//班组人员及分配比例单机
+const clickybupdate = async (row) => {
+  console.log('班组人员及分配比例单机')
+  // ElMessageBox.confirm('确定切换当前班组人员为工作班组人员吗?', '提示', {
+  //     confirmButtonText: '确定',
+  //     cancelButtonText: '取消',
+  //     type: 'warning'
+  // }).then(() => {
+  //         setTeams(row)
+  //     })
+  // const response = await facilityWorklist({machine:JTMC});
+  // if (response.code === 0) {
+  //   sbzyData.splice(0, sbzyData.length, ...response.data);
+  //   // formData.value.productCode= response.data[0]['产品代号']
+  //   response.data.map(item=>{
+  //     if(item['工单编号|质量信息'].substring(0, 7)==formData.value.工单编号){
+  //       formData.value.productCode=item.产品代号
+  //     }
+  //   })
+  //   selectData.value=[]
+  //   const res = await facilityProcedure({ Gd_gdbh: sbzyData[0]['工单编号|质量信息'].substring(0, 7) })
+  //   // formData.value.productCode= response.data[0]['产品代号']
+  //   // console.log(res)
+  //   if (res.code === 0) {
+  //     selectData.value = res.data
+  //   }
+  // }
+}
+//班组人员及分配比例双击
 const gyupdateCompanyFunc = async (row) => {
+  console.log('班组人员及分配比例双击')
+}
+//班组人员及分配比例右键
+const bzonRightClick = async (row) => {
   ElMessageBox.confirm('确定切换班组吗?', '提示', {
     confirmButtonText: '确定',
     cancelButtonText: '取消',
@@ -2625,6 +2631,7 @@ const gyupdateCompanyFunc = async (row) => {
     SetMachineTeams(row)
   })
 }
+//数据接口调用
 const SetMachineTeams = async(row) => {
   const res = await setMachineTeam({
     machine: JTMC.split("#")[0],
@@ -2645,41 +2652,11 @@ const SetMachineTeams = async(row) => {
     })
   }
 }
-const clickybupdate = async (row) => {
 
-	ElMessageBox.confirm('确定切换当前班组人员为工作班组人员吗?', '提示', {
-	    confirmButtonText: '确定',
-	    cancelButtonText: '取消',
-	    type: 'warning'
-	}).then(() => {
-	        setTeams(row)
-	    })
-  // const response = await facilityWorklist({machine:JTMC});
-  // if (response.code === 0) {
-  //   sbzyData.splice(0, sbzyData.length, ...response.data);
-  //   // formData.value.productCode= response.data[0]['产品代号']
-  //   response.data.map(item=>{
-  //     if(item['工单编号|质量信息'].substring(0, 7)==formData.value.工单编号){
-  //       formData.value.productCode=item.产品代号
-  //     }
-  //   })
-  //   selectData.value=[]
-  //   const res = await facilityProcedure({ Gd_gdbh: sbzyData[0]['工单编号|质量信息'].substring(0, 7) })
-  //   // formData.value.productCode= response.data[0]['产品代号']
-  //   // console.log(res)
-  //   if (res.code === 0) {
-  //     selectData.value = res.data
-  //   }
-  // }
-}
 const setTeams = async(row) => {
-
-
-
 	formData.value.班组Id=row.ID
 	BZMC.value=row.班组号
 	console.log(row)
-	let sczl_bhkey=''
 	let sczl_namekey=''
 	for (let i = 1; i <= 10; i++) {
 	  sczl_bhkey = `sczl_bh${i}`
@@ -4815,19 +4792,28 @@ const updateCompanyFunc = async(row) => {
     }
 }
 
+//设备作业清单单机
 const yjupdateCompanyFunc = async(row) => {
-	ElMessageBox.confirm('确定切换当前工单为工作工单吗?', '提示', {
-	    confirmButtonText: '确定',
-	    cancelButtonText: '取消',
-	    type: 'warning'
-	}).then(() => {
-	        setMachineTeams(row)
-	    })
+  console.log(row)
+  console.log("通过 "+row['工单编号|质量信息'].replace(/\|$/, '')+" 获取右上角数据")
+  const res = await Procedure({ Gd_gdbh: row['工单编号|质量信息'].replace(/\|$/, '') })
+  console.log(res)
+  selectData.value = res.data;
+}
+//设备作业清单右键
+const yjonRightClick = async(row) => {
+  console.log(row)
+  ElMessageBox.confirm('确定切换当前工单为工作工单吗?', '提示', {
+    confirmButtonText: '确定',
+    cancelButtonText: '取消',
+    type: 'warning'
+  }).then(() => {
+    setMachineTeams(row)
+  })
 }
 
 const setMachineTeams = async(row) => {
 	console.log(row.UniqId)
-	 console.log(row)
     const res = await setMachineTeam({
 			machine: JTMC.split("#")[0],
 			order:row['工单编号|质量信息'].split('|')[0],
@@ -5097,10 +5083,14 @@ const blplanUsageCellClass = ({row, column, rowIndex, columnIndex}) =>{
 :deep(.el-table__body tr.current-row)>td {
   background: #ff80ff !important;
 }
+/*input*/
 ::v-deep .el-input__inner {
   color: #000000 !important;
   font-weight: bold;
 }
+::v-deep .el-input__wrapper {
+  border: 1px #00000b8f solid !important;
+}
 ::v-deep .el-form-item__label {
   color: #000000 !important;
   font-weight: bold;
@@ -5114,12 +5104,19 @@ const blplanUsageCellClass = ({row, column, rowIndex, columnIndex}) =>{
   width: 100px;
   height: 85px;
 }
+::v-deep .el-tabs__item {
+  /*background-color: #4d70ff;*/
+  /*color: white;*/
+}
 :deep(.plan-usage-low div) {
   color: blue !important;
   font-size: 16px;
   font-weight: bold;
 }
-
+::v-deep  .el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
+  color: white;        /* 文字颜色 */
+  background-color: #4d70ff; /* 背景颜色 */
+}
 
 
 </style>

+ 2 - 1
src/view/yunyin/chanpinziliao/chanpinziliao.vue

@@ -3398,7 +3398,8 @@ const addgyenterDialog = async () =>{
   };
   console.log(formattedData)
   // return false;
-  const res=addProsductGyInfo(formattedData)
+  const res= await addProductGyInfo(formattedData)
+  console.log(res)
   console.log(_product_code.value + "--->工艺添加后获取产品编号")
   res.then(result => {
     if(result.code===0){

+ 18 - 10
src/view/yunyin/shengchanguanli/components/addGongYi.vue

@@ -163,7 +163,7 @@ import {
   capacityList,
   ProcessDetailAdd,
   workOrderListDetail,
-  getLossCode,
+  getLossCode, getCouplet,
 } from '@/api/yunyin/yunying'
 import { ElMessage } from 'element-plus'
 const form = reactive({})
@@ -184,6 +184,12 @@ _username.value = userStore.userInfo.userName + '/' + userStore.userInfo.nickNam
 //新增工艺资料弹窗 键盘 input框跳转
 const add_gyzlent = async (event,id1,id2,id3) => {
   if (id2==='印件编号' && event.key==='Tab' || id2 === '印件编号' && event.key=== 'Enter') {
+    console.log(id.value)
+    console.log(form['yjno'])
+    const response = await getCouplet({ gdbh:id.value,yjno:form['yjno']});
+    console.log(response)
+    form['开数'] = response.data['开数']
+    form['联数'] = response.data['联数']
     if(yjList.value !== undefined){
       const node = yjList.value.find(item => item.no ===form['yjno'])
       if (! node) {
@@ -207,7 +213,6 @@ const add_gyzlent = async (event,id1,id2,id3) => {
     }
   }
   if (id2 === '工序名称' &&  event.key==='Tab' || event.key==='Enter') {
-    console.log(213)
     if(form['工艺名称'] === undefined){
       form['工艺名称'] = '';
     }
@@ -242,15 +247,18 @@ const add_gyzlent = async (event,id1,id2,id3) => {
 const getSHListdata = ref([]);
 const _shdh = ref('');
 const InSH = async (value) => {
-  const response = await getLossCode({ code:form['工艺名称']});
-  console.log(response)
-  if(response.code===0){
-    form['shdh']=response.data[0].sys_bh
-    // form.工序损耗名称= node.sys_mc
-    form['工序损耗名称'] = `${response.data[0].sys_mc} ${form['工序名称']}`;
-    form.损耗系数='1.00'
-    form.难度系数='1.00'
+  if(form['工艺名称']){
+    const response = await getLossCode({ code:form['工艺名称']});
+    console.log(response)
+    if(response.code===0){
+      form['shdh']=response.data[0].sys_bh
+      // form.工序损耗名称= node.sys_mc
+      form['工序损耗名称'] = `${response.data[0].sys_mc} ${form['工序名称']}`;
+      form.损耗系数='1.00'
+      form.难度系数='1.00'
+    }
   }
+
 }
 //填充树形结构
 const _getSH = async () => {

+ 17 - 3
src/view/yunyin/shengchanguanli/gongdanziliao.vue

@@ -23,7 +23,7 @@
               <el-button type="primary" icon="edit"   @click="addgd_onclick"   class="bt"   title="新增工单资料">新增工单资料</el-button>
               <el-button type="primary" icon="edit"   @click="addgdyj_onclick"   class="bt" title="新增印件资料">新增印件资料</el-button>
               <el-button type="primary" icon="edit"   @click="addgdgy_onclick"   class="bt" title="新增工艺资料" >新增工艺资料</el-button>
-              <el-button type="primary" icon="edit"   @click="delgdzl_onclick" :disabled="gdSelection === ''"   class="bt" title="新增工艺资料" >工单资料删除</el-button>
+              <el-button type="primary" icon="edit"   @click="delgdzl_onclick" :disabled="gdSelection === ''"   class="bt" title="工单资料删除" >工单资料删除</el-button>
               <el-button type="primary" icon="edit"   @click="delgd_delclick"  :disabled="yjSelection === '' && gySelection === ''"  class="bt" title="选择批量删除(印件资料或工艺资料)"  >删除</el-button>
               <el-button type="primary" icon="edit"   @click="gdtb_onclick"   class="bt" title="工单资料同步" >工单同步</el-button>
             </el-form-item>
@@ -3738,11 +3738,25 @@ const handleSelectionChange = (selection, type) => {
 
 // ===========删除工单资料 ===========
 const delgdzl_onclick = async () => {
+  console.log(gdSelection.value)
   if (gdSelection.value !== '') {
     try {
+      console.log(_Gd_gdbh.value)
       console.log(gdSelection.value)
-      const res1 = await WorkOrderDel({UniqId: ydSelection.value})
-      res1.code === 0 && ElMessage.success('印件资料删除成功')
+      const res1 = await WorkOrderDel({UniqId: gdSelection.value})
+      if(res1.code === 0){
+        ElMessage.success('印件资料删除成功')
+
+        console.log(_Gd_khdh.value)
+        const WorkListdata = await WorkList({Gd_khdh:_Gd_khdh.value,limit:pageSize.value,page:page.value});
+        console.log(WorkListdata)
+        tableData.splice(0,tableData.length,...WorkListdata.data.data);//表格数据
+        total.value =WorkListdata.data.total;//共多少条
+        yjtableData.value = [];
+        gytableData.value = [];
+        bomtableData.value = [];
+      }
+
     } catch(err) {
       ElMessage.error(err)
     }

+ 149 - 145
src/view/yunyin/shengchanguanli/shebeiyunxing.vue

@@ -1,6 +1,5 @@
 <template>
   <div>
-
 	    <header>
 			<el-button type="primary" class="bt" @click="onBZ">班组维护</el-button>
 			<el-button type="primary" class="bt" @click="onzhicheng"  >制程检验</el-button>
@@ -10,8 +9,8 @@
 			<!-- <el-button type="primary" @click="onstatus" >设置机台状态</el-button> -->
 			<el-button type="primary" class="bt" @click="oncomplaints" >客诉记录</el-button>
 			<el-button type="primary" class="bt" @click="onClear" >换型清场</el-button>
-			<el-button type="primary" class="bt" @click="pd_gdprintonClick" >工单打印</el-button>
-			<el-button type="primary" class="bt" @click="gzSel" >员工工资查询</el-button>
+			<el-button type="primary" class="bt" @click="pd_gdprintonClick" >工单打印</el-button>
+			<el-button type="primary" class="bt" @click="gzSel" >员工工资查询</el-button>
 			<el-button type="primary" class="bt" @click="hesuan" v-if="AddType === true">核算参数调整</el-button>
 			<el-button type="primary" icon="edit"   @click="onxzhscsclick"     class="bt" title="修正核算参数">修正核算参数</el-button>
 			<el-button type="primary" class="bt" @click="onADD" v-if="AddType === true">新增</el-button>
@@ -19,9 +18,6 @@
 			<!-- <el-button type="primary" @click="onClear2" >换型清场</el-button> -->
 		</header>
 
-
-
-
     <el-container>
       <layout-sider
         :resize-directions="['right']"
@@ -1966,38 +1962,38 @@
 		  </el-table>
 		</el-dialog>
 
-<el-dialog v-model="gzSelVisible" title="员工工资明细查询"
-		  destroy-on-close fullscreen
-		  style="font-size: 50px;font-weight: bold;"
-		>
+<el-dialog v-model="gzSelVisible" title="员工工资明细查询"
+		  destroy-on-close fullscreen
+		  style="font-size: 50px;font-weight: bold;"
+		>
 			<el-button v-for="ygbh in gz_bzbh" type="primary" @click="gz_ontable(ygbh)">{{ ygbh }}</el-button>
             <!-- 数据展示 -->
-            <el-table ref="gz_multipleTable" style="width: 100%;height: 40vh;padding-top: 5px;" tooltip-effect="dark" :data="gz_tableData" row-key="ID" 
+            <el-table ref="gz_multipleTable" style="width: 100%;height: 40vh;padding-top: 5px;" tooltip-effect="dark" :data="gz_tableData" row-key="ID"
               highlight-current-row="true" border :show-overflow-tooltip="true"
-			   :row-style="{ height: '20px' }" 
+			   :row-style="{ height: '20px' }"
 			   :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
-			   :header-cell-style="{ padding: '0px' }" 
+			   :header-cell-style="{ padding: '0px' }"
 			   >
-			  <el-table-column v-for="column in tableCols1"
-			    :key="column.prop" :prop="column.prop"
-			    :label="column.label" :width="column.width"
-			    show-overflow-tooltip="true" sortable
-			  />  
+			  <el-table-column v-for="column in tableCols1"
+			    :key="column.prop" :prop="column.prop"
+			    :label="column.label" :width="column.width"
+			    show-overflow-tooltip="true" sortable
+			  />
             </el-table>
 		    <!-- 数据展示 -->
 		    <el-table ref="gz_multipleTable2" style="width: 100%;height: 40vh;padding-top: 30px;" tooltip-effect="dark" :data="gz_tableData2" row-key="ID"
-		      highlight-current-row="true" border 
-			  :row-style="{ height: '20px' }"
-			  :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
-			  :header-cell-style="{ padding: '0px' }"
-			  :show-overflow-tooltip="true" 
+		      highlight-current-row="true" border
+			  :row-style="{ height: '20px' }"
+			  :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
+			  :header-cell-style="{ padding: '0px' }"
+			  :show-overflow-tooltip="true"
 			 >
-		  	  <el-table-column v-for="column in tableCols2"
-		  	    :key="column.prop" :prop="column.prop"
-		  	    :label="column.label" :width="column.width"
-		  	    show-overflow-tooltip="true" sortable
+		  	  <el-table-column v-for="column in tableCols2"
+		  	    :key="column.prop" :prop="column.prop"
+		  	    :label="column.label" :width="column.width"
+		  	    show-overflow-tooltip="true" sortable
 		  	  />
-		    </el-table>
+		    </el-table>
 		</el-dialog>
 
 
@@ -2029,7 +2025,7 @@ import {
   getCompanyList
 } from '@/api/company'
 import {
-  EquipmentSchedulingEdit,
+  EquipmentSchedulingEdit, Procedure,
   teamDel
 } from "@/api/yunyin/yunying";
 import {
@@ -2075,11 +2071,12 @@ import {
    ProcessInspectionRecordsItemAdd,
    CoefficientEdit,
    ChromaDataEdit,
-   PrintingModeDataEdit,
-   dailysearch,
+   PrintingModeDataEdit,
+   dailysearch,
    dailygetGzByYgbh,
 } from '@/api/jixiaoguanli/jitairibaobiao'
-import{ AccountingParameter,ProductNameData,AccountingParameterEdit}  from "@/api/yunyin/yunying";
+import{ AccountingParameter,ProductNameData,
+  AccountingParameterEdit}  from "@/api/yunyin/yunying";
 import {
 MachineTeamAdd,
   setMachineTeam,
@@ -2093,7 +2090,7 @@ import { getDictFunc, formatDate, formatBoolean, filterDict, ReturnArrImg, onDow
 import { Layout, LayoutContent, LayoutHeader, LayoutSider } from '@arco-design/web-vue'
 import { ElMessage, ElMessageBox } from 'element-plus'
 import { ref, reactive } from 'vue'
-import { useUserStore } from '@/pinia/modules/user'
+import { useUserStore } from '@/pinia/modules/user'
 import PrintPage from './components/print.vue'
 
 const userStore = useUserStore()
@@ -2102,7 +2099,7 @@ const sys_id='['+userStore.userInfo.userName+'/'+userStore.userInfo.nickName+']'
 defineOptions({
     name: 'Company'
 })
-
+
 const printPageRef = ref()
 const DelType = ref(false)
 const AddType = ref(false)
@@ -2231,7 +2228,7 @@ const GetdialogSbyxgl = async () => {
     		formData.value.印件号 = response.data.印件号;
     		formData.value.工序号 = response.data.工序名称.substring(0,2);
     		formData.value.工序名称 = response.data.工序名称;
-    		formData.value.产品名称 = response.data.产品名称;
+    		formData.value.产品名称 = response.data.产品名称;
 			formData.value.班组成员 = response.data.班组成员;
     		formData.value.班组Id=response.data.班组Id
     		formData.value.machine=JTMC
@@ -2268,102 +2265,102 @@ const GetdialogSbyxgl = async () => {
     }
     FacilityWorklist()
 	onstatus()
-}
-
-
-const gzSelVisible = ref(false)
+}
+
+
+const gzSelVisible = ref(false)
 const gz_tableData = reactive([])
-const gz_tableData2 = reactive([])
-let gz_bzbh = [];
-
-const tableCols1 = [
-  { label: '员工编号', prop: 'bh', width: '105' },
-  { label: '员工姓名', prop: '员工姓名', width: '105' },
-  { label: '日期', prop: 'sczl_rq', width: '120' },
-  { label: '计件工资', prop: '计件工资', width: '105' },
-  { label: '加班工资', prop: '加班工资', width: '105' },
-  { label: '计时时数', prop: '计时时数', width: '105' },
-  { label: '计时工资', prop: '计时工资', width: '135' },
-  { label: '日工资合计', prop: '日工资合计', width: '135' },
-]
-const tableCols2 = [
-  { label: '日期', prop: 'sczl_rq', width: '100' },
-  { label: '工单编号', prop: 'sczl_gdbh', width: '105' },
-  { label: '产品名称', prop: 'Gd_cpmc', width: '120' },
-  { label: '印件及工序', prop: 'sczl_type', width: '120' },
-  { label: '机台', prop: 'sczl_jtbh', width: '87' },
-  { label: '车头产量', prop: '班组车头产量', width: '105' },
-  { label: '计件产量', prop: '计件产量', width: '105' },
-  { label: '补产产量', prop: '补产产量', width: '105' },
-  { label: '核算产量', prop: '核算产量', width: '105' },
-  { label: '达标定额', prop: '达标定额', width: '105' },
-  { label: '千件工价', prop: '千件工价', width: '105' },
-  { label: '计件工资', prop: '个人计件工资', width: '105' },
-  { label: '加班工资', prop: '个人加班工资', width: '105' },
-  { label: '装版工时', prop: '装版工时', width: '120' },
-  { label: '保养工时', prop: '保养工时', width: '105' },
-  { label: '打样工时', prop: '打样工时', width: '105' },
-  { label: '异常停机', prop: '异常停机工时', width: '105' },
-  { label: '补产标准', prop: '补产标准', width: '120' },
-  { label: '分摊比例', prop: 'Rate', width: '105' },
-]
-
-//员工工资查询
-const gzSel = () =>{
-	if(formData.value.班组成员==undefined){
-		ElMessage({ type: 'warning', message: '请先选择机台' });
-		return
-	}
-	if(formData.value.班组成员.length==0){
-		ElMessage({ type: 'warning', message: '未获取到员工' });
-		return
-	}
-	for (let index in formData.value.班组成员) {
-		gz_bzbh[index] = formData.value.班组成员[index]['编号']
-	}
-	gzSelVisible.value=true
-}
+const gz_tableData2 = reactive([])
+let gz_bzbh = [];
+
+const tableCols1 = [
+  { label: '员工编号', prop: 'bh', width: '105' },
+  { label: '员工姓名', prop: '员工姓名', width: '105' },
+  { label: '日期', prop: 'sczl_rq', width: '120' },
+  { label: '计件工资', prop: '计件工资', width: '105' },
+  { label: '加班工资', prop: '加班工资', width: '105' },
+  { label: '计时时数', prop: '计时时数', width: '105' },
+  { label: '计时工资', prop: '计时工资', width: '135' },
+  { label: '日工资合计', prop: '日工资合计', width: '135' },
+]
+const tableCols2 = [
+  { label: '日期', prop: 'sczl_rq', width: '100' },
+  { label: '工单编号', prop: 'sczl_gdbh', width: '105' },
+  { label: '产品名称', prop: 'Gd_cpmc', width: '120' },
+  { label: '印件及工序', prop: 'sczl_type', width: '120' },
+  { label: '机台', prop: 'sczl_jtbh', width: '87' },
+  { label: '车头产量', prop: '班组车头产量', width: '105' },
+  { label: '计件产量', prop: '计件产量', width: '105' },
+  { label: '补产产量', prop: '补产产量', width: '105' },
+  { label: '核算产量', prop: '核算产量', width: '105' },
+  { label: '达标定额', prop: '达标定额', width: '105' },
+  { label: '千件工价', prop: '千件工价', width: '105' },
+  { label: '计件工资', prop: '个人计件工资', width: '105' },
+  { label: '加班工资', prop: '个人加班工资', width: '105' },
+  { label: '装版工时', prop: '装版工时', width: '120' },
+  { label: '保养工时', prop: '保养工时', width: '105' },
+  { label: '打样工时', prop: '打样工时', width: '105' },
+  { label: '异常停机', prop: '异常停机工时', width: '105' },
+  { label: '补产标准', prop: '补产标准', width: '120' },
+  { label: '分摊比例', prop: 'Rate', width: '105' },
+]
+
+//员工工资查询
+const gzSel = () =>{
+	if(formData.value.班组成员==undefined){
+		ElMessage({ type: 'warning', message: '请先选择机台' });
+		return
+	}
+	if(formData.value.班组成员.length==0){
+		ElMessage({ type: 'warning', message: '未获取到员工' });
+		return
+	}
+	for (let index in formData.value.班组成员) {
+		gz_bzbh[index] = formData.value.班组成员[index]['编号']
+	}
+	gzSelVisible.value=true
+}
 // 查询
-const gz_ontable =  (ygbh) => {
-	// 创建一个Date对象
-	var currentDate = new Date();
-	// 获取年份
-	var year = currentDate.getFullYear();
-	// 获取月份(注意,月份从0开始,所以需要加1)
-	var month = currentDate.getMonth() + 1;
-	if (month < 10) {
-	    month = "0" + month;
-	}
+const gz_ontable =  (ygbh) => {
+	// 创建一个Date对象
+	var currentDate = new Date();
+	// 获取年份
+	var year = currentDate.getFullYear();
+	// 获取月份(注意,月份从0开始,所以需要加1)
+	var month = currentDate.getMonth() + 1;
+	if (month < 10) {
+	    month = "0" + month;
+	}
 	var date = year+ "" +month
-  const response = dailysearch({date: date, search: ygbh}).then(response=>{
-	  if (response.code === 0) {
-		  const originalData = response.data;
-		     const summaryData = generateSummaryData(originalData);
-		     // 将合计数据插入到原始数据中
-		     const combinedData = [];
-		     originalData.forEach((item, index) => {
-		       combinedData.push(item);
-		       const nextItem = originalData[index + 1];
-		       if (nextItem==undefined) {
-		         // 如果下一个员工姓名与当前不同,插入合计数据
-		         const currentSummary = summaryData.shift();
-		         combinedData.push(currentSummary);
-		  			 
-		       }
-		     });
-	  	      // 更新表格数据
-	  	      gz_tableData.splice(0, gz_tableData.length, ...combinedData);
-	  }
-  });
-  
-  dailygetGzByYgbh({date:date,code:ygbh}).then(response=>{
-  	  if(response.code==0){
-  	  	   gz_tableData2.splice(0, gz_tableData2.length, ...response.data);
-  	  }
+  const response = dailysearch({date: date, search: ygbh}).then(response=>{
+	  if (response.code === 0) {
+		  const originalData = response.data;
+		     const summaryData = generateSummaryData(originalData);
+		     // 将合计数据插入到原始数据中
+		     const combinedData = [];
+		     originalData.forEach((item, index) => {
+		       combinedData.push(item);
+		       const nextItem = originalData[index + 1];
+		       if (nextItem==undefined) {
+		         // 如果下一个员工姓名与当前不同,插入合计数据
+		         const currentSummary = summaryData.shift();
+		         combinedData.push(currentSummary);
+
+		       }
+		     });
+	  	      // 更新表格数据
+	  	      gz_tableData.splice(0, gz_tableData.length, ...combinedData);
+	  }
+  });
+
+  dailygetGzByYgbh({date:date,code:ygbh}).then(response=>{
+  	  if(response.code==0){
+  	  	   gz_tableData2.splice(0, gz_tableData2.length, ...response.data);
+  	  }
   })
-  
-}
-
+
+}
+
 const generateSummaryData = (data) => {
   const summaryData = [];
   let currentName = null;
@@ -2379,7 +2376,7 @@ const generateSummaryData = (data) => {
       }
       // 创建新的合计数据
       currentSummary = {
-        '员工姓名': name,
+        '员工姓名': name,
 		'日期': 0,
         '计件工资': 0,
         '加班工资': 0,
@@ -2390,7 +2387,7 @@ const generateSummaryData = (data) => {
       currentName = name;
     }
 
-    // 更新合计数据
+    // 更新合计数据
 	currentSummary['日期']++;
     currentSummary['计件工资'] += parseFloat(item['计件工资']);
     currentSummary['加班工资'] += parseFloat(item['加班工资']);
@@ -2415,8 +2412,8 @@ const generateSummaryData = (data) => {
   });
 
   return summaryData;
-};
-
+};
+
 
 
 // const getImagePath = async (machineData.状态) => {
@@ -2458,7 +2455,7 @@ const FacilityProduction = async () => {
 			formData.value.印件号 = response.data.印件号;
 			formData.value.工序号 = response.data.工序名称.substring(0,2);
 			formData.value.工序名称 = response.data.工序名称;
-			formData.value.产品名称 = response.data.产品名称;
+			formData.value.产品名称 = response.data.产品名称;
 			formData.value.班组成员 = response.data.班组成员;
 			formData.value.班组Id=response.data.班组Id
 			formData.value.machine=JTMC
@@ -2763,16 +2760,16 @@ const zhichengNodeClick = (node, check) => {
 		processInspectionRecordsItem()
 	}
 };
-
-
-//工单打印
-const pd_gdprintonClick = () => {
-	if(formData.value.工单编号==''){
-		ElMessage({ type: 'warning', message: '未获取到工单' });
-		return
+
+
+//工单打印
+const pd_gdprintonClick = () => {
+	if(formData.value.工单编号==''){
+		ElMessage({ type: 'warning', message: '未获取到工单' });
+		return
 	}
   printPageRef.value.open(formData.value.工单编号)
-}
+}
 
 const processInspectionRecordsItem = async (value) => {
   const response = await ProcessInspectionRecordsItem({ process: xunchaData.value.gxmc });
@@ -4515,11 +4512,18 @@ const updateCompanyFunc = async(row) => {
 const cpcode=ref('')
 const finishedcode=ref()
 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
-    }
+
+  console.log(row['工单编号|质量信息'].replace(/\|$/, ''))
+  const Procedurelist = await Procedure({ Gd_gdbh: row['工单编号|质量信息'].replace(/\|$/, '') })
+  console.log(Procedurelist)
+  selectData.value = Procedurelist.data;
+
+
+    // const res = await facilityProcedure({ Gd_gdbh: row['工单编号|质量信息'].substring(0, 7) })
+	  // console.log(res)
+    // if (res.code === 0) {
+    //     selectData.value = res.data
+    // }
 	console.log(row)
 	cpcode.value=row.产品代号
     console.log(cpcode)