审查视图

src/views/nmms_import/OrigMaster.vue 62.0 KB
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
<template>
    <el-container>
        <el-main style="background-color: white">
            <!--检索条目部分-->
            <el-row class="row-bg">
                <el-col :span="24">
                    <div class="grid-content content">航班信息</div>
                </el-col>
                <el-col :span="24">
                    <div class="grid-content co">
                        <el-col :span="1">
                            <div class="grid-content"></div>
                        </el-col>
                        <el-col :span="20">
                            <div class="grid-content">
                                <span>航班号:{{defaultQuery.flightno}}</span>
                                <span>航班日期:{{defaultQuery.flightdate}}</span>
                                <span>航段:{{defaultQuery.originstation}}-{{defaultQuery.destinationstation}}</span>
                            </div>
                        </el-col>
                    </div>
                </el-col>
                <el-col :span="24">
                    <div class="grid-content content">进港舱单查询</div>
                </el-col>
                <el-col :span="24">
                    <div class="grid-content co">
                        <el-col :span="1">
                            <div class="grid-content"></div>
                        </el-col>
                        <el-col :span="22">
                            <div class="grid-content">
                                <el-col :span="4.5" class="pub">
                                    <div class="grid-content">
                                        <el-input v-model="defaultQuery.awba" placeholder="请输入主单号"></el-input>
                                    </div>
                                </el-col>
                                <el-col :span="1.5" class="pub">
                                    <div class="grid-content">
                                        <el-button type="primary" size="mini" v-on:click="getList">查询</el-button>
                                    </div>
                                </el-col>
                                <el-col :span="4" class="pub">
                                    <div class="grid-content">
                                        <el-button type="primary" size="mini">导出PDF</el-button>
                                    </div>
                                </el-col>
                            </div>
                        </el-col>
                    </div>
                </el-col>
                <el-col :span="24">
                    <div class="grid-content content" style="margin-top: 6px">舱单明细</div>
                </el-col>
            </el-row>
            <!--查询列表部分-->
            <el-row>
                <el-col :span="24">
                    <template>
                        <el-table
                                ref="multipleTable"
                                :data="tableData"
                                tooltip-effect="dark"
                                style="width: 100%"
                                @selection-change="handleSelectionChange"
                                row-key="uuid"
                                border
                                default-expand-all
                                :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
                            <el-table-column
                                    type="selection"
                                    width="50">
                            </el-table-column>
                                <el-table-column
                                        label="运单号"
xudada authored
76
                                        width="185"
77
                                        show-overflow-tooltip>
xudada authored
78 79 80 81 82 83 84 85
                                    <template slot-scope="scope">
                                        <span v-if="scope.row.awbh==''||scope.row.awbh==null">
                                            {{scope.row.awba}}
                                        </span>
                                        <span v-else>
                                            {{scope.row.awbh}}
                                        </span>
                                    </template>
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
                                </el-table-column>
                            <el-table-column
                                    prop="awbinfo.pcs"
                                    label="总件数"
                                    width="70"
                                    show-overflow-tooltip>
                            </el-table-column>
                            <el-table-column
                                    prop="awbinfo.weight"
                                    label="总重量"
                                    width="70"
                                    show-overflow-tooltip>
                            </el-table-column>
                            <el-table-column
                                    prop="piece"
                                    label="舱单件数"
                                    width="80"
                                    show-overflow-tooltip>
                            </el-table-column>
                            <el-table-column
                                    prop="weight"
                                    label="舱单重量"
                                    width="80"
                                    show-overflow-tooltip>
                            </el-table-column>
                            <el-table-column
                                    prop="goodsname"
                                    label="货品名称"
                                    width="140">
                            </el-table-column>
                            <el-table-column
                                    prop="status"
                                    label="状态"
xudada authored
119
                                    width="100" :formatter="formatStatus">
120 121 122 123 124 125 126 127 128
                            </el-table-column>
                            <el-table-column
                                    prop="customText"
                                    label="回执信息"
                                    width="180">
                            </el-table-column>
                            <el-table-column
                                    prop="operation"
                                    label="操作"
xudada authored
129
                                    width="850"
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
                                    show-overflow-tooltip>
                                <template slot-scope="scope">
                                    <el-button
                                            size="mini"
                                            type="primary"
                                            @click="handleDetail(scope.$index, scope.row)">收发明细
                                    </el-button>
                                    <el-button
                                            v-if="scope.row.awbh==''||scope.row.awbh==null"
                                            size="mini"
                                            type="primary"
                                            @click="handleEdit(scope.$index, scope.row)">编辑主单
                                    </el-button>
                                    <el-button
                                            v-else
                                            size="mini"
                                            type="primary"
                                            @click="handleFen(scope.$index, scope.row)">编辑分单
                                    </el-button>
                                    <el-button
                                            size="mini"
                                            type="primary"
xudada authored
152 153
                                            @click="handleSend(scope.$index, scope.row)"
                                            :disabled="btSendStatusFormater(scope.row.status)">发送舱单报
154 155 156 157
                                    </el-button>
                                    <el-button
                                            size="mini"
                                            type="primary"
xudada authored
158 159
                                            @click="handleUpdate(scope.$index, scope.row)"
                                            :disabled="btEditStatusFormater(scope.row.status)">发送舱单修改报
160 161 162 163
                                    </el-button>
                                    <el-button
                                            size="mini"
                                            type="primary"
