index.vue 3.2 KB

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