|
@@ -616,7 +616,7 @@ class checkData {
|
|
|
if (ratio === 0) {
|
|
|
if (!data.contract_tp && !data.pre_contract_tp) return 2; // 漏计
|
|
|
} else {
|
|
|
- const tp = this.ctx.helper.mul(data.total_price, this.ctx.helper.div(ratio, 100, 4), this.ctx.tender.info.decimal.tp);
|
|
|
+ const tp = this.ctx.helper.mul(data.final_1_tp, this.ctx.helper.div(ratio, 100, 4), this.ctx.tender.info.decimal.tp);
|
|
|
const checkTp = this.ctx.helper.add(data.contract_tp, data.pre_contract_tp);
|
|
|
if (tp > checkTp) return 1; // 违规
|
|
|
if (tp < checkTp) return 2; // 漏计
|
|
@@ -633,7 +633,7 @@ class checkData {
|
|
|
if (!data.contract_qty && !data.qc_qty && !data.pre_contract_qty && !data.pre_qc_qty) return 2; // 漏计
|
|
|
} else {
|
|
|
const precision = this.ctx.helper.findPrecision(this.ctx.tender.info.precision, unit);
|
|
|
- const checkQty = this.ctx.helper.mul(data.quantity, this.ctx.helper.div(ratio, 100, 4), precision.value);
|
|
|
+ const checkQty = this.ctx.helper.mul(data.final_1_qty, this.ctx.helper.div(ratio, 100, 4), precision.value);
|
|
|
const qty = this.ctx.helper.add(data.contract_qty, data.pre_contract_qty);
|
|
|
if (qty > checkQty) return 1; // 违规
|
|
|
if (qty < checkQty) return 2; // 漏计
|
|
@@ -901,9 +901,9 @@ class checkData {
|
|
|
const end_contract_qty = this.ctx.helper.add(p.pre_contract_qty, p.contract_qty);
|
|
|
if (!p.quantity && !!end_contract_qty) return true;
|
|
|
if (p.quantity > 0) {
|
|
|
- if (end_contract_qty > p.quantity) return true;
|
|
|
+ if (end_contract_qty > p.final_1_qty) return true;
|
|
|
} else {
|
|
|
- if (end_contract_qty < p.quantity || end_contract_qty > 0) return true;
|
|
|
+ if (end_contract_qty < p.final_1_qty || end_contract_qty > 0) return true;
|
|
|
}
|
|
|
}
|
|
|
return false;
|
|
@@ -916,7 +916,7 @@ class checkData {
|
|
|
if (!compare_tp) return !!end_contract_tp;
|
|
|
return compare_tp >= 0 ? end_contract_tp > compare_tp : end_contract_tp < compare_tp || end_contract_tp > 0;
|
|
|
} else {
|
|
|
- const compare_qty = isTz ? bills.quantity : bills.deal_qty;
|
|
|
+ const compare_qty = isTz ? bills.final_1_qty : bills.deal_final_1_qty;
|
|
|
if (!compare_qty) return !!end_contract_qty;
|
|
|
return compare_qty >= 0 ? end_contract_qty > compare_qty : end_contract_qty < compare_qty || end_contract_qty > 0;
|
|
|
}
|