From 8668e5ce64e1d7b3dbfffc42cf6767cb9ea2d6c0 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期二, 25 六月 2024 09:54:15 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override
---
north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue
index 939fe77..6a06007 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue
+++ b/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>
--
Gitblit v1.8.0