<div class="modal fade" tabindex="-1" role="dialog" id="editArea">
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
            </div>
            <div class="modal-body">
                <div class="row">
                    <label class="col-2 offset-1" for="ownerGroup">项目小组</label>
                    <select id="ownerGroup" class="form-control col-6" v-model="area.ownerGroupId">
                        <option v-for="group in ownerGroups" :value="group.name">@{{ group.value }}</option>
                    </select>
                </div>
                <div class="row mt-3">
                    <label class="col-2 offset-1" for="areaOnTray">货物整托</label>
                    <input id="areaOnTray" :readonly="area.unitName=='m²' ? false : true"
                           type="number" min="0" class="form-control col-6" v-model="area.areaOnTray">
                </div>
                <div class="row mt-3">
                    <label class="col-2 offset-1" for="areaOnHalfTray">货物半托</label>
                    <input id="areaOnHalfTray" :readonly="area.unitName=='m²' ? false : true"
                           type="number" min="0" class="form-control col-6" v-model="area.areaOnHalfTray">
                </div>
                <div class="row mt-3">
                    <label class="col-2 offset-1" for="areaOnFlat">平面区</label>
                    <input id="areaOnFlat" :readonly="area.unitName=='m²' ? false : true"
                           type="number" min="0" class="form-control col-6" v-model="area.areaOnFlat">
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" @click="submitArea()">提交</button>
            </div>
        </div>
    </div>
</div>
