|
|
@@ -3,7 +3,7 @@
|
|
|
@section('content')
|
|
|
<div id="list" class="d-none item-logistic-index">
|
|
|
<div class="container-fluid">
|
|
|
- <div class="form-inline ml-5">
|
|
|
+ <div class="m-2 form-inline" id="btn">
|
|
|
<select class="form-control form-control-sm tooltipTarget" name="owner_id" id="owner_id"
|
|
|
style="width: 150px;position: relative" title="选择指定货主" v-model="owner_id">
|
|
|
<option value="">货主</option>
|
|
|
@@ -11,20 +11,14 @@
|
|
|
</select>
|
|
|
<input placeholder="定位货主" id="ownerName" autocomplete="off" @input="定位货主($event)"
|
|
|
class="form-control form-control-sm tooltipTarget" style="width: 100px" title="输入关键字定位货主">
|
|
|
- <button @click="search()">查询</button>
|
|
|
- </div>
|
|
|
+ <button class="btn btn-sm btn-outline-info ml-3" @click="search()">查询</button>
|
|
|
|
|
|
+ <button type="button"
|
|
|
+ @click="orderItemExport(true)"
|
|
|
+ class="btn btn-outline-dark btn-sm ml-2"
|
|
|
+ title="导出所有页将会以搜索条件得到的筛选结果,将其全部记录(每一页)导出">导出Excel
|
|
|
+ </button>
|
|
|
|
|
|
- <div class="ml-3 form-inline" id="btn">
|
|
|
- <span class="dropdown">
|
|
|
- <button type="button"
|
|
|
- class="btn btn-outline-dark btn-sm form-control-sm dropdown-toggle tooltipTarget"
|
|
|
- data-toggle="dropdown" title="导出所有页将会以搜索条件得到的筛选结果,将其全部记录(每一页)导出">导出Excel
|
|
|
- </button>
|
|
|
- <div class="dropdown-menu">
|
|
|
- <a class="dropdown-item" @click="orderItemExport(true)" href="javascript:">导出所有页</a>
|
|
|
- </div>
|
|
|
- </span>
|
|
|
</div>
|
|
|
<table class="table table-striped table-bordered table-hover card-body td-min-width-80" id="table">
|
|
|
<tr v-if="item.amount > 0 " v-for="(item,i) in details" @click="selectTr===i+1?selectTr=0:selectTr=i+1"
|
|
|
@@ -97,11 +91,14 @@
|
|
|
},
|
|
|
methods: {
|
|
|
orderItemExport(sign) {
|
|
|
+ if (this.owner_id === '') {
|
|
|
+ tempTip.show('请选择货主!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
let url = '{{url('inventory/stockOut/export')}}';
|
|
|
- // url = url + "?customer=" + this.owner_id;
|
|
|
let token = '{{ csrf_token() }}';
|
|
|
if (sign) {
|
|
|
- excelExport(true, checkData, url, this.total, token,{customer: this.owner_id});
|
|
|
+ excelExport(true, checkData, url, this.total, token, {customer: this.owner_id});
|
|
|
}
|
|
|
},
|
|
|
|