| | |
| | | <view class=""> |
| | | <view class="customer-index"> |
| | | <view class="customer-index-body"> |
| | | <!-- 待领取和转发提煤单 --> |
| | | <!-- 待领取和转发通知单 --> |
| | | <view class="wait-collection" |
| | | :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/customerbanner.png)`, backgroundSize: 'contain', backgroundRepeat: 'no-repeat' }"> |
| | | </view> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="third-line"> |
| | | <view class="time-icon"> |
| | | <!-- <view class="time-icon"> |
| | | <view |
| | | :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/carNO.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'24rpx',height:'24rpx',lineHeight:'24rpx'}"> |
| | | </view> |
| | | </view> |
| | | <view class="car-num">{{ item.carNos||item.carNo||''}}</view> |
| | | </view> --> |
| | | <view class="car-num">{{ item.code||''}}</view> |
| | | </view> |
| | | <view class="third-line"> |
| | | <view class="time-icon"> |
| | |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 历史提煤单 --> |
| | | <!-- 历史通知单 --> |
| | | <view class="history-numbers"> |
| | | <combined-title title="历史提煤单"></combined-title> |
| | | <combined-title title="历史通知单"></combined-title> |
| | | <scroll-view :scroll-top="scrollTop" |
| | | scroll-y="true" |
| | | class="scroll-Y" |
| | |
| | | v-else-if="roleType == 2">{{ item.carNumSurplus }}</view> |
| | | </view> |
| | | <view class="third-line"> |
| | | <view class="third-line_text">提煤单个数:</view> |
| | | <view class="third-line_text">通知单个数:</view> |
| | | <view class="third-line_num">{{ item.tmCount }}</view> |
| | | </view> |
| | | </view> |
| | |
| | | |
| | | <script> |
| | | import { onlineurl } from '@/api/request.js' |
| | | import card from '@/components/card/card.vue'; |
| | | import combinedTitle from '@/components/combined-title/combined-title.vue'; |
| | | import { customerId } from '@/utils/status'; |
| | | export default { |
| | |
| | | } |
| | | }, |
| | | components: { |
| | | card, |
| | | combinedTitle |
| | | }, |
| | | watch: { |
| | |
| | | data() { |
| | | return { |
| | | orderPlanData: [], |
| | | show: false, // 领取提煤单弹出框 |
| | | show: false, // 领取通知单弹出框 |
| | | receiveNum: null, |
| | | getOrderNum: { |
| | | num: '', |
| | |
| | | showMoreData: false, |
| | | cars2: "", |
| | | carNum: "", |
| | | // 剩余的提煤单数量 |
| | | // 剩余的通知单数量 |
| | | carNumSurplus: '', |
| | | canClick: false, |
| | | onlineurl: '' |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // 获取历史提煤单 |
| | | // 获取历史通知单 |
| | | getJhOrderPlanDataPage() { |
| | | uni.showLoading({ |
| | | title: '加载中' |
| | |
| | | this.pageCurrent++; |
| | | this.getJhOrderPlanDataPage(); |
| | | }, |
| | | //fix 点击提煤单返回会增加重复数据 |
| | | //fix 点击通知单返回会增加重复数据 |
| | | ArrSet(Arr, id) { |
| | | var obj = {}; |
| | | const arrays = Arr.reduce((setArr, item) => { |
| | |
| | | */ |
| | | receiveClick(item) { |
| | | this.show = true; |
| | | this.getOrderNum.id = item.id; // 获取领取提煤单的id |
| | | this.getOrderNum.id = item.id; // 获取领取通知单的id |
| | | this.cars2 = item.cars2 |
| | | this.carNum = item.carNum |
| | | }, |
| | |
| | | console.log('输入框', e); |
| | | this.canClick = e > (this.carNum - this.cars2) |
| | | if (this.canClick) { |
| | | this.$u.toast('已超过当前日计划提煤单数量,请重新输入') |
| | | this.$u.toast('已超过当前日计划通知单数量,请重新输入') |
| | | } |
| | | }, |
| | | // 提煤单详情 |
| | | // 通知单详情 |
| | | cardBodyClick(v) { |
| | | uni |
| | | .navigateTo({ url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&code=${v.code}&cars2=${v.cars2?v.cars2:""}` }); |
| | | }, |
| | | // 点击历史提煤单获取详情 |
| | | // 点击历史通知单获取详情 |
| | | faYundetail(v) { |
| | | uni.navigateTo({ |
| | | url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&cars2=${v.cars2}&coalName=${v.coalName}&deptName=${v.deptName}` |