|
|
@@ -82,6 +82,11 @@
|
|
|
v-show="checkData.length > 0"
|
|
|
>批量修改最终状态
|
|
|
</button>
|
|
|
+ <button type="button"
|
|
|
+ class="btn btn-outline-primary btn-sm form-control-sm tooltipTarget ml-1"
|
|
|
+ data-toggle="modal" data-target="#batch-update-issue-type"
|
|
|
+ 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"
|
|
|
@@ -1114,6 +1119,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
@include('order.issue._batchUpdateFinalStatus')
|
|
|
+ @include('order.issue._change_order_issue_type')
|
|
|
<textarea id="clipboardDiv" style="opacity:0"></textarea>
|
|
|
</div>
|
|
|
|
|
|
@@ -2483,7 +2489,32 @@
|
|
|
isDB(item) {
|
|
|
let arr = [14, 15, 28, 29, 72, 87, 121];
|
|
|
return arr.indexOf(item) >= 0;
|
|
|
- }
|
|
|
+ },
|
|
|
+ batchUpdateOrderIssue(){
|
|
|
+ let url = "{{route('orderIssue.batchUpdate.issueTypeApi')}}";
|
|
|
+ let data = {
|
|
|
+ ids:this.checkData,
|
|
|
+ order_issue_type_id:document.getElementById('update-order-issue-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-issue-type").modal('hide');
|
|
|
+ this.orderIssues.forEach(item=>{
|
|
|
+ if (this.checkData.includes(item.id)){
|
|
|
+ item.order_issue_type_id= data.order_issue_type_id
|
|
|
+ }
|
|
|
+ });
|
|
|
+ window.tempTip.showSuccess("修改成功");
|
|
|
+ } else {
|
|
|
+ window.tempTip.show("修改失败:"+res.data.message);
|
|
|
+ }
|
|
|
+ }).catch(err=>{
|
|
|
+ window.tempTip.cancelWaitingTip();
|
|
|
+ window.tempTip.show("修改异常");
|
|
|
+ }); }
|
|
|
},
|
|
|
filters: {
|
|
|
date: function (value) {
|