InventoryDataProcessing.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <div class="grid-container">
  3. <div class="grid-item-1">
  4. <div v-if="pageInformation.showPage != 1">
  5. <Navbar :title="$t('lang.AssetInventory.inventoryDataProcessing')" :is-go-back="false" />
  6. </div>
  7. <div id="step-container" style="margin-top: 20px;">
  8. <section v-if="pageInformation.showPage != 1">
  9. <a-steps :current="pageInformation.currentStep">
  10. <a-step title="选择处理盘点数据类型" />
  11. <a-step title="处理盘点数据" />
  12. </a-steps>
  13. </section>
  14. </div>
  15. <a-divider v-if="pageInformation.showPage != 1" />
  16. <section>
  17. <inventory-data-processing-step1 v-if="pageInformation.showPage == 0" :current-step="pageInformation" @next="nextStep" />
  18. <inventory-data-processing-step2 v-if="pageInformation.showPage == 1" :current-step="pageInformation" @previous="previousStep" />
  19. <inventory-data-processing-step3 v-if="pageInformation.showPage == 2" :current-step="pageInformation" @next="nextStep" @previous="previousStep" />
  20. <inventory-data-processing-step4 v-if="pageInformation.showPage == 3" :current-step="pageInformation" @next="nextStep" @previous="previousStep" />
  21. </section>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. import InventoryDataProcessingStep1 from './InventoryDataProcessingStep1.vue';
  27. import InventoryDataProcessingStep2 from './InventoryDataProcessingStep2.vue';
  28. import InventoryDataProcessingStep3 from './InventoryDataProcessingStep3.vue';
  29. import InventoryDataProcessingStep4 from './InventoryDataProcessingStep4.vue';
  30. export default {
  31. components: {
  32. 'inventory-data-processing-step1': InventoryDataProcessingStep1,
  33. 'inventory-data-processing-step2': InventoryDataProcessingStep2,
  34. 'inventory-data-processing-step3': InventoryDataProcessingStep3,
  35. 'inventory-data-processing-step4': InventoryDataProcessingStep4,
  36. },
  37. data: function() {
  38. return {
  39. pageInformation:{
  40. currentStep: 0,
  41. showPage: 0,
  42. assetInventoryStep3: undefined,
  43. },
  44. };
  45. },
  46. methods: {
  47. nextStep: function(data) {
  48. var _self = this;
  49. _self.pageInformation = data;
  50. Object.assign(this.pageInformation, data);
  51. },
  52. previousStep: function(data) {
  53. var _self = this;
  54. _self.pageInformation = data;
  55. },
  56. /**
  57. * 修改数据
  58. */
  59. update: function (pageInformation) {
  60. Object.assign(this.pageInformation, pageInformation);
  61. },
  62. mounted: function() {
  63. },
  64. },
  65. };
  66. </script>
  67. <style scoped>
  68. .grid-container {
  69. display: grid;
  70. grid-template-rows: 8% 8% 84%;
  71. grid-template-columns: 100%;
  72. width: 100%;
  73. /*视口被均分为 100 单位的 vh 占据整个窗口,扣掉顶部 topNav 的距离后,计算得到 responseOrganizationSelect 的高度*/
  74. height: calc(100vh - 130px);
  75. }
  76. .grid-item-1 {
  77. grid-row: 1/2;
  78. }
  79. .grid-item-2 {
  80. grid-row: 2/3;
  81. }
  82. .grid-item-3 {
  83. grid-row: 3/4;
  84. }
  85. .box {
  86. border: 1px #ccc solid;
  87. margin-bottom: 15px;
  88. padding-top: 10px;
  89. border-radius: 5px;
  90. background-color: #ffffff;
  91. }
  92. .label {
  93. float: left;
  94. }
  95. .div-form {
  96. margin-bottom: 10px;
  97. }
  98. #step-container{
  99. margin: 0 !important;
  100. }
  101. .ant-divider-horizontal {
  102. margin: 8px 0;
  103. }
  104. </style>