| | |
| | | 张 |
| | | </view> |
| | | <view class="card-left__utils"> |
| | | <u-button @tap.stop="receiveClick(item)" text="领取" type="primary" v-if="item.cars2 != item.carNum" shape="circle"></u-button> |
| | | <u-button text="转发" type="primary" @tap.stop="forwardClick(item)" shape="circle"></u-button> |
| | | <u-button @tap.stop="receiveClick(item)" text="领取" type="primary" v-if="item.carNumSurplus != 0" shape="circle"></u-button> |
| | | <u-button text="转发" type="primary" @tap.stop="forwardClick(item)" shape="circle" v-if="item.carNumSurplus1 != 0"></u-button> |
| | | </view> |
| | | </template> |
| | | <template v-slot:right-top> |
| | |
| | | <uni-td align="center" @row-click="faYundetail(item)">{{ item.tmCount }}</uni-td> |
| | | </uni-tr> |
| | | </uni-table> |
| | | <view class="more_text" v-if="showMoreData">没有数据了...</view> |
| | | <view class="more_text" v-if="showMoreData && historyCoalData.length !== 0">没有数据了...</view> |
| | | </scroll-view> |
| | | </view> |
| | | <!-- 领取弹出框 --> |
| | |
| | | init() { |
| | | this.GetOrderPlan(); |
| | | this.getJhOrderPlanDataPage(); |
| | | if (this.pageCurrent * this.pageSize >= this.total) return (this.showMoreData = true); |
| | | }, |
| | | // 获取发运计划列表 |
| | | GetOrderPlan() { |
| | |
| | | this.loading = true; |
| | | this.$reqGet('getJhOrderPlanDataPage', { current: this.pageCurrent, size: this.pageSize }).then(res => { |
| | | if (res.data.records) { |
| | | this.historyCoalData = [...this.historyCoalData, ...res.data.records]; |
| | | this.total = res.data.total; |
| | | if (this.pageCurrent > 1) { |
| | | this.historyCoalData = this.historyCoalData.concat(res.data.records); |
| | | this.loading = false; |
| | | } else { |
| | | this.historyCoalData = res.data.records; |
| | | this.loading = false; |
| | | } |
| | | // this.historyCoalData = [...this.historyCoalData, ...res.data.records]; |
| | | // this.total = res.data.total; |
| | | // this.loading = false; |
| | | } |
| | | }); |
| | | }, |