|
|
@@ -45,8 +45,11 @@
|
|
|
@can('退货管理-编辑')
|
|
|
<a class="btn btn-sm btn-outline-dark" href="{{url('rejected/importRejectedNumber')}}" style="cursor: pointer">批量填充订单号</a>
|
|
|
@endcan
|
|
|
+
|
|
|
<button class="btn btn-sm ml-2 btn-primary" @click="copyLogisticNumber()">复制快递单号</button>
|
|
|
- <table class="table table-striped table-sm table-bordered table-hover text-nowrap table-body td-min-width-80" style="background: #fff;" id="table">
|
|
|
+ <button class="btn btn-sm btn-outline-dark" @click="cancelCheck">取消审核 </button>
|
|
|
+
|
|
|
+ <table class="table table-striped table-sm table-bordered table-hover text-nowrap table-body td-min-width-80" style="background: #fff;" id="table">
|
|
|
<tr v-for="(rejectedBill,i) in rejectedBills" :data-id="rejectedBill.id" @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''">
|
|
|
<td>
|
|
|
<label><input type="checkbox" :value="rejectedBill.id"/></label>
|
|
|
@@ -54,17 +57,13 @@
|
|
|
<td class="text-nowrap">
|
|
|
<span class="text-muted" style="opacity:0.7">@{{ i+1 }}</span> <span v-if="rejectedBill.order_issue_rejected_bill" class="badge badge-pill badge-danger">问题件</span>
|
|
|
</td>
|
|
|
- <td class="text-muted" @mouseover="showCancelBtn(rejectedBill)"
|
|
|
- @mouseleave="blankCancelBtn(rejectedBill)">
|
|
|
- <span class="text-center">
|
|
|
+ <td class="text-muted text-center">
|
|
|
<span v-if="rejectedBill.is_checked==1">
|
|
|
- <span @click="cancelCheck(rejectedBill.id)" class="btn btn-sm btn-outline-secondary" v-if="rejectedBill.isShowCancelBtn">取消审核</span>
|
|
|
- <span class="text-success" v-if="!(rejectedBill.isShowCancelBtn)">
|
|
|
+ <span class="text-success">
|
|
|
<span class="fa fa-check-square" ></span> @{{ rejectedBill.checked_numbers }}
|
|
|
</span>
|
|
|
</span>
|
|
|
<span v-else>未审核</span>
|
|
|
- </span>
|
|
|
</td>
|
|
|
<td class="" :class="[rejectedBill.is_finished==1?'text-success':'text-muted']">@{{rejectedBill.is_finished | yesNo}}</td>
|
|
|
<td class="" :class="[rejectedBill.is_loaded==1?'text-success':'text-muted']">
|
|
|
@@ -199,8 +198,6 @@
|
|
|
],
|
|
|
selectTr:'',
|
|
|
upList:{},
|
|
|
- cancelCheckedHover:null,
|
|
|
- isShowCancelBtn:false,
|
|
|
},
|
|
|
mounted:function(){
|
|
|
$(".up").slideUp();
|
|
|
@@ -276,33 +273,21 @@
|
|
|
});
|
|
|
},
|
|
|
methods:{
|
|
|
- showCancelBtn(a){
|
|
|
- a.isShowCancelBtn=true;
|
|
|
- this.$forceUpdate();
|
|
|
- },
|
|
|
- blankCancelBtn(a){
|
|
|
- a.isShowCancelBtn=false;
|
|
|
- this.$forceUpdate();
|
|
|
- },
|
|
|
- cancelCheck(id){
|
|
|
- let _this=this;
|
|
|
- let url= '{{url("rejected/index/cancelCheck")}}';
|
|
|
- axios.post(url,{'id':id}).then(function (response) {
|
|
|
- if(response.data.success){
|
|
|
- _this.rejectedBills.forEach(function (rejectedBill){
|
|
|
- if (rejectedBill.id==response.data.id){
|
|
|
- rejectedBill.is_checked=0;
|
|
|
- }
|
|
|
- })
|
|
|
- tempTip.setDuration(2000);
|
|
|
- tempTip.showSuccess('取消审核成功');
|
|
|
- }else{
|
|
|
- tempTip.setDuration(3000);
|
|
|
- tempTip.show('取消审核失败!'+response.data.fail_info);
|
|
|
+ cancelCheck() {
|
|
|
+ let url = '{{url("apiLocal/rejected/cancelCheck")}}';
|
|
|
+ let data = {ids: checkData};
|
|
|
+ window.tempTip.setDuration(2000);
|
|
|
+ window.axios.post(url, data).then(res => {
|
|
|
+ if (res.data.success) {
|
|
|
+ this.rejectedBills.forEach(item => {
|
|
|
+ if (res.data.data.includes(item.id)) item.is_checked = 0;
|
|
|
+ });
|
|
|
+ window.tempTip.showSuccess('取消审核成功!');
|
|
|
+ return;
|
|
|
}
|
|
|
- }).catch(function (err) {
|
|
|
- tempTip.setDuration(3000);
|
|
|
- tempTip.show('取消审核失败!网络异常:'+err);
|
|
|
+ window.tempTip.show(res.data.message ? res.data.message : '取消审核失败!');
|
|
|
+ }).catch(err => {
|
|
|
+ tempTip.show('取消审核失败!网络异常:' + err);
|
|
|
});
|
|
|
},
|
|
|
unfold(id){
|