xudada authored
164 165
                                            @click="handleDelete(scope.$index, scope.row)"
                                            :disabled="btDeleStatusFormater(scope.row.status)">发送舱单删除报
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
                                    </el-button>
                                    <el-button
                                            v-if="scope.row.awbh==''||scope.row.awbh==null"
                                            size="mini"
                                            type="primary"
                                            @click="Importallocation(scope.$index, scope.row)">分拨申请
                                    </el-button>
                                    <el-button
                                            v-else
                                            disabled=""
                                            size="mini"
                                            type="primary"
                                            @click="Importallocation(scope.$index, scope.row)">分拨申请
                                    </el-button>
                                    <el-button
                                            v-if="scope.row.awbh==''||scope.row.awbh==null"
                                            size="mini"
                                            type="primary"
                                            @click="Allocatearrive(scope.$index, scope.row)">分拨运抵
                                    </el-button>
                                    <el-button
                                            v-else
                                            disabled=""
                                            size="mini"
                                            type="primary"
                                            @click="Allocatearrive(scope.$index, scope.row)">分拨运抵
                                    </el-button>
xudada authored
193 194 195 196 197
                                    <el-button
                                            size="mini"
                                            type="primary"
                                            @click="UpdateStatus(scope.$index, scope.row)">更改状态
                                    </el-button>
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 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
                                </template>
                            </el-table-column>
                        </el-table>
                    </template>
                </el-col>
            </el-row>
            <!--编辑主单-->
            <el-dialog :title="'原始舱单信息'+textMap[dialogStatus]" :visible.sync="outerVisible" width="90%">
                <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="labelPosition"
                         label-width="78px" size="mini">
                    <!--航班信息部分-->
                    <el-row class="flightInfo">
                        <el-col :span="24">
                            <div class="grid-content content">航班信息</div>
                        </el-col>
                        <el-row class="flightInfo">
                            <el-col :span="4">
                                <el-form-item label="运单号" prop="awba">
                                    <div v-if="dialogStatus === 'update'">
                                        <el-input disabled="" v-model="ruleForm.awba"></el-input>
                                    </div>
                                    <div v-else>
                                        <el-input v-model="ruleForm.awba"></el-input>
                                    </div>
                                </el-form-item>
                            </el-col>
                            <el-col :span="4">
                                <el-form-item label="航班号" prop="flightno">
                                        <el-input disabled="" v-model="ruleForm.flightno"></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="5">
                                <el-form-item label="航班日期" required>
                                    <el-col :span="24">
                                        <el-form-item prop="flightdate">
                                                <el-date-picker disabled="" type="date" placeholder="选择日期" :clearable="false"
                                                                v-model="ruleForm.flightdate"
                                                                style="width: 100%;"></el-date-picker>
                                        </el-form-item>
                                    </el-col>
                                </el-form-item>
                            </el-col>
                            <el-col :span="4">
                                <el-form-item label="航段" prop="originstation">
                                        <el-input disabled="" v-model="ruleForm.originstation"></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="4">
                                <el-form-item label="是否分批" prop="splitcode">
                                    <el-select v-model="ruleForm.splitcode" placeholder="">
                                        <el-option v-for="item in splitcodes" :key="item.value" :label="item.label"
                                                   :value="item.value"></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="3">
                                <el-button size="mini" type="primary" @click="dialogStatus==='create'?createData('ruleForm'):updateData('ruleForm')" style="float: right">保存</el-button>
                            </el-col>
                        </el-row>
                        <el-row class="flightInfo">
                            <el-col :span="4">
                                <div v-if="FenStatus === 'addAwbh'">
                                <el-form-item label="分单号" prop="awbh">
                                        <el-input v-model="ruleForm.awbh"></el-input>
                                </el-form-item>
                                    </div>
                                <div v-else>
                                    <el-form-item style="display: none" label="分单号" prop="awbh">
                                        <el-input v-model="ruleForm.awbh"></el-input>
                                    </el-form-item>
                                </div>
                            </el-col>
                        </el-row>
                    </el-row>
                    <!--运单信息部分-->
                    <el-row class="flightInfo">
                        <el-col :span="24">
                            <div class="grid-content content">运单信息</div>
                        </el-col>
                    </el-row>
                    <!--航程信息部分-->
                    <el-row class="flightInfo">
                        <el-col :span="24">
                            <el-divider content-position="left">航程信息</el-divider>
                        </el-col>
                    </el-row>
                    <el-row style="margin-bottom: 0px;">
                        <el-col :span="3">
                            <el-form-item label="起始站" prop="awbinfo.sairportid" >
xudada authored
287
                                <el-input v-model="ruleForm.awbinfo.sairportid" onkeyup="this.value=this.value.toUpperCase()"></el-input>
288 289 290 291
                            </el-form-item>
                        </el-col>
                        <el-col :span="3">
                            <el-form-item label="承运人1" prop="awbinfo.by1">
xudada authored
292
                                <el-input v-model="ruleForm.awbinfo.by1" onkeyup="this.value=this.value.toUpperCase()"></el-input>
293 294 295 296 297 298 299 300 301
                            </el-form-item>
                        </el-col>
                        <el-col :span="3">
                            <el-form-item label="到达站1" prop="awbinfo.dest1">
                                <el-input v-model="ruleForm.awbinfo.dest1"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="3">
                            <el-form-item label="承运人2" prop="awbinfo.by2">
xudada authored
302
                                <el-input v-model="ruleForm.awbinfo.by2" onkeyup="this.value=this.value.toUpperCase()"></el-input>
303 304 305 306
                            </el-form-item>
                        </el-col>
                        <el-col :span="3">
                            <el-form-item label="到达站2" prop="awbinfo.dest2">
xudada authored
307
                                <el-input v-model="ruleForm.awbinfo.dest2" onkeyup="this.value=this.value.toUpperCase()"></el-input>
308 309 310 311
                            </el-form-item>
                        </el-col>
                        <el-col :span="3">
                            <el-form-item label="承运人3" prop="awbinfo.by3">
