Commit 551bb9a1eaffb25ca8c456097edbb59b6096b80a

Authored by
1 parent a4ffebc4

fix: 审核通过bug修复

src/views/project/finance/financeProfit/ServiceProfit/PackageProfit/index.vue
... ... @@ -365,7 +365,8 @@
365 365 disabled: isReviewed, // 如果已发放则禁用
366 366 onClick: () => {
367 367 if (!isReviewed) {
368   - if (hasCommission) {
  368 + // 如果提成金额为0或者任意值,则可以审核通过
  369 + if ( hasCommission || hasCommission==0 ) {
369 370 Modal.destroyAll();
370 371 handleStatus(record, 'approved'); // 已发放
371 372 } else {
... ... @@ -382,7 +383,7 @@
382 383 disabled: isReviewed || isSentButNotPaid, // 如果已发放或应发但不发则禁用
383 384 onClick: () => {
384 385 if (!isReviewed && !isSentButNotPaid) {
385   - if (hasCommission) {
  386 + if ( hasCommission || hasCommission==0 ) {
386 387 Modal.destroyAll();
387 388 handleStatus(record, 'sentButNotPaid'); // 应发但不发
388 389 } else {
... ...