SysReservationConfigBatchAddForm.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <ant-modal
  3. modalWidth="576"
  4. modalHeight="500"
  5. :visible="open"
  6. :modal-title="formTitle"
  7. :adjust-size="true"
  8. @cancel="cancel"
  9. >
  10. <a-form-model ref="batchForm" :model="batchForm" :rules="batchAddRules" slot="content" layout="vertical">
  11. <a-row :gutter="32">
  12. <a-col :span="24">
  13. <a-form-model-item label="预约日期" prop="dateRange">
  14. <a-range-picker style="width: 100%" v-model="batchForm.dateRange" valueFormat="YYYY-MM-DD" format="YYYY-MM-DD" allow-clear/>
  15. </a-form-model-item>
  16. </a-col>
  17. <a-col :span="12">
  18. <a-form-model-item label="班次时长" prop="duration">
  19. <a-input-number placeholder="请输入班次时长(分钟)" v-model="batchForm.duration" :min="0" style="width: 100%"/>
  20. </a-form-model-item>
  21. </a-col>
  22. <a-col :span="12">
  23. <a-form-model-item label="可预约人数" prop="enableNum">
  24. <a-input-number placeholder="请输入可预约人数" v-model="batchForm.enableNum" :min="0" style="width: 100%"/>
  25. </a-form-model-item>
  26. </a-col>
  27. </a-row>
  28. <a-row :gutter="32">
  29. <a-col :span="24">
  30. <a-form-model-item label="可预约码头" prop="enableWharf">
  31. <a-select
  32. mode="multiple"
  33. showSearch
  34. v-model="batchForm.enableWharf"
  35. placeholder="请选择可预约码头"
  36. style="width: 100%;">
  37. <a-select-option v-for="d in wharfList" :key="d.id" :value="d.id">{{ d.wharfNanme }}</a-select-option>
  38. </a-select></a-form-model-item>
  39. </a-col>
  40. </a-row>
  41. </a-form-model>
  42. <template slot="footer">
  43. <a-button :disabled="disabled" @click="cancel">
  44. 取消
  45. </a-button>
  46. <a-button type="primary" :disabled="disabled" @click="batchSave(true, 0)">
  47. 保存
  48. </a-button>
  49. <a-button type="primary" :disabled="disabled" @click="batchSave(true, 1)">
  50. 保存并发布
  51. </a-button>
  52. </template>
  53. </ant-modal>
  54. </template>
  55. <script>
  56. import SysReservationConfigAddForm from './SysReservationConfigForm'
  57. export default {
  58. ...SysReservationConfigAddForm
  59. }
  60. </script>