for record in self: if record.x_fd_2019_0033 == 'x_fd_2019_00331': record['x_fd_2019_0035'] = record.x_fd_2019_0010*165 elif record.x_fd_2019_0033 == 'x_fd_2019_00332': record['x_fd_2019_0035'] = record.x_fd_2019_0010*110 elif record.x_fd_2019_0033 == 'x_fd_2019_00333': record['x_fd_2019_0035'] = record.x_fd_2019_0010*440 elif record.x_fd_2019_0033 == 'x_fd_2019_00334': record['x_fd_2019_0035'] = record.x_fd_2019_0010*380 elif record.x_fd_2019_0033 == 'x_fd_2019_00335': record['x_fd_2019_0035'] = record.x_fd_2019_0010*320 elif record.x_fd_2019_0033 == 'x_fd_2019_00336': record['x_fd_2019_0035'] = record.x_fd_2019_0010*780 elif record.x_fd_2019_0033 == 'x_fd_2019_00337': record['x_fd_2019_0035'] = record.x_fd_2019_0010*320 elif record.x_fd_2019_0033 == 'x_fd_2019_00338': record['x_fd_2019_0035'] = record.x_fd_2019_0010*250 elif record.x_fd_2019_0033 == 'x_fd_2019_00339': record['x_fd_2019_0035'] = record.x_fd_2019_0010/7.00*440 elif record.x_fd_2019_0033 == 'x_fd_2019_003310': record['x_fd_2019_0035'] = record.x_fd_2019_0010/7.00*380 elif record.x_fd_2019_0033 == 'x_fd_2019_003311': record['x_fd_2019_0035'] = record.x_fd_2019_0010/7.00*320 elif record.x_fd_2019_0033 == 'x_fd_2019_003312': record['x_fd_2019_0035'] = record.x_fd_2019_0010*44 elif record.x_fd_2019_0033 == 'x_fd_2019_003313': record['x_fd_2019_0035'] = record.x_fd_2019_0010*500 elif record.x_fd_2019_0033 == 'x_fd_2019_003314': record['x_fd_2019_0035'] = record.x_fd_2019_0010*300 elif record.x_fd_2019_0033 == 'x_fd_2019_003315': record['x_fd_2019_0035'] = record.x_fd_2019_0010*150 elif record.x_fd_2019_0033 == 'x_fd_2019_003316': record['x_fd_2019_0035'] = record.x_fd_2019_0010*50 elif record.x_fd_2019_0033 == 'x_fd_2019_003317': record['x_fd_2019_0035'] = record.x_fd_2019_0010*200 elif record.x_fd_2019_0033 == 'x_fd_2019_003318': record['x_fd_2019_0035'] = record.x_fd_2019_0010*143 elif record.x_fd_2019_0033 == 'x_fd_2019_003319': record['x_fd_2019_0035'] = record.x_fd_2019_0010*80 elif record.x_fd_2019_0033 == 'x_fd_2019_003320': record['x_fd_2019_0035'] = record.x_fd_2019_0010*54 else: record['x_fd_2019_0035'] = record.x_fd_2019_0010*0
员工提出课外津贴申请,选择课程津贴类型,填写课程小时数,e表单中可自动计算出总津贴金额。 现在增加了9个课程津贴类型,需要修改总津贴金额函数,把不同津贴类型的单价补充进去。课程津贴类型及单价见附件