出库单展示当前库存数量

master
zhangdi 2 days ago
parent 4578665d0c
commit 618df2d4a1
  1. 14
      src/views/firstOrder/components/outDialog.vue

@ -172,7 +172,14 @@
{{ scope.row.applicationQuantity || 0 }} {{ scope.row.applicationQuantity || 0 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="num"
label="当前库存"
>
<template slot-scope="scope">
<span>{{ scope.row.num }}</span>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="outboundQuantity" prop="outboundQuantity"
label="已出库数量" label="已出库数量"
@ -534,9 +541,7 @@ export default {
if (this.sizeForm.options == 1 && this.inBatchForm.optionType == "NY") { if (this.sizeForm.options == 1 && this.inBatchForm.optionType == "NY") {
if ( if (
columnIndex === 0 || columnIndex === 0 ||
columnIndex === 1 || columnIndex === 1
columnIndex === 5 ||
columnIndex === 6
) { ) {
const key = `${row.materialCode}-${row.materialName}`; const key = `${row.materialCode}-${row.materialName}`;
const rows = this.sizeForm.inTableData.filter( const rows = this.sizeForm.inTableData.filter(
@ -894,6 +899,7 @@ export default {
this.sizeForm.inTableData[index].materialName = select.materialName; this.sizeForm.inTableData[index].materialName = select.materialName;
this.sizeForm.inTableData[index].type = select.type; this.sizeForm.inTableData[index].type = select.type;
this.sizeForm.inTableData[index].unit = select.unit; this.sizeForm.inTableData[index].unit = select.unit;
this.sizeForm.inTableData[index].num = select.num;
this.getStatistics(); this.getStatistics();
}, },
// //

Loading…
Cancel
Save