123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <import-sjs from="../../../util/formateFuc.sjs" name="formate"></import-sjs>
- <view class="common-page-padding tasks-page">
- <!---客户信息-->
- <view class="tasks-head">
- <view class="cell-title">
- <label>{{servantName}}</label>
- <view class="cell-right" onTap="switchList" a:if="{{homecssname}}">
- <image mode="scaleToFill" src="/image/switch-blue.png"/>
- <label class="homecssname">切换到其他家庭</label>
- </view>
- <view class="cell-right" onTap="switchList" a:if="{{!homecssname}}">
- <image mode="scaleToFill" src="/image/switch-grey.png"/>
- <label>切换到其他家庭</label>
- </view>
- </view>
- <view class="cell-list">
- {{weekday}}
- </view>
- <view class="cell-typecontnet">
- 保姆工种:<label>{{formate.serviceType(servantTypeValue)}}</label>
- </view>
- </view>
- <!---一周任务查看器-->
- <view class="tasks-line">
- <view class="common-page-padding tasks-tik">
- <view class="tik-title">
- <label>{{nowselectTime}}</label>
- <view class="tik-right" onTap="showtime">
- <image mode="scaleToFill" src="/image/icon-calendar.png"/>
- <label>查看其它日期</label>
- </view>
- </view>
- <view class="tik-week" a:for="{{datelist}}" key="{{index}}">
- <view class="tik-week-item {{item.cssName}}" onTap="changeWeekTime" data-value="{{item.date}}" data-id="{{item.id}}">
- <view class="tik-week-item-view">{{item.title}}</view>
- <view class="tik-week-item-view">{{item.day}}
- <text a:if={{item.cssName}}></text>
- <view a:if={{item.cssName}} class="littletik"> </view>
- </view>
- </view>
- </view>
- </view>
- <!--任务列表-->
- <view class="common-page-padding tasks-list">
- <view class="cell-title">
- <label>任务提醒</label>
- <!--<view class="tik-right"><image mode="scaleToFill" src="/image/icon-edit.png"/><label>编辑每日任务</label></view> -->
- </view>
- <!--有提醒任务-->
- <view a:if="{{isreminds}}" a:for="{{taskList.servantTasks}}" key="{{index}}">
- <view class="tasks-list-item" a:if="{{item.state == 0}}">
- <text> {{item.itemName}}</text>
- <view class="item-task-wrapper">
- <view class="tasks-item-no" onTap="showcancel" data-id="{{item.id}}">
- <image class="icon-no" mode="scaleToFill" src="/image/icon-no.png"/>
- </view>
- <view class="tasks-item-yes" onTap="showyes" data-id="{{item.id}}">
- <image class="icon-yes" mode="scaleToFill" src="/image/icon-yes.png"/>
- </view>
-
- </view>
- </view>
- <view class="tasks-list-item" a:if="{{item.state == 1}}">
- <text> {{item.itemName}}</text>
- <view class="item-task-wrapper">
- <text class="finish-text" >已完成</text>
- </view>
- <!-- <view class="tasks-item-yes">
- <image class="icon-yes" mode="scaleToFill" src="/image/icon-yes.png"/>
- </view> -->
- </view>
- <view class="tasks-list-item" a:if="{{item.state == 2}}">
- <view class="reason-unfinish-wrapper">
- <text>{{item.itemName}}</text>
- <view class="item-task-wrapper">
- <label class="nogood" a:if="{{item.incompleteReason == 1}}">任务太多</label>
- <label class="nogood" a:if="{{item.incompleteReason == 2}}">我不会</label>
- <label class="nogood" a:if="{{item.incompleteReason == 3}}">任务不详细</label>
- </view>
- </view>
-
- <view class="tasks-item-finish">
- 未完成
- </view>
- <!-- <view class="tasks-item-yes">
- <image mode="scaleToFill" src="/image/icon-no.png"/>
- </view> -->
- </view>
- </view>
-
-
- <!--没有任务-->
- <view a:if="{{!isreminds}}">
- <view class="notasks">
- <text>还没有任务</text>
- </view>
- </view>
- <!--没有任务-->
- <view a:if="{{!workDay}}">
- <view class="notasks">
- <text>今天是休息日</text>
- </view>
- </view>
-
- </view>
- </view>
-
- <!--没有任务-->
- <!-- <view a:if="{{!isreminds}}">
- <view class="notasks">
- <text>还没有任务</text>
- </view>
- </view> -->
- <!--没有任务-->
- <!-- <view a:if="{{!workDay}}">
- <view class="notasks">
- <text>今天是休息日</text>
- </view>
- </view> -->
- <!---没有任务花销计算不显示-->
- <view a:if="{{isremindscose}}" class="tast-moneybox">
- <view class="tasks-list-money">
- <text class="tasks-list-pay">今日花销合计</text>
- <view class="tasks-list-pay-right">
- <input placeholder="请输入" onInput="bindKeyInput" name="cost" value="{{costvalue}}"/>
- <text>元</text></view>
- </view>
- <view class="tasks-set">
- <button type="primary" hover-class="active-button" onTap="createServant">提交</button>
- </view>
- </view>
- </view>
- <!---弹出日历--->
- <modal show="{{showchangetime}}">
- <calendar type="single" onSelect="handleSelect" />
- </modal>
- <!--弹出取消原因-->
- <modal
- show="{{showcancelbox}}"
- showClose="{{false}}"
- onButtonClick="onReasonModalClick"
- buttons="{{buttonsText}}"
- >
- <view slot="header">取消原因</view>
- <radio-group class="radio-group weui-input" onChange="swiperChange">
- <view a:for="{{cancellist}}" a:key={{value}} class="radio-wrapper">
- <label>
- <radio value="{{item.value}}" class="radio" checked="{{item.checked}}" color="#09AFFF"/>
- <text>
- {{item.label}}
- </text>
- </label>
- </view>
- </radio-group>
- </modal>
- <!-- <modal show="{{showcancelbox}}">
- <view class="cancel-box">
- <text>取消原因</text>
- <radio-group class="radio-group weui-input" onChange="swiperChange">
- <label a:for="{{cancellist}}" a:key={{value}}>
- <radio value="{{item.value}}" class="radio" checked="{{item.checked}}"/>{{item.label}}
- </label>
- </radio-group>
- </view>
- <view class="am-modal-buttons--vertical" onTap="hidecnacelbox">
- 取消
- </view>
- <view class="am-modal-buttons--vertical" onTap="confirmbox">
- 确认选择
- </view>
- </modal> -->
- </view>
|