AssetInventoryStep2.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <template>
  2. <div class="grid-container">
  3. <div class="grid-item-1">
  4. <div>
  5. <a-radio-group v-model:value="value">
  6. <a-radio :style="radioStyle" :value="1">全公司盘点,每个部门生成一个盘点单。</a-radio>
  7. <a-radio :style="radioStyle" :value="2">对一个部门进行盘点。</a-radio>
  8. <a-radio :style="radioStyle" :value="3">抽盘。</a-radio>
  9. <a-radio :style="radioStyle" :value="7">AGV盘点。</a-radio>
  10. </a-radio-group>
  11. </div>
  12. <a-divider />
  13. <a-button type="primary" @click="previousStep">上一步</a-button>
  14. <a-button style="float: right;" type="primary" @click="next">下一步</a-button>
  15. </div>
  16. </div>
  17. </template>
  18. <script>
  19. import { Notify } from 'pc-component-v3';
  20. export default {
  21. components: {
  22. },
  23. props: {
  24. currentStep: {
  25. type: Object,
  26. default(){
  27. return {};
  28. },
  29. },
  30. },
  31. emits: ['next'],
  32. data: function() {
  33. return {
  34. value: undefined,
  35. radioStyle: {
  36. size: 'large',
  37. display: 'flex',
  38. height: '60px',
  39. lineHeight: '60px',
  40. },
  41. isShow: false,
  42. step: undefined,
  43. };
  44. },
  45. methods: {
  46. next: function() {
  47. var _self = this;
  48. if(_self.value == undefined || _self.value == null){
  49. Notify.error('错误','未选择盘点类型',1000);
  50. return;
  51. }
  52. var data = {
  53. currentStep: 1,
  54. showPage: _self.value,
  55. assetInventoryStep3: undefined,
  56. };
  57. _self.$emit('next',data);
  58. },
  59. previousStep: function() {
  60. var _self = this;
  61. _self.$router.push('/eam/assetInventory');
  62. },
  63. mounted: function() {
  64. },
  65. },
  66. };
  67. </script>
  68. <style scoped>
  69. .grid-container {
  70. display: grid;
  71. grid-template-rows: 8% 8% 84%;
  72. grid-template-columns: 100%;
  73. width: 100%;
  74. /*视口被均分为 100 单位的 vh 占据整个窗口,扣掉顶部 topNav 的距离后,计算得到 responseOrganizationSelect 的高度*/
  75. height: calc(100vh - 130px);
  76. margin-top: 10px;
  77. }
  78. .grid-item-1 {
  79. grid-row: 1/2;
  80. }
  81. .grid-item-2 {
  82. grid-row: 2/3;
  83. }
  84. .grid-item-3 {
  85. grid-row: 3/4;
  86. }
  87. .box {
  88. border: 1px #ccc solid;
  89. margin-bottom: 15px;
  90. padding-top: 10px;
  91. border-radius: 5px;
  92. background-color: #ffffff;
  93. }
  94. .label {
  95. float: left;
  96. }
  97. .div-form {
  98. margin-bottom: 10px;
  99. }
  100. </style>