| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <div class="row">
- <label for="name" class="col-2 text-info">名称</label>
- <input id="name" type="text" :class="errors.name ? 'is-invalid' : ''" class="col-6 form-control" v-model="model.storage.name">
- <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.name">
- <strong>@{{ errors.name[0] }}</strong>
- </span>
- </div>
- <div class="row mt-3">
- <label for="counting_type" class="col-2 text-info">计费类型</label>
- <select id="counting_type" class="col-3 form-control"
- :class="errors.counting_type ? 'is-invalid' : ''" v-model="model.storage.counting_type">
- <option v-for="type in pool.counting_type" :value="type">@{{ type }}</option>
- </select>
- <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.counting_type">
- <strong>@{{ errors.counting_type[0] }}</strong>
- </span>
- </div>
- <div class="row mt-3">
- <label for="using_type" class="col-2 text-info">用仓类型</label>
- <select id="using_type" class="col-3 form-control"
- :class="errors.using_type ? 'is-invalid' : ''" v-model="model.storage.using_type">
- <option v-for="type in pool.using_type" :value="type">@{{ type }}</option>
- </select>
- <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.using_type">
- <strong>@{{ errors.using_type[0] }}</strong>
- </span>
- </div>
- <div class="row mt-3">
- <label for="minimum_area" class="col-2">最低起租面积</label>
- <input id="minimum_area" type="number" min="0" step="0.001" class="col-6 form-control"
- :class="errors.minimum_area ? 'is-invalid' : ''" v-model="model.storage.minimum_area">
- <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.minimum_area">
- <strong>@{{ errors.minimum_area[0] }}</strong>
- </span>
- </div>
- <div class="row mt-3">
- <div class="col-4 row">
- <label for="price" class="col-4 text-info">单价</label>
- <input id="price" type="number" min="0" step="0.001" class="offset-3 col-5 form-control"
- :class="errors.price ? 'is-invalid' : ''" v-model="model.storage.price">
- <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.price">
- <strong>@{{ errors.price[0] }}</strong>
- </span>
- </div>
- <div class="col-3 row m-0">
- <label for="unit_id" class="col-5 offset-1 text-info">单位</label>
- <select id="unit_id" class="col-6 form-control"
- :class="errors.unit_id ? 'is-invalid' : ''" v-model="model.storage.unit_id">
- <option v-for="unit in pool.units" :value="unit.id" v-if="unit.name == 'm²' || unit.name=='㎡' || unit.name == 'm³' || unit.name == '件' || unit.name == '托'">
- @{{ unit.name }}</option>
- </select>
- <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.unit_id">
- <strong>@{{ errors.unit_id[0] }}</strong>
- </span>
- </div>
- <div class="col-3 row m-0">
- <label for="time_unit_id" class="col-5 offset-1 text-info">计时</label>
- <select id="time_unit_id" class="col-6 form-control"
- :class="errors.time_unit_id ? 'is-invalid' : ''" v-model="model.storage.time_unit_id">
- <option v-for="unit in pool.units" :value="unit.id" v-if="unit.name == '日' || unit.name == '月'">@{{ unit.name }}</option>
- </select>
- <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.time_unit_id">
- <strong>@{{ errors.time_unit_id[0] }}</strong>
- </span>
- </div>
- </div>
- <div class="row mt-3">
- <label for="discount_type" class="col-2 text-info">减免类型</label>
- <select id="discount_type" class="col-3 form-control"
- :class="errors.discount_type ? 'is-invalid' : ''" v-model="model.storage.discount_type">
- <option v-for="type in pool.discount_type" :value="type">@{{ type }}</option>
- </select>
- <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.discount_type">
- <strong>@{{ errors.discount_type[0] }}</strong>
- </span>
- </div>
- <div class="row mt-3">
- <label for="discount_value" class="col-2">减免值</label>
- <input id="discount_value" type="number" min="0" step="0.001" class="col-6 form-control"
- :class="errors.discount_value ? 'is-invalid' : ''" v-model="model.storage.discount_value">
- <span class="invalid-feedback mt-0 offset-2" role="alert" v-if="errors.discount_value">
- <strong>@{{ errors.discount_value[0] }}</strong>
- </span>
- </div>
|