Просмотр исходного кода

清单汇总,原单价相关

MaiXinRong 2 лет назад
Родитель
Сommit
d179bd376c
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      app/public/js/gcl_gather.js

+ 3 - 1
app/public/js/gcl_gather.js

@@ -131,9 +131,11 @@ const gclGatherModel = (function () {
                 (g.name || node.name ? g.name === node.name : true) &&
                 (g.unit || node.unit ? g.unit === node.unit : true) &&
                 checkZero(ZhCalc.sub(g.unit_price, node.unit_price));
+                // && (g.org_price && node.org_price ? g.org_price === node.org_price : true);
         });
         if (gcl) {
-            return gcl
+            if (node.org_price) gcl.org_price = node.org_price;
+            return gcl;
         } else {
             return newGclNode(node);
         }