_storage.blade.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. <div class="col-4 row">
  38. <label for="price" class="col-4 text-info">单价</label>
  39. <input id="price" type="number" min="0" step="0.001" class="offset-3 col-5 form-control"
  40. :class="errors.price ? 'is-invalid' : ''" v-model="model.storage.price">
  41. <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.price">
  42. <strong>@{{ errors.price[0] }}</strong>
  43. </span>
  44. </div>
  45. <div class="col-3 row m-0">
  46. <label for="unit_id" class="col-5 offset-1 text-info">单位</label>
  47. <select id="unit_id" class="col-6 form-control"
  48. :class="errors.unit_id ? 'is-invalid' : ''" v-model="model.storage.unit_id">
  49. <option v-for="unit in pool.units" :value="unit.id" v-if="unit.name == 'm²' || unit.name=='㎡' || unit.name == 'm³' || unit.name == '件' || unit.name == '托'">
  50. @{{ unit.name }}</option>
  51. </select>
  52. <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.unit_id">
  53. <strong>@{{ errors.unit_id[0] }}</strong>
  54. </span>
  55. </div>
  56. <div class="col-3 row m-0">
  57. <label for="time_unit_id" class="col-5 offset-1 text-info">计时</label>
  58. <select id="time_unit_id" class="col-6 form-control"
  59. :class="errors.time_unit_id ? 'is-invalid' : ''" v-model="model.storage.time_unit_id">
  60. <option v-for="unit in pool.units" :value="unit.id" v-if="unit.name == '日' || unit.name == '月'">@{{ unit.name }}</option>
  61. </select>
  62. <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.time_unit_id">
  63. <strong>@{{ errors.time_unit_id[0] }}</strong>
  64. </span>
  65. </div>
  66. </div>
  67. <div class="row mt-3">
  68. <label for="discount_type" class="col-2 text-info">减免类型</label>
  69. <select id="discount_type" class="col-3 form-control"
  70. :class="errors.discount_type ? 'is-invalid' : ''" v-model="model.storage.discount_type">
  71. <option v-for="type in pool.discount_type" :value="type">@{{ type }}</option>
  72. </select>
  73. <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.discount_type">
  74. <strong>@{{ errors.discount_type[0] }}</strong>
  75. </span>
  76. </div>
  77. <div class="row mt-3">
  78. <label for="discount_value" class="col-2">减免值</label>
  79. <input id="discount_value" type="number" min="0" step="0.001" class="col-6 form-control"
  80. :class="errors.discount_value ? 'is-invalid' : ''" v-model="model.storage.discount_value">
  81. <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.discount_value">
  82. <strong>@{{ errors.discount_value[0] }}</strong>
  83. </span>
  84. </div>