From 288d334f5afcb45da57d769c6699cf3b91d7a194 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期二, 25 六月 2024 16:21:53 +0800 Subject: [PATCH] feat:集装箱显示加判断 --- pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue | 40 ++++++++++++++++++++++++++++++++++++++-- 1 files changed, 38 insertions(+), 2 deletions(-) diff --git a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue index 31fd71b..69233de 100644 --- a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue +++ b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue @@ -103,6 +103,19 @@ </uni-tr> </uni-table> </view> + <!-- 璇疯緭鍏ラ泦瑁呯鍙� --> + <view class="codeBox" v-if="coalDetailsData.isContainerNum"> + <text>闆嗚绠卞彿:</text> + <view class="inp"> + <u--input + placeholder="璇疯緭鍏ラ泦瑁呯鍙�" + v-model="coalDetailsData.containerNumber" + ></u--input> + </view> + <view> + <u-button type="primary" text="纭畾" @click="enterClick"></u-button> + </view> + </view> </view> <view class="origin-info" v-if="originInfoVisible&&!isSpecial"> @@ -277,7 +290,7 @@ :loading="outLoading" loadingText="鎵撳嵃涓�,璇风◢鍊�"></u-button> </view> --> - <view class="weigh-button"><u-button text="灞曠ず鎻愮叅鍗�" + <view class="weigh-button"><u-button text="灞曠ず鏀跺彂鍗�" @click="showCaolPickUpBill" type="primary" shape="circle"></u-button></view> @@ -1151,13 +1164,36 @@ this.$refs.swiperAlbum.onPreviewTap(); this.$refs.swiperAlbum.openPage(); }) - + }, + enterClick(){ + console.log('click') + this.$reqPut('addContainer',{id:this.coalDetailsData.id,containerNumber:this.coalDetailsData.containerNumber},'json').then(res=>{ + console.log(res,'res') + this.$u.toast('鎿嶄綔鎴愬姛') + }) } } }; </script> <style lang="scss" scoped> +.codeBox{ + height: 100rpx; + display: flex; + width: 100%; + justify-content: space-around; + align-items: center; + .inp{ + border: solid 1px #ccc; + input{ + + text-indent: 15px; + } + + } + + +} .table{ width: 100%; /deep/ .uni-table{ -- Gitblit v1.9.1