qingyiay
2023-06-29 37a0b120e66bcda386b0a8c256ca0fe9f09b29cb
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: {
@@ -290,7 +290,6 @@
               '转出') {
               if (this.weighList.skin == 0) {
                  this.temporaryWeighObj.skin = newV;
                  this.isweigh = this.temporaryWeighObj.skin > this.weighList.orderSurplus;
               } else {
                  this.temporaryWeighObj.hair = newV;
                  this.temporaryWeighObj.clean = (this.temporaryWeighObj.hair - this.weighList.skin).toFixed(2);
@@ -301,7 +300,6 @@
               .orderType == '转入') {
               if (this.weighList.hair == 0) {
                  this.temporaryWeighObj.hair = newV;
                  this.isweigh = this.temporaryWeighObj.hair > this.weighList.orderSurplus;
               } else {
                  this.temporaryWeighObj.skin = newV;
                  this.temporaryWeighObj.clean = (this.weighList.hair - this.temporaryWeighObj.skin).toFixed(2);
@@ -373,19 +371,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.skin > 0;
                  // 继续卸货只有外购类型第二次会有
                  this.canUnload = this.weighList.orderType === '外购' && this.showWeigh.hair > 0;
               }
            });
         },
@@ -447,7 +435,8 @@
               gateCameraId: this.weighData.gateCameraId,
               equipmentCode: this.weighData.equipmentCode,
               tmCode: this.weighData.tmCode,
               sceneInOut: this.weighData.sceneInOut
               sceneInOut: this.weighData.sceneInOut,
               weigh: this.realTimeWeigh
            }, 'json').then(res => {
               if (res.code == 0) {
                  this.$u.toast('操作成功,即将返回上一页');
@@ -475,11 +464,16 @@
               gateCameraId: this.weighData.gateCameraId,
               equipmentCode: this.weighData.equipmentCode,
               tmCode: this.weighData.tmCode,
               sceneInOut: this.weighData.sceneInOut
               sceneInOut: this.weighData.sceneInOut,
               weigh: this.realTimeWeigh
            }, 'json').then(res => {
               if (res.code == 0) {
                  this.$u.toast('操作成功');
                  this.$u.toast('操作成功,即将返回上一页');
                  setTimeout(() => {
                     uni.navigateBack({
                        delta: 1
                     });
                  }, 1000);
               } else {
                  this.$u.toast('操作失败,请稍候重试');
               }
@@ -698,7 +692,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 +734,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 {