| | |
| | | <scroll-view class="full-page" scroll-y using-sticky> |
| | | <up-sticky bgColor="#fff"> |
| | | <view class="coreshop-ff content c-p-10"> |
| | | <up-search placeholder="请点击选择日期" @clear='clear' @click='clickTime' disabled @custom='search' |
| | | v-model="workTime" search-icon="calendar" @search='search'></up-search> |
| | | <up-search placeholder="请点击选择日期" @clear='clear' @click='clickTime' disabled @custom='PostMyListPage' |
| | | v-model="workTime" search-icon="calendar" @search='PostMyListPage' :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="请点击选择打卡日期" @click='clickIcon' @clear='PostMyComDakaListPage' disabled |
| | | v-model="wordDate" search-icon="calendar" @search='PostMyComDakaListPage' |
| | | @custom='PostMyComDakaListPage'></up-search> --> |
| | | </view> |
| | | <!-- <up-subsection :list="list" :current="current4" activeColor="#f9ae3d" |
| | | @change="sectionChange"></up-subsection> --> |
| | |
| | | let workTime = ref('') |
| | | let datePickerShow = ref(false) |
| | | let loadStatus = ref('loadmore') |
| | | let workerUserName = ref('') |
| | | let totalPages = ref(0) |
| | | let listO = reactive({ |
| | | orderList: [] |
| | |
| | | PostMyListPage() |
| | | } |
| | | |
| | | const search = (index) => { |
| | | console.log(index, '------’'); |
| | | if (index == 0) { |
| | | PostMyListPage() |
| | | } else { |
| | | PostMyListPage(index - 1) |
| | | } |
| | | // const search = (index) => { |
| | | // console.log(index, '------’'); |
| | | // if (index == 0) { |
| | | // PostMyListPage() |
| | | // } else { |
| | | // PostMyListPage(index - 1) |
| | | // } |
| | | |
| | | } |
| | | // } |
| | | const clear = () => { |
| | | state.wordDateStart = "" |
| | | state.wordDateEnd = "" |
| | | PostMyListPage() |
| | | } |
| | | const clickTime = () => { |
| | | datePickerShow.value = !datePickerShow.value |
| | |
| | | const cancel = () => { |
| | | datePickerShow.value = !datePickerShow.value |
| | | } |
| | | const PostMyListPage = (orderStatus) => { |
| | | const PostMyListPage = () => { |
| | | let data = { |
| | | pageIndex: state.pageIndex, |
| | | pageSize: state.pageSize, |
| | | orderStatus |
| | | workerUserName: workerUserName.value |
| | | } |
| | | if (state.wordDateStart) { |
| | | data.wordDateStart = state.wordDateStart |