|
|
@@ -126,13 +126,11 @@
|
|
|
<th class="three-layer align-middle" rowspan="2" v-if="isShowSecondOrderInfo" style=" min-width: 200px;">二次运单号</th>
|
|
|
<th class="three-layer" colspan="3" style="min-width: 300px" v-if="isShowSecondOrderInfo" style=" min-width: 350px;">二次商品明细</th>
|
|
|
@endcannot
|
|
|
- @cannot('订单管理-问题件-客户不可见')
|
|
|
<th class="three-layer align-middle" rowspan="2" style="min-width: 120px">承运商赔偿金额</th>
|
|
|
<th class="three-layer align-middle" rowspan="2" style="min-width: 120px">承运商快递减免</th>
|
|
|
- @endcannot
|
|
|
+ @cannot('订单管理-问题件-客户不可见')
|
|
|
<th class="three-layer align-middle" rowspan="2" style="min-width: 120px">宝时赔偿金额</th>
|
|
|
<th class="three-layer align-middle" rowspan="2" style="min-width: 120px">宝时快递减免</th>
|
|
|
- @cannot('订单管理-问题件-客户不可见')
|
|
|
<th class="three-layer align-middle" rowspan="2" style="min-width: 120px">事故责任方</th>
|
|
|
<th class="align-middle" rowspan="2" style="min-width: 120px">操作</th>
|
|
|
@endcannot
|
|
|
@@ -202,7 +200,7 @@
|
|
|
<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.value">@{{ item.name }}</option>
|
|
|
+ <option v-for="item in finalStatus" :value="item">@{{ item }}</option>
|
|
|
</select>
|
|
|
@else
|
|
|
@{{ orderIssue.final_status }}
|
|
|
@@ -238,10 +236,10 @@
|
|
|
<span v-if='orderIssue.order.logistic'>@{{ orderIssue.order.logistic.name }}</span>
|
|
|
</td>
|
|
|
<td class=" hide-content p-0 td-yellow child-layer-2" valign="middle" align="center">
|
|
|
- <span :id="'logisticNumbers'+orderIssue.id" :class="orderIssue.order.logisticNumbers.length > 1 ?'collapse ':''">
|
|
|
- <span class="text-nowrap" v-for="logisticNumber in orderIssue.order.logisticNumbers" class="m-0 p-0 text-muted ">@{{ logisticNumber }}</span>
|
|
|
- </span>
|
|
|
- <button v-if="orderIssue.order.logisticNumbers.length > 1" type="button" class="btn btn-sm btn-outline-primary align-middle mt-1"
|
|
|
+ <div :id="'logisticNumbers'+orderIssue.id" :class="orderIssue.order.logisticNumbers.length > 1 ?'collapse ':''">
|
|
|
+ <p v-for="logisticNumber in orderIssue.order.logisticNumbers" class="m-0 p-0 text-muted ">@{{ logisticNumber }}</p>
|
|
|
+ </div>
|
|
|
+ <button v-if="orderIssue.order.logisticNumbers.length > 1" type="button" class="btn btn-sm btn-outline-primary align-middle mt-1"
|
|
|
:id="'logisticNumbersBtn'+orderIssue.id" data-toggle="collapse" :data-target="'#logisticNumbers'+orderIssue.id"
|
|
|
@click="toggleLogisticNumbers(orderIssue.id,orderIssue.order.logisticNumbers.length)">
|
|
|
分箱@{{ orderIssue.order.logisticNumbers.length }}件,点击展开
|
|
|
@@ -270,10 +268,8 @@
|
|
|
<tr v-for="item in packages.commodities" class="text-center" :data-value="orderIssue.orderCount += 1" align="center">
|
|
|
<td >@{{ item.commodity.sku }}</td>
|
|
|
<td>
|
|
|
- <div class="text-truncate text-primary tooltipTarget" style="width: 100px;cursor:pointer;text-decoration: underline" title="双击展开" @dblclick="nowrapText($event)">@{{ item.commodity.name }}</div>
|
|
|
- <div class="text-nowrap m-0 p-0 tooltipTarget" style="display: none;cursor:pointer" @dblclick="truncateText($event)" title="双击收起">@{{ item.commodity.name }}</div>
|
|
|
-{{-- <p class="text-truncate text-primary m-0 p-0 tooltipTarget" style="width: 100px;cursor:pointer;text-decoration: underline" title="双击展开" @dblclick="nowrapText($event)">@{{ item.commodity.name }}</p>--}}
|
|
|
-{{-- <p class="text-nowrap m-0 p-0 tooltipTarget" style="display: none;cursor:pointer" @dblclick="truncateText($event)" title="双击收起">@{{ item.commodity.name }}</p>--}}
|
|
|
+ <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>
|
|
|
@@ -370,7 +366,8 @@
|
|
|
<td style="min-width: 200px">@{{ log.content }}</td>
|
|
|
<td style="min-width: 120px">@{{ log.user.name }}</td>
|
|
|
<td style="" class="m-0 p-0 border-0">
|
|
|
- <button type="button" class="btn btn-sm btn-outline-danger m-0 del-btn invisible" @click="deleteOrderIssueLog(log.id,orderIssue.id)">删</button>
|
|
|
+ <button type="button" class="btn btn-sm btn-outline-danger m-0 del-btn invisible"
|
|
|
+ @click="deleteOrderIssueLog(log.id,orderIssue.id)">删</button>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
@@ -422,10 +419,8 @@
|
|
|
<tr v-for="item in packages.commodities" :data-value="orderIssue.secondeOrderCount += 1">
|
|
|
<td >@{{ item.commodity.sku }}</td>
|
|
|
<td >
|
|
|
- <div class="text-truncate text-primary tooltipTarget" style="width: 100px;cursor:pointer;text-decoration: underline" title="双击展开" @dblclick="nowrapText($event)">@{{ item.commodity.name }}</div>
|
|
|
- <div class="text-nowrap tooltipTarget" style="display: none;cursor:pointer" @dblclick="truncateText($event)" title="双击收起">@{{ item.commodity.name }}</div>
|
|
|
-{{-- <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>--}}
|
|
|
+ <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>
|
|
|
@@ -442,7 +437,6 @@
|
|
|
</template>
|
|
|
</td>
|
|
|
@endcannot
|
|
|
- @cannot('订单管理-问题件-客户不可见')
|
|
|
<td class="child-layer-3">
|
|
|
@can('订单管理-问题件-编辑')
|
|
|
<input type="number" class="form-control form-control-sm" :value="orderIssue.logistic_indemnity_money" @change="updateOrderIssue(orderIssue,'logistic_indemnity_money',$event)">
|
|
|
@@ -460,7 +454,7 @@
|
|
|
@{{ orderIssue.logistic_express_remission }}
|
|
|
@endcan
|
|
|
</td>
|
|
|
- @endcannot
|
|
|
+ @cannot('订单管理-问题件-客户不可见')
|
|
|
<td class="child-layer-3">
|
|
|
@can('订单管理-问题件-编辑')
|
|
|
<input type="number" class="form-control form-control-sm" :value="orderIssue.baoshi_indemnity_money" @change="updateOrderIssue(orderIssue,'baoshi_indemnity_money',$event)">
|
|
|
@@ -478,7 +472,6 @@
|
|
|
@{{ orderIssue.baoshi_express_remission }}
|
|
|
@endcan
|
|
|
</td>
|
|
|
- @cannot('订单管理-问题件-客户不可见')
|
|
|
<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>
|
|
|
@@ -498,7 +491,6 @@
|
|
|
@endcannot
|
|
|
</tr>
|
|
|
</table>
|
|
|
- <div class="text-info h5 btn btn">{{$orderIssues->count()}}/@{{ total }}</div>
|
|
|
{{$orderIssues->withQueryString()->links()}}
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -667,7 +659,7 @@
|
|
|
expressRemission:['原单减免', '部分减免', '全部减免'],
|
|
|
checkData: [],
|
|
|
from: '',
|
|
|
- finalStatus: [{value:'',name:""},{value:'已解决',name:"已解决"},{value:'待退回',name:"待退回"},{value:'退回中',name:"退回中"},],//['无','已解决', '待退回', '退回中'],
|
|
|
+ finalStatus: ['已解决', '待退回', '退回中'],
|
|
|
selectedStyle: '',
|
|
|
deleteId: '',
|
|
|
total: {!! $orderIssues->toJson() !!}['total'],
|
|
|
@@ -680,7 +672,6 @@
|
|
|
},
|
|
|
},
|
|
|
mounted: function () {
|
|
|
- $(".tooltipTarget").tooltip({'trigger':'hover'});
|
|
|
this.isShowOrderInfo = false;
|
|
|
this.isShowRejectedBill= false;
|
|
|
this.isShowSecondOrderInfo= false;
|
|
|
@@ -688,10 +679,11 @@
|
|
|
let countShow = $(tr).children('.one-layer').length;
|
|
|
$('.header-1').attr('colspan',countShow);
|
|
|
|
|
|
+ $('.tooltipTarget').tooltip({'trigger': 'hover'});
|
|
|
$('#list').removeClass("d-none");
|
|
|
|
|
|
let _this = this;
|
|
|
- let log_content_range = [{name:'15',value:'15天内'},{name:'31',value:'近一月'},{name:'92',value:'近三月'},{name:'183',value:'近半年'},{name:'366',value:'近一年'},{name:'0',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: '已解决'},
|
|
|
@@ -710,35 +702,26 @@
|
|
|
{name: 'logistic_number', type: 'input', tip: ['输入原始运单号:前或后加百分号为单个模糊搜索,否则为多条件精确搜索'], placeholder: '运单号'},
|
|
|
{name: 'logistic_number_return', type: 'input', tip: '退回单号:前或后加百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '退回单号'},
|
|
|
{name: 'send_client_code', type: 'input', tip: '二次订单号:前或后加百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '二次订单号'},
|
|
|
-
|
|
|
], [
|
|
|
{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: 'id_quality_label', type: 'select', tip: '是否正品', placeholder: '是否正品', data: this.qualityLabel
|
|
|
+ },
|
|
|
],[
|
|
|
- @cannot('订单管理-问题件-客户不可见')
|
|
|
{name: 'logistic_indemnity_money', type: 'input', tip: '承运商赔偿金额', placeholder: '承运商赔偿金额'},
|
|
|
- @endcannot
|
|
|
- {name: 'baoshi_indemnity_money', type: 'input', tip: '宝时赔偿金额', placeholder: '宝时赔偿金额'},
|
|
|
@cannot('订单管理-问题件-客户不可见')
|
|
|
+ {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},
|
|
|
- @endcannot
|
|
|
{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']}}}]},
|
|
|
- @cannot('订单管理-问题件-客户不可见')
|
|
|
// {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
|
|
|
- {name: 'settlement_at_start', type: 'dateTime', tip: '完结起始日期'},
|
|
|
- {name: 'settlement_at_end', type: 'dateTime', tip: '完结结束日期' },
|
|
|
- {name: 'is_new_rejecting', type: 'select', tip: '退件状态',placeholder: '退件状态',data:[{name:'无',value:'无'},{name:'有',value:'有'},{name:'已处理',value:'已处理'}]},
|
|
|
]];
|
|
|
this.form = new query({
|
|
|
el: '#form_div',
|
|
|
@@ -802,7 +785,6 @@
|
|
|
},
|
|
|
deleteOrderIssueById() {
|
|
|
let _this = this;
|
|
|
-
|
|
|
tempTip.setDuration(99999)
|
|
|
tempTip.waitingTip('删除中,请稍候')
|
|
|
let id = $('#deleteId').val();
|
|
|
@@ -958,26 +940,25 @@
|
|
|
}
|
|
|
let _this = this;
|
|
|
let ids = _this.checkData;
|
|
|
- // let data = {ids: ids};
|
|
|
- this.endOrderIssues(ids)
|
|
|
- {{--axios.post('{{url('apiLocal/order/issue/endOrderIssue')}}', data).then(function (res) {--}}
|
|
|
- {{-- if (res.data.success) {--}}
|
|
|
- {{-- tempTip.setDuration(2000);--}}
|
|
|
- {{-- tempTip.showSuccess('勾选订单已变为已完结');--}}
|
|
|
- {{-- _this.orderIssues.forEach(function (item,index) {--}}
|
|
|
- {{-- if (ids.includes(item.id)) {--}}
|
|
|
- {{-- item.final_status = '已解决'--}}
|
|
|
- {{-- }--}}
|
|
|
- {{-- });--}}
|
|
|
- {{-- _this.checkData = [];--}}
|
|
|
- {{-- } else {--}}
|
|
|
- {{-- tempTip.setDuration(3000)--}}
|
|
|
- {{-- tempTip.show(res.data.fail_info)--}}
|
|
|
- {{-- }--}}
|
|
|
- {{--}).catch(function (err) {--}}
|
|
|
- {{-- tempTip.setDuration(4000);--}}
|
|
|
- {{-- tempTip.show('网络异常:' + err);--}}
|
|
|
- {{--})--}}
|
|
|
+ let data = {ids: ids};
|
|
|
+ axios.post('{{url('apiLocal/order/issue/endOrderIssue')}}', data).then(function (res) {
|
|
|
+ if (res.data.success) {
|
|
|
+ tempTip.setDuration(2000);
|
|
|
+ tempTip.showSuccess('勾选订单已变为已完结');
|
|
|
+ _this.orderIssues.forEach(function (item,index) {
|
|
|
+ if (ids.includes(item.id)) {
|
|
|
+ item.final_status = '已解决'
|
|
|
+ }
|
|
|
+ });
|
|
|
+ _this.checkData = [];
|
|
|
+ } else {
|
|
|
+ tempTip.setDuration(3000)
|
|
|
+ tempTip.show(res.data.fail_info)
|
|
|
+ }
|
|
|
+ }).catch(function (err) {
|
|
|
+ tempTip.setDuration(4000);
|
|
|
+ tempTip.show('网络异常:' + err);
|
|
|
+ })
|
|
|
},
|
|
|
disposeOrderIssue(e,orderIssue) {
|
|
|
let _this = this;
|
|
|
@@ -997,40 +978,6 @@
|
|
|
tempTip.show('网路链接异常' + err);
|
|
|
});
|
|
|
},
|
|
|
- endOrderIssueById(id){
|
|
|
- this.endOrderIssues([id]);
|
|
|
- },
|
|
|
- endOrderIssues(ids){
|
|
|
- let data = {ids:ids}
|
|
|
- let orderIssues = {};
|
|
|
- for (let i = 0; i < this.orderIssues.length; i++) {
|
|
|
- let id = this.orderIssues[i]['id']
|
|
|
- if(ids.includes(id))orderIssues[id] = this.orderIssues[i];
|
|
|
-
|
|
|
- }
|
|
|
- axios.post('{{url('apiLocal/order/issue/endOrderIssues')}}',data).then(function(response){
|
|
|
- if(response.data.success){
|
|
|
- tempTip.setDuration(3000)
|
|
|
- tempTip.showSuccess('订单已处理')
|
|
|
- let logs = response.data.logs
|
|
|
- for (let i = 0; i < logs.length; i++) {
|
|
|
- let log = logs[i]
|
|
|
- // console.log(log);
|
|
|
- let orderIssue = orderIssues[log['order_issue_id']]
|
|
|
- if(orderIssue){
|
|
|
- orderIssue.logs.unshift(log)
|
|
|
- orderIssue['final_status'] = '已解决'
|
|
|
- }
|
|
|
- }
|
|
|
- }else{
|
|
|
- tempTip.setDuration(3000)
|
|
|
- tempTip.show(response.data.fail_info)
|
|
|
- }
|
|
|
- }).catch(function(error){
|
|
|
- tempTip.setDuration(4000)
|
|
|
- tempTip.show('网路链接异常' + error);
|
|
|
- })
|
|
|
- },
|
|
|
addOrderIssueLog(id,orderIssue) {
|
|
|
let idInput = $('#' + id + ' :input[name="id"]');
|
|
|
let contentInput = $('#' + id + ' :input[name="content"]');
|
|
|
@@ -1198,12 +1145,7 @@
|
|
|
this.isShowSecondOrderInfo = true;
|
|
|
},
|
|
|
updateOrderIssue(orderIssue,column,e){
|
|
|
- let value = $(e.target).val()
|
|
|
- if(column === 'final_status' && value === '已解决'){
|
|
|
- this.endOrderIssueById(orderIssue['id'])
|
|
|
- return ;
|
|
|
- }
|
|
|
- let data = {id:orderIssue['id'],column:column,value:value}
|
|
|
+ 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
|
|
|
@@ -1224,7 +1166,6 @@
|
|
|
tempTip.show('没有勾选内容')
|
|
|
return;
|
|
|
}
|
|
|
- if(!confirm('是否删除当前问题件'))return;
|
|
|
let _this = this
|
|
|
let data = {ids:this.checkData}
|
|
|
axios.post('{{url('apiLocal/order/issue/batchDestroy')}}',data).then(function(response){
|