From 3e32c4ec8d58772e2e52ea7518db5ec76d378b21 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 01 八月 2024 14:22:37 +0800 Subject: [PATCH] feat:H5及小程序修改点 --- pages/loadUnload-page/orderPlanList/index.vue | 302 ++++++++++++++++++++++++++------------------------ 1 files changed, 157 insertions(+), 145 deletions(-) diff --git a/pages/loadUnload-page/orderPlanList/index.vue b/pages/loadUnload-page/orderPlanList/index.vue index 5ea45a2..517212b 100644 --- a/pages/loadUnload-page/orderPlanList/index.vue +++ b/pages/loadUnload-page/orderPlanList/index.vue @@ -1,7 +1,7 @@ <template> <div class="loadUnPage"> <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"> @@ -11,54 +11,110 @@ iconSize="1000" text="鏆傛棤鏁版嵁" v-if="orderPlanList.length == 0"></u-empty> - <view class="history-information" - v-for="(item, index) in orderPlanList" - :key="index" - @click="faYundetail(item)"> - <view class="first"> - <view class="">{{ item.deptName || '' }}</view> - <view class=""><u-icon name="arrow-right" - color="#999999" - size="40"></u-icon></view> - </view> - <view class="second"> - <view class="coal-name">{{ item.coalName || '' }}</view> - <view class="order-type">{{ item.orderType || '' }}</view> - </view> - <view class="third"> - <view class="third-line"> - <view class="third-line_text">棰嗗彇鏁�:</view> - <view class="third-line_num">{{ item.cars2 }}</view> - </view> - <view class="third-line"> - <view class="third-line_text">鍓╀綑鏁�:</view> - <view class="third-line_num" - v-if="roleType == 1">{{ item.carNumSurplus1 }}</view> - <view class="third-line_num" - v-else-if="roleType == 2">{{ item.carNumSurplus }}</view> - </view> - <view class="third-line"> - <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:9096/appimg/image/banner/clock.png') no-repeat;background-size: cover"> - </view> - </view> - <view class="senddate">{{ item.sendDate }}</view> - </view> - <view class="fourth"> - <view class="fourth-icon"> - <view - style="width: 26rpx;height: 26rpx;line-height: 26rpx;background: url('https://mx.jzeg.cn:9096/appimg/image/banner/carnNUm.png') no-repeat;background-size: cover;"> - </view> - </view> - <view class="senddate">{{ item.orderCode }}</view> + <view class="collection-form"> + <!-- <view class="collection-form-item" + v-for="(item, index) in orderPlanList" + :key="index" + @click="faYundetail(item)"> + <view class="first-line"> + <view class="dispatch-receive"> + <view class="dispatch-dept">{{ item.customerName }}</view> + <view class="black-bar"></view> + <view class="dispatch">{{ item.filedName }}</view> </view> </view> + <view class="second-line" + style="width: 94%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"> + <view> {{item.customerName}} </view> + <view class="order-type">{{item.bunkerName}}</view> + </view> + + <view class="second-line"> + <view class="coal-name"> + <view class="">{{ item.productNames || item.productName }}</view> + <view class="black-bar"></view> + <view class="coal-type" + v-if="item.orderType">{{ item.orderType }}</view> + </view> + </view> + <view class="second-line"> + {{item.orderCode}} + </view> + <view class="five-line"> + <view>{{ 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:9096/appimg/image/banner/clock.png') no-repeat;background-size: cover"> + </view> + </view> + <view class="send-date">{{ item.sendDate }}</view> + </view> + + </view> --> + <!-- 鏃堕棿鐐� ======= 鎻愮叅鍗� --> + <view class="collection-form-item" + v-for="(item, index) in orderPlanList" + :key="index"> + <view class="formTop"> + <text>{{item.startTime}} ~ {{item.endTime}}</text> + <view style="marginRight:20rpx"> + <text>鍙戣繍鏃ユ湡锛歿{item.sendDate}}</text> + </view> + </view> + <view class="formBottom"> + <uni-table border stripe + emptyText="鏆傛棤鏇村鏁版嵁"> + <uni-tr> + <uni-th width='120' + align="center">鎿嶄綔</uni-th> + <uni-th align="center" width='120'>浜у搧</uni-th> + <uni-th align="center" width='120'>杞︾墝鍙�</uni-th> + <uni-th align="center" width='200'>浠撳簱</uni-th> + <uni-th align="center" width='100'>鐨噸</uni-th> + <uni-th align="center" width='100'>姣涢噸</uni-th> + <uni-th align="center" width='100'>鍑�閲�</uni-th> + <uni-th align="center" width='100'>鏁伴噺</uni-th> + <!-- <uni-th align="center">浠撳簱</uni-th> --> + <!-- <uni-th align="center">鐘舵��</uni-th> --> + + </uni-tr> + <uni-tr v-for="(subItem, index2) in item.tmTaskCoalList" :key="index2"> + <uni-td align='center'> + <u-button text='鏌ョ湅' @click="showMore(subItem)"></u-button> + </uni-td> + <uni-td align="center"> + <view>{{ subItem.productName }}</view></uni-td> + <uni-td> + + <view>{{ subItem.carNo }}</view></uni-td> + <uni-td> + <view>{{ subItem.bunkerName }}</view> + </uni-td> + <uni-td> + <view class="name" v-if="subItem.skin">{{ Number(subItem.skin).toFixed(2) || '' }}</view> + </uni-td> + <uni-td> + <view class="name" v-if="subItem.hair"> {{ Number(subItem.hair).toFixed(2) || '' }}</view> + </uni-td> + <uni-td> + <view class="name" v-if="(subItem.clean || (subItem.clean && subItem.clean === 0))">{{ Number(subItem.clean).toFixed(2) || ''}}</view> + </uni-td> + <uni-td> + <view class="name">{{ subItem.productQuantity }}</view> + </uni-td> +<!-- + 聽 <uni-td align="center"> + <view>{{ subItem.bunkerName }}</view></uni-td> --> + <!-- <uni-td align="center"> + <view class="name">{{ subItem.statusView }}</view></uni-td> --> + + </uni-tr> + </uni-table> + </view> + </view> + </view> <view class="more_text" v-if="showMoreData && historyCoalData.length !== 0">娌℃湁鏁版嵁浜�...</view> <view class="white-block"></view> @@ -89,25 +145,34 @@ } }, onLoad(){ - this.init(); + // this.init(); }, + onShow(){ + this.init(); + }, methods: { //鍒濆鍖� init(){ - this.$reqGet('getMyPlanListByBunkerId',{bunkerId:this.bunkerId}).then((res) => { + console.log('init',localStorage.getItem('bunkerIds')) + this.$reqGet('getMyPlanListByBunkerId',{bunkerIds:localStorage.getItem('bunkerIds')}).then((res) => { console.log(res,'res') this.orderPlanList = res.data; }) }, faYundetail(v) { uni.navigateTo({ - url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&cars2=${v.cars2}&coalName=${v.coalName}&deptName=${v.deptName}` + url: `/subPages/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&cars2=${v.cars2}&coalName=${v.coalName}&deptName=${v.deptName}&productNames=${v.productNames}&roleType=${5}&customerName=${v.customerName}` + }); + }, + showMore(item) { + uni.navigateTo({ + url: `/subPages/fayunPlanDetails/fayunPlanMore/fayunPlanMore?orderPlanId=${this.orderPlanId}&id=${item.id}&orderType=${item.orderType}` }); }, }, computed:{ - bunkerId(){ - return uni.getStorageSync('bunkerId') + bunkerIds(){ + return localStorage.getItem('bunkerIds') }, // historyScrolltolower() { // if (this.pageCurrent * this.pageSize >= this.total) return (this.showMoreData = true); @@ -120,107 +185,54 @@ </script> <style lang="scss" scoped> + .five-line{ + height: 50rpx; + line-height: 24rpx; + font-size: 28rpx; + font-weight: 300; + margin-left: 32rpx; + font-size: 25rpx; + } @mixin flex { display: flex; justify-content: space-between; align-items: center; } + .scroll-Y{ + height: 100%; + } .loadUnPage{ width: 100%; -.history-numbers { - width: 100%; - position: relative; - top: vww(-10); - - .history-information { - width: 690rpx; - height: 398rpx; - margin: vww(10) vww(15); - 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; - justify-content: space-evenly; - overflow: hidden; - - .first { - width: 96%; - height: 34rpx; - font-size: 32rpx; - font-weight: 300; - color: #303030; - @include flex; - margin: vww(10) vww(10) 0; - } - - .second { - width: 100%; - height: 31rpx; - font-size: 30rpx; - font-weight: 300; - color: #515151; - margin: vww(10) vww(10) 0; - @include flex; - justify-content: flex-start; - - .coal-name { - min-width: vww(30); - height: vww(20); - margin-right: vww(21); - } - - .order-type { - color: #035cfb; - border: 2px solid #035cfb; - border-radius: 4rpx; - padding: vww(2) vww(4); - text-align: center; - } - } - - .third { - width: 96%; - height: 31rpx; - font-size: 30rpx; - font-weight: 300; - color: #515151; - margin: vww(10) vww(10) 0; - @include flex; - - .third-line { - @include flex; - - &_text { - color: #919090; - } - - &_num { - color: #035cfb; - } - } - } - - .fourth { - width: 100%; - height: 31rpx; - font-size: 30rpx; - font-weight: 300; - color: #515151; - margin: vww(10) vww(10) 0; - @include flex; - - .fourth-icon { - width: vww(13); - height: vww(13); - margin-right: vww(14); - } - - .senddate { - flex: 1; - } - } + height: calc(100vh - 8vh); + overflow-y: auto; +} +.history-numbers{ + height: 100%; +} +.collection-form{ + height: 100%; + margin-top: 10rpx; + display:flex; + justify-content: center; + .collection-form-item{ + width: 95%; + height: 400rpx; + box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1); + .formTop{ + width: 100%; + height: 100rpx; + background: linear-gradient(-2deg, #ffffff 0%, #0055fe 100%); + font-size: 40rpx; + display: flex; + align-items: center; + justify-content: space-between; + font-weight: bold; + color: #fff; + text-indent: 20rpx; } } + /deep/ .uni-table{ + min-width: 0rpx!important; + } } </style> \ No newline at end of file -- Gitblit v1.9.1