Selaa lähdekoodia

工程量清单排序问题

MaiXinRong 3 vuotta sitten
vanhempi
commit
6c54691390
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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;