xuye
10 days ago 12ce8ca5de9abe3bf59902d5d08b94b901edaad0
no message
1 files modified
212 ■■■■■ changed files
src/components/daytask/DispatchCar.vue 212 ●●●●● patch | view | raw | blame | history
src/components/daytask/DispatchCar.vue
@@ -20,101 +20,109 @@
                        <div class="line"></div>
                        <div class="dispatch-car-box" v-for="(item, index) in 10" :key="index">
                            <el-row :gutter="10" width="100%" type="flex">
                                <el-col :span="18">
                                    <div class="box">
                                        <div v-for="(item, index) in 2" :key="index">
                                            <div class="box-top">
                                                <div class="box-top-left">
                                                    <div class="left-inner-l">
                                                        <div>任务池:
                                                            <span>X00000000000000000</span>
                                                        </div>
                        <div class="dispatch-car-box" v-for="(item1, index1) in DispatchList" :key="index1">
                                <el-row :gutter="10" width="100%" type="flex">
                                    <el-col :span="18">
                                        <div class="box">
                                            <div v-for="(item2, index2) in item1" :key="index2">
                                                <div class="box-top">
                                                    <div class="box-top-left">
                                                        <div class="left-inner-l">
                                                            <div>任务池:
                                                                <span>X00000000000000000</span>
                                                            </div>
                                                        <div>提单号:
                                                            <span>CSXD2343343433</span>
                                                            <div>提单号:
                                                                <span>CSXD2343343433</span>
                                                            </div>
                                                        </div>
                                                        <div class="left-inner-r">
                                                            <SFPort :status="item2.status"></SFPort>
                                                        </div>
                                                    </div>
                                                    <div class="left-inner-r">
                                                        <SFPort :status="status"></SFPort>
                                                    <div class="box-top-center">
                                                        <div class="inner-box">
                                                            <div class="qiangdan">抢单</div>
                                                            <span>40GP</span>
                                                            <span>棉花-36kg</span>
                                                        </div>
                                                    </div>
                                                    <div class="box-top-right">
                                                        到达时间:2021-4-30 10:00
                                                        <img src="../../../public/img/index/time.svg" @click="ChooseDate" />
                                                    </div>
                                                </div>
                                                <div class="box-top-center">
                                                    <div class="inner-box">
                                                        <div class="qiangdan">抢单</div>
                                                        <span>40GP</span>
                                                        <span>棉花-36kg</span>
                                                <div class="box-under">
                                                    <div class="up">
                                                        <div>
                                                            <span>提箱地</span>
                                                        </div>
                                                        <div></div>
                                                        <div>
                                                            <span>装卸地</span>
                                                        </div>
                                                        <div></div>
                                                        <div>
                                                            <span>还箱地</span>
                                                        </div>
                                                    </div>
                                                    <div class="under">
                                                        <div>
                                                            <span>重庆寸滩</span>
                                                        </div>
                                                        <div class="icon">
                                                            <i class="el-icon-right"></i>
                                                        </div>
                                                        <div>
                                                            <span>重庆渝北</span>
                                                        </div>
                                                        <div class="icon">
                                                            <i class="el-icon-right"></i>
                                                        </div>
                                                        <div>
                                                            <sapn>重庆-渝北区 新溉大道18号山顶国宾城12栋1916</sapn>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="box-top-right">
                                                    到达时间:2021-4-30 10:00
                                                </div>
                                            </div>
                                            <div class="box-under">
                                                <div class="up">
                                                    <div>
                                                        <span>提箱地</span>
                                                    </div>
                                                    <div></div>
                                                    <div>
                                                        <span>装卸地</span>
                                                    </div>
                                                    <div></div>
                                                    <div>
                                                        <span>还箱地</span>
                                                    </div>
                                                </div>
                                                <div class="under">
                                                    <div>
                                                        <span>重庆寸滩</span>
                                                    </div>
                                                    <div class="icon">
                                                        <i class="el-icon-right"></i>
                                                    </div>
                                                    <div>
                                                        <span>重庆渝北</span>
                                                    </div>
                                                    <div class="icon">
                                                        <i class="el-icon-right"></i>
                                                    </div>
                                                    <div>
                                                        <sapn>重庆-渝北区 新溉大道18号山顶国宾城12栋1916</sapn>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </el-col>
                                <el-col :span="6">
                                    <div class="box box-right">
                                        <div class="box-right-top">
                                            <div class="status">
                                                <img src="../../../public/img/index/time.svg" @click="ChooseDate" />
                                                <span style="color: green;">等待接单</span>
                                                <!-- <span style="color: orange;">已接单</span>
                                                <span style="color: red;">拒绝</span> -->
                                            </div>
                                        </div>
                                        <div class="car">渝A.77238</div>
                                        <div class="edit">
                                            <div class="assign-car">
                                                <img src="../../../public/img/daytask/tuidan.svg" alt="" @click="assignCar" />
                                    </el-col>
                                    <el-col :span="6">
                                        <div class="box box-right">
                                            <div class="box-right-top">
                                                <div class="status">
                                                    <span style="color: green;">等待接单</span>
                                                    <!-- <span style="color: orange;">已接单</span>
                                                    <span style="color: red;">拒绝</span> -->
                                                </div>
                                            </div>
                                            <div class="chargeback">
                                                <img src="../../../public/img/daytask/tuidan.svg" alt="" @click="Chargeback" />
                                            <div class="driver">
                                                <div>王师傅</div>
                                                <div>切换</div>
                                            </div>
                                            <div class="transfer-order">
                                                <img src="../../../public/img/daytask/tuidan.svg" alt="" @click="TransferOrder" />
                                            <div class="car">渝A.77238</div>
                                            <div class="edit">
                                                <div class="assign-car">
                                                    <img src="../../../public/img/daytask/tuidan.svg" alt="" @click="assignCar" />
                                                </div>
                                                <div class="chargeback">
                                                    <img src="../../../public/img/daytask/tuidan.svg" alt="" @click="Chargeback" />
                                                </div>
                                                <div class="transfer-order">
                                                    <img src="../../../public/img/daytask/tuidan.svg" alt="" @click="TransferOrder" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </el-col>
                            </el-row>
                                    </el-col>
                                </el-row>
                        </div>
                        <div class="pagenation">
                            <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="currentPage1"
