sov
This commit is contained in:
@@ -80,7 +80,6 @@
|
||||
<th>物料规格</th>
|
||||
<th>数量</th>
|
||||
<th>重量(kg)</th>
|
||||
<th>盘点重量(kg)</th>
|
||||
<th>盘点数量</th>
|
||||
<th>是否异常</th>
|
||||
<th>盘点状态</th>
|
||||
|
||||
@@ -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>
|
||||
@@ -101,7 +101,9 @@ export default {
|
||||
},
|
||||
activated () {
|
||||
if (this.$store.getters.materArr.length > 0) {
|
||||
this.dataList = [...this.dataList, ...this.$store.getters.materArr]
|
||||
let arr = this.$store.getters.materArr
|
||||
this.removeRepeat(this.dataList, arr)
|
||||
this.dataList = [...this.dataList, ...arr]
|
||||
this.dataList.map(el => {
|
||||
let res = accMul(el.canuse_qty, el.unit_weight)
|
||||
res = accDiv(res, 1000)
|
||||
@@ -113,6 +115,17 @@ export default {
|
||||
this._checkGetBcpStor()
|
||||
},
|
||||
methods: {
|
||||
// 数组去重
|
||||
removeRepeat (arr1, arr2) {
|
||||
for (let i = 0; i < arr1.length; i++) {
|
||||
for (let j = 0; j < arr2.length; j++) {
|
||||
if (arr1[i].struct_name === arr2[j].struct_name) {
|
||||
arr2.splice(j, 1)
|
||||
j--
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// 仓库下拉框
|
||||
async _checkGetBcpStor () {
|
||||
let res = await checkGetBcpStor()
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<th>货位</th>
|
||||
<th>物料编号</th>
|
||||
<th>物料名称</th>
|
||||
<th>数量</th>
|
||||
<th>重量</th>
|
||||
<th>单重(g)</th>
|
||||
<th>载具号</th>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user