| | |
| | | <view class=""> |
| | | <view class="customer-index"> |
| | | <view class="customer-index-body"> |
| | | <!-- 待领取和转发提煤单 --> |
| | | <!-- 待领取和转发通知单 --> |
| | | <view class="wait-collection" |
| | | style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/customerbanner.png') no-repeat;background-size:contain"> |
| | | :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/customerbanner.png)`, backgroundSize: 'contain', backgroundRepeat: 'no-repeat' }"> |
| | | </view> |
| | | <!-- 引导页 --> |
| | | <view class="noob-tour" |
| | | v-if="roleType===4"> |
| | | <combined-title title="操作指引"></combined-title> |
| | | <u-cell-group> |
| | | <u-cell title="新手指引" |
| | | name='1' |
| | | :clickable="true" |
| | | @click="noobTour"> |
| | | <u-badge type="primary" |
| | | value="01" |
| | | slot='icon'></u-badge> |
| | | <u-icon slot="value" |
| | | name="arrow-right" |
| | | size="30" |
| | | color="#b8b8b8"></u-icon> |
| | | </u-cell> |
| | | </u-cell-group> |
| | | </view> |
| | | <view style="position: relative;top: -120px;"> |
| | | <u-empty mode="data" |
| | |
| | | </view> |
| | | </view> |
| | | <view class="third-line"> |
| | | <view class="time-icon"> |
| | | <!-- <view class="time-icon"> |
| | | <view |
| | | style="width: 24rpx;height: 24rpx;li ne-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/carNO.png') no-repeat;background-size: cover"> |
| | | :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||''}}</view> |
| | | </view> --> |
| | | <view class="car-num">{{ item.code||''}}</view> |
| | | </view> |
| | | <view class="third-line"> |
| | | <view class="time-icon"> |
| | | <view |
| | | style="width: 24rpx;height: 24rpx;li ne-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clock.png') no-repeat;background-size: cover"> |
| | | :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/clock.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'24rpx',height:'24rpx',lineHeight:'24rpx'}"> |
| | | </view> |
| | | </view> |
| | | <view class="send-date">{{ item.sendDate }}</view> |
| | |
| | | v-if="item.orderType!=='外购'"> |
| | | <view class="button-image">转发</view> |
| | | </view> |
| | | <view class="forward" |
| | | <!-- <view class="forward" |
| | | @click.stop="validateClick(index)" |
| | | v-if='roleType===4'> |
| | | <view class="button-image">验质</view> |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | </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> |
| | | <view class="fourth"> |
| | | <view class="fourth-icon"> |
| | | <view |
| | | style="width: 24rpx;height: 24rpx;line-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clock.png') no-repeat;background-size: cover"> |
| | | :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/clock.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'24rpx',height:'24rpx',lineHeight:'24rpx'}"> |
| | | </view> |
| | | </view> |
| | | <view class="senddate">{{ item.sendDate }}</view> |
| | |
| | | <view class="fourth"> |
| | | <view class="fourth-icon"> |
| | | <view |
| | | style="width: 26rpx;height: 26rpx;line-height: 26rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/carnNUm.png') no-repeat;background-size: cover;"> |
| | | :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/carnNUm.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'26rpx',height:'26rpx',lineHeight:'26rpx'}"> |
| | | </view> |
| | | </view> |
| | | <view class="senddate">{{ item.orderCode }}</view> |
| | |
| | | v-if="showMoreData && historyCoalData.length !== 0">没有数据了...</view> |
| | | <view class="white-block"></view> |
| | | </scroll-view> |
| | | </view> |
| | | </view> |
| | | <!-- 图片预览弹出框 --> |
| | | <view class="previewImage-container"> |
| | | <view class="previewImage-container"> |
| | | <previewImage ref="previewImage" |
| | | :imgs="TourImgList" |
| | | :saveBtn='false'></previewImage> |
| | | </view> |
| | | </view> |
| | | <!-- 领取弹出框 --> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import card from '@/components/card/card.vue'; |
| | | import { onlineurl } from '@/api/request.js' |
| | | import combinedTitle from '@/components/combined-title/combined-title.vue'; |
| | | import { customerId } from '@/utils/status'; |
| | | import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue'; |
| | | export default { |
| | | props: { |
| | | orderPlanDataStore: { |
| | |
| | | } |
| | | }, |
| | | components: { |
| | | card, |
| | | combinedTitle |
| | | combinedTitle, |
| | | previewImage |
| | | }, |
| | | watch: { |
| | | orderPlanDataStore: { |
| | |
| | | computed: { |
| | | roleType() { |
| | | return uni.getStorageSync('roleType'); |
| | | } |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | orderPlanData: [], |
| | | show: false, // 领取提煤单弹出框 |
| | | show: false, // 领取通知单弹出框 |
| | | receiveNum: null, |
| | | getOrderNum: { |
| | | num: '', |
| | |
| | | showMoreData: false, |
| | | cars2: "", |
| | | carNum: "", |
| | | // 剩余的提煤单数量 |
| | | // 剩余的通知单数量 |
| | | carNumSurplus: '', |
| | | canClick: false |
| | | canClick: false, |
| | | onlineurl, |
| | | previewImageShow: false, |
| | | previewImageSrc: '', |
| | | TourImgList: ['https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality01.jpg', |
| | | 'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality02.jpg', |
| | | 'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality03.jpg', |
| | | 'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality04.jpg', |
| | | 'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality05.jpg' |
| | | ], |
| | | imgIndex: 0, |
| | | startX: 0, // 触摸起始点的X坐标 |
| | | endX: 0, // 触摸结束点的X坐标 |
| | | transition: false |
| | | }; |
| | | }, |
| | | onLoad() {}, |
| | |
| | | init() { |
| | | this.GetOrderPlan(); |
| | | this.getJhOrderPlanDataPage(); |
| | | this.onlineurl = onlineurl; |
| | | }, |
| | | // 获取发运计划列表 |
| | | GetOrderPlan() { |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // 获取历史提煤单 |
| | | // 获取历史通知单 |
| | | 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}` }); |
| | | .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}` |
| | |
| | | uni |
| | | .navigateTo({ url: `/pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan?index=${index}` }); |
| | | }, |
| | | noobTour(v) { |
| | | this.$refs.previewImage.open('https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality01.jpg') |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | |
| | | } |
| | | } |
| | | |
| | | .noob-tour { |
| | | margin-bottom: vww(10); |
| | | position: relative; |
| | | top: -120px; |
| | | } |
| | | |
| | | .u-popup { |
| | | .u-transition { |
| | | .u-popup__content { |
| | | .editDriverPopup-container-box {} |
| | | |
| | | //closeIcon |
| | | .u-popup__content__close--top-right { |
| | | .u-icon { |
| | | .u-icon__icon { |
| | | font-size: vww(20) !important; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | ::v-deep.customer-index { |
| | | width: 100%; |
| | | margin: 0 auto; |
| | |
| | | } |
| | | |
| | | .car-num { |
| | | color: #515151; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | } |
| | | |
| | | .time-icon { |
| | | width: 24rpx; |
| | | height: 24rpx; |
| | | line-height: 24rpx; |
| | | } |
| | | } |
| | | |
| | | .fourth-line { |