From ceeb19ad302df0ae6146895cac263d7bdc38ac31 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期四, 29 六月 2023 14:18:20 +0800 Subject: [PATCH] 称重页面问题修改,样式修改 --- pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue | 53 +++++++++++++++++++++++++---------------------------- 1 files changed, 25 insertions(+), 28 deletions(-) diff --git a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue index 36b3c6a..58d7001 100644 --- a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue +++ b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue @@ -185,11 +185,11 @@ :disabled="addAndSubtractCoalDisabled" @click="addAndSubtractCoal" class="jiajian" - v-if="outsourcing"></u-button> + v-if="outBuy"></u-button> <u-button type="primary" text="缁х画鍗歌揣" @click="UnloadingAgainHandle" - v-if='outBuy'></u-button> + v-if='canUnload'></u-button> </view> <!-- <view class="four" v-if="weighList.orderType !== '澶栬喘'">濡傛偍闇�瑕佽皟鏁磋杞借揣鍝佸惃鏁帮紝璇风偣鍑昏繑鍥炲姞鍑忓惃</view> --> <!-- 鏀剧┖寮圭獥 --> @@ -280,8 +280,8 @@ isfocus2: false, // 澶栬喘绫诲瀷 outBuy: true, - // 澶栭攢绫诲瀷 - outsourcing: true + // 缁х画鍗歌揣鎸夐挳 + canUnload: false }; }, watch: { @@ -373,19 +373,9 @@ this.weighData.filedId = res.data.filedId; this.weighData.coalContactHair = res.data.hairTwo ? res.data.hairTwo : 0; this.weighData.coalContactSkin = res.data.skinTwo ? res.data.skinTwo : 0; - this.outBuy = this.weighList.orderType == '澶栬喘' && this.weighList.hair > 0; - this.outsourcing = this.weighList.orderType == '澶栭攢' && this.weighList.hair > 0; - // if (this.weighList.orderType == '澶栬喘') { - // if (this.weighList.hair > 0) { - // this.outBuy = true - // this.outsourcing = false; - // } - // } else if (this.weighList.orderType == '澶栭攢') { - // if (this.weighList.hair > 0) { - // this.outsourcing = true; - // this.outBuy = false - // } - // } + this.outBuy = (this.weighList.orderType.indexOf('閿�') !== -1) && this.showWeigh.hair > 0; + // 缁х画鍗歌揣绗簩娆$О閲嶅氨浼氭湁锛屾棤璁㈠崟绫诲瀷闄愬埗 + this.canUnload = this.showWeigh.hair > 0 || this.showWeigh.skin > 0; } }); }, @@ -698,7 +688,7 @@ width: calc(100% - 60rpx); box-sizing: border-box; height: 630rpx; - margin: 0 vww(15) vww(45) vww(15); + margin: 0 vww(15) vww(25) 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; @@ -740,20 +730,27 @@ } .three { - margin: 0 auto vww(20); - flex: 0.7; - display: flex; + margin: 0 auto vww(5); + width: 96%; + display: grid; + grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); + justify-content: center; + gap: vww(10); color: #939393; .u-button { - &:nth-of-type(2) { - margin-left: vww(10); - } - - &:nth-of-type(3) { - margin-left: vww(10); - } + width: vww(90); } + + // .u-button { + // &:nth-of-type(2) { + // margin-left: vww(10); + // } + + // &:nth-of-type(3) { + // margin-left: vww(10); + // } + // } } .four { -- Gitblit v1.9.1