Commit e00bd37d by 章家宝

config(common_equity):红黄门店中的当月指标不做校验,运营传入什么就显示什么

1 parent 59b40c12
......@@ -1359,12 +1359,6 @@ class CommonEquityProcessor:
f"{FORM_RED_YELLOW}:第 {line} 行 截止目前灯级只能为 黄/红/绿,实际为「{light}」")
target = row['target']
if target is not None:
try:
if Decimal(str(target)) < 0:
raise ValueError
except Exception:
raise Exception(f"{FORM_RED_YELLOW}:第 {line} 行 当月目标必须为不小于 0 的数值")
brand = str(row['brand']).strip() if row['brand'] is not None else ''
if not brand:
......@@ -2555,7 +2549,7 @@ class CommonEquityProcessor:
('优秀值', 'excellent', 'ratio'),
('标准值', 'standard', 'ratio'),
('预警值', 'warning', 'ratio'),
('{month}月目标', 'target', 'int'),
('{month}月目标', 'target', 'text'),
]
def _write_red_yellow_sheet(self, ws, payload):
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!