@@ -125,7 +133,7 @@
                </el-col>
            </div>
            <el-col :span="6">
                <CarTask/>
                <CarTask />
            </el-col>
            <!-- 选择日期对话框 -->
@@ -186,7 +194,10 @@
    import CarTask from "@/components/daytask/CarTask.vue"
    import SFPort from "@/components/common-vue/sf-or-port.vue"
    export default {
        components:{CarTask,SFPort},
        components: {
            CarTask,
            SFPort
        },
        data() {
            return {
                dialogVisible: false,
@@ -195,7 +206,21 @@
                TransferDialogVisible: false,
                value1: '',
                // 顺丰达、港口达
                status: 1,
                DispatchList: [
                    [{
                        status: 1,
                    }],
                    [{
                            status: 2,
                        },
                        {
                            status: 3,
                        },
                    ],
                    [{
                        status: 4,
                    }],
                ],
            }
        },
        methods: {
@@ -211,7 +236,7 @@
            TransferOrder() {
                this.TransferDialogVisible = true
            },
        },
    }
</script>
@@ -296,7 +321,6 @@
        text-align: center;
    }
    .box-under .up {
@@ -315,6 +339,7 @@
        width: 20%;
        display: inline-block;
        margin-top: 10px;
        margin-bottom: 5px;
    }
@@ -338,6 +363,7 @@
        color: #959595;
        margin: 0 10px;
    }
    .box .status {
        display: flex;
@@ -349,10 +375,17 @@
        margin-left: 5px;
    }
    .box .driver {
        display: flex;
        align-items: center;
        justify-content: space-around;
        margin: 8px;
    }
    .box .car {
        color: orange;
        text-align: center;
        padding: 5px;
        padding: 10px;
        margin: 10px 0;
        font-weight: bold;
    }
@@ -439,10 +472,9 @@
        font-size: 30px;
    }
    .qiangdan{
        background-color: red;
        color: white;
    .qiangdan {
        background-color: #facd91;
        border-radius: 20px;
        padding: 6px;
    }
</style>