|
|
@@ -8,9 +8,9 @@
|
|
|
</span>
|
|
|
<div id="list">
|
|
|
<div class="mt-3" style="margin-left: 20px">
|
|
|
- <div class="card" style="width: 1800px;">
|
|
|
+ <div class="card table-responsive">
|
|
|
<div>
|
|
|
- <form method="GET" action="{{url('weight/package')}}" style="margin-top: 1%" id="optionSubmit">
|
|
|
+ <form method="GET" action="{{url('weight/package/index')}}" style="margin-top: 1%" id="optionSubmit">
|
|
|
<table class="table table-sm table-bordered table-hover text-nowrap ">
|
|
|
<tr>
|
|
|
<td colspan="10"><div class="col" v-if="isBeingFilterConditions" style="padding:0">
|
|
|
@@ -31,7 +31,7 @@
|
|
|
</select></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>
|
|
|
+ <td rowspan="2">
|
|
|
<span class="text-muted">根据条件过滤:</span>
|
|
|
</td>
|
|
|
<td >
|
|
|
@@ -40,41 +40,63 @@
|
|
|
<input style="width: 150px" type="date" name="created_at_end" v-model="filterData.created_at_end" class="form-control-sm">
|
|
|
</label>
|
|
|
</td>
|
|
|
- <td > <label class="form-inline" style="width:200px;margin-left: 2%">货主:
|
|
|
+ {{--<td > <label class="form-inline" style="width:200px;margin-left: 2%">货主:
|
|
|
<input class="form-control-sm" style="width: 80px" placeholder="搜索定位" @input="owner_seek">
|
|
|
<select name="owner_id" v-model="filterData.owner_id" class="form-control-sm" @change="setOwner">
|
|
|
<option > </option>
|
|
|
@foreach($owners as $owner)
|
|
|
<option value="{{$owner->id}}">{{$owner->name}}</option>
|
|
|
@endforeach
|
|
|
- </select></label><input hidden type="submit" value="kk"></td>
|
|
|
+ </select></label><input hidden type="submit" value="kk"></td>--}}
|
|
|
+ <td>
|
|
|
+ <label for="">客户:</label>
|
|
|
+ <input type="text" class="form-control-sm tooltipTarget" placeholder="查找"
|
|
|
+ style="width:70px" @input="owner_seek"
|
|
|
+ title="输入关键词快速定位下拉列表,回车确定">
|
|
|
+ <select name="owner_id" v-model="filterData.owner_id" @change="setOwner" class="form-control-sm tooltipTarget">
|
|
|
+ <option > </option>
|
|
|
+ @foreach($owners as $owner)
|
|
|
+ <option value="{{$owner->id}}">{{$owner->name}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ <input hidden type="submit" value="kk">
|
|
|
+ </td>
|
|
|
<td > <label class="form-inline" style="width:250px;margin-left: 2%">快递单号:
|
|
|
<input type="text" name="logistic_number" class="form-control-sm " v-model="filterData.logistic_number" style="vertical-align: middle"></label></td>
|
|
|
<td > <label class="form-inline" style="width:250px;margin-left: 2%">发货单号:
|
|
|
<input type="text" name="delivery_number" class="form-control-sm " v-model="filterData.delivery_number" style="vertical-align: middle"></label></td>
|
|
|
<td colspan="5"></td>
|
|
|
</tr>
|
|
|
+ <tr>
|
|
|
+ <td > <label class="form-inline" >波次号:
|
|
|
+ <input type="text" name="batch_number" class="form-control-sm " v-model="filterData.batch_number" style="vertical-align: middle"></label></td>
|
|
|
+ </tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
<span class="text-muted">操作选定记录:</span>
|
|
|
</td>
|
|
|
<td colspan="9">
|
|
|
- <span class="btn btn-sm" @click="packageExport" style="cursor: pointer"
|
|
|
- :class="[checkData>0?'btn-dark':'btn-outline-dark']">导出Excel</span>
|
|
|
+ <select @change="packageExport" :class="[checkData>0?'btn-dark':'btn-outline-dark']" class=" tooltipTarget form-control-sm" style=" vertical-align: middle"
|
|
|
+ title="导出所有页将会以搜索条件得到的过滤结果,将其全部记录(每一页)导出">
|
|
|
+ <option >选择导出规则</option>
|
|
|
+ <option value="1">导出勾选内容</option>
|
|
|
+ <option value="2">导出所有页</option>
|
|
|
+ </select>
|
|
|
<input hidden type="submit" value="kk">
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</form>
|
|
|
</div>
|
|
|
- <div class="card-body">
|
|
|
- <table class="table table-striped table-sm text-nowrap">
|
|
|
+ <div class="">
|
|
|
+ <table class="table table-striped table-sm text-nowrap table-hover">
|
|
|
<tr>
|
|
|
<th>
|
|
|
<label for="all">
|
|
|
<input id="all" type="checkbox" @click="checkAll($event)">全选
|
|
|
</label>
|
|
|
</th>
|
|
|
+ <th>序号</th>
|
|
|
<th>ID</th>
|
|
|
<th>货主</th>
|
|
|
<th>快递单号</th>
|
|
|
@@ -92,21 +114,22 @@
|
|
|
<th>纸箱</th>
|
|
|
<th>状态</th>
|
|
|
</tr>
|
|
|
- <tr v-for="package in packages">
|
|
|
+ <tr v-for="(package,i) in packages">
|
|
|
<td>
|
|
|
<input class="checkItem" type="checkbox" :value="package.id" v-model="checkData">
|
|
|
</td>
|
|
|
+ <td>@{{ i+1 }}</td>
|
|
|
<td class="text-muted">@{{package.id}}</td>
|
|
|
<td>@{{package.ownerName}}</td>
|
|
|
<td>@{{package.logisticNumber}}</td>
|
|
|
- <td>@{{package.wmsNumber}}</td>
|
|
|
- <td>@{{package.batchNumber}}</td>
|
|
|
+ <td class="text-muted">@{{package.wmsNumber}}</td>
|
|
|
+ <td class="text-muted">@{{package.batchNumber}}</td>
|
|
|
<td>@{{package.batchRule}}</td>
|
|
|
<td class="text-muted">@{{package.created_at}}</td>
|
|
|
<td>@{{package.recipient}}</td>
|
|
|
<td>@{{package.recipientMobile}}</td>
|
|
|
- <td>@{{package.logisticName}}</td>
|
|
|
- <td>@{{package.measuringMachineName}}</td>
|
|
|
+ <td class="text-muted">@{{package.logisticName}}</td>
|
|
|
+ <td class="text-muted">@{{package.measuringMachineName}}</td>
|
|
|
<td>@{{package.weight}}</td>
|
|
|
<td>@{{package.length}}<a v-if="package.length" class="text-primary">*</a>@{{package.width}}<a class="text-primary" v-if="package.width">*</a>@{{package.height}}</td>
|
|
|
<td>@{{package.bulk}}</td>
|
|
|
@@ -122,6 +145,7 @@
|
|
|
@endsection
|
|
|
|
|
|
@section('lastScript')
|
|
|
+ <script></script>
|
|
|
<script>
|
|
|
new Vue({
|
|
|
el:"#list",
|
|
|
@@ -137,13 +161,14 @@
|
|
|
status:'{{$package->status}}',created_at:'{{$package->created_at}}'},
|
|
|
@endforeach
|
|
|
],
|
|
|
+ i:0,
|
|
|
owners:[
|
|
|
@foreach($owners as $owner)
|
|
|
{id:'{{$owner->id}}',name:'{{$owner->name}}'},
|
|
|
@endforeach
|
|
|
],
|
|
|
filterData:
|
|
|
- {paginate:'50',created_at_start:'',created_at_end:'',logistic_number:'',delivery_number:'',owner_id: ''},
|
|
|
+ {paginate:'50',created_at_start:'',created_at_end:'',logistic_number:'',delivery_number:'',owner_id: '',batch_number:''},
|
|
|
checkData:[]
|
|
|
},
|
|
|
mounted:function(){
|
|
|
@@ -210,12 +235,17 @@
|
|
|
this.checkData = [];
|
|
|
}
|
|
|
},
|
|
|
- packageExport(){
|
|
|
+ packageExport(e){
|
|
|
if (this.checkData&&this.checkData.length<=0){
|
|
|
tempTip.setDuration(4000);
|
|
|
tempTip.showSuccess('没有勾选任何记录');
|
|
|
}else{
|
|
|
- location.href="{{url('weight/package/export').'/'}}"+this.checkData;
|
|
|
+ if (e===1){
|
|
|
+ location.href="{{url('weight/package/export').'/'}}"+this.checkData;
|
|
|
+ } else {
|
|
|
+ location.href="{{url('weight/package/export/-1')}}";
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
owner_seek:function (e) {
|