xudada authored
312
                                <el-input v-model="ruleForm.awbinfo.by3" onkeyup="this.value=this.value.toUpperCase()"></el-input>
313 314 315 316
                            </el-form-item>
                        </el-col>
                        <el-col :span="3">
                            <el-form-item label="到达站3" prop="awbinfo.dest3">
xudada authored
317
                                <el-input v-model="ruleForm.awbinfo.dest3" onkeyup="this.value=this.value.toUpperCase()"></el-input>
318 319 320 321
                            </el-form-item>
                        </el-col>
                        <el-col :span="3">
                            <el-form-item label="目的站" prop="awbinfo.eairportid">
xudada authored
322
                                <el-input v-model="ruleForm.awbinfo.eairportid" onkeyup="this.value=this.value.toUpperCase()"></el-input>
323 324 325 326 327 328 329 330 331 332 333 334 335
                            </el-form-item>
                        </el-col>
                    </el-row>
                    <!--货物信息部分-->
                    <el-row class="flightInfo">
                        <el-col :span="24">
                            <el-divider content-position="left">货物信息</el-divider>
                        </el-col>
                    </el-row>
                    <el-row style="margin-bottom: 0px;">
                        <el-row class="product">
                            <el-col :span="6">
                                <el-form-item label="总件数" prop="awbinfo.pcs">
xudada authored
336
                                    <el-input v-model="ruleForm.awbinfo.pcs" ></el-input>
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
                                <el-form-item label="总重量" prop="awbinfo.weight">
                                    <el-input v-model="ruleForm.awbinfo.weight"></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
                                <el-form-item label="舱单件数" prop="piece">
                                    <el-input v-model="ruleForm.piece"></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
                                <el-form-item label="舱单重量" prop="weight">
                                    <el-input v-model="ruleForm.weight"></el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <el-row class="product">
                            <el-col :span="6">
                                <el-form-item label="特货代码" prop="specopeid">
                                    <el-input v-model="ruleForm.awbinfo.specopeid"></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
                                <el-form-item label="付费方式" prop="paymodel">
                                    <el-select v-model="ruleForm.awbinfo.paymodel" placeholder="" style="display:inline">
                                        <el-option v-for="item in paymodel" :key="item.value" :label="item.label"
                                                   :value="item.value"></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
370 371
                                <el-form-item label="海关状态" prop="awbinfo.awbtype">
                                    <el-select v-model="ruleForm.awbinfo.awbtype" placeholder="" style="display:inline">
372 373 374 375 376 377 378
                                        <el-option v-for="(item,index) in customext5" :key="index" :label="item.label"
                                                   :value="item.value"></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
                                <el-form-item label="海关关区" prop="customcode">
379 380
                                    <el-select v-model="ruleForm.customcode"
                                               filterable
381
                                               allow-create
382 383 384 385
                                               default-first-option
                                               remote
                                               :remote-method="remoteMethod2"
                                               :loading="loading" placeholder="请选择" style="display:inline">
386 387 388 389 390 391 392 393
                                        <el-option
                                                v-for="item in customcodes"
                                                :key="item.customcode"
                                                :label="item.customcode"
                                                :value="item.customcode">
                                            <span style="float: left">{{ item.customcode }}</span>
                                            <span style="float: right; color: #8492a6; font-size: 13px">{{ item.customname }}</span>
                                        </el-option>
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418
                                    </el-select>
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <el-row class="product">
                            <el-col :span="12">
                                <el-form-item label="货物描述" prop="goodsname">
                                    <el-input v-model="ruleForm.goodsname"></el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                    </el-row>
                    <!--发货人信息部分-->
                    <el-row class="flightInfo">
                        <el-col :span="24">
                            <el-divider content-position="left">发货人信息</el-divider>
                        </el-col>
                    </el-row>
                    <el-row style="margin-bottom: 0px;">
                        <el-col :span="6">
                            <el-form-item label="发货人称" prop="awbinfo.shprname">
                                <el-input v-model="ruleForm.awbinfo.shprname"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
419
                            <el-form-item label="国家代码" prop="awbinfo.shprcountyr">
420 421
                                <el-select v-model="ruleForm.awbinfo.shprcountyr"
                                           filterable
422
                                           allow-create
423 424 425 426
                                           default-first-option
                                           remote
                                           :remote-method="remoteMethod"
                                           :loading="loading" placeholder="请选择">
427 428 429 430 431 432 433 434 435
                                    <el-option
                                            v-for="item in shprcountyrs"
                                            :key="item.countryCode"
                                            :label="item.countryCode"
                                            :value="item.countryCode">
                                        <span style="float: left">{{ item.countryNameCn }}</span>
                                        <span style="float: right; color: #8492a6; font-size: 13px">{{ item.countryCode }}</span>
                                    </el-option>
                                </el-select>
436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="地址" prop="awbinfo.shpraddress">
                                <el-input v-model="ruleForm.awbinfo.shpraddress"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="电话" prop="awbinfo.shprtel">
                                <el-input v-model="ruleForm.awbinfo.shprtel"></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    <!--收货人信息部分-->
                    <el-row class="flightInfo">
                        <el-col :span="24">
                            <el-divider content-position="left">收货人信息</el-divider>
                        </el-col>
                    </el-row>
                    <el-row style="margin-bottom: 5px">
                        <el-col :span="6">
                            <el-form-item label="收货人称" prop="awbinfo.cnsnname">
                                <el-input v-model="ruleForm.awbinfo.cnsnname"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
462
463
                            <el-form-item label="国家代码" prop="awbinfo.cnscountyr">
