|
@@ -68,7 +68,7 @@ $(document).ready(() => {
|
|
|
treeSetting.calcFun = function (node) {
|
|
|
node.dgn_price = ZhCalc.round(ZhCalc.div(node.total_price, node.dgn_qty1), 2);
|
|
|
node.end_contract_qty = ZhCalc.add(node.contract_qty, node.pre_contract_qty);
|
|
|
- node.end_percent = node.quantity ? ZhCalc.mul(ZhCalc.div(node.contract_qty, node.quantity, 4), 100, 2) : 0;
|
|
|
+ node.end_percent = node.quantity ? ZhCalc.mul(ZhCalc.div(node.end_contract_qty, node.quantity, 4), 100, 2) : 0;
|
|
|
};
|
|
|
const billsTree = createNewPathTree('revise', treeSetting);
|
|
|
// 初始化 部位明细
|
|
@@ -76,7 +76,7 @@ $(document).ready(() => {
|
|
|
id: 'id', ledgerId: 'lid',
|
|
|
calcFun: function(node) {
|
|
|
node.end_contract_qty = ZhCalc.add(node.contract_qty, node.pre_contract_qty);
|
|
|
- node.end_percent = node.quantity ? ZhCalc.mul(ZhCalc.div(node.contract_qty, node.quantity, 4), 100, 2) : 0;
|
|
|
+ node.end_percent = node.quantity ? ZhCalc.mul(ZhCalc.div(node.end_contract_qty, node.quantity, 4), 100, 2) : 0;
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -219,6 +219,7 @@ $(document).ready(() => {
|
|
|
checkShowLast(result.reviseBills.length);
|
|
|
|
|
|
pos.loadDatas(result.revisePos);
|
|
|
+ pos.calculateAll();
|
|
|
posSpreadObj.loadCurPosData();
|
|
|
SpreadJsObj.resetTopAndSelect(posSheet);
|
|
|
|