yangan
2024-08-02 78252f8407345ffceed8157a1c1685c09cdec029
pages/customer-page/zhijian-bangfang/zhijian-bangfang.vue
@@ -46,8 +46,13 @@
        </view>
        <view class="second-line justyflyItem">
          <text class="car-num " style="font-size: 28rpx;">司机:{{ item.xsUser1Name }}</text>
        </view>
        <view class="second-line justyflyEndItem">
          <view class="agreeBtn">
            <u-button type="primary" :loading="agreeModalShow" loadingText="确认中" @click="agreeWeighClick(item)">同意复磅</u-button>
          </view>
          <view class="agreeBtn">
            <u-button :loading="disAgreeModalShow" loadingText="确认中" @click="disAgreeWeighClick(item)">拒绝复磅</u-button>
          </view>
        </view>
@@ -66,7 +71,8 @@
    return {
      bangfangList:[],
      liebiaoList: [],
      agreeModalShow: false
      agreeModalShow: false,
      disAgreeModalShow: false,
    }
  },
  onShow() {
@@ -86,6 +92,27 @@
        console.log(res, '同意');
        if (res.code == 0) {
          this.$u.toast(res.msg ? res.msg : '同意');
          this.agreeModalShow = false;
          this.getReWeighList()  //刷新列表
        } else {
          this.$u.toast(res.msg ? res.msg : '失败');
          this.agreeModalShow = false;
        }
      }).finally(() => {
        this.agreeModalShow = false
      })
    },
    disAgreeWeighClick(item) {
      let params = {
        deptId: item.deptId,
        filedId: item.filedId,
        tmId: item.id
      }
      this.agreeModalShow = true
      this.$reqPost('disAgreeWeigh', params, 'json').then(res => {
        console.log(res, '拒绝');
        if (res.code == 0) {
          this.$u.toast(res.msg ? res.msg : '拒绝完成');
          this.agreeModalShow = false;
          this.getReWeighList()  //刷新列表
        } else {
@@ -321,16 +348,21 @@
  .justyflyItem{
    width: 100%;
    justify-content: space-between;
  }
  .justyflyEndItem{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    .agreeBtn{
      margin-right: 20rpx;
      ::v-deep{
        .u-button{
          border-radius: 50rpx;
          padding: 0 36rpx!important;
          height: 72rpx!important;
        }
    }
    ::v-deep{
      .u-button{
        border-radius: 50rpx;
        padding: 0 36rpx!important;
        height: 68rpx!important;
      }
    }
  }
}