taskreminder.axml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <import-sjs from="../../../util/formateFuc.sjs" name="formate"></import-sjs>
  2. <view class="common-page-padding tasks-page">
  3. <!---客户信息-->
  4. <view class="tasks-head">
  5. <view class="cell-title">
  6. <label>{{servantName}}</label>
  7. <view class="cell-right" onTap="switchList" a:if="{{homecssname}}">
  8. <image mode="scaleToFill" src="/image/switch-blue.png"/>
  9. <label class="homecssname">切换到其他家庭</label>
  10. </view>
  11. <view class="cell-right" onTap="switchList" a:if="{{!homecssname}}">
  12. <image mode="scaleToFill" src="/image/switch-grey.png"/>
  13. <label>切换到其他家庭</label>
  14. </view>
  15. </view>
  16. <view class="cell-list">
  17. {{weekday}}
  18. </view>
  19. <view class="cell-typecontnet">
  20. 保姆工种:<label>{{formate.serviceType(servantTypeValue)}}</label>
  21. </view>
  22. </view>
  23. <!---一周任务查看器-->
  24. <view class="tasks-line">
  25. <view class="common-page-padding tasks-tik">
  26. <view class="tik-title">
  27. <label>{{nowselectTime}}</label>
  28. <view class="tik-right" onTap="showtime">
  29. <image mode="scaleToFill" src="/image/icon-calendar.png"/>
  30. <label>查看其它日期</label>
  31. </view>
  32. </view>
  33. <view class="tik-week" a:for="{{datelist}}" key="{{index}}">
  34. <view class="tik-week-item {{item.cssName}}" onTap="changeWeekTime" data-value="{{item.date}}" data-id="{{item.id}}">
  35. <view class="tik-week-item-view">{{item.title}}</view>
  36. <view class="tik-week-item-view">{{item.day}}
  37. <text a:if={{item.cssName}}></text>
  38. <view a:if={{item.cssName}} class="littletik"> </view>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. <!--任务列表-->
  44. <view class="common-page-padding tasks-list">
  45. <view class="cell-title">
  46. <label>任务提醒</label>
  47. <!--<view class="tik-right"><image mode="scaleToFill" src="/image/icon-edit.png"/><label>编辑每日任务</label></view> -->
  48. </view>
  49. <!--有提醒任务-->
  50. <view a:if="{{isreminds}}" a:for="{{taskList.servantTasks}}" key="{{index}}">
  51. <view class="tasks-list-item" a:if="{{item.state == 0}}">
  52. <text> {{item.itemName}}</text>
  53. <view class="item-task-wrapper">
  54. <view class="tasks-item-no" onTap="showcancel" data-id="{{item.id}}">
  55. <image class="icon-no" mode="scaleToFill" src="/image/icon-no.png"/>
  56. </view>
  57. <view class="tasks-item-yes" onTap="showyes" data-id="{{item.id}}">
  58. <image class="icon-yes" mode="scaleToFill" src="/image/icon-yes.png"/>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="tasks-list-item" a:if="{{item.state == 1}}">
  63. <text> {{item.itemName}}</text>
  64. <view class="item-task-wrapper">
  65. <text class="finish-text" >已完成</text>
  66. </view>
  67. <!-- <view class="tasks-item-yes">
  68. <image class="icon-yes" mode="scaleToFill" src="/image/icon-yes.png"/>
  69. </view> -->
  70. </view>
  71. <view class="tasks-list-item" a:if="{{item.state == 2}}">
  72. <view class="reason-unfinish-wrapper">
  73. <text>{{item.itemName}}</text>
  74. <view class="item-task-wrapper">
  75. <label class="nogood" a:if="{{item.incompleteReason == 1}}">任务太多</label>
  76. <label class="nogood" a:if="{{item.incompleteReason == 2}}">我不会</label>
  77. <label class="nogood" a:if="{{item.incompleteReason == 3}}">任务不详细</label>
  78. </view>
  79. </view>
  80. <view class="tasks-item-finish">
  81. 未完成
  82. </view>
  83. <!-- <view class="tasks-item-yes">
  84. <image mode="scaleToFill" src="/image/icon-no.png"/>
  85. </view> -->
  86. </view>
  87. </view>
  88. <!--没有任务-->
  89. <view a:if="{{!isreminds}}">
  90. <view class="notasks">
  91. <text>还没有任务</text>
  92. </view>
  93. </view>
  94. <!--没有任务-->
  95. <view a:if="{{!workDay}}">
  96. <view class="notasks">
  97. <text>今天是休息日</text>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. <!--没有任务-->
  103. <!-- <view a:if="{{!isreminds}}">
  104. <view class="notasks">
  105. <text>还没有任务</text>
  106. </view>
  107. </view> -->
  108. <!--没有任务-->
  109. <!-- <view a:if="{{!workDay}}">
  110. <view class="notasks">
  111. <text>今天是休息日</text>
  112. </view>
  113. </view> -->
  114. <!---没有任务花销计算不显示-->
  115. <view a:if="{{isremindscose}}" class="tast-moneybox">
  116. <view class="tasks-list-money">
  117. <text class="tasks-list-pay">今日花销合计</text>
  118. <view class="tasks-list-pay-right">
  119. <input placeholder="请输入" onInput="bindKeyInput" name="cost" value="{{costvalue}}"/>
  120. <text>元</text></view>
  121. </view>
  122. <view class="tasks-set">
  123. <button type="primary" hover-class="active-button" onTap="createServant">提交</button>
  124. </view>
  125. </view>
  126. </view>
  127. <!---弹出日历--->
  128. <modal show="{{showchangetime}}">
  129. <calendar type="single" onSelect="handleSelect" />
  130. </modal>
  131. <!--弹出取消原因-->
  132. <modal
  133. show="{{showcancelbox}}"
  134. showClose="{{false}}"
  135. onButtonClick="onReasonModalClick"
  136. buttons="{{buttonsText}}"
  137. >
  138. <view slot="header">取消原因</view>
  139. <radio-group class="radio-group weui-input" onChange="swiperChange">
  140. <view a:for="{{cancellist}}" a:key={{value}} class="radio-wrapper">
  141. <label>
  142. <radio value="{{item.value}}" class="radio" checked="{{item.checked}}" color="#09AFFF"/>
  143. <text>
  144. {{item.label}}
  145. </text>
  146. </label>
  147. </view>
  148. </radio-group>
  149. </modal>
  150. <!-- <modal show="{{showcancelbox}}">
  151. <view class="cancel-box">
  152. <text>取消原因</text>
  153. <radio-group class="radio-group weui-input" onChange="swiperChange">
  154. <label a:for="{{cancellist}}" a:key={{value}}>
  155. <radio value="{{item.value}}" class="radio" checked="{{item.checked}}"/>{{item.label}}
  156. </label>
  157. </radio-group>
  158. </view>
  159. <view class="am-modal-buttons--vertical" onTap="hidecnacelbox">
  160. 取消
  161. </view>
  162. <view class="am-modal-buttons--vertical" onTap="confirmbox">
  163. 确认选择
  164. </view>
  165. </modal> -->
  166. </view>