| | |
| | | <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"> |
| | |
| | | <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"> |
| | |
| | | </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> |
| | |
| | | } |
| | | }) |
| | | |
| | | 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) { |
| | |
| | | }) |
| | | |
| | | 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) => { |