审查视图

src/views/nav4/order.vue 13.5 KB
小范 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
<template>
    <div class="bg order">
        <span class="air">空运服务-订舱确认</span>
        <div class="px">
<!--            下单信息-->
            <h4 class="title">下单信息</h4>
            <div class="r-table">
                <table  class="tb">
                    <tbody>
                    <tr>
                        <th width="10%">航空公司</th>
                        <td width="10%"></td>
                        <th width="10%">起运机场</th>
                        <td width="10%"></td>
                        <th width="10%">目的机场</th>
                        <td width="10%"></td>
                        <th width="10%">下单重量(KG)</th>
                        <td width="10%"><el-input v-model="A" placeholder="" size="mini"></el-input></td>
                        <th width="10%">运价单价</th>
                        <td width="10%"></td>
                    </tr>
                    <tr>
                        <th>报关方式</th>
                        <td colspan="4">
                            <el-radio v-model="B" label="1">自理报关</el-radio>
                            <el-radio v-model="C" label="2">委托报关</el-radio>
                        </td>
                        <th rowspan="4">附加费</th>
                        <td colspan="3">操作费: CNY 0.00/票</td>
                        <td><el-input-number v-model="D" @change="handleChange" :min="1" :max="10" label="">
                        </el-input-number></td>
                    </tr>
                    <tr>
                        <th rowspan="3">门到门服务</th>
                        <td colspan="4"><el-checkbox v-model="E">上门提货</el-checkbox></td>
                        <td colspan="3">制单费: CNY 50.00/票</td>
                        <td><el-input-number v-model="F" @change="handleChange" :min="1" :max="10" label="">
                        </el-input-number></td>
                    </tr>
                    <tr>
                        <td colspan="4" rowspan="2"><el-checkbox v-model="G">清关派送</el-checkbox></td>
                        <td colspan="3">订舱预录费: CNY 30.00 /票</td>
                        <td><el-input-number v-model="H" @change="handleChange" :min="1" :max="10" label="">
                        </el-input-number></td>
                    </tr>
                    <tr>
                        <td colspan="4">地面操作费: CNY 0/KG</td>
                    </tr>
                    <tr>
                        <th>预估费用</th>
                        <td colspan="3">运费:CNY 23500.00 (最低100.00KG 起运)</td>
                        <td colspan="3">附加费:CNY 230.00</td>
                        <td colspan="3">总费用:</td>
                    </tr>
                    </tbody>
                </table>
            </div>
<!--            货物信息-->
            <h4 class="title">货物信息</h4>
            <div class="r-table">
                <table class="tb" width="100%">
                    <tbody>
                    <tr>
                        <th width="35%">*是否有电池、液体、粉末、磁性及其它违禁物品</th>
                        <td width="15%">
                            <el-radio v-model="radio1" label="1">是</el-radio>
                            <el-radio v-model="radio1" label="2">否</el-radio></td>
                        <th width="35%">*是否购买保险</th>
                        <td width="15%">
                            <el-radio v-model="radio1" label="1">是</el-radio>
                            <el-radio v-model="radio1" label="2">否</el-radio></td>
                    </tr>
                    <tr>
                        <th width="35%">*是否超长托盘</th>
                        <td width="15%">
                            <el-radio v-model="radio1" label="1">是</el-radio>
                            <el-radio v-model="radio1" label="2">否</el-radio></td>
                        <th width="35%">*是否名牌</th>
                        <td width="15%">
                            <el-radio v-model="radio1" label="1">是</el-radio>
                            <el-radio v-model="radio1" label="2">否</el-radio></td>
                    </tr>
                    </tbody>
                </table>
                <table class="tb" style="margin-top: 10px;width: 100%">
                    <tbody>
                    <tr>
                        <th width="20%">中文品名</th>
                        <th width="20%">英文品名</th>
                        <th width="10%">*数量(件)</th>
                        <th width="10%">*实重(KG)</th>
                        <th width="10%">*总体积(CBM)</th>
                        <th width="20%">最大尺寸(长x宽x高)</th>
                        <th width="10%">操作</th>
                    </tr>
                    <tr>
                        <td><el-input v-model="radio1" placeholder="" size="mini"></el-input></td>
                        <td><el-input v-model="radio1" placeholder="" size="mini"></el-input></td>
                        <td><el-input v-model="radio1" placeholder="" size="mini"></el-input></td>
                        <td><el-input v-model="radio1" placeholder="" size="mini"></el-input></td>
                        <td><el-input v-model="radio1" placeholder="" size="mini"></el-input></td>
                        <td><el-input v-model="radio1" placeholder="" size="mini"></el-input></td>
                        <td><el-button  icon="el-icon-plus" size="mini" circle></el-button>
                            <el-button  icon="el-icon-minus" size="mini" circle></el-button></td>
                    </tr>
                    </tbody>
                </table>
            </div>
