| | |
| | | </view> --> |
| | | <view class="bottom"><text>TIP:当前状态为正常时可以称重</text></view> |
| | | </view> |
| | | <view class="middle-block"> |
| | | <view class="middle-block" v-if="firstHairCustomernameShow || sideline"> |
| | | <view class="block-main" v-if="firstHairCustomernameShow"> |
| | | <view class="first-line"><combined-title title="原发信息"></combined-title></view> |
| | | <view class="second-line"> |
| | | <view class="label-text">皮重</view> |
| | | <view class="input-container"><u--input placeholder="请输入皮重" border="surround" v-model="weighData.coalContactSkin"></u--input></view> |
| | | <view class="unit">吨</view> |
| | | <view class="label-text" :class="{ focusClass: isfocus1 }">皮重</view> |
| | | <view class="input-container" :class="{ inputClass: isfocus1 }"> |
| | | <u--input placeholder="请输入皮重" border="surround" v-model="weighData.coalContactSkin" @focus="inputFocus(1)" @blur="inputBlur"></u--input> |
| | | </view> |
| | | <view class="unit" :class="{ focusClass: isfocus1 }">吨</view> |
| | | </view> |
| | | <view class="second-line"> |
| | | <view class="label-text">毛重</view> |
| | | <view class="input-container"><u--input placeholder="请输入毛重" border="surround" v-model="weighData.coalContactHair"></u--input></view> |
| | | <view class="unit">吨</view> |
| | | <view class="label-text" :class="{ focusClass: isfocus2 }">毛重</view> |
| | | <view class="input-container" :class="{ inputClass: isfocus2 }"> |
| | | <u--input placeholder="请输入毛重" border="surround" v-model="weighData.coalContactHair" @focus="inputFocus(2)" @blur="inputBlur"></u--input> |
| | | </view> |
| | | <view class="unit" :class="{ focusClass: isfocus2 }">吨</view> |
| | | </view> |
| | | <view class="second-line"> |
| | | <view class="label-text">净重</view> |
| | |
| | | <view class="unit">吨</view> |
| | | </view> |
| | | </view> |
| | | <view class="block-sideline" v-if="weighList.orderType == '内购' || weighList.orderType == '转出'"> |
| | | <view class="block-sideline" v-if="sideline"> |
| | | <view class="first-line"><combined-title title="原发信息"></combined-title></view> |
| | | <view class="weigh-item"> |
| | | <view class="item"> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view v-else style="width: 100%;height: vww(20);"></view> |
| | | <view class="bottom-block"> |
| | | <view class="block-main"> |
| | | <view class="main-information"> |
| | |
| | | // 外购类型称重填写毛,皮, |
| | | firstHairCustomernameShow: false, |
| | | coalContactHair: '', |
| | | coalContactSkin: '' |
| | | // 二次确认 |
| | | coalContactSkin: '', |
| | | // 聚焦时改变样式 |
| | | isfocus1: false, |
| | | isfocus2: false |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | }, |
| | | // 加减煤按钮禁用与否 |
| | | addAndSubtractCoalDisabled() { |
| | | if (this.weighList.orderType == '外销' || this.weighList.orderType == '内销' || this.weighList.orderType == '转出') { |
| | | if (this.weighList.hair == 0) { |
| | | return true; |
| | | } else if (this.weighList.hair != 0) { |
| | | return false; |
| | | } |
| | | } |
| | | return this.realTimeWeigh == 0; |
| | | // if (this.weighList.orderType == '外销' || this.weighList.orderType == '内销' || this.weighList.orderType == '转出') { |
| | | // if (this.weighList.hair == 0) { |
| | | // return true; |
| | | // } else if (this.weighList.hair != 0) { |
| | | // return false; |
| | | // } |
| | | // } |
| | | }, |
| | | // 是否放空按钮禁用 |
| | | isEvacuation() { |
| | |
| | | if (this.weighList.orderType == '外购' || this.weighList.orderType == '内购' || this.weighList.orderType == '转入') { |
| | | return this.weighList.hair == this.temporaryWeighObj.skin || this.temporaryWeighObj.skin == this.temporaryWeighObj.hair; |
| | | } |
| | | }, |
| | | sideline() { |
| | | return this.weighList.orderType == '内购' || this.weighList.orderType == '转出'; |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | // 放空弹窗取消 |
| | | evacuationCancel() { |
| | | this.evacuationModalShow = false; |
| | | }, |
| | | // input聚焦 |
| | | inputFocus(v) { |
| | | if (v == 1) { |
| | | this.isfocus1 = true; |
| | | } else { |
| | | this.isfocus2 = true; |
| | | } |
| | | }, |
| | | // input失焦 |
| | | inputBlur() { |
| | | this.isfocus1 = false; |
| | | this.isfocus2 = false; |
| | | } |
| | | } |
| | | }; |
| | |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 74rpx; |
| | | font-family: Determination Sans; |
| | | font-weight: 400; |
| | | color: #ffffff; |
| | | line-height: 69rpx; |
| | | text-shadow: 0rpx 3rpx 14rpx rgba(0, 0, 0, 0.33); |
| | | text { |
| | | font-family: weighting; |
| | | } |
| | | } |
| | | .top_right { |
| | | display: flex; |
| | |
| | | justify-content: center; |
| | | flex: 2; |
| | | font-size: 31rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #ffffff; |
| | | view { |
| | |
| | | align-items: center; |
| | | flex-direction: column; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #d9e1fe; |
| | | // position: relative; |
| | | // top: vww(-10); |
| | | } |
| | | } |
| | | .middle-block { |
| | |
| | | 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 justify-content: center; |
| | | @include flex; |
| | | justify-content: center; |
| | | overflow: hidden; |
| | | .block-main { |
| | | width: 650rpx; |
| | | height: 350rpx; |
| | | @include flex flex-direction: column; |
| | | @include flex; |
| | | flex-direction: column; |
| | | margin-bottom: vww(20); |
| | | position: relative; |
| | | .first-line, |
| | | .second-line { |
| | | width: 90%; |
| | | height: vww(44); |
| | | .focusClass { |
| | | color: #5b95fd; |
| | | } |
| | | .inputClass { |
| | | border: 1px solid rgba(73, 95, 252, 0.6) !important; |
| | | box-shadow: 0rpx 5rpx 13rpx 0rpx rgba(73, 95, 252, 0.6) !important; |
| | | border-radius: 12rpx !important; |
| | | } |
| | | .input-container { |
| | | border: 2px solid #c5c5c5; |
| | | box-shadow: 0rpx 5rpx 13rpx 0rpx #c5c5c5; |
| | |
| | | } |
| | | .first-line { |
| | | @include flex; |
| | | position: relative; |
| | | top: vww(8); |
| | | } |
| | | .second-line { |
| | | @include flex; |
| | |
| | | min-width: vww(50); |
| | | height: vww(45); |
| | | font-size: 21rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #ffffff; |
| | | text-align: center; |
| | |
| | | } |
| | | .num { |
| | | font-size: 40rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #303030; |
| | | } |
| | |
| | | align-items: flex-start; |
| | | flex-direction: column; |
| | | .main-information { |
| | | width: 50%; |
| | | width: 100%; |
| | | height: 28rpx; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #303030; |
| | | @include flex; |
| | | justify-content: flex-start; |
| | | .prefix { |
| | | min-width: vww(60); |
| | | } |
| | | .suffix { |
| | | flex: 1; |
| | | margin-left: vww(12); |
| | | text-align: left; |
| | | } |
| | | } |
| | | } |
| | | } |