yxh
2023-07-26 1b8cba540092b2377734f6771fcafd6e51e0c7fb
修改了个税计算
已删除1个文件
已修改1个文件
31 ■■■■■ 文件已修改
src/views/project/fund/expertFeeFundApply/index.vue 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/travelexpenseslist.rar 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/fund/expertFeeFundApply/index.vue
@@ -1360,6 +1360,8 @@
          let totalPreTaxAmount = 0.0;
          let totalAfterTaxAmount = 0.0;
          let totalAmount = 0.0;
          console.log('1');
          //保存前校验数据
          for (let k = 0; k < this.fundDetails.length; k++) {
@@ -1408,13 +1410,13 @@
              (item) => tempDetail.applytype == item.value
            );
            if (applytypeIndex > -1) {
              console.log("tempData1", tempData);
              console.log("tempDetail", tempDetail);
              tempDetail.applytypename = this.rowfeeItemTypes[applytypeIndex].label;
              tempDetail.subjecttype = this.rowfeeItemTypes[applytypeIndex].subjecttype;
              tempDetail.subjecttypename = this.rowfeeItemTypes[applytypeIndex].subjecttypename;
            }
            this.fundDetails[k] = tempDetail;
            this.fundDetails[m] = tempDetail;
            //计算个税            
            //if (isNaN(parseFloat(tempDetail.taxedamount)))
            //获取参数
@@ -1458,23 +1460,29 @@
            }
          }
        }
        console.log('2');
      });
    },
    // 第二步
    brforaFn() {
      //附件处理
    brforaFn() {
      console.log('3');
      this.loading = true;
      //捐献者
      this.form.donorname = this.curCase.name;
      //附件处理
      let list = this.fileList;
      if (list.length > 0) {
        this.form.annexbankcard = list.map(item => item.url).join(",");
        this.form.annexfiles = list.map(item => item.url).join(",");
      }
      //
      this.form.donorname = this.curCase.name;
      //费用合计
      this.form.pretaxcost = parseFloat(this.totalPreTaxAmount).toFixed(2);
      this.form.taxedcost = parseFloat(this.totalAfterTaxAmount).toFixed(2);
      this.form.amountrequested = this.totalAmount.toFixed(2);
      //保存
      if (this.form.id != null) {
        this.form.recordstatus = -1;
        updateFund(this.form).then((res) => {
@@ -1483,8 +1491,6 @@
          this.getList();
          this.selectDonotor(this.curCase);
          // this.$modal.msgSuccess("修改成功");
          this.loading = false;
          for (let m = 0; m < this.fundDetails.length; m++) {
            let tempData = this.fundDetails[m];
            if (tempData.id > 0) {
@@ -1493,7 +1499,10 @@
              tempData.fundid = this.formData.id;
              addFunddetail(tempData).then((res) => { });
            }
          }
          }
          this.$modal.msgSuccess("修改成功");
          this.loading = false;
        });
      } else {
        this.form.serviceFunddetails = 0;
src/views/project/travelexpenseslist.rar
Binary files differ