|
@@ -46,7 +46,7 @@
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
<table class="table table-sm table-striped table-bordered table-hover card-body p-0 m-0" style="background: #fff;@cannot('订单管理-问题件-客户不可见')min-width: 3000px;@else min-width: 1990px; @endcannot">
|
|
<table class="table table-sm table-striped table-bordered table-hover card-body p-0 m-0" style="background: #fff;@cannot('订单管理-问题件-客户不可见')min-width: 3000px;@else min-width: 1990px; @endcannot">
|
|
|
- <tr class="tr-yellow" align="center">
|
|
|
|
|
|
|
+ <tr class="tr-yellow" align="center" >
|
|
|
<th class=" font-weight-bolder header-1" ></th>
|
|
<th class=" font-weight-bolder header-1" ></th>
|
|
|
<th class="td-yellow font-weight-bolder original-class table-head-warning header-2">
|
|
<th class="td-yellow font-weight-bolder original-class table-head-warning header-2">
|
|
|
<span>原始运单号</span>
|
|
<span>原始运单号</span>
|
|
@@ -258,7 +258,7 @@
|
|
|
<table class="table table-sm m-0" v-if="orderIssue.order.packages"
|
|
<table class="table table-sm m-0" v-if="orderIssue.order.packages"
|
|
|
:class="orderIssue.order.commodityPackages > 1? 'collapse' : ''" :id="'order'+orderIssue.id">
|
|
:class="orderIssue.order.commodityPackages > 1? 'collapse' : ''" :id="'order'+orderIssue.id">
|
|
|
<template v-for="packages in orderIssue.order.packages">
|
|
<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" v-if="item.commodity">
|
|
|
|
|
|
|
+ <tr v-for="item in packages.commodities" class="text-center" :data-value="orderIssue.orderCount += 1" align="center" v-if="item.commodity" @click="removeFocusing($event)">
|
|
|
<td >@{{ item.commodity.sku }}</td>
|
|
<td >@{{ item.commodity.sku }}</td>
|
|
|
<td>
|
|
<td>
|
|
|
<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-truncate text-primary m-0 p-0 tooltipTarget" style="width: 100px;cursor:pointer;text-decoration: underline" title="双击展开" @dblclick="nowrapText($event)">@{{ item.commodity.name }}</p>
|
|
@@ -290,7 +290,7 @@
|
|
|
<div v-if="orderIssue.rejected_bill" class="m-0 p-0">
|
|
<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"
|
|
<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">
|
|
:data-value="orderIssue.rejectedCount = 0">
|
|
|
- <tr v-for="item in orderIssue.rejected_bill.items"
|
|
|
|
|
|
|
+ <tr v-for="item in orderIssue.rejected_bill.items" @click="removeFocusing($event)"
|
|
|
:data-value="orderIssue.rejected_bill.sum += item.amount" align="center">
|
|
:data-value="orderIssue.rejected_bill.sum += item.amount" align="center">
|
|
|
<td style="min-width: 75px" >@{{ item.barcode_goods }}</td>
|
|
<td style="min-width: 75px" >@{{ item.barcode_goods }}</td>
|
|
|
<td style="min-width: 100px" >
|
|
<td style="min-width: 100px" >
|
|
@@ -343,6 +343,7 @@
|
|
|
<table class="table table-sm p-0 m-0 " :id="'logs'+orderIssue.id" :data-value="orderIssue.logShow = true">
|
|
<table class="table table-sm p-0 m-0 " :id="'logs'+orderIssue.id" :data-value="orderIssue.logShow = true">
|
|
|
<tr style="position:static" align="center" v-for="(log,index) in orderIssue.logs"
|
|
<tr style="position:static" align="center" v-for="(log,index) in orderIssue.logs"
|
|
|
:class="(index > 1 && orderIssue.logShow) ? 'd-none':''"
|
|
:class="(index > 1 && orderIssue.logShow) ? 'd-none':''"
|
|
|
|
|
+ @click="removeFocusing($event)"
|
|
|
v-on:mouseover="showDelBtn($event)" v-on:mouseleave="hideDelBtn($event)" >
|
|
v-on:mouseover="showDelBtn($event)" v-on:mouseleave="hideDelBtn($event)" >
|
|
|
<td style="min-width: 200px">@{{ log.content }}</td>
|
|
<td style="min-width: 200px">@{{ log.content }}</td>
|
|
|
<td class="text-muted" style="min-width: 120px">@{{ log.user.name }}</td>
|
|
<td class="text-muted" style="min-width: 120px">@{{ log.user.name }}</td>
|
|
@@ -380,7 +381,8 @@
|
|
|
</span>
|
|
</span>
|
|
|
</span>
|
|
</span>
|
|
|
</td>
|
|
</td>
|
|
|
- <td class="p-0 child-layer-3-hide" valign="middle" align="center" v-if="isShowSecondOrderInfo">
|
|
|
|
|
|
|
+ <td class="log-td p-0 child-layer-3-hide " valign="middle" align="center" v-if="isShowSecondOrderInfo">
|
|
|
|
|
+
|
|
|
<template v-if="orderIssue.second_order">
|
|
<template v-if="orderIssue.second_order">
|
|
|
<div class=" m-0" :id="'secondOrderNumbers'+orderIssue.id"
|
|
<div class=" m-0" :id="'secondOrderNumbers'+orderIssue.id"
|
|
|
:class="orderIssue.seconderCount > 1 ? 'collapse':''"
|
|
:class="orderIssue.seconderCount > 1 ? 'collapse':''"
|
|
@@ -406,7 +408,7 @@
|
|
|
:data-count="orderIssue.secondeOrderCount = 0"
|
|
:data-count="orderIssue.secondeOrderCount = 0"
|
|
|
:data-value="orderIssue.secondeOrderItems = 0">
|
|
:data-value="orderIssue.secondeOrderItems = 0">
|
|
|
<template v-for="packages in orderIssue.second_order.packages">
|
|
<template v-for="packages in orderIssue.second_order.packages">
|
|
|
- <tr v-for="item in packages.commodities" :data-value="orderIssue.secondeOrderCount += 1" v-if="item.commodity">
|
|
|
|
|
|
|
+ <tr v-for="item in packages.commodities" :data-value="orderIssue.secondeOrderCount += 1" v-if="item.commodity" >
|
|
|
<td >@{{ item.commodity.sku }}</td>
|
|
<td >@{{ item.commodity.sku }}</td>
|
|
|
<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-truncate text-primary tooltipTarget" style="width: 100px;cursor:pointer;text-decoration: underline" title="双击展开" @dblclick="nowrapText($event)">@{{ item.commodity.name }}</div>
|
|
@@ -668,6 +670,7 @@
|
|
|
edit:{
|
|
edit:{
|
|
|
batchStoreLogs:'',
|
|
batchStoreLogs:'',
|
|
|
isShow:[],
|
|
isShow:[],
|
|
|
|
|
+ addSendOrderIssueID:'',
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
mounted: function () {
|
|
mounted: function () {
|
|
@@ -681,6 +684,9 @@
|
|
|
|
|
|
|
|
$('#list').removeClass("d-none");
|
|
$('#list').removeClass("d-none");
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
let _this = this;
|
|
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:'15',value:'15天内'},{name:'31',value:'近一月'},{name:'92',value:'近三月'},{name:'183',value:'近半年'},{name:'366',value:'近一年'},{name:'0',value:'不限'},];
|
|
|
let final_status = [
|
|
let final_status = [
|
|
@@ -956,26 +962,7 @@
|
|
|
}
|
|
}
|
|
|
let _this = this;
|
|
let _this = this;
|
|
|
let ids = _this.checkData;
|
|
let ids = _this.checkData;
|
|
|
- // let data = {ids: ids};
|
|
|
|
|
this.endOrderIssues(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);--}}
|
|
|
|
|
- {{--})--}}
|
|
|
|
|
},
|
|
},
|
|
|
disposeOrderIssue(e,orderIssue) {
|
|
disposeOrderIssue(e,orderIssue) {
|
|
|
let _this = this;
|
|
let _this = this;
|
|
@@ -1259,7 +1246,6 @@
|
|
|
let data = {orderIssueIds:this.checkData,content:this.edit.batchStoreLogs};
|
|
let data = {orderIssueIds:this.checkData,content:this.edit.batchStoreLogs};
|
|
|
axios.post('{{url("apiLocal/order/issue/log/batchStore")}}',data).then(function(response){
|
|
axios.post('{{url("apiLocal/order/issue/log/batchStore")}}',data).then(function(response){
|
|
|
if(response.data.success){
|
|
if(response.data.success){
|
|
|
-
|
|
|
|
|
_this.edit.batchStoreLogs = ''
|
|
_this.edit.batchStoreLogs = ''
|
|
|
let logs = response.data.logs
|
|
let logs = response.data.logs
|
|
|
_this.orderIssues.forEach(function(item){
|
|
_this.orderIssues.forEach(function(item){
|
|
@@ -1347,13 +1333,15 @@
|
|
|
truncateSpan.siblings('.text-nowrap').show();
|
|
truncateSpan.siblings('.text-nowrap').show();
|
|
|
},
|
|
},
|
|
|
addShow(id){
|
|
addShow(id){
|
|
|
- console.log(id)
|
|
|
|
|
this.edit.isShow.push(id)
|
|
this.edit.isShow.push(id)
|
|
|
},
|
|
},
|
|
|
removeShow(id){
|
|
removeShow(id){
|
|
|
let index = this.edit.isShow.indexOf(id)
|
|
let index = this.edit.isShow.indexOf(id)
|
|
|
if(index!==-1) this.edit.isShow.splice(index,1)
|
|
if(index!==-1) this.edit.isShow.splice(index,1)
|
|
|
},
|
|
},
|
|
|
|
|
+ removeFocusing(e){
|
|
|
|
|
+ $(e.target).parent('tr').removeClass('focusing')
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
// modal 隐藏时修改 input 为空
|
|
// modal 隐藏时修改 input 为空
|