|
@@ -521,11 +521,11 @@ $(document).ready(() => {
|
|
|
const sd = result.sumDeal.find(x => { return x.code === l.b_code && x.name === l.name && x.unit === l.unit; });
|
|
|
if (sd) {
|
|
|
l.unit_price = sd.unit_price;
|
|
|
- l.deal_tp = ZhCalc.mul(l.unit_price, l.deal_qty);
|
|
|
- l.sgfh_tp = ZhCalc.mul(l.unit_price, l.sgfh_qty);
|
|
|
- l.sjcl_tp = ZhCalc.mul(l.unit_price, l.sjcl_qty);
|
|
|
- l.qtcl_tp = ZhCalc.mul(l.unit_price, l.qtcl_qty);
|
|
|
- l.total_price = ZhCalc.mul(l.unit_price, l.quantity);
|
|
|
+ l.deal_tp = ZhCalc.mul(l.unit_price, l.deal_qty, tenderInfo.decimal.tp);
|
|
|
+ l.sgfh_tp = ZhCalc.mul(l.unit_price, l.sgfh_qty, tenderInfo.decimal.tp);
|
|
|
+ l.sjcl_tp = ZhCalc.mul(l.unit_price, l.sjcl_qty, tenderInfo.decimal.tp);
|
|
|
+ l.qtcl_tp = ZhCalc.mul(l.unit_price, l.qtcl_qty, tenderInfo.decimal.tp);
|
|
|
+ l.total_price = ZhCalc.mul(l.unit_price, l.quantity, tenderInfo.decimal.tp);
|
|
|
}
|
|
|
}
|
|
|
// 加载树结构
|