| | |
| | | </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> |
| | | |
| | |
| | | return { |
| | | bangfangList:[], |
| | | liebiaoList: [], |
| | | agreeModalShow: false |
| | | agreeModalShow: false, |
| | | disAgreeModalShow: false, |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | 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 { |
| | |
| | | .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; |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |