diff --git a/src/api/pick/exception.js b/src/api/pick/exception.js
index cee989ec97618cb70d312a02352b3b30c625c858..166970e89e598d98a125700e9862aa0569cf0a82 100644
--- a/src/api/pick/exception.js
+++ b/src/api/pick/exception.js
@@ -52,3 +52,12 @@ export function saveException(data) {
data: data
})
}
+
+// 重新推送异常
+export function pushException(data) {
+ return fetch({
+ url: '/OpManagement/pushException',
+ method: 'post',
+ data: data
+ })
+}
diff --git a/src/views/pick/exception.vue b/src/views/pick/exception.vue
index 82e9fa56b08897b8798e441757240105afd3a4d8..eb3d6077506a539dbb9602858901d8a7703e6db3 100644
--- a/src/views/pick/exception.vue
+++ b/src/views/pick/exception.vue
@@ -10,6 +10,9 @@
异常处理
+ 重推异常
+
新增
@@ -326,6 +329,42 @@
}
})
},
+ // 检查是否选择单条
+ checkSelect(data) {
+ const l = data.length
+ if (l === 0) {
+ this.$message({
+ message: '未选择',
+ type: 'warning',
+ duration: 2000
+ })
+ return false
+ }
+ return true
+ },
+ // 重新推送异常信息
+ pushException() {
+ if (this.checkSelect(this.selectRow)) {
+ const paramsVin = []
+ for (let c = 0; c < this.selectRow.length; c++) {
+ paramsVin.push(this.selectRow[c].vin)
+ }
+ const toParams = {
+ vin: paramsVin.length > 1 ? paramsVin.join(',') : paramsVin[0]
+ }
+ ExceptionAPI.pushException(toParams).then(res => {
+ this.$message({
+ message: '重新推送成功',
+ type: 'success',
+ duration: 2000
+ })
+ this.getList()
+ }).catch(err => {
+ console.log('错误', err)
+ })
+ }
+ },
+
// 异常处理
exceptionHandling() {
if (this.selectRow.length === 1) {