464 465
                                <el-select v-model="ruleForm.awbinfo.cnscountyr"
                                           filterable
466
                                           allow-create
467 468 469 470
                                           default-first-option
                                           remote
                                           :remote-method="remoteMethod"
                                           :loading="loading" placeholder="请选择">
471 472 473 474 475 476 477 478
                                    <el-option
                                            v-for="item in cnscountyrs"
                                            :key="item.countryCode"
                                            :label="item.countryCode"
                                            :value="item.countryCode">
                                        <span style="float: left">{{ item.countryNameCn }}</span>
                                        <span style="float: right; color: #8492a6; font-size: 13px">{{ item.countryCode }}</span>
                                    </el-option>
479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575
                                </el-select>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="地址" prop="awbinfo.cnsnaddress">
                                <el-input v-model="ruleForm.awbinfo.cnsnaddress"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="6">
                            <el-form-item label="电话" prop="awbinfo.cnsntel">
                                <el-input v-model="ruleForm.awbinfo.cnsntel"></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    <!--分单信息部分-->
                    <el-row class="flightInfo">
                        <el-col :span="24">
                            <div class="grid-content content" v-if="dialogStatus === 'update'">
                                <span>航班信息</span>
                                <el-button type="primary" v-on:click="addFen('ruleForm')" size="mini">新增分单</el-button>
                            </div>
                            <div class="grid-content content" v-else>
                                <span>航班信息</span>
                                <el-button type="primary" disabled="" @click="innerVisible = true" size="mini">新增分单</el-button>
                            </div>
                        </el-col>
                    </el-row>
                    <!--分单列表-->
                    <el-row>
                        <el-col :span="24">
                            <template>
                                <el-table
                                        :data="tableData2"
                                        style="width: 100%">
                                    <el-table-column
                                            prop="awbh"
                                            label="分单号"
                                            width="150">
                                    </el-table-column>
                                    <el-table-column
                                            prop="pcs"
                                            label="件数"
                                            width="120">
                                    </el-table-column>
                                    <el-table-column
                                            prop="wei"
                                            label="重量"
                                            width="120">
                                    </el-table-column>
                                    <el-table-column
                                            prop="piece"
                                            label="舱单件数"
                                            width="120">
                                    </el-table-column>
                                    <el-table-column
                                            prop="weight"
                                            label="舱单重量"
                                            width="120">
                                    </el-table-column>
                                    <el-table-column
                                            prop="goodsname"
                                            label="货物名称"
                                            width="300">
                                    </el-table-column>
                                    <el-table-column
                                            fixed="right"
                                            label="操作"
                                            width="130">
                                        <template slot-scope="scope">
                                            <el-button @click="handleClick(scope.row)" type="text" size="small">编辑
                                            </el-button>
                                        </template>
                                    </el-table-column>
                                </el-table>
                            </template>
                        </el-col>
                    </el-row>
                </el-form>
            </el-dialog>
            <!--footer部分-->
            <el-row>
                <el-col :span="2.5" class="pub">
                    <div class="grid-content">
                        <el-button type="primary" size="mini" v-on:click="addOrig">新增原始舱单</el-button>
                    </div>
                </el-col>
                <el-col :span="2.5" class="pub">
                    <div class="grid-content">
                        <el-button type="primary" size="mini">批量发送删除报</el-button>
                    </div>
                </el-col>
                <el-col :span="2" class="pub">
                    <div class="grid-content">
                        <el-button type="primary" size="mini">返回</el-button>
                    </div>
                </el-col>
                <el-col :span="2.5" class="pub">
576
                    <div class="grid-content"><span>主单数:{{sumNmmsCount}}</span></div>
577 578
                </el-col>
                <el-col :span="3.5" class="pub">
579
                    <div class="grid-content"><span>舱单总件数:{{sumNmmsPrice}}</span></div>
580 581
                </el-col>
                <el-col :span="4" class="pub">
582
                    <div class="grid-content"><span>舱单总重量:{{sumNmmsWeight}}</span></div>
583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598
                </el-col>
            </el-row>
            <!--对话提示框-->
            <el-row>
                <el-dialog
                        title="系统提示"
                        :visible.sync="centerDialogVisible"
                        width="30%"
                        center>
                    <span>{{msg}}</span>
                      <span slot="footer" class="dialog-footer">
                          <el-button @click="centerDialogVisible = false">取 消</el-button>
                        <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button>
                      </span>
                </el-dialog>
            </el-row>
599 600
            <!--发送删除报修改报提示框-->
            <el-row>
601
                <el-dialog :title="'提交'+Reason[udStatus]+'信息'" :visible.sync="dialogFormVisible">
602 603 604 605 606 607 608 609 610 611 612 613 614
                    <el-form :model="Udform" :rules="udrules" ref="Udform" class="demo-ruleForm">
                        <el-form-item label="操作原因" prop="operreason">
                            <el-input type="textarea" v-model="Udform.operreason"></el-input>
                        </el-form-item>
                        <el-form-item label="操作人" prop="operperson">
                            <el-input v-model="Udform.operperson"></el-input>
                        </el-form-item>
                        <el-form-item label="联系电话" prop="opertel">
                            <el-input v-model="Udform.opertel"></el-input>
                        </el-form-item>
                    </el-form>
                    <div slot="footer" class="dialog-footer">
                        <el-button @click="dialogFormVisible = false">取 消</el-button>
615
                        <el-button type="primary" @click="udStatus==='delete'?deleteUdForm('Udform'):updateUdForm('Udform')">确 定</el-button>
616 617 618
                    </div>
                </el-dialog>
            </el-row>
