|
|
@@ -30,6 +30,10 @@
|
|
|
class="ml-1 btn btn-outline-primary btn-sm"
|
|
|
@click="baoShiBatchHandler">宝时批量处理
|
|
|
</button>
|
|
|
+ <button type="button"
|
|
|
+ class="ml-1 btn btn-outline-primary btn-sm"
|
|
|
+ @click="showBatchStoreProcessLogs">批量处理日志
|
|
|
+ </button>
|
|
|
@endcan
|
|
|
@can('订单管理-问题件-编辑')
|
|
|
<button type="button"
|
|
|
@@ -3170,7 +3174,9 @@
|
|
|
this.pushProcessLog(res.data.data);
|
|
|
this.successTempTip('处理完成');
|
|
|
if (this.dialogProcessLogVisible) this.dialogProcessLogVisible = false;
|
|
|
-
|
|
|
+ this.processLogs.select_id = null;
|
|
|
+ this.selectIndex = null;
|
|
|
+ this.content = null;
|
|
|
return;
|
|
|
}
|
|
|
this.errorTempTip(res.data.message ? res.data.message : '处理出现异常,请刷新页面重试');
|
|
|
@@ -3179,8 +3185,15 @@
|
|
|
this.errorTempTip(err);
|
|
|
})
|
|
|
},
|
|
|
+ showBatchStoreProcessLogs(){
|
|
|
+ if (checkData.length === 0){
|
|
|
+ this.errorTempTip('请选择需要处理工单')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.dialogProcessLogVisible= true;
|
|
|
+ },
|
|
|
batchStoreProcessLogs() {
|
|
|
- let url = "{{route('workOrder.processLog.batchStore')}}}";
|
|
|
+ let url = "{{route('workOrder.processLog.batchStore')}}";
|
|
|
let data = {
|
|
|
ids: checkData,
|
|
|
content: this.processLogs.content,
|
|
|
@@ -3189,8 +3202,8 @@
|
|
|
window.axios.post(url, data).then(res => {
|
|
|
window.tempTip.cancelWaitingTip();
|
|
|
if (res.data.success) {
|
|
|
+ this.successTempTip('处理完成')
|
|
|
this.pushProcessLogs(res.data.data);
|
|
|
- window.tempTip.successTempTip('处理完成')
|
|
|
this.dialogProcessLogVisible = false;
|
|
|
return;
|
|
|
}
|