@extends('layouts.app')
@section('title')快速入库-入库管理@endsection

@section('content')
    <div id="nav2">
        @component('store.menu')@endcomponent
        @component('store.fast.menu')@endcomponent
    </div>
    <div class="container-fluid" id="fast">
        <div class="card col-md-8 offset-md-2">
            <div class="card-body">
                <form method="POST" action="{{ url('store/fast') }}">
                    @if(Session::has('successTip'))
                        <div class="alert alert-success h1">{{Session::get('successTip')}}</div>
                    @endif
                    @if(Session::has('successError'))
                        <div class="alert alert-danger h1">{{Session::get('successError')}}</div>
                    @endif
                    @csrf
                    <div class="resource" v-for="num in sum">

                        <div class="form-group row">
                            <div class="custom-control custom-checkbox offset-4">
                                <input type="checkbox" class="custom-control-input" id="test" name="test" checked>
                                <label class="custom-control-label text-primary" for="test">跳过FLUX接口快速入库</label>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="asn_code" class="col-2 col-form-label text-right">ASN编号</label>
                            <div class="col-8">
                                <input type="text" class="form-control @error('asn_code') is-invalid @enderror"
                                       name="asn_code" autocomplete="off" value="{{ old('asn_code')}}">
                                @error('asn_code')
                                <span class="invalid-feedback" role="alert">
                                        <strong>{{ $errors->first('asn_code') }}</strong>
                                </span>
                                @enderror
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="quality" class="col-2 col-form-label text-right">质量</label>
                            <div class="col-8 form-inline">
                                <select id="quality" name="quality" class="form-control @error('quality') is-invalid @enderror"  style="width: 30%;">
                                    <option value="正品">正品</option>
                                    <option value="残次">残次</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="quality" class="col-2 col-form-label text-right">属性仓编码</label>
                            <div class="col-8 form-inline">
                                <input type="text" class="form-control @error('depository_code') is-invalid @enderror"
                                       name="depository_code" autocomplete="off" value="{{ old('depository_code')}}" placeholder="如无需修改请留空">
                                @error('asn_code')
                                <span class="invalid-feedback" role="alert">
                                        <strong>{{ $errors->first('depository_code') }}</strong>
                                </span>
                                @enderror
                            </div>
                        </div>
                    </div>
                    <div class="form-group row">
                        <div class="col-8 offset-2">
                            <input type="submit" class="btn btn-success form-control" onclick="tempTip.setDuration(99999999);tempTip.waitingTip('执行中……')">
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
@endsection
