guoyuji
2024-06-25 8668e5ce64e1d7b3dbfffc42cf6767cb9ea2d6c0
north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue
@@ -207,7 +207,7 @@
    {field: 'computeGrossArea', title: t('processCard.areaToDivided'), width: '60px'},
    {field: 'totalThickness', title: t('processCard.totalThickness'), width: '80px'},
    {field: 'thickness', title: t('processCard.glassThickness'), width: '60px'},
    {field: 'weight', title: t('processCard.weight')}
    {field: 'weight', title: t('processCard.weight'),slots:{default:'weight_sum'}}
  ],//表头按钮
  toolbarConfig: {
@@ -681,6 +681,10 @@
  },
}
const weightSum =  (row) =>{
    return parseFloat((row.baiscQuantity*row.thickness*row.width*row.height*2.5/1000000).toFixed(2))
}
</script>
<template>
@@ -739,6 +743,7 @@
            </template>
          </vxe-grid>
        </el-aside>
@@ -785,6 +790,9 @@
                  </li>
                </ul>
              </template>
              <template #weight_sum="{ row }">
                <span>{{ weightSum(row) }} </span>
              </template>
              <template #num1_filter="{ column, $panel }">
                <div>