qingyiay
2023-07-26 f3288edb3b2f0e0e89cc28d719a1f83462459f33
修改发运统计错误
2个文件已修改
46 ■■■■■ 已修改文件
pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/driver-page/drvier-my/drvier-my.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue
@@ -10,7 +10,7 @@
                            <view class="content-num">发运车数</view>
                        </view>
                        <view class="content-text">
                            <view class="content-container">{{ totalTon.toFixed(2) }}</view>
                            <view class="content-container">{{totalTon}}</view>
                            <view class="content-num">发运吨数</view>
                        </view>
                    </view>
@@ -42,13 +42,12 @@
                        <view class="card-top">
                            <view class="left"><combined-title :title="item.condition"></combined-title></view>
                            <view class="card-top_num">
                                {{ item.taskCoalList.length }}车{{
                                    item.taskCoalList
                                {{ item.taskCoalList.length }}车
                                {{Number(item.taskCoalList
                                        .reduce((prev, cur) => {
                                            cur.clean=cur.clean||0
                                            return prev + cur.clean;
                                        }, 0)
                                        .toFixed(2)
                                }}吨
                                        }, 0)).toFixed(2)}}吨
                            </view>
                        </view>
                        <view class="card-main"
@@ -66,7 +65,7 @@
                                    </view>
                                </view>
                                <view class="main-divider"></view>
                                <view class="point-number">{{ value.clean.toFixed(2) || 0 }}</view>
                                <view class="point-number">{{ Number(value.clean).toFixed(2) || 0 }}</view>
                            </view>
                            <view class="first-extra">
                                <view class="main-information">
@@ -279,6 +278,7 @@
</template>
<script>
    import BigNumber from "bignumber.js"
    import combinedTitle from '@/components/combined-title/combined-title.vue';
    import { onlineurl } from '@/api/request.js'
    export default {
@@ -431,10 +431,15 @@
                        this.totalLength = this.filterList.map(v => v.taskCoalList.length).reduce((x, y) => x + y);
                        this.totalTon = this.filterList.map(v =>
                            v.taskCoalList.reduce((prev, cur) => {
                                return cur.clean + prev;
                                const cleanvalue = cur.clean || 0
                                return cleanvalue + prev
                            }, 0)
                        );
                        this.totalTon = this.totalTon.reduce((x, y) => x + y);
                        this.totalTon = this.totalTon.reduce((x, y) => {
                            let xx = new BigNumber(x)
                            let yy = new BigNumber(y)
                            return xx.plus(yy).toNumber().toFixed(2)
                        }, new BigNumber(0));
                    } else {
                        this.totalLength = 0;
                        this.totalTon = 0;
@@ -507,10 +512,15 @@
                    this.totalLength = this.filterList.map(v => v.taskCoalList.length).reduce((x, y) => x + y);
                    this.totalTon = this.filterList.map(v =>
                        v.taskCoalList.reduce((prev, cur) => {
                            return cur.clean + prev;
                            const cleanvalue = cur.clean || 0
                            return cleanvalue + prev
                        }, 0)
                    );
                    this.totalTon = this.totalTon.reduce((x, y) => x + y);
                    this.totalTon = this.totalTon.reduce((x, y) => {
                        let xx = new BigNumber(x)
                        let yy = new BigNumber(y)
                        return xx.plus(yy).toNumber().toFixed(2)
                    }, new BigNumber(0));
                } else {
                    this.totalLength = 0;
                    this.totalTon = 0;
pages/driver-page/drvier-my/drvier-my.vue
@@ -117,12 +117,12 @@
                            <view class="label-text">车头车尾车身照片</view>
                        </view>
                        <view class="img-container"
                            v-for="item in userInfo.bodyofcarJpg?userInfo.bodyofcarJpg.split(','):[]">
                            v-for="item in userInfo.bodyCarImg">
                            <u--image :showLoading="true"
                                :src="item.url ? item.url : ''"
                                :src="BaseUrl+item"
                                width="80px"
                                height="80px"
                                @click="imageClickCarBody(item.url)">
                                @click="imageClickCarBody(item)">
                                <view slot="error"
                                    style="font-size: 24rpx;">加载失败</view>
                            </u--image>
@@ -496,6 +496,9 @@
                this.$reqGet('getUserEntity').then(res => {
                    uni.hideLoading();
                    this.editUserInfo = this.userInfo = res.data;
                    this.userInfo.bodyCarImg = this.userInfo.bodyofcarJpg ? this.userInfo.bodyofcarJpg.split(',') :
                        [];
                    console.log(this.userInfo.bodyCarImg);
                    this.editUserInfo.password = ""
                    uni.setStorageSync('carImg', this.userInfo.carImg);
                    uni.setStorageSync('drivingImg', this.userInfo.drivingImg);
@@ -545,6 +548,9 @@
            },
            imageClickCarBody(url) {
                this.previewImageSrc = url;
                this.$nextTick(() => {
                    this.previewImageShow = true;
                });
            },
            beforeRead() {
                this.changeisUploadimg(true);
@@ -888,7 +894,7 @@
        .editDriverPopup-container {
            .u-popup {
                .u-transition {
                    height: 75%;
                    height: 80%;
                    .u-popup__content {
                        overflow: scroll !important;