_storage.blade.php 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <div class="row">
  2. <label for="name" class="col-2 text-info">名称</label>
  3. <input id="name" type="text" :class="errors.name ? 'is-invalid' : ''" class="col-6 form-control" v-model="model.storage.name">
  4. <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.name">
  5. <strong>@{{ errors.name[0] }}</strong>
  6. </span>
  7. </div>
  8. <div class="row mt-3">
  9. <label for="counting_type" class="col-2 text-info">计费类型</label>
  10. <select id="counting_type" class="col-3 form-control"
  11. :class="errors.counting_type ? 'is-invalid' : ''" v-model="model.storage.counting_type">
  12. <option v-for="type in pool.counting_type" :value="type">@{{ type }}</option>
  13. </select>
  14. <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.counting_type">
  15. <strong>@{{ errors.counting_type[0] }}</strong>
  16. </span>
  17. </div>
  18. <div class="row mt-3">
  19. <label for="using_type" class="col-2 text-info">用仓类型</label>
  20. <select id="using_type" class="col-3 form-control"
  21. :class="errors.using_type ? 'is-invalid' : ''" v-model="model.storage.using_type">
  22. <option v-for="type in pool.using_type" :value="type">@{{ type }}</option>
  23. </select>
  24. <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.using_type">
  25. <strong>@{{ errors.using_type[0] }}</strong>
  26. </span>
  27. </div>
  28. <div class="row mt-3">
  29. <label for="minimum_area" class="col-2">最低起租面积</label>
  30. <input id="minimum_area" type="number" min="0" step="0.001" class="col-6 form-control"
  31. :class="errors.minimum_area ? 'is-invalid' : ''" v-model="model.storage.minimum_area">
  32. <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.minimum_area">
  33. <strong>@{{ errors.minimum_area[0] }}</strong>
  34. </span>
  35. </div>
  36. <div class="row mt-3">
  37. <label for="price" class="col-2 text-info">单价</label>
  38. <input id="price" type="number" min="0" step="0.001" class="col-6 form-control"
  39. :class="errors.price ? 'is-invalid' : ''" v-model="model.storage.price">
  40. <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.price">
  41. <strong>@{{ errors.price[0] }}</strong>
  42. </span>
  43. </div>
  44. <div class="row mt-3">
  45. <label for="discount_type" class="col-2 text-info">减免类型</label>
  46. <select id="discount_type" class="col-3 form-control"
  47. :class="errors.discount_type ? 'is-invalid' : ''" v-model="model.storage.discount_type">
  48. <option v-for="type in pool.discount_type" :value="type">@{{ type }}</option>
  49. </select>
  50. <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.discount_type">
  51. <strong>@{{ errors.discount_type[0] }}</strong>
  52. </span>
  53. </div>
  54. <div class="row mt-3">
  55. <label for="discount_value" class="col-2">减免值</label>
  56. <input id="discount_value" type="number" min="0" step="0.001" class="col-6 form-control"
  57. :class="errors.discount_value ? 'is-invalid' : ''" v-model="model.storage.discount_value">
  58. <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.discount_value">
  59. <strong>@{{ errors.discount_value[0] }}</strong>
  60. </span>
  61. </div>
  62. <div class="row mt-3">
  63. <label for="unit_id" class="col-2 text-info">单位</label>
  64. <select id="unit_id" class="col-3 form-control"
  65. :class="errors.unit_id ? 'is-invalid' : ''" v-model="model.storage.unit_id">
  66. <option v-for="unit in pool.units" :value="unit.id">@{{ unit.name }}</option>
  67. </select>
  68. <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.unit_id">
  69. <strong>@{{ errors.unit_id[0] }}</strong>
  70. </span>
  71. </div>