From 75811022288e2c4832974a1586f442608706c30a Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 12 九月 2024 17:40:10 +0800 Subject: [PATCH] feat:司机接单pvc吨数提示 --- pages/loadUnload-page/selectTarget/selectTarget.vue | 107 +++++++++++++++++++++++++++++++---------------------- 1 files changed, 62 insertions(+), 45 deletions(-) diff --git a/pages/loadUnload-page/selectTarget/selectTarget.vue b/pages/loadUnload-page/selectTarget/selectTarget.vue index d503693..36c82a3 100644 --- a/pages/loadUnload-page/selectTarget/selectTarget.vue +++ b/pages/loadUnload-page/selectTarget/selectTarget.vue @@ -67,14 +67,16 @@ ref="collapseHeight" class="collItem" :title="'寰呰鍗告敹鍙戝崟'"> - <view class="history-information" v-for="item,i in detailData" + <view class="history-information" + @click="viewDetail(item)" + v-for="item,i in detailData" :key="i"> <view class="first"> <view class="">{{ item.carNo || '' }}</view> <view class=""></view> </view> <view class="second"> - <view class="coal-name">{{ item.productNames || item.productName }}</view> + <view class="coal-name">{{ item.productNames?limitString(item.productNames,20,'...'):'' || ''}}</view> <view class="order-type">{{ item.orderType || '' }}</view> </view> <view class="third"> @@ -113,35 +115,35 @@ <uni-tr> <uni-th width='120' align="center">鎿嶄綔</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='200'>浠撳簱</uni-th> + <uni-th align="center" width='800'>浜у搧</uni-th> + <uni-th align="center" width='110'>绛夌骇</uni-th> + <uni-th align="center" width='110'>鍖呰</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-th align="center" width='100'>鏁伴噺</uni-th> --> + <uni-th align="center" width='120'>璁″垝閲�</uni-th> + <!-- <uni-th align="center" width='100'>瀹為檯閲�</uni-th> --> </uni-tr> <uni-tr v-for="(subItem, index) in item.tmTaskCoalList" :key="index"> <uni-td align="center"> <view class="btnBox"> <!-- --> - <u-button text='鏌ョ湅' @click="viewDetail(subItem)"></u-button> - <u-button type='primary' text='纭瑁呭嵏' v-if="subItem.flag && isBtnShow(item)" @click="enterOk(item,subItem)"></u-button> + <!-- <u-button text='鏌ョ湅' @click="viewDetail(subItem)"></u-button> --> + <u-button type='primary' text='纭瑁呭嵏' size='mini' v-if="subItem.flag && isBtnShow(item)" @click.native.stop="enterOk(item,subItem)"></u-button> </view></uni-td> - <uni-td align="center"> + <uni-td align="left"> <view>{{ subItem.productName }}</view></uni-td> <uni-td align="center"> <view>{{ subItem.productGrade }}</view></uni-td> - <uni-td> + <uni-td align="center"> <view>{{ proType[item.packingType] }}</view> </uni-td> - <uni-td> + <!-- <uni-td> <view>{{ subItem.bunkerName }}</view> - </uni-td> + </uni-td> <uni-td> <view class="name" v-if="subItem.skin">{{ Number(subItem.skin).toFixed(2) || '' }}</view> </uni-td> @@ -153,13 +155,13 @@ </uni-td> <uni-td> <view class="name">{{ subItem.productQuantity }}</view> - </uni-td> - <uni-td> + </uni-td> --> + <uni-td align="right"> <view class="name">{{ subItem.planMeasure }}</view> </uni-td> - <uni-td> + <!-- <uni-td> <view class="name">{{ subItem.realityMeasure }}</view> - </uni-td> + </uni-td> --> <!-- 聽 <uni-td align="center"> <view>{{ subItem.bunkerName }}</view></uni-td> --> @@ -239,32 +241,32 @@ <uni-tr> <uni-th width='120' align="center">鎿嶄綔</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='200'>浠撳簱</uni-th> + <uni-th align="center" width='800'>浜у搧</uni-th> + <uni-th align="center" width='90'>绛夌骇</uni-th> + <uni-th align="center" width='90'>鍖呰</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-th align="center" width='100'>鏁伴噺</uni-th> --> + <uni-th align="center" width='100'>璁″垝閲�</uni-th> + <!-- <uni-th align="center" width='100'>瀹為檯閲�</uni-th> --> </uni-tr> <uni-tr v-for="(subItem, index) in item.tmTaskCoalList" :key="index"> <uni-td align="center"> <view class="btnBox"> <!-- --> - <u-button type='primary' text='鎷煎崟' v-if="isPinShow(item)" @click="pinDan(subItem)"></u-button> + <u-button type='primary' text='鎷煎崟' size='mini' v-if="isPinShow(item)" @click="pinDan(subItem)"></u-button> </view></uni-td> - <uni-td align="center"> + <uni-td w align="center"> <view>{{ subItem.productName }}</view></uni-td> <uni-td align="center"> <view>{{ subItem.productGrade }}</view></uni-td> <uni-td> <view>{{ proType[item.packingType] }}</view> </uni-td> - <uni-td> + <!-- <uni-td> <view>{{ subItem.bunkerName }}</view> </uni-td> <uni-td> @@ -278,12 +280,9 @@ </uni-td> <uni-td> <view class="name">{{ subItem.productQuantity }}</view> - </uni-td> + </uni-td> --> <uni-td> <view class="name">{{ subItem.planMeasure }}</view> - </uni-td> - <uni-td> - <view class="name">{{ subItem.realityMeasure }}</view> </uni-td> <!-- 聽 <uni-td align="center"> @@ -312,16 +311,22 @@ @close='firstClassClose' @select="firstClassSelectClick"></u-action-sheet> <u-modal :show="enterZx" - :title="'鎻愮ず'" + :title="'纭瑁呭嵏'" @close="closeModal" + :width='740' @cancel="cancelModal" @confirm="confirmModal" :closeOnClickOverlay="true" :showCancelButton="true"> <view class="slot-content"> - 鏄惁纭瑁呭嵏锛� <view v-if="isNumOk || isClean||isFlagNum"> - <text>浜у搧鍚嶇О锛歿{activeObj.productName}}</text> + <view>浜у搧鍚嶇О锛歿{activeObj.productName}}</view> + <view>浠撳簱锛歿{activeObj.bunkerName}}</view> + <view v-if="activeObj.isWeight === 1"> + <view>鐨噸锛歿{ Number(activeObj.skin).toFixed(2) || ''}}</view> + <view>姣涢噸锛歿{Number(activeObj.hair).toFixed(2) || ''}}</view> + <view >鍑�閲嶏細{{ Number(activeObj.clean).toFixed(2) || ''}}</view> + </view> <view class="queren"> <text>璇疯緭鍏�</text>锛� <u--input @@ -341,7 +346,7 @@ <view v-if="activeObj.containerNumber"><span>闆嗚绠卞彿锛�</span>{{activeObj.containerNumber}}</view> </view> - <view>鏄惁绌鸿溅鍑哄巶: <u-radio-group + <view style="display:flex;margin-top:20rpx">鏄惁绌鸿溅鍑哄巶: <u-radio-group v-model="isEmptyCar" placement="row" iconPlacement="right" @@ -400,7 +405,6 @@ computed:{ isBtnShow(){ return function(item){ - console.log(item,'itemssss') if(!item){ return false }else{ @@ -418,7 +422,6 @@ }, isPinShow(){ return function(item){ - console.log(item,'itemssss') if(!item){ return false }else{ @@ -478,7 +481,7 @@ }, data() { return { - proType:['鏁h','娑叉埃鐡惰','缃愯','PVC25','PVC80','PVC1150','PVc1200'], + proType:['鏁h','娑叉隘鐡惰','缃愯','PVC25','PVC80','PVC1150','PVc1200'], coalStatus: ['棰嗗彇', '棰勭害', '绛惧埌', '鍏ュ満', '绉扮毊', '绉版瘺', '绂诲満', '鍏ョ鎴�', '鍑虹鎴�', '鍏ヤ粨搴�', '鍑轰粨搴�', '鏀剧┖', '浣滃簾', '鍏ュ満鐢宠', '杩涘叆鍦洪櫌', '寮傚父瀹℃牳涓�', '杩斿洖鍔犲噺鍚�', '瓒呮椂', '鎵撳嵃涓�', '鎵撳嵃涓�', '濉啓', '鏀剧┖纭涓�', '瓒呮渶澶ф瘺閲嶇‘璁や腑','琛ユ墦','鍏ュ満妫�鏌�','璐ㄦ涓�', '绂诲満妫�鏌�','宸叉墦鍗�','瑁呭嵏','杩斿洖鍔犲噺鍚ㄧ‘璁や腑' @@ -489,7 +492,7 @@ orderType: '', bunkerIds:"" }, - historyData:[], + historyData:[], messageObj:{ carNo:'', }, @@ -535,6 +538,10 @@ }; }, methods: { + limitString(str, limit, suffix = '...') { + if (str.length <= limit) return str; + return str.slice(0, limit) + suffix; + }, getPVCWeight(){ }, @@ -636,6 +643,12 @@ }) }, + viewDetail(value){ + //鏌ョ湅鏀跺彂鍗曡鎯� + uni.navigateTo({ + url: `/subPages/fayunPlanDetails/fayunPlanMore/fayunPlanMore?id=${value.id}&orderType=${value.orderType}`, + }) + }, firstClassSelectClick(val) { this.dataForm.firstClass = val.name; this.dataForm.bunkerIds= val.id; @@ -764,10 +777,11 @@ uni.hideLoading(); }else{ this.$u.toast('鎿嶄綔鎴愬姛'); - } - setTimeout(() => { + setTimeout(() => { this.getDetailData(); }, 500); + } + }).catch((err) => { this.$u.toast(err.msg || '澶辫触'); @@ -920,8 +934,11 @@ } .btnBox{ min-width: 100rpx; - display: flex; + // display: flex; justify-content: space-around; + :v-deep .u-button__text{ + font-size: 12px!important; + } text{ color: #035cfb; } @@ -931,7 +948,7 @@ margin: 10px; // margin-top: vww(100); position: relative; - top: vww(-160); + top: vww(-200); .top-tag{ width: 60%; margin-left: 55%; -- Gitblit v1.9.1