<div class="modal " id="add-quantity" tabindex="-1" >
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title text-center">完善采购数量和销售数量</h5>
                <button type="button" class="close" data-dismiss="modal">
                    <span>&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="form-group row">
                    <label for="supplier" class="col-2 col-form-label text-right">供应商</label>
                    <div class="col-8">
                        <input type="text" class="form-control " name="quantity" autocomplete="off" v-model="supplier" readonly>
                    </div>
                </div>
                <div class="form-group row">
                    <label for="offer" class="col-2 col-form-label text-right">采购单价(最低报价)</label>
                    <div class="col-8">
                        <input type="text" class="form-control " name="offer" autocomplete="off" v-model="offer" readonly>
                    </div>
                </div>
                    <div class="form-group row">
                        <label for="quantity" class="col-2 col-form-label text-right">采购数量</label>
                        <div class="col-8">
                            <input type="text" class="form-control " :class="errors.quantity ? 'is-invalid' : ''" name="quantity" autocomplete="off" v-model="quantity" required>
                            <span class="invalid-feedback" role="alert" v-if="errors.quantity">
                                <strong>@{{ errors.quantity[0] }}</strong>
                            </span>
                        </div>
                    </div>
                     <div class="form-group row">
                        <label for="amount" class="col-2 col-form-label text-right">销售数量</label>
                            <div class="col-8">
                                <input type="text" class="form-control " :class="errors.amount ? 'is-invalid' : ''" name="amount" autocomplete="off" v-model="amount" required>
                                <span class="invalid-feedback" role="alert" v-if="errors.amount">
                                <strong>@{{ errors.amount[0] }}</strong>
                            </span>
                            </div>
                    </div>
                    <div class="form-group row">
                        <label for="unit_price" class="col-2 col-form-label text-right">销售单价</label>
                        <div class="col-8">
                            <input type="text" class="form-control " name="unit_price" autocomplete="off" v-model="unit_price">
                        </div>
                    </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary"  data-dismiss="modal" >关闭</button>
                <button type="button" class="btn btn-primary" @click="submitProcurement">提交</button>
            </div>
        </div>
    </div>
</div>
