Showing
13 changed files
with
1269 additions
and
929 deletions
src/assets/languages/tableHeaders.js
0 → 100644
| 1 | +let tableHeaders = { | ||
| 2 | + //货物查询 | ||
| 3 | + "cargo": [ | ||
| 4 | + { | ||
| 5 | + name: "口岸代码", | ||
| 6 | + value: "portName", | ||
| 7 | + width: "100", | ||
| 8 | + align: "center", | ||
| 9 | + sorTable: true, | ||
| 10 | + status: 1 | ||
| 11 | + }, | ||
| 12 | + { | ||
| 13 | + name: "取件日期", | ||
| 14 | + value: "pickUpDate", | ||
| 15 | + width: "120", | ||
| 16 | + align: "center", | ||
| 17 | + sorTable: true, | ||
| 18 | + status: 1 | ||
| 19 | + }, | ||
| 20 | + { | ||
| 21 | + name: "取件扫描号", | ||
| 22 | + value: "pickUpScanNo", | ||
| 23 | + width: "120", | ||
| 24 | + align: "center", | ||
| 25 | + sorTable: true, | ||
| 26 | + status: 1 | ||
| 27 | + }, | ||
| 28 | + { | ||
| 29 | + name: "站点", | ||
| 30 | + value: "siteName", | ||
| 31 | + width: "80", | ||
| 32 | + align: "center", | ||
| 33 | + sorTable: true, | ||
| 34 | + status: 1 | ||
| 35 | + }, | ||
| 36 | + { | ||
| 37 | + name: "运单号", | ||
| 38 | + value: "waybillNo", | ||
| 39 | + width: "120", | ||
| 40 | + align: "center", | ||
| 41 | + sorTable: true, | ||
| 42 | + status: 1 | ||
| 43 | + }, | ||
| 44 | + { | ||
| 45 | + name: "总单号", | ||
| 46 | + value: "totalWaybillNo", | ||
| 47 | + width: "120", | ||
| 48 | + align: "center", | ||
| 49 | + sorTable: true, | ||
| 50 | + status: 1 | ||
| 51 | + }, | ||
| 52 | + { | ||
| 53 | + name: "服务类型", | ||
| 54 | + value: "serviceTypeName", | ||
| 55 | + width: "100", | ||
| 56 | + align: "center", | ||
| 57 | + sorTable: true, | ||
| 58 | + status: 1 | ||
| 59 | + }, | ||
| 60 | + { | ||
| 61 | + name: "服务代码", | ||
| 62 | + value: "serviceCode", | ||
| 63 | + width: "100", | ||
| 64 | + align: "center", | ||
| 65 | + sorTable: false, | ||
| 66 | + status: 1 | ||
| 67 | + }, | ||
| 68 | + { | ||
| 69 | + name: "URSA", | ||
| 70 | + value: "ursa", | ||
| 71 | + width: "100", | ||
| 72 | + align: "center", | ||
| 73 | + sorTable: true, | ||
| 74 | + status: 1 | ||
| 75 | + }, | ||
| 76 | + { | ||
| 77 | + name: "推送状态", | ||
| 78 | + value: "cargoPushStatus", | ||
| 79 | + width: "100", | ||
| 80 | + align: "center", | ||
| 81 | + sorTable: true, | ||
| 82 | + status: 1 | ||
| 83 | + }, | ||
| 84 | + { | ||
| 85 | + name: "配舱状态", | ||
| 86 | + value: "flightIdImac", | ||
| 87 | + width: "100", | ||
| 88 | + align: "center", | ||
| 89 | + sorTable: true, | ||
| 90 | + status: 1 | ||
| 91 | + }, | ||
| 92 | + { | ||
| 93 | + name: "释放状态", | ||
| 94 | + value: "releasing", | ||
| 95 | + width: "100", | ||
| 96 | + align: "center", | ||
| 97 | + sorTable: true, | ||
| 98 | + status: 1 | ||
| 99 | + }, | ||
| 100 | + { | ||
| 101 | + name: "申报类型", | ||
| 102 | + value: "typeName", | ||
| 103 | + width: "100", | ||
| 104 | + align: "center", | ||
| 105 | + sorTable: true, | ||
| 106 | + status: 1 | ||
| 107 | + }, | ||
| 108 | + { | ||
| 109 | + name: "ACCSpool", | ||
| 110 | + value: "accsPool", | ||
| 111 | + width: "120", | ||
| 112 | + align: "center", | ||
| 113 | + sorTable: true, | ||
| 114 | + status: 1 | ||
| 115 | + }, | ||
| 116 | + { | ||
| 117 | + name: "HandlingCode", | ||
| 118 | + value: "handingCode", | ||
| 119 | + width: "150", | ||
| 120 | + align: "center", | ||
| 121 | + sorTable: true, | ||
| 122 | + status: 1 | ||
| 123 | + }, | ||
| 124 | + { | ||
| 125 | + name: "subcategory", | ||
| 126 | + value: "subCategory", | ||
| 127 | + width: "140", | ||
| 128 | + align: "center", | ||
| 129 | + sorTable: true, | ||
| 130 | + status: 1 | ||
| 131 | + }, | ||
| 132 | + { | ||
| 133 | + name: "件数", | ||
| 134 | + value: "qty", | ||
| 135 | + width: "80", | ||
| 136 | + align: "center", | ||
| 137 | + sorTable: true, | ||
| 138 | + status: 1 | ||
| 139 | + }, | ||
| 140 | + { | ||
| 141 | + name: "实际重量", | ||
| 142 | + value: "actualWeight", | ||
| 143 | + width: "100", | ||
| 144 | + align: "center", | ||
| 145 | + sorTable: true, | ||
| 146 | + status: 1 | ||
| 147 | + }, | ||
| 148 | + { | ||
| 149 | + name: "收件人国家代码", | ||
| 150 | + value: "consigneeCountry", | ||
| 151 | + width: "150", | ||
| 152 | + align: "center", | ||
| 153 | + sorTable: true, | ||
| 154 | + status: 1 | ||
| 155 | + }, | ||
| 156 | + { | ||
| 157 | + name: "品名描述", | ||
| 158 | + value: "nameDescription", | ||
| 159 | + width: "100", | ||
| 160 | + align: "center", | ||
| 161 | + sorTable: false, | ||
| 162 | + status: 1 | ||
| 163 | + }, | ||
| 164 | + { | ||
| 165 | + name: "海关回执状态", | ||
| 166 | + value: "customsReceiptStatusName", | ||
| 167 | + width: "140", | ||
| 168 | + align: "center", | ||
| 169 | + sorTable: true, | ||
| 170 | + status: 1 | ||
| 171 | + }, | ||
| 172 | + { | ||
| 173 | + name: "预审状态", | ||
| 174 | + value: "preQualificationStatus", | ||
| 175 | + width: "100", | ||
| 176 | + align: "center", | ||
| 177 | + sorTable: true, | ||
| 178 | + status: 1 | ||
| 179 | + }, | ||
| 180 | + { | ||
| 181 | + name: "航班预审意见", | ||
| 182 | + value: "caPretrialOpinion", | ||
| 183 | + width: "120", | ||
| 184 | + align: "center", | ||
| 185 | + sorTable: false, | ||
| 186 | + status: 1 | ||
| 187 | + }, | ||
| 188 | + { | ||
| 189 | + name: "货物状态", | ||
| 190 | + value: "statusName", | ||
| 191 | + width: "100", | ||
| 192 | + align: "center", | ||
| 193 | + sorTable: true, | ||
| 194 | + status: 1 | ||
| 195 | + }, | ||
| 196 | + { | ||
| 197 | + name: "终配航班号", | ||
| 198 | + value: "finalFlightNo", | ||
| 199 | + width: "120", | ||
| 200 | + align: "center", | ||
| 201 | + sorTable: true, | ||
| 202 | + status: 1 | ||
| 203 | + }, | ||
| 204 | + { | ||
| 205 | + name: "终配航班日期", | ||
| 206 | + value: "finalFlightTime", | ||
| 207 | + width: "140", | ||
| 208 | + align: "center", | ||
| 209 | + sorTable: true, | ||
| 210 | + status: 1 | ||
| 211 | + }, | ||
| 212 | + { | ||
| 213 | + name: "二配航班号", | ||
| 214 | + value: "twoMatchFlightNo", | ||
| 215 | + width: "120", | ||
| 216 | + align: "center", | ||
| 217 | + sorTable: true, | ||
| 218 | + status: 1 | ||
| 219 | + }, | ||
| 220 | + { | ||
| 221 | + name: "二配航班日期", | ||
| 222 | + value: "twoMatchFlightTime", | ||
| 223 | + width: "150", | ||
| 224 | + align: "center", | ||
| 225 | + sorTable: true, | ||
| 226 | + status: 1 | ||
| 227 | + }, | ||
| 228 | + { | ||
| 229 | + name: "预配航班号", | ||
| 230 | + value: "preplanFlightNo", | ||
| 231 | + width: "120", | ||
| 232 | + align: "center", | ||
| 233 | + sorTable: true, | ||
| 234 | + status: 1 | ||
| 235 | + }, | ||
| 236 | + { | ||
| 237 | + name: "预配航班日期", | ||
| 238 | + value: "preplanFlightTime", | ||
| 239 | + width: "150", | ||
| 240 | + align: "center", | ||
| 241 | + sorTable: true, | ||
| 242 | + status: 1 | ||
| 243 | + }, | ||
| 244 | + { | ||
| 245 | + name: "ACCS原航班号", | ||
| 246 | + value: "fltNoAccs", | ||
| 247 | + width: "150", | ||
| 248 | + align: "center", | ||
| 249 | + sorTable: true, | ||
| 250 | + status: 1 | ||
| 251 | + }, | ||
| 252 | + { | ||
| 253 | + name: "ACCS原航班日期", | ||
| 254 | + value: "fltDateAccs", | ||
| 255 | + width: "150", | ||
| 256 | + align: "center", | ||
| 257 | + sorTable: true, | ||
| 258 | + status: 1 | ||
| 259 | + }, | ||
| 260 | + { | ||
| 261 | + name: "ACCS原航线", | ||
| 262 | + value: "accsFlightRoute", | ||
| 263 | + width: "140", | ||
| 264 | + align: "center", | ||
| 265 | + sorTable: true, | ||
| 266 | + status: 1 | ||
| 267 | + }, | ||
| 268 | + { | ||
| 269 | + name: "是否RDE手工录入", | ||
| 270 | + value: "manualRde", | ||
| 271 | + width: "170", | ||
| 272 | + align: "center", | ||
| 273 | + sorTable: true, | ||
| 274 | + status: 1 | ||
| 275 | + }, | ||
| 276 | + { | ||
| 277 | + name: "是否自动", | ||
| 278 | + value: "cargoRulesStatus", | ||
| 279 | + width: "100", | ||
| 280 | + align: "center", | ||
| 281 | + sorTable: true, | ||
| 282 | + status: 1 | ||
| 283 | + }, | ||
| 284 | + { | ||
| 285 | + name: "发件人账号", | ||
| 286 | + value: "shipperAccount", | ||
| 287 | + width: "120", | ||
| 288 | + align: "center", | ||
| 289 | + status: 1 | ||
| 290 | + }, | ||
| 291 | + { | ||
| 292 | + name: "发件公司中文名称", | ||
| 293 | + value: "shipperCompany", | ||
| 294 | + width: "150", | ||
| 295 | + align: "center", | ||
| 296 | + status: 1 | ||
| 297 | + }, | ||
| 298 | + { | ||
| 299 | + name: "始发地城市名称", | ||
| 300 | + value: "originCity", | ||
| 301 | + width: "130", | ||
| 302 | + align: "center", | ||
| 303 | + sorTable: false, | ||
| 304 | + status: 1 | ||
| 305 | + }, | ||
| 306 | + { | ||
| 307 | + name: "收件地", | ||
| 308 | + value: "destinationSiteName", | ||
| 309 | + width: "90", | ||
| 310 | + align: "center", | ||
| 311 | + status: 1 | ||
| 312 | + }, | ||
| 313 | + { | ||
| 314 | + name: "尺寸", | ||
| 315 | + value: "sizeStr", | ||
| 316 | + width: "80", | ||
| 317 | + align: "center", | ||
| 318 | + sorTable: true, | ||
| 319 | + status: 1 | ||
| 320 | + }, | ||
| 321 | + { | ||
| 322 | + name: "大货预审意见(是否可以配置航班)", | ||
| 323 | + value: "bigPretrialOpinion", | ||
| 324 | + width: "200", | ||
| 325 | + align: "center", | ||
| 326 | + status: 1 | ||
| 327 | + }, | ||
| 328 | + { | ||
| 329 | + name: "大货预审时间", | ||
| 330 | + value: "bigPretrialTime", | ||
| 331 | + width: "120", | ||
| 332 | + align: "center", | ||
| 333 | + status: 1 | ||
| 334 | + }, | ||
| 335 | + { | ||
| 336 | + name: "海关回执时间", | ||
| 337 | + value: "customsReceiptTime", | ||
| 338 | + width: "150", | ||
| 339 | + align: "center", | ||
| 340 | + sorTable: true, | ||
| 341 | + status: 1 | ||
| 342 | + }, | ||
| 343 | + { | ||
| 344 | + name: "航班预审时间", | ||
| 345 | + value: "caPretrialTime", | ||
| 346 | + width: "150", | ||
| 347 | + align: "center", | ||
| 348 | + sorTable: true, | ||
| 349 | + status: 1 | ||
| 350 | + }, | ||
| 351 | + { | ||
| 352 | + name: "创建人", | ||
| 353 | + value: "createUserName", | ||
| 354 | + width: "90", | ||
| 355 | + align: "center", | ||
| 356 | + sorTable: true, | ||
| 357 | + status: 1 | ||
| 358 | + }, | ||
| 359 | + { | ||
| 360 | + name: "创建时间", | ||
| 361 | + value: "createTime", | ||
| 362 | + width: "100", | ||
| 363 | + align: "center", | ||
| 364 | + sorTable: true, | ||
| 365 | + status: 1 | ||
| 366 | + }, | ||
| 367 | + ], | ||
| 368 | + //航班信息维护 | ||
| 369 | + "FlightInformation": [ | ||
| 370 | + { | ||
| 371 | + name: "航班日期", | ||
| 372 | + value: "fltDate", | ||
| 373 | + width: "100", | ||
| 374 | + align: "center", | ||
| 375 | + status: 1 | ||
| 376 | + }, | ||
| 377 | + { | ||
| 378 | + name: "航班起飞时间", | ||
| 379 | + value: "takeOffTime", | ||
| 380 | + width: "120", | ||
| 381 | + align: "center", | ||
| 382 | + status: 1 | ||
| 383 | + }, | ||
| 384 | + { | ||
| 385 | + name: "Pre-MDE CutOff时间", | ||
| 386 | + value: "cutOffTime", | ||
| 387 | + width: "150", | ||
| 388 | + align: "center", | ||
| 389 | + status: 1 | ||
| 390 | + }, | ||
| 391 | + { | ||
| 392 | + name: "航班号", | ||
| 393 | + value: "fltNo", | ||
| 394 | + width: "100", | ||
| 395 | + align: "center", | ||
| 396 | + status: 1 | ||
| 397 | + }, | ||
| 398 | + { | ||
| 399 | + name: "航班路线", | ||
| 400 | + value: "route", | ||
| 401 | + width: "140", | ||
| 402 | + align: "center", | ||
| 403 | + status: 1 | ||
| 404 | + }, | ||
| 405 | + { | ||
| 406 | + name: "航班类型", | ||
| 407 | + value: "typeName", | ||
| 408 | + width: "100", | ||
| 409 | + align: "center", | ||
| 410 | + status: 1 | ||
| 411 | + }, | ||
| 412 | + { | ||
| 413 | + name: "航班种类", | ||
| 414 | + value: "flightKindName", | ||
| 415 | + width: "100", | ||
| 416 | + align: "center", | ||
| 417 | + status: 1 | ||
| 418 | + }, | ||
| 419 | + { | ||
| 420 | + name: "航班状态", | ||
| 421 | + value: "statusName", | ||
| 422 | + width: "100", | ||
| 423 | + align: "center", | ||
| 424 | + status: 1 | ||
| 425 | + }, | ||
| 426 | + { | ||
| 427 | + name: "是否自动推送", | ||
| 428 | + value: "pushDateSwitch", | ||
| 429 | + width: "120", | ||
| 430 | + align: "center", | ||
| 431 | + status: 1 | ||
| 432 | + }, | ||
| 433 | + { | ||
| 434 | + name: "总重量", | ||
| 435 | + value: "totalWeight", | ||
| 436 | + width: "90", | ||
| 437 | + align: "center", | ||
| 438 | + status: 1 | ||
| 439 | + }, | ||
| 440 | + { | ||
| 441 | + name: "原始重量(KG)", | ||
| 442 | + value: "originalWeight", | ||
| 443 | + width: "120", | ||
| 444 | + align: "center", | ||
| 445 | + status: 1 | ||
| 446 | + }, | ||
| 447 | + { | ||
| 448 | + name: "已配重量", | ||
| 449 | + value: "alloctedWeight", | ||
| 450 | + width: "90", | ||
| 451 | + align: "center", | ||
| 452 | + status: 1 | ||
| 453 | + }, | ||
| 454 | + { | ||
| 455 | + name: "总体积(cm³)", | ||
| 456 | + value: "totalVolume", | ||
| 457 | + width: "100", | ||
| 458 | + align: "center", | ||
| 459 | + status: 1 | ||
| 460 | + }, | ||
| 461 | + { | ||
| 462 | + name: "已配体积(cm³)", | ||
| 463 | + value: "alloctedVolume", | ||
| 464 | + width: "120", | ||
| 465 | + align: "center", | ||
| 466 | + status: 1 | ||
| 467 | + }, | ||
| 468 | + { | ||
| 469 | + name: "是否需要预审", | ||
| 470 | + value: "needRequired", | ||
| 471 | + width: "130", | ||
| 472 | + align: "center", | ||
| 473 | + status: 1 | ||
| 474 | + }, | ||
| 475 | + { | ||
| 476 | + name: "是否开启高低价", | ||
| 477 | + value: "highLowPriceFlg", | ||
| 478 | + width: "140", | ||
| 479 | + align: "center", | ||
| 480 | + status: 1 | ||
| 481 | + }, | ||
| 482 | + { | ||
| 483 | + name: "是否限制一票一件", | ||
| 484 | + value: "ticketToPiece", | ||
| 485 | + width: "140", | ||
| 486 | + align: "center", | ||
| 487 | + status: 1 | ||
| 488 | + }, | ||
| 489 | + { | ||
| 490 | + name: "额外增重百分比", | ||
| 491 | + value: "extraWeightPercent", | ||
| 492 | + width: "140", | ||
| 493 | + align: "center", | ||
| 494 | + status: 1 | ||
| 495 | + }, | ||
| 496 | + { | ||
| 497 | + name: "高价百分比", | ||
| 498 | + value: "highPriceWeightPercent", | ||
| 499 | + width: "120", | ||
| 500 | + align: "center", | ||
| 501 | + status: 1 | ||
| 502 | + }, | ||
| 503 | + { | ||
| 504 | + name: "低价百分比", | ||
| 505 | + value: "lowPriceWeightPercent", | ||
| 506 | + width: "120", | ||
| 507 | + align: "center", | ||
| 508 | + status: 1 | ||
| 509 | + }, | ||
| 510 | + { | ||
| 511 | + name: "航班优先级", | ||
| 512 | + value: "priorityName", | ||
| 513 | + width: "100", | ||
| 514 | + align: "center", | ||
| 515 | + status: 1 | ||
| 516 | + }, | ||
| 517 | + { | ||
| 518 | + name: "配舱优先级", | ||
| 519 | + value: "priorityRuleName", | ||
| 520 | + width: "100", | ||
| 521 | + align: "center", | ||
| 522 | + status: 1 | ||
| 523 | + }, | ||
| 524 | + { | ||
| 525 | + name: "创建人", | ||
| 526 | + value: "createUserName", | ||
| 527 | + width: "90", | ||
| 528 | + align: "center", | ||
| 529 | + status: 1 | ||
| 530 | + }, | ||
| 531 | + { | ||
| 532 | + name: "创建时间", | ||
| 533 | + value: "createTime", | ||
| 534 | + width: "100", | ||
| 535 | + align: "center", | ||
| 536 | + status: 1 | ||
| 537 | + }, | ||
| 538 | + { | ||
| 539 | + name: "最后修改人", | ||
| 540 | + value: "lastModifyUserName", | ||
| 541 | + width: "120", | ||
| 542 | + align: "center", | ||
| 543 | + status: 1 | ||
| 544 | + }, | ||
| 545 | + { | ||
| 546 | + name: "最后修改时间", | ||
| 547 | + value: "lastModifyTime", | ||
| 548 | + width: "120", | ||
| 549 | + align: "center", | ||
| 550 | + status: 1 | ||
| 551 | + }, | ||
| 552 | + ], | ||
| 553 | + //手动配舱 | ||
| 554 | + "cargoAllocation": [ | ||
| 555 | + { | ||
| 556 | + name: "口岸代码", | ||
| 557 | + value: "portName", | ||
| 558 | + width: "100", | ||
| 559 | + align: "center", | ||
| 560 | + sorTable: true, | ||
| 561 | + status: 1 | ||
| 562 | + }, | ||
| 563 | + { | ||
| 564 | + name: "取件日期", | ||
| 565 | + value: "pickUpDate", | ||
| 566 | + width: "120", | ||
| 567 | + align: "center", | ||
| 568 | + sorTable: true, | ||
| 569 | + status: 1 | ||
| 570 | + }, | ||
| 571 | + { | ||
| 572 | + name: "取件扫描号", | ||
| 573 | + value: "pickUpScanNo", | ||
| 574 | + width: "120", | ||
| 575 | + align: "center", | ||
| 576 | + sorTable: true, | ||
| 577 | + status: 1 | ||
| 578 | + }, | ||
| 579 | + { | ||
| 580 | + name: "站点", | ||
| 581 | + value: "siteName", | ||
| 582 | + width: "80", | ||
| 583 | + align: "center", | ||
| 584 | + sorTable: true, | ||
| 585 | + status: 1 | ||
| 586 | + }, | ||
| 587 | + { | ||
| 588 | + name: "运单号", | ||
| 589 | + value: "waybillNo", | ||
| 590 | + width: "120", | ||
| 591 | + align: "center", | ||
| 592 | + sorTable: true, | ||
| 593 | + status: 1 | ||
| 594 | + }, | ||
| 595 | + { | ||
| 596 | + name: "总单号", | ||
| 597 | + value: "totalWaybillNo", | ||
| 598 | + width: "120", | ||
| 599 | + align: "center", | ||
| 600 | + sorTable: true, | ||
| 601 | + status: 1 | ||
| 602 | + }, | ||
| 603 | + { | ||
| 604 | + name: "服务类型", | ||
| 605 | + value: "serviceTypeName", | ||
| 606 | + width: "100", | ||
| 607 | + align: "center", | ||
| 608 | + sorTable: true, | ||
| 609 | + status: 1 | ||
| 610 | + }, | ||
| 611 | + { | ||
| 612 | + name: "服务代码", | ||
| 613 | + value: "serviceCode", | ||
| 614 | + width: "100", | ||
| 615 | + align: "center", | ||
| 616 | + sorTable: false, | ||
| 617 | + status: 1 | ||
| 618 | + }, | ||
| 619 | + { | ||
| 620 | + name: "URSA", | ||
| 621 | + value: "ursa", | ||
| 622 | + width: "100", | ||
| 623 | + align: "center", | ||
| 624 | + sorTable: true, | ||
| 625 | + status: 1 | ||
| 626 | + }, | ||
| 627 | + { | ||
| 628 | + name: "申报类型", | ||
| 629 | + value: "typeName", | ||
| 630 | + width: "100", | ||
| 631 | + align: "center", | ||
| 632 | + sorTable: true, | ||
| 633 | + status: 1 | ||
| 634 | + }, | ||
| 635 | + { | ||
| 636 | + name: "HandlingCode", | ||
| 637 | + value: "handingCode", | ||
| 638 | + width: "150", | ||
| 639 | + align: "center", | ||
| 640 | + sorTable: true, | ||
| 641 | + status: 1 | ||
| 642 | + }, | ||
| 643 | + { | ||
| 644 | + name: "subcategory", | ||
| 645 | + value: "subCategory", | ||
| 646 | + width: "140", | ||
| 647 | + align: "center", | ||
| 648 | + sorTable: true, | ||
| 649 | + status: 1 | ||
| 650 | + }, | ||
| 651 | + { | ||
| 652 | + name: "件数", | ||
| 653 | + value: "qty", | ||
| 654 | + width: "80", | ||
| 655 | + align: "center", | ||
| 656 | + sorTable: true, | ||
| 657 | + status: 1 | ||
| 658 | + }, | ||
| 659 | + { | ||
| 660 | + name: "实际重量", | ||
| 661 | + value: "actualWeight", | ||
| 662 | + width: "100", | ||
| 663 | + align: "center", | ||
| 664 | + sorTable: true, | ||
| 665 | + status: 1 | ||
| 666 | + }, | ||
| 667 | + { | ||
| 668 | + name: "收件人国家代码", | ||
| 669 | + value: "consigneeCountry", | ||
| 670 | + width: "150", | ||
| 671 | + align: "center", | ||
| 672 | + sorTable: true, | ||
| 673 | + status: 1 | ||
| 674 | + }, | ||
| 675 | + { | ||
| 676 | + name: "品名描述", | ||
| 677 | + value: "nameDescription", | ||
| 678 | + width: "100", | ||
| 679 | + align: "center", | ||
| 680 | + sorTable: false, | ||
| 681 | + status: 1 | ||
| 682 | + }, | ||
| 683 | + { | ||
| 684 | + name: "海关回执状态", | ||
| 685 | + value: "customsReceiptStatusName", | ||
| 686 | + width: "140", | ||
| 687 | + align: "center", | ||
| 688 | + sorTable: true, | ||
| 689 | + status: 1 | ||
| 690 | + }, | ||
| 691 | + { | ||
| 692 | + name: "预审状态", | ||
| 693 | + value: "preQualificationStatus", | ||
| 694 | + width: "100", | ||
| 695 | + align: "center", | ||
| 696 | + sorTable: true, | ||
| 697 | + status: 1 | ||
| 698 | + }, | ||
| 699 | + { | ||
| 700 | + name: "航班预审意见", | ||
| 701 | + value: "caPretrialOpinion", | ||
| 702 | + width: "120", | ||
| 703 | + align: "center", | ||
| 704 | + status: 1 | ||
| 705 | + }, | ||
| 706 | + { | ||
| 707 | + name: "货物状态", | ||
| 708 | + value: "statusName", | ||
| 709 | + width: "100", | ||
| 710 | + align: "center", | ||
| 711 | + sorTable: true, | ||
| 712 | + status: 1 | ||
| 713 | + }, | ||
| 714 | + { | ||
| 715 | + name: "终配航班号", | ||
| 716 | + value: "finalFlightNo", | ||
| 717 | + width: "120", | ||
| 718 | + align: "center", | ||
| 719 | + sorTable: true, | ||
| 720 | + status: 1 | ||
| 721 | + }, | ||
| 722 | + { | ||
| 723 | + name: "终配航班日期", | ||
| 724 | + value: "finalFlightTime", | ||
| 725 | + width: "140", | ||
| 726 | + align: "center", | ||
| 727 | + sorTable: true, | ||
| 728 | + status: 1 | ||
| 729 | + }, | ||
| 730 | + { | ||
| 731 | + name: "二配航班号", | ||
| 732 | + value: "twoMatchFlightNo", | ||
| 733 | + width: "120", | ||
| 734 | + align: "center", | ||
| 735 | + sorTable: true, | ||
| 736 | + status: 1 | ||
| 737 | + }, | ||
| 738 | + { | ||
| 739 | + name: "二配航班日期", | ||
| 740 | + value: "twoMatchFlightTime", | ||
| 741 | + width: "150", | ||
| 742 | + align: "center", | ||
| 743 | + sorTable: true, | ||
| 744 | + status: 1 | ||
| 745 | + }, | ||
| 746 | + { | ||
| 747 | + name: "预配航班号", | ||
| 748 | + value: "preplanFlightNo", | ||
| 749 | + width: "120", | ||
| 750 | + align: "center", | ||
| 751 | + sorTable: true, | ||
| 752 | + status: 1 | ||
| 753 | + }, | ||
| 754 | + { | ||
| 755 | + name: "预配航班日期", | ||
| 756 | + value: "preplanFlightTime", | ||
| 757 | + width: "150", | ||
| 758 | + align: "center", | ||
| 759 | + sorTable: true, | ||
| 760 | + status: 1 | ||
| 761 | + }, | ||
| 762 | + { | ||
| 763 | + name: "ACCS原航班号", | ||
| 764 | + value: "fltNoAccs", | ||
| 765 | + width: "150", | ||
| 766 | + align: "center", | ||
| 767 | + sorTable: true, | ||
| 768 | + status: 1 | ||
| 769 | + }, | ||
| 770 | + { | ||
| 771 | + name: "ACCS原航班日期", | ||
| 772 | + value: "fltDateAccs", | ||
| 773 | + width: "150", | ||
| 774 | + align: "center", | ||
| 775 | + sorTable: true, | ||
| 776 | + status: 1 | ||
| 777 | + }, | ||
| 778 | + { | ||
| 779 | + name: "ACCS原航线", | ||
| 780 | + value: "accsFlightRoute", | ||
| 781 | + width: "140", | ||
| 782 | + align: "center", | ||
| 783 | + sorTable: true, | ||
| 784 | + status: 1 | ||
| 785 | + }, | ||
| 786 | + { | ||
| 787 | + name: "是否RDE手工录入", | ||
| 788 | + value: "manualRde", | ||
| 789 | + width: "170", | ||
| 790 | + align: "center", | ||
| 791 | + sorTable: true, | ||
| 792 | + status: 1 | ||
| 793 | + }, | ||
| 794 | + { | ||
| 795 | + name: "是否自动", | ||
| 796 | + value: "cargoRulesStatus", | ||
| 797 | + width: "100", | ||
| 798 | + align: "center", | ||
| 799 | + sorTable: true, | ||
| 800 | + status: 1 | ||
| 801 | + }, | ||
| 802 | + { | ||
| 803 | + name: "发件人账号", | ||
| 804 | + value: "shipperAccount", | ||
| 805 | + width: "120", | ||
| 806 | + align: "center", | ||
| 807 | + status: 1 | ||
| 808 | + }, | ||
| 809 | + { | ||
| 810 | + name: "发件公司中文名称", | ||
| 811 | + value: "shipperCompany", | ||
| 812 | + width: "150", | ||
| 813 | + align: "center", | ||
| 814 | + status: 1 | ||
| 815 | + }, | ||
| 816 | + { | ||
| 817 | + name: "始发地城市名称", | ||
| 818 | + value: "originCity", | ||
| 819 | + width: "130", | ||
| 820 | + align: "center", | ||
| 821 | + status: 1 | ||
| 822 | + }, | ||
| 823 | + { | ||
| 824 | + name: "收件地", | ||
| 825 | + value: "destinationSiteName", | ||
| 826 | + width: "90", | ||
| 827 | + align: "center", | ||
| 828 | + status: 1 | ||
| 829 | + }, | ||
| 830 | + { | ||
| 831 | + name: "尺寸", | ||
| 832 | + value: "sizeStr", | ||
| 833 | + width: "80", | ||
| 834 | + align: "center", | ||
| 835 | + sorTable: true, | ||
| 836 | + status: 1 | ||
| 837 | + }, | ||
| 838 | + { | ||
| 839 | + name: "大货预审意见(是否可以配置航班)", | ||
| 840 | + value: "bigPretrialOpinion", | ||
| 841 | + width: "250", | ||
| 842 | + align: "center", | ||
| 843 | + status: 1 | ||
| 844 | + }, | ||
| 845 | + { | ||
| 846 | + name: "大货预审时间", | ||
| 847 | + value: "bigPretrialTime", | ||
| 848 | + width: "120", | ||
| 849 | + align: "center", | ||
| 850 | + status: 1 | ||
| 851 | + }, | ||
| 852 | + { | ||
| 853 | + name: "海关回执时间", | ||
| 854 | + value: "customsReceiptTime", | ||
| 855 | + width: "150", | ||
| 856 | + align: "center", | ||
| 857 | + sorTable: true, | ||
| 858 | + status: 1 | ||
| 859 | + }, | ||
| 860 | + { | ||
| 861 | + name: "航班预审时间", | ||
| 862 | + value: "caPretrialTime", | ||
| 863 | + width: "150", | ||
| 864 | + align: "center", | ||
| 865 | + sorTable: true, | ||
| 866 | + status: 1 | ||
| 867 | + }, | ||
| 868 | + { | ||
| 869 | + name: "创建人", | ||
| 870 | + value: "createUserName", | ||
| 871 | + width: "90", | ||
| 872 | + align: "center", | ||
| 873 | + sorTable: true, | ||
| 874 | + status: 1 | ||
| 875 | + }, | ||
| 876 | + { | ||
| 877 | + name: "创建时间", | ||
| 878 | + value: "createTime", | ||
| 879 | + width: "100", | ||
| 880 | + align: "center", | ||
| 881 | + sorTable: true, | ||
| 882 | + status: 1 | ||
| 883 | + }, | ||
| 884 | + ], | ||
| 885 | + //角色设置 | ||
| 886 | + "role": [ | ||
| 887 | + { | ||
| 888 | + name: "角色名称", | ||
| 889 | + value: "name", | ||
| 890 | + width: "150px", | ||
| 891 | + align: "center", | ||
| 892 | + status: 1 | ||
| 893 | + }, | ||
| 894 | + { | ||
| 895 | + name: "角色状态", | ||
| 896 | + value: "valid", | ||
| 897 | + width: "150px", | ||
| 898 | + align: "center", | ||
| 899 | + status: 1 | ||
| 900 | + }, | ||
| 901 | + { | ||
| 902 | + name: "创建人", | ||
| 903 | + value: "createUserName", | ||
| 904 | + width: "150px", | ||
| 905 | + align: "center", | ||
| 906 | + status: 1 | ||
| 907 | + }, | ||
| 908 | + { | ||
| 909 | + name: "创建时间", | ||
| 910 | + value: "createTime", | ||
| 911 | + width: "150px", | ||
| 912 | + align: "center", | ||
| 913 | + status: 1 | ||
| 914 | + }, | ||
| 915 | + { | ||
| 916 | + name: "修改时间", | ||
| 917 | + value: "updateTime", | ||
| 918 | + width: "150px", | ||
| 919 | + align: "center", | ||
| 920 | + status: 1 | ||
| 921 | + }, | ||
| 922 | + { | ||
| 923 | + name: "备注", | ||
| 924 | + value: "remark", | ||
| 925 | + width: "400px", | ||
| 926 | + align: "center", | ||
| 927 | + status: 1 | ||
| 928 | + }, | ||
| 929 | + ], | ||
| 930 | + //用户设置 | ||
| 931 | + "user": [ | ||
| 932 | + { | ||
| 933 | + name: "员工号", | ||
| 934 | + value: "loginName", | ||
| 935 | + width: "150px", | ||
| 936 | + align: "center", | ||
| 937 | + status: 1 | ||
| 938 | + }, | ||
| 939 | + { | ||
| 940 | + name: "用户姓名", | ||
| 941 | + value: "username", | ||
| 942 | + width: "150px", | ||
| 943 | + align: "center", | ||
| 944 | + status: 1 | ||
| 945 | + }, | ||
| 946 | + { | ||
| 947 | + name: "所属口岸", | ||
| 948 | + value: "portName", | ||
| 949 | + width: "150px", | ||
| 950 | + align: "center", | ||
| 951 | + status: 1 | ||
| 952 | + }, | ||
| 953 | + { | ||
| 954 | + name: "所属角色", | ||
| 955 | + value: "roleNames", | ||
| 956 | + width: "150px", | ||
| 957 | + align: "center", | ||
| 958 | + status: 1 | ||
| 959 | + }, | ||
| 960 | + { | ||
| 961 | + name: "电子邮箱", | ||
| 962 | + value: "email", | ||
| 963 | + width: "150px", | ||
| 964 | + align: "center", | ||
| 965 | + status: 1 | ||
| 966 | + }, | ||
| 967 | + { | ||
| 968 | + name: "用户状态", | ||
| 969 | + value: "isValid", | ||
| 970 | + width: "100px", | ||
| 971 | + align: "center", | ||
| 972 | + status: 1 | ||
| 973 | + }, | ||
| 974 | + { | ||
| 975 | + name: "修改时间", | ||
| 976 | + value: "updateTime", | ||
| 977 | + width: "150px", | ||
| 978 | + align: "center", | ||
| 979 | + status: 1 | ||
| 980 | + }, | ||
| 981 | + { | ||
| 982 | + name: "备注", | ||
| 983 | + value: "remark", | ||
| 984 | + width: "150px", | ||
| 985 | + align: "center", | ||
| 986 | + status: 1 | ||
| 987 | + }, | ||
| 988 | + ], | ||
| 989 | + "DM": [ | ||
| 990 | + { | ||
| 991 | + name: "DMaccsId", | ||
| 992 | + value: "dmAccsId", | ||
| 993 | + width: "", | ||
| 994 | + align: "center", | ||
| 995 | + status: 1 | ||
| 996 | + }, | ||
| 997 | + { | ||
| 998 | + name: "创建时间", | ||
| 999 | + value: "dmCreateTime", | ||
| 1000 | + width: "", | ||
| 1001 | + align: "center", | ||
| 1002 | + status: 1 | ||
| 1003 | + }, | ||
| 1004 | + { | ||
| 1005 | + name: "落地时间", | ||
| 1006 | + value: "dmSendTime", | ||
| 1007 | + width: "", | ||
| 1008 | + align: "center", | ||
| 1009 | + status: 1 | ||
| 1010 | + }, | ||
| 1011 | + { | ||
| 1012 | + name: "航班号", | ||
| 1013 | + value: "dmFlightNbr", | ||
| 1014 | + width: "", | ||
| 1015 | + align: "center", | ||
| 1016 | + status: 1 | ||
| 1017 | + }, | ||
| 1018 | + { | ||
| 1019 | + name: "航班日期", | ||
| 1020 | + value: "dmFlightDate", | ||
| 1021 | + width: "", | ||
| 1022 | + align: "center", | ||
| 1023 | + status: 1 | ||
| 1024 | + }, | ||
| 1025 | + { | ||
| 1026 | + name: "货物创建时间", | ||
| 1027 | + value: "cargoCreateTime", | ||
| 1028 | + width: "", | ||
| 1029 | + align: "center", | ||
| 1030 | + status: 1 | ||
| 1031 | + }, | ||
| 1032 | + { | ||
| 1033 | + name: "推送状态", | ||
| 1034 | + value: "cargoAllocationDataStatus", | ||
| 1035 | + width: "", | ||
| 1036 | + align: "center", | ||
| 1037 | + status: 1 | ||
| 1038 | + }, | ||
| 1039 | + { | ||
| 1040 | + name: "ACCS航线", | ||
| 1041 | + value: "flightFltDate", | ||
| 1042 | + width: "", | ||
| 1043 | + align: "center", | ||
| 1044 | + status: 1 | ||
| 1045 | + }, | ||
| 1046 | + { | ||
| 1047 | + name: "ACCS Pool", | ||
| 1048 | + value: "flightFltNo", | ||
| 1049 | + width: "", | ||
| 1050 | + align: "center", | ||
| 1051 | + status: 1 | ||
| 1052 | + }, | ||
| 1053 | + { | ||
| 1054 | + name: "消息代码", | ||
| 1055 | + value: "sendLogSendTime", | ||
| 1056 | + width: "", | ||
| 1057 | + align: "center", | ||
| 1058 | + status: 1 | ||
| 1059 | + }, | ||
| 1060 | + { | ||
| 1061 | + name: "消息发送时间", | ||
| 1062 | + value: "sendLogSendResult", | ||
| 1063 | + width: "", | ||
| 1064 | + align: "center", | ||
| 1065 | + status: 1 | ||
| 1066 | + }, | ||
| 1067 | + ], | ||
| 1068 | + "dict": [ | ||
| 1069 | + { | ||
| 1070 | + name: "数据名称", | ||
| 1071 | + value: "chineseName", | ||
| 1072 | + width: "", | ||
| 1073 | + align: "center", | ||
| 1074 | + status: 1 | ||
| 1075 | + }, | ||
| 1076 | + { | ||
| 1077 | + name: "字典CODE", | ||
| 1078 | + value: "code", | ||
| 1079 | + width: "", | ||
| 1080 | + align: "center", | ||
| 1081 | + status: 1 | ||
| 1082 | + }, | ||
| 1083 | + { | ||
| 1084 | + name: "描述", | ||
| 1085 | + value: "description", | ||
| 1086 | + width: "", | ||
| 1087 | + align: "center", | ||
| 1088 | + status: 1 | ||
| 1089 | + } | ||
| 1090 | + ], | ||
| 1091 | + "dictServiceCode": [ | ||
| 1092 | + { | ||
| 1093 | + name: "", | ||
| 1094 | + value: "serviceCodeMapperList", | ||
| 1095 | + width: "", | ||
| 1096 | + align: "center", | ||
| 1097 | + expand: true, | ||
| 1098 | + status: 1 | ||
| 1099 | + }, | ||
| 1100 | + { | ||
| 1101 | + name: "数据名称", | ||
| 1102 | + value: "chineseName", | ||
| 1103 | + width: "", | ||
| 1104 | + align: "center", | ||
| 1105 | + status: 1 | ||
| 1106 | + }, | ||
| 1107 | + { | ||
| 1108 | + name: "字典CODE", | ||
| 1109 | + value: "code", | ||
| 1110 | + width: "", | ||
| 1111 | + align: "center", | ||
| 1112 | + status: 1 | ||
| 1113 | + }, | ||
| 1114 | + { | ||
| 1115 | + name: "描述", | ||
| 1116 | + value: "description", | ||
| 1117 | + width: "", | ||
| 1118 | + align: "center", | ||
| 1119 | + status: 1 | ||
| 1120 | + } | ||
| 1121 | + ], | ||
| 1122 | + "dictServiceCodeChildren": [ | ||
| 1123 | + { | ||
| 1124 | + name: "数据名称", | ||
| 1125 | + value: "serviceCodeValue", | ||
| 1126 | + width: "", | ||
| 1127 | + align: "center", | ||
| 1128 | + status: 1 | ||
| 1129 | + }, | ||
| 1130 | + ] | ||
| 1131 | +} | ||
| 1132 | + | ||
| 1133 | +export default tableHeaders; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -8,6 +8,10 @@ | ... | @@ -8,6 +8,10 @@ |
| 8 | width: 100% !important; | 8 | width: 100% !important; |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | + .wid95 { | ||
| 12 | + width: 95% !important; | ||
| 13 | + } | ||
| 14 | + | ||
| 11 | .wid90 { | 15 | .wid90 { |
| 12 | width: 90% !important; | 16 | width: 90% !important; |
| 13 | } | 17 | } |
| ... | @@ -80,9 +84,9 @@ | ... | @@ -80,9 +84,9 @@ |
| 80 | margin-left: 20px; | 84 | margin-left: 20px; |
| 81 | } | 85 | } |
| 82 | 86 | ||
| 83 | -// .el-dialog:not(.is-fullscreen) { | 87 | + // .el-dialog:not(.is-fullscreen) { |
| 84 | -// margin-top: 6vh !important; | 88 | + // margin-top: 6vh !important; |
| 85 | -// } | 89 | + // } |
| 86 | 90 | ||
| 87 | .el-table { | 91 | .el-table { |
| 88 | 92 | ||
| ... | @@ -108,13 +112,13 @@ | ... | @@ -108,13 +112,13 @@ |
| 108 | .form-header { | 112 | .form-header { |
| 109 | font-size: 15px; | 113 | font-size: 15px; |
| 110 | color: #6379bb; | 114 | color: #6379bb; |
| 111 | - border-bottom: 1px solid #ddd; | 115 | + // border-bottom: 1px solid #ddd; |
| 112 | margin: 8px 10px 25px 10px; | 116 | margin: 8px 10px 25px 10px; |
| 113 | padding-top: 15px; | 117 | padding-top: 15px; |
| 114 | padding-bottom: 5px; | 118 | padding-bottom: 5px; |
| 115 | 119 | ||
| 116 | .formItem { | 120 | .formItem { |
| 117 | - width: 90%; | 121 | + width: 95%; |
| 118 | // max-width: 300px; | 122 | // max-width: 300px; |
| 119 | } | 123 | } |
| 120 | } | 124 | } | ... | ... |
| ... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
| 10 | <el-table-column v-if="selection" type="selection" width="50" align="center" :fixed="true"></el-table-column> | 10 | <el-table-column v-if="selection" type="selection" width="50" align="center" :fixed="true"></el-table-column> |
| 11 | <!-- 序号 --> | 11 | <!-- 序号 --> |
| 12 | <el-table-column v-if="order" type="index" width="50" align="center" :index="indexAdd"></el-table-column> | 12 | <el-table-column v-if="order" type="index" width="50" align="center" :index="indexAdd"></el-table-column> |
| 13 | - <template v-for="(item, index) in headerData"> | 13 | + <template v-for="(item, index) in headerData" v-if="item.status == 1"> |
| 14 | <!-- 自定义插槽 --> | 14 | <!-- 自定义插槽 --> |
| 15 | <el-table-column v-if="item.slot" :prop="item.value" :label="item.name" :width="item.width" :align="item.align" | 15 | <el-table-column v-if="item.slot" :prop="item.value" :label="item.name" :width="item.width" :align="item.align" |
| 16 | :fixed="item.fixed ? item.fixed : false" :show-overflow-tooltip="showOverflowTooltip" | 16 | :fixed="item.fixed ? item.fixed : false" :show-overflow-tooltip="showOverflowTooltip" |
| ... | @@ -27,7 +27,7 @@ | ... | @@ -27,7 +27,7 @@ |
| 27 | :sortable="item.sorTable ? true : false" :column-key="index.toString()" | 27 | :sortable="item.sorTable ? true : false" :column-key="index.toString()" |
| 28 | :show-overflow-tooltip="showOverflowTooltip" header-align="center" | 28 | :show-overflow-tooltip="showOverflowTooltip" header-align="center" |
| 29 | :sort-orders="['descending', 'ascending', null]" :slotHeader="slotHeader" :render-header="renderHeader" | 29 | :sort-orders="['descending', 'ascending', null]" :slotHeader="slotHeader" :render-header="renderHeader" |
| 30 | - :formatter="formatter" :key="index"> | 30 | + :formatter="formatter" :key="item.index"> |
| 31 | <template slot-scope="scope"> | 31 | <template slot-scope="scope"> |
| 32 | <slot :name="item.value" :row="scope.row"></slot> | 32 | <slot :name="item.value" :row="scope.row"></slot> |
| 33 | </template> | 33 | </template> |
| ... | @@ -37,7 +37,7 @@ | ... | @@ -37,7 +37,7 @@ |
| 37 | :align="item.align" :fixed="item.fixed ? item.fixed : false" :sortable="item.sorTable ? true : false" | 37 | :align="item.align" :fixed="item.fixed ? item.fixed : false" :sortable="item.sorTable ? true : false" |
| 38 | :column-key="index.toString()" :show-overflow-tooltip="showOverflowTooltip" header-align="center" | 38 | :column-key="index.toString()" :show-overflow-tooltip="showOverflowTooltip" header-align="center" |
| 39 | :sort-orders="['descending', 'ascending', null]" :slotHeader="slotHeader" :render-header="renderHeader" | 39 | :sort-orders="['descending', 'ascending', null]" :slotHeader="slotHeader" :render-header="renderHeader" |
| 40 | - :formatter="formatter" :key="index"> | 40 | + :formatter="formatter" :key="item.id"> |
| 41 | </el-table-column> | 41 | </el-table-column> |
| 42 | </template> | 42 | </template> |
| 43 | <slot name="optionColumn"></slot> | 43 | <slot name="optionColumn"></slot> |
| ... | @@ -312,7 +312,9 @@ export default { | ... | @@ -312,7 +312,9 @@ export default { |
| 312 | } | 312 | } |
| 313 | } | 313 | } |
| 314 | } | 314 | } |
| 315 | + if (row.index) { | ||
| 315 | selection = this.selectTable.sort(this.compare("index", "ascending")); | 316 | selection = this.selectTable.sort(this.compare("index", "ascending")); |
| 317 | + } | ||
| 316 | this.$emit("tableSelect", { selection, row }); | 318 | this.$emit("tableSelect", { selection, row }); |
| 317 | }, | 319 | }, |
| 318 | //表格全选 | 320 | //表格全选 |
| ... | @@ -442,13 +444,18 @@ export default { | ... | @@ -442,13 +444,18 @@ export default { |
| 442 | } | 444 | } |
| 443 | } | 445 | } |
| 444 | 446 | ||
| 447 | + .cell { | ||
| 448 | + min-width: 24px; | ||
| 449 | + | ||
| 445 | .thead-cell { | 450 | .thead-cell { |
| 451 | + width: 100%; | ||
| 446 | padding: 0; | 452 | padding: 0; |
| 447 | display: inline-flex; | 453 | display: inline-flex; |
| 448 | flex-direction: column; | 454 | flex-direction: column; |
| 449 | align-items: left; | 455 | align-items: left; |
| 450 | overflow: initial; | 456 | overflow: initial; |
| 451 | 457 | ||
| 458 | + | ||
| 452 | &:before { | 459 | &:before { |
| 453 | content: ""; | 460 | content: ""; |
| 454 | position: absolute; | 461 | position: absolute; |
| ... | @@ -457,6 +464,19 @@ export default { | ... | @@ -457,6 +464,19 @@ export default { |
| 457 | bottom: 0; | 464 | bottom: 0; |
| 458 | right: 0; | 465 | right: 0; |
| 459 | } | 466 | } |
| 467 | + | ||
| 468 | + div { | ||
| 469 | + overflow: hidden; | ||
| 470 | + text-overflow: ellipsis; | ||
| 471 | + white-space: nowrap; | ||
| 472 | + } | ||
| 473 | + } | ||
| 474 | + | ||
| 475 | + .caret-wrapper { | ||
| 476 | + position: absolute; | ||
| 477 | + top: -20%; | ||
| 478 | + right: 3%; | ||
| 479 | + } | ||
| 460 | } | 480 | } |
| 461 | 481 | ||
| 462 | &.w-table_moving { | 482 | &.w-table_moving { | ... | ... |
| ... | @@ -20,6 +20,7 @@ import Pagination from "@/components/Pagination"; | ... | @@ -20,6 +20,7 @@ import Pagination from "@/components/Pagination"; |
| 20 | // 自定义表格工具扩展 | 20 | // 自定义表格工具扩展 |
| 21 | import RightToolbar from "@/components/RightToolbar" | 21 | import RightToolbar from "@/components/RightToolbar" |
| 22 | import Table from "@/components/Table" | 22 | import Table from "@/components/Table" |
| 23 | +import tableHeaders from '@/assets/languages/tableHeaders' | ||
| 23 | 24 | ||
| 24 | // 全局方法挂载 | 25 | // 全局方法挂载 |
| 25 | Vue.prototype.parseTime = parseTime | 26 | Vue.prototype.parseTime = parseTime |
| ... | @@ -31,6 +32,7 @@ Vue.prototype.download = download | ... | @@ -31,6 +32,7 @@ Vue.prototype.download = download |
| 31 | Vue.prototype.handleTree = handleTree | 32 | Vue.prototype.handleTree = handleTree |
| 32 | Vue.prototype.upCase = upCase | 33 | Vue.prototype.upCase = upCase |
| 33 | Vue.prototype.nowDate = nowDate | 34 | Vue.prototype.nowDate = nowDate |
| 35 | +Vue.prototype.tableHeaders = tableHeaders | ||
| 34 | 36 | ||
| 35 | Vue.prototype.msgSuccess = function (msg) { | 37 | Vue.prototype.msgSuccess = function (msg) { |
| 36 | this.$message({ showClose: true, message: msg, type: "success" }); | 38 | this.$message({ showClose: true, message: msg, type: "success" }); | ... | ... |
| ... | @@ -178,7 +178,6 @@ import Dialog from "./info.vue"; | ... | @@ -178,7 +178,6 @@ import Dialog from "./info.vue"; |
| 178 | import { findConditionData, findCargoAllocationData } from "@/api/cargoSelect"; | 178 | import { findConditionData, findCargoAllocationData } from "@/api/cargoSelect"; |
| 179 | import { allDictData } from "@/api/destinationFlight"; | 179 | import { allDictData } from "@/api/destinationFlight"; |
| 180 | import { downLoadXlsx } from "@/utils/zipdownload"; | 180 | import { downLoadXlsx } from "@/utils/zipdownload"; |
| 181 | -import { upCase } from "@/utils/FedEx"; | ||
| 182 | 181 | ||
| 183 | export default { | 182 | export default { |
| 184 | name: "CargoAllocation", | 183 | name: "CargoAllocation", |
| ... | @@ -209,294 +208,7 @@ export default { | ... | @@ -209,294 +208,7 @@ export default { |
| 209 | customsReceiptStatusId: null, | 208 | customsReceiptStatusId: null, |
| 210 | accsPool: "OSPR" | 209 | accsPool: "OSPR" |
| 211 | }, //查询数据 | 210 | }, //查询数据 |
| 212 | - tableHeader: [ | 211 | + tableHeader: this.tableHeaders['cargoAllocation'], //表头数据 |
| 213 | - { | ||
| 214 | - name: "口岸代码", | ||
| 215 | - value: "portName", | ||
| 216 | - width: "100", | ||
| 217 | - align: "center", | ||
| 218 | - sorTable: true, | ||
| 219 | - }, | ||
| 220 | - { | ||
| 221 | - name: "取件日期", | ||
| 222 | - value: "pickUpDate", | ||
| 223 | - width: "120", | ||
| 224 | - align: "center", | ||
| 225 | - sorTable: true, | ||
| 226 | - }, | ||
| 227 | - { | ||
| 228 | - name: "取件扫描号", | ||
| 229 | - value: "pickUpScanNo", | ||
| 230 | - width: "120", | ||
| 231 | - align: "center", | ||
| 232 | - sorTable: true, | ||
| 233 | - }, | ||
| 234 | - { | ||
| 235 | - name: "站点", | ||
| 236 | - value: "siteName", | ||
| 237 | - width: "80", | ||
| 238 | - align: "center", | ||
| 239 | - sorTable: true, | ||
| 240 | - }, | ||
| 241 | - { | ||
| 242 | - name: "运单号", | ||
| 243 | - value: "waybillNo", | ||
| 244 | - width: "120", | ||
| 245 | - align: "center", | ||
| 246 | - sorTable: true, | ||
| 247 | - }, | ||
| 248 | - { | ||
| 249 | - name: "总单号", | ||
| 250 | - value: "totalWaybillNo", | ||
| 251 | - width: "120", | ||
| 252 | - align: "center", | ||
| 253 | - sorTable: true, | ||
| 254 | - }, | ||
| 255 | - { | ||
| 256 | - name: "服务类型", | ||
| 257 | - value: "serviceTypeName", | ||
| 258 | - width: "100", | ||
| 259 | - align: "center", | ||
| 260 | - sorTable: true, | ||
| 261 | - }, | ||
| 262 | - { | ||
| 263 | - name: "服务代码", | ||
| 264 | - value: "serviceCode", | ||
| 265 | - width: "100", | ||
| 266 | - align: "center", | ||
| 267 | - }, | ||
| 268 | - { | ||
| 269 | - name: "URSA", | ||
| 270 | - value: "ursa", | ||
| 271 | - width: "100", | ||
| 272 | - align: "center", | ||
| 273 | - sorTable: true, | ||
| 274 | - }, | ||
| 275 | - { | ||
| 276 | - name: "申报类型", | ||
| 277 | - value: "typeName", | ||
| 278 | - width: "100", | ||
| 279 | - align: "center", | ||
| 280 | - sorTable: true, | ||
| 281 | - }, | ||
| 282 | - { | ||
| 283 | - name: "HandlingCode", | ||
| 284 | - value: "handingCode", | ||
| 285 | - width: "150", | ||
| 286 | - align: "center", | ||
| 287 | - sorTable: true, | ||
| 288 | - }, | ||
| 289 | - { | ||
| 290 | - name: "subcategory", | ||
| 291 | - value: "subCategory", | ||
| 292 | - width: "140", | ||
| 293 | - align: "center", | ||
| 294 | - sorTable: true, | ||
| 295 | - }, | ||
| 296 | - { | ||
| 297 | - name: "件数", | ||
| 298 | - value: "qty", | ||
| 299 | - width: "80", | ||
| 300 | - align: "center", | ||
| 301 | - sorTable: true, | ||
| 302 | - }, | ||
| 303 | - { | ||
| 304 | - name: "实际重量", | ||
| 305 | - value: "actualWeight", | ||
| 306 | - width: "100", | ||
| 307 | - align: "center", | ||
| 308 | - sorTable: true, | ||
| 309 | - }, | ||
| 310 | - { | ||
| 311 | - name: "收件人国家代码", | ||
| 312 | - value: "consigneeCountry", | ||
| 313 | - width: "150", | ||
| 314 | - align: "center", | ||
| 315 | - sorTable: true, | ||
| 316 | - }, | ||
| 317 | - { | ||
| 318 | - name: "品名描述", | ||
| 319 | - value: "nameDescription", | ||
| 320 | - width: "100", | ||
| 321 | - align: "center", | ||
| 322 | - }, | ||
| 323 | - { | ||
| 324 | - name: "海关回执状态", | ||
| 325 | - value: "customsReceiptStatusName", | ||
| 326 | - width: "140", | ||
| 327 | - align: "center", | ||
| 328 | - sorTable: true, | ||
| 329 | - }, | ||
| 330 | - { | ||
| 331 | - name: "预审状态", | ||
| 332 | - value: "preQualificationStatus", | ||
| 333 | - width: "100", | ||
| 334 | - align: "center", | ||
| 335 | - sorTable: true, | ||
| 336 | - }, | ||
| 337 | - { | ||
| 338 | - name: "航班预审意见", | ||
| 339 | - value: "caPretrialOpinion", | ||
| 340 | - width: "120", | ||
| 341 | - align: "center", | ||
| 342 | - sorTable: false, | ||
| 343 | - }, | ||
| 344 | - { | ||
| 345 | - name: "货物状态", | ||
| 346 | - value: "statusName", | ||
| 347 | - width: "100", | ||
| 348 | - align: "center", | ||
| 349 | - sorTable: true, | ||
| 350 | - }, | ||
| 351 | - { | ||
| 352 | - name: "终配航班号", | ||
| 353 | - value: "finalFlightNo", | ||
| 354 | - width: "120", | ||
| 355 | - align: "center", | ||
| 356 | - sorTable: true, | ||
| 357 | - }, | ||
| 358 | - { | ||
| 359 | - name: "终配航班日期", | ||
| 360 | - value: "finalFlightTime", | ||
| 361 | - width: "140", | ||
| 362 | - align: "center", | ||
| 363 | - sorTable: true, | ||
| 364 | - }, | ||
| 365 | - { | ||
| 366 | - name: "二配航班号", | ||
| 367 | - value: "twoMatchFlightNo", | ||
| 368 | - width: "120", | ||
| 369 | - align: "center", | ||
| 370 | - sorTable: true, | ||
| 371 | - }, | ||
| 372 | - { | ||
| 373 | - name: "二配航班日期", | ||
| 374 | - value: "twoMatchFlightTime", | ||
| 375 | - width: "150", | ||
| 376 | - align: "center", | ||
| 377 | - sorTable: true, | ||
| 378 | - }, | ||
| 379 | - { | ||
| 380 | - name: "预配航班号", | ||
| 381 | - value: "preplanFlightNo", | ||
| 382 | - width: "120", | ||
| 383 | - align: "center", | ||
| 384 | - sorTable: true, | ||
| 385 | - }, | ||
| 386 | - { | ||
| 387 | - name: "预配航班日期", | ||
| 388 | - value: "preplanFlightTime", | ||
| 389 | - width: "150", | ||
| 390 | - align: "center", | ||
| 391 | - sorTable: true, | ||
| 392 | - }, | ||
| 393 | - { | ||
| 394 | - name: "ACCS原航班号", | ||
| 395 | - value: "fltNoAccs", | ||
| 396 | - width: "150", | ||
| 397 | - align: "center", | ||
| 398 | - sorTable: true, | ||
| 399 | - }, | ||
| 400 | - { | ||
| 401 | - name: "ACCS原航班日期", | ||
| 402 | - value: "fltDateAccs", | ||
| 403 | - width: "150", | ||
| 404 | - align: "center", | ||
| 405 | - sorTable: true, | ||
| 406 | - }, | ||
| 407 | - { | ||
| 408 | - name: "ACCS原航线", | ||
| 409 | - value: "accsFlightRoute", | ||
| 410 | - width: "140", | ||
| 411 | - align: "center", | ||
| 412 | - sorTable: true, | ||
| 413 | - }, | ||
| 414 | - { | ||
| 415 | - name: "是否RDE手工录入", | ||
| 416 | - value: "manualRde", | ||
| 417 | - width: "170", | ||
| 418 | - align: "center", | ||
| 419 | - sorTable: true, | ||
| 420 | - }, | ||
| 421 | - { | ||
| 422 | - name: "是否自动", | ||
| 423 | - value: "cargoRulesStatus", | ||
| 424 | - width: "100", | ||
| 425 | - align: "center", | ||
| 426 | - sorTable: true, | ||
| 427 | - }, | ||
| 428 | - { | ||
| 429 | - name: "发件人账号", | ||
| 430 | - value: "shipperAccount", | ||
| 431 | - width: "120", | ||
| 432 | - align: "center", | ||
| 433 | - }, | ||
| 434 | - { | ||
| 435 | - name: "发件公司中文名称", | ||
| 436 | - value: "shipperCompany", | ||
| 437 | - width: "150", | ||
| 438 | - align: "center", | ||
| 439 | - }, | ||
| 440 | - { | ||
| 441 | - name: "始发地城市名称", | ||
| 442 | - value: "originCity", | ||
| 443 | - width: "130", | ||
| 444 | - align: "center", | ||
| 445 | - }, | ||
| 446 | - { | ||
| 447 | - name: "收件地", | ||
| 448 | - value: "destinationSiteName", | ||
| 449 | - width: "90", | ||
| 450 | - align: "center", | ||
| 451 | - }, | ||
| 452 | - { | ||
| 453 | - name: "尺寸", | ||
| 454 | - value: "sizeStr", | ||
| 455 | - width: "80", | ||
| 456 | - align: "center", | ||
| 457 | - sorTable: true, | ||
| 458 | - }, | ||
| 459 | - { | ||
| 460 | - name: "大货预审意见(是否可以配置航班)", | ||
| 461 | - value: "bigPretrialOpinion", | ||
| 462 | - width: "250", | ||
| 463 | - align: "center", | ||
| 464 | - }, | ||
| 465 | - { | ||
| 466 | - name: "大货预审时间", | ||
| 467 | - value: "bigPretrialTime", | ||
| 468 | - width: "120", | ||
| 469 | - align: "center", | ||
| 470 | - }, | ||
| 471 | - { | ||
| 472 | - name: "海关回执时间", | ||
| 473 | - value: "customsReceiptTime", | ||
| 474 | - width: "150", | ||
| 475 | - align: "center", | ||
| 476 | - sorTable: true, | ||
| 477 | - }, | ||
| 478 | - { | ||
| 479 | - name: "航班预审时间", | ||
| 480 | - value: "caPretrialTime", | ||
| 481 | - width: "150", | ||
| 482 | - align: "center", | ||
| 483 | - sorTable: true, | ||
| 484 | - }, | ||
| 485 | - { | ||
| 486 | - name: "创建人", | ||
| 487 | - value: "createUserName", | ||
| 488 | - width: "90", | ||
| 489 | - align: "center", | ||
| 490 | - sorTable: true, | ||
| 491 | - }, | ||
| 492 | - { | ||
| 493 | - name: "创建时间", | ||
| 494 | - value: "createTime", | ||
| 495 | - width: "100", | ||
| 496 | - align: "center", | ||
| 497 | - sorTable: true, | ||
| 498 | - }, | ||
| 499 | - ], //表头数据 | ||
| 500 | tableData: [], //表格数据 | 212 | tableData: [], //表格数据 |
| 501 | tableSelection: [], //选中数据 | 213 | tableSelection: [], //选中数据 |
| 502 | selectData: { | 214 | selectData: { |
| ... | @@ -534,6 +246,7 @@ export default { | ... | @@ -534,6 +246,7 @@ export default { |
| 534 | } | 246 | } |
| 535 | }, | 247 | }, |
| 536 | activated() { | 248 | activated() { |
| 249 | + this.seleData(); | ||
| 537 | this.select(); | 250 | this.select(); |
| 538 | }, | 251 | }, |
| 539 | deactivated() { | 252 | deactivated() { |
| ... | @@ -577,7 +290,7 @@ export default { | ... | @@ -577,7 +290,7 @@ export default { |
| 577 | .catch(() => { }); | 290 | .catch(() => { }); |
| 578 | }, | 291 | }, |
| 579 | //查询 | 292 | //查询 |
| 580 | - async select(val) { | 293 | + select(val) { |
| 581 | this.loading = true; | 294 | this.loading = true; |
| 582 | this.dataInfo(); | 295 | this.dataInfo(); |
| 583 | if (val === 0) { | 296 | if (val === 0) { |
| ... | @@ -591,9 +304,6 @@ export default { | ... | @@ -591,9 +304,6 @@ export default { |
| 591 | this.tableData = res.data.list; | 304 | this.tableData = res.data.list; |
| 592 | this.totalCount = res.data.total; | 305 | this.totalCount = res.data.total; |
| 593 | if (res.data.list.length > 0) { | 306 | if (res.data.list.length > 0) { |
| 594 | - // this.tableData.forEach((item, index = 0) => { | ||
| 595 | - // item.index = index; | ||
| 596 | - // }); | ||
| 597 | } else { | 307 | } else { |
| 598 | this.msgWarning('未查询到数据') | 308 | this.msgWarning('未查询到数据') |
| 599 | } | 309 | } |
| ... | @@ -729,9 +439,6 @@ export default { | ... | @@ -729,9 +439,6 @@ export default { |
| 729 | } | 439 | } |
| 730 | this.tableSelection = [] | 440 | this.tableSelection = [] |
| 731 | this.cargoTotal() | 441 | this.cargoTotal() |
| 732 | - // this.tableData.forEach((item, index = 0) => { | ||
| 733 | - // item.index = index; | ||
| 734 | - // }); | ||
| 735 | }, | 442 | }, |
| 736 | sizeChange(val) { | 443 | sizeChange(val) { |
| 737 | this.size = val | 444 | this.size = val |
| ... | @@ -758,7 +465,7 @@ export default { | ... | @@ -758,7 +465,7 @@ export default { |
| 758 | return this.formData.fltNo; | 465 | return this.formData.fltNo; |
| 759 | }, | 466 | }, |
| 760 | set: function (val) { | 467 | set: function (val) { |
| 761 | - this.formData.fltNo = upCase(val); | 468 | + this.formData.fltNo = this.upCase(val); |
| 762 | }, | 469 | }, |
| 763 | }, | 470 | }, |
| 764 | ursa: { | 471 | ursa: { |
| ... | @@ -766,7 +473,7 @@ export default { | ... | @@ -766,7 +473,7 @@ export default { |
| 766 | return this.ursaList; | 473 | return this.ursaList; |
| 767 | }, | 474 | }, |
| 768 | set: function (val) { | 475 | set: function (val) { |
| 769 | - this.ursaList = upCase(val); | 476 | + this.ursaList = this.upCase(val); |
| 770 | }, | 477 | }, |
| 771 | }, | 478 | }, |
| 772 | siteName: { | 479 | siteName: { |
| ... | @@ -774,7 +481,7 @@ export default { | ... | @@ -774,7 +481,7 @@ export default { |
| 774 | return this.siteNameList; | 481 | return this.siteNameList; |
| 775 | }, | 482 | }, |
| 776 | set: function (val) { | 483 | set: function (val) { |
| 777 | - this.siteNameList = upCase(val); | 484 | + this.siteNameList = this.upCase(val); |
| 778 | }, | 485 | }, |
| 779 | }, | 486 | }, |
| 780 | portName: { | 487 | portName: { |
| ... | @@ -782,7 +489,7 @@ export default { | ... | @@ -782,7 +489,7 @@ export default { |
| 782 | return this.formData.portName; | 489 | return this.formData.portName; |
| 783 | }, | 490 | }, |
| 784 | set: function (val) { | 491 | set: function (val) { |
| 785 | - this.formData.portName = upCase(val); | 492 | + this.formData.portName = this.upCase(val); |
| 786 | }, | 493 | }, |
| 787 | }, | 494 | }, |
| 788 | }, | 495 | }, | ... | ... |
| ... | @@ -44,7 +44,7 @@ | ... | @@ -44,7 +44,7 @@ |
| 44 | </el-button> | 44 | </el-button> |
| 45 | <el-button type="text" size="mini" icon="el-icon-edit" v-hasPermi="['allocation:alloc:update']" | 45 | <el-button type="text" size="mini" icon="el-icon-edit" v-hasPermi="['allocation:alloc:update']" |
| 46 | @click="handleClick(scope.row.id, 'update')">修改</el-button> | 46 | @click="handleClick(scope.row.id, 'update')">修改</el-button> |
| 47 | - <el-button type="text" size="mini" icon="el-icon-delete" v-hasPermi="['allocation:alloc:delete']" | 47 | + <el-button type="text" size="mini" icon="el-icon-delete" style="color:#ff4949" v-hasPermi="['allocation:alloc:delete']" |
| 48 | @click="del(scope.row.id, scope.row.status)">删除</el-button> | 48 | @click="del(scope.row.id, scope.row.status)">删除</el-button> |
| 49 | <el-button type="text" size="mini" icon="el-icon-video-pause" v-hasPermi="['allocation:alloc:openClose']" | 49 | <el-button type="text" size="mini" icon="el-icon-video-pause" v-hasPermi="['allocation:alloc:openClose']" |
| 50 | @click="changeStatus(scope.row.id, 3)" v-if="scope.row.status == '1'">停用</el-button> | 50 | @click="changeStatus(scope.row.id, 3)" v-if="scope.row.status == '1'">停用</el-button> | ... | ... |
| ... | @@ -48,7 +48,7 @@ | ... | @@ -48,7 +48,7 @@ |
| 48 | <el-button size="mini" type="text" icon="el-icon-edit" v-hasPermi="['allocation:rand:update']" | 48 | <el-button size="mini" type="text" icon="el-icon-edit" v-hasPermi="['allocation:rand:update']" |
| 49 | @click="handleUpdate(scope.row)">修改</el-button> | 49 | @click="handleUpdate(scope.row)">修改</el-button> |
| 50 | <el-button size="mini" type="text" icon="el-icon-delete" v-hasPermi="['allocation:rand:delete']" | 50 | <el-button size="mini" type="text" icon="el-icon-delete" v-hasPermi="['allocation:rand:delete']" |
| 51 | - @click="handleDeleteorPlayorpause(scope.row, 0, '删除')"> | 51 | + @click="handleDeleteorPlayorpause(scope.row, 0, '删除')" style="color:#ff4949"> |
| 52 | 删除</el-button> | 52 | 删除</el-button> |
| 53 | <el-button size="mini" type="text" icon="el-icon-video-play" v-if="scope.row.status == '3'" | 53 | <el-button size="mini" type="text" icon="el-icon-video-play" v-if="scope.row.status == '3'" |
| 54 | v-hasPermi="['allocation:rand:openClose']" @click="handleDeleteorPlayorpause(scope.row, 1, '启用')">启用 | 54 | v-hasPermi="['allocation:rand:openClose']" @click="handleDeleteorPlayorpause(scope.row, 1, '启用')">启用 | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div> | 2 | <div> |
| 3 | <el-form class="form-header" :model="queryParams" ref="queryForm" label-position="right" label-width="auto" | 3 | <el-form class="form-header" :model="queryParams" ref="queryForm" label-position="right" label-width="auto" |
| 4 | - size="medium"> | 4 | + size="small"> |
| 5 | <el-row> | 5 | <el-row> |
| 6 | <el-col :span="6"> | 6 | <el-col :span="6"> |
| 7 | <el-form-item label="航班日期从" prop="fltDateStart"> | 7 | <el-form-item label="航班日期从" prop="fltDateStart"> |
| ... | @@ -64,10 +64,10 @@ | ... | @@ -64,10 +64,10 @@ |
| 64 | </el-button> | 64 | </el-button> |
| 65 | </el-form> | 65 | </el-form> |
| 66 | <Tables ref="flightInfoTable" ductName="FlightInformation" :data="findAllFltDatList" :headerData="tableHeader" | 66 | <Tables ref="flightInfoTable" ductName="FlightInformation" :data="findAllFltDatList" :headerData="tableHeader" |
| 67 | - :infoData="tableHeader" :order="true" :selection="true" :totalCount="total" :loading="loading" | 67 | + :order="true" :selection="true" :totalCount="total" :loading="loading" :limitSize="queryParams.limitSize" |
| 68 | - :limitSize="queryParams.limitSize" :page="queryParams.pageNum" :shiftKey="shiftKey" :height="tableHeight" | 68 | + :page="queryParams.pageNum" :shiftKey="shiftKey" :height="tableHeight" :pageSizes="[20, 30, 40, 50, 100]" |
| 69 | - :pageSizes="[20, 30, 40, 50, 100]" @tableSelect="tableSelect" @tableSelectAll="tableSelectAll" | 69 | + @tableSelect="tableSelect" @tableSelectAll="tableSelectAll" @currentChange="currentChange" |
| 70 | - @currentChange="currentChange" @sortChange="sortChange" @sizeChange="sizeChange"> | 70 | + @sortChange="sortChange" @sizeChange="sizeChange"> |
| 71 | <template slot="optionColumn"> | 71 | <template slot="optionColumn"> |
| 72 | <el-table-column v-if="findAllFltDatList.length > 0" label="操作" align="center" | 72 | <el-table-column v-if="findAllFltDatList.length > 0" label="操作" align="center" |
| 73 | class-name="small-padding fixed-width" fixed="right"> | 73 | class-name="small-padding fixed-width" fixed="right"> |
| ... | @@ -79,8 +79,9 @@ | ... | @@ -79,8 +79,9 @@ |
| 79 | </template> | 79 | </template> |
| 80 | </Tables> | 80 | </Tables> |
| 81 | <!-- 添加或修改对话框 --> | 81 | <!-- 添加或修改对话框 --> |
| 82 | - <el-dialog :title="title" :visible.sync="open" width="60%" :close-on-click-modal="false" :append-to-body="true"> | 82 | + <el-dialog :title="title" :visible.sync="open" width="60%" :close-on-click-modal="false" :append-to-body="true" |
| 83 | - <el-form ref="form" :model="form" :rules="rules" label-position="right" label-width="auto"> | 83 | + :show-close="false"> |
| 84 | + <el-form ref="form" :model="form" :rules="rules" label-position="right" label-width="auto" size="small"> | ||
| 84 | <el-row> | 85 | <el-row> |
| 85 | <el-col :span="12"> | 86 | <el-col :span="12"> |
| 86 | <el-form-item label="航班号" prop="fltNo"> | 87 | <el-form-item label="航班号" prop="fltNo"> |
| ... | @@ -99,7 +100,7 @@ | ... | @@ -99,7 +100,7 @@ |
| 99 | <el-row> | 100 | <el-row> |
| 100 | <el-col :span="12"> | 101 | <el-col :span="12"> |
| 101 | <el-form-item label="Pre-MDE CutOff时间" prop="cutOffTime"> | 102 | <el-form-item label="Pre-MDE CutOff时间" prop="cutOffTime"> |
| 102 | - <el-select class="wid80" v-model="form.cutOffTime" clearable placeholder="选择时间(可查找)" type="string" | 103 | + <el-select class="wid80" v-model="form.cutOffTime" clearable placeholder="选择时间(输入查找选项)" type="string" |
| 103 | filterable> | 104 | filterable> |
| 104 | <el-option v-for="item in selectOption.cutOffTime" :key="item" :label="item" :value="item"> | 105 | <el-option v-for="item in selectOption.cutOffTime" :key="item" :label="item" :value="item"> |
| 105 | </el-option> | 106 | </el-option> |
| ... | @@ -108,7 +109,7 @@ | ... | @@ -108,7 +109,7 @@ |
| 108 | </el-col> | 109 | </el-col> |
| 109 | <el-col :span="12"> | 110 | <el-col :span="12"> |
| 110 | <el-form-item label="航班路线" prop="route"> | 111 | <el-form-item label="航班路线" prop="route"> |
| 111 | - <el-input class="wid80" v-model="form.route" placeholder="请输入航班路线" /> | 112 | + <el-input class="wid80" v-model="form.route" placeholder="请输入航班路线(XXX-XXX字母大写)" /> |
| 112 | </el-form-item> | 113 | </el-form-item> |
| 113 | </el-col> | 114 | </el-col> |
| 114 | </el-row> | 115 | </el-row> |
| ... | @@ -228,7 +229,7 @@ | ... | @@ -228,7 +229,7 @@ |
| 228 | </div> | 229 | </div> |
| 229 | </el-dialog> | 230 | </el-dialog> |
| 230 | <el-dialog title="未删除成功航班" width="40%" center :visible.sync="dialogTableVisible" :close-on-click-modal="false" | 231 | <el-dialog title="未删除成功航班" width="40%" center :visible.sync="dialogTableVisible" :close-on-click-modal="false" |
| 231 | - :append-to-body="true"> | 232 | + :append-to-body="true" :show-close="false"> |
| 232 | <el-table :data="gridData"> | 233 | <el-table :data="gridData"> |
| 233 | <el-table-column property="fltNo" label="航班号"></el-table-column> | 234 | <el-table-column property="fltNo" label="航班号"></el-table-column> |
| 234 | <el-table-column property="fltDate" label="航班日期"></el-table-column> | 235 | <el-table-column property="fltDate" label="航班日期"></el-table-column> |
| ... | @@ -298,168 +299,22 @@ export default { | ... | @@ -298,168 +299,22 @@ export default { |
| 298 | trigger: "blur", | 299 | trigger: "blur", |
| 299 | }, | 300 | }, |
| 300 | ], | 301 | ], |
| 301 | - }, | 302 | + route: [ |
| 302 | - //原航班规则数据 | ||
| 303 | - findAllFltDatList: [], | ||
| 304 | - //表头 | ||
| 305 | - tableHeader: [ | ||
| 306 | - { | ||
| 307 | - name: "航班日期", | ||
| 308 | - value: "fltDate", | ||
| 309 | - width: "100", | ||
| 310 | - align: "center", | ||
| 311 | - }, | ||
| 312 | - { | ||
| 313 | - name: "航班起飞时间", | ||
| 314 | - value: "takeOffTime", | ||
| 315 | - width: "120", | ||
| 316 | - align: "center", | ||
| 317 | - }, | ||
| 318 | - { | ||
| 319 | - name: "Pre-MDE CutOff时间", | ||
| 320 | - value: "cutOffTime", | ||
| 321 | - width: "150", | ||
| 322 | - align: "center", | ||
| 323 | - }, | ||
| 324 | - { | ||
| 325 | - name: "航班号", | ||
| 326 | - value: "fltNo", | ||
| 327 | - width: "100", | ||
| 328 | - align: "center", | ||
| 329 | - }, | ||
| 330 | - { | ||
| 331 | - name: "航班路线", | ||
| 332 | - value: "route", | ||
| 333 | - width: "140", | ||
| 334 | - align: "center", | ||
| 335 | - }, | ||
| 336 | - { | ||
| 337 | - name: "航班类型", | ||
| 338 | - value: "typeName", | ||
| 339 | - width: "100", | ||
| 340 | - align: "center", | ||
| 341 | - }, | ||
| 342 | - { | ||
| 343 | - name: "航班种类", | ||
| 344 | - value: "flightKindName", | ||
| 345 | - width: "100", | ||
| 346 | - align: "center", | ||
| 347 | - }, | ||
| 348 | - { | ||
| 349 | - name: "航班状态", | ||
| 350 | - value: "statusName", | ||
| 351 | - width: "100", | ||
| 352 | - align: "center", | ||
| 353 | - }, | ||
| 354 | - { | ||
| 355 | - name: "是否自动推送", | ||
| 356 | - value: "pushDateSwitch", | ||
| 357 | - width: "120", | ||
| 358 | - align: "center", | ||
| 359 | - }, | ||
| 360 | - { | ||
| 361 | - name: "总重量", | ||
| 362 | - value: "totalWeight", | ||
| 363 | - width: "90", | ||
| 364 | - align: "center", | ||
| 365 | - }, | ||
| 366 | - { | ||
| 367 | - name: "原始重量(KG)", | ||
| 368 | - value: "originalWeight", | ||
| 369 | - width: "120", | ||
| 370 | - align: "center", | ||
| 371 | - }, | ||
| 372 | - { | ||
| 373 | - name: "已配重量", | ||
| 374 | - value: "alloctedWeight", | ||
| 375 | - width: "90", | ||
| 376 | - align: "center", | ||
| 377 | - }, | ||
| 378 | - { | ||
| 379 | - name: "总体积(cm³)", | ||
| 380 | - value: "totalVolume", | ||
| 381 | - width: "100", | ||
| 382 | - align: "center", | ||
| 383 | - }, | ||
| 384 | - { | ||
| 385 | - name: "已配体积(cm³)", | ||
| 386 | - value: "alloctedVolume", | ||
| 387 | - width: "120", | ||
| 388 | - align: "center", | ||
| 389 | - }, | ||
| 390 | - { | ||
| 391 | - name: "是否需要预审", | ||
| 392 | - value: "needRequired", | ||
| 393 | - width: "130", | ||
| 394 | - align: "center", | ||
| 395 | - }, | ||
| 396 | - { | ||
| 397 | - name: "是否开启高低价", | ||
| 398 | - value: "highLowPriceFlg", | ||
| 399 | - width: "140", | ||
| 400 | - align: "center", | ||
| 401 | - }, | ||
| 402 | - { | ||
| 403 | - name: "是否限制一票一件", | ||
| 404 | - value: "ticketToPiece", | ||
| 405 | - width: "140", | ||
| 406 | - align: "center", | ||
| 407 | - }, | ||
| 408 | - { | ||
| 409 | - name: "额外增重百分比", | ||
| 410 | - value: "extraWeightPercent", | ||
| 411 | - width: "140", | ||
| 412 | - align: "center", | ||
| 413 | - }, | ||
| 414 | - { | ||
| 415 | - name: "高价百分比", | ||
| 416 | - value: "highPriceWeightPercent", | ||
| 417 | - width: "120", | ||
| 418 | - align: "center", | ||
| 419 | - }, | ||
| 420 | - { | ||
| 421 | - name: "低价百分比", | ||
| 422 | - value: "lowPriceWeightPercent", | ||
| 423 | - width: "120", | ||
| 424 | - align: "center", | ||
| 425 | - }, | ||
| 426 | { | 303 | { |
| 427 | - name: "航班优先级", | 304 | + required: true, |
| 428 | - value: "priorityName", | 305 | + message: "航班线路不能为空", |
| 429 | - width: "100", | 306 | + trigger: "blur", |
| 430 | - align: "center", | ||
| 431 | - }, | ||
| 432 | - { | ||
| 433 | - name: "配舱优先级", | ||
| 434 | - value: "priorityRuleName", | ||
| 435 | - width: "100", | ||
| 436 | - align: "center", | ||
| 437 | - }, | ||
| 438 | - { | ||
| 439 | - name: "创建人", | ||
| 440 | - value: "createUserName", | ||
| 441 | - width: "90", | ||
| 442 | - align: "center", | ||
| 443 | - }, | ||
| 444 | - { | ||
| 445 | - name: "创建时间", | ||
| 446 | - value: "createTime", | ||
| 447 | - width: "100", | ||
| 448 | - align: "center", | ||
| 449 | - }, | ||
| 450 | - { | ||
| 451 | - name: "最后修改人", | ||
| 452 | - value: "lastModifyUserName", | ||
| 453 | - width: "120", | ||
| 454 | - align: "center", | ||
| 455 | }, | 307 | }, |
| 456 | { | 308 | { |
| 457 | - name: "最后修改时间", | 309 | + pattern: /^([A-Z]{3,4})(\-[A-Z]{3,4})+$/, |
| 458 | - value: "lastModifyTime", | 310 | + message: "请输入正确得航班线路" |
| 459 | - width: "120", | 311 | + } |
| 460 | - align: "center", | 312 | + ] |
| 461 | }, | 313 | }, |
| 462 | - ], | 314 | + //原航班规则数据 |
| 315 | + findAllFltDatList: [], | ||
| 316 | + //表头 | ||
| 317 | + tableHeader: this.tableHeaders['FlightInformation'], | ||
| 463 | //删除失败数据 | 318 | //删除失败数据 |
| 464 | gridData: [], | 319 | gridData: [], |
| 465 | //form属性禁用状态 | 320 | //form属性禁用状态 |
| ... | @@ -566,12 +421,13 @@ export default { | ... | @@ -566,12 +421,13 @@ export default { |
| 566 | created() { | 421 | created() { |
| 567 | //查询条件数据源 | 422 | //查询条件数据源 |
| 568 | this.queryParams.fltDateStart = this.nowDate() | 423 | this.queryParams.fltDateStart = this.nowDate() |
| 569 | - this.findFltConditionData(); | ||
| 570 | if (this.$store.state.tagsView.cachedViews.length == 0) { | 424 | if (this.$store.state.tagsView.cachedViews.length == 0) { |
| 425 | + this.findFltConditionData(); | ||
| 571 | this.findAllFltData(); | 426 | this.findAllFltData(); |
| 572 | } | 427 | } |
| 573 | }, | 428 | }, |
| 574 | activated() { | 429 | activated() { |
| 430 | + this.findFltConditionData(); | ||
| 575 | this.findAllFltData(); | 431 | this.findAllFltData(); |
| 576 | }, | 432 | }, |
| 577 | deactivated() { | 433 | deactivated() { |
| ... | @@ -599,7 +455,7 @@ export default { | ... | @@ -599,7 +455,7 @@ export default { |
| 599 | this.form.fltNo != undefined && | 455 | this.form.fltNo != undefined && |
| 600 | this.form.fltNo != "" | 456 | this.form.fltNo != "" |
| 601 | ) { | 457 | ) { |
| 602 | - this.form.fltNo = this.upCase(this.form.fltNo); | 458 | + this.form.fltNo = this.form.fltNo.toUpperCase(); |
| 603 | findFltCommonConf(this.form).then((response) => { | 459 | findFltCommonConf(this.form).then((response) => { |
| 604 | if (response.code == 200) { | 460 | if (response.code == 200) { |
| 605 | //额外增重百分比:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置为0,不可编辑 | 461 | //额外增重百分比:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置为0,不可编辑 |
| ... | @@ -697,7 +553,7 @@ export default { | ... | @@ -697,7 +553,7 @@ export default { |
| 697 | this.queryParams.fltNo != undefined && | 553 | this.queryParams.fltNo != undefined && |
| 698 | this.queryParams.fltNo != "" | 554 | this.queryParams.fltNo != "" |
| 699 | ) { | 555 | ) { |
| 700 | - this.queryParams.fltNo = this.upCase(this.queryParams.fltNo); | 556 | + this.queryParams.fltNo = this.queryParams.fltNo.toUpperCase(); |
| 701 | } | 557 | } |
| 702 | findAllFltDataApi(this.queryParams).then((response) => { | 558 | findAllFltDataApi(this.queryParams).then((response) => { |
| 703 | this.loading = false; | 559 | this.loading = false; |
| ... | @@ -712,6 +568,7 @@ export default { | ... | @@ -712,6 +568,7 @@ export default { |
| 712 | /** 新增按钮操作 */ | 568 | /** 新增按钮操作 */ |
| 713 | handleAdd() { | 569 | handleAdd() { |
| 714 | this.reset(); | 570 | this.reset(); |
| 571 | + this.findFltConditionData(); | ||
| 715 | this.open = true; | 572 | this.open = true; |
| 716 | this.title = "添加航班信息"; | 573 | this.title = "添加航班信息"; |
| 717 | this.form.id = null; | 574 | this.form.id = null; |
| ... | @@ -827,6 +684,7 @@ export default { | ... | @@ -827,6 +684,7 @@ export default { |
| 827 | /** 修改按钮操作 */ | 684 | /** 修改按钮操作 */ |
| 828 | handleUpdate(row) { | 685 | handleUpdate(row) { |
| 829 | this.reset(); | 686 | this.reset(); |
| 687 | + this.findFltConditionData(); | ||
| 830 | this.open = true; | 688 | this.open = true; |
| 831 | this.title = "修改航班信息"; | 689 | this.title = "修改航班信息"; |
| 832 | //航班号 | 690 | //航班号 |
| ... | @@ -854,7 +712,6 @@ export default { | ... | @@ -854,7 +712,6 @@ export default { |
| 854 | this.ids.forEach(item => { | 712 | this.ids.forEach(item => { |
| 855 | fIds.push(item.id) | 713 | fIds.push(item.id) |
| 856 | }) | 714 | }) |
| 857 | - console.log(fIds) | ||
| 858 | this.$confirm("是否确认删除所选数据?", "警告", { | 715 | this.$confirm("是否确认删除所选数据?", "警告", { |
| 859 | confirmButtonText: "确定", | 716 | confirmButtonText: "确定", |
| 860 | cancelButtonText: "取消", | 717 | cancelButtonText: "取消", |
| ... | @@ -939,6 +796,7 @@ export default { | ... | @@ -939,6 +796,7 @@ export default { |
| 939 | cancel() { | 796 | cancel() { |
| 940 | this.open = false; | 797 | this.open = false; |
| 941 | this.findAllFltData(); | 798 | this.findAllFltData(); |
| 799 | + this.findFltConditionData(); | ||
| 942 | this.reset(); | 800 | this.reset(); |
| 943 | }, | 801 | }, |
| 944 | /** 重置按钮操作 */ | 802 | /** 重置按钮操作 */ |
| ... | @@ -1040,7 +898,20 @@ export default { | ... | @@ -1040,7 +898,20 @@ export default { |
| 1040 | this.queryParams.limitSize = val; | 898 | this.queryParams.limitSize = val; |
| 1041 | this.findAllFltData(); | 899 | this.findAllFltData(); |
| 1042 | }, | 900 | }, |
| 901 | + setClose() { | ||
| 902 | + this.tableHeader = this.tableHeaders['FlightInformation'] | ||
| 903 | + }, | ||
| 1043 | }, | 904 | }, |
| 905 | + computed: { | ||
| 906 | + route: { | ||
| 907 | + get: function () { | ||
| 908 | + return this.form.route; | ||
| 909 | + }, | ||
| 910 | + set: function (val) { | ||
| 911 | + this.form.route = this.upCase(val); | ||
| 912 | + }, | ||
| 913 | + } | ||
| 914 | + } | ||
| 1044 | }; | 915 | }; |
| 1045 | </script> | 916 | </script> |
| 1046 | 917 | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="cargoPage"> | 2 | <div class="cargoPage"> |
| 3 | - <el-form ref="cargoForm" class="form-header" label-position="right" label-width="auto" size="medium" | 3 | + <el-form ref="cargoForm" class="form-header" label-position="right" label-width="auto" size="small" |
| 4 | :model="formData"> | 4 | :model="formData"> |
| 5 | <el-row type="flex" style="flexWrap: wrap !important"> | 5 | <el-row type="flex" style="flexWrap: wrap !important"> |
| 6 | <el-col :span="6"> | 6 | <el-col :span="6"> |
| ... | @@ -18,7 +18,8 @@ | ... | @@ -18,7 +18,8 @@ |
| 18 | </el-col> | 18 | </el-col> |
| 19 | <el-col :span="6"> | 19 | <el-col :span="6"> |
| 20 | <el-form-item label="海关回执状态"> | 20 | <el-form-item label="海关回执状态"> |
| 21 | - <el-select placeholder="不限" v-model="formData.customsReceiptStatusId" class="formItem" multiple clearable> | 21 | + <el-select placeholder="不限" v-model="formData.customsReceiptStatusId" class="formItem" filterable multiple |
| 22 | + clearable> | ||
| 22 | <el-option v-for="item in findConditionData.cargoCustomsReturnStatus" :label="item.chineseName" | 23 | <el-option v-for="item in findConditionData.cargoCustomsReturnStatus" :label="item.chineseName" |
| 23 | :value="item.id" :key="item.id"> | 24 | :value="item.id" :key="item.id"> |
| 24 | </el-option> | 25 | </el-option> |
| ... | @@ -149,16 +150,15 @@ | ... | @@ -149,16 +150,15 @@ |
| 149 | <span style="paddingRight: 50px">总重量:{{ allWeight }}</span> | 150 | <span style="paddingRight: 50px">总重量:{{ allWeight }}</span> |
| 150 | <span>总件数:{{ allQty }}</span> | 151 | <span>总件数:{{ allQty }}</span> |
| 151 | </div> | 152 | </div> |
| 152 | - <div class="formShow" @click="formShow = !formShow"> | 153 | + <div class="formShow"> |
| 153 | - <i class="el-icon-s-tools"></i>{{ formShow ? "收起条件" : "更多条件" }} | 154 | + <el-button class="mr20" icon="el-icon-search" size="mini" @click="formShow = !formShow" circle></el-button> |
| 154 | </div> | 155 | </div> |
| 155 | </div> | 156 | </div> |
| 156 | </el-form> | 157 | </el-form> |
| 157 | - <Tables ref="newTables" ductName="cargo" :data="tableData" :headerData="tableHeader" :infoData="tableHeader" | 158 | + <Tables ref="newTables" ductName="cargo" :data="tableData" :headerData="tableHeader" :selection="true" :order="true" |
| 158 | - :selection="true" :order="true" :totalCount="totalCount" :loading="tableLoading" :limitSize="limitSize" | 159 | + :totalCount="totalCount" :loading="tableLoading" :limitSize="limitSize" :limitStart="limitStart" :page="page" |
| 159 | - :limitStart="limitStart" :page="page" :shiftKey="shiftKey" :pageSizes="[100]" :height="tableHeight" | 160 | + :shiftKey="shiftKey" :pageSizes="[100]" :height="tableHeight" @sizeChange="sizeChange" @tableSelect="tableSelect" |
| 160 | - @sizeChange="sizeChange" @tableSelect="tableSelect" @tableSelectAll="tableSelectAll" | 161 | + @tableSelectAll="tableSelectAll" @currentChange="currentChange" @sortChange="sortChange"></Tables> |
| 161 | - @currentChange="currentChange" @sortChange="sortChange"></Tables> | ||
| 162 | <el-dialog title="舱位释放结果" width="80%" :visible.sync="dialogVisible" :close-on-click-modal="false" | 162 | <el-dialog title="舱位释放结果" width="80%" :visible.sync="dialogVisible" :close-on-click-modal="false" |
| 163 | :show-close="false" :append-to-body="true"> | 163 | :show-close="false" :append-to-body="true"> |
| 164 | <el-table :data="selectTable" size="mini" border stripe highlight-current-row style="width: 100%"> | 164 | <el-table :data="selectTable" size="mini" border stripe highlight-current-row style="width: 100%"> |
| ... | @@ -178,7 +178,6 @@ | ... | @@ -178,7 +178,6 @@ |
| 178 | <script> | 178 | <script> |
| 179 | import { findConditionData, findCargoData, releaseCargo } from "@/api/cargoSelect"; | 179 | import { findConditionData, findCargoData, releaseCargo } from "@/api/cargoSelect"; |
| 180 | import { downLoadXlsx } from "@/utils/zipdownload"; | 180 | import { downLoadXlsx } from "@/utils/zipdownload"; |
| 181 | -import { upCase } from "@/utils/FedEx"; | ||
| 182 | 181 | ||
| 183 | export default { | 182 | export default { |
| 184 | name: "QueryCargo", | 183 | name: "QueryCargo", |
| ... | @@ -213,322 +212,7 @@ export default { | ... | @@ -213,322 +212,7 @@ export default { |
| 213 | limitStart: 1, | 212 | limitStart: 1, |
| 214 | limitSize: 100, | 213 | limitSize: 100, |
| 215 | }, //表单数据 | 214 | }, //表单数据 |
| 216 | - tableHeader: [ | 215 | + tableHeader: this.tableHeaders['cargo'], //表头数据 |
| 217 | - { | ||
| 218 | - name: "口岸代码", | ||
| 219 | - value: "portName", | ||
| 220 | - width: "100", | ||
| 221 | - align: "center", | ||
| 222 | - sorTable: true, | ||
| 223 | - }, | ||
| 224 | - { | ||
| 225 | - name: "取件日期", | ||
| 226 | - value: "pickUpDate", | ||
| 227 | - width: "120", | ||
| 228 | - align: "center", | ||
| 229 | - sorTable: true, | ||
| 230 | - }, | ||
| 231 | - { | ||
| 232 | - name: "取件扫描号", | ||
| 233 | - value: "pickUpScanNo", | ||
| 234 | - width: "120", | ||
| 235 | - align: "center", | ||
| 236 | - sorTable: true, | ||
| 237 | - }, | ||
| 238 | - { | ||
| 239 | - name: "站点", | ||
| 240 | - value: "siteName", | ||
| 241 | - width: "80", | ||
| 242 | - align: "center", | ||
| 243 | - sorTable: true, | ||
| 244 | - }, | ||
| 245 | - { | ||
| 246 | - name: "运单号", | ||
| 247 | - value: "waybillNo", | ||
| 248 | - width: "120", | ||
| 249 | - align: "center", | ||
| 250 | - sorTable: true, | ||
| 251 | - }, | ||
| 252 | - { | ||
| 253 | - name: "总单号", | ||
| 254 | - value: "totalWaybillNo", | ||
| 255 | - width: "120", | ||
| 256 | - align: "center", | ||
| 257 | - sorTable: true, | ||
| 258 | - }, | ||
| 259 | - { | ||
| 260 | - name: "服务类型", | ||
| 261 | - value: "serviceTypeName", | ||
| 262 | - width: "100", | ||
| 263 | - align: "center", | ||
| 264 | - sorTable: true, | ||
| 265 | - }, | ||
| 266 | - { | ||
| 267 | - name: "服务代码", | ||
| 268 | - value: "serviceCode", | ||
| 269 | - width: "100", | ||
| 270 | - align: "center", | ||
| 271 | - sorTable: false, | ||
| 272 | - }, | ||
| 273 | - { | ||
| 274 | - name: "URSA", | ||
| 275 | - value: "ursa", | ||
| 276 | - width: "100", | ||
| 277 | - align: "center", | ||
| 278 | - sorTable: true, | ||
| 279 | - }, | ||
| 280 | - { | ||
| 281 | - name: "推送状态", | ||
| 282 | - value: "cargoAllocationDataStatus", | ||
| 283 | - width: "100", | ||
| 284 | - align: "center", | ||
| 285 | - sorTable: true, | ||
| 286 | - }, | ||
| 287 | - { | ||
| 288 | - name: "配舱状态", | ||
| 289 | - value: "flightIdImac", | ||
| 290 | - width: "100", | ||
| 291 | - align: "center", | ||
| 292 | - sorTable: true, | ||
| 293 | - }, | ||
| 294 | - { | ||
| 295 | - name: "释放状态", | ||
| 296 | - value: "releasing", | ||
| 297 | - width: "100", | ||
| 298 | - align: "center", | ||
| 299 | - sorTable: true, | ||
| 300 | - }, | ||
| 301 | - { | ||
| 302 | - name: "申报类型", | ||
| 303 | - value: "typeName", | ||
| 304 | - width: "100", | ||
| 305 | - align: "center", | ||
| 306 | - sorTable: true, | ||
| 307 | - }, | ||
| 308 | - { | ||
| 309 | - name: "ACCSpool", | ||
| 310 | - value: "accsPool", | ||
| 311 | - width: "120", | ||
| 312 | - align: "center", | ||
| 313 | - sorTable: true, | ||
| 314 | - }, | ||
| 315 | - { | ||
| 316 | - name: "HandlingCode", | ||
| 317 | - value: "handingCode", | ||
| 318 | - width: "150", | ||
| 319 | - align: "center", | ||
| 320 | - sorTable: true, | ||
| 321 | - }, | ||
| 322 | - { | ||
| 323 | - name: "subcategory", | ||
| 324 | - value: "subCategory", | ||
| 325 | - width: "140", | ||
| 326 | - align: "center", | ||
| 327 | - sorTable: true, | ||
| 328 | - }, | ||
| 329 | - { | ||
| 330 | - name: "件数", | ||
| 331 | - value: "qty", | ||
| 332 | - width: "80", | ||
| 333 | - align: "center", | ||
| 334 | - sorTable: true, | ||
| 335 | - }, | ||
| 336 | - { | ||
| 337 | - name: "实际重量", | ||
| 338 | - value: "actualWeight", | ||
| 339 | - width: "100", | ||
| 340 | - align: "center", | ||
| 341 | - sorTable: true, | ||
| 342 | - }, | ||
| 343 | - { | ||
| 344 | - name: "收件人国家代码", | ||
| 345 | - value: "consigneeCountry", | ||
| 346 | - width: "150", | ||
| 347 | - align: "center", | ||
| 348 | - sorTable: true, | ||
| 349 | - }, | ||
| 350 | - { | ||
| 351 | - name: "品名描述", | ||
| 352 | - value: "nameDescription", | ||
| 353 | - width: "100", | ||
| 354 | - align: "center", | ||
| 355 | - }, | ||
| 356 | - { | ||
| 357 | - name: "海关回执状态", | ||
| 358 | - value: "customsReceiptStatusName", | ||
| 359 | - width: "140", | ||
| 360 | - align: "center", | ||
| 361 | - sorTable: true, | ||
| 362 | - }, | ||
| 363 | - { | ||
| 364 | - name: "预审状态", | ||
| 365 | - value: "preQualificationStatus", | ||
| 366 | - width: "100", | ||
| 367 | - align: "center", | ||
| 368 | - sorTable: true, | ||
| 369 | - }, | ||
| 370 | - { | ||
| 371 | - name: "航班预审意见", | ||
| 372 | - value: "caPretrialOpinion", | ||
| 373 | - width: "120", | ||
| 374 | - align: "center", | ||
| 375 | - }, | ||
| 376 | - { | ||
| 377 | - name: "货物状态", | ||
| 378 | - value: "statusName", | ||
| 379 | - width: "100", | ||
| 380 | - align: "center", | ||
| 381 | - sorTable: true, | ||
| 382 | - }, | ||
| 383 | - { | ||
| 384 | - name: "终配航班号", | ||
| 385 | - value: "finalFlightNo", | ||
| 386 | - width: "120", | ||
| 387 | - align: "center", | ||
| 388 | - sorTable: true, | ||
| 389 | - }, | ||
| 390 | - { | ||
| 391 | - name: "终配航班日期", | ||
| 392 | - value: "finalFlightTime", | ||
| 393 | - width: "140", | ||
| 394 | - align: "center", | ||
| 395 | - sorTable: true, | ||
| 396 | - }, | ||
| 397 | - { | ||
| 398 | - name: "二配航班号", | ||
| 399 | - value: "twoMatchFlightNo", | ||
| 400 | - width: "120", | ||
| 401 | - align: "center", | ||
| 402 | - sorTable: true, | ||
| 403 | - }, | ||
| 404 | - { | ||
| 405 | - name: "二配航班日期", | ||
| 406 | - value: "twoMatchFlightTime", | ||
| 407 | - width: "150", | ||
| 408 | - align: "center", | ||
| 409 | - sorTable: true, | ||
| 410 | - }, | ||
| 411 | - { | ||
| 412 | - name: "预配航班号", | ||
| 413 | - value: "preplanFlightNo", | ||
| 414 | - width: "120", | ||
| 415 | - align: "center", | ||
| 416 | - sorTable: true, | ||
| 417 | - }, | ||
| 418 | - { | ||
| 419 | - name: "预配航班日期", | ||
| 420 | - value: "preplanFlightTime", | ||
| 421 | - width: "150", | ||
| 422 | - align: "center", | ||
| 423 | - sorTable: true, | ||
| 424 | - }, | ||
| 425 | - { | ||
| 426 | - name: "ACCS原航班号", | ||
| 427 | - value: "fltNoAccs", | ||
| 428 | - width: "150", | ||
| 429 | - align: "center", | ||
| 430 | - sorTable: true, | ||
| 431 | - }, | ||
| 432 | - { | ||
| 433 | - name: "ACCS原航班日期", | ||
| 434 | - value: "fltDateAccs", | ||
| 435 | - width: "150", | ||
| 436 | - align: "center", | ||
| 437 | - sorTable: true, | ||
| 438 | - }, | ||
| 439 | - { | ||
| 440 | - name: "ACCS原航线", | ||
| 441 | - value: "accsFlightRoute", | ||
| 442 | - width: "140", | ||
| 443 | - align: "center", | ||
| 444 | - sorTable: true, | ||
| 445 | - }, | ||
| 446 | - { | ||
| 447 | - name: "是否RDE手工录入", | ||
| 448 | - value: "manualRde", | ||
| 449 | - width: "170", | ||
| 450 | - align: "center", | ||
| 451 | - sorTable: true, | ||
| 452 | - }, | ||
| 453 | - { | ||
| 454 | - name: "是否自动", | ||
| 455 | - value: "cargoRulesStatus", | ||
| 456 | - width: "100", | ||
| 457 | - align: "center", | ||
| 458 | - sorTable: true, | ||
| 459 | - }, | ||
| 460 | - { | ||
| 461 | - name: "发件人账号", | ||
| 462 | - value: "shipperAccount", | ||
| 463 | - width: "120", | ||
| 464 | - align: "center", | ||
| 465 | - }, | ||
| 466 | - { | ||
| 467 | - name: "发件公司中文名称", | ||
| 468 | - value: "shipperCompany", | ||
| 469 | - width: "150", | ||
| 470 | - align: "center", | ||
| 471 | - }, | ||
| 472 | - { | ||
| 473 | - name: "始发地城市名称", | ||
| 474 | - value: "originCity", | ||
| 475 | - width: "130", | ||
| 476 | - align: "center", | ||
| 477 | - }, | ||
| 478 | - { | ||
| 479 | - name: "收件地", | ||
| 480 | - value: "destinationSiteName", | ||
| 481 | - width: "90", | ||
| 482 | - align: "center", | ||
| 483 | - }, | ||
| 484 | - { | ||
| 485 | - name: "尺寸", | ||
| 486 | - value: "sizeStr", | ||
| 487 | - width: "80", | ||
| 488 | - align: "center", | ||
| 489 | - sorTable: true, | ||
| 490 | - }, | ||
| 491 | - { | ||
| 492 | - name: "大货预审意见(是否可以配置航班)", | ||
| 493 | - value: "bigPretrialOpinion", | ||
| 494 | - width: "250", | ||
| 495 | - align: "center", | ||
| 496 | - }, | ||
| 497 | - { | ||
| 498 | - name: "大货预审时间", | ||
| 499 | - value: "bigPretrialTime", | ||
| 500 | - width: "120", | ||
| 501 | - align: "center", | ||
| 502 | - }, | ||
| 503 | - { | ||
| 504 | - name: "海关回执时间", | ||
| 505 | - value: "customsReceiptTime", | ||
| 506 | - width: "150", | ||
| 507 | - align: "center", | ||
| 508 | - sorTable: true, | ||
| 509 | - }, | ||
| 510 | - { | ||
| 511 | - name: "航班预审时间", | ||
| 512 | - value: "caPretrialTime", | ||
| 513 | - width: "150", | ||
| 514 | - align: "center", | ||
| 515 | - sorTable: true, | ||
| 516 | - }, | ||
| 517 | - { | ||
| 518 | - name: "创建人", | ||
| 519 | - value: "createUserName", | ||
| 520 | - width: "90", | ||
| 521 | - align: "center", | ||
| 522 | - sorTable: true, | ||
| 523 | - }, | ||
| 524 | - { | ||
| 525 | - name: "创建时间", | ||
| 526 | - value: "createTime", | ||
| 527 | - width: "100", | ||
| 528 | - align: "center", | ||
| 529 | - sorTable: true, | ||
| 530 | - }, | ||
| 531 | - ], //表头数据 | ||
| 532 | releaseHeader: [ | 216 | releaseHeader: [ |
| 533 | { | 217 | { |
| 534 | name: "提示信息", | 218 | name: "提示信息", |
| ... | @@ -606,18 +290,12 @@ export default { | ... | @@ -606,18 +290,12 @@ export default { |
| 606 | }; | 290 | }; |
| 607 | }, | 291 | }, |
| 608 | created() { | 292 | created() { |
| 609 | - // 查询条件 | 293 | + this.findCondition() |
| 610 | - findConditionData().then((res) => { | ||
| 611 | - if (res.code == 200) { | ||
| 612 | - this.findConditionData = res.data; | ||
| 613 | - } else { | ||
| 614 | - this.msgWarning('查询条件不存在') | ||
| 615 | - } | ||
| 616 | - }); | ||
| 617 | }, | 294 | }, |
| 618 | 295 | ||
| 619 | activated() { | 296 | activated() { |
| 620 | if (this.$store.state.tagsView.cachedViews.length > 0) { | 297 | if (this.$store.state.tagsView.cachedViews.length > 0) { |
| 298 | + this.findCondition() | ||
| 621 | this.$store.state.tagsView.cachedViews.forEach(item => { | 299 | this.$store.state.tagsView.cachedViews.forEach(item => { |
| 622 | if (item === 'QueryCargo') { | 300 | if (item === 'QueryCargo') { |
| 623 | this.totalCount > 0 ? this.select() : '' | 301 | this.totalCount > 0 ? this.select() : '' |
| ... | @@ -652,6 +330,16 @@ export default { | ... | @@ -652,6 +330,16 @@ export default { |
| 652 | clear() { | 330 | clear() { |
| 653 | this.$refs.cargoForm.resetFields(); | 331 | this.$refs.cargoForm.resetFields(); |
| 654 | }, | 332 | }, |
| 333 | + // 查询条件 | ||
| 334 | + findCondition() { | ||
| 335 | + findConditionData().then((res) => { | ||
| 336 | + if (res.code == 200) { | ||
| 337 | + this.findConditionData = res.data; | ||
| 338 | + } else { | ||
| 339 | + this.msgWarning('查询条件不存在') | ||
| 340 | + } | ||
| 341 | + }); | ||
| 342 | + }, | ||
| 655 | //查询 | 343 | //查询 |
| 656 | select(val) { | 344 | select(val) { |
| 657 | this.tableData = []; | 345 | this.tableData = []; |
| ... | @@ -712,7 +400,6 @@ export default { | ... | @@ -712,7 +400,6 @@ export default { |
| 712 | val === item.id ? item.msg = item.msg + '已释放仓位。' : '' | 400 | val === item.id ? item.msg = item.msg + '已释放仓位。' : '' |
| 713 | }) | 401 | }) |
| 714 | res.data['pushFalse'].map(val => { | 402 | res.data['pushFalse'].map(val => { |
| 715 | - console.log(item) | ||
| 716 | val === item.id ? item.msg = item.msg + '该货物配舱结果已回推ACCS,不能释放。' : '' | 403 | val === item.id ? item.msg = item.msg + '该货物配舱结果已回推ACCS,不能释放。' : '' |
| 717 | }) | 404 | }) |
| 718 | }) | 405 | }) |
| ... | @@ -732,6 +419,9 @@ export default { | ... | @@ -732,6 +419,9 @@ export default { |
| 732 | }, | 419 | }, |
| 733 | //数据初始化 | 420 | //数据初始化 |
| 734 | dataInfo() { | 421 | dataInfo() { |
| 422 | + if (this.formData.serviceTypeId != null && this.formData.serviceTypeId.length < 1) { | ||
| 423 | + this.formData.serviceTypeId = null | ||
| 424 | + } | ||
| 735 | if ( | 425 | if ( |
| 736 | this.formData.customsReceiptStatusId != null && | 426 | this.formData.customsReceiptStatusId != null && |
| 737 | this.formData.customsReceiptStatusId.length < 1 | 427 | this.formData.customsReceiptStatusId.length < 1 |
| ... | @@ -880,7 +570,7 @@ export default { | ... | @@ -880,7 +570,7 @@ export default { |
| 880 | return this.formData.fltNo; | 570 | return this.formData.fltNo; |
| 881 | }, | 571 | }, |
| 882 | set: function (val) { | 572 | set: function (val) { |
| 883 | - this.formData.fltNo = upCase(val); | 573 | + this.formData.fltNo = this.upCase(val); |
| 884 | }, | 574 | }, |
| 885 | }, | 575 | }, |
| 886 | siteName: { | 576 | siteName: { |
| ... | @@ -888,7 +578,7 @@ export default { | ... | @@ -888,7 +578,7 @@ export default { |
| 888 | return this.formData.siteName; | 578 | return this.formData.siteName; |
| 889 | }, | 579 | }, |
| 890 | set: function (val) { | 580 | set: function (val) { |
| 891 | - this.formData.siteName = upCase(val); | 581 | + this.formData.siteName = this.upCase(val); |
| 892 | }, | 582 | }, |
| 893 | }, | 583 | }, |
| 894 | ursa: { | 584 | ursa: { |
| ... | @@ -896,7 +586,7 @@ export default { | ... | @@ -896,7 +586,7 @@ export default { |
| 896 | return this.formData.ursa; | 586 | return this.formData.ursa; |
| 897 | }, | 587 | }, |
| 898 | set: function (val) { | 588 | set: function (val) { |
| 899 | - this.formData.ursa = upCase(val); | 589 | + this.formData.ursa = this.upCase(val); |
| 900 | }, | 590 | }, |
| 901 | }, | 591 | }, |
| 902 | cargoPlaneNo: { | 592 | cargoPlaneNo: { |
| ... | @@ -904,7 +594,7 @@ export default { | ... | @@ -904,7 +594,7 @@ export default { |
| 904 | return this.formData.cargoPlaneNo; | 594 | return this.formData.cargoPlaneNo; |
| 905 | }, | 595 | }, |
| 906 | set: function (val) { | 596 | set: function (val) { |
| 907 | - this.formData.cargoPlaneNo = upCase(val); | 597 | + this.formData.cargoPlaneNo = this.upCase(val); |
| 908 | }, | 598 | }, |
| 909 | }, | 599 | }, |
| 910 | }, | 600 | }, |
| ... | @@ -934,6 +624,6 @@ export default { | ... | @@ -934,6 +624,6 @@ export default { |
| 934 | color: rgb(64, 158, 255); | 624 | color: rgb(64, 158, 255); |
| 935 | font-size: 14px; | 625 | font-size: 14px; |
| 936 | float: right; | 626 | float: right; |
| 937 | - margin-right: 20px; | 627 | + margin-right: 5px; |
| 938 | } | 628 | } |
| 939 | </style> | 629 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -30,9 +30,9 @@ | ... | @@ -30,9 +30,9 @@ |
| 30 | <el-button type="primary" icon="el-icon-plus" size="mini" @click="addRole" v-hasPermi="['system:role:add']">新增角色 | 30 | <el-button type="primary" icon="el-icon-plus" size="mini" @click="addRole" v-hasPermi="['system:role:add']">新增角色 |
| 31 | </el-button> | 31 | </el-button> |
| 32 | </div> | 32 | </div> |
| 33 | - <Tables ductName="role" :data="data" :headerData="tableHeader" :infoData="tableHeader" :totalCount="total" | 33 | + <Tables ref="role" ductName="role" :data="data" :headerData="tableHeader" :totalCount="total" |
| 34 | :limitSize="formData.size" :page="formData.page" :pageSizes="[20, 30, 40, 50]" :loading="tableLoading" | 34 | :limitSize="formData.size" :page="formData.page" :pageSizes="[20, 30, 40, 50]" :loading="tableLoading" |
| 35 | - height="600" @sizeChange="sizeChange" @currentChange="currentChange"> | 35 | + :height="tableHeight" @sizeChange="sizeChange" @currentChange="currentChange"> |
| 36 | <template slot="optionColumn"> | 36 | <template slot="optionColumn"> |
| 37 | <el-table-column header-align="center" align="center" label="操作"> | 37 | <el-table-column header-align="center" align="center" label="操作"> |
| 38 | <template slot-scope="scope"> | 38 | <template slot-scope="scope"> |
| ... | @@ -77,44 +77,7 @@ export default { | ... | @@ -77,44 +77,7 @@ export default { |
| 77 | name: null, | 77 | name: null, |
| 78 | }, //查询条件 | 78 | }, //查询条件 |
| 79 | data: [], //表格数据 | 79 | data: [], //表格数据 |
| 80 | - tableHeader: [ | 80 | + tableHeader: this.tableHeaders['role'], //表头数据 |
| 81 | - { | ||
| 82 | - name: "角色名称", | ||
| 83 | - value: "name", | ||
| 84 | - width: "150px", | ||
| 85 | - align: "center", | ||
| 86 | - }, | ||
| 87 | - { | ||
| 88 | - name: "角色状态", | ||
| 89 | - value: "valid", | ||
| 90 | - width: "150px", | ||
| 91 | - align: "center", | ||
| 92 | - }, | ||
| 93 | - { | ||
| 94 | - name: "创建人", | ||
| 95 | - value: "createUserName", | ||
| 96 | - width: "150px", | ||
| 97 | - align: "center", | ||
| 98 | - }, | ||
| 99 | - { | ||
| 100 | - name: "创建时间", | ||
| 101 | - value: "createTime", | ||
| 102 | - width: "150px", | ||
| 103 | - align: "center", | ||
| 104 | - }, | ||
| 105 | - { | ||
| 106 | - name: "修改时间", | ||
| 107 | - value: "updateTime", | ||
| 108 | - width: "150px", | ||
| 109 | - align: "center", | ||
| 110 | - }, | ||
| 111 | - { | ||
| 112 | - name: "备注", | ||
| 113 | - value: "remark", | ||
| 114 | - width: "400px", | ||
| 115 | - align: "center", | ||
| 116 | - }, | ||
| 117 | - ], //表头数据 | ||
| 118 | roleData: {}, //角色详情 | 81 | roleData: {}, //角色详情 |
| 119 | createTime: [], | 82 | createTime: [], |
| 120 | drawer: false, | 83 | drawer: false, |
| ... | @@ -122,6 +85,7 @@ export default { | ... | @@ -122,6 +85,7 @@ export default { |
| 122 | roleFormDisabled: false, | 85 | roleFormDisabled: false, |
| 123 | tableLoading: false, | 86 | tableLoading: false, |
| 124 | total: 0, | 87 | total: 0, |
| 88 | + tableHeight: null | ||
| 125 | }; | 89 | }; |
| 126 | }, | 90 | }, |
| 127 | created() { | 91 | created() { |
| ... | @@ -129,6 +93,9 @@ export default { | ... | @@ -129,6 +93,9 @@ export default { |
| 129 | this.selectRoleList(); | 93 | this.selectRoleList(); |
| 130 | } | 94 | } |
| 131 | }, | 95 | }, |
| 96 | + mounted() { | ||
| 97 | + this.tableHeight = window.innerHeight - this.$refs.selectionRoleForm.$el.offsetHeight - 250 | ||
| 98 | + }, | ||
| 132 | activated() { | 99 | activated() { |
| 133 | this.selectRoleList(); | 100 | this.selectRoleList(); |
| 134 | }, | 101 | }, | ... | ... |
| ... | @@ -172,8 +172,6 @@ export default { | ... | @@ -172,8 +172,6 @@ export default { |
| 172 | }, | 172 | }, |
| 173 | }; | 173 | }; |
| 174 | }, | 174 | }, |
| 175 | - created() { | ||
| 176 | - }, | ||
| 177 | watch: { | 175 | watch: { |
| 178 | drawer(val, oldVal) { | 176 | drawer(val, oldVal) { |
| 179 | if (val) { | 177 | if (val) { |
| ... | @@ -229,7 +227,6 @@ export default { | ... | @@ -229,7 +227,6 @@ export default { |
| 229 | console.log(err); | 227 | console.log(err); |
| 230 | }); | 228 | }); |
| 231 | }, | 229 | }, |
| 232 | - | ||
| 233 | //关闭 | 230 | //关闭 |
| 234 | handleClose() { | 231 | handleClose() { |
| 235 | this.roleid = []; | 232 | this.roleid = []; |
| ... | @@ -240,7 +237,6 @@ export default { | ... | @@ -240,7 +237,6 @@ export default { |
| 240 | this.clearValidate('userForm') | 237 | this.clearValidate('userForm') |
| 241 | this.$emit("handleClose", false); | 238 | this.$emit("handleClose", false); |
| 242 | }, | 239 | }, |
| 243 | - | ||
| 244 | //提交 | 240 | //提交 |
| 245 | submit() { | 241 | submit() { |
| 246 | if (this.port.join(",").length > 0) { | 242 | if (this.port.join(",").length > 0) { | ... | ... |
| ... | @@ -29,8 +29,8 @@ | ... | @@ -29,8 +29,8 @@ |
| 29 | </el-button> | 29 | </el-button> |
| 30 | </div> | 30 | </div> |
| 31 | <Tables ductName="user" :data="data" :headerData="tableHeader" :limitSize="formData.size" :totalCount="total" | 31 | <Tables ductName="user" :data="data" :headerData="tableHeader" :limitSize="formData.size" :totalCount="total" |
| 32 | - :loading="loading" :page="formData.page" :pageSizes="[20, 30, 40, 50]" height="600" @sizeChange="sizeChange" | 32 | + :loading="loading" :page="formData.page" :pageSizes="[20, 30, 40, 50]" :height="tableHeight" |
| 33 | - @currentChange="currentChange"> | 33 | + @sizeChange="sizeChange" @currentChange="currentChange"> |
| 34 | <template slot="optionColumn"> | 34 | <template slot="optionColumn"> |
| 35 | <el-table-column header-align="center" align="center" width="auto" label="操作"> | 35 | <el-table-column header-align="center" align="center" width="auto" label="操作"> |
| 36 | <template slot-scope="scope"> | 36 | <template slot-scope="scope"> |
| ... | @@ -88,7 +88,6 @@ | ... | @@ -88,7 +88,6 @@ |
| 88 | <script> | 88 | <script> |
| 89 | import Drawer from "./drawer.vue"; | 89 | import Drawer from "./drawer.vue"; |
| 90 | import { listUser, detailUser, updateUserStatus } from "@/api/system/user.js"; | 90 | import { listUser, detailUser, updateUserStatus } from "@/api/system/user.js"; |
| 91 | - | ||
| 92 | export default { | 91 | export default { |
| 93 | name: "UserConfig", | 92 | name: "UserConfig", |
| 94 | components: { | 93 | components: { |
| ... | @@ -103,56 +102,7 @@ export default { | ... | @@ -103,56 +102,7 @@ export default { |
| 103 | username: null, | 102 | username: null, |
| 104 | phone: null, | 103 | phone: null, |
| 105 | }, //查询条件 | 104 | }, //查询条件 |
| 106 | - tableHeader: [ | 105 | + tableHeader: this.tableHeaders['user'], //表头数据 |
| 107 | - { | ||
| 108 | - name: "员工号", | ||
| 109 | - value: "loginName", | ||
| 110 | - width: "150px", | ||
| 111 | - align: "center", | ||
| 112 | - }, | ||
| 113 | - { | ||
| 114 | - name: "用户姓名", | ||
| 115 | - value: "username", | ||
| 116 | - width: "150px", | ||
| 117 | - align: "center", | ||
| 118 | - }, | ||
| 119 | - { | ||
| 120 | - name: "所属口岸", | ||
| 121 | - value: "portName", | ||
| 122 | - width: "150px", | ||
| 123 | - align: "center", | ||
| 124 | - }, | ||
| 125 | - { | ||
| 126 | - name: "所属角色", | ||
| 127 | - value: "roleNames", | ||
| 128 | - width: "150px", | ||
| 129 | - align: "center", | ||
| 130 | - }, | ||
| 131 | - { | ||
| 132 | - name: "电子邮箱", | ||
| 133 | - value: "email", | ||
| 134 | - width: "150px", | ||
| 135 | - align: "center", | ||
| 136 | - }, | ||
| 137 | - { | ||
| 138 | - name: "用户状态", | ||
| 139 | - value: "isValid", | ||
| 140 | - width: "100px", | ||
| 141 | - align: "center", | ||
| 142 | - }, | ||
| 143 | - { | ||
| 144 | - name: "修改时间", | ||
| 145 | - value: "updateTime", | ||
| 146 | - width: "150px", | ||
| 147 | - align: "center", | ||
| 148 | - }, | ||
| 149 | - { | ||
| 150 | - name: "备注", | ||
| 151 | - value: "remark", | ||
| 152 | - width: "150px", | ||
| 153 | - align: "center", | ||
| 154 | - }, | ||
| 155 | - ], //表头数据 | ||
| 156 | userData: {}, //用户详情 | 106 | userData: {}, //用户详情 |
| 157 | data: [], //用户列表 | 107 | data: [], //用户列表 |
| 158 | drawer: false, | 108 | drawer: false, |
| ... | @@ -161,6 +111,7 @@ export default { | ... | @@ -161,6 +111,7 @@ export default { |
| 161 | drawerTitle: "", | 111 | drawerTitle: "", |
| 162 | total: 0, | 112 | total: 0, |
| 163 | loading: false, | 113 | loading: false, |
| 114 | + tableHeight: null | ||
| 164 | }; | 115 | }; |
| 165 | }, | 116 | }, |
| 166 | created() { | 117 | created() { |
| ... | @@ -168,6 +119,9 @@ export default { | ... | @@ -168,6 +119,9 @@ export default { |
| 168 | this.selectUser(); | 119 | this.selectUser(); |
| 169 | } | 120 | } |
| 170 | }, | 121 | }, |
| 122 | + mounted() { | ||
| 123 | + this.tableHeight = window.innerHeight - this.$refs.selectionUserForm.$el.offsetHeight - 250 | ||
| 124 | + }, | ||
| 171 | activated() { | 125 | activated() { |
| 172 | this.selectUser(); | 126 | this.selectUser(); |
| 173 | }, | 127 | }, |
| ... | @@ -197,7 +151,6 @@ export default { | ... | @@ -197,7 +151,6 @@ export default { |
| 197 | console.log(err); | 151 | console.log(err); |
| 198 | }); | 152 | }); |
| 199 | }, | 153 | }, |
| 200 | - | ||
| 201 | //用户详情 | 154 | //用户详情 |
| 202 | userDetail(id) { | 155 | userDetail(id) { |
| 203 | detailUser(id) | 156 | detailUser(id) |
| ... | @@ -217,7 +170,6 @@ export default { | ... | @@ -217,7 +170,6 @@ export default { |
| 217 | console.log(err); | 170 | console.log(err); |
| 218 | }); | 171 | }); |
| 219 | }, | 172 | }, |
| 220 | - | ||
| 221 | //新增用户 | 173 | //新增用户 |
| 222 | addUser() { | 174 | addUser() { |
| 223 | this.userData = {}; | 175 | this.userData = {}; |
| ... | @@ -225,7 +177,6 @@ export default { | ... | @@ -225,7 +177,6 @@ export default { |
| 225 | this.drawerTitle = "新增用户"; | 177 | this.drawerTitle = "新增用户"; |
| 226 | this.userFormDisabled = false; | 178 | this.userFormDisabled = false; |
| 227 | }, | 179 | }, |
| 228 | - | ||
| 229 | //查询修改用户 | 180 | //查询修改用户 |
| 230 | buttonClick(row, status) { | 181 | buttonClick(row, status) { |
| 231 | this.userDetail(row.row.id); | 182 | this.userDetail(row.row.id); |
| ... | @@ -233,7 +184,6 @@ export default { | ... | @@ -233,7 +184,6 @@ export default { |
| 233 | ? (this.userFormDisabled = true) | 184 | ? (this.userFormDisabled = true) |
| 234 | : (this.userFormDisabled = false); | 185 | : (this.userFormDisabled = false); |
| 235 | }, | 186 | }, |
| 236 | - | ||
| 237 | //修改用户状态 | 187 | //修改用户状态 |
| 238 | userStatus(row) { | 188 | userStatus(row) { |
| 239 | let msg = ""; | 189 | let msg = ""; |
| ... | @@ -261,9 +211,8 @@ export default { | ... | @@ -261,9 +211,8 @@ export default { |
| 261 | .catch((err) => { | 211 | .catch((err) => { |
| 262 | console.log(err); | 212 | console.log(err); |
| 263 | }) | 213 | }) |
| 264 | - .catch(() => { }); | 214 | + .catch(() => {}); |
| 265 | }, | 215 | }, |
| 266 | - | ||
| 267 | //删除用户 | 216 | //删除用户 |
| 268 | removeUser(row) { | 217 | removeUser(row) { |
| 269 | this.$confirm("是否要删除此用户", "提示", { | 218 | this.$confirm("是否要删除此用户", "提示", { |
| ... | @@ -284,20 +233,17 @@ export default { | ... | @@ -284,20 +233,17 @@ export default { |
| 284 | .catch((err) => { | 233 | .catch((err) => { |
| 285 | console.log(err); | 234 | console.log(err); |
| 286 | }) | 235 | }) |
| 287 | - .catch(() => []); | 236 | + .catch(() => {}); |
| 288 | }, | 237 | }, |
| 289 | - | ||
| 290 | handleClose(val) { | 238 | handleClose(val) { |
| 291 | this.drawer = val; | 239 | this.drawer = val; |
| 292 | this.userData = {}; | 240 | this.userData = {}; |
| 293 | this.selectUser(); | 241 | this.selectUser(); |
| 294 | }, | 242 | }, |
| 295 | - | ||
| 296 | currentChange(val) { | 243 | currentChange(val) { |
| 297 | this.formData.page = val.page; | 244 | this.formData.page = val.page; |
| 298 | this.selectUser(); | 245 | this.selectUser(); |
| 299 | }, | 246 | }, |
| 300 | - | ||
| 301 | sizeChange(val) { | 247 | sizeChange(val) { |
| 302 | this.formData.size = val; | 248 | this.formData.size = val; |
| 303 | this.selectUser() | 249 | this.selectUser() | ... | ... |
-
Please register or login to post a comment