leavepost.wxml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <view>
  2. <view class="order-detail">
  3. <view>
  4. <view class="module-wrapper">
  5. <view class="module-title">选择请假类型:</view>
  6. <picker mode="selector" bindchange="bindPickerChange" value="{{chooseLeaveTypeIndex}}" range="{{arrnameA}}">
  7. <view class="select-board">
  8. <view class="select-left">
  9. <view wx:if="{{arrnameA[chooseLeaveTypeIndex]=='请选择'}}">
  10. 点击选择
  11. </view>
  12. <view wx:else style="color:#333;">
  13. {{arrnameA[chooseLeaveTypeIndex]}}
  14. </view>
  15. <image mode="aspectFit" src="https://mall.zhaijieshi.cc/file/wx-servant/new/icon-finger.png" wx:if="{{arrnameA[chooseLeaveTypeIndex]=='请选择'}}"></image>
  16. </view>
  17. <image class="arrow-img" mode="aspectFit" src="https://mall.zhaijieshi.cc/file/wx-servant/new/arrow-blue.png"></image>
  18. </view>
  19. </picker>
  20. </view>
  21. <view class="module-wrapper">
  22. <view class="module-title">选择请假子类:</view>
  23. <picker bindchange="bindPickerChangeB" value="{{chooseLeaveSubIndex}}" range="{{arrnameB}}">
  24. <view class="select-board">
  25. <view class="select-left">
  26. <view wx:if="{{arrnameB[chooseLeaveSubIndex]==undefined||arrnameB[chooseLeaveSubIndex]==''}}">
  27. 点击选择
  28. </view>
  29. <view wx:else style="color:#333;">
  30. {{arrnameB[chooseLeaveSubIndex]}}
  31. </view>
  32. <image mode="aspectFit" src="https://mall.zhaijieshi.cc/file/wx-servant/new/icon-finger.png" wx:if="{{arrnameB[chooseLeaveSubIndex]==undefined||arrnameB[chooseLeaveSubIndex]==''}}"></image>
  33. </view>
  34. <image class="arrow-img" mode="aspectFit" src="https://mall.zhaijieshi.cc/file/wx-servant/new/arrow-blue.png"></image>
  35. </view>
  36. </picker>
  37. </view>
  38. <view class="module-wrapper">
  39. <view class="module-title">请假开始时间:</view>
  40. <picker mode="multiSelector" value="{{dateTimeKS}}" bindchange="changeDateTime" range="{{dateTimeArray}}">
  41. <view class="select-board">
  42. <view class="select-left">
  43. <view wx:if="{{leaveStartTime==''}}">
  44. 点击选择
  45. </view>
  46. <view wx:else style="color:#333;">
  47. {{leaveStartTime}}
  48. </view>
  49. <image mode="aspectFit" src="https://mall.zhaijieshi.cc/file/wx-servant/new/icon-finger.png" wx:if="{{leaveStartTime==''}}"></image>
  50. </view>
  51. <image class="arrow-img" mode="aspectFit" src="https://mall.zhaijieshi.cc/file/wx-servant/new/arrow-blue.png"></image>
  52. </view>
  53. </picker>
  54. </view>
  55. <view class="module-wrapper">
  56. <view class="module-title">请假结束时间:</view>
  57. <picker mode="multiSelector" value="{{dateTimeJS}}" bindchange="changeDateTimeEnd" range="{{dateTimeArray}}">
  58. <view class="select-board">
  59. <view class="select-left">
  60. <view wx:if="{{leaveEndTime==''}}">
  61. 点击选择
  62. </view>
  63. <view wx:else style="color:#333;">
  64. {{leaveEndTime}}
  65. </view>
  66. <image mode="aspectFit" src="https://mall.zhaijieshi.cc/file/wx-servant/new/icon-finger.png" wx:if="{{leaveEndTime==''}}"></image>
  67. </view>
  68. <image class="arrow-img" mode="aspectFit" src="https://mall.zhaijieshi.cc/file/wx-servant/new/arrow-blue.png"></image>
  69. </view>
  70. </picker>
  71. </view>
  72. <view class="module-wrapper">
  73. <view class="module-title">请假原因:</view>
  74. <view>
  75. <textarea class="weui-input name-input" maxlength="80" style="height: 180rpx;width:640rpx;border:2px solid #fefe; padding:10rpx;" auto-height="" placeholder="请输入原因" value="{{leaveReason}}" bindinput="bindleaveReason" />
  76. <view style="color: #b2b2b2; text-align: right;">{{aah}}</view>
  77. </view>
  78. </view>
  79. <view class="module-wrapper">
  80. <view class="weui-uploader">
  81. <view class="weui-uploader__hd">
  82. <view class="weui-uploader__title">选择凭证图片</view>
  83. <view class="weui-uploader__info">{{picUrls.length}}/{{files.length}}</view>
  84. </view>
  85. <view class="weui-uploader__bd">
  86. <view class="weui-uploader__files" id="uploaderFiles">
  87. <block wx:for="{{files}}" wx:key="*this">
  88. <view class="weui-uploader__file" bindtap="previewImage" id="{{item}}">
  89. <image class="weui-uploader__img" src="{{item}}" mode="aspectFill" />
  90. </view>
  91. </block>
  92. <view class="weui-uploader__input-box">
  93. <view class="weui-uploader__input" bindtap="chooseImage"></view>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. <!--
  100. <view class="order-detail_i">
  101. <view class="order-detail_i_name"> 选择请假类型:</view>
  102. <view>
  103. <picker mode="selector" bindchange="bindPickerChange" value="{{chooseLeaveTypeIndex}}" range="{{arrnameA}}">
  104. <view class="picker picker-content">
  105. {{arrnameA[chooseLeaveTypeIndex]}}
  106. </view>
  107. </picker>
  108. </view>
  109. </view>
  110. <view class="order-detail_i">
  111. <view class="order-detail_i_name"> 选择请假子类:</view>
  112. <picker bindchange="bindPickerChangeB" value="{{chooseLeaveSubIndex}}" range="{{arrnameB}}">
  113. <view class="picker picker-content">
  114. {{arrnameB[chooseLeaveSubIndex]}}
  115. </view>
  116. </picker>
  117. </view>
  118. <view class="order-detail_i">
  119. <view class="order-detail_i_name"> 请假开始时间:</view>
  120. <view>
  121. <picker mode="multiSelector" value="{{dateTimeKS}}" bindchange="changeDateTime" range="{{dateTimeArray}}">
  122. <view class="picker-content">{{leaveStartTime}}</view>
  123. </picker>
  124. </view>
  125. </view>
  126. <view class="order-detail_i">
  127. <view class="order-detail_i_name"> 请假结束时间:</view>
  128. <view>
  129. <picker mode="multiSelector" value="{{dateTimeJS}}" bindchange="changeDateTimeEnd" range="{{dateTimeArray}}">
  130. <view class="picker-content">{{leaveEndTime}}</view>
  131. </picker>
  132. </view>
  133. </view>
  134. <view class="order-detail_i" style="height:208rpx">
  135. <view class="order-detail_i_name">请假原因:</view>
  136. <view>
  137. <textarea class="weui-input name-input" maxlength="80" style="height: 180rpx;width:500rpx;border:2px solid #fefe;" auto-height="" placeholder="请输入原因" value="{{leaveReason}}" bindinput="bindleaveReason" />
  138. <view style="color: #b2b2b2; text-align: right;">{{aah}}</view>
  139. </view>
  140. </view>
  141. <view class="weui-uploader">
  142. <view class="weui-uploader__hd">
  143. <view class="weui-uploader__title">选择凭证图片</view>
  144. <view class="weui-uploader__info">{{picUrls.length}}/{{files.length}}</view>
  145. </view>
  146. <view class="weui-uploader__bd">
  147. <view class="weui-uploader__files" id="uploaderFiles">
  148. <block wx:for="{{files}}" wx:key="*this">
  149. <view class="weui-uploader__file" bindtap="previewImage" id="{{item}}">
  150. <image class="weui-uploader__img" src="{{item}}" mode="aspectFill" />
  151. </view>
  152. </block>
  153. <view class="weui-uploader__input-box">
  154. <view class="weui-uploader__input" bindtap="chooseImage"></view>
  155. </view>
  156. </view>
  157. </view>
  158. </view> -->
  159. <!-- <view class="register-btn" bindtap="commitLeave">
  160. 提交
  161. </view> -->
  162. <view class="btn-wrapper">
  163. <view class="schedue-apply-btn" bindtap="commitLeave">
  164. <view>提交请假申请</view>
  165. <view class="tips">档期全开挣钱越多</view>
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. </view>