zck 8 месяцев назад
Родитель
Сommit
964500ea08

+ 20 - 0
src/api/mes/job.js

@@ -351,6 +351,16 @@ export const StaProcessList = (params) => {
     params
   })
 }
+
+//制程异常记录
+export const StaProcessInspection = (params) => {
+  return service({
+    url: '/mes_server/Production_lot/ProcessInspection',
+    method: 'get',
+    params
+  })
+}
+
 //制程异常记录
 export const StaProcessAnomaly = (params) => {
   return service({
@@ -719,6 +729,16 @@ export const getPPkhTab = (params) => {
   })
 }
 
+//印版管理->印版删除
+export const getPPDetaiDel = (params) => {
+  return service({
+    url: '/mes_server/Printing_Plate/PrintDetaiDel',
+    method: 'get',
+    params
+  }) 
+}
+
+
 
 //电化铝领用记录->左侧菜单
 export const getAETab = (params) => {

+ 1 - 1
src/view/equipment/maintenance.vue

@@ -678,7 +678,7 @@ const handleRowClick = async (row, apiFunc, params = {}) => {
       machine: row.设备编号, 
       year: noderq.value,
       sist: row.使用部门,
-      type: yearcode.value === 1 ? '修' : '保养',
+      type: yearcode.value === 1 ? '修' : '保养',
       ...params,
     });
     if (res.code === 0) mxtableData.value = res.data;

+ 20 - 9
src/view/managements/hardversionlibrary.vue

@@ -43,8 +43,9 @@
                         :cell-class-name="gxbgCellClass" id="wltable"
                         highlight-current-row="true" @row-dblclick="updateCompanyFunc"
                         @row-click="tableRowClick" :show-overflow-tooltip="true"
+                        @selection-change="wlmxSelectionChange"
                         >
-               
+               <el-table-column  fixed type="selection" width="30" />
                <el-table-column  sortable align="center" label="存货编码" prop="存货编码"  width="120" />
                <el-table-column  sortable align="center" label="物料名称" prop="物料名称"  width="200" />
                <el-table-column   align="center" label="印版名称" prop="印版名称"  width="200" />
@@ -83,8 +84,7 @@
                         :cell-class-name="gxbgCellClass"
                         highlight-current-row="true" @row-dblclick="updateCompanyFunc2"
                         @row-click="tableRowClick2" :show-overflow-tooltip="true"
-                        @selection-change="wlmxSelectionChange">
-               <el-table-column type="selection" width="30" />
+                        >
                <el-table-column  sortable align="center" label="领用机台" prop="领用机台"  width="120" />
                <el-table-column  sortable align="center" label="领用日期" prop="领用日期"  width="160" />
                <el-table-column  sortable align="center" label="退还日期" prop="退还日期"  width="160" />
@@ -309,7 +309,7 @@
   import { exportExcelFile } from '@/utils/excel'
   import { useUserStore } from '@/pinia/modules/user'
   import {ElMessage,ElMessageBox} from "element-plus";
-  import {getPPTab,getPPList,getPPEdit,getPPDetail,getPPCode,getPPReceive,getPPDelete,getPPkhTab,InventoryCodeData,MNInventoryCodeData} from "@/api/mes/job.js"
+  import {getPPTab,getPPList,getPPEdit,getPPDetail,getPPCode,getPPReceive,getPPDetaiDel,getPPkhTab,InventoryCodeData,MNInventoryCodeData} from "@/api/mes/job.js"
   const userStore = useUserStore()
   const sys_id='['+userStore.userInfo.userName+'/'+userStore.userInfo.nickName+']'
   defineOptions({name: 'Company'})
@@ -483,8 +483,15 @@ getTreeData()
   }
   
     //新增
