半成品盘点

This commit is contained in:
2023-07-04 10:24:37 +08:00
parent f4719e1a3f
commit 23695946bb
3 changed files with 17 additions and 6 deletions

View File

@@ -80,7 +80,6 @@
<th>物料规格</th>
<th>数量</th>
<th>重量(kg)</th>
<th>盘点重量(kg)</th>
<th>盘点数量</th>
<th>是否异常</th>
<th>盘点状态</th>

View File

@@ -51,9 +51,9 @@
<th>盘点货位</th>
<th>物料号</th>
<th>物料规格</th>
<th>数量</th>
<th>单重(g)</th>
<th>重量(kg)</th>
<th>单重(g)</th>
<th>数量</th>
<th>载具号</th>
</tr>
</thead>
@@ -63,10 +63,10 @@
<td>{{ e.sect_name }}</td>
<td>{{e.struct_name}}</td>
<td>{{e.material_code}}</td>
<td>{{e.material_name}}</td>
<td>{{e.material_spec}}</td>
<td>{{e.canuse_qty | numeric(3)}}</td>
<td>{{ e.unit_weight | numeric(3) }}</td>
<td>{{ e.base_qty | numeric(3) }}</td>
<td>{{ e.qty | numeric(3) }}</td>
<td>{{ e.storagevehicle_code }}</td>
</tr>
</tbody>
@@ -102,6 +102,7 @@ export default {
activated () {
if (this.$store.getters.materArr.length > 0) {
this.dataList = [...this.dataList, ...this.$store.getters.materArr]
this.removeRepeat(this.dataList)
this.dataList.map(el => {
let res = accMul(el.canuse_qty, el.unit_weight)
res = accDiv(res, 1000)
@@ -113,6 +114,17 @@ export default {
this._checkGetBcpStor()
},
methods: {
// 数组去重
removeRepeat (arr) {
for (let i = 0; i < arr.length; i++) {
for (let j = i + 1; j < arr.length; j++) {
if (arr[i].a === arr[j].a) {
arr.splice(j, 1)
j--
}
}
}
},
// 仓库下拉框
async _checkGetBcpStor () {
let res = await checkGetBcpStor()

View File

@@ -31,7 +31,7 @@
<th>货位</th>
<th>物料编号</th>
<th>物料名称</th>
<th></th>
<th></th>
<th>单重(g)</th>
<th>载具号</th>
</tr>