|  |  |  | 
|---|
|  |  |  | :disabled="realTimeWeigh == 0 || globalinfraredStatus || isweigh || !isInputOrigin" | 
|---|
|  |  |  | :loading="isConfirmWeighLoading" | 
|---|
|  |  |  | loadingText="确认" | 
|---|
|  |  |  | @click="confirmWeigh"></u-button> | 
|---|
|  |  |  | @click="confirmWeigh" | 
|---|
|  |  |  | v-show="!historyBtn"></u-button> | 
|---|
|  |  |  | <u-button type="primary" | 
|---|
|  |  |  | text="返回加减吨" | 
|---|
|  |  |  | :disabled="addAndSubtractCoalDisabled" | 
|---|
|  |  |  | 
|---|
|  |  |  | v-if="outBuy"></u-button> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view style="width: 200rpx;margin: auto;position: relative;" | 
|---|
|  |  |  | v-if="historyBtn"><u-button type="primary" | 
|---|
|  |  |  | v-if="!historyBtn"><u-button type="primary" | 
|---|
|  |  |  | text="显示历史皮重" | 
|---|
|  |  |  | @click.stop="displayHistory"></u-button></view> | 
|---|
|  |  |  | <Transition name="slide-fade"> | 
|---|
|  |  |  | 
|---|
|  |  |  | .orderType == | 
|---|
|  |  |  | '转出') { | 
|---|
|  |  |  | if (this.weighList.skin == 0) { | 
|---|
|  |  |  | this.getAverageSkin() | 
|---|
|  |  |  | this.temporaryWeighObj.skin = newV; | 
|---|
|  |  |  | this.getAverageSkin() | 
|---|
|  |  |  | if (this.avgSkin < newV) { | 
|---|
|  |  |  | this.abnormalModalShow = true | 
|---|
|  |  |  | this.historyBtn = true | 
|---|
|  |  |  | 
|---|
|  |  |  | this.temporaryWeighObj.hair = newV; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.temporaryWeighObj.skin = newV; | 
|---|
|  |  |  | this.getAverageSkin() | 
|---|
|  |  |  | if (this.avgSkin < newV) { | 
|---|
|  |  |  | this.abnormalModalShow = true | 
|---|
|  |  |  | this.historyBtn = true | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.temporaryWeighObj.clean = (this.weighList.hair - this.temporaryWeighObj.skin).toFixed( | 
|---|
|  |  |  | 2); | 
|---|
|  |  |  | this.isweigh = this.temporaryWeighObj.clean > this.weighList.orderSurplus || this | 
|---|
|  |  |  | 
|---|
|  |  |  | uni.showLoading({ | 
|---|
|  |  |  | title: "加载中" | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | this.$reqGet('getAvgSkin').then(res => { | 
|---|
|  |  |  | this.$reqGet('getAvgSkin', { xsUserId1: this.weighList.xsUserId1 }).then(res => { | 
|---|
|  |  |  | if (res.code === 0) { | 
|---|
|  |  |  | uni.hideLoading() | 
|---|
|  |  |  | this.avgSkin = res.data.avgSkin | 
|---|