|
@@ -205,6 +205,12 @@ const userForm = (selectedRow: QueryPermancePlanTmpRsp) => {
|
|
|
function validateStepValue(value: any) {
|
|
function validateStepValue(value: any) {
|
|
|
const buyTotal = total('买方支付');
|
|
const buyTotal = total('买方支付');
|
|
|
const sellTotal = total('卖方收款');
|
|
const sellTotal = total('卖方收款');
|
|
|
|
|
+ if (buyTotal !== 100) {
|
|
|
|
|
+ return Promise.reject('买方支付汇总值必须为100%');
|
|
|
|
|
+ }
|
|
|
|
|
+ if (sellTotal !== 100) {
|
|
|
|
|
+ return Promise.reject('卖方收款汇总值必须为100%');
|
|
|
|
|
+ }
|
|
|
if (sellTotal > buyTotal) {
|
|
if (sellTotal > buyTotal) {
|
|
|
return Promise.reject('卖方收款不能多于买方付款');
|
|
return Promise.reject('卖方收款不能多于买方付款');
|
|
|
}
|
|
}
|