|
@ -367,6 +367,12 @@ export default { |
|
|
if (this.formobj.list.length === 0) { |
|
|
if (this.formobj.list.length === 0) { |
|
|
this.$message({ showClose: true, type: 'error', message: '列表不能为空' }) |
|
|
this.$message({ showClose: true, type: 'error', message: '列表不能为空' }) |
|
|
return |
|
|
return |
|
|
|
|
|
} else { |
|
|
|
|
|
this.formobj.list.forEach((e) => { |
|
|
|
|
|
if (e.nowAdjustmentMoney === '' || Number(e.nowAdjustmentMoney) === 0) { |
|
|
|
|
|
this.$message({ showClose: true, type: 'error', message: '列表中本次调整金额不能为空且不能为零' }) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
@ -388,6 +394,12 @@ export default { |
|
|
if (this.formobj.list.length === 0) { |
|
|
if (this.formobj.list.length === 0) { |
|
|
this.$message({ showClose: true, type: 'error', message: '列表不能为空' }) |
|
|
this.$message({ showClose: true, type: 'error', message: '列表不能为空' }) |
|
|
return |
|
|
return |
|
|
|
|
|
} else { |
|
|
|
|
|
this.formobj.list.forEach((e) => { |
|
|
|
|
|
if (e.nowAdjustmentMoney === '' || Number(e.nowAdjustmentMoney) === 0) { |
|
|
|
|
|
this.$message({ showClose: true, type: 'error', message: '列表中本次调整金额不能为空且不能为零' }) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|