skyouc
2025-07-03 db2c3d7fe3d1e89b49b9628f408ba883dc75dc51
zy-asrs-admin/src/views/out/wave/index.vue
@@ -41,10 +41,12 @@
let tableDataColSpan = []
const customColSpanProps = (index) => {
  let count = tableDataColSpan[index];
  if (count == null) {
  // console.log(index + ' ----=====-->' + count)
  if (count == null || count == undefined) {
    count = 0;
  }
  return {
    // console.log(' ----=====-->' + count)
    return {
    rowSpan: count,
  };
}
@@ -53,7 +55,7 @@
  {
    title: formatMessage('db.man_wave.wave_no', '波次号'),
    dataIndex: 'waveNo',
    width: 140,
    width: 180,
    ellipsis: true,
    ...getColumnSearchProps('waveNo'),
    customCell: (_, index) => {
@@ -63,7 +65,7 @@
  {
    title: formatMessage('db.man_wave.waveType$', '类型'),
    dataIndex: 'waveType$',
    width: 140,
    width: 110,
    ellipsis: true,
    ...getColumnSearchProps('waveType$'),
    customCell: (_, index) => {
@@ -73,7 +75,7 @@
  {
    title: formatMessage('db.man_wave.waveStatus$', '状态'),
    dataIndex: 'waveStatus$',
    width: 140,
    width: 120,
    ellipsis: true,
    ...getColumnSearchProps('waveStatus$'),
    customCell: (_, index) => {
@@ -83,14 +85,14 @@
  {
    title: formatMessage('db.man_wave.matnr', '商品编号'),
    dataIndex: ['mat$', 'matnr'],
    width: 140,
    width: 180,
    ellipsis: true,
    ...getColumnSearchProps('matnr'),
  },
  {
    title: formatMessage('db.man_wave.maktx', '商品名称'),
    dataIndex: ['mat$', 'maktx'],
    width: 140,
    width: 180,
    ellipsis: true,
    ...getColumnSearchProps('maktx'),
  },
@@ -150,13 +152,11 @@
      let colSpan = []
      data.forEach((item) => {
        let count = 0;
        item.waveDetlList.forEach((detl) => {
          detl.waveStatus = item.waveStatus;
          detl.waveStatus$ = item.waveStatus$;
          detl.waveType = item.waveType;
          detl.waveType$ = item.waveType$;
          count++;
          tmp.push(detl)
        })
@@ -166,10 +166,11 @@
      })
      tableDataColSpan = colSpan;
      // console.log('=========>');
      // console.log(tmp)
      // console.log(tableDataColSpan);
      tableData.value = tmp;
      state.loading = false;
    } else if (result.code === 401) {
      message.error(result.msg);
      logout()