|
|
@@ -76,6 +76,12 @@
|
|
|
@click="archiveOrderIssue">批量归档
|
|
|
</button>
|
|
|
@endcan
|
|
|
+ <button type="button"
|
|
|
+ class="btn btn-outline-primary btn-sm form-control-sm tooltipTarget ml-1"
|
|
|
+ data-toggle="modal" data-target="#batch-update-final-status"
|
|
|
+ v-show="checkData.length > 0"
|
|
|
+ >批量修改最终状态
|
|
|
+ </button>
|
|
|
@endcannot
|
|
|
</div>
|
|
|
<table class="table table-sm table-striped table-bordered table-hover card-body p-0 m-0"
|
|
|
@@ -1107,6 +1113,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ @include('order.issue._batchUpdateFinalStatus')
|
|
|
<textarea id="clipboardDiv" style="opacity:0"></textarea>
|
|
|
</div>
|
|
|
|
|
|
@@ -2429,6 +2436,32 @@
|
|
|
tempTip.show("网络异常:" + error);
|
|
|
});
|
|
|
},
|
|
|
+ batchUpdateRejectingStatus(){
|
|
|
+ let url = "{{route('orderIssue.batchUpdate.finalStatusApi')}}";
|
|
|
+ let data = {
|
|
|
+ ids:this.checkData,
|
|
|
+ final_status:document.getElementById('update-final-status-select').value
|
|
|
+ };
|
|
|
+ window.tempTip.waitingTip('修改中....');
|
|
|
+ window.tempTip.setIndex(1999);
|
|
|
+ window.axios.post(url,data).then(res=>{
|
|
|
+ window.tempTip.cancelWaitingTip();
|
|
|
+ if (res.data.success){
|
|
|
+ $("#batch-update-final-status").modal('hide');
|
|
|
+ this.orderIssues.forEach(item=>{
|
|
|
+ if (this.checkData.includes(item.id)){
|
|
|
+ item.final_status= data.final_status
|
|
|
+ }
|
|
|
+ });
|
|
|
+ window.tempTip.showSuccess("修改成功");
|
|
|
+ } else {
|
|
|
+ window.tempTip.show("修改失败:"+res.data.message);
|
|
|
+ }
|
|
|
+ }).catch(err=>{
|
|
|
+ window.tempTip.cancelWaitingTip();
|
|
|
+ window.tempTip.show("修改异常");
|
|
|
+ });
|
|
|
+ },
|
|
|
listenTBodyResize() {
|
|
|
this.$set(this, 'toggleBtnHeight', document.getElementById('tbody').clientHeight);
|
|
|
},
|
|
|
@@ -2442,7 +2475,6 @@
|
|
|
item.tag = 1;
|
|
|
} else {
|
|
|
window.tempTip.show(res.data.message ? res.data.message : '标记出现异常');
|
|
|
-
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
window.tempTip.show(err);
|