| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <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">
- <label for="price" class="col-2 text-info">单价</label>
- <input id="price" type="number" min="0" step="0.001" class="col-6 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="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>
- <div class="row mt-3">
- <label for="unit_id" class="col-2 text-info">单位</label>
- <select id="unit_id" class="col-3 form-control"
- :class="errors.unit_id ? 'is-invalid' : ''" v-model="model.storage.unit_id">
- <option v-for="unit in pool.units" :value="unit.id">@{{ 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>
|