report.wxml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <view>
  2. <image class="top-img" src="/static/images/bk.png" mode="widthFix"></image>
  3. <view class="title">2023年春节返乡报备</view>
  4. <view class="form-wrapper">
  5. <view class="form-item">
  6. <view class="item-left">春节是否返乡</view>
  7. <view class="item-radio">
  8. <radio-group bindchange="radioChangeGoHome">
  9. <radio class="color-2c" value="0" checked="true">不返乡</radio>
  10. <radio class="color-2c" value="1">返乡</radio>
  11. </radio-group>
  12. </view>
  13. </view>
  14. <view class="form-item" wx:if="{{servant.gohome=='0'}}">
  15. <view class="item-left">假期是否接单</view>
  16. <view class="item-radio">
  17. <radio-group bindchange="radioChangeWalk">
  18. <radio class="color-2c" value="1" checked="true">接单</radio>
  19. <radio class="color-2c" value="0">不接单</radio>
  20. </radio-group>
  21. </view>
  22. </view>
  23. <view class="form-item" wx:if="{{servant.gohome=='1'}}">
  24. <view class="item-left">【返乡】时间</view>
  25. <view class="item-right">
  26. <picker mode="date" value="2023-01-18" start="2022-12-01" end="2023-03-31" bindchange="bindGoHomeChange">
  27. <input class="weui-input name-input" type="text" disabled="true" placeholder="请选择春节返乡时间"
  28. value="{{servant.goHomeDate}}"/>
  29. </picker>
  30. </view>
  31. </view>
  32. <view class="form-item" wx:if="{{servant.gohome=='1'}}">
  33. <view class="item-left">春节居住地</view>
  34. <view class="item-right">
  35. <input class="weui-input name-input" type="text" placeholder="请输入省-市-区详细地址"
  36. value="{{servant.address}}" bindinput="bindAddress" />
  37. </view>
  38. </view>
  39. <view class="form-item" wx:if="{{servant.gohome=='1'}}">
  40. <view class="item-left">【返城】时间</view>
  41. <view class="item-right">
  42. <picker mode="date" value="2023-01-18" start="2022-12-01" end="2023-03-31" bindchange="bindGoBackChange">
  43. <input class="weui-input name-input" type="text" disabled="true" placeholder="请选择节后返城时间"
  44. value="{{servant.goBackDate}}"/>
  45. </picker>
  46. </view>
  47. </view>
  48. <view class="form-item" wx:if="{{servant.gohome=='1'}}">
  49. <view class="item-left">节后接单时间</view>
  50. <view class="item-right">
  51. <picker mode="date" value="2023-01-18" start="2022-12-01" end="2023-03-31" bindchange="bindWalkDateChange">
  52. <input class="weui-input name-input" type="text" disabled="true" placeholder="请选择节后可接单时间"
  53. value="{{servant.walkDate}}"/>
  54. </picker>
  55. </view>
  56. </view>
  57. <view class="holiday-content" wx:if="{{servant.gohome=='0'&&servant.walk=='1'}}">
  58. <view class="holiday" wx:for="{{servant.date}}" wx:key="date">
  59. <view class="solar">{{item.date}}</view>
  60. <view style="color:{{item.lunar=='春节'?'red':'#999'}}" class="lunar">{{item.lunar}}</view>
  61. <radio-group class='radio-group' data-id='{{item.date}}' bindchange="radioDateChange">
  62. <radio value="{{type.title}}" wx:key="type" checked="{{type.checked}}" wx:for="{{item.type}}" wx:for-item="type">{{type.title}}
  63. </radio>
  64. </radio-group>
  65. </view>
  66. </view>
  67. <view class="register-btn" ontap="saveNewYearReport">
  68. 确认报备
  69. </view>
  70. </view>
  71. </view>