qingyiay
2023-08-01 4f940f90c4458bfa4e5f514eeca639ac97c71039
修改抢单错误
2个文件已修改
20 ■■■■■ 已修改文件
pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/driver-page/driver-index/driver-index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
@@ -175,7 +175,8 @@
                :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"
@@ -184,7 +185,7 @@
                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">
@@ -339,8 +340,8 @@
                        .orderType ==
                        '转出') {
                        if (this.weighList.skin == 0) {
                            this.getAverageSkin()
                            this.temporaryWeighObj.skin = newV;
                            this.getAverageSkin()
                            if (this.avgSkin < newV) {
                                this.abnormalModalShow = true
                                this.historyBtn = true
@@ -359,6 +360,11 @@
                            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
pages/driver-page/driver-index/driver-index.vue
@@ -292,13 +292,13 @@
            // 抢单按钮
            qiangDanBtn(value) {
                if (value.tmcCount == '0') {
                    this.qiangDan(value.orderPlanId, value.fleetId, value.customerId === '' ? '0' : value.customerId,
                        value.xsUserId === '' ? '0' : value.xsUserId);
                    this.qiangDan(value.orderPlanId, value.fleetId, value.customerId === null ? '0' : value.customerId,
                        value.xsUserId === null ? '0' : value.xsUserId);
                } else {
                    this.qiangDanOrderPlanId = value.orderPlanId;
                    this.fleetId = value.fleetId;
                    this.customerId = value.customerId === '' ? '0' : value.customerId;
                    this.xsUserId = value.xsUserId === '' ? '0' : value.xsUserId;
                    this.customerId = value.customerId === null ? '0' : value.customerId;
                    this.xsUserId = value.xsUserId === null ? '0' : value.xsUserId;
                    this.qiangDanShow = true;
                    this.qiangDanContent = `已抢${value.tmcCount}单,确定抢单?`;
                }