廖井涛
2024-07-01 50efd9f19463da742e8c7b751bb4ab2c97acbf61
north-glass-erp/northglass-erp/src/views/pp/reportingWorks/AddReportingWork.vue
@@ -201,7 +201,7 @@
    mode: 'row',
    showStatus: true
  },
  /*menuConfig: {
  menuConfig: {
    body: {
      options: [
        [
@@ -229,7 +229,7 @@
        ]
      ]
    }
  },*/
  },
  //表头参数
  columns: [
    //  {type:'expand',fixed:"left",slots: { content:'content' },width: 50},
@@ -422,10 +422,15 @@
    }
    //brokenGrid.value.reloadData(brokenRow.damageDetail)
    //改变brokenVisible的值触发openedBrokenTable()方法
    brokenVisible.value = true
    const { rows, column, cell } = params; // 解构获取行、列和单元格信息
    //点击次破数量时打开明细界面
    if(column.title=="次破数量"){
      brokenVisible.value = true
    }
  },
  /*menuClick({menu, row, column}) {
  menuClick({menu, row, column}) {
    const $grid = xGrid.value
    if ($grid) {
      switch (menu.code) {
@@ -476,7 +481,7 @@
        }
      }
    }
  },*/
  },
}
@@ -639,6 +644,7 @@
  addListener(brokenGrid.value,brokenGridOptions)
  let damage =ref(brokenRow.value.damageDetails)
  brokenGrid.value.reloadData(damage.value)
  addListener(xGrid.value, gridOptions)
}
@@ -1113,6 +1119,7 @@
}
onMounted(() => {
  window.addEventListener('keypress', qrcodeScanner);
  addListener(xGrid.value, gridOptions)
})
// 在组件卸载时移除键盘事件监听