<!--            收发件通知人信息-->
            <div class="r-table" style="margin-top: 35px">
                <el-collapse v-model="activeNames" @change="handleChange" class="col">
                    <el-collapse-item title="发件人信息" name="1">
                        <table class="tb" width="100%">
                            <tbody>
                            <tr>
                                <th width="15%">姓名</th>
                                <td width="35%"><el-input v-model="radio1" placeholder="" ></el-input></td>
                                <th width="15%">联系电话</th>
                                <td width="35%"><el-input v-model="radio1" placeholder="" ></el-input></td>
                            </tr>
                            <tr>
                                <th colspan="1">公司</th>
                                <td colspan="3"><el-input v-model="radio1" placeholder="" ></el-input></td>
                            </tr>
                            <tr>
                                <th colspan="1">详细地址	</th>
                                <td colspan="3"><el-input v-model="radio1" placeholder="" ></el-input></td>
                            </tr>
                            </tbody>
                        </table>
                    </el-collapse-item>
                    <el-collapse-item title="收件人信息" name="2" class="father">
                        <div class="relative">
                            <el-button type="text" @click="dialogTableVisible  = true">收件地址库</el-button>
                            <el-checkbox v-model="radio1" style="margin-left: 20px">加入地址库</el-checkbox>
                        </div>
                        <table class="tb" width="100%">
                            <tbody>
                            <tr>
                                <th width="15%">姓名</th>
                                <td width="35"><el-input v-model="radio1" placeholder="" ></el-input></td>
                                <th width="15%">联系电话</th>
                                <td width="35%"><el-input v-model="radio1" placeholder="" ></el-input></td>
                            </tr>
                            <tr>
                                <th colspan="1">公司</th>
                                <td colspan="3"><el-input v-model="radio1" placeholder="" ></el-input></td>
                            </tr>
                            <tr>
                                <th colspan="1">详细地址</th>
                                <td colspan="3"><el-input v-model="radio1" placeholder="" ></el-input></td>
                            </tr>
                            <tr>
                                <th colspan="1">特殊信息</th>
                                <td colspan="3"><el-input v-model="radio1" placeholder="" ></el-input></td>
                            </tr>
                            </tbody>
                        </table>
                    </el-collapse-item>
                    <el-collapse-item title="通知人信息" name="3" class="father">
                        <div class="relative"><el-checkbox v-model="radio1">同收件人</el-checkbox></div>
                        <table class="tb" width="100%">
                            <tbody>
                            <tr>
                                <th width="15%">姓名</th>
                                <td width="35%"><el-input v-model="radio1" placeholder="" ></el-input></td>
                                <th width="15%">联系电话</th>
                                <td width="35%"><el-input v-model="radio1" placeholder="" ></el-input></td>
                            </tr>
                            <tr>
                                <th colspan="1">公司</th>
                                <td colspan="3"><el-input v-model="radio1" placeholder="" ></el-input></td>
                            </tr>
                            <tr>
                                <th colspan="1">详细地址</th>
                                <td colspan="3"><el-input v-model="radio1" placeholder="" ></el-input></td>
                            </tr>
                            <tr>
                                <th colspan="1">特殊信息</th>
                                <td colspan="3"><el-input v-model="radio1" placeholder="" ></el-input></td>
                            </tr>
                            </tbody>
                        </table>
                    </el-collapse-item>
                </el-collapse>
            </div>
            <div style="text-align: center;margin-top: 30px">
                <el-button type="danger"  style="width: 180px;height: 50px" @click="open">确认下单</el-button>
            </div>
            <div style="margin-top: 50px;height: 80px"> </div>
        </div>
<!--        收件地址库弹框-->
        <div>
            <el-dialog title="请选择收件人" :visible.sync="dialogTableVisible">
                <el-table :data="gridData">
                    <el-table-column property="name" label="姓名" width="150"></el-table-column>
                    <el-table-column property="tel" label="电话" width="200"></el-table-column>
                    <el-table-column property="address" label="地址"></el-table-column>
                </el-table>
                <div style="margin-top: 10px;text-align: right">
                    <el-button>取消</el-button>
                    <el-button type="primary">请选择收件人</el-button>
                </div>
            </el-dialog>
        </div>
    </div>
</template>
208
小范 authored
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
<script>
    export default {
        data() {
            return{
                gridData:[],
                num:'' ,
                dialogTableVisible:false,
                A:'',
                B:'',
                C:'',
                D:'',
                E:'',
                F:'',
                G:'',
                H:'',
                radio1:'',
                name:'',
                tel:'',
                address:'',
228 229

小范 authored
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247
            }
        },
        methods:{
            handleChange(){},
    open() {
        this.$alert('确认下单?', '', {
            confirmButtonText: '确定',
            callback: action => {
                this.$message({
                    type: 'info',
                    message: `action: ${ action }`
                });
            }
        });
    }
        }
    }
</script>
248
小范 authored
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318
<style scoped>
    .bg{
        background-color: #F2F2F2;
    }
    .air{
        font-size: 20px;
        color: #308aee;
        margin-top: 20px;
        display: block;
    }
    .r-table{
        text-align: center;
    }

    /*line-height: 100px;*/
    .tb{
        font-size: 14px;
        box-sizing: border-box;
        display: table;
        border-spacing: 0;
        border-collapse: collapse;
    }
    .px{
        background-color: #FFFFFF;
        width: 100%;
        height: 850px;
        overflow: auto;
    }
    .title{
        color: #127ef2;
        font-size: 16px;
        font-weight: bold;
        margin: 20px 30px;
        text-align: left;
    }
    .r-table .tb > tbody > tr > th {
        background-color: #d8ecff;
        padding: 10px 5px;
        text-align: center;
        border: 1px solid #ddd;
    }
    .r-table .tb > tbody > tr > td {
        padding: 8px;
        border: 1px solid #ddd;
        display: table-cell;
    }
    .col .tb > tbody > tr > th {
        border: 0px;
    }
    .col .tb > tbody > tr > td {
        border: 0px;
    }
    .father{
        position: relative;
    }
    .relative{
        position: absolute;
        top:11px;
        right: 100px;
    }
</style>
<style>
    .order .el-collapse-item__header{
        color: #127ef2;
        font-size: 16px;
        font-weight: bold;
        margin: 20px 30px;
        text-align: left;
    }
</style>