|
|
@@ -5,123 +5,20 @@
|
|
|
<div class="container-fluid">
|
|
|
<div style="min-width: 4070px;">
|
|
|
<div id="list" class="d-none">
|
|
|
- <form method="GET" action="{{url('order/index/delivering')}}" id="form">
|
|
|
- <table class="table table-sm table-bordered text-nowrap mb-0 ml-3">
|
|
|
- <tr v-if="isBeingFilterConditions">
|
|
|
- <td colspan="10">
|
|
|
- <div class="col" style="padding:0">
|
|
|
- <a href="{{url('order/index/delivering')}}"><span class="btn btn-warning text-dark">清除过滤条件</span></a>
|
|
|
- </div></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="10">
|
|
|
- <select name="paginate" v-model="filterData.paginate" class="tooltipTarget form-control-sm" style="vertical-align: middle" @change="submit">
|
|
|
- <option value="50">每页显示50行</option>
|
|
|
- <option value="100">每页显示100行</option>
|
|
|
- <option value="200">每页显示200行</option>
|
|
|
- <option value="500">每页显示500行</option>
|
|
|
- <option value="1000">每页显示1000行</option>
|
|
|
- </select></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="width: 300px">
|
|
|
- <select name="codename_c" v-model="filterData.codename_c" class="form-control form-control-sm" style="vertical-align: middle;max-width: 100px" @change="submit">
|
|
|
- <option value="" class="text-secondary">订单状态</option>
|
|
|
- <option v-for="code in codes" :value="code.code" class="font-weight-bold">@{{ code.codename_c }}</option>
|
|
|
- </select></td>
|
|
|
- <td style="width: 300px">
|
|
|
- <div class="form-inline">
|
|
|
- <input style="max-width: 150px" type="date" name="orderdate_start" class="form-control form-control-sm tooltipTarget" title="选择显示指定日期的起始时间"
|
|
|
- v-model="filterData.orderdate_start" :class="filterData.orderdate_start?'bg-warning':''">
|
|
|
- <input style="max-width: 100px" type="time" name="ordertime_start" class="form-control form-control-sm tooltipTarget" title="选择显示指定日期的起始时间"
|
|
|
- v-model="filterData.ordertime_start" :class="filterData.ordertime_start?'bg-warning':''"></div>
|
|
|
- </td>
|
|
|
- <td style="width: 300px">
|
|
|
- <input style="max-width: 200px" name="orderno" v-model="filterData.orderno" class="form-control form-control-sm tooltipTarget" placeholder="编号" title="编号,模糊查找需要在左边打上%符号" autocomplete="off" :class="filterData.orderno?'bg-warning':''">
|
|
|
- </td>
|
|
|
- <td style="width: 300px">
|
|
|
- <input style="max-width: 200px" name="carriername" v-model="filterData.carriername" class="form-control form-control-sm tooltipTarget" placeholder="承运人" :class="filterData.carriername?'bg-warning':''">
|
|
|
- </td>
|
|
|
- <td style="width: 300px">
|
|
|
- <div class="form-inline">
|
|
|
- <input style="max-width: 200px" name="notes" title="右侧选择查询范围,默认为一月内" v-model="filterData.notes" class="form-control form-control-sm tooltipTarget" placeholder="备注" autocomplete="off" :class="filterData.notes?'bg-warning':''">
|
|
|
- <select style="max-width: 100px" title="查询范围,范围越短搜索越快" name="addtime" v-model="filterData.addtime" class="form-control form-control-sm tooltipTarget">
|
|
|
- <option value="1">一天内</option>
|
|
|
- <option value="31">近一月</option>
|
|
|
- <option value="92">近三月</option>
|
|
|
- <option value="183">近半年</option>
|
|
|
- <option value="366">近一年</option>
|
|
|
- <option value="0">不限期</option>
|
|
|
- </select></div>
|
|
|
- </td>
|
|
|
- <td style="width: 300px">
|
|
|
- <input style="max-width: 200px" name="issuepartyname" v-model="filterData.issuepartyname" class="form-control form-control-sm tooltipTarget" placeholder="店铺名称" :class="filterData.issuepartyname?'bg-warning':''">
|
|
|
- </td>
|
|
|
- <td colspan="4">
|
|
|
- <select name="edisendflag2" class="form-control form-control-sm tooltipTarget" style="max-width: 150px" title="快递获取标记" @change="submit">
|
|
|
- <option value="">快递获取标记</option>
|
|
|
- <option value="Y">是</option>
|
|
|
- <option value="N">否</option>
|
|
|
- <option value="W">错误</option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td >
|
|
|
- <div class="form-inline">
|
|
|
- <input type="text" class="form-control form-control-sm tooltipTarget" placeholder="客户"
|
|
|
- style="width:70px" @input="owner_seek"
|
|
|
- title="输入关键词快速定位下拉列表,回车确定">
|
|
|
- <select name="customerid" v-model="filterData.customerid" @change="submit" style="max-width: 120px" class="form-control form-control-sm tooltipTarget" title="选择要显示的客户" :class="filterData.customerid?'bg-warning':''">
|
|
|
- <option > </option>
|
|
|
- <option v-for="owner in owners" :value="owner.customerid" >@{{owner.descr_c}}</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="form-inline">
|
|
|
- <input style="max-width: 150px" type="date" class=" form-control form-control-sm tooltipTarget" name="orderdate_end" title="选择显示指定日期的结束时间"
|
|
|
- v-model="filterData.orderdate_end" :class="filterData.orderdate_end?'bg-warning':''" >
|
|
|
- <input style="max-width: 100px" type="time" class="form-control form-control-sm tooltipTarget" name="ordertime_end" title="选择显示指定日期的结束时间"
|
|
|
- v-model="filterData.ordertime_end" :class="filterData.ordertime_end?'bg-warning':''" ></div>
|
|
|
- </td>
|
|
|
- <td >
|
|
|
- <input style="max-width: 200px" name="soreference5" placeholder="多快递单号" v-model="filterData.soreference5" class="form-control form-control-sm tooltipTarget" title="可支持多快递单号,模糊查找需要在左边打上%符号" autocomplete="off" :class="filterData.soreference5?'bg-warning':''">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input style="max-width: 200px" name="soreference1" v-model="filterData.soreference1" class="form-control form-control-sm tooltipTarget" placeholder="客户订单号" title="客户订单号,模糊查找需要在左边打上%符号" autocomplete="off" :class="filterData.soreference1?'bg-warning':''">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input style="max-width: 200px" name="waveno" v-model="filterData.waveno" title="波次编号,模糊查找需要在左边打上%的符号" class="form-control form-control-sm tooltipTarget" placeholder="波次编号" :class="filterData.waveno?'bg-warning':''">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input style="max-width: 200px" name="alternate_sku1" v-model="filterData.alternate_sku1" title="产品条码,模糊查找需要在左边打上%的符号" class="form-control form-control-sm tooltipTarget" placeholder="产品条码" :class="filterData.alternate_sku1?'bg-warning':''">
|
|
|
- </td>
|
|
|
- <td colspan="4"><button class="btn btn-sm btn-outline-dark pull-left" type="submit">按条件搜索</button></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="10">
|
|
|
- <span class="dropdown">
|
|
|
- <button type="button" class="btn btn-outline-dark btn-sm form-control-sm dropdown-toggle tooltipTarget" :class="[checkData.length>0?'btn-dark text-light':'']"
|
|
|
- data-toggle="dropdown" title="导出所有页将会以搜索条件得到的过滤结果,将其全部记录(每一页)导出">
|
|
|
- 导出Excel
|
|
|
- </button>
|
|
|
- <div class="dropdown-menu">
|
|
|
- <a class="dropdown-item" @click="orderExport(1)" href="javascript:">导出勾选内容</a>
|
|
|
- <a class="dropdown-item" @click="orderExport(2)" href="javascript:">导出所有页</a>
|
|
|
- </div>
|
|
|
- </span>
|
|
|
- @can('订单管理-批量备注')<button @click="modal()" type="button" class="btn btn-sm ml-2 btn-outline-primary">批量备注追加</button>@endcan
|
|
|
- @can('订单管理-编辑')
|
|
|
- <span class="btn btn-sm tooltipTarget" @click="freezeAll" style="cursor: pointer" title="订单的冻结条件要只局限在“创建订单”,“分配完成”,“拣货完成”,“播种完成”"
|
|
|
- :class="[checkData.length>0?'btn-dark':'btn-outline-dark']">冻结</span>
|
|
|
- <span class="btn btn-sm tooltipTarget" @click="deAllocationAll" style="cursor: pointer" title="订单的取消分配条件要只局限在“分配完成”或“部分分配”"
|
|
|
- :class="[checkData.length>0?'btn-dark':'btn-outline-dark']">取消分配</span>
|
|
|
- @endcan
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </form>
|
|
|
+ <div id="form_div"></div>
|
|
|
+ <div class="ml-3 form-inline">
|
|
|
+ <span class="dropdown">
|
|
|
+ <button type="button" class="btn btn-outline-dark btn-sm form-control-sm dropdown-toggle tooltipTarget" :class="[checkData.length>0?'btn-dark text-light':'']"
|
|
|
+ data-toggle="dropdown" title="导出所有页将会以搜索条件得到的过滤结果,将其全部记录(每一页)导出">
|
|
|
+ 导出Excel
|
|
|
+ </button>
|
|
|
+ <div class="dropdown-menu">
|
|
|
+ <a class="dropdown-item" @click="orderExport(false)" href="javascript:">导出勾选内容</a>
|
|
|
+ <a class="dropdown-item" @click="orderExport(true)" href="javascript:">导出所有页</a>
|
|
|
+ </div>
|
|
|
+ </span>
|
|
|
+ @can('订单管理-批量备注')<button @click="modal()" type="button" class="btn btn-sm ml-2 btn-outline-primary">批量备注追加</button>@endcan
|
|
|
+ </div>
|
|
|
<div class="modal fade " style="top: 20%" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
<div class="modal-dialog">
|
|
|
<div class="modal-content">
|
|
|
@@ -166,6 +63,7 @@
|
|
|
<th>快递获取时间</th>
|
|
|
<th style="min-width: 150px">产品代码</th>
|
|
|
<th style="min-width: 150px">产品条码</th>
|
|
|
+ <th style="min-width: 150px">明细状态</th>
|
|
|
<th style="min-width: 180px">产品名称</th>
|
|
|
<th>订单数量</th>
|
|
|
<th>复核时间</th>
|
|
|
@@ -173,6 +71,7 @@
|
|
|
<th>接口取消标记</th>
|
|
|
<th>拣货单打印标记</th>
|
|
|
<th>接口回传标记</th>
|
|
|
+ <th>接口回传异常备注</th>
|
|
|
<th>订单冻结</th>
|
|
|
<th>取消分配</th>
|
|
|
|
|
|
@@ -183,7 +82,7 @@
|
|
|
</td>
|
|
|
<td>@{{ i+1 }}</td>
|
|
|
<td class="text-dark font-weight-bold text-nowrap">@{{ order.orderno }}</td>
|
|
|
- <td class="text-muted text-nowrap">@{{ order.codename_c }}</td>
|
|
|
+ <td class="text-muted text-nowrap">@{{ order.ordercodename }}</td>
|
|
|
<td class="text-nowrap">@{{ order.addtime }}</td>
|
|
|
<td class="text-nowrap">@{{ order.issuepartyname }}</td>
|
|
|
<td class="text-nowrap">@{{ order.customer_descr_c }}</td>
|
|
|
@@ -211,11 +110,12 @@
|
|
|
<td class="text-nowrap"> @{{ order.warehouseid }}</td>
|
|
|
<td class="text-nowrap"><span v-if="order.edisendflag2=='Y'">是</span><span v-if="order.edisendflag2=='N'">否</span><span v-if="order.edisendflag2=='W'">错误</span></td>
|
|
|
<td class="text-nowrap">@{{ order.edisendtime2 }}</td>
|
|
|
- <td colspan="5" class="text-center">
|
|
|
+ <td colspan="6" class="text-center">
|
|
|
<table v-if="commodities[order.orderno]&&commodities[order.orderno].length==1 || isBtn[order.orderno]" class="table text-nowrap table-sm">
|
|
|
<tr v-for="oracleDOCOrderDetail in commodities[order.orderno]">
|
|
|
<td><div style="width: 180px;overflow: hidden">@{{ oracleDOCOrderDetail.sku }}</div></td>
|
|
|
<td><div style="width: 180px;overflow: hidden">@{{ oracleDOCOrderDetail.alternate_sku1 }}</div></td>
|
|
|
+ <td><div style="width: 180px;overflow: hidden">@{{ oracleDOCOrderDetail.orderdetailcodename }}</div></td>
|
|
|
<td><div :title="oracleDOCOrderDetail.descr_c" class="tooltipTarget" style="width: 180px;overflow: hidden">@{{ oracleDOCOrderDetail.descr_c }}</div></td>
|
|
|
<td>@{{ oracleDOCOrderDetail.qtyordered }}</td>
|
|
|
<td><div style="width: 180px;overflow: hidden">@{{ oracleDOCOrderDetail.checktime }}</div></td>
|
|
|
@@ -232,6 +132,7 @@
|
|
|
<td>@{{ order.erpcancelflag }}</td>
|
|
|
<td>@{{ order.picking_print_flag }}</td>
|
|
|
<td>@{{ order.edisendflag }}</td>
|
|
|
+ <td>@{{ order.ediremarks2}}</td>
|
|
|
<td>
|
|
|
@can('订单管理-编辑')
|
|
|
<button v-if="order.releasestatus!=='H'" @click="freeze(order.orderno,order.waveno)" class="btn btn-sm btn-outline-dark text-nowrap"
|
|
|
@@ -264,50 +165,67 @@
|
|
|
@endsection
|
|
|
|
|
|
@section('lastScript')
|
|
|
+ <script type="text/javascript" src="{{asset('js/queryForm/export.js')}}"></script>
|
|
|
+ <script type="text/javascript" src="{{asset('js/queryForm/queryForm200724.js')}}"></script>
|
|
|
<script>
|
|
|
new Vue({
|
|
|
el:"#list",
|
|
|
data:{
|
|
|
- filterData:{
|
|
|
- paginate:50,ordertime_start:'',orderdate_start:'',orderdate_end:'',ordertime_end:'',customerid:'',orderno:'',soreference5:'',codename_c:'',
|
|
|
- carriername:'',issuepartyname:'',soreference1:'',notes:'',addtime:'31',alternate_sku1:'',waveno:'',edisendflag2:'',
|
|
|
- },
|
|
|
page:Number('{{$page}}'),
|
|
|
maxPage:1,
|
|
|
sum:0,
|
|
|
checkData:[],
|
|
|
owners:[
|
|
|
@foreach($customers as $customer)
|
|
|
- {!! $customer !!},
|
|
|
+ { name:'{{$customer->descr_c}}',value:'{{$customer->customerid}}' },
|
|
|
@endforeach
|
|
|
],
|
|
|
orders:{!! $orders !!},
|
|
|
commodities:{!! $commodities !!},
|
|
|
isBtn:{},
|
|
|
content:'',
|
|
|
- codes:{!! $codes !!},
|
|
|
+ codes:[
|
|
|
+ @foreach($codes as $code)
|
|
|
+ {name:'{{$code->code}}',value:'{{$code->codename_c}}'},
|
|
|
+ @endforeach
|
|
|
+ ],
|
|
|
selectedStyle:'',
|
|
|
picktotraceidMap:[],
|
|
|
},
|
|
|
mounted:function () {
|
|
|
$(".tooltipTarget").tooltip({'trigger':'hover'});
|
|
|
- this.initInputs();
|
|
|
$("#list").removeClass('d-none');
|
|
|
if (this.orders.length>0){
|
|
|
this.maxPage=Math.ceil(this.orders[0].counted/50);
|
|
|
this.sum=this.orders[0].counted;
|
|
|
}
|
|
|
- },
|
|
|
- computed:{
|
|
|
- isBeingFilterConditions:function(){
|
|
|
- for(let key in this.filterData){
|
|
|
- if(this.filterData[key] && key!='paginate' && key!='page' && key!='addtime'){
|
|
|
- return true
|
|
|
- }
|
|
|
- }
|
|
|
- return false;
|
|
|
- },
|
|
|
-
|
|
|
+ let data=[
|
|
|
+ [ {name:'codename_c',type:'select',placeholder:'订单状态',data:this.codes},
|
|
|
+ {name:'orderdate_start',type:'time',tip:['选择显示日期的起始时间','选择显示日期的起始时间']},
|
|
|
+ {name:'orderno',type:'input',tip:'编号,糊模查找需要在左边打上%符号',placeholder: '编号'},
|
|
|
+ {name:'carriername',type:'input',tip:'',placeholder:'承运人'},
|
|
|
+ {name:['notes','addtime'],type:'input_select',tip:['右侧选择查询范围,默认为一天内','查询范围,范围越短搜索越快'],placeholder: ['客户',''],
|
|
|
+ data:[{name:'31',value:'近一月'},{name:'92',value:'近三月'},{name:'183',value:'近半年'},{name:'366',value:'近一年'},{name:'0',value:'不限'},]},
|
|
|
+ {name:'issuepartyname',type:'input',tip:'',placeholder: '店铺名称'},
|
|
|
+ {name:'edisendflag2',type:'select',tip:'快递获取标记',placeholder: '快递获取标记',data:[{name:'Y',value:'是'},{name:'N',value:'否'},{name:'W',value:'错误'},]},
|
|
|
+ {name:'edisendflag',type:'select',tip:'接口回传标记',placeholder: '接口回传标记',data:[{name:'Y',value:'Y'},{name:'N',value:'N'},{name:'W',value:'W'},{name:'R',value:'R'},]}
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ {name:'codename_c_end',type:'select',placeholder:'订单状态',data:this.codes},
|
|
|
+ {name:'customerid',type:'select_multiple_select',tip:['输入关键词快速定位下拉列表,回车确定','选择要显示的客户'],
|
|
|
+ placeholder:['货主','定位或多选货主'],data:this.owners},
|
|
|
+ {name:'orderdate_end',type:'time',tip:['选择显示指定日期的结束时间','选择显示指定日期的结束时间']},
|
|
|
+ {name:'soreference5',type:'input',tip:'可支持多快递单号,糊模查找需要在左边打上%符号',placeholder: '多快递单号'},
|
|
|
+ {name:'soreference1',type:'input',tip:'客户订单号,糊模查找需要在左边打上%符号',placeholder: '客户订单号'},
|
|
|
+ {name:'waveno',type:'input',tip:'波次编号,模糊查找需要在左边打上%的符号',placeholder: '波次编号'},
|
|
|
+ {name:'alternate_sku1',type:'input',tip:'产品条码,模糊查找需要在左边打上%的符号',placeholder: '产品条码'},
|
|
|
+ ],
|
|
|
+ ];
|
|
|
+ this.form = new query({
|
|
|
+ el:"#form_div",
|
|
|
+ condition:data,
|
|
|
+ });
|
|
|
+ this.form.init();
|
|
|
},
|
|
|
watch:{
|
|
|
checkData:{
|
|
|
@@ -322,31 +240,13 @@
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
- initInputs:function(){
|
|
|
- let data=this;
|
|
|
- let uriParts =decodeURI(location.href).split("?");
|
|
|
- if(uriParts.length>1){
|
|
|
- let params = uriParts[1].split('&');
|
|
|
- params.forEach(function(paramPair){
|
|
|
- let pair=paramPair.split('=');
|
|
|
- let key = pair[0], val = pair[1];
|
|
|
- $('input[name="'+key+'"]').val(val);
|
|
|
- $('select[name="'+key+'"]').val(val);
|
|
|
- decodeURI(data.filterData[key]=val);
|
|
|
- if (key==='ordertime_start' || key==='ordertime_end')
|
|
|
- data.filterData[key]=unescape(val);
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
pageUp(){
|
|
|
if (this.page<=1)return;
|
|
|
- this.page=this.page-1;
|
|
|
- this.href();
|
|
|
+ this.href(this.page-1);
|
|
|
},
|
|
|
pageDown(){
|
|
|
if (this.page>=this.maxPage)return;
|
|
|
- this.page=this.page+1;
|
|
|
- this.href();
|
|
|
+ this.href(this.page+1);
|
|
|
},
|
|
|
pageSkip(e){
|
|
|
if (Number(e.target.value)<=0 || Number(e.target.value)>this.maxPage){
|
|
|
@@ -354,37 +254,18 @@
|
|
|
tempTip.show('页数不存在! ');
|
|
|
return
|
|
|
}
|
|
|
- this.page=e.target.value;
|
|
|
- this.href();
|
|
|
+ this.href(e.target.value);
|
|
|
},
|
|
|
- href(){
|
|
|
- let url="{{url('order/index/delivering?page=')}}"+this.page;
|
|
|
- if (this.filterData.orderdate_start)url+="&orderdate_start="+this.filterData.orderdate_start;
|
|
|
- if (this.filterData.orderdate_end)url+="&orderdate_end="+this.filterData.orderdate_end;
|
|
|
- if (this.filterData.ordertime_start)url+="&ordertime_start="+this.filterData.ordertime_start;
|
|
|
- if (this.filterData.ordertime_end)url+="&ordertime_end="+this.filterData.ordertime_end;
|
|
|
- if (this.filterData.customerid)url+="&customerid="+this.filterData.customerid;
|
|
|
- if (this.filterData.paginate)url+="&paginate="+this.filterData.paginate;
|
|
|
- if (this.filterData.orderno)url+="&orderno="+this.filterData.orderno;
|
|
|
- if (this.filterData.soreference5)url+="&soreference5="+this.filterData.soreference5;
|
|
|
- if (this.filterData.codename_c)url+="&codename_c="+this.filterData.codename_c;
|
|
|
- if (this.filterData.carriername)url+="&carriername="+this.filterData.carriername;
|
|
|
- if (this.filterData.soreference1)url+="&soreference1="+this.filterData.soreference1;
|
|
|
- if (this.filterData.issuepartyname)url+="&issuepartyname="+this.filterData.issuepartyname;
|
|
|
- if (this.filterData.notes){
|
|
|
- url+="¬es="+this.filterData.notes;
|
|
|
- if (this.filterData.addtime)url+="&addtime="+this.filterData.addtime;
|
|
|
+ href(page){
|
|
|
+ let url = document.URL;
|
|
|
+ if (url.indexOf('page='+this.page) != -1){
|
|
|
+ url = url.replace("page="+this.page,"page="+page);
|
|
|
+ }else{
|
|
|
+ if (url.indexOf('?') == -1) url += "?page="+page;
|
|
|
+ else url += "&page="+page;
|
|
|
}
|
|
|
- if (this.filterData.alternate_sku1)url+="&alternate_sku1="+this.filterData.alternate_sku1;
|
|
|
- if (this.filterData.waveno)url+="&waveno="+this.filterData.waveno;
|
|
|
- if (this.filterData.edisendflag2) url+="&edisendflag2="+this.filterData.edisendflag2;
|
|
|
window.location.href=url;
|
|
|
},
|
|
|
- //提交表单
|
|
|
- submit:function(){
|
|
|
- let form = $("#form");
|
|
|
- form.submit();
|
|
|
- },
|
|
|
//全选事件
|
|
|
checkAll(e){
|
|
|
if (e.target.checked){
|
|
|
@@ -397,45 +278,16 @@
|
|
|
this.checkData = [];
|
|
|
}
|
|
|
},
|
|
|
- //寻找客户
|
|
|
- owner_seek:function (e) {
|
|
|
- let _this=this;
|
|
|
- let $val=e.target.value;
|
|
|
- if($val==='')_this.filterData.customerid='';
|
|
|
- else
|
|
|
- _this.owners.forEach(function (owner) {
|
|
|
- if (owner.descr_c.includes($val)){
|
|
|
- _this.filterData.customerid=owner.customerid;
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
unfold(orderno){
|
|
|
this.$set(this.isBtn,orderno,true);
|
|
|
setTimeout(function () {
|
|
|
$(".tooltipTarget").tooltip({'trigger':'hover'});
|
|
|
},1);
|
|
|
},
|
|
|
- orderExport(val){
|
|
|
- if (val==1){
|
|
|
- if (this.checkData.length<1) {
|
|
|
- tempTip.setDuration(3000);
|
|
|
- tempTip.showSuccess('没有勾选任何记录')
|
|
|
- return;
|
|
|
- }
|
|
|
- window.open("{{url('order/index/delivering?checkData=')}}"+this.checkData);
|
|
|
- return;
|
|
|
- }
|
|
|
- if (this.sum>10000){
|
|
|
- if (!confirm("需要导出的条数超过了一万条,等待时间较长,是否继续?"))return;
|
|
|
- }
|
|
|
- window.open("{{url('order/index/delivering?ordertime_start=')}}"+this.filterData.ordertime_start
|
|
|
- +"&ordertime_end="+this.filterData.ordertime_end+"&orderdate_start="+this.filterData.orderdate_start
|
|
|
- +"&orderdate_end="+this.filterData.orderdate_end+"&orderno="+this.filterData.orderno
|
|
|
- +"&soreference5="+this.filterData.soreference5+"&export="+true+"&codename_c="+this.filterData.codename_c
|
|
|
- +"&issuepartyname="+this.filterData.issuepartyname+"&customerid="+this.filterData.customerid
|
|
|
- +"&soreference1="+this.filterData.soreference1+"¬es="+this.filterData.notes
|
|
|
- +"&addtime="+this.filterData.addtime+"&alternate_sku1="+this.filterData.alternate_sku1+"&waveno="+this.filterData.waveno
|
|
|
- +"&edisendflag2="+this.filterData.edisendflag2);
|
|
|
+ orderExport(checkAllSign){
|
|
|
+ let url = '{{url('order/index/delivering')}}';
|
|
|
+ let token='{{ csrf_token() }}';
|
|
|
+ excelExport(checkAllSign,this.checkData,url,this.sum,token);
|
|
|
},
|
|
|
modal(){
|
|
|
$("#myModal").modal('show');
|
|
|
@@ -468,7 +320,6 @@
|
|
|
alert('网络连接错误:'+e);
|
|
|
tempTip.setDuration(2500);
|
|
|
tempTip.show('标记勾选内容冻结失败,网络连接错误:'+e);
|
|
|
- console.log(e);
|
|
|
})
|
|
|
},
|
|
|
//批量取消分配
|
|
|
@@ -500,7 +351,6 @@
|
|
|
alert('网络连接错误:'+e);
|
|
|
tempTip.setDuration(2500);
|
|
|
tempTip.show('标记勾选内容取消分配失败,网络连接错误:'+e);
|
|
|
- console.log(e);
|
|
|
})
|
|
|
},
|
|
|
batchComments(){
|