浏览代码

中心仓价格为空问题优化

liyuan 1 周之前
父节点
当前提交
424220598b
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/views/storehouse/inStockManage/inStockPlan/detailsPage.vue

+ 4 - 1
src/views/storehouse/inStockManage/inStockPlan/detailsPage.vue

@@ -1230,7 +1230,7 @@ export default {
       // 循环获取库存数量
       for (let item of this.tableData) {
         this.form.planItemsList.push({
-          price: item.price,
+          price: item.price ? item.price : 0,
           goodsId: item.id,
           goodsName: item.cname,
           dot: item.dot,
@@ -1328,6 +1328,9 @@ export default {
       if (Array.isArray(res)) {
         if (res instanceof Array) {
           this.form.planItemsList = this.form.planItemsList.concat(res);
+          for (let item of this.form.planItemsList) {
+              item.price = item.price ? item.price : 0;
+          }
           res.forEach(item => {
             dotList({
               storageId: this.form.storageId,