InventoryDataProcessing.vue 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <div>
  3. <div>
  4. <Navbar v-if="pageInformation.showPage === 0" :title="$t('lang.AssetInventory.inventoryDataProcessing')" :is-go-back="false" />
  5. <div v-if="pageInformation.showPage === 0 " id="step-container" style="margin-top: 20px;">
  6. <section>
  7. <a-steps :current="pageInformation.currentStep">
  8. <a-step :title="$t('lang.ConsolidatedAssetInventory.selectInventoryDataProcessingType')" />
  9. <a-step :title="$t('lang.ConsolidatedAssetInventory.processInventoryData')" />
  10. </a-steps>
  11. </section>
  12. <a-divider style="margin:20px 0 6px 0 !important;" />
  13. </div>
  14. <section>
  15. <inventory-data-processing-step1 v-if="pageInformation.showPage == 0" :current-step="pageInformation" @next="nextStep" />
  16. <inventory-data-processing-step2 v-if="pageInformation.showPage == 1" :current-step="pageInformation" @next="nextStep" @previous="previousStep" />
  17. <inventory-data-processing-step3 v-if="pageInformation.showPage == 2" :current-step="pageInformation" @next="nextStep" @previous="previousStep" />
  18. <inventory-data-processing-step4 v-if="pageInformation.showPage == 3" :current-step="pageInformation" @next="nextStep" @previous="previousStep" />
  19. <inventory-data-processing-step7 v-if="pageInformation.showPage == 7" :current-step="pageInformation" @next="nextStep" @previous="previousStep" />
  20. <inventory-data-processing-step8 v-if="pageInformation.showPage == 8" :current-step="pageInformation" @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. import InventoryDataProcessingStep7 from './InventoryDataProcessingStep7.vue';
  31. import InventoryDataProcessingStep8 from './InventoryDataProcessingStep8.vue';
  32. export default {
  33. components: {
  34. 'inventory-data-processing-step1': InventoryDataProcessingStep1,
  35. 'inventory-data-processing-step2': InventoryDataProcessingStep2,
  36. 'inventory-data-processing-step3': InventoryDataProcessingStep3,
  37. 'inventory-data-processing-step4': InventoryDataProcessingStep4,
  38. 'inventory-data-processing-step7': InventoryDataProcessingStep7,
  39. 'inventory-data-processing-step8': InventoryDataProcessingStep8,
  40. },
  41. data: function() {
  42. return {
  43. pageInformation:{
  44. currentStep: 0,
  45. showPage: 0,
  46. assetInventoryStep3: undefined,
  47. },
  48. };
  49. },
  50. methods: {
  51. nextStep: function(data) {
  52. var _self = this;
  53. _self.pageInformation = data;
  54. Object.assign(this.pageInformation, data);
  55. },
  56. previousStep: function(data) {
  57. var _self = this;
  58. _self.pageInformation = data;
  59. },
  60. /**
  61. * 修改数据
  62. */
  63. update: function (pageInformation) {
  64. Object.assign(this.pageInformation, pageInformation);
  65. },
  66. mounted: function() {
  67. },
  68. },
  69. };
  70. </script>
  71. <style scoped>
  72. #step-container{
  73. margin: 0 !important;
  74. }
  75. .ant-divider-horizontal {
  76. margin: 8px 0;
  77. }
  78. </style>