yxh
13 小时以前 38c26c3049d55ffda598ce0263498448b7c60834
src/views/project/fund/applyDetail0/index.vue
@@ -119,13 +119,13 @@
          <!--
          <el-col :span="5">
            <el-form-item label="应缴税" prop="taxcost" v-if="businessType == '1' || businessType == '2'">
              <el-input v-model="form.taxcost" placeholder="应缴税金额合计" :disabled="true" />
            <el-form-item label="劳务个税" prop="taxcost" v-if="businessType == '1' || businessType == '2'">
              <el-input v-model="form.taxcost" placeholder="劳务个税合计" :disabled="true" />
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="税后金额" prop="pretaxcost">
              <el-input v-model="form.taxedcost" placeholder="税后金额合计" :disabled="true" />
            <el-form-item label="劳务税后" prop="pretaxcost">
              <el-input v-model="form.taxedcost" placeholder="劳务税后合计" :disabled="true" />
            </el-form-item>
          </el-col>-->
          <el-col :span="10">
@@ -328,7 +328,7 @@
            <el-table-column
              prop="taxedamount"
              align="center"
              label="税后金额"
              label="劳务税后"
              width="120"
              v-if="
                (this.ismanager == true) &
@@ -338,7 +338,7 @@
              <template slot-scope="scope">
                <el-input
                  v-model="scope.row.taxedamount"
                  placeholder="税后金额"
                  placeholder="劳务税后"
                  @blur="
                    val => {
                      calculateTax(scope.row, 'B');
@@ -1951,7 +1951,7 @@
            //获取参数
            this.taxParam.beneficiaryNo = tempDetail.beneficiaryno;
            this.taxParam.startTime = this.form.createTime.substring(0, 10);
            // 计算税后金额
            // 计算劳务税后
            if (tempDetail.taxedamount == undefined || tempDetail.taxedamount == null || tempDetail.taxedamount == 0 || tempDetail.taxedamount == '') {
              //获取参数
              this.taxParam.money = tempDetail.amount.toString();
@@ -1967,7 +1967,7 @@
              });
            }
            // 计算税前、税费、税后金额
            // 计算税前、税费、劳务税后
            if (tempDetail.amount == undefined || tempDetail.amount == null || tempDetail.amount == 0 || tempDetail.amount == '') {
              //获取参数
              this.taxParam.money = tempDetail.taxedamount.toString();
@@ -1984,7 +1984,7 @@
            }
            */
          }
          //计算当前行报销内容费用合计,税前金额(amount)、扣税金额(taxamount)、税后金额(taxedamount)
          //计算当前行报销内容费用合计,税前金额(amount)、劳务个税(taxamount)、劳务税后(taxedamount)
          if (this.businessType == "2") {
            for (let j = 0; j < this.rbDetails.length; j++) {
              let tempDetail = this.rbDetails[j];
@@ -2317,7 +2317,7 @@
            row.taxamount = 0.0;
            row.taxedamount = 0.0;
            //计算税后金额
            //计算劳务税后
            // this.calculateTax(row, "A");
          }
@@ -2427,7 +2427,7 @@
      });
    },
    //计算个税:type(A:已知税前金额,计算税后金额;B:已知税后金额,计算税前金额)
    //计算个税:type(A:已知税前金额,计算劳务税后;B:已知劳务税后,计算税前金额)
    calculateTax(row, type) {
      //if (isNaN(parseFloat(tempDetail.taxedamount)))
      //获取参数
@@ -2435,7 +2435,7 @@
      this.taxParam.startTime = this.form.createTime.substring(0, 10);
      if (type == "A") {
        // 计算个税、税后金额
        // 计算个税、劳务税后
        this.taxParam.money = row.amount.toString();
        getTaxByBeneFiciaryNo(this.taxParam).then(res => {
          if (res.code == 200) {
@@ -2636,7 +2636,7 @@
            //获取参数
            this.taxParam.beneficiaryNo = tempDetail.beneficiaryno;
            this.taxParam.startTime = this.form.createTime.substring(0, 10);
            // 计算税后金额
            // 计算劳务税后
            if (tempDetail.taxedamount == undefined || tempDetail.taxedamount == null || tempDetail.taxedamount == 0 || tempDetail.taxedamount == '') {
              //获取参数
              this.taxParam.money = tempDetail.amount.toString();
@@ -2652,7 +2652,7 @@
              });
            }
            // 计算税前、税费、税后金额
            // 计算税前、税费、劳务税后
            if (tempDetail.amount == undefined || tempDetail.amount == null || tempDetail.amount == 0 || tempDetail.amount == '') {
              //获取参数
              this.taxParam.money = tempDetail.taxedamount.toString();
@@ -2669,7 +2669,7 @@
            }
            */
          }
          //计算当前行报销内容费用合计,税前金额(amount)、扣税金额(taxamount)、税后金额(taxedamount)
          //计算当前行报销内容费用合计,税前金额(amount)、劳务个税(taxamount)、劳务税后(taxedamount)
          if (this.businessType == "2") {
            for (let j = 0; j < this.rbDetails.length; j++) {
              let tempDetail = this.rbDetails[j];