data-report.wxml 944 B

123456789101112131415161718192021222324
  1. <view class="container">
  2. <view class="report-form">
  3. <picker bindchange="bindCompanyChange" value="{{companyIndex}}" range="{{companys}}">
  4. <view class="form-item">
  5. {{companys[companyIndex]}}
  6. <icon class="icon" size="10" icon="scene_tit_arrow"></icon>
  7. </view>
  8. </picker>
  9. <picker mode="date" value="{{date}}" start="2020-07-01" bindchange="bindDateChange">
  10. <view class="form-item">
  11. {{date}}
  12. <icon class="icon" size="10" icon="scene_tit_arrow"></icon>
  13. </view>
  14. </picker>
  15. </view>
  16. <view class="type-list">
  17. <view bindtap="changeActive" data-index="{{index}}" class="type-item {{active === index ? 'active' : ''}}" wx:for="{{ typeList }}" wx:key="{{index}}">{{item}}</view>
  18. </view>
  19. <summary wx:if="{{ active === 0 }}" />
  20. <scene-report wx:if="{{ active === 1}}" date="{{date}}" sceneNum="{{sceneNum}}" />
  21. <customer-report wx:if="{{ active === 2 }}" />
  22. </view>