| | |
| | | </scroll-view> |
| | | </view> |
| | | <!-- 选择日期 --> |
| | | <u-calendar :show="timeShow" mode="range" @confirm="timeConfirm"></u-calendar> |
| | | <!-- <u-calendar :show="timeShow" mode="range" @confirm="timeConfirm" @close="timeShow = false"></u-calendar> --> |
| | | <l-calendar :lunar="false" v-model="timeShow" @change="timeConfirm" :isRange="true" activeBgColor="#305ED5" |
| | | rangeColor="#305ED5" rangeBgColor="rgba(48, 80, 213, 0.1)"></l-calendar> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | async onRefresh() { |
| | | if (this.isLoading) return; |
| | | this.isLoading = true; |
| | | await this.getLists() |
| | | await this.pageCounts() |
| | | this.isLoading = false; |
| | | this.finished = false; |
| | | this.loading = false; |
| | | this.refreshing = false; |
| | | this.getLists(); |
| | | // await this.pageCounts() |
| | | }, |
| | | // 重置 |
| | | reset() { |
| | |
| | | }, |
| | | // 日期确定 |
| | | timeConfirm(val) { |
| | | this.listData.startDate = val[0] |
| | | this.listData.endDate = val[val.length - 1] |
| | | this.listData.startDate = val.startDate |
| | | this.listData.endDate = val.endDate |
| | | this.timeShow = false |
| | | }, |
| | | // 切换工厂 |
| | |
| | | }, |
| | | // 点击标签搜索 |
| | | clickTag(ids) { |
| | | this.listData.cateIds = ids |
| | | // ids ? ids.split(',') : [] |
| | | this.listData.cateIds = ids ? ids.split(',') : [] |
| | | this.listData.page = 0 |
| | | this.finished = false |
| | | this.lists = [] |
| | |
| | | procedureIdList: this.listData.procedureIds ? this.listData.procedureIds : [], |
| | | startDate: this.listData.startDate, |
| | | endDate: this.listData.endDate, |
| | | statusList: this.listData.cateIds |
| | | // statusList: this.listData.cateIds |
| | | }).then(res => { |
| | | if (res.code === 200 && res.data) { |
| | | this.tagList[0].num = res.data.allNum.toString() |
| | |
| | | capacity: this.listData.capacity, |
| | | model: { |
| | | mixParam: this.listData.mixParam, |
| | | startDate: this.listData.startDate, |
| | | endDate: this.listData.endDate, |
| | | planDateStartDate: this.listData.startDate, |
| | | planDateEndDate: this.listData.endDate, |
| | | procedureIdList: this.listData.procedureIds ? this.listData.procedureIds : [], |
| | | factoryId: this.listData.departIds, |
| | | statusList: this.listData.cateIds ? this.listData.cateIds.split(',') : [] |
| | | statusList: this.listData.cateIds |
| | | // this.listData.cateIds ? this.listData.cateIds.split(',') : [] |
| | | }, |
| | | page: this.listData.page, |
| | | sorts: [ |
| | |
| | | ] |
| | | }).then(res => { |
| | | this.loading = false |
| | | this.isLoading = false; |
| | | this.listData.total = res.data.total |
| | | if (this.refreshing) { |
| | | this.lists = [] |
| | |
| | | }).catch(err => { |
| | | this.loading = false |
| | | this.finished = true |
| | | this.isLoading = false; |
| | | if (this.refreshing) { |
| | | this.lists = [] |
| | | this.refreshing = false; |