<div class="modal fade" tabindex="-1" role="dialog" id="relatedOwner">
    <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="container-fluid">
                    <div class="row">
                        <label for="ownerSelectpicker" class="col-2 offset-1">选择货主</label>
                        <select data-none-results-text="货主不存在" id="ownerSelectpicker" class="selectpicker col-5" multiple data-live-search="true" title="项目(多选)" {{--v-model="ownerIds[customers[index]['id']]"--}}>
                            <option v-for="owner in owners" :value="owner.id">@{{ owner.name }}</option>
                        </select>
                    </div>
                    <div class="row m-2" v-if="index!==''">
                        <div class="col-8 offset-3">
                            <span class="badge badge-primary text-nowrap mr-1 mb-1 p-2" v-for="(name,i) in ownerNames[customers[index]['id']]">@{{ name }}</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" @click="submitRelatedOwner()">提交</button>
            </div>
        </div>
    </div>
</div>