| | |
| | | </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" v-if="item.carNum != item.carNumSurplus1"></u-button> |
| | | <u-button text="转发" type="primary" @tap.stop="forwardClick(item)" shape="circle"></u-button> |
| | | </view> |
| | | </template> |
| | | <template v-slot:right-top> |
| | |
| | | <uni-th align="center" width="80">提煤单个数</uni-th> |
| | | </uni-tr> |
| | | <uni-tr v-for="(item, index) in historyCoalData" :key="index"> |
| | | <uni-td align="center">{{ item.sendDate }}</uni-td> |
| | | <uni-td align="left">{{ item.deptName }}</uni-td> |
| | | <uni-td align="center">{{ item.filedName }}</uni-td> |
| | | <uni-td align="center">{{ item.coalName }}</uni-td> |
| | | <uni-td align="center">{{ item.orderCode }}</uni-td> |
| | | <uni-td align="center">{{ item.carNumSurplus }}</uni-td> |
| | | <uni-td align="center">{{ item.tmCount }}</uni-td> |
| | | <uni-td align="center" @row-click="faYundetail(item)">{{ item.sendDate }}</uni-td> |
| | | <uni-td align="left" @row-click="faYundetail(item)">{{ item.deptName }}</uni-td> |
| | | <uni-td align="center" @row-click="faYundetail(item)">{{ item.filedName }}</uni-td> |
| | | <uni-td align="center" @row-click="faYundetail(item)">{{ item.coalName }}</uni-td> |
| | | <uni-td align="center" @row-click="faYundetail(item)">{{ item.orderCode }}</uni-td> |
| | | <uni-td align="center" @row-click="faYundetail(item)">{{ item.carNumSurplus }}</uni-td> |
| | | <uni-td align="center" @row-click="faYundetail(item)">{{ item.tmCount }}</uni-td> |
| | | </uni-tr> |
| | | </uni-table> |
| | | <view class="more_text" v-if="showMoreData">没有数据了...</view> |
| | |
| | | combinedTitle |
| | | }, |
| | | watch: { |
| | | orderPlanDataStore(v) { |
| | | if (v.length > 0) { |
| | | console.log(v, 'props'); |
| | | orderPlanDataStore: { |
| | | handler(v) { |
| | | this.orderPlanData = v; |
| | | } |
| | | }, |
| | | deep: true, |
| | | immediate: true |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | loading: false, |
| | | scrollTop: 0, |
| | | // 每页数据量 |
| | | pageSize: 5, |
| | | pageSize: 10, |
| | | // 当前页 |
| | | pageCurrent: 1, |
| | | // 数据总量 |
| | |
| | | this.loading = false; |
| | | } |
| | | }); |
| | | }, |
| | | change2(e) { |
| | | this.pageCurrent = e.current; |
| | | this.getJhOrderPlanDataPage(); |
| | | }, |
| | | // 上拉加载 |
| | | historyScrolltolower() { |
| | |
| | | }, |
| | | // 提煤单详情 |
| | | cardBodyClick(name) { |
| | | console.log(name, 'name'); |
| | | let code = null; |
| | | let cars2 = null; |
| | | this.orderPlanData.forEach(item => { |
| | | if (item.id == name) { |
| | | code = item.code; |
| | | cars2 = item.cars2; |
| | | } |
| | | }); |
| | | uni.navigateTo({ |
| | | url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${name}&code=${code}` |
| | | url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${name}&code=${code}&cars2=${cars2}` |
| | | }); |
| | | }, |
| | | // 点击历史提煤单一行获取详情 |
| | | faYundetail(v) { |
| | | uni.navigateTo({ |
| | | url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&cars2=${v.cars2}` |
| | | }); |
| | | }, |
| | | // 转发 |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .uni-pagination-box { |
| | | height: 60rpx; |
| | | } |
| | | .scroll-Y { |
| | | height: 300rpx; |
| | | height: 600rpx; |
| | | .more_text { |
| | | color: #999; |
| | | font-size: 24rpx; |