瀏覽代碼

工程量清单排序问题

MaiXinRong 3 年之前
父節點
當前提交
6c54691390
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/public/js/gcl_gather.js

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

@@ -398,7 +398,7 @@ const gclGatherModel = (function () {
         calculateGatherData();
         gatherDealBillsData();
         gclList.sort(function (a, b) {
-            return compareCode(a.b_code, b.b_code);
+            return compareCode(a.b_code, b.b_code) || ZhCalc.sub(a.unit_price, b.unit_price);
         });
 
         return gclList;