| | |
| | | <view class=""> |
| | | <up-sticky bgColor="#fff"> |
| | | <view class="coreshop-ff content c-p-10"> |
| | | <up-search placeholder="请点击选择日期" @clear='clear' @click='clickTime' disabled @custom='PostMyListPage' |
| | | v-model="workTime" search-icon="calendar" @search='PostMyListPage' |
| | | <up-search placeholder="请点击选择日期" @clear='clear' @click='clickTime' disabled @custom='init' |
| | | v-model="workTime" search-icon="calendar" @search='init' |
| | | :show-action="false"></up-search> |
| | | </view> |
| | | <view class="coreshop-ff content c-p-10"> |
| | | <up-search placeholder="请输入工人名字" v-model="workerUserName" @custom='PostMyListPage' |
| | | @clear='PostMyListPage' @search='PostMyListPage'></up-search> |
| | | <up-search placeholder="请输入工人名字" v-model="workerUserName" @custom='init' |
| | | @clear='init' @search='init'></up-search> |
| | | <!-- <up-search placeholder="请点击选择打卡日期" @click='clickIcon' @clear='PostMyComDakaListPage' disabled |
| | | v-model="wordDate" search-icon="calendar" @search='PostMyComDakaListPage' |
| | | @custom='PostMyComDakaListPage'></up-search> --> |
| | |
| | | </up-empty> |
| | | </view> |
| | | </view> |
| | | <fui-date-picker range :show="datePickerShow" :value="$util.formatDate(new Date())" type="3" |
| | | <fui-date-picker range :show="datePickerShow" :value="getFirstDayOfMonth()" type="3" |
| | | @change="changePicker" @cancel="cancel"></fui-date-picker> |
| | | <view class="tabbtns"> |
| | | 合计:{{heji}} 元 |
| | |
| | | PostMyListPage(); |
| | | } |
| | | }) |
| | | |
| | | onPullDownRefresh(() => { |
| | | state.pageIndex = 1 |
| | | state.pageSize = 20 |
| | |
| | | uni.stopPullDownRefresh(); |
| | | }) |
| | | onLoad(() => { |
| | | workTime.value = getFirstDayOfMonth() + '至' + $util.formatDate(new Date()) |
| | | state.wordDateStart = getFirstDayOfMonth() //工作开始时间 |
| | | state.wordDateEnd = $util.formatDate(new Date()) |
| | | PostMyListPage() |
| | | }) |
| | | const getFirstDayOfMonth = () => { |
| | | var currentDate = new Date(); |
| | | currentDate.setDate(1); // 将日期设为1 |
| | | return $util.formatDate(currentDate); |
| | | } |
| | | const current4 = ref(0); |
| | | // const list = ref(['全部', '审核中', '已录用', '未录用']); |
| | | const changePicker = (val) => { |
| | |
| | | const cancel = () => { |
| | | datePickerShow.value = !datePickerShow.value |
| | | } |
| | | const init = ()=>{ |
| | | state.pageIndex = 1 |
| | | state.pageSize = 20 |
| | | PostMyListPage() |
| | | } |
| | | const PostMyListPage = () => { |
| | | let data = { |
| | | pageIndex: state.pageIndex, |