Commit 27fd943997e72abc979fd4d1da8bda115cfd5787
1 parent
4a30efb0
feat: update
Showing
1 changed file
with
17 additions
and
12 deletions
src/pages/OrderReport/components/OrderStatisticCard.tsx
... | ... | @@ -296,18 +296,23 @@ export default ({ data, statisticsMethod, reFreshData }) => { |
296 | 296 | placeholder="请输入指标" |
297 | 297 | rules={[{ required: true, message: '指标必填' }]} |
298 | 298 | /> |
299 | - <ProFormDigit | |
300 | - width="md" | |
301 | - name="daysOfMonth" | |
302 | - label={ | |
303 | - statisticsMethod === 'YEAR_STATISTICS' | |
304 | - ? '每月工作日天数' | |
305 | - : '本月工作日天数' | |
306 | - } | |
307 | - min={0} | |
308 | - placeholder="工作日天数" | |
309 | - rules={[{ required: true, message: '工作日天数必填' }]} | |
310 | - /> | |
299 | + | |
300 | + {statisticsMethod === 'MONTH_STATISTICS' ? ( | |
301 | + <ProFormDigit | |
302 | + width="md" | |
303 | + name="weekday" | |
304 | + label={ | |
305 | + statisticsMethod === 'YEAR_STATISTICS' | |
306 | + ? '每月工作日天数' | |
307 | + : '本月工作日天数' | |
308 | + } | |
309 | + min={0} | |
310 | + placeholder="工作日天数" | |
311 | + rules={[{ required: true, message: '工作日天数必填' }]} | |
312 | + /> | |
313 | + ) : ( | |
314 | + '' | |
315 | + )} | |
311 | 316 | </ModalForm> |
312 | 317 | </> |
313 | 318 | ); | ... | ... |