| | |
| | | </view> |
| | | |
| | | <view class="filter-controls" style="margin-bottom: 5px;"> |
| | | <view class="status-tabs" style="margin-right: 10px;"> |
| | | <button :class="['tab-button', arrivalFilter === -1 ? 'active' : '']" |
| | | @click="switchArrivalFilter(-1)">全部</button> |
| | | <button :class="['tab-button', arrivalFilter === 1 ? 'active' : '']" |
| | | @click="switchArrivalFilter(1)">已到达</button> |
| | | <button :class="['tab-button', arrivalFilter === 0 ? 'active' : '']" |
| | | @click="switchArrivalFilter(0)">未到达</button> |
| | | </view> |
| | | |
| | | <view class="dropdown-filter"> |
| | | <picker @change="onProjectChange" :value="projectIndex" :range="projects"> |
| | |
| | | <text class="badge normal" v-if="item.ftype == 1">委外</text> |
| | | <text class="badge normal" v-if="item.first == 1">首次来料</text> |
| | | <text class="card-title">检验单号: {{item.releaseNo}}</text> |
| | | <text class="status arrived" v-if="item.isArrival == 1">已到达</text> |
| | | <text class="status not-arrived" v-if="item.isArrival == 0">未到达</text> |
| | | <text class="status pending" v-if="item.userName==null && item.activeTab==0">待分配</text> |
| | | <text class="status assigned" v-if="item.userName!=null && item.activeTab==0">已分配</text> |
| | | <text class="status pass" v-if="item.fcheckResu=='合格' && item.activeTab==1">合格</text> |
| | |
| | | searchValue: '', |
| | | startDate:new Date().toISOString().slice(0, 10), |
| | | endDate:new Date().toISOString().slice(0, 10), |
| | | |
| | | |
| | | arrivalFilter: -1, |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | userIndex: this.projectIndex, |
| | | startDate:this.startDate, |
| | | endDate:this.endDate, |
| | | state:this.state[this.stateIndex] |
| | | state:this.state[this.stateIndex], |
| | | arrivalFilter: this.arrivalFilter |
| | | } |
| | | }).then(res => { |
| | | if (this.pageIndex === 1) { |
| | |
| | | } |
| | | await this.init(); // 自定义的刷新函数 |
| | | |
| | | }, |
| | | switchArrivalFilter(filter) { |
| | | this.arrivalFilter = filter; |
| | | this.pageIndex = 1; |
| | | this.inspectionList = []; |
| | | this.init(); |
| | | } |
| | | } |
| | | } |
| | |
| | | padding: 4px 8px; |
| | | border-radius: 4px; |
| | | font-weight: 500; |
| | | margin-left: 8px; |
| | | } |
| | | |
| | | .status.pending { |
| | |
| | | color: white; |
| | | } |
| | | |
| | | .status.arrived { |
| | | background-color: #00cd00; |
| | | color: white; |
| | | } |
| | | |
| | | .status.not-arrived { |
| | | background-color: #95a5a6; |
| | | color: white; |
| | | } |
| | | |
| | | .status.pass { |
| | | background-color: #00cd00; |
| | | color: white; |