Browse Source

预留描述

dev
常熟吴彦祖 5 days ago
parent
commit
2b7b6f5348
  1. 18
      src/views/modules/haianWarehouse/warehouse/ifsCallErrorLog54.vue

18
src/views/modules/haianWarehouse/warehouse/ifsCallErrorLog54.vue

@ -232,13 +232,20 @@ export default {
},
// 标记已处理:要求填写备注,避免后续无法追溯处理依据 - rqrq
markAsProcessed() {
// 共用操作锁防止重复提交;必须使用所选记录的实际site,缺失时禁止回退大site误处理 - rqrq
if (this.markProcessedLoading || this.markIgnoredLoading) return
if (!this.currentRow.site || !this.currentRow.id) {
this.$message.error('日志工厂或记录编号缺失,请重新查询后操作')
return
}
if (!this.processRemark || this.processRemark.trim() === '') {
this.$message.warning('请填写处理备注')
return
}
this.markProcessedLoading = true
const params = {
site: this.$store.state.user.site,
// 大site列表包含小site日志,按记录site提交,后端继续核对site与id对应关系 - rqrq
site: this.currentRow.site,
id: this.currentRow.id,
remark: this.processRemark,
processedBy: this.$store.state.user.name
@ -259,13 +266,20 @@ export default {
},
// 标记已忽略:只做人工状态确认,不触发重试逻辑 - rqrq
markAsIgnored() {
// 共用操作锁防止重复提交;小site记录按自身site处理,缺失业务主键时终止请求 - rqrq
if (this.markProcessedLoading || this.markIgnoredLoading) return
if (!this.currentRow.site || !this.currentRow.id) {
this.$message.error('日志工厂或记录编号缺失,请重新查询后操作')
return
}
if (!this.processRemark || this.processRemark.trim() === '') {
this.$message.warning('请填写忽略原因')
return
}
this.markIgnoredLoading = true
const params = {
site: this.$store.state.user.site,
// 保留所选日志的实际工厂,避免大site与小site不一致导致忽略操作被拒绝 - rqrq
site: this.currentRow.site,
id: this.currentRow.id,
remark: this.processRemark,
processedBy: this.$store.state.user.name

Loading…
Cancel
Save