添加功能

This commit is contained in:
李鹏宇
2025-09-11 18:45:23 +08:00
parent 2fc4e51c81
commit d24d9dee7a
@@ -24,7 +24,7 @@ class LeaveAllocationWizard(models.Model):
raise ValidationError('请上传文件。')
book = xlrd.open_workbook(file_contents=base64.decodebytes(self.excel_file))
sh = book.sheet_by_index(0)
for rx in range(1, 2):
for rx in range(1, sh.nrows):
row = sh.row(rx)
self.salary_import(row)