| | |
| | | <span v-if="item.status === 4">已报工</span> |
| | | <span v-if="item.status === 5">已入库</span> |
| | | <span v-if="item.status === 6">已取消</span> |
| | | <span class="green" v-if="item.status === 7">进行中</span> |
| | | <span class="green" v-if="item.status === 7">生产中</span> |
| | | </div> |
| | | </div> |
| | | <span class="f24">工单编号: {{item.code}}</span> |
| | |
| | | this.searchForm = { |
| | | mixParam: '', |
| | | startDate: '', |
| | | endDate: gsdate(new Date()), |
| | | // endDate: gsdate(new Date()), |
| | | endDate: '', |
| | | statusList: [] |
| | | } |
| | | this.page.page = 1 |
| | | this.pageCounts() |
| | | this.loadData() |
| | | this.search() |
| | | }, |
| | | searchInput(data) { |
| | | this.searchForm.mixParam = data |
| | | this.page.page = 1 |
| | | this.pageCounts() |
| | | this.loadData() |
| | | this.search() |
| | | },
|
| | | loadData() {
|
| | | getList({
|
| | |
| | | pageCounts() {
|
| | | pageCount({
|
| | | ...this.searchForm,
|
| | | endDate: this.searchForm.endDate || '',
|
| | | endDate: this.searchForm.endDate || null,
|
| | | statusList: this.searchForm.statusList.length === 0 ? this.tagList[0].id : this.searchForm
|
| | | .statusList
|
| | | }).then(res => { |
| | | console.log(res);
|
| | | if (res.code === 200) {
|
| | | this.tagList[0].num = String(res.data.startNum)
|
| | | this.tagList[1].num = String(res.data.ingNum)
|
| | |
| | | this.page.page = 1
|
| | | this.loadData()
|
| | | },
|
| | | dateConfirm(v) {
|
| | | dateConfirm(v) { |
| | | console.log(v);
|
| | | this.isOpenDate = false
|
| | | this.searchForm.startDate = v[0]
|
| | | this.searchForm.endDate = v[v.length - 1]
|
| | | this.searchForm.startDate = v.startDate
|
| | | this.searchForm.endDate = v.endDate
|
| | | },
|
| | | getLists() {
|
| | | this.page.page += 1
|
| | |
| | | onRefresh() {
|
| | | if (this.triggered) return
|
| | | this.triggered = true;
|
| | | this.page.page = 1
|
| | | this.loadData()
|
| | | this.search() |
| | | }, |
| | | search() { |
| | | this.page.page = 1 |
| | | this.loadData() |
| | | this.pageCounts() |
| | | },
|
| | | jump(item) { |
| | | // uni.navigateTo({ |
| | |
| | | width: 80%;
|
| | |
|
| | | span {
|
| | | font-size: 32rpx;
|
| | | font-size: 24rpx;
|
| | | font-weight: 500;
|
| | | color: #333333;
|
| | | overflow: hidden;
|