xudada authored
619 620 621 622 623 624 625 626 627 628 629 630
            <!--明细列表弹出框-->
            <el-row>
                <el-dialog title="回执明细列表" :visible.sync="dialogTableVisible" width="70%">
                    <el-table :data="gridData">
                        <el-table-column property="busdate" label="时间" width="160"></el-table-column>
                        <el-table-column property="username" label="操作人" width="130"></el-table-column>
                        <el-table-column property="buspiece" label="发送件数" width="130"></el-table-column>
                        <el-table-column property="busweight" label="发送重量" width="130"></el-table-column>
                        <el-table-column property="cusrestext" label="回执内容"></el-table-column>
                    </el-table>
                </el-dialog>
            </el-row>
631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686
        </el-main>
    </el-container>
</template>
<!--自定义CSS样式-->
<style scoped>
    .grid-content {
        height: 36px;
        line-height: 36px;
    }
    .el-dialog__body{text-align: center}
    .content {
        border-left: 4px #409EFF solid;
        padding-left: 10px;
        background-color: #f9fafc;
        margin-bottom: 2px
    }

    .row-bg, .co {
        background-color: white;
    }

    span {
        font-weight: bold;
        margin-right: 35px;
    }

    .el-table td, .el-table th {
        text-align: center
    }

    .el-form-item {
        margin-bottom: 2px;
    }

    .flightInfo {
        margin-bottom: 0px
    }

    .el-dialog__body {
        padding: 10px 20px;
    }

    .el-col {
        margin-right: 0px
    }

    .product {
        margin-bottom: 5px;
    }

    .pub {
        margin-right: 10px;
    }
</style>

<script>
687
    import { getMt1201List,addMt1201,ediMt1201,getFenList,getCountryCode,selectCustomcode,sendCreateMt1201,sendEditeMt1201,sendRemoveMt1201 } from '../../api/mt1201'
xudada authored
688
    import{addResponse,selectResponseList} from "../../api/InResponse";
