半成品模块数据精度

This commit is contained in:
2023-08-17 09:15:00 +08:00
parent b6db7b80dd
commit 5b6396be13
3 changed files with 5 additions and 5 deletions

View File

@@ -123,7 +123,7 @@ export default {
qty () {
let res = ''
res = accDiv(this.total_qty, this.unit_weight)
res = Number(res).toFixed(3)
res = Number(res).toFixed(0)
return res
}
},

View File

@@ -35,7 +35,7 @@
<th>物料编号</th>
<th>物料名称</th>
<th>物料规格</th>
<th>数量</th>
<th>重量(g)</th>
<th>单重(g)</th>
<th>载具号</th>
</tr>
@@ -47,7 +47,7 @@
<td>{{e.material_code}}</td>
<td>{{e.material_name}}</td>
<td>{{ e.material_spec }}</td>
<td>{{e.canuse_qty | numeric(3)}}</td>
<td>{{e.canuse_qty | numeric(0)}}</td>
<td>{{ e.unit_weight | numeric(3) }}</td>
<td>{{ e.storagevehicle_code }}</td>
</tr>

View File

@@ -31,7 +31,7 @@
<th>货位</th>
<th>物料编号</th>
<th>物料名称</th>
<th>重量</th>
<th>重量(g)</th>
<th>单重(g)</th>
<th>载具号</th>
</tr>
@@ -45,7 +45,7 @@
<td>{{e.struct_name}}</td>
<td>{{e.material_code}}</td>
<td>{{e.material_name}}</td>
<td>{{e.canuse_qty | numeric(3)}}</td>
<td>{{e.canuse_qty | numeric(0)}}</td>
<td>{{ e.unit_weight | numeric(3) }}</td>
<td>{{ e.storagevehicle_code }}</td>
</tr>