ManuallyConfirmCountingData.vue 2.1 KB

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