689
690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717
    export default {
        data() {
            /*初始数据*/
            return {
                defaultQuery:{
                    flightno: undefined,
                    flightdate: undefined,
                    originstation: undefined,
                    destinationstation: undefined,
                    awba: undefined
                },
                FenQuery:{
                    flightno: undefined,
                    flightdate: undefined,
                    originstation: undefined,
                    destinationstation: undefined,
                    awba: undefined
                },
                tableData: [],
                tableData2: [],
                multipleSelection: [],
                outerVisible: false,
                innerVisible: false,
                dialogStatus:'',
                textMap:{
                    update: '编辑',
                    create: '添加'
                },
718 719 720 721
                Reason:{
                    update: '修改',
                    delete: '删除'
                },
722 723 724 725
                ruleForm: {
                    awba: undefined,
                    awbh: undefined,
                    passage: undefined,
xudada authored
726
                    customcode: undefined,
727 728 729 730 731 732 733 734 735 736
                    flightno: undefined,
                    flightdate: undefined,
                    originstation: undefined,
                    destinationstation: undefined,
                    piece: undefined,
                    weight: undefined,
                    goodsname: undefined,
                    splitcode: 'T',
                    uldType: undefined,
                    uldNo: undefined,
xudada authored
737
                    status: '22',
738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756
                    awbinfo: {
                        specopeid: undefined,
                        shprname: undefined,
                        shprmobiletype: undefined,
                        shprtel: undefined,
                        shpraddress: undefined,
                        shprcountyr: undefined,
                        shpcomidpre: undefined,
                        shpcomidpno: undefined,
                        cnsnname: undefined,
                        cnsrmobiletype: undefined,
                        cnsntel: undefined,
                        cnsnaddress: undefined,
                        cnscountyr: undefined,
                        cnscomidpre: undefined,
                        cnscomidno: undefined,
                        cnsrctcname: undefined,
                        cnsrctctel: undefined,
                        cargonm: undefined,
xudada authored
757
                        sairportid: '',
758 759 760 761 762 763 764 765 766 767 768
                        dest1city: undefined,
                        by1: undefined,
                        dest1: undefined,
                        by2: undefined,
                        dest2: undefined,
                        by3: undefined,
                        dest3: undefined,
                        eairportid: undefined,
                        csgcustomerid: undefined,
                        paymodel: 'PP',
                        pcs: undefined,
769 770
                        weight: undefined,
                        awbtype:'001',
771
                    },
xudada authored
772 773
                    waybill:undefined,
                    customText:undefined
774 775
                },
                paymodel:[{value:'PP',label:'预付'},{value:'DP',label:'到付'}],
776 777 778 779 780 781
                customext5:  [
                    {value:'001',label:'普通货物'},
                    {value:'002',label:'国际转运货物'},
                    {value:'003',label:'国内转关'},
                    {value:'004',label:'空箱'},
                    {value:'005',label:'快件'}],
782 783
                customcodes:[],
                customcode:'',
784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806
                rules: {
                    waybill: [{required: true, message: '请输入运单号', trigger: 'blur'}],
                    flightno: [{required: true, message: '航班号必须输入', trigger: 'blur'}],
                    flightdate: [{required: true, message: '航班日期必须选择', trigger: 'blur'}],
                    originstation: [{required: true, message: '航段必须输入', trigger: 'blur'}],
                    splitcode: [{required: true, message: '必须选择', trigger: 'blur'}],
                    piece: [{required: true, message: '舱单件数必须输入且为数字', trigger: 'blur'}],
                    weight: [{required: true, message: '舱单重量必须输入且为数字', trigger: 'blur'}],
                    'awbinfo.sairportid': [{required: true, message: '起始站必须输入', trigger: 'blur'}],
                    'awbinfo.eairportid': [{required: true, message: '目的站必须输入', trigger: 'blur'}],
                    'awbinfo.by1': [{required: true, message: '第一承运人必须输入', trigger: 'blur'}],
                    'awbinfo.dest1': [{required: true, message: '第一到达站人必须输入', trigger: 'blur'}],
                    'awbinfo.pcs': [{required: true, message: '总件数必须输入且为数字', trigger: 'blur'}],
                    'awbinfo.weight': [{required: true, message: '总重量必须输入且为数字', trigger: 'blur'}],
                    'awbinfo.shprname': [{required: true, message: '发货人不能为空', trigger: 'blur'}],
                    'awbinfo.shprtel': [{required: true, message: '发货电话不能为空', trigger: 'blur'}],
                    'awbinfo.shpraddress': [{required: true, message: '发货地址不能为空', trigger: 'blur'}],
                    'awbinfo.shprcountyr': [{required: true, message: '国家代码不能为空', trigger: 'change'}],
                    'awbinfo.cnsnname': [{required: true, message: '收货人不能为空', trigger: 'blur'}],
                    'awbinfo.cnsntel': [{required: true, message: '收货电话不能为空', trigger: 'blur'}],
                    'awbinfo.cnsnaddress': [{required: true, message: '收获地址不能为空', trigger: 'blur'}],
                    'awbinfo.cnscountyr': [{required: true, message: '国家代码不能为空', trigger: 'change'}],
                    'awbinfo.paymodel':[{required: true, message: '付费方式必须选择', trigger: 'change'}],
807
                    'awbinfo.awbtype':[{required: true, message: '海关状态必须选择', trigger: 'change'}],
808 809 810 811 812
                    customcode:[{required: true, message: '海关关区必须选择', trigger: 'change'}],
                    goodsname:[{required: true, message: '货物描述必须填写', trigger: 'blur'}]
                },
                labelPosition: 'left',
                splitcodes: [{value:'T',label:'否'},{value:'P',label:'是'}],
813 814 815
                shprcountyrs:[],
                cnscountyrs:[],
                countryCode:'',
816 817 818
                msg:'',
                code:'',
                centerDialogVisible:false,
819 820 821 822
                FenStatus:'',
                sumNmmsCount:0,
                sumNmmsPrice:0,
                sumNmmsWeight:0,
823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838
                dialogFormVisible: false,
                formLabelWidth: '100px',
                Udform:{
                    operreason:'',
                    operperson:'',
                    opertel:'',
                    flightdate:'',
                    flightno:'',
                    carrier:'',
                    awbano:'',
                    awbhno:'',
                    bustype:'',
                    busdate:'',
                    busweight:'',
                    buspiece:'',
                    opertype:'',
xudada authored
839
                    cusrestext:''
840 841 842 843 844 845
                },
                udrules:{
                    operreason: [{required: true, message: '请输入操作原因', trigger: 'blur'}],
                    operperson: [{required: true, message: '请输入操作人', trigger: 'blur'}],
                    opertel: [{required: true, message: '请输入操作人联系电话', trigger: 'blur'}],
                },
846 847
                udStatus:'',
                loading:false,
xudada authored
848 849
                temprows:{
                },
xudada authored
850 851
                dialogTableVisible:false,
                gridData:[]
852 853 854
            }
        },
        methods: {
xudada authored
855
xudada authored
856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884
            //回执收发明细
            handleDetail(index,row){
                if(row.flightno.length>4){
                    row.flightno=row.flightno.substring(2);
                }
                let params={awbano:row.awba,awbhno:row.awbh,carrier:row.carrier,flightno:row.flightno,flightdate:row.flightdate,bustype:'MT1201'}
                selectResponseList(params).then(res=>{
                    this.dialogTableVisible=true;
                    let response=res.data.data;
                        this.gridData=response;
                });
            },
            //更改状态
            UpdateStatus(column,row){
                this.$confirm("是否发送更改状态", "确认消息", {
                    distinguishCancelAndClose: true,
                    confirmButtonText: '确认更改',
                    cancelButtonText: '取消更改'
                }).then(() => {
                    row.status = '22';
                }).catch(action => {
                    this.$message({
                        type: 'info',
                        message: action === 'cancel'
                            ? '取消状态更改'
                            : '状态更改取消'
                    })
                })
            },
xudada authored
885 886 887 888 889 890 891
            //状态识别
            formatStatus: function(row,column){
               return row.status=='01'?'接受申报':row.status=='02'?'待人工审核':row.status=='03'?'退单'
                   :row.status=='11'?'放行':row.status=='12'?'拒装':row.status=='13'?'禁卸'
                   :row.status=='21'?'可自动发送':row.status=='22'?'未发送':row.status=='23'?'已发送新增报'
                   :row.status=='24'?'已发送删除报':row.status=='25'?'已发送修改报':'';
            },
xudada authored
892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913
            //发送舱单报按钮判定事件
            btSendStatusFormater:(status) => {
                if(status=='23' || status=='24'||status=='25'){
                     return true;
                }else if(status=='22' ) {
                    return false;
                }
            },
            btEditStatusFormater:(status) => {
                if(status=='23' || status=='24'||status=='25'){
                    return true;
                }else if(status=='22' ) {
                    return false;
                }
            },
            btDeleStatusFormater:(status) => {
                if(status=='23' || status=='24'||status=='25'){
                    return true;
                }else if(status=='22' ) {
                    return false;
                }
            },
914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942
            /*多选框功能*/
            handleSelectionChange(val) {
                this.multipleSelection = val;
            },
            /*编辑主单信息*/
            handleEdit(index, row){
                this.outerVisible = true;
                this.dialogStatus='update';
                this.FenStatus='ediAwbh';
                this.ruleForm=row;
                this.ruleForm.originstation=row.originstation+"-"+row.destinationstation;
                this.FenQuery.awba=row.awba;
                this.FenQuery.flightno= row.flightno;
                this.FenQuery.flightdate=row.flightdate
                this.FenQuery.originstation=this.defaultQuery.originstation;
                this.FenQuery.destinationstation=row.destinationstation;
                this.getFenList(this.FenQuery);
            },
            /*编辑分单信息*/
            handleFen(index,row){
                this.outerVisible = true;
                this.dialogStatus='update';
                this.FenStatus='addAwbh';
                this.ruleForm=row;
                this.ruleForm.flightno=row.carrier+row.flightno;
                this.ruleForm.originstation=row.originstation+"-"+row.destinationstation;

            },
            //发送舱单报
943 944 945 946 947 948 949 950 951 952 953 954
            handleSend(index,row){
                if(row.flightno.length>4){
                    row.flightno=row.flightno.substring(2)
                }else{
                    row.flightno=row.flightno;
                }
                const map = {'mt1201':row}
                sendCreateMt1201(map).then(res=>{
                    let response=res.data;
                    //console.log(res);
                    this.code=response.code;
                    if(this.code=='200'){
xudada authored
955
                        row.status='23'
xudada authored
956
                        row.customText='舱单报发送成功';
957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981
                        this.outerVisible = false;
                        this.centerDialogVisible=true;
                        this.msg=response.msg;
                    }else{
                        this.outerVisible = false;
                        this.centerDialogVisible=true;
                        this.msg=response.msg;
                    }
                });
            },
            //发送舱单删除报
            handleDelete(index,row){
                this.udStatus='delete';
                this.dialogFormVisible=true;
                this.Udform.awbano=row.awba;
                this.Udform.awbhno=row.awbh;
                this.Udform.carrier=row.carrier;
                this.Udform.flightno=row.flightno.substring(2);
                this.Udform.flightdate=row.flightdate;
                this.Udform.bustype='MT1201';
                this.Udform.busdate=Date.parse(new Date());
                this.Udform.busweight=row.weight;
                this.Udform.buspiece=row.piece;
                this.Udform.opertype='发送舱单删除报';
                if(row.flightno.length>4){
xudada authored
982 983
                    row.flightno=row.flightno.substring(2);
                }
xudada authored
984
                this.temprows= row;
985 986 987
            },
            //提交发送舱单删除报表单
            deleteUdForm(formName){
xudada authored
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020
                this.$refs[formName].validate((valid) => {
                    if (valid) {
                        const map = {'flightNo':this.temprows.flightno,
                            'flightDate':this.temprows.flightdate,
                            'awba':this.temprows.awba,
                            'content':'',
                            'customCode':this.temprows.customcode,
                            'awbh':this.temprows.awbh,
                            'reason' :this.Udform.operreason,
                            'contactName':this.Udform.operperson,
                            'contactTel':this.Udform.opertel,
                            'carrier':this.Udform.carrier}
                        sendRemoveMt1201(map).then(res=>{
                            let response=res.data;
                            //console.log(res);
                            this.code=response.code;
                            if(this.code=='200'){
                                this.temprows.status='24';
                                this.temprows.customText='舱单删除报发送成功';
                                this.dialogFormVisible=false;
                                this.outerVisible = false;
                                this.centerDialogVisible=true;
                                this.msg=response.msg;
                            }else{
                                this.dialogFormVisible=false;
                                this.outerVisible = false;
                                this.centerDialogVisible=true;
                                this.msg=response.msg;
                            }
                        });
                    } else {
                        console.log('error submit!!');
                        return false;
1021 1022
                    }
                });
xudada authored
1023
1024
            },
1025 1026
            /*发送舱单修改报*/
            handleUpdate(index,row){
1027
                this.udStatus='update';
1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038
                this.dialogFormVisible=true;
                this.Udform.awbano=row.awba;
                this.Udform.awbhno=row.awbh;
                this.Udform.carrier=row.carrier;
                this.Udform.flightno=row.flightno.substring(2);
                this.Udform.flightdate=row.flightdate;
                this.Udform.bustype='MT1201';
                this.Udform.busdate=Date.parse(new Date());
                this.Udform.busweight=row.weight;
                this.Udform.buspiece=row.piece;
                this.Udform.opertype='发送舱单修改报';
1039 1040 1041 1042 1043
                if(row.flightno.length>4){
                    row.flightno=row.flightno.substring(2);
                }else{
                    row.flightno=row.flightno;
                };
xudada authored
1044
                this.temprows=row;
1045 1046
            },
            //提交发送舱单修改报表单
1047
            updateUdForm(formName){
1048
                this.$refs[formName].validate((valid) => {
xudada authored
1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075
                    if (valid) {
                        const map = {'mt1201':this.temprows,
                            'reason' :this.Udform.operreason,
                            'contactName':this.Udform.operperson,
                            'contactTel':this.Udform.opertel}
                        sendEditeMt1201(map).then(res=>{
                            let response=res.data;
                            //console.log(res);
                            this.code=response.code;
                            if(this.code=='200'){
                                this.temprows.status='25'
                                this.temprows.customText='舱单修改报发送成功';
                                this.dialogFormVisible=false;
                                this.outerVisible = false;
                                this.centerDialogVisible=true;
                                this.msg=response.msg;
                            }else{
                                this.dialogFormVisible=false;
                                this.outerVisible = false;
                                this.centerDialogVisible=true;
                                this.msg=response.msg;
                            }
                        });
                    } else {
                        console.log('error submit!!');
                        return false;
                    }
1076
                });
xudada authored
1077
1078
            },
1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098
            /*编辑分单列表信息*/
            handleClick(row) {
                this.outerVisible = true;
                this.dialogStatus='update';
                this.FenStatus='addAwbh';
                this.ruleForm=row;
                this.ruleForm.flightno=row.carrier+row.flightno;
                this.ruleForm.originstation=row.originstation+"-"+row.destinationstation;
            },
            /*获取默认值*/
            getDefaultData(){
                this.defaultQuery.flightno = this.$route.params.flightno;
                this.defaultQuery.flightdate = this.$route.params.flightdate;
                this.defaultQuery.originstation = this.$route.params.originstation;
                this.defaultQuery.destinationstation = this.$route.params.destinationstation;
                this.defaultQuery.awba=this.$route.params.awba;
            },
            /*获取默认数据列表*/
            getList(){
                getMt1201List(this.defaultQuery).then(res =>{
xudada authored
1099
                    console.log(res);
1100 1101 1102
                    this.sumNmmsCount=0;
                    this.sumNmmsPrice=0;
                    this.sumNmmsWeight=0;
1103 1104
                    let response=res.data.data;
                    this.tableData=response;
1105 1106 1107 1108 1109 1110 1111 1112 1113
                    response.forEach((item,i) => {
                        if(item.awba!=null&&item.awbh=="");
                        this.sumNmmsCount=Number(this.sumNmmsCount)+1;
                        this.sumNmmsPrice=Number(this.sumNmmsPrice)+Number(item.piece);
                        this.sumNmmsWeight=Number(this.sumNmmsWeight)+Number(item.weight);
                    })
                });
            },
            /*获取国家代码*/
1114 1115 1116 1117 1118
            remoteMethod:function(query){
                this.shprcountyrs=[];
                this.cnscountyrs=[];
                let params={countryCode:query};
                this.loading = true;
1119
                getCountryCode(params).then(res =>{
1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130
                    if (res !== '') {
                        setTimeout(() => {
                            this.loading = false;
                            this.shprcountyrs=res.data.data;
                            this.cnscountyrs=res.data.data;
                        }, 200);
                    } else {
                        this.shprcountyrs = [];
                        this.cnscountyrs=[];
                    }
1131 1132 1133
                });
            },
            //获取关区代码
1134 1135 1136 1137
            remoteMethod2:function(query){
                this.customcodes=[];
                let params={customcode:query};
                this.loading = true;
1138
                selectCustomcode(params).then(res =>{
1139 1140 1141 1142 1143 1144 1145 1146 1147
                    if (res !== '') {
                        setTimeout(() => {
                            this.loading = false;
                            this.customcodes=res.data.data;
                        }, 200);
                    } else {
                        this.customcodes = [];
                    }
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168
                });
            },
            //新增原始舱单按钮
            addOrig(){
                this.dialogStatus="create";
                this.outerVisible = true;
                this.FenStatus='ediAwbh';
                this.ruleForm.flightno=this.$route.params.flightno;
                this.ruleForm.flightdate=this.$route.params.flightdate;
                this.ruleForm.originstation=this.$route.params.originstation+"-"+this.$route.params.destinationstation;
            },
            //新增原始分单
            addFen(formName){
                this.dialogStatus="create";
                this.outerVisible = true;
                this.FenStatus='addAwbh';
            },
            //新增原始舱单数据
            createData(formName){
                this.$refs[formName].validate((valid) => {
                    if (valid) {
xudada authored
1169
                        this.ruleForm.status='22'
1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246
                        addMt1201(this.ruleForm).then(res=>{
                            let response=res.data;
                            //console.log(res);
                            this.code=response.code;
                            if(this.code=='200'){
                                this.outerVisible = false;
                                this.$refs[formName].resetFields();
                                this.centerDialogVisible=true;
                                this.msg=response.msg;
                                this.getList();
                            }else{
                                this.outerVisible = false;
                                this.centerDialogVisible=true;
                                this.$refs[formName].resetFields();
                                this.msg=response.msg;
                            }
                    });
                    } else {
                        console.log('error submit!!');
                return false;
            }
            });

            },
            //修改原始舱单数据
            updateData(formName){
                this.$refs[formName].validate((valid) => {
                    if (valid) {
                        ediMt1201(this.ruleForm).then(res=>{
                            let response=res.data;
                        //console.log(res);
                        this.code=response.code;
                        if(this.code=='200'){
                            this.outerVisible = false;
                            this.centerDialogVisible=true;
                            this.msg=response.msg;
                            this.getList();
                        }else{
                            this.outerVisible = false;
                            this.centerDialogVisible=true;
                            this.msg=response.msg;
                        }
                    });
                    } else {
                        console.log('error submit!!');
                return false;
            }
            });
            },
            //获取分单列表
            getFenList(data){
                getFenList(data).then(res =>{
                    //console.log(res);
                    let response=res.data.data;
                this.tableData2=response;
            });
            },
            //分拨申请
            Importallocation(index,row){
                this.$router.push({name:'进港分拨',params:{carrier:row.carrier,flightno:row.flightno.substr(2),awba:row.awba,flightdate:row.flightdate,
                    turnpiece:row.awbinfo.pcs,turnweight:row.awbinfo.weight,customcode:row.customcode}});

            },
            //分拨运抵
            Allocatearrive(index,row){
                this.$router.push({name:'分拨运抵',params:{carrier:row.carrier,flightno:row.flightno.substr(2),awba:row.awba,flightdate:row.flightdate,
                    turnpiece:row.awbinfo.pcs,turnweight:row.awbinfo.weight,customcode:row.customcode,goodsname:row.goodsname}});
            }

        },
        /*渲染方法*/
        mounted(){
            this.getDefaultData();
            this.getList();
        }
    }
</script>