Browse Source

【修改】预留单

莫绍宝 3 years ago
parent
commit
3d52c1e5ee

+ 2 - 1
src/views/supply/reserve/components/reserve_detail.vue

@@ -57,6 +57,7 @@
           <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
           <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
           <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
+          <el-table-column align="center" label="原预留数量" prop="oldNum" min-width="100" show-overflow-tooltip></el-table-column>
           <el-table-column align="center" label="预留数量" prop="reservedNum" min-width="100" show-overflow-tooltip></el-table-column>
           <el-table-column align="center" label="订单数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
           <el-table-column align="center" label="预留仓库" prop="correspondName" min-width="100" show-overflow-tooltip></el-table-column>
@@ -140,7 +141,7 @@ export default {
       getDetail({id: this.listItem.id}).then(res => {
         if(res.data.reservedOrderItems) {
           res.data.reservedOrderItems.forEach(item => {
-            item.sums1 = ['reservedNum', 'qty'];
+            item.sums1 = ['oldNum', 'reservedNum', 'qty'];
             item.sums2 = [];
           })
         }

+ 2 - 1
src/views/supply/reserve/reserve_list.vue

@@ -108,6 +108,7 @@
             <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
             <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
             <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
+            <el-table-column align="right" label="原预留数量" prop="oldNum" min-width="100" show-overflow-tooltip></el-table-column>
             <el-table-column align="right" label="预留数量" prop="reservedNum" min-width="100" show-overflow-tooltip></el-table-column>
             <el-table-column align="right" label="开单数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
             <el-table-column align="center" label="备注" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
@@ -241,7 +242,7 @@ export default {
       };
       getList(params).then((res) => {
         res.data.records.forEach(item => {
-          item.sums1 = ['reservedNum', 'qty'];
+          item.sums1 = ['oldNum', 'reservedNum', 'qty'];
           item.sums2 = [];
         })
         this.dataList = res.data.records;