|
|
@ -817,6 +817,7 @@ |
|
|
|
<div class="abnormalBox_flex"> |
|
|
|
<div class="abnormalBox_flex"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" @click="BatchcancellationAll">批量取消</el-button> |
|
|
|
<el-button type="primary" @click="BatchcancellationAll">批量取消</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" @click="Batchreview">批量审核</el-button> |
|
|
|
<el-button type="primary" @click="abnormalViewQRcode(1)">批量查看二维码</el-button> |
|
|
|
<el-button type="primary" @click="abnormalViewQRcode(1)">批量查看二维码</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -886,7 +887,10 @@ |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog v-model="dialogViReject" title="驳回" width="500"> |
|
|
|
<el-dialog v-model="dialogViReject" title="驳回" width="500"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<span>请联系司机将货物带回仓库,并由<strong style="color: red">文员或库管</strong>进行回库扫描</span> |
|
|
|
<span |
|
|
|
|
|
|
|
>请联系司机将货物带回仓库,并由<strong style="color: red">文员或库管</strong |
|
|
|
|
|
|
|
>进行回库扫描</span |
|
|
|
|
|
|
|
> |
|
|
|
<!-- <el-select |
|
|
|
<!-- <el-select |
|
|
|
v-model="yesOrNo" |
|
|
|
v-model="yesOrNo" |
|
|
|
placeholder="请选择货物是否在库" |
|
|
|
placeholder="请选择货物是否在库" |
|
|
@ -4219,6 +4223,57 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// 批量审核 |
|
|
|
|
|
|
|
Batchreview() { |
|
|
|
|
|
|
|
if (!this.selectionList.length) { |
|
|
|
|
|
|
|
ElMessage({ |
|
|
|
|
|
|
|
message: '请勾选要审核的数据', |
|
|
|
|
|
|
|
type: 'warning', |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
let result = this.selectionList.every(item => { |
|
|
|
|
|
|
|
return item.auditingStatusName === '待审核' && item.abnormalTypeName !== '装车异常'; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
if (!result) { |
|
|
|
|
|
|
|
ElMessage({ |
|
|
|
|
|
|
|
message: '勾选数据必须满足条件为待审核并且不是装车异常', |
|
|
|
|
|
|
|
type: 'warning', |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ElMessageBox.confirm('是否确认批量审核?', '提示', { |
|
|
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
|
|
type: 'warning', |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.then(() => { |
|
|
|
|
|
|
|
let ids = this.selectionList.map(item => item.id).join(','); |
|
|
|
|
|
|
|
this.AbnormalReviewloading = true; //开启加载 |
|
|
|
|
|
|
|
loadingAbnormalPackageListAuditing(ids) |
|
|
|
|
|
|
|
.then(res => { |
|
|
|
|
|
|
|
console.log('res-------->', res); |
|
|
|
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
|
|
|
this.$message({ |
|
|
|
|
|
|
|
type: 'success', |
|
|
|
|
|
|
|
message: '操作成功!', |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.AbnormalReviewloading = false; //关闭加载 |
|
|
|
|
|
|
|
console.log(); |
|
|
|
|
|
|
|
this.viewAbnormalLoading(this.toexamineID); //驳回完成更新数据 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.catch(error => { |
|
|
|
|
|
|
|
console.log(error, 'error'); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.finally(() => { |
|
|
|
|
|
|
|
this.AbnormalReviewloading = false; //关闭加载 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.catch(() => {}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 滞留 |
|
|
|
// 滞留 |
|
|
|
retention(row) { |
|
|
|
retention(row) { |
|
|
|
ElMessageBox.confirm('是否确认滞留操作?', '提示', { |
|
|
|
ElMessageBox.confirm('是否确认滞留操作?', '提示', { |
|
|
@ -5402,8 +5457,8 @@ export default { |
|
|
|
ElMessage({ |
|
|
|
ElMessage({ |
|
|
|
message: '遇到异常,请刷新页面重试', |
|
|
|
message: '遇到异常,请刷新页面重试', |
|
|
|
type: 'warning', |
|
|
|
type: 'warning', |
|
|
|
}) |
|
|
|
}); |
|
|
|
return |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
const res = await getDetail(this.deliveryId); |
|
|
|
const res = await getDetail(this.deliveryId); |
|
|
|
|
|
|
|
|
|
|
|