-  const Plate = reactive({ 
-  })
+    const nameToWorkshop = {
+    '易鹏': '印后车间',
+    '华余峰': '胶印车间',
+    '柴春才': '凹丝印车间'
+    }
+
+    const Plate = reactive({
+    车间: nameToWorkshop[userStore.userInfo.nickName] || '' 
+    })
   const dialogPlateVisible = ref(false)
   const type = ref('create') // 'create' 或 'update'
   const onADD = () => {
@@ -503,7 +510,7 @@ const updateCompanyFunc = async (row) => {
     if (res.code === 0) {
       Object.assign(Plate, res.data)
       Plate.存货名称 = res.data.物料名称
-      Plate.报废日期 = dayjs(Plate.报废日期) 
+      Plate.报废日期 = res.data.报废日期
       Plate.初始印数 = res.data.原始印数
     }
     dialogPlateVisible.value = true
@@ -693,12 +700,13 @@ const dhlenterDialog = async () => {
   const params = {
     code: Plate.存货编码,
     name: Plate.存货名称,
-    desc: Plate.印版备注,
+    desc: Plate.印版备注 || '',
     Manufactur_date: Plate.制造日期 ? dayjs(Plate.制造日期).format('YYYY-MM-DD') : '',
     Scrappe_date: Plate.报废日期 ? dayjs(Plate.报废日期).format('YYYY-MM-DD') : '',
     start_num: Plate.初始印数||'0',
     Assessment_num: Plate.考核印数||'0',
     batch: Plate.供方批号,
+    sist:Plate.车间,
     sys_id: sys_id,
   }
 console.log(params)
@@ -706,6 +714,7 @@ console.log(type.value)
   if (type.value === 'create') {
     console.log('新增')
     params.number = Plate.number
+
     // 新增
     try {
       const response = await getPPEdit(params)
@@ -752,6 +761,7 @@ const initialPlateState = {
 //关闭弹窗
 const dhlcloseDialog = async () => {
   Object.assign(Plate, initialPlateState);
+  _WorkList_page();
   dialogPlateVisible.value = false
 }
 
@@ -780,11 +790,12 @@ const on_delete = async () => {
     })
     
     // 调用删除API,假设是批量删除接口
-    const res = await getPPDelete({ id: selectedIds.value,})
+    const res = await getPPDetaiDel({ UniqID: selectedIds.value,})
     
     if (res.code === 0) {
       ElMessage.success('删除成功')
       // 删除成功后刷新表格数据
+      _WorkList_page();
       // 清空选中
       selectedIds.value = []
     } else {

+ 46 - 6
src/view/quality/orderstatus.vue

@@ -123,8 +123,27 @@
 						    <el-table-column align="left"  label="班组人员10"  width="105"  :formatter="(row) => `${row.sczl_bh10 || ''} ${row.name10 || ''}`"/>
 						  </el-table>
 						</el-tab-pane>
+
+						<el-tab-pane label="制程检验记录"  @click="showTable('制程检验记录')"  name="second">
+						  <el-table tooltip-effect="dark" :data="zcjyjltableData" row-key="ID"
+						    highlight-current-row="true"
+						    :row-style="{ height: '0px' }" :header-cell-style="{ padding: '0px' }"
+						    :cell-style="{ padding: '0px' }" :header-row-style="{ height: '0px' }"
+						    border :show-overflow-tooltip="true" :cell-class-name="planUsageCellClass"
+						    style="width: 100%;height: 65vh" ref="tablzcycjl_gxmc"
+						    @row-dblclick="zcycjlSelectClick">
+						    <el-table-column align="left"  label="流程单号" width="100"	prop="流程单号" />
+						    <el-table-column align="left"  label="工序名称" width="260"	prop="工序名称" />
+						    <el-table-column align="left"  label="班组编号" width="100"	prop="班组编号"  />
+						    <el-table-column align="left"  label="类别"  width="160"	prop="类别"  />
+						    <el-table-column align="left"  label="检验项目" width="160"	prop="检验项目"  />
+						    <el-table-column align="left"  label="检验结果" width="160"	prop="检验结果"  />
+						    <el-table-column align="left"  label="项目备注" width="160"	prop="项目备注"  />
+						    <el-table-column align="left"  label="修改标准" width="160"	prop="修改标准"  />
+						  </el-table>
+						</el-tab-pane>
 						
-						<el-tab-pane label="制程异常记录"  @click="showTable('制程异常记录')"  name="second">
+						<el-tab-pane label="制程异常记录"  @click="showTable('制程异常记录')"  name="third">
 						  <el-table tooltip-effect="dark" :data="zcycjltableData" row-key="ID"
 						    highlight-current-row="true"
 						    :row-style="{ height: '0px' }" :header-cell-style="{ padding: '0px' }"
@@ -187,6 +206,7 @@ import {
   StaProcessList,
   StaGetOrderDetail,
   StaProcessAnomaly,
+  StaProcessInspection,
 } from '@/api/mes/job'
 //获取当前登录用户信息
 import { useUserStore } from '@/pinia/modules/user'
@@ -308,7 +328,8 @@ const updateCompanyFunclcd = async (row) => {
 //左侧树形节点点击事件
 const handleNodeClicklcd = (node) => {
   _StaProcessList(node['num'])
-  _StaProcessAnomaly()
+  _StaProcessInspection(node['num'])
+  _StaProcessAnomaly(node['num'])
 };
 
 //获取左侧菜单栏
@@ -328,14 +349,33 @@ const _StaGetList = async (row) => {
 const lcdtableData = reactive([])
 const _StaProcessList = async (node) => {
   const StaProcessListdata = await StaProcessList({gdbh:_Gd_gdbhlcd.value,yjno:_Gd_yjnolcd.value,num:node});
-  lcdtableData.splice(0,lcdtableData.length,...StaProcessListdata.data);
+  if(StaProcessListdata.code === 0){
+	lcdtableData.splice(0,lcdtableData.length,...StaProcessListdata.data);
+  }else{
+	lcdtableData.splice(0,lcdtableData.length,...[]);
+  }
+};
+
+//制程异常记录
+const zcjyjltableData = reactive([])
+const _StaProcessInspection = async (node) => {
+  const StaProcessInspectiondata = await StaProcessInspection({gdbh:_Gd_gdbhlcd.value,yjno:_Gd_yjnolcd.value,num:node});
+  if(StaProcessInspectiondata.code === 0){
+	zcjyjltableData.splice(0,zcjyjltableData.length,...StaProcessInspectiondata.data);
+  }else{
+	zcjyjltableData.splice(0,zcjyjltableData.length,...[]);
+  }
 };
 
 //制程异常记录
 const zcycjltableData = reactive([])
-const _StaProcessAnomaly = async () => {
-  const StaProcessAnomalydata = await StaProcessAnomaly({gdbh:_Gd_gdbhlcd.value,yjno:_Gd_yjnolcd.value});
-  zcycjltableData.splice(0,zcycjltableData.length,...StaProcessAnomalydata.data);
+const _StaProcessAnomaly = async (node) => {
+  const StaProcessAnomalydata = await StaProcessAnomaly({gdbh:_Gd_gdbhlcd.value,yjno:_Gd_yjnolcd.value,num:node});
+  if(StaProcessAnomalydata.code === 0){
+	zcycjltableData.splice(0,zcycjltableData.length,...StaProcessAnomalydata.data);
+  }else{
+	zcycjltableData.splice(0,zcycjltableData.length,...[]);
+  }
 };
 
 //退出按钮

+ 267 - 0
src/view/v23financial/v23.vue

@@ -0,0 +1,267 @@
+<template>
+    <div>
+      <layout>
+        <layout-header>
+          <div class="">
+            <!--          按钮部分-->
+            <el-form ref="elSearchFormRef"   class="demo-form-inline" :rules="searchRule" >
+              <el-form-item>
+                <el-input v-model="searchInfo" placeholder="搜索工单编号" clearable style="width: 200px;margin: 5px"></el-input>
+                <el-button type="primary" class="bt" icon="edit" @click="onout">月度费用结构建立</el-button>
+                <el-button type="primary" class="bt" icon="edit" @click="onout">月度费用处理</el-button>
+                <el-button type="primary" class="bt" icon="edit" @click="onout">创建</el-button>
+                <el-button type="primary" class="bt" icon="edit" @click="onout">月度人工维护</el-button>
+                <el-button type="primary" class="bt" icon="download" @click="hzToExcel" >导出到Excel(汇总)</el-button>
+                <el-button type="primary" class="bt" icon="download" @click="mxToExcel" >导出到Excel(明细)</el-button>
+                <el-button type="primary" class="bt" icon="edit" @click="onout">能耗报表</el-button>
+
+              </el-form-item>
+            </el-form>
+  
+        
+  
+          </div>
+        </layout-header>
+  
+        <layout>
+          <!--    左侧树侧形结构-->
+          <layout-sider :resize-directions="['right']" :width="190" style="margin-right: 10px;">
+            <div class="JKWTree-tree" style="height: 200px">
+              <h3>V23各月制造费用维护</h3>
+              <el-tree :data="treeData"  :props="defaultProps" @node-click="handleNodeClick" @node-expand="handleNodeExpand">
+              </el-tree>
+            </div>
+          </layout-sider>
+  
+          <!-- 右侧区域 -->
+          <layout-content >
+          <el-main>
+            <div class="gva-table-box">
+              <!-- 表格数据 -->
+              <el-table ref="multipleTable" style="width: 100%;height: 33vh" tooltip-effect="dark"
+                        :row-style="{ height: '25px' }"  :header-cell-style="{ padding: '0px' }"
+                        :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
+                        :data="hztableData"  border row-key="ID"
+                        size="small"
+                        :cell-class-name="gxbgCellClass"
+                        highlight-current-row="true" @row-dblclick="updateCompanyFunc"
+                        @row-click="tableRowClick" :show-overflow-tooltip="true"
+                        @selection-change="handleSelectionChange">
+               <el-table-column  sortable align="center" label="部门名称" prop="部门名称"  width="120" />
+               <el-table-column  sortable align="center" label="设备编号" prop="设备编号"  width="120" />
+               <el-table-column   align="center" label="设备名称" prop="设备名称"  width="200" />
+               <el-table-column   align="center" label="耗电量" prop="耗电量"  width="200" />
+               <el-table-column   align="center" label="单位电价" prop="单位电价"  width="110" />
+               <el-table-column   align="center" label="耗气量" prop="耗气量"  width="200" />
+               <el-table-column   align="center" label="单位气价" prop="单位气价"  width="200" />
+               <el-table-column   align="center" label="直接费用合计" prop="直接费用合计"  width="110" />
+               <el-table-column   align="center" label="创建用户" prop="创建用户"  width="110" />
+               <el-table-column   align="center" label="创建时间" prop="创建时间"  width="110" />
+              </el-table>
+            </div>
+
+            <div class="gva-table-box">
+              <!-- 表格数据 -->
+              <el-table ref="multipleTable" style="width: 100%;height: 45vh" tooltip-effect="dark"
+                        :row-style="{ height: '25px' }"  :header-cell-style="{ padding: '0px' }"
+                        :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
+                        :data="mxtableData"  border row-key="ID"
+                        size="small"
+                        :cell-class-name="gxbgCellClass"
+                        highlight-current-row="true" @row-dblclick="updateCompanyFunc"
+                        @row-click="tableRowClick" :show-overflow-tooltip="true"
+                        @selection-change="handleSelectionChange">
+               <el-table-column  sortable align="center" label="工单编号" prop="工单编号"  width="120" />
+               <el-table-column  sortable align="center" label="印件名称" prop="印件名称"  width="120" />
+               <el-table-column  sortable align="center" label="印件号" prop="印件号"  width="200" />
+               <el-table-column  sortable align="center" label="工序号" prop="工序号"  width="100" />
+               <el-table-column  sortable align="center" label="班组车头产量" prop="班组车头产量"  width="100" />
+               <el-table-column  sortable align="center" label="计件产量" prop="计件产量"  width="100" />
+               <el-table-column  sortable align="center" label="占用机时" prop="占用机时"  width="100" />
+               <el-table-column  sortable align="center" label="水电气分摊因子" prop="水电气分摊因子"  width="100" />
+               <el-table-column  sortable align="center" label="年月" prop="年月"  width="100" />
+               <el-table-column  sortable align="center" label="车间名称" prop="车间名称"  width="100" />
+              </el-table>
+            </div>
+  
+              <el-table ref="multipleTable" style="width: 100%;height: 45vh" tooltip-effect="dark"
+                        :row-style="{ height: '25px' }"  :header-cell-style="{ padding: '0px' }"
+                        :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
+                        :data="mxtableData"  border row-key="ID"
+                        size="small"
+                        :cell-class-name="gxbgCellClass"
+                        highlight-current-row="true" @row-dblclick="updateCompanyFunc"
+                        @row-click="tableRowClick" :show-overflow-tooltip="true"
+                        @selection-change="handleSelectionChange">
+               <el-table-column  sortable align="center" label="部门名称" prop="部门名称"  width="120" />
+               <el-table-column  sortable align="center" label="科目名称" prop="科目名称"  width="120" />
+               <el-table-column  sortable align="center" label="耗电量" prop="耗电量"  width="200" />
+               <el-table-column  sortable align="center" label="单位电价" prop="单位电价"  width="100" />
+               <el-table-column  sortable align="center" label="耗气量" prop="耗气量"  width="100" />
+               <el-table-column  sortable align="center" label="单位气价" prop="单位气价"  width="100" />
+               <el-table-column  sortable align="center" label="直接费用合计" prop="直接费用合计"  width="100" />
+               <el-table-column  sortable align="center" label="创建用户" prop="创建用户"  width="100" />
+               <el-table-column  sortable align="center" label="创建时间" prop="创建时间"  width="100" />
+              </el-table>
+
+              <el-table ref="multipleTable" style="width: 100%;height: 45vh" tooltip-effect="dark"
+                        :row-style="{ height: '25px' }"  :header-cell-style="{ padding: '0px' }"
+                        :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
+                        :data="mxtableData"  border row-key="ID"
+                        size="small"
+                        :cell-class-name="gxbgCellClass"
+                        highlight-current-row="true" @row-dblclick="updateCompanyFunc"
+                        @row-click="tableRowClick" :show-overflow-tooltip="true"
+                        @selection-change="handleSelectionChange">
+               <el-table-column  sortable align="center" label="设备编号" prop="设备编号"  width="120" />
+               <el-table-column  sortable align="center" label="设备名称" prop="设备名称"  width="120" />
+               <el-table-column  sortable align="center" label="通电工时_全部" prop="通电工时_全部"  width="200" />
+               <el-table-column  sortable align="center" label="通电工时_成本" prop="通电工时_成本"  width="100" />
+               <el-table-column  sortable align="center" label="年月" prop="年月"  width="100" />
+               <el-table-column  sortable align="center" label="科目名称" prop="科目名称"  width="100" />
+               <el-table-column  sortable align="center" label="使用部门" prop="使用部门"  width="100" />
+               <el-table-column  sortable align="center" label="创建用户" prop="创建用户"  width="100" />
+               <el-table-column  sortable align="center" label="创建时间" prop="创建时间"  width="100" />
+               <el-table-column  sortable align="center" label="修改时间" prop="修改时间"  width="100" />
+              </el-table>
+
+              <el-table ref="multipleTable" style="width: 100%;height: 45vh" tooltip-effect="dark"
+                        :row-style="{ height: '25px' }"  :header-cell-style="{ padding: '0px' }"
+                        :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
+                        :data="mxtableData"  border row-key="ID"
+                        size="small"
+                        :cell-class-name="gxbgCellClass"
+                        highlight-current-row="true" @row-dblclick="updateCompanyFunc"
+                        @row-click="tableRowClick" :show-overflow-tooltip="true"
+                        @selection-change="handleSelectionChange">
+               <el-table-column  sortable align="center" label="部门一线工资" prop="部门一线工资"  width="120" />
+               <el-table-column  sortable align="center" label="管理人员工资" prop="管理人员工资"  width="120" />
+               <el-table-column  sortable align="center" label="工资成本占比" prop="工资成本占比"  width="200" />
+               <el-table-column  sortable align="center" label="场地租金" prop="工序场地租金号"  width="100" />
+               <el-table-column  sortable align="center" label="待摊折旧" prop="待摊折旧"  width="100" />
+               <el-table-column  sortable align="center" label="其他" prop="其他"  width="100" />
+               <el-table-column  sortable align="center" label="年月" prop="年月"  width="100" />
+               <el-table-column  sortable align="center" label="创建用户" prop="创建用户"  width="100" />
+               <el-table-column  sortable align="center" label="创建时间" prop="创建时间"  width="100" />
+               <el-table-column  sortable align="center" label="修改时间" prop="修改时间"  width="100" />
+              </el-table>
+
+          </el-main>
+        </layout-content>
+        </layout>
+      </layout>
+    </div>
+  </template>
+  <script setup>
+  // 全量引入格式化工具 请按需保留
+  import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
+  
+  import {ref, reactive} from 'vue'
+  import { exportExcelFile } from '@/utils/excel'
+  import {ElMessage} from "element-plus";
+  defineOptions({name: 'Company'})
+  // =========== 获取左侧树侧形结构 ===========
+  
+
+  
+  
+
+  
+
+  
+
+  
+
+  
+  
+  
+  
+  
+  </script>
+  
+  <style scoped>
+  .form-container {
+    display: flex;
+    flex-wrap: wrap;
+  }
+  
+  .form-column {
+    /*flex: 1;*/
+    margin-right: 15px; /* 调整列之间的间距 */
+  }
+  
+  /* 左侧输入框宽度调整 */
+  .form-column .el-form-item .el-input {
+    width: 150px; /* 调整左侧输入框的宽度 */
+  }
+  
+  :deep(.hui-plan-usage-lows  div) {
+    color: #8c939d !important;
+  }
+  :deep(.lan-plan-usage-lows  div) {
+    color: blue !important;
+    font-weight: bold;
+  }
+  
+
+  /* 媒体查询,根据需要调整断点 */
+  @media screen and (max-width: 768px) {
+    .form-column {
+      flex: 1 0 100%; /* 在小屏幕下变成单列布局 */
+      margin-right: 0;
+    }
+  }
+  /*:deep(.el-table td .cell) {*/
+  /*  line-height: 30px !important;*/
+  /*}*/
+  .JKWTree-container {
+    display: flex;
+  }
+  .JKWTree-tree {
+    /*width: 300px;*/
+    background-color: #fff;
+    padding: 10px;
+    margin-right: 20px;
+  }
+  .JKWTree-tree h3 {
+    font-size: 15px;
+    font-weight: 700;
+    margin: 10px 0;
+  }
+  .JKWTree-content {
+    flex: 1;
+  }
+
+  
+  /* 选中某行时的背景色 */
+  :deep(.el-table__body tr.current-row) > td {
+    background: #ff80ff !important;
+  }
+  </style>
+  <style scoped>
+  :deep(.el-table td .cell) {
+    line-height: 20px !important;
+  }
+  :deep(.el-tabs__header){
+    margin-bottom: 0;
+  }
+  .search{
+    margin-left: 0px !important;
+    margin-right: 10px !important;
+  }
+  .bt{
+    margin-left: 2px !important;
+    padding: 3px !important;
+    font-size: 12px;
+  }
+  .el-tabs__header{
+    margin: 0px !important;
+  }
+  .gva-table-box{
+    padding: 0px !important;
+  }
+  .mab{
+    margin-bottom: 5px;
+  }
+  </style>
+  

+ 64 - 20
src/view/yunyin/shengchanguanli/PrintingPlateRequisition.vue

@@ -8,7 +8,7 @@
               <el-form-item>
                 <el-input v-model="searchInfo" placeholder="搜索物料名称" clearable style="width: 200px;margin: 5px"></el-input>
                 <el-button type="primary" class="bt" icon="search" @click="on_search">查询</el-button>
-                <el-button type="primary" class="bt" icon="edit" @click="onout">领出</el-button>
+                <el-button type="primary" class="bt" icon="edit" :disabled="!yblyselectedvalue" @click="onout">领出</el-button>
                 <el-button type="primary" class="bt" icon="document" :disabled="!selectedIds" @click="onwithdraw">收回</el-button>
                 <el-button type="primary" class="bt" icon="delete" :disabled="!selectedIds" @click="on_delete">删除</el-button>
                 <el-button type="primary" icon="edit" class="bt"@click=" () => { dialogGxclhc = true;}">工序产量核查</el-button>
@@ -43,9 +43,11 @@
                         size="small" v-if="!showKH"
                         :cell-class-name="gxbgCellClass" id="wltable"
                         highlight-current-row="true" @row-dblclick="updateCompanyFunc"
+                        :row-class-name="rowClassStyle" @selection-change="yblySelectionChange"
                         @row-click="tableRowClick" :show-overflow-tooltip="true"
                         >
                >
+               <el-table-column fixed type="selection" width="30" />
                <el-table-column  sortable align="center" label="存货编码" prop="存货编码"  width="120" />
                <el-table-column  sortable align="center" label="物料名称" prop="物料名称"  width="120" />
                <el-table-column   align="center" label="印版名称" prop="印版名称"  width="200" />
@@ -304,8 +306,6 @@ const _WorkList_page =  async () =>{
     const res = await getPPTab()
     if (res.code === 0) {
       treeData.value = transformData(res.data)
-    } else {
-      console.error('获取数据失败:', res.msg)
     }
   } catch (error) {
     console.error('请求出错:', error)
@@ -384,7 +384,6 @@ const transformData = (data) => {
       wlmxtableData.value = []
     }
   } catch (error) {
-    ElMessage.error('获取数据失败')
   }
 }
 
@@ -392,6 +391,16 @@ const transformData = (data) => {
   const data_refresh = async () =>{
     try {
     console.log(clickedRow.value)
+    const res1 = await getPPList({code:nodecode.value,page:page.value,limit:pageSize.value})
+      if (res1.code === 0){
+        total.value = res1.data.total
+        wltableData.value = res1.data.data
+      }else{
+        total.value = 0
+        wltableData.value = []
+        wlmxtableData.value = []
+      }
+
     const res = await getPPReceive({ code: clickedRow.value.存货编码,batch:clickedRow.value.供方批号})
     if (res.code === 0) {
       wlmxtableData.value = res.data 
@@ -433,21 +442,33 @@ const transformData = (data) => {
     const selectedOrder = ref(null)
     const selectedMachine = ref(null)
 
+
+    const yblyselectedvalue = ref(null) // 初始值设为 null
+
+const yblySelectionChange = (selection) => {
+  console.log('选中要领出的印版:', selection)
+  
+  if (selection.length === 0) {
+    yblyselectedvalue.value = null // 取消勾选时设为 null
+  } else {
+    yblyselectedvalue.value = {
+      inventoryCodes: selection.map(item => item.存货编码),
+      batchNumbers: selection.map(item => item.供方批号)
+    }
+  }
+  
+  console.log('选中的数据:', yblyselectedvalue.value)
+}
   const onout = async () => {
-    if(!clickedRow.value){
-      ElMessage.error('请先选择要领出的记录')
-      return
-    }else{
       dialogPlateVisible.value = true;
       console.log(userStore.userInfo.nickName)
-    }
   }
 
   const onwithdraw = async () => {
       dialogwithdrawVisible.value = true;
   }
 
-  // 删除操作
+  // 退回操作
 const rawenterDialog = async () => {
   try {
     await ElMessageBox.confirm('确定收回吗', '提示', {
@@ -599,16 +620,23 @@ const dhlcloseDialog = () => {
 
 const dhlenterDialog = () => {
   // 确定按钮逻辑
-  const params = {
-    gdbh:Plate.工单编号,
-    yjno:Plate.印件号,
-    machine:Plate.机台备注,
-    code:clickedRow.value.存货编码,
-    batch:clickedRow.value.供方批号,
-    sys_id:sys_id,
-  }
-  console.log(params)
-  getPPgdReceive(params).then(res=>{
+  if (!yblyselectedvalue.value.inventoryCodes || yblyselectedvalue.value.inventoryCodes.length === 0) {
+    console.error('没有选中的印版数据')
+    return
+  }
+
+  // 构建多条数据参数
+  const paramsList = yblyselectedvalue.value.inventoryCodes.map((code, index) => ({
+    gdbh: Plate.工单编号,
+    yjno: Plate.印件号,
+    machine: Plate.机台备注,
+    code: code,  
+    batch: yblyselectedvalue.value.batchNumbers[index],
+    sys_id: sys_id
+  }))
+
+  console.log('准备上传的参数列表:', paramsList)
+  getPPgdReceive(paramsList).then(res=>{
     if(res.code===0){
       ElMessage.success('领出成功')
       dialogPlateVisible.value = false
@@ -755,6 +783,19 @@ const ToExcel = () => {
     openOrderSelectDialog(event);  // 先执行异步操作
 };
   
+
+
+const rowClassStyle = ({row, rowIndex}) => {
+  // 先检查clickedRow.value是否存在
+  if (!clickedRow.value || !row['存货编码']) return ''
+  
+  // 然后比较两者的存货编码是否相同
+  if (row['存货编码'] == clickedRow.value.存货编码) {
+    return "warning-row"
+  }
+  return ''
+}
+
   </script>
   
   <style scoped>
@@ -810,6 +851,9 @@ const ToExcel = () => {
     flex: 1;
   }
 
+  :deep(.el-table__body .warning-row) {
+  background: #FFFF80 !important;
+}
   
   /* 选中某行时的背景色 */
   :deep(.el-table__body tr.current-row) > td {