11
WXL
2023-11-10 4f46cedca8a80f5126aca46d6369cc592b91ef58
src/views/project/fundcheck/expertFeeCheck/index.vue
@@ -1363,24 +1363,37 @@
    },
    Totalcalculation(tot) {
      console.log(tot);
      let bojite={
        fundids:this.overallids,
        isTaxAfter:tot,
      }
      let bojite = {
        fundids: this.overallids,
        isTaxAfter: tot
      };
      if (tot == 0) {
        TotalcalculationFn(bojite).then(row => {
          if (row.code=200) {
            this.$modal.msgSuccess(row.msg);
          }else{
          this.$modal.msgError(row.msg);
          }
        });
        TotalcalculationFn(bojite)
          .then(row => {
            if (row.code == 200) {
              this.$modal.msgSuccess(row.msg);
            } else {
              console.log(123);
              this.$modal.msgError(row.msg);
            }
          })
          .catch(error => {
            this.$modal.msgError(error);
          });
      } else {
        const hasValue = this.overallidsvalue.every(obj => obj.istax == 1);
        if (hasValue) {
          TotalcalculationFn(bojite).then(row => {
            console.log(row.msg);
          });
          TotalcalculationFn(bojite)
            .then(row => {
              if (row.code == 200) {
                this.$modal.msgSuccess(row.msg);
              } else {
                this.$modal.msgError(row.msg);
              }
            })
            .catch(error => {
              this.$modal.msgError(error);
            });
        } else {
          this.$modal.msgError("请选择算税后的数据进行合并计算");
        }