diff --git a/src/views/modules/check/currentPhysicalInventory.vue b/src/views/modules/check/currentPhysicalInventory.vue index ae92ff1..0e0963f 100644 --- a/src/views/modules/check/currentPhysicalInventory.vue +++ b/src/views/modules/check/currentPhysicalInventory.vue @@ -6,8 +6,7 @@ 刷 新 下 达 推 送 - - + 审 批 完 成 @@ -24,6 +23,9 @@ {{ autoAdjustLoading ? '处理中...' : '自动处理盈亏' }} + + {{ continuePushLoading ? '推送中...' : '手工继续推送' }} + @@ -485,6 +487,9 @@ export default { taskDetailListLoading: false, currentTask: null, + // 继续推送相关 - rqrq + continuePushLoading: false, + // 复核弹框相关 - rqrq reviewDialogVisible: false, reviewLoading: false, @@ -783,14 +788,15 @@ export default { }).catch(() => {}) }, - // 继续推送 - rqrq + // 继续推送(手工触发继续下达任务,防止自动推送异常中断)- rqrq handleContinuePush() { if (!this.headerData) return - this.$confirm('确认继续推送盘点单 ' + this.headerData.countNo + ' 的后续栈板到WCS?', '提示', { + this.$confirm('确认继续推送盘点单 ' + this.headerData.countNo + ' 的后续栈板到WCS?\n\n注:如果存在未完成的任务单,将无法继续推送。', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { + this.continuePushLoading = true // 开始loading - rqrq const params = { site: this.$store.state.user.site, countNo: this.headerData.countNo, @@ -805,6 +811,8 @@ export default { } }).catch(() => { this.$alert('网络错误', '错误', { confirmButtonText: '确定' }) + }).finally(() => { + this.continuePushLoading = false // 结束loading - rqrq }) }).catch(() => {}) },