|
@@ -2723,6 +2723,13 @@ $(document).ready(() => {
|
|
|
},
|
|
|
afterLocated: function () {
|
|
|
posSpreadObj.loadCurPosData();
|
|
|
+ },
|
|
|
+ calcSum: function (result) {
|
|
|
+ const sum = { name: '合计' };
|
|
|
+ for (const r of result) {
|
|
|
+ sum.quantity = ZhCalc.add(r.quantity, sum.quantity);
|
|
|
+ }
|
|
|
+ return sum;
|
|
|
}
|
|
|
});
|
|
|
}
|