| | |
| | | </view> |
| | | <view class="body-container"> |
| | | <view class="container-block"> |
| | | <view class="">提煤单状态</view> |
| | | <view class="">{{ coalStatus[yyDailyList.status] }}</view> |
| | | <view class="">通知单状态</view> |
| | | <view class="">{{ coalStatus[yyDailyList.statusWeigh]||'' }}</view> |
| | | </view> |
| | | </view> |
| | | <view class="body-container"> |
| | |
| | | <view class="body-container"> |
| | | <view class="container-block"> |
| | | <view class="">皮重</view> |
| | | <view class="">{{ yyDailyList.skin || '' }}</view> |
| | | <view class="">{{ yyDailyList.skin || 0 }}</view> |
| | | </view> |
| | | </view> |
| | | <view class="body-container"> |
| | | <view class="container-block"> |
| | | <view class="">毛重</view> |
| | | <view class="">{{ yyDailyList.hair || '' }}</view> |
| | | <view class="">{{ yyDailyList.hair || 0 }}</view> |
| | | </view> |
| | | </view> |
| | | <view class="body-container"> |
| | | <view class="container-block"> |
| | | <view class="">净重</view> |
| | | <view class="">{{ yyDailyList.clean || '' }}</view> |
| | | <view class="">{{ yyDailyList.clean || 0 }}</view> |
| | | </view> |
| | | </view> |
| | | <view class="body-container"> |
| | | <view class="container-block"> |
| | | <view class="">订单剩余量</view> |
| | | <view class="">{{ yyDailyList.allowance || '' }}</view> |
| | | <view class="">{{ yyDailyList.allowance || 0 }}</view> |
| | | </view> |
| | | </view> |
| | | <view class="body-container"> |
| | | <view class="container-block"> |
| | | <view class="">提煤单编号</view> |
| | | <view class="">通知单编号</view> |
| | | <view class="">{{ yyDailyList.code || '' }}</view> |
| | | </view> |
| | | </view> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <weigh-item :list="showWeigh"></weigh-item> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import combinedTitle from '@/components/combined-title/combined-title.vue'; |
| | | |
| | | export default { |
| | | components: { |
| | | combinedTitle |
| | | }, |
| | | onLoad(params) { |
| | | this.orderPlanId = params.orderPlanId; |
| | | this.index = params.index; |
| | | }, |
| | | onShow() { |
| | | this.GetOrderPlanDetail(); |
| | | }, |
| | | data() { |
| | | return { |
| | | orderPlanId: '', |
| | | yyDailyList: {}, |
| | | orderPlanDetail: {}, |
| | | coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤仓', '出煤仓', '放空', '作废', '入场申请', '进入场院'], |
| | | index: '' |
| | | }; |
| | | }, |
| | | methods: { |
| | | GetOrderPlanDetail() { |
| | | uni.showLoading({ |
| | | title: '加载中...' |
| | | }); |
| | | this.$reqGet('xiangqingList', { orderPlanId: this.orderPlanId }).then(res => { |
| | | if (res.code == 0) { |
| | | this.orderPlanDetail = res.data; |
| | | this.yyDailyList = res.data.yyDailyList.filter((v, i) => i == this.index)[0]; |
| | | console.log(this.yyDailyList); |
| | | uni.hideLoading(); |
| | | } else { |
| | | this.$u.toast('加载失败'); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | @mixin flex { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | .main { |
| | | width: 100%; |
| | | margin-top: vww(10); |
| | | @include flex justify-content: center; |
| | | .main-body { |
| | | width: 690rpx; |
| | | height: 1062rpx; |
| | | background: #ffffff; |
| | | box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(73, 120, 240, 0.14), 0rpx 7rpx 45rpx 0rpx rgba(73, 120, 240, 0.12); |
| | | border-radius: 20rpx; |
| | | @include flex flex-direction: column; |
| | | align-items: flex-start; |
| | | .body-container { |
| | | width: 100%; |
| | | height: vww(56); |
| | | border-bottom: vww(1) solid #d6d6d6; |
| | | @include flex; |
| | | justify-content: center; |
| | | .container-block { |
| | | width: 96%; |
| | | height: vww(56); |
| | | @include flex; |
| | | import combinedTitle from '@/components/combined-title/combined-title.vue'; |
| | | import weighItem from '@/components/weighItem.vue' |
| | | import { onlineurl } from '@/api/request.js' |
| | | export default { |
| | | components: { |
| | | combinedTitle, |
| | | weighItem |
| | | }, |
| | | onLoad(params) { |
| | | this.id = params.id; |
| | | }, |
| | | onShow() { |
| | | this.GetOrderPlanDetail(); |
| | | }, |
| | | data() { |
| | | return { |
| | | id: '', |
| | | yyDailyList: {}, |
| | | orderPlanDetail: {}, |
| | | coalStatus: ['未称重', '称重中', '验质中', '称重完成', '处理完成'], |
| | | index: '', |
| | | onlineurl, |
| | | }; |
| | | }, |
| | | computed: { |
| | | // 展示皮毛净 |
| | | showWeigh() { |
| | | return this.orderPlanDetail.tmTaskCoalItems ? this.orderPlanDetail.tmTaskCoalItems : [] |
| | | } |
| | | }, |
| | | methods: { |
| | | GetOrderPlanDetail() { |
| | | uni.showLoading({ |
| | | title: '加载中...' |
| | | }); |
| | | this.$reqGet('getTakeCoal', { takeCoalId: this.id }).then(res => { |
| | | if (res.code == 0) { |
| | | this.orderPlanDetail = res.data; |
| | | this.yyDailyList = res.data; |
| | | uni.hideLoading(); |
| | | } else { |
| | | this.$u.toast('加载失败'); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | .last { |
| | | border-bottom: none; |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped |
| | | lang="scss"> |
| | | @mixin flex { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | |
| | | .main { |
| | | width: 100%; |
| | | margin-top: vww(10); |
| | | color: #303030; |
| | | @include flex; |
| | | flex-direction: column; |
| | | |
| | | .main-body { |
| | | width: 690rpx; |
| | | height: 1062rpx; |
| | | background: #ffffff; |
| | | box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(73, 120, 240, 0.14), 0rpx 7rpx 45rpx 0rpx rgba(73, 120, 240, 0.12); |
| | | border-radius: 20rpx; |
| | | @include flex flex-direction: column; |
| | | align-items: flex-start; |
| | | |
| | | .body-container { |
| | | color: #303030; |
| | | width: 100%; |
| | | height: vww(56); |
| | | border-bottom: vww(1) solid #d6d6d6; |
| | | @include flex; |
| | | justify-content: center; |
| | | |
| | | .container-block { |
| | | width: 96%; |
| | | height: vww(56); |
| | | @include flex; |
| | | } |
| | | } |
| | | |
| | | .last { |
| | | border-bottom: none; |
| | | } |
| | | } |
| | | |
| | | .weigh-history { |
| | | width: 690rpx; |
| | | height: 100%; |
| | | min-height: 420rpx; |
| | | margin: vww(40) auto; |
| | | margin-top: 20rpx; |
| | | background: #ffffff; |
| | | box-shadow: 4rpx 6rpx 51rpx 0rpx rgba(73, 120, 240, 0.11); |
| | | border-radius: 20rpx; |
| | | position: relative; |
| | | font-size: 30rpx; |
| | | font-weight: 300; |
| | | color: #303030; |
| | | overflow: hidden; |
| | | |
| | | |
| | | .block-main { |
| | | display: grid; |
| | | grid-template-columns: auto; |
| | | grid-template-rows: repeat(auto-fit, minmax(40rpx, 1fr)); |
| | | gap: auto 5rpx; |
| | | width: 94%; |
| | | height: 100%; |
| | | min-height: 380rpx; |
| | | margin: vww(18) vww(7) vww(11) vww(17); |
| | | gap: 10rpx 20rpx; |
| | | |
| | | .weigh-item { |
| | | width: 100%; |
| | | height: vww(80); |
| | | @include flex; |
| | | flex-direction: column; |
| | | justify-content: space-around; |
| | | align-items: flex-start; |
| | | |
| | | .item-block { |
| | | width: 100%; |
| | | height: vww(36); |
| | | @include flex; |
| | | justify-content: space-around; |
| | | |
| | | .item { |
| | | min-width: vww(50); |
| | | height: vww(45); |
| | | font-size: 21rpx; |
| | | font-weight: 400; |
| | | color: #ffffff; |
| | | text-align: center; |
| | | line-height: vww(30); |
| | | @include flex; |
| | | |
| | | .concrete { |
| | | width: vww(36); |
| | | height: vww(36); |
| | | } |
| | | |
| | | .num { |
| | | font-size: 40rpx; |
| | | font-weight: 300; |
| | | color: #303030; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .uni-table { |
| | | .uni-table-tr { |
| | | padding: 0; |
| | | border: vww(1) solid #c6c6c6; |
| | | .uni-table-th { |
| | | font-size: vww(14); |
| | | height: vww(30); |
| | | line-height: vww(30); |
| | | padding: vww(5) vww(10); |
| | | color: #111111; |
| | | font-weight: 500; |
| | | background: #e2e2e2; |
| | | } |
| | | .uni-table-td { |
| | | font-size: vww(14); |
| | | font-weight: 400; |
| | | height: vww(30); |
| | | line-height: vww(30); |
| | | padding: vww(5) vww(10); |
| | | color: #111111; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | </style> |