马宇豪
2024-12-10 17527437977dc2e2c39c739796e8afd881df35a1
src/views/safetyReview/expertManage/postEvaluation/components/evaluate.vue
@@ -150,14 +150,7 @@
        <el-row>
          <el-col :span="12">
            <el-form-item label="计费标准" prop="freightBasis">
              <el-input v-model.trim="state.form.freightBasis" :readonly="state.disable"><template #append>天/课时</template></el-input>
<!--              <el-select v-model="state.form.freightBasis" placeholder="计费标准" clearable>-->
<!--                <el-option :key="0" label="前三天600/天" :value="600"/>-->
<!--                <el-option :key="1" label="前三天800/天" :value="800"/>-->
<!--                <el-option :key="1" label="前三天1000/天" :value="1000"/>-->
<!--                <el-option :key="2" label="前三天1200/天" :value="1200"/>-->
<!--                <el-option :key="2" label="前三天1500/天" :value="1500"/>-->
<!--              </el-select>-->
              <el-input v-model.number.trim="state.form.freightBasis" :readonly="state.disable" @input="getExpertFee"><template #append>天/课时</template></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
@@ -169,7 +162,7 @@
        <el-row>
          <el-col :span="12">
            <el-form-item label="计费时长" prop="billingDuration">
              <el-input v-model.number.trim="state.form.billingDuration" type="number" :readonly="state.disable"><template #append>天/课时</template></el-input>
              <el-input v-model.number.trim="state.form.billingDuration" type="number" :readonly="state.disable" @input="getExpertFee"><template #append>天/课时</template></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
@@ -179,17 +172,17 @@
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <el-form-item label="应纳税所得额">
              <el-input v-model.trim="taxIncome" type="number" readonly><template #append>元</template></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="应缴个税">
<!--          <el-col :span="8">-->
<!--            <el-form-item label="应纳税所得额">-->
<!--              <el-input v-model.trim="taxIncome" type="number" readonly><template #append>元</template></el-input>-->
<!--            </el-form-item>-->
<!--          </el-col>-->
          <el-col :span="12">
            <el-form-item label="应缴税费">
              <el-input v-model.trim="taxPay" type="number" readonly><template #append>元</template></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
          <el-col :span="12">
            <el-form-item label="税后金额">
              <el-input v-model="afterTaxIncome" type="number" readonly><template #append>元</template></el-input>
            </el-form-item>
@@ -345,6 +338,12 @@
  }
})
const getExpertFee = ()=>{
  if((state.form.freightBasis && state.form.freightBasis > 0) && (state.form.billingDuration && state.form.billingDuration > 0)){
    state.form.taxExpertFee = state.form.freightBasis * state.form.billingDuration
  }
}
const taxIncome = computed(()=>{
  const expertIncomeValue = state.form.taxExpertFee
  if (expertIncomeValue == null || expertIncomeValue === 0 || expertIncomeValue <= 800) {
@@ -358,26 +357,36 @@
})
const taxPay = computed(()=>{
  const taxIncomeValue = taxIncome.value
  if (taxIncomeValue == null || taxIncomeValue === 0) {
  // const taxIncomeValue = taxIncome.value
  // if (taxIncomeValue == null || taxIncomeValue === 0) {
  //   return 0
  // }
  // if (taxIncomeValue <= 20000) {
  //   return taxIncomeValue * 0.2
  // } else if (taxIncomeValue <= 50000) {
  //   return taxIncomeValue * 0.3 - 2000
  // } else {
  //   return taxIncomeValue * 0.4 - 7000
  // }
  const expertIncomeValue = state.form.taxExpertFee
  if(expertIncomeValue == null || expertIncomeValue === 0 || expertIncomeValue <= 800){
    return 0
  }
  if (taxIncomeValue <= 20000) {
    return taxIncomeValue * 0.2;
  } else if (taxIncomeValue <= 50000) {
    return taxIncomeValue * 0.3 - 2000;
  } else {
    return taxIncomeValue * 0.4 - 7000;
  if(expertIncomeValue / 1.01 - 800>0){
    return ((expertIncomeValue / 1.01 - 800) * 0.2).toFixed(2)
  }else{
    return 0
  }
})
const afterTaxIncome = computed(()=>{
  const expertIncomeValue = state.form.taxExpertFee
  const taxPayValue = taxPay.value
  if ((expertIncomeValue == null || expertIncomeValue == 0)|| (taxPayValue == null || taxPayValue == 0)) {
  if (expertIncomeValue == null || expertIncomeValue == 0) {
    return 0
  }
  return expertIncomeValue - taxPayValue;
  return (expertIncomeValue - taxPayValue).toFixed(2)
})
const openDialog = async (type, value, projectName, projectCheckTime) => {