|
|
@@ -50,7 +50,13 @@
|
|
|
导入处理
|
|
|
</button>
|
|
|
</span>
|
|
|
-
|
|
|
+ @can('订单管理-问题件-财务确认')
|
|
|
+ <span class="ml-1">
|
|
|
+ <button type="button" class="btn btn-outline-dark btn-sm form-control-sm tooltipTarget" @click="financeConfirm">
|
|
|
+ 财务确认
|
|
|
+ </button>
|
|
|
+ </span>
|
|
|
+ @endcan
|
|
|
</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">
|
|
|
<tr class="tr-yellow" align="center" >
|
|
|
@@ -169,7 +175,10 @@
|
|
|
<input class="checkItem" type="checkbox" :value="orderIssue.id" v-model="checkData">
|
|
|
</div>
|
|
|
</td>
|
|
|
- <td class="child-layer-1">@{{index+1}}</td>
|
|
|
+ <td class="child-layer-1 text-nowrap">
|
|
|
+ @{{index+1}}
|
|
|
+ <span class="text-muted" v-if="orderIssue.finance_confirm === '是'">财务确认</span>
|
|
|
+ </td>
|
|
|
<td class="child-layer-1">
|
|
|
@{{ orderIssue.id }}
|
|
|
@can('订单管理-问题件-编辑')
|
|
|
@@ -1443,6 +1452,42 @@
|
|
|
tempTip.setDuration(2000)
|
|
|
tempTip.show('处理导入出现异常'+error)
|
|
|
})
|
|
|
+ },
|
|
|
+ financeConfirm(){
|
|
|
+ let _this= this
|
|
|
+ if(this.checkData.length === 0){
|
|
|
+ tempTip.setDuration(2000)
|
|
|
+ tempTip.show('没有勾选内容')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(!confirm('是否进行财务确认'))return;
|
|
|
+ let data = {ids:this.checkData};
|
|
|
+ tempTip.setDuration(9999);
|
|
|
+ tempTip.waitingTip('处理中.......');
|
|
|
+ axios.post('{{url('apiLocal/order/issue/financeConfirm')}}',data)
|
|
|
+ .then(function(response){
|
|
|
+ tempTip.cancelWaitingTip();
|
|
|
+ if(response.data.success){
|
|
|
+ tempTip.setDuration(2000);
|
|
|
+ tempTip.showSuccess('确认成功');
|
|
|
+ _this.orderIssuesEdit(data.ids,'finance_confirm','是');
|
|
|
+ }else{
|
|
|
+ tempTip.setDuration(2000);
|
|
|
+ tempTip.show(response.data.error);
|
|
|
+ }
|
|
|
+ }).catch(function(error){
|
|
|
+ tempTip.cancelWaitingTip();
|
|
|
+ tempTip.setDuration(2000);
|
|
|
+ tempTip.show(error);
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
+ orderIssuesEdit(ids,column,value){
|
|
|
+ this.orderIssues.forEach(function(item){
|
|
|
+ if(ids.includes(item.id)){
|
|
|
+ item[column] = value;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
})
|