| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="税前金额(专家费)" prop="taxExpertFee"> |
| | | <el-input v-model="state.form.taxExpertFee" type="number" :readonly="state.disable"><template #append>元</template></el-input> |
| | | <el-input v-model="state.form.taxExpertFee" type="number" :readonly="state.disable" @input="getExpertTax"><template #append>元</template></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <!-- </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-input v-model.trim="state.form.incomeTaxPayable" type="number" :readonly="state.disable"><template #append>元</template></el-input> |
| | | <div style="font-size: 12px;color: red">系统自动计算金额仅供参考,请注意核对。</div> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="税后金额"> |
| | | <el-input v-model="afterTaxIncome" type="number" readonly><template #append>元</template></el-input> |
| | | <el-input v-model="state.form.afterTaxAmount" type="number" :readonly="state.disable"><template #append>元</template></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="开户行" prop="openBank"> |
| | |
| | | return 100 + Number(addTotal.value) + Number(deductTotal.value) |
| | | }) |
| | | |
| | | |
| | | // 这里一堆无作用的代码存在的原因是需求一直来回改,简洁的代码也改成屎了 |
| | | const expertIncome = computed(()=>{ |
| | | if(state.form.freightBasis == null || state.form.billingDuration == null){ |
| | | return null |
| | |
| | | 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 getExpertTax = ()=>{ |
| | | const expertIncomeValue = state.form.taxExpertFee |
| | | if(expertIncomeValue == null || expertIncomeValue / 1.01 - 800<=0){ |
| | | state.form.incomeTaxPayable = 0 |
| | | state.form.afterTaxAmount = expertIncomeValue |
| | | }else{ |
| | | state.form.incomeTaxPayable = ((expertIncomeValue / 1.01 - 800) * 0.2).toFixed(2) |
| | | state.form.afterTaxAmount = (expertIncomeValue - state.form.incomeTaxPayable).toFixed(2) |
| | | } |
| | | } |
| | | |
| | |
| | | state.form.saveData = [...state.addData,...state.deductData] |
| | | state.form.delData = state.form.delData.filter((id) => !state.form.saveData.some((item) => item.id === id)) |
| | | state.form.score = totalScore.value || 0 |
| | | state.form.taxableIncome = taxIncome.value || 0 |
| | | state.form.incomeTaxPayable = taxPay.value || 0 |
| | | state.form.afterTaxAmount = afterTaxIncome.value || 0 |
| | | // state.form.taxableIncome = taxIncome.value || 0 |
| | | // state.form.incomeTaxPayable = taxPay.value || 0 |
| | | // state.form.afterTaxAmount = afterTaxIncome.value || 0 |
| | | const res = await projectExpertDetailSave(state.form) |
| | | if(res.code == 200){ |
| | | ElMessage.success(res.msg) |