index.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <!-- 停用仓库信息-->
  3. <a-modal class="commonModal warehouse-disable"
  4. title="停用仓库信息"
  5. v-model:visible="visible"
  6. @cancel="cancel"
  7. width="890px">
  8. <template #footer>
  9. <a-button key="submit"
  10. class="cancelBtn"
  11. @click="cancel">取消</a-button>
  12. <a-button key="submit"
  13. type="primary"
  14. :loading="loading"
  15. @click="submit">确认停用</a-button>
  16. </template>
  17. <a-form class="inlineForm"
  18. :form="form"
  19. @submit="handleSearch">
  20. <a-row :gutter="24">
  21. <a-col :span="12">
  22. <a-form-item label="仓库类型">
  23. <span class="white">自有库</span>
  24. </a-form-item>
  25. </a-col>
  26. <a-col :span="12">
  27. <a-form-item label="仓库名称">
  28. <span class="white">深圳市南储公司2号库房</span>
  29. </a-form-item>
  30. </a-col>
  31. </a-row>
  32. <a-row :gutter="24">
  33. <a-col :span="12">
  34. <a-form-item label="仓库简称">
  35. <span class="white">南储深圳2号库</span>
  36. </a-form-item>
  37. </a-col>
  38. <a-col :span="12">
  39. <a-form-item label="联系人">
  40. <span class="white">王平</span>
  41. </a-form-item>
  42. </a-col>
  43. </a-row>
  44. <a-row :gutter="24">
  45. <a-col :span="12">
  46. <a-form-item label="联系电话">
  47. <span class="white">13832676234</span>
  48. </a-form-item>
  49. </a-col>
  50. <a-col :span="12">
  51. <a-form-item label="状态">
  52. <span class="green">正常</span>
  53. </a-form-item>
  54. </a-col>
  55. </a-row>
  56. <a-row :gutter="24">
  57. <a-col :span="12">
  58. <a-form-item label="所在地区">
  59. <span class="white">广东省深圳市南山区</span>
  60. </a-form-item>
  61. </a-col>
  62. <a-col :span="12">
  63. <a-form-item label="详细地址">
  64. <span class="white">深南大道1290号仓库</span>
  65. </a-form-item>
  66. </a-col>
  67. </a-row>
  68. </a-form>
  69. </a-modal>
  70. </template>
  71. <script lang="ts">
  72. import { defineComponent, ref } from 'vue';
  73. import { closeModal } from '@/common/setup/modal/index';
  74. export default defineComponent({
  75. name: 'custom-disable',
  76. components: {},
  77. setup() {
  78. const { visible, cancel } = closeModal('custom_info_btn_disable');
  79. const loading = ref<boolean>(false);
  80. function submit() {
  81. loading.value = true;
  82. setTimeout(() => {
  83. loading.value = false;
  84. cancel();
  85. }, 2000);
  86. }
  87. return {
  88. visible,
  89. cancel,
  90. submit,
  91. loading,
  92. };
  93. },
  94. });
  95. </script>
  96. <style lang="less">
  97. .warehouse-disable {
  98. }
  99. </style
  100. >;