|
|
@@ -4,7 +4,7 @@
|
|
|
@section('content')
|
|
|
@component("order.issue.menu")@endcomponent
|
|
|
<div class="container-fluid" id="issue_div">
|
|
|
- <div style="min-width: 3000px;" >
|
|
|
+ <div style="min-width: 3300px;" >
|
|
|
<div id="list" class="d-none container-fluid">
|
|
|
<div id="form_div" style="min-width: 2250px;"></div>
|
|
|
<div class="form-inline mt-1 ">
|
|
|
@@ -19,20 +19,34 @@
|
|
|
<a class="dropdown-item" @click="orderIssueExport(true)" href="javascript:">导出所有页</a>
|
|
|
</div>
|
|
|
</span>
|
|
|
- @cannot('客户不可见')
|
|
|
+ @cannot('订单管理-问题件-客户不可见')
|
|
|
<span class="ml-1">
|
|
|
- <button type="button" class="btn btn-outline-dark btn-sm form-control-sm to ltipTarget"
|
|
|
- @click="endOrderIssue"
|
|
|
- :class="[checkData.length>0?'btn-dark text-light':'']">完结</button>
|
|
|
+ <button type="button" class="btn btn-outline-dark btn-sm form-control-sm tooltipTarget" @click="endOrderIssue" :class="[checkData.length>0?'btn-dark text-light':'']">
|
|
|
+ 完结
|
|
|
+ </button>
|
|
|
</span>
|
|
|
- @endcannot
|
|
|
+ @endcannot @can('订单管理-问题件-删除')
|
|
|
+ <span class="ml-1">
|
|
|
+ <button type="button" class="btn btn-outline-dark btn-sm form-control-sm tooltipTarget" @click="batchDeleteOrderIssue">
|
|
|
+ 删除
|
|
|
+ </button>
|
|
|
+ </span>
|
|
|
+ @endcan
|
|
|
+ @can('订单管理-问题件-编辑')
|
|
|
+ <span class="ml-1">
|
|
|
+ <button type="button" class="btn btn-outline-dark btn-sm form-control-sm tooltipTarget" @click="batchStoreLogsModel">
|
|
|
+ 修改
|
|
|
+ </button>
|
|
|
+ </span>
|
|
|
+ @endcan
|
|
|
<span class="ml-1">
|
|
|
- <button type="button" class="btn btn-outline-dark btn-sm form-control-sm tooltipTarget"
|
|
|
- @click="copyOrderNo">复制快递单号</button>
|
|
|
+ <button type="button" class="btn btn-outline-dark btn-sm form-control-sm tooltipTarget" @click="copyOrderNo">
|
|
|
+ 复制快递单号
|
|
|
+ </button>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <table class="table table-sm table-bordered table-hover card-body table-responsive-sm p-0 m-0 "
|
|
|
- style="background: #fff;min-width: 3000px;">
|
|
|
+ {{--table table-sm table-bordered table-hover card-body table-responsive-sm p-0 m-0 --}}
|
|
|
+ <table class="table table-sm table-striped table-bordered table-hover card-body p-0 m-0" style="background: #fff;min-width: 3000px;">
|
|
|
<tr class="tr-yellow" align="center">
|
|
|
<th class=" font-weight-bolder header-1" ></th>
|
|
|
<th class="td-yellow font-weight-bolder original-class table-head-warning header-2">
|
|
|
@@ -41,14 +55,13 @@
|
|
|
隐藏运单列
|
|
|
</button>
|
|
|
</th>
|
|
|
-
|
|
|
<th class="font-weight-bolder header-3">
|
|
|
|
|
|
- @cannot('订单管理-问题件-客户不可见')
|
|
|
+{{-- @cannot('订单管理-问题件-客户不可见')--}}
|
|
|
<button class="btn btn-sm btn-outline-secondary float-left" v-if="isShowRejectedBill" @click="hideRejectedBill">
|
|
|
隐藏退单列
|
|
|
</button>
|
|
|
- @endcannot
|
|
|
+{{-- @endcannot--}}
|
|
|
情况说明
|
|
|
@cannot('订单管理-问题件-客户不可见')
|
|
|
<button class="btn btn-sm btn-outline-secondary" v-if="isShowSecondOrderInfo" @click="hideSecondOrder">
|
|
|
@@ -98,10 +111,10 @@
|
|
|
<th class="tow-layer align-middle td-yellow" v-if="isShowOrderInfo" rowspan="2" style="min-width:300px">收货人地址</th>
|
|
|
<th class="tow-layer align-middle td-yellow" v-if="isShowOrderInfo" colspan="3" style="min-width:300px">原始商品明细</th>
|
|
|
{{-- <th class="three-layer align-middle" rowspan="2" >退回单号</th>--}}
|
|
|
-{{-- @cannot('客户不可见')--}}
|
|
|
+{{-- @cannot('订单管理-问题件-客户不可见')--}}
|
|
|
<th class="three-layer align-middle" rowspan="2" v-if="!isShowRejectedBill" style="min-width:50px">展开</th>
|
|
|
|
|
|
- <th class=" align-middle" rowspan="2" v-if="isShowRejectedBill" style="min-width:75px">退回单号</th>
|
|
|
+ <th class=" align-middle" rowspan="2" v-if="isShowRejectedBill" style="min-width:220px">退回单号</th>
|
|
|
<th class="three-layer align-middle" colspan="5" v-if="isShowRejectedBill" style="min-width: 450px">返回商品明细</th>
|
|
|
{{-- @endcannot--}}
|
|
|
<th class=" bg-whit align-middle" rowspan="2" style="min-width: 115px">情况说明</th>
|
|
|
@@ -158,8 +171,7 @@
|
|
|
@cannot('订单管理-问题件-客户不可见')
|
|
|
<td class="child-layer-1">
|
|
|
@can('订单管理-问题件-编辑')
|
|
|
- <button type="button" class="btn btn-sm btn-outline-secondary"
|
|
|
- @click="disposeOrderIssue($event)" :data-value="orderIssue.id"
|
|
|
+ <button type="button" class="btn btn-sm btn-outline-secondary" @click="disposeOrderIssue($event,orderIssue)" :data-value="orderIssue.id"
|
|
|
v-if="orderIssue.is_new_rejecting === '有'">有
|
|
|
</button>
|
|
|
<span v-else>@{{ orderIssue.is_new_rejecting }}</span>
|
|
|
@@ -178,12 +190,26 @@
|
|
|
置顶
|
|
|
</button>
|
|
|
</td>
|
|
|
- <td class="child-layer-1">@{{ orderIssue.rejecting_status }}</td>{{--退件状态--}}
|
|
|
+ <td class="child-layer-1">
|
|
|
+ @can('订单管理-问题件-编辑')
|
|
|
+ <select class="form-control form-control-sm" :value="orderIssue.rejecting_status" @change="updateOrderIssue(orderIssue,'rejecting_status',$event)">
|
|
|
+ <option v-for="item in rejectingStatus" :value="item.name">@{{ item.value }}</option>
|
|
|
+ </select>
|
|
|
+ @else
|
|
|
+ @{{ orderIssue.rejecting_status }}
|
|
|
+ @endcan
|
|
|
+ </td>{{--退件状态--}}
|
|
|
@endcan
|
|
|
@endcannot
|
|
|
-
|
|
|
-
|
|
|
- <td class="child-layer-1">@{{ orderIssue.final_status }}</td>{{--最终状态--}}
|
|
|
+ <td class="child-layer-1">
|
|
|
+ @can('订单管理-问题件-编辑')
|
|
|
+ <select class="form-control form-control-sm" :value="orderIssue.final_status" @change="updateOrderIssue(orderIssue,'final_status',$event)">
|
|
|
+ <option v-for="item in finalStatus" :value="item">@{{ item }}</option>
|
|
|
+ </select>
|
|
|
+ @else
|
|
|
+ @{{ orderIssue.final_status }}
|
|
|
+ @endcan
|
|
|
+ </td>{{--最终状态--}}
|
|
|
@cannot('订单管理-问题件-客户不可见') {{--登记日期--}}
|
|
|
<td class="toptd td-yellow child-layer-2">
|
|
|
<div v-if="orderIssue.remark" class="bg-light-yellow text-danger top text-left" data-toggle="tooltip" style="opacity: 0.1;position: absolute;z-index: 1">
|
|
|
@@ -246,7 +272,10 @@
|
|
|
<template v-for="packages in orderIssue.order.packages">
|
|
|
<tr v-for="item in packages.commodities" class="text-center" :data-value="orderIssue.orderCount += 1" align="center">
|
|
|
<td >@{{ item.commodity.sku }}</td>
|
|
|
- <td >@{{ item.commodity.name }}</td>
|
|
|
+ <td>
|
|
|
+ <p class="text-truncate text-primary m-0 p-0" style="width: 100px;cursor:pointer;text-decoration: underline" @click="nowrapText($event)">@{{ item.commodity.name }}</p>
|
|
|
+ <p class="text-nowrap m-0 p-0" style="display: none;cursor:pointer" @click="truncateText($event)">@{{ item.commodity.name }}</p>
|
|
|
+ </td>
|
|
|
<td :data-value="orderIssue.orderPackagecount += item.amount ">@{{ item.amount }}</td>
|
|
|
</tr>
|
|
|
</template>
|
|
|
@@ -261,26 +290,30 @@
|
|
|
{{--商品明细 结束--}}
|
|
|
|
|
|
{{--退单商品明细 开始--}}
|
|
|
-{{-- @cannot('客户不可见')--}}
|
|
|
+{{-- @cannot('订单管理-问题件-客户不可见')--}}
|
|
|
|
|
|
<td class="text-muted child-layer-3-hide" v-if="isShowRejectedBill">
|
|
|
- <template v-if="orderIssue.rejected_bill">
|
|
|
- @{{ orderIssue.rejected_bill.logistic_number_return }}
|
|
|
- </template>
|
|
|
+ @can('订单管理-问题件-编辑')
|
|
|
+ <input type="text" class="form-control form-control-sm" :value="orderIssue.logistic_number_return" @keydown.enter="changeRejectedBill(orderIssue,$event)">
|
|
|
+ @else
|
|
|
+ @{{ orderIssue.logistic_number_return }}
|
|
|
+ @endcan
|
|
|
</td>
|
|
|
{{-- @cannot('订单管理-问题件-客户不可见')--}}
|
|
|
<td class="p-0 m-0 child-layer-3" v-if="!isShowRejectedBill && index === 0 " style="width:50px;" :rowspan="orderIssues.length" >
|
|
|
<span class="btn btn-outline-secondary " @click="showRejectedBill" :style="orderIssues.length>4 ?'{height: 200px;line-height: 100px':''" >展开退单列</span>
|
|
|
</td>
|
|
|
- <td class="p-0 child-layer-3-hide" :id="orderIssue.id+'rejectedBill'" valign="middle" align="center" colspan="5"
|
|
|
- v-if="isShowRejectedBill">
|
|
|
+ <td class="p-0 child-layer-3-hide" :id="orderIssue.id+'rejectedBill'" valign="middle" align="center" colspan="5" v-if="isShowRejectedBill">
|
|
|
<div v-if="orderIssue.rejected_bill" class="m-0 p-0">
|
|
|
<table v-if="orderIssue.rejected_bill.items" class="table table-sm m-0" :class="orderIssue.rejected_bill.items.length > 1 ? 'collapse' : '' " :id="'rejectedBill'+orderIssue.id"
|
|
|
:data-value="orderIssue.rejectedCount = 0">
|
|
|
<tr v-for="item in orderIssue.rejected_bill.items"
|
|
|
:data-value="orderIssue.rejected_bill.sum += item.amount" align="center">
|
|
|
<td style="min-width: 75px" >@{{ item.barcode_goods }}</td>
|
|
|
- <td style="min-width: 100px" >@{{ item.name_goods }}</td>
|
|
|
+ <td style="min-width: 100px" >
|
|
|
+ <p class="text-truncate text-primary m-0 p-0" style="width: 100px;cursor:pointer;text-decoration: underline" @click="nowrapText($event)">@{{ item.name_goods }}</p>
|
|
|
+ <p class="text-nowrap m-0 p-0" style="display: none;cursor:pointer" @click="truncateText($event)">@{{ item.name_goods }}</p>
|
|
|
+ </td>
|
|
|
<td style="min-width: 50px" :data-value="orderIssue.rejectedCount += item.amount">@{{ item.amount }}</td>
|
|
|
<td style="min-width: 50px" >@{{ item.quality_label }}</td>
|
|
|
<td style="min-width: 100px" >@{{ item.remark }}</td>
|
|
|
@@ -296,18 +329,30 @@
|
|
|
{{--退单商品明细 结束--}}
|
|
|
|
|
|
<td class="child-layer-3">@{{ orderIssue.result_explain}}</td>
|
|
|
- <td class="child-layer-3"><span v-if="orderIssue.issue_type">@{{ orderIssue.issue_type.name}}</span></td>
|
|
|
+ <td class="child-layer-3">
|
|
|
+ @can('订单管理-问题件-编辑')
|
|
|
+ <select class="form-control form-control-sm" :value="orderIssue.order_issue_type_id" @change="updateOrderIssue(orderIssue,'order_issue_type_id',$event)">
|
|
|
+ <option value></option>
|
|
|
+ <option v-for="type in orderIssueType" :value="type.name" >@{{ type.value }}</option>
|
|
|
+ <select>
|
|
|
+ @else
|
|
|
+ <span v-if="orderIssue.issue_type">
|
|
|
+ @{{ orderIssue.issue_type.name}}
|
|
|
+ </span>
|
|
|
+ @endcan
|
|
|
+ </td>
|
|
|
|
|
|
{{--处理结果--}}
|
|
|
<td class=" m-0 p-0 log-td child-layer-3" valign="middle" align="center" v-on:mouseover="showAddBtn($event)" v-on:mouseleave="hideAddBtn($event)" colspan="3">
|
|
|
- <div class="addLogD v row m-0 p-0" :id="'AddLog_'+orderIssue.id" style="display: none">
|
|
|
+ <div class="addLogDiv row m-0 p-0 form-group" :id="'AddLog_'+orderIssue.id" style="display: none;">
|
|
|
<input type="hidden" name="id" :value="orderIssue.id">
|
|
|
- <div class="form-group m-2">
|
|
|
- <input type="text" name="content" class="form-control" required>
|
|
|
+ <div style="width: 45px"></div>
|
|
|
+ <div class="form-inline m-2">
|
|
|
+ <input type="text" name="content" class="form-control" style="width: 300px" required >
|
|
|
+ <button type="button" class="btn btn-primary ml-2"
|
|
|
+ @click="addOrderIssueLog('AddLog_'+orderIssue.id)">添加
|
|
|
+ </button>
|
|
|
</div>
|
|
|
- <button type="button" class="btn btn-primary m-2 "
|
|
|
- @click="addOrderIssueLog('AddLog_'+orderIssue.id)">添加
|
|
|
- </button>
|
|
|
</div>
|
|
|
|
|
|
<div style="position: absolute;display: none;margin-top: -35px" class="add-btn" :id="'AddBtn'+orderIssue.id">
|
|
|
@@ -338,7 +383,7 @@
|
|
|
|
|
|
</div>
|
|
|
</td>
|
|
|
- @cannot('客户不可见')
|
|
|
+ @cannot('订单管理-问题件-客户不可见')
|
|
|
<td class="p-0 m-0 h-100 child-layer-3" v-if="!isShowSecondOrderInfo && index === 0" style="width:50px;" :rowspan="orderIssues.length" >
|
|
|
<span class="btn btn-outline-secondary " @click="showSecondeOrder" :style="orderIssues.length>4 ?'{height: 200px;line-height: 100px':''">展开运单列</span>
|
|
|
</td>
|
|
|
@@ -366,7 +411,7 @@
|
|
|
</button>
|
|
|
</template>
|
|
|
</td>
|
|
|
- <td class="child-layer-3-hide p-0" colspan="3"v-if="isShowSecondOrderInfo">
|
|
|
+ <td class="child-layer-3-hide p-0" colspan="3" v-if="isShowSecondOrderInfo">
|
|
|
<template v-if="orderIssue.second_order" class=" p-0">
|
|
|
<div class="m-0 p-0" :class="orderIssue.secondeOrderCount > 1 ? 'collapse':''"
|
|
|
:id="'secondOrder'+orderIssue.id">
|
|
|
@@ -376,7 +421,10 @@
|
|
|
<template v-for="packages in orderIssue.second_order.packages">
|
|
|
<tr v-for="item in packages.commodities" :data-value="orderIssue.secondeOrderCount += 1">
|
|
|
<td >@{{ item.commodity.sku }}</td>
|
|
|
- <td >@{{ item.commodity.name }}</td>
|
|
|
+ <td >
|
|
|
+ <p class="text-truncate text-primary m-0 p-0" style="width: 100px;cursor:pointer;text-decoration: underline" @click="nowrapText($event)">@{{ item.commodity.name }}</p>
|
|
|
+ <p class="text-nowrap m-0 p-0" style="display: none;cursor:pointer" @click="truncateText($event)">@{{ item.commodity.name }}</p>
|
|
|
+ </td>
|
|
|
<td :data-value="orderIssue.secondeOrderItems+=item.amount">@{{ item.amount }}</td>
|
|
|
</tr>
|
|
|
</template>
|
|
|
@@ -386,42 +434,96 @@
|
|
|
v-if="orderIssue.secondeOrderCount > 0"
|
|
|
:id="'secondOrderBtn'+orderIssue.id"
|
|
|
:data-target="'#secondOrder'+orderIssue.id"
|
|
|
- @click="toggleSecond(orderIssue.id,orderIssue.secondeOrderItems)">商品@{{ orderIssue.secondeOrderItems }}件,点击展开
|
|
|
+ @click="toggleSecond(orderIssue.id,orderIssue.secondeOrderItems)">
|
|
|
+ 商品@{{ orderIssue.secondeOrderItems }}件,点击展开
|
|
|
</button>
|
|
|
</template>
|
|
|
</td>
|
|
|
@endcannot
|
|
|
- <td class="child-layer-3">@{{ orderIssue.logistic_indemnity_money }}</td>
|
|
|
- <td class="child-layer-3">@{{ orderIssue.logistic_express_remission }}</td>
|
|
|
+ <td class="child-layer-3">
|
|
|
+ @can('订单管理-问题件-编辑')
|
|
|
+ <input type="number" class="form-control form-control-sm" :value="orderIssue.logistic_indemnity_money" @keydown.enter="updateOrderIssue(orderIssue,'logistic_indemnity_money',$event)">
|
|
|
+ @else
|
|
|
+ @{{ orderIssue.logistic_indemnity_money }}
|
|
|
+ @endcan
|
|
|
+ </td>
|
|
|
+ <td class="child-layer-3">
|
|
|
+ @can('订单管理-问题件-编辑')
|
|
|
+ <select class="form-control form-control-sm" :value="orderIssue.logistic_express_remission" @change="updateOrderIssue(orderIssue,'logistic_express_remission',$event)">
|
|
|
+ <option value></option>
|
|
|
+ <option v-for="item in expressRemission" :value="item">@{{ item }}</option>
|
|
|
+ </select>
|
|
|
+ @else
|
|
|
+ @{{ orderIssue.logistic_express_remission }}
|
|
|
+ @endcan
|
|
|
+ </td>
|
|
|
@cannot('订单管理-问题件-客户不可见')
|
|
|
- <td class="child-layer-3">@{{ orderIssue.baoshi_indemnity_money }}</td>
|
|
|
- <td class="child-layer-3">@{{ orderIssue.baoshi_express_remission }}</td>
|
|
|
- <td class="child-layer-3"><span
|
|
|
- v-if="orderIssue.user_work_group">@{{ orderIssue.user_work_group.name }}</span>
|
|
|
+ <td class="child-layer-3">
|
|
|
+ @can('订单管理-问题件-编辑')
|
|
|
+ <input type="number" class="form-control form-control-sm" :value="orderIssue.baoshi_indemnity_money" @keydown.enter="updateOrderIssue(orderIssue,'baoshi_indemnity_money',$event)">
|
|
|
+ @else
|
|
|
+ @{{ orderIssue.baoshi_indemnity_money }}
|
|
|
+ @endcan
|
|
|
+ </td>
|
|
|
+ <td class="child-layer-3">
|
|
|
+ @can('订单管理-问题件-编辑')
|
|
|
+ <select class="form-control form-control-sm" :value="orderIssue.baoshi_express_remission" @change="updateOrderIssue(orderIssue,'baoshi_express_remission',$event)">
|
|
|
+ <option value></option>
|
|
|
+ <option v-for="item in expressRemission" :value="item">@{{ item }}</option>
|
|
|
+ </select>
|
|
|
+ @else
|
|
|
+ @{{ orderIssue.baoshi_express_remission }}
|
|
|
+ @endcan
|
|
|
+ </td>
|
|
|
+ <td class="child-layer-3">
|
|
|
+ <select class="form-control form-control-sm" :value="orderIssue.user_workgroup_id" @change="updateOrderIssue(orderIssue,'user_workgroup_id',$event)">
|
|
|
+ <option value></option>
|
|
|
+ <option v-for="item in userWorkGroup" :value="item.name">@{{ item.value }}</option>
|
|
|
+ </select>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <button type="button" class="btn btn-sm btn-outline-primary"
|
|
|
- @click="editOrderIssue($event)" :data-value="orderIssue.id">改
|
|
|
- </button>
|
|
|
- <button type="button" class="btn btn-sm btn-outline-danger"
|
|
|
- @click="deleteOrderIssue($event)" :data-value="orderIssue.id">删
|
|
|
+ @can('订单管理-问题件-编辑')
|
|
|
+ <a :href="'edit/'+orderIssue.id" class="btn btn-sm btn-outline-primary" target="_blank">改</a>
|
|
|
+ @endcan
|
|
|
+ @can('订单管理-问题件-删除')
|
|
|
+ <button type="button" class="btn btn-sm btn-outline-danger" @click="deleteOrderIssue($event)" :data-value="orderIssue.id">
|
|
|
+ 删
|
|
|
</button>
|
|
|
+ @endcan
|
|
|
</td>
|
|
|
@endcannot
|
|
|
</tr>
|
|
|
</table>
|
|
|
- <button class="btn btn-sm" :class="page.curPage === 1 ?'':'btn-outline-primary'"
|
|
|
- @click="goPage(page.curPage-1)"
|
|
|
- :disabled="page.curPage === 1">上一页</button>
|
|
|
- <button class="btn btn-sm" :class="page.curPage === page.lastPage ?'':'btn-outline-primary'"
|
|
|
- @click="goPage(page.curPage+1)"
|
|
|
- :disabled="page.curPage === page.lastPage">下一页</button>
|
|
|
- <input @keyup.enter="pageTurning($event)" class="form-control-sm ml-3 tooltipTarget"
|
|
|
- :placeholder="'当前页数:'+page.curPage+'/'+page.lastPage" title="去往指定页">
|
|
|
- <span class="text-muted m-1">共 @{{page.total}} 条 </span>
|
|
|
+ {{$orderIssues->withQueryString()->links()}}
|
|
|
</div>
|
|
|
</div>
|
|
|
- {{--deleteOrderIssue--}}
|
|
|
+
|
|
|
+ {{--batchStore logs--}}
|
|
|
+ <div class="modal fade" id="batchStoreLogsModel" tabindex="-1" role="dialog" aria-labelledby="logsLabel" aria-hidden="true">
|
|
|
+ <div class="modal-dialog modal-dialog-centered">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title" id="logsLabel">输入处理内容</h5>
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close" @click="edit.batchStoreLogs=''">
|
|
|
+ <span aria-hidden="true">×</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+ <textarea id="logsContent" class="form-control" v-model="edit.batchStoreLogs"></textarea>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal" @click="edit.batchStoreLogs=''">
|
|
|
+ 取消
|
|
|
+ </button>
|
|
|
+ <button type="button" class="btn btn-primary" data-dismiss="modal" @click="batchStoreLogs">
|
|
|
+ 确认
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ {{--delete OrderIssue--}}
|
|
|
<div class="modal fade" id="alertModal" tabindex="-1" role="dialog" aria-labelledby="alertModalLabel"
|
|
|
aria-hidden="true">
|
|
|
<div class="modal-dialog modal-dialog-centered">
|
|
|
@@ -542,44 +644,53 @@
|
|
|
@endforeach],
|
|
|
qualityLabel: [
|
|
|
@foreach($qualityLabel as $type)
|
|
|
- {name: '{{$type->id}}', value: '{{$type->name}}' },
|
|
|
+ {name: '{{$type->id}}', value: '{{$type->name}}'},
|
|
|
+ @endforeach],
|
|
|
+ userWorkGroup: [
|
|
|
+ @foreach($userWorkgroup as $item)
|
|
|
+ {name:{{$item->id}},value:'{{$item->name}}'},
|
|
|
@endforeach],
|
|
|
+ rejectingStatus: [
|
|
|
+ {name:'',value:'无'},
|
|
|
+ {name:'未退回',value:'未退回'},
|
|
|
+ {name:'全部退回',value:'全部退回'},
|
|
|
+ {name:'部分退回',value:'部分退回'},
|
|
|
+ {name:'差异退回',value:'差异退回'},
|
|
|
+ {name:'超量退回',value:'超量退回'},
|
|
|
+ {name:'全部退回',value:'全部退回'},
|
|
|
+ ],
|
|
|
+ expressRemission:['原单减免', '部分减免', '全部减免'],
|
|
|
checkData: [],
|
|
|
from: '',
|
|
|
- finalStatus: [{name: '0', value: '已解决'}, {name: '1', value: '待退回'}, {name: '2', value: '退回中'}],
|
|
|
+ finalStatus: ['已解决', '待退回', '退回中'],
|
|
|
selectedStyle: '',
|
|
|
deleteId: '',
|
|
|
- page: {
|
|
|
- lastPage: {!! $orderIssues->toJson() !!}['last_page'],
|
|
|
- curPage: {!! $orderIssues->toJson() !!}['current_page'],
|
|
|
- total: {!! $orderIssues->toJson() !!}['total'],
|
|
|
- nextPageUrl: {!! $orderIssues->toJson() !!}['next_page_url'],
|
|
|
- prevPageUrl: {!! $orderIssues->toJson() !!}['prev_page_url'],
|
|
|
- lastPageUrl: {!! $orderIssues->toJson() !!}['last_page_url'],
|
|
|
- },
|
|
|
+ total: {!! $orderIssues->toJson() !!}['total'],
|
|
|
isShowOrderInfo:true,
|
|
|
isShowRejectedBill: true,
|
|
|
isShowSecondOrderInfo: true,
|
|
|
+ message:{},
|
|
|
+ edit:{
|
|
|
+ batchStoreLogs:'',
|
|
|
+ },
|
|
|
},
|
|
|
mounted: function () {
|
|
|
this.isShowOrderInfo = false;
|
|
|
this.isShowRejectedBill= false;
|
|
|
this.isShowSecondOrderInfo= false;
|
|
|
-
|
|
|
let tr = $('.table-body')[0];
|
|
|
let countShow = $(tr).children('.child-layer-1').length;
|
|
|
$('.header-1').attr('colspan',countShow);
|
|
|
-
|
|
|
-
|
|
|
$('.tooltipTarget').tooltip({'trigger': 'hover'});
|
|
|
$('#list').removeClass("d-none");
|
|
|
|
|
|
- console.log(this.orderIssues);
|
|
|
let _this = this;
|
|
|
- let final_status = [{name: '已解决', value: '已解决'}, {name: '待退回', value: '待退回'}, {
|
|
|
- name: '退回中',
|
|
|
- value: '退回中'
|
|
|
- }];
|
|
|
+ let log_content_range = [{name:'31',value:'近一月'},{name:'92',value:'近三月'},{name:'183',value:'近半年'},{name:'366',value:'近一年'},{name:'0',value:'不限'},];
|
|
|
+ let final_status = [
|
|
|
+ {name: 'null', value: '无'},
|
|
|
+ {name: '已解决', value: '已解决'},
|
|
|
+ {name: '待退回', value: '待退回'},
|
|
|
+ {name: '退回中', value: '退回中'}];
|
|
|
let data = [[
|
|
|
{name: 'created_at_start', type: 'dateTime', tip: '订单开始日期'},
|
|
|
{
|
|
|
@@ -597,30 +708,20 @@
|
|
|
{name: 'created_at_end', type: 'dateTime', tip: '订单结束日期'},
|
|
|
{name: 'consignee_name', type: 'input', tip: '收货人名称:前或后加百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '收货人名称'},
|
|
|
{name: 'consignee_phone', type: 'input', tip: '收货人电话:前或后加百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '收货人电话'},
|
|
|
- {name: 'good_barcode', type: 'input', tip: '条码:前或后加百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '条码'},
|
|
|
- {name: 'good_name', type: 'input', tip: '商品名', placeholder: '商品名'},
|
|
|
-
|
|
|
- {
|
|
|
- name: 'id_quality_label',
|
|
|
- type: 'select',
|
|
|
- tip: '是否正品',
|
|
|
- placeholder: '是否正品',
|
|
|
- data: this.qualityLabel
|
|
|
+ {name: 'good_barcode', type: 'input', tip: '条码:前或后加 百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '条码'},
|
|
|
+ {name: 'good_name', type: 'input', tip: '商品名:前或后加 百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '商品名'},
|
|
|
+ {name: 'id_quality_label', type: 'select', tip: '是否正品', placeholder: '是否正品', data: this.qualityLabel
|
|
|
},
|
|
|
],[
|
|
|
{name: 'logistic_indemnity_money', type: 'input', tip: '承运商赔偿金额', placeholder: '承运商赔偿金额'},
|
|
|
@cannot('订单管理-问题件-客户不可见')
|
|
|
- {
|
|
|
- name: 'baoshi_indemnity_money', type: 'input', tip: '宝时赔偿金额', placeholder: '宝时赔偿金额'
|
|
|
- },
|
|
|
+ {name: 'baoshi_indemnity_money', type: 'input', tip: '宝时赔偿金额', placeholder: '宝时赔偿金额'},
|
|
|
{name: 'final_status', type: 'select', tip: '问题件的最终状态', placeholder: '最终状态', data: final_status},
|
|
|
- {
|
|
|
- name: 'order_issue_type_id',
|
|
|
- type: 'select',
|
|
|
- tip: '问题类别',
|
|
|
- placeholder: '问题类别',
|
|
|
- data: this.orderIssueType
|
|
|
- },
|
|
|
+ {name: 'order_issue_type_id', type: 'select', tip: '问题类别', placeholder: '问题类别', data: this.orderIssueType},
|
|
|
+ {name: ['log_content','addtime'], type: 'input_select', tip: ['处理结果:前或后加 百分号为单个模糊搜索,否则为多条件精确搜索','查询范围越短,搜索速度越快'], placeholder: ['处理结果',''],
|
|
|
+ data:log_content_range,
|
|
|
+ rules:[{son:{addtime:{default:'31',required_without_all_if:['created_at_start','created_at_end']}}}]},
|
|
|
+ // {date_relevance:{date:['orderdate_start','orderdate_end'],relevance:'addtime',killing:'date',default:[31,92,183,366]}}]},
|
|
|
{name: 'is_handle', type: 'checkbox', tip: '是否已处理', data: [{name: 'ture', value: '已解决'}]},
|
|
|
@endcannot
|
|
|
]];
|
|
|
@@ -733,10 +834,10 @@
|
|
|
}
|
|
|
}
|
|
|
tempTip.setDuration(2000);
|
|
|
- tempTip.showSuccess('问题件删除成功');
|
|
|
+ tempTip.showSuccess('删除成功');
|
|
|
} else {
|
|
|
tempTip.setDuration(2500);
|
|
|
- tempTip.show('标记勾选内容删除失败,错误:' + res.data.fail_info);
|
|
|
+ tempTip.show('删除失败,错误:' + res.data.fail_info);
|
|
|
}
|
|
|
}).catch(function (err) {
|
|
|
tempTip.setDuration(4000);
|
|
|
@@ -813,7 +914,7 @@
|
|
|
let url = '{{url('order/issue/export')}}';
|
|
|
let token = '{{ csrf_token() }}';
|
|
|
if (sign) {
|
|
|
- excelExport(true, this.checkData, url, this.page.total, token);
|
|
|
+ excelExport(true, this.checkData, url, this.total, token);
|
|
|
} else {
|
|
|
excelExport(false, this.checkData, url, null, token);
|
|
|
}
|
|
|
@@ -878,32 +979,26 @@
|
|
|
tempTip.showSuccess('勾选订单已变为已完结');
|
|
|
_this.orderIssues.forEach(function (item,index) {
|
|
|
if (ids.includes(item.id)) {
|
|
|
- item.final_status = '已解决';
|
|
|
- // _this.orderIssues.splice(index,1);
|
|
|
+ item.final_status = '已解决'
|
|
|
}
|
|
|
});
|
|
|
_this.checkData = [];
|
|
|
} else {
|
|
|
- tempTip.setDuration(3000);
|
|
|
- tempTip.show(res.data.fail_info);
|
|
|
+ tempTip.setDuration(3000)
|
|
|
+ tempTip.show(res.data.fail_info)
|
|
|
}
|
|
|
}).catch(function (err) {
|
|
|
tempTip.setDuration(4000);
|
|
|
tempTip.show('网络异常:' + err);
|
|
|
})
|
|
|
},
|
|
|
- disposeOrderIssue(e) {
|
|
|
+ disposeOrderIssue(e,orderIssue) {
|
|
|
let _this = this;
|
|
|
let id = $(e.target).attr('data-value');
|
|
|
let data = {id: id};
|
|
|
axios.post('{{url('apiLocal/order/issue/disposeOrderIssue')}}', data).then(function (res) {
|
|
|
if (res.data.success) {
|
|
|
- _this.orderIssues.forEach(function (orderIssue) {
|
|
|
- if (orderIssue.id == data.id) {
|
|
|
- orderIssue.is_new_rejecting = '已处理';
|
|
|
- orderIssue.logs.unshift(res.data.data);
|
|
|
- }
|
|
|
- })
|
|
|
+ orderIssue.is_new_rejecting = '已处理'
|
|
|
tempTip.setDuration(3000);
|
|
|
tempTip.showSuccess('订单已处理');
|
|
|
} else {
|
|
|
@@ -1086,24 +1181,115 @@
|
|
|
showSecondeOrder() {
|
|
|
this.isShowSecondOrderInfo = true;
|
|
|
},
|
|
|
- pageTurning(e){
|
|
|
- let page = $(e.target).val();
|
|
|
- if (page > this.page.lastPage) {
|
|
|
+ updateOrderIssue(orderIssue,column,e){
|
|
|
+ let data = {id:orderIssue['id'],column:column,value:$(e.target).val()}
|
|
|
+ axios.post('{{url("apiLocal/order/issue/updateColumn")}}',data).then(function(response){
|
|
|
+ if(response.data.success){
|
|
|
+ orderIssue[column] = data.value
|
|
|
+ tempTip.setDuration(2000)
|
|
|
+ tempTip.showSuccess('修改成功')
|
|
|
+ }else{
|
|
|
+ tempTip.setDuration(3000)
|
|
|
+ tempTip.show('修改失败:'+response.data.fail_info)
|
|
|
+ }
|
|
|
+ }).catch(function(error){
|
|
|
+ tempTip.setDuration(3000)
|
|
|
+ tempTip.show('修改出现异常:'+error)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ batchDeleteOrderIssue(){
|
|
|
+ if(this.checkData.length === 0){
|
|
|
+ tempTip.setDuration(2000)
|
|
|
+ tempTip.show('没有勾选内容')
|
|
|
return;
|
|
|
}
|
|
|
- this.goPage(page);
|
|
|
+ let _this = this
|
|
|
+ let data = {ids:this.checkData}
|
|
|
+ axios.post('{{url('apiLocal/order/issue/batchDestroy')}}',data).then(function(response){
|
|
|
+ if(response.data.success){
|
|
|
+ for (let index = _this.orderIssues.length-1; index >= 0 ; index--) {
|
|
|
+ let item = _this.orderIssues[index]
|
|
|
+ if(_this.checkData.includes(item.id)){
|
|
|
+ _this.orderIssues.splice(index,1)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ _this.checkData = []
|
|
|
+ tempTip.setDuration(2000)
|
|
|
+ tempTip.showSuccess('删除成功')
|
|
|
+ }else{
|
|
|
+ tempTip.setDuration('删除失败')
|
|
|
+ }
|
|
|
+ }).catch(function(error){
|
|
|
+ tempTip.setDuration(3000)
|
|
|
+ tempTip.show('删除异常:'+error)
|
|
|
+ })
|
|
|
},
|
|
|
- goPage(page){
|
|
|
- let href = window.location.href;
|
|
|
- if(href.indexOf('?')===-1){
|
|
|
- href+='?'
|
|
|
+ batchStoreLogsModel(){
|
|
|
+ if(this.checkData.length === 0){
|
|
|
+ tempTip.setDuration(2000)
|
|
|
+ tempTip.show('没有勾选内容')
|
|
|
+ return;
|
|
|
}
|
|
|
- if(href.indexOf('page=')!==-1){
|
|
|
- href = href.replace('page='+this.page.curPage,'page='+page);
|
|
|
- }else{
|
|
|
- href+='&page='+page;
|
|
|
+ $("#batchStoreLogsModel").modal('show');
|
|
|
+ },
|
|
|
+ batchStoreLogs(){
|
|
|
+ let _this = this;
|
|
|
+ let data = {orderIssueIds:this.checkData,content:this.edit.batchStoreLogs};
|
|
|
+ axios.post('{{url("apiLocal/order/issue/log/batchStore")}}',data).then(function(response){
|
|
|
+ if(response.data.success){
|
|
|
+
|
|
|
+ _this.edit.batchStoreLogs = ''
|
|
|
+ let logs = response.data.logs
|
|
|
+ _this.orderIssues.forEach(function(item){
|
|
|
+ let id = item['id']
|
|
|
+ if (_this.checkData.includes(id)) {
|
|
|
+ item['logs'].unshift(logs[id])
|
|
|
+ }
|
|
|
+ })
|
|
|
+ tempTip.setDuration(2000)
|
|
|
+ tempTip.setIndex(100)
|
|
|
+ tempTip.showSuccess('添加成功')
|
|
|
+ $("#batchStoreLogsModel").modal('hide')
|
|
|
+ }else{
|
|
|
+ tempTip.setIndex(100)
|
|
|
+ tempTip.show('添加失败'+response.data.fail_info)
|
|
|
+ }
|
|
|
+ }).catch(function(error){
|
|
|
+ tempTip.setDuration(3000)
|
|
|
+ tempTip.show('处理结果添加异常:'+error)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ changeRejectedBill(orderIssue,e){
|
|
|
+ let logistic_number_return = $(e.target).val()
|
|
|
+ if(orderIssue['logistic_number_return'] === logistic_number_return){
|
|
|
+ return;
|
|
|
}
|
|
|
- window.location = href;
|
|
|
+ let data = {id:orderIssue['id'],logisticNumberReturn:logistic_number_return}
|
|
|
+ axios.post('{{url('apiLocal/order/issue/updateLogisticNumberReturn')}}',data).then(function(response){
|
|
|
+ if(response.data.success){
|
|
|
+ orderIssue['logistic_number_return'] = logistic_number_return
|
|
|
+ orderIssue['rejected_bill'] = response.data.rejectedBill
|
|
|
+ orderIssue['rejecting_status'] = response.data.rejectingStatus
|
|
|
+ tempTip.setDuration(2000)
|
|
|
+ tempTip.showSuccess('修改成功')
|
|
|
+ }else{
|
|
|
+ tempTip.setDuration(3000)
|
|
|
+ tempTip.show('修改失败:'+response.data.fail_info)
|
|
|
+ }
|
|
|
+ }).catch(function(error){
|
|
|
+ tempTip.setDuration(3000)
|
|
|
+ tempTip.show('修改异常:'+error)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ truncateText(e){
|
|
|
+ let nowrapSpan = $(e.target);
|
|
|
+ nowrapSpan.hide();
|
|
|
+ nowrapSpan.siblings('.text-truncate').show();
|
|
|
+ },
|
|
|
+ nowrapText(e){
|
|
|
+ let truncateSpan = $(e.target);
|
|
|
+ truncateSpan.hide();
|
|
|
+ truncateSpan.siblings('.text-nowrap').show();
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
@@ -1111,7 +1297,6 @@
|
|
|
$("#exampleModal").on('hide.bs.modal', function (e) {
|
|
|
$('#remark').val('');
|
|
|
});
|
|
|
-
|
|
|
</script>
|
|
|
@endsection
|
|
|
|