Showing
3 changed files
with
179 additions
and
36 deletions
| 1 | // base color | 1 | // base color |
| 2 | $blue: #324157; | 2 | $blue: #324157; |
| 3 | -$light-blue: #3A71A8; | 3 | +$light-blue: #3a71a8; |
| 4 | -$red: #C03639; | 4 | +$red: #c03639; |
| 5 | -$pink: #E65D6E; | 5 | +$pink: #e65d6e; |
| 6 | -$green: #30B08F; | 6 | +$green: #30b08f; |
| 7 | -$tiffany: #4AB7BD; | 7 | +$tiffany: #4ab7bd; |
| 8 | -$yellow: #FEC171; | 8 | +$yellow: #fec171; |
| 9 | -$panGreen: #30B08F; | 9 | +$panGreen: #30b08f; |
| 10 | 10 | ||
| 11 | // sidebar | 11 | // sidebar |
| 12 | $menuText: #bfcbd9; | 12 | $menuText: #bfcbd9; |
| 13 | -$menuActiveText: #4D148C; | 13 | +$menuActiveText: #4d148c; |
| 14 | -$subMenuActiveText: #4D148C; // https://github.com/ElemeFE/element/issues/12951 | 14 | +$subMenuActiveText: #4d148c; // https://github.com/ElemeFE/element/issues/12951 |
| 15 | 15 | ||
| 16 | $menuBg: #304156; | 16 | $menuBg: #304156; |
| 17 | $menuHover: #263445; | 17 | $menuHover: #263445; |
| ... | @@ -24,16 +24,16 @@ $sidebarLightTitle: #001529; | ... | @@ -24,16 +24,16 @@ $sidebarLightTitle: #001529; |
| 24 | $subMenuBg: #1f2d3d; | 24 | $subMenuBg: #1f2d3d; |
| 25 | $subMenuHover: #001528; | 25 | $subMenuHover: #001528; |
| 26 | 26 | ||
| 27 | -$sideBarWidth: 220px; | 27 | +$sideBarWidth: 210px; |
| 28 | -$fedexColor: #4D148C; | 28 | +$fedexColor: #4d148c; |
| 29 | -$fedexBorder: #E3E3E3; | 29 | +$fedexBorder: #e3e3e3; |
| 30 | -$fedexButton: #007AB7; | 30 | +$fedexButton: #007ab7; |
| 31 | $fedexError: #de002e; | 31 | $fedexError: #de002e; |
| 32 | -$fedexBottonColor: #FF6200; | 32 | +$fedexBottonColor: #ff6200; |
| 33 | -$formItemBackgroundColor: #F2F2F2; | 33 | +$formItemBackgroundColor: #f2f2f2; |
| 34 | -$fedexTablebackgroundColor: #FAFAFA; | 34 | +$fedexTablebackgroundColor: #fafafa; |
| 35 | $fedexTableBorderColor: #e3e3e3; | 35 | $fedexTableBorderColor: #e3e3e3; |
| 36 | -$formDisabledColor: #8E8E8E; | 36 | +$formDisabledColor: #8e8e8e; |
| 37 | 37 | ||
| 38 | // the :export directive is the magic sauce for webpack | 38 | // the :export directive is the magic sauce for webpack |
| 39 | // https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass | 39 | // https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass |
| ... | @@ -59,5 +59,4 @@ $formDisabledColor: #8E8E8E; | ... | @@ -59,5 +59,4 @@ $formDisabledColor: #8E8E8E; |
| 59 | formDisabledColor: $formDisabledColor; | 59 | formDisabledColor: $formDisabledColor; |
| 60 | fedexTablebackgroundColor: $fedexTablebackgroundColor; | 60 | fedexTablebackgroundColor: $fedexTablebackgroundColor; |
| 61 | fedexTableBorderColor: $fedexTableBorderColor; | 61 | fedexTableBorderColor: $fedexTableBorderColor; |
| 62 | - | ||
| 63 | } | 62 | } | ... | ... |
| ... | @@ -400,6 +400,11 @@ | ... | @@ -400,6 +400,11 @@ |
| 400 | :max-height="tableMaxheight" | 400 | :max-height="tableMaxheight" |
| 401 | :min-height="300" | 401 | :min-height="300" |
| 402 | ref="tableRef" | 402 | ref="tableRef" |
| 403 | + show-overflow | ||
| 404 | + show-header-overflow | ||
| 405 | + show-footer-overflow | ||
| 406 | + :virtual-y-config="{ enabled: true, gt: 0 }" | ||
| 407 | + :auto-resize="false" | ||
| 403 | :data="tableData" | 408 | :data="tableData" |
| 404 | :column-config="{ resizable: true }" | 409 | :column-config="{ resizable: true }" |
| 405 | :row-config="{ isCurrent: true, isHover: true }" | 410 | :row-config="{ isCurrent: true, isHover: true }" |
| ... | @@ -409,7 +414,12 @@ | ... | @@ -409,7 +414,12 @@ |
| 409 | @checkbox-all="tableSelectAll" | 414 | @checkbox-all="tableSelectAll" |
| 410 | > | 415 | > |
| 411 | <vxe-column type="checkbox" width="50"></vxe-column> | 416 | <vxe-column type="checkbox" width="50"></vxe-column> |
| 412 | - <vxe-column field="billNo" title="提运单号" :show-overflow="true"> | 417 | + <vxe-column |
| 418 | + field="billNo" | ||
| 419 | + title="提运单号" | ||
| 420 | + :show-overflow="true" | ||
| 421 | + width="110" | ||
| 422 | + > | ||
| 413 | <template #default="{ row }"> | 423 | <template #default="{ row }"> |
| 414 | <el-tooltip | 424 | <el-tooltip |
| 415 | class="item" | 425 | class="item" |
| ... | @@ -424,8 +434,14 @@ | ... | @@ -424,8 +434,14 @@ |
| 424 | <vxe-column | 434 | <vxe-column |
| 425 | field="logisticsWaybillNumber" | 435 | field="logisticsWaybillNumber" |
| 426 | title="物流运单编号" | 436 | title="物流运单编号" |
| 437 | + width="110" | ||
| 427 | ></vxe-column> | 438 | ></vxe-column> |
| 428 | - <vxe-column field="orderno" title="订单编号" :show-overflow="true"> | 439 | + <vxe-column |
| 440 | + field="orderno" | ||
| 441 | + title="订单编号" | ||
| 442 | + :show-overflow="true" | ||
| 443 | + width="100" | ||
| 444 | + > | ||
| 429 | <template #default="{ row }"> | 445 | <template #default="{ row }"> |
| 430 | <el-tooltip | 446 | <el-tooltip |
| 431 | class="item" | 447 | class="item" |
| ... | @@ -437,7 +453,7 @@ | ... | @@ -437,7 +453,7 @@ |
| 437 | </el-tooltip> | 453 | </el-tooltip> |
| 438 | </template> | 454 | </template> |
| 439 | </vxe-column> | 455 | </vxe-column> |
| 440 | - <vxe-column field="flightNumber" title="航班号"></vxe-column> | 456 | + <vxe-column field="flightNumber" title="航班号" width="80"></vxe-column> |
| 441 | <vxe-column | 457 | <vxe-column |
| 442 | field="regulatoryVenueCode" | 458 | field="regulatoryVenueCode" |
| 443 | title="监管场所代码" | 459 | title="监管场所代码" |
| ... | @@ -468,8 +484,16 @@ | ... | @@ -468,8 +484,16 @@ |
| 468 | field="orderReceiptStatus" | 484 | field="orderReceiptStatus" |
| 469 | title="订单回执" | 485 | title="订单回执" |
| 470 | :filters="receiptStatusFilters" | 486 | :filters="receiptStatusFilters" |
| 487 | + :show-overflow="true" | ||
| 488 | + width="130" | ||
| 471 | > | 489 | > |
| 472 | <template #default="{ row }"> | 490 | <template #default="{ row }"> |
| 491 | + <template | ||
| 492 | + v-if=" | ||
| 493 | + row[`orderReceiptStatus${row.declareId}`] && | ||
| 494 | + row.orderReceiptStatus | ||
| 495 | + " | ||
| 496 | + > | ||
| 473 | <el-popover | 497 | <el-popover |
| 474 | placement="left" | 498 | placement="left" |
| 475 | popper-class="portLogPopper" | 499 | popper-class="portLogPopper" |
| ... | @@ -489,7 +513,9 @@ | ... | @@ -489,7 +513,9 @@ |
| 489 | ></i> | 513 | ></i> |
| 490 | </div> | 514 | </div> |
| 491 | <div style="margin-bottom: 5px"> | 515 | <div style="margin-bottom: 5px"> |
| 492 | - <span style="font-weight: 700; color: #515a6e">订单编号:</span> | 516 | + <span style="font-weight: 700; color: #515a6e" |
| 517 | + >订单编号:</span | ||
| 518 | + > | ||
| 493 | {{ row.orderno }} | 519 | {{ row.orderno }} |
| 494 | </div> | 520 | </div> |
| 495 | <el-table | 521 | <el-table |
| ... | @@ -515,7 +541,7 @@ | ... | @@ -515,7 +541,7 @@ |
| 515 | <el-button | 541 | <el-button |
| 516 | type="text" | 542 | type="text" |
| 517 | slot="reference" | 543 | slot="reference" |
| 518 | - @click=" | 544 | + @click.stop=" |
| 519 | popoverChange({ data: row, status: 'orderReceiptStatus' }) | 545 | popoverChange({ data: row, status: 'orderReceiptStatus' }) |
| 520 | " | 546 | " |
| 521 | > | 547 | > |
| ... | @@ -523,13 +549,29 @@ | ... | @@ -523,13 +549,29 @@ |
| 523 | </el-button> | 549 | </el-button> |
| 524 | </el-popover> | 550 | </el-popover> |
| 525 | </template> | 551 | </template> |
| 552 | + <template v-else> | ||
| 553 | + <el-button | ||
| 554 | + type="text" | ||
| 555 | + @click.stop=" | ||
| 556 | + popoverChange({ data: row, status: 'orderReceiptStatus' }) | ||
| 557 | + " | ||
| 558 | + > | ||
| 559 | + {{ row.orderReceiptStatus }} | ||
| 560 | + </el-button> | ||
| 561 | + </template> | ||
| 562 | + </template> | ||
| 526 | </vxe-column> | 563 | </vxe-column> |
| 527 | <vxe-column | 564 | <vxe-column |
| 528 | field="wayBillReceipt" | 565 | field="wayBillReceipt" |
| 529 | title="运单回执" | 566 | title="运单回执" |
| 530 | :filters="receiptStatusFilters" | 567 | :filters="receiptStatusFilters" |
| 568 | + :show-overflow="true" | ||
| 569 | + width="130" | ||
| 531 | > | 570 | > |
| 532 | <template #default="{ row }"> | 571 | <template #default="{ row }"> |
| 572 | + <template | ||
| 573 | + v-if="row[`wayBillReceipt${row.declareId}`] && row.wayBillReceipt" | ||
| 574 | + > | ||
| 533 | <el-popover | 575 | <el-popover |
| 534 | placement="left" | 576 | placement="left" |
| 535 | popper-class="portLogPopper" | 577 | popper-class="portLogPopper" |
| ... | @@ -549,7 +591,9 @@ | ... | @@ -549,7 +591,9 @@ |
| 549 | ></i> | 591 | ></i> |
| 550 | </div> | 592 | </div> |
| 551 | <div style="margin-bottom: 5px"> | 593 | <div style="margin-bottom: 5px"> |
| 552 | - <span style="font-weight: 700; color: #515a6e">订单编号:</span> | 594 | + <span style="font-weight: 700; color: #515a6e" |
| 595 | + >订单编号:</span | ||
| 596 | + > | ||
| 553 | {{ row.orderno }} | 597 | {{ row.orderno }} |
| 554 | </div> | 598 | </div> |
| 555 | <el-table | 599 | <el-table |
| ... | @@ -575,25 +619,47 @@ | ... | @@ -575,25 +619,47 @@ |
| 575 | <el-button | 619 | <el-button |
| 576 | type="text" | 620 | type="text" |
| 577 | slot="reference" | 621 | slot="reference" |
| 578 | - @click="popoverChange({ data: row, status: 'wayBillReceipt' })" | 622 | + @click.stop=" |
| 623 | + popoverChange({ data: row, status: 'wayBillReceipt' }) | ||
| 624 | + " | ||
| 579 | > | 625 | > |
| 580 | {{ row.wayBillReceipt }} | 626 | {{ row.wayBillReceipt }} |
| 581 | </el-button> | 627 | </el-button> |
| 582 | </el-popover> | 628 | </el-popover> |
| 583 | </template> | 629 | </template> |
| 630 | + <template v-else> | ||
| 631 | + <el-button | ||
| 632 | + type="text" | ||
| 633 | + @click.stop=" | ||
| 634 | + popoverChange({ data: row, status: 'wayBillReceipt' }) | ||
| 635 | + " | ||
| 636 | + > | ||
| 637 | + {{ row.wayBillReceipt }} | ||
| 638 | + </el-button> | ||
| 639 | + </template> | ||
| 640 | + </template> | ||
| 584 | </vxe-column> | 641 | </vxe-column> |
| 585 | <vxe-column | 642 | <vxe-column |
| 586 | field="listReceiptStatus" | 643 | field="listReceiptStatus" |
| 587 | title="清单回执" | 644 | title="清单回执" |
| 588 | :filters="listStatusFilters" | 645 | :filters="listStatusFilters" |
| 646 | + :show-overflow="true" | ||
| 647 | + width="130" | ||
| 589 | > | 648 | > |
| 590 | <template #default="{ row }"> | 649 | <template #default="{ row }"> |
| 650 | + <template | ||
| 651 | + v-if=" | ||
| 652 | + row[`listReceiptStatus${row.declareId}`] && | ||
| 653 | + row.listReceiptStatus | ||
| 654 | + " | ||
| 655 | + > | ||
| 591 | <el-popover | 656 | <el-popover |
| 592 | placement="left" | 657 | placement="left" |
| 593 | popper-class="portLogPopper" | 658 | popper-class="portLogPopper" |
| 594 | :visible-arrow="false" | 659 | :visible-arrow="false" |
| 595 | title="" | 660 | title="" |
| 596 | width="750" | 661 | width="750" |
| 662 | + :offset="200" | ||
| 597 | trigger="manual" | 663 | trigger="manual" |
| 598 | v-model="row[`listReceiptStatus${row.declareId}`]" | 664 | v-model="row[`listReceiptStatus${row.declareId}`]" |
| 599 | > | 665 | > |
| ... | @@ -607,7 +673,9 @@ | ... | @@ -607,7 +673,9 @@ |
| 607 | ></i> | 673 | ></i> |
| 608 | </div> | 674 | </div> |
| 609 | <div style="margin-bottom: 5px"> | 675 | <div style="margin-bottom: 5px"> |
| 610 | - <span style="font-weight: 700; color: #515a6e">订单编号:</span> | 676 | + <span style="font-weight: 700; color: #515a6e" |
| 677 | + >订单编号:</span | ||
| 678 | + > | ||
| 611 | {{ row.orderno }} | 679 | {{ row.orderno }} |
| 612 | </div> | 680 | </div> |
| 613 | <el-table | 681 | <el-table |
| ... | @@ -633,7 +701,7 @@ | ... | @@ -633,7 +701,7 @@ |
| 633 | <el-button | 701 | <el-button |
| 634 | type="text" | 702 | type="text" |
| 635 | slot="reference" | 703 | slot="reference" |
| 636 | - @click=" | 704 | + @click.stop=" |
| 637 | popoverChange({ data: row, status: 'listReceiptStatus' }) | 705 | popoverChange({ data: row, status: 'listReceiptStatus' }) |
| 638 | " | 706 | " |
| 639 | > | 707 | > |
| ... | @@ -641,13 +709,33 @@ | ... | @@ -641,13 +709,33 @@ |
| 641 | </el-button> | 709 | </el-button> |
| 642 | </el-popover> | 710 | </el-popover> |
| 643 | </template> | 711 | </template> |
| 712 | + | ||
| 713 | + <template v-else> | ||
| 714 | + <el-button | ||
| 715 | + type="text" | ||
| 716 | + @click.stop=" | ||
| 717 | + popoverChange({ data: row, status: 'listReceiptStatus' }) | ||
| 718 | + " | ||
| 719 | + > | ||
| 720 | + {{ row.listReceiptStatus }} | ||
| 721 | + </el-button> | ||
| 722 | + </template> | ||
| 723 | + </template> | ||
| 644 | </vxe-column> | 724 | </vxe-column> |
| 645 | <vxe-column | 725 | <vxe-column |
| 646 | field="totalSplitOrderStatus" | 726 | field="totalSplitOrderStatus" |
| 647 | title="清单总分单回执" | 727 | title="清单总分单回执" |
| 648 | :filters="totalScoreStatusFilters" | 728 | :filters="totalScoreStatusFilters" |
| 729 | + :show-overflow="true" | ||
| 730 | + width="145" | ||
| 649 | > | 731 | > |
| 650 | <template #default="{ row }"> | 732 | <template #default="{ row }"> |
| 733 | + <template | ||
| 734 | + v-if=" | ||
| 735 | + row[`totalSplitOrderStatus${row.declareId}`] && | ||
| 736 | + row.totalSplitOrderStatus | ||
| 737 | + " | ||
| 738 | + > | ||
| 651 | <el-popover | 739 | <el-popover |
| 652 | placement="left" | 740 | placement="left" |
| 653 | popper-class="portLogPopper" | 741 | popper-class="portLogPopper" |
| ... | @@ -660,14 +748,20 @@ | ... | @@ -660,14 +748,20 @@ |
| 660 | <div style="text-align: right"> | 748 | <div style="text-align: right"> |
| 661 | <i | 749 | <i |
| 662 | @click.stop=" | 750 | @click.stop=" |
| 663 | - popoverCloseNew(row, row.declareId, 'totalSplitOrderStatus') | 751 | + popoverCloseNew( |
| 752 | + row, | ||
| 753 | + row.declareId, | ||
| 754 | + 'totalSplitOrderStatus' | ||
| 755 | + ) | ||
| 664 | " | 756 | " |
| 665 | class="el-icon-close" | 757 | class="el-icon-close" |
| 666 | style="cursor: pointer; font-size: 20px; font-weight: 700" | 758 | style="cursor: pointer; font-size: 20px; font-weight: 700" |
| 667 | ></i> | 759 | ></i> |
| 668 | </div> | 760 | </div> |
| 669 | <div style="margin-bottom: 5px"> | 761 | <div style="margin-bottom: 5px"> |
| 670 | - <span style="font-weight: 700; color: #515a6e">订单编号:</span> | 762 | + <span style="font-weight: 700; color: #515a6e" |
| 763 | + >订单编号:</span | ||
| 764 | + > | ||
| 671 | {{ row.orderno }} | 765 | {{ row.orderno }} |
| 672 | </div> | 766 | </div> |
| 673 | <el-table | 767 | <el-table |
| ... | @@ -693,14 +787,28 @@ | ... | @@ -693,14 +787,28 @@ |
| 693 | <el-button | 787 | <el-button |
| 694 | type="text" | 788 | type="text" |
| 695 | slot="reference" | 789 | slot="reference" |
| 696 | - @click=" | 790 | + @click.stop=" |
| 697 | - popoverChange({ data: row, status: 'totalSplitOrderStatus' }) | 791 | + popoverChange({ |
| 792 | + data: row, | ||
| 793 | + status: 'totalSplitOrderStatus', | ||
| 794 | + }) | ||
| 698 | " | 795 | " |
| 699 | > | 796 | > |
| 700 | {{ row.totalSplitOrderStatus }} | 797 | {{ row.totalSplitOrderStatus }} |
| 701 | </el-button> | 798 | </el-button> |
| 702 | </el-popover> | 799 | </el-popover> |
| 703 | </template> | 800 | </template> |
| 801 | + <template v-else> | ||
| 802 | + <el-button | ||
| 803 | + type="text" | ||
| 804 | + @click.stop=" | ||
| 805 | + popoverChange({ data: row, status: 'totalSplitOrderStatus' }) | ||
| 806 | + " | ||
| 807 | + > | ||
| 808 | + {{ row.totalSplitOrderStatus }} | ||
| 809 | + </el-button> | ||
| 810 | + </template> | ||
| 811 | + </template> | ||
| 704 | </vxe-column> | 812 | </vxe-column> |
| 705 | <vxe-column title="操作" fixed="right" width="110"> | 813 | <vxe-column title="操作" fixed="right" width="110"> |
| 706 | <template #default="{ row }"> | 814 | <template #default="{ row }"> |
| ... | @@ -1347,6 +1455,7 @@ export default { | ... | @@ -1347,6 +1455,7 @@ export default { |
| 1347 | row[`${type}${declareId}`] = false; | 1455 | row[`${type}${declareId}`] = false; |
| 1348 | this.$forceUpdate(); | 1456 | this.$forceUpdate(); |
| 1349 | }, | 1457 | }, |
| 1458 | + | ||
| 1350 | popoverChange(val) { | 1459 | popoverChange(val) { |
| 1351 | this.popoverTableData = []; | 1460 | this.popoverTableData = []; |
| 1352 | if (this.visiblePopover.flag) { | 1461 | if (this.visiblePopover.flag) { |
| ... | @@ -1696,5 +1805,8 @@ export default { | ... | @@ -1696,5 +1805,8 @@ export default { |
| 1696 | .vxe-table--render-default.border--outer .vxe-cell--col-resizable:before { | 1805 | .vxe-table--render-default.border--outer .vxe-cell--col-resizable:before { |
| 1697 | background-color: #ffffff; | 1806 | background-color: #ffffff; |
| 1698 | } | 1807 | } |
| 1808 | + .portLogPopper { | ||
| 1809 | + right: 135px !important; | ||
| 1810 | + } | ||
| 1699 | } | 1811 | } |
| 1700 | </style> | 1812 | </style> | ... | ... |
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | <el-dialog | 2 | <el-dialog |
| 3 | class="entryDialog classCUploadDialog" | 3 | class="entryDialog classCUploadDialog" |
| 4 | :title="pageData.ebpName" | 4 | :title="pageData.ebpName" |
| 5 | - :visible.sync="outerVisible" | 5 | + :visible="outerVisible" |
| 6 | :show-close="false" | 6 | :show-close="false" |
| 7 | width="900px" | 7 | width="900px" |
| 8 | :close-on-click-modal="false" | 8 | :close-on-click-modal="false" |
| ... | @@ -21,9 +21,9 @@ | ... | @@ -21,9 +21,9 @@ |
| 21 | </div> | 21 | </div> |
| 22 | <Table | 22 | <Table |
| 23 | class="fedexDetialTable fedexSreachTable" | 23 | class="fedexDetialTable fedexSreachTable" |
| 24 | - ref="entryTable" | ||
| 25 | :data="pageData.value" | 24 | :data="pageData.value" |
| 26 | :headerData="headerData" | 25 | :headerData="headerData" |
| 26 | + :maxHeight="tableMaxheight" | ||
| 27 | :border="true" | 27 | :border="true" |
| 28 | :pagination="true" | 28 | :pagination="true" |
| 29 | :order="false" | 29 | :order="false" |
| ... | @@ -36,12 +36,13 @@ | ... | @@ -36,12 +36,13 @@ |
| 36 | @tableSelect="tableSelect" | 36 | @tableSelect="tableSelect" |
| 37 | @tableSelectAll="tableSelectAll" | 37 | @tableSelectAll="tableSelectAll" |
| 38 | :selected="tableSelected" | 38 | :selected="tableSelected" |
| 39 | + :loading="loadings.searchLoading" | ||
| 39 | > | 40 | > |
| 40 | </Table> | 41 | </Table> |
| 41 | <div class="dialogOption entrySave"> | 42 | <div class="dialogOption entrySave"> |
| 42 | <el-button | 43 | <el-button |
| 43 | class="entrySaveButton" | 44 | class="entrySaveButton" |
| 44 | - :disabled="loadings.submitLoading" | 45 | + :loading="loadings.submitLoading" |
| 45 | @click="submit" | 46 | @click="submit" |
| 46 | > | 47 | > |
| 47 | 提 交 | 48 | 提 交 |
| ... | @@ -80,6 +81,7 @@ export default { | ... | @@ -80,6 +81,7 @@ export default { |
| 80 | loadings: { | 81 | loadings: { |
| 81 | dialogLoading: false, | 82 | dialogLoading: false, |
| 82 | submitLoading: false, | 83 | submitLoading: false, |
| 84 | + searchLoading: false, | ||
| 83 | }, | 85 | }, |
| 84 | title: "", | 86 | title: "", |
| 85 | tableSelected: [], | 87 | tableSelected: [], |
| ... | @@ -126,8 +128,12 @@ export default { | ... | @@ -126,8 +128,12 @@ export default { |
| 126 | align: "left", | 128 | align: "left", |
| 127 | }, | 129 | }, |
| 128 | ], | 130 | ], |
| 131 | + tableMaxheight: null, | ||
| 129 | }; | 132 | }; |
| 130 | }, | 133 | }, |
| 134 | + mounted() { | ||
| 135 | + this.tableMaxheight = window.innerHeight - 400; | ||
| 136 | + }, | ||
| 131 | methods: { | 137 | methods: { |
| 132 | tableSelect(val) { | 138 | tableSelect(val) { |
| 133 | this.tableSelected = val.selection; | 139 | this.tableSelected = val.selection; |
| ... | @@ -136,10 +142,12 @@ export default { | ... | @@ -136,10 +142,12 @@ export default { |
| 136 | this.tableSelected = val; | 142 | this.tableSelected = val; |
| 137 | }, | 143 | }, |
| 138 | fetchPreview() { | 144 | fetchPreview() { |
| 145 | + this.loadings.searchLoading = true; | ||
| 139 | preview({ | 146 | preview({ |
| 140 | ...this.selected, | 147 | ...this.selected, |
| 141 | ...this.page, | 148 | ...this.page, |
| 142 | - }).then((res) => { | 149 | + }) |
| 150 | + .then((res) => { | ||
| 143 | if (res.code === "200") { | 151 | if (res.code === "200") { |
| 144 | console.log(res.data); | 152 | console.log(res.data); |
| 145 | this.pageData = { | 153 | this.pageData = { |
| ... | @@ -149,6 +157,12 @@ export default { | ... | @@ -149,6 +157,12 @@ export default { |
| 149 | console.log(this.pageData); | 157 | console.log(this.pageData); |
| 150 | this.page.total = res.data.pageData.totalItems; | 158 | this.page.total = res.data.pageData.totalItems; |
| 151 | } | 159 | } |
| 160 | + }) | ||
| 161 | + .catch((err) => { | ||
| 162 | + console.log(err); | ||
| 163 | + }) | ||
| 164 | + .finally(() => { | ||
| 165 | + this.loadings.searchLoading = false; | ||
| 152 | }); | 166 | }); |
| 153 | }, | 167 | }, |
| 154 | search(val) { | 168 | search(val) { |
| ... | @@ -171,17 +185,28 @@ export default { | ... | @@ -171,17 +185,28 @@ export default { |
| 171 | this.msgError("请选择数据"); | 185 | this.msgError("请选择数据"); |
| 172 | return; | 186 | return; |
| 173 | } | 187 | } |
| 188 | + this.loadings.submitLoading = true; | ||
| 174 | 189 | ||
| 175 | declareSummaryApplication({ | 190 | declareSummaryApplication({ |
| 176 | ...this.selected, | 191 | ...this.selected, |
| 177 | logisticsNos: this.tableSelected.map((item) => item.logisticsNo), | 192 | logisticsNos: this.tableSelected.map((item) => item.logisticsNo), |
| 178 | - }).then((response) => { | 193 | + }) |
| 194 | + .then((response) => { | ||
| 179 | if (response.data) { | 195 | if (response.data) { |
| 180 | this.msgSuccess("汇总申报成功"); | 196 | this.msgSuccess("汇总申报成功"); |
| 197 | + this.close(true); | ||
| 198 | + this.$nextTick(() => { | ||
| 181 | this.$router.push("summaryDataSearch"); | 199 | this.$router.push("summaryDataSearch"); |
| 200 | + }); | ||
| 182 | } else { | 201 | } else { |
| 183 | this.msgError(response.message); | 202 | this.msgError(response.message); |
| 184 | } | 203 | } |
| 204 | + }) | ||
| 205 | + .catch((err) => { | ||
| 206 | + console.log(err); | ||
| 207 | + }) | ||
| 208 | + .finally(() => { | ||
| 209 | + this.loadings.submitLoading = false; | ||
| 185 | }); | 210 | }); |
| 186 | }, | 211 | }, |
| 187 | //新增 | 212 | //新增 |
| ... | @@ -216,4 +241,11 @@ export default { | ... | @@ -216,4 +241,11 @@ export default { |
| 216 | 241 | ||
| 217 | <style lang="scss" scoped> | 242 | <style lang="scss" scoped> |
| 218 | @import "@/assets/styles/variables.scss"; | 243 | @import "@/assets/styles/variables.scss"; |
| 244 | +.entryDialog { | ||
| 245 | + ::v-deep { | ||
| 246 | + .el-dialog { | ||
| 247 | + margin-top: 5vh !important; | ||
| 248 | + } | ||
| 249 | + } | ||
| 250 | +} | ||
| 219 | </style> | 251 | </style> | ... | ... |
-
Please register or login to post a comment