@@ -170,6 +170,11 @@ export default {
this.$refs.form.validate(async (valid) => {
if (!valid) {
this.$message.error('请填写完整')
+ return
+ }
+ if (this.nowRatio > this.formValues.maxRatio) {
+ this.$message.error('分润比例不能超过可分配比例')
}
try {
await claimPerformanceMore({
@@ -161,6 +161,11 @@ export default {
await claimPerformanceMoreByBatch({
@@ -129,6 +129,10 @@ export default {
return
const { employeeProfitSharingRatio, serialNumber, unifiedCertificationNumber } = this.formValues
+ if (employeeProfitSharingRatio > this.formValues.maxRatio) {
+ this.$message.error('分润比例不能大于可分润比例')
this.loading = true
await getCustomerProfitSharingClaimStaffAdd({