|
|
@@ -5,168 +5,167 @@
|
|
|
@component('rejected.menu')@endcomponent
|
|
|
</div>
|
|
|
<div class="container-fluid">
|
|
|
- <div class="card" style="min-width: 2070px;">
|
|
|
- <div class="card-body d-none" id="list">
|
|
|
+ <div style="min-width: 2070px;">
|
|
|
+ <div class="d-none mt-3" id="list">
|
|
|
@if(Session::has('successTip'))
|
|
|
<div class="alert alert-success h1">{{Session::get('successTip')}}</div>
|
|
|
@endif
|
|
|
- <div class="card">
|
|
|
- <div class="card-body">
|
|
|
+
|
|
|
+
|
|
|
+ <div class="col-12" style="background: #fff;">
|
|
|
<div class="row">
|
|
|
- <div class="col-12">
|
|
|
- <div class="row">
|
|
|
- <div class="col" v-if="isBeingFilterConditions">
|
|
|
- <label for="">
|
|
|
- <a :href="'{{url('rejected').'?paginate='}}'+filterParams.paginate"><span class="btn btn-warning text-dark">清除过滤条件</span></a>
|
|
|
- </label>
|
|
|
- </div>
|
|
|
- <table class="table mb-n3 table-sm table-bordered">
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <span class="text-muted">每页显示记录:</span>
|
|
|
- </td>
|
|
|
- <td colspan="9">
|
|
|
- <select name="" id="setPaginate" class="tooltipTarget form-control-sm" style="vertical-align: middle"
|
|
|
- @change="setPaginate" v-model="filterParams.paginate">
|
|
|
- <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 class="text-muted">按条件过滤:</td>
|
|
|
- <td colspan="2">
|
|
|
- <label for="">时间:</label>
|
|
|
- <input type="date" name="created_at_start" class="form-control-sm tooltipTarget" style="width:140px"
|
|
|
- :class="filterParams.created_at_start?'bg-warning':''" v-model="filterParams.created_at_start"
|
|
|
- @keypress="created_at_startEntering" @change="created_at_startChange" title="选择显示指定日期的起始时间">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <label for="">客户:</label>
|
|
|
- <input type="text" class="form-control-sm tooltipTarget" placeholder="查找"
|
|
|
- style="width:70px" @input="locateOwner" @keypress="owner_idEntering"
|
|
|
- title="输入关键词快速定位下拉列表,回车确定">
|
|
|
- <select name="owner_id" id="owner_id" class="form-control-sm tooltipTarget"
|
|
|
- :class="filterParams.owner_id?'bg-warning':''" v-model="filterParams.owner_id"
|
|
|
- title="选择要显示的客户" @change="owner_idChange">
|
|
|
- <option value="" selected>全部客户</option>
|
|
|
- <option v-for="owner in owners" :value="owner.id">@{{ owner.name }}</option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <label for="">订单号:</label>
|
|
|
- <input type="text" class="form-control-sm tooltipTarget" placeholder="搜索订单号" name="order_number"
|
|
|
- :class="filterParams.order_number?'bg-warning':''" v-model="filterParams.order_number"
|
|
|
- @keypress="order_numberEntering" title="15天以内的支持模糊搜索,回车提交">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <label for="">退回单号:</label>
|
|
|
- <input type="text" class="form-control-sm tooltipTarget" placeholder="搜索退回单号" name="logistic_number_return"
|
|
|
- :class="filterParams.logistic_number_return?'bg-warning':''"
|
|
|
- @keypress="logistic_number_returnEntering" title="15天以内的支持模糊搜索,回车提交">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <label for="">审核:</label>
|
|
|
- <select name="is_checked" class="form-control-sm" @change="is_checkedChange"
|
|
|
- :class="filterParams.is_checked?'bg-warning':''">
|
|
|
- <option value=""></option>
|
|
|
- <option value="1">已审核</option>
|
|
|
- <option value="0">未审核</option>
|
|
|
- </select></td>
|
|
|
- <td></td>
|
|
|
- <td width="16%"></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td ></td>
|
|
|
- <td colspan="2">
|
|
|
- <label for=""> </label>
|
|
|
- <input type="date" name="created_at_end" class="form-control-sm tooltipTarget" style="width:140px"
|
|
|
- :class="filterParams.created_at_end?'bg-warning':''"
|
|
|
- @keypress="created_at_endEntering" @change="created_at_endChange" title="选择显示指定日期的结束时间">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <label for="">商品条码:</label>
|
|
|
- <input type="text" class="form-control-sm tooltipTarget" placeholder="包含该商品的退单" name="barcode_goods"
|
|
|
- :class="filterParams.barcode_goods?'bg-warning':''" title="可模糊匹配右边未填完的部分,按回车提交"
|
|
|
- @keypress="barcode_goodsEntering">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <label for="">是否正品:</label>
|
|
|
- <select name="id_quality_label" id="id_quality_label" class="form-control-sm tooltipTarget"
|
|
|
- :class="filterParams.id_quality_label?'bg-warning':''"
|
|
|
- title="正品仅显示全部是正品的退单,但残次显示的是包含有残次的退单" @change="id_quality_labelChange">
|
|
|
- <option value="" selected></option>
|
|
|
- <option v-for="qualityLabel in qualityLabels" :value="qualityLabel.id">@{{ qualityLabel.name }}</option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <label for="">寄件人手机:</label>
|
|
|
- <input type="text" class="form-control-sm tooltipTarget" name="mobile_sender"
|
|
|
- :class="filterParams.mobile_sender?'bg-warning':''"
|
|
|
- @change="mobile_senderChange" title="输入完成敲回车提交">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <label for="">审核批次号:</label>
|
|
|
- <input type="text" class="form-control-sm tooltipTarget" name="checked_numbers"
|
|
|
- :class="filterParams.checked_numbers?'bg-warning':''"
|
|
|
- @change="checked_numbersChange" title="支持右位留空的模糊搜索">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <label for="">是否入库:</label>
|
|
|
- <select name="is_loaded" id="is_loaded" class="form-control-sm"
|
|
|
- :class="filterParams.is_loaded?'bg-warning':''"
|
|
|
- title="" @change="is_loadedChange">
|
|
|
- <option value="" selected></option>
|
|
|
- <option value="1">是</option>
|
|
|
- <option value="0">否</option>
|
|
|
- <option value="null">无需入库</option>
|
|
|
- <option value="2">待推单</option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- <td></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <span class="text-muted">操作选定记录:</span>
|
|
|
- </td>
|
|
|
- <td colspan="9">
|
|
|
- @can('退货管理-审核')
|
|
|
- <span class="btn btn-sm" @click="checkAll" style="cursor: pointer"
|
|
|
- :class="[rejectedBills_checkBoxes.length>0?'btn-dark':'btn-outline-dark']">审核</span>
|
|
|
- @endcan
|
|
|
- @can('退货管理-编辑')
|
|
|
- <span class="btn btn-sm" @click="finishAll" style="cursor: pointer"
|
|
|
- :class="[rejectedBills_checkBoxes.length>0?'btn-dark':'btn-outline-dark']">完结</span>
|
|
|
- @endcan
|
|
|
- <select name="" id="setIsLoaded_batch" class="tooltipTarget form-control-sm" style="vertical-align: middle"
|
|
|
- @change="exportExcel" title="导出所有页将会以搜索条件得到的过滤结果,将其全部记录(每一页)导出"
|
|
|
- :class="[rejectedBills_checkBoxes.length>0?'btn-dark':'btn-outline-dark']">
|
|
|
- <option value="">导出Excel</option>
|
|
|
- <option value="1">导出勾选内容</option>
|
|
|
- <option value="2">导出所有页</option>
|
|
|
- </select>
|
|
|
- @can('退货管理-编辑')
|
|
|
- <select name="" id="setIsLoaded_batch" class="tooltipTarget form-control-sm" style="vertical-align: middle"
|
|
|
- title="将勾选记录的入库状态设定为是或否,仅对未完结状态的记录有效" @change="setIsLoaded_batch"
|
|
|
- :class="[rejectedBills_checkBoxes.length>0?'btn-dark':'btn-outline-dark']">
|
|
|
- <option value="">修改入库</option>
|
|
|
- <option value="1">设定为是</option>
|
|
|
- <option value="2">设定为否</option>
|
|
|
- <option value="null">无需入库</option>
|
|
|
- </select>
|
|
|
- @endcan
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
+ <div class="col" v-if="isBeingFilterConditions">
|
|
|
+ <label for="">
|
|
|
+ <a :href="'{{url('rejected').'?paginate='}}'+filterParams.paginate"><span class="btn btn-warning text-dark">清除过滤条件</span></a>
|
|
|
+ </label>
|
|
|
</div>
|
|
|
+ <table class="table table-sm table-bordered m-0">
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <span class="text-muted">每页显示记录:</span>
|
|
|
+ </td>
|
|
|
+ <td colspan="9">
|
|
|
+ <select name="" id="setPaginate" class="tooltipTarget form-control-sm" style="vertical-align: middle"
|
|
|
+ @change="setPaginate" v-model="filterParams.paginate">
|
|
|
+ <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 class="text-muted">按条件过滤:</td>
|
|
|
+ <td colspan="2">
|
|
|
+ <label for="">时间:</label>
|
|
|
+ <input type="date" name="created_at_start" class="form-control-sm tooltipTarget" style="width:140px"
|
|
|
+ :class="filterParams.created_at_start?'bg-warning':''" v-model="filterParams.created_at_start"
|
|
|
+ @keypress="created_at_startEntering" @change="created_at_startChange" title="选择显示指定日期的起始时间">
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <label for="">客户:</label>
|
|
|
+ <input type="text" class="form-control-sm tooltipTarget" placeholder="查找"
|
|
|
+ style="width:70px" @input="locateOwner" @keypress="owner_idEntering"
|
|
|
+ title="输入关键词快速定位下拉列表,回车确定">
|
|
|
+ <select name="owner_id" id="owner_id" class="form-control-sm tooltipTarget"
|
|
|
+ :class="filterParams.owner_id?'bg-warning':''" v-model="filterParams.owner_id"
|
|
|
+ title="选择要显示的客户" @change="owner_idChange">
|
|
|
+ <option value="" selected>全部客户</option>
|
|
|
+ <option v-for="owner in owners" :value="owner.id">@{{ owner.name }}</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <label for="">订单号:</label>
|
|
|
+ <input type="text" class="form-control-sm tooltipTarget" placeholder="搜索订单号" name="order_number"
|
|
|
+ :class="filterParams.order_number?'bg-warning':''" v-model="filterParams.order_number"
|
|
|
+ @keypress="order_numberEntering" title="15天以内的支持模糊搜索,回车提交">
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <label for="">退回单号:</label>
|
|
|
+ <input type="text" class="form-control-sm tooltipTarget" placeholder="搜索退回单号" name="logistic_number_return"
|
|
|
+ :class="filterParams.logistic_number_return?'bg-warning':''"
|
|
|
+ @keypress="logistic_number_returnEntering" title="15天以内的支持模糊搜索,回车提交">
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <label for="">审核:</label>
|
|
|
+ <select name="is_checked" class="form-control-sm" @change="is_checkedChange"
|
|
|
+ :class="filterParams.is_checked?'bg-warning':''">
|
|
|
+ <option value=""></option>
|
|
|
+ <option value="1">已审核</option>
|
|
|
+ <option value="0">未审核</option>
|
|
|
+ </select></td>
|
|
|
+ <td></td>
|
|
|
+ <td width="16%"></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td ></td>
|
|
|
+ <td colspan="2">
|
|
|
+ <label for=""> </label>
|
|
|
+ <input type="date" name="created_at_end" class="form-control-sm tooltipTarget" style="width:140px"
|
|
|
+ :class="filterParams.created_at_end?'bg-warning':''"
|
|
|
+ @keypress="created_at_endEntering" @change="created_at_endChange" title="选择显示指定日期的结束时间">
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <label for="">商品条码:</label>
|
|
|
+ <input type="text" class="form-control-sm tooltipTarget" placeholder="包含该商品的退单" name="barcode_goods"
|
|
|
+ :class="filterParams.barcode_goods?'bg-warning':''" title="可模糊匹配右边未填完的部分,按回车提交"
|
|
|
+ @keypress="barcode_goodsEntering">
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <label for="">是否正品:</label>
|
|
|
+ <select name="id_quality_label" id="id_quality_label" class="form-control-sm tooltipTarget"
|
|
|
+ :class="filterParams.id_quality_label?'bg-warning':''"
|
|
|
+ title="正品仅显示全部是正品的退单,但残次显示的是包含有残次的退单" @change="id_quality_labelChange">
|
|
|
+ <option value="" selected></option>
|
|
|
+ <option v-for="qualityLabel in qualityLabels" :value="qualityLabel.id">@{{ qualityLabel.name }}</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <label for="">寄件人手机:</label>
|
|
|
+ <input type="text" class="form-control-sm tooltipTarget" name="mobile_sender"
|
|
|
+ :class="filterParams.mobile_sender?'bg-warning':''"
|
|
|
+ @change="mobile_senderChange" title="输入完成敲回车提交">
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <label for="">审核批次号:</label>
|
|
|
+ <input type="text" class="form-control-sm tooltipTarget" name="checked_numbers"
|
|
|
+ :class="filterParams.checked_numbers?'bg-warning':''"
|
|
|
+ @change="checked_numbersChange" title="支持右位留空的模糊搜索">
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <label for="">是否入库:</label>
|
|
|
+ <select name="is_loaded" id="is_loaded" class="form-control-sm"
|
|
|
+ :class="filterParams.is_loaded?'bg-warning':''"
|
|
|
+ title="" @change="is_loadedChange">
|
|
|
+ <option value="" selected></option>
|
|
|
+ <option value="1">是</option>
|
|
|
+ <option value="0">否</option>
|
|
|
+ <option value="null">无需入库</option>
|
|
|
+ <option value="2">待推单</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <td></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <span class="text-muted">操作选定记录:</span>
|
|
|
+ </td>
|
|
|
+ <td colspan="9">
|
|
|
+ @can('退货管理-审核')
|
|
|
+ <span class="btn btn-sm" @click="checkAll" style="cursor: pointer"
|
|
|
+ :class="[rejectedBills_checkBoxes.length>0?'btn-dark':'btn-outline-dark']">审核</span>
|
|
|
+ @endcan
|
|
|
+ @can('退货管理-编辑')
|
|
|
+ <span class="btn btn-sm" @click="finishAll" style="cursor: pointer"
|
|
|
+ :class="[rejectedBills_checkBoxes.length>0?'btn-dark':'btn-outline-dark']">完结</span>
|
|
|
+ @endcan
|
|
|
+ <select name="" id="setIsLoaded_batch" class="tooltipTarget form-control-sm" style="vertical-align: middle"
|
|
|
+ @change="exportExcel" title="导出所有页将会以搜索条件得到的过滤结果,将其全部记录(每一页)导出"
|
|
|
+ :class="[rejectedBills_checkBoxes.length>0?'btn-dark':'btn-outline-dark']">
|
|
|
+ <option value="">导出Excel</option>
|
|
|
+ <option value="1">导出勾选内容</option>
|
|
|
+ <option value="2">导出所有页</option>
|
|
|
+ </select>
|
|
|
+ @can('退货管理-编辑')
|
|
|
+ <select name="" id="setIsLoaded_batch" class="tooltipTarget form-control-sm" style="vertical-align: middle"
|
|
|
+ title="将勾选记录的入库状态设定为是或否,仅对未完结状态的记录有效" @change="setIsLoaded_batch"
|
|
|
+ :class="[rejectedBills_checkBoxes.length>0?'btn-dark':'btn-outline-dark']">
|
|
|
+ <option value="">修改入库</option>
|
|
|
+ <option value="1">设定为是</option>
|
|
|
+ <option value="0">设定为否</option>
|
|
|
+ <option value="null">无需入库</option>
|
|
|
+ <option value="2">待推单</option>
|
|
|
+ </select>
|
|
|
+ @endcan
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <table class="table table-striped table-sm table-bordered table-hover">
|
|
|
+
|
|
|
+
|
|
|
+ <table class="table table-striped table-sm table-bordered table-hover mt-3" style="background: #fff;">
|
|
|
<tr>
|
|
|
<th>
|
|
|
<input type="checkbox" class="form-control-sm tooltipTarget" title="全选"
|
|
|
@@ -297,9 +296,9 @@
|
|
|
{id:'{{$qualityLabel->id}}',name:'{{$qualityLabel->name}}'},
|
|
|
@endforeach
|
|
|
];
|
|
|
- @if(isset($paginateParams))
|
|
|
- let paginateParams={!! json_encode($paginateParams) !!};
|
|
|
- @endif
|
|
|
+ @if(isset($paginateParams))
|
|
|
+ let paginateParams={!! json_encode($paginateParams) !!};
|
|
|
+ @endif
|
|
|
let total='{{$rejectedBills->total()}}';
|
|
|
let editUrl = "{{url('rejectedBill')}}/";
|
|
|
let destroyUrl = "{{url('rejectedBill')}}/";
|