瀏覽代碼

🐞 fix: 修复分佣表单校验bug

GuYun-D 4 月之前
父節點
當前提交
458f50d76f
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/views/commissionAllocation/gradeCommission/components/EditModal.vue

+ 4 - 4
src/views/commissionAllocation/gradeCommission/components/EditModal.vue

@@ -245,14 +245,14 @@ export default {
           activityType: res.data.activityType || '',
           leadersRule: res.data.leadersRule || '',
           leadersMoney: res.data.leadersRule === 1 && typeof res.data.leadersMoney === 'number' ? res.data.leadersMoney * 100 : res.data.leadersMoney,
-          leadersInMoney: res.data.leadersRule === 1 && typeof res.data.leadersInMoney === 'number' ? res.data.leadersInMoney * 100 : res.data.leadersInMoney,
+          leadersInMoney: res.data.leadersRule === 1 && typeof res.data.leadersInMoney === 'number' ? res.data.leadersInMoney * 100 || '0.0' : res.data.leadersInMoney  || '0.0',
           partnerRule: res.data.partnerRule || '',
-          partnerMoney: res.data.partnerRule === 1 && typeof res.data.partnerMoney === 'number' ? res.data.partnerMoney * 100 : res.data.partnerMoney,
+          partnerMoney: res.data.partnerRule === 1 && typeof res.data.partnerMoney === 'number' ? res.data.partnerMoney * 100  || '0.0' : res.data.partnerMoney  || '0.0',
           partnerInMoney: res.data.partnerRule === 1 && typeof res.data.partnerInMoney === 'number' ? res.data.partnerInMoney * 100 : res.data.partnerInMoney,
           franchiseeRule: res.data.franchiseeRule || '',
-          franchiseeMoney: res.data.franchiseeRule === 1 && typeof res.data.franchiseeMoney === 'number' ? res.data.franchiseeMoney * 100 : res.data.franchiseeMoney,
+          franchiseeMoney: res.data.franchiseeRule === 1 && typeof res.data.franchiseeMoney === 'number' ? res.data.franchiseeMoney * 100  || '0.0' : res.data.franchiseeMoney  || '0.0',
           communityRule: res.data.communityRule || '',
-          communityMoney: res.data.communityRule === 1 && typeof res.data.communityMoney === 'number' ? res.data.communityMoney * 100 : res.data.communityMoney,
+          communityMoney: res.data.communityRule === 1 && typeof res.data.communityMoney === 'number' ? res.data.communityMoney * 100  || '0.0' : res.data.communityMoney  || '0.0',
           sourceType: res.data.sourceType || ''
         })
         this.$nextTick(() => {