|
|
@ -6,7 +6,6 @@ |
|
|
<el-button type="primary" @click="loadCurrentCount" :loading="headerLoading">刷 新</el-button> |
|
|
<el-button type="primary" @click="loadCurrentCount" :loading="headerLoading">刷 新</el-button> |
|
|
<el-button type="success" @click="handleRelease" v-if="headerData && headerData.status === 'DRAFT'" :disabled="headerLoading">下 达</el-button> |
|
|
<el-button type="success" @click="handleRelease" v-if="headerData && headerData.status === 'DRAFT'" :disabled="headerLoading">下 达</el-button> |
|
|
<el-button type="warning" @click="handlePush" v-if="headerData && headerData.status === 'RELEASED'" :disabled="headerLoading">推 送</el-button> |
|
|
<el-button type="warning" @click="handlePush" v-if="headerData && headerData.status === 'RELEASED'" :disabled="headerLoading">推 送</el-button> |
|
|
<!-- <el-button type="info" @click="handleContinuePush" v-if="headerData && headerData.status === 'CHECKING'" :disabled="headerLoading">继续推送</el-button> 自动触发--> |
|
|
|
|
|
<!-- 审批按钮 - 盘点中状态显示 - rqrq --> |
|
|
<!-- 审批按钮 - 盘点中状态显示 - rqrq --> |
|
|
<el-button type="warning" @click="handleApprove" v-if="headerData && headerData.status === 'CHECKING'" :disabled="headerLoading">审 批</el-button> |
|
|
<el-button type="warning" @click="handleApprove" v-if="headerData && headerData.status === 'CHECKING'" :disabled="headerLoading">审 批</el-button> |
|
|
<!-- 完成按钮 - 已审批状态显示 - rqrq --> |
|
|
<!-- 完成按钮 - 已审批状态显示 - rqrq --> |
|
|
@ -24,6 +23,9 @@ |
|
|
<el-button type="danger" @click="handleAutoAdjustment" |
|
|
<el-button type="danger" @click="handleAutoAdjustment" |
|
|
v-if="headerData && headerData.status === 'APPROVED'" |
|
|
v-if="headerData && headerData.status === 'APPROVED'" |
|
|
:disabled="headerLoading || autoAdjustLoading">{{ autoAdjustLoading ? '处理中...' : '自动处理盈亏' }}</el-button> |
|
|
:disabled="headerLoading || autoAdjustLoading">{{ autoAdjustLoading ? '处理中...' : '自动处理盈亏' }}</el-button> |
|
|
|
|
|
<!-- 继续盘点按钮 - 盘点中状态显示,手工触发继续下达任务 - rqrq --> |
|
|
|
|
|
<el-button type="info" @click="handleContinuePush" v-if="headerData && headerData.status === 'CHECKING'" :disabled="headerLoading || continuePushLoading">{{ continuePushLoading ? '推送中...' : '手工继续推送' }}</el-button> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- Header信息展示区域 - 一行6个input框 --> |
|
|
<!-- Header信息展示区域 - 一行6个input框 --> |
|
|
@ -485,6 +487,9 @@ export default { |
|
|
taskDetailListLoading: false, |
|
|
taskDetailListLoading: false, |
|
|
currentTask: null, |
|
|
currentTask: null, |
|
|
|
|
|
|
|
|
|
|
|
// 继续推送相关 - rqrq |
|
|
|
|
|
continuePushLoading: false, |
|
|
|
|
|
|
|
|
// 复核弹框相关 - rqrq |
|
|
// 复核弹框相关 - rqrq |
|
|
reviewDialogVisible: false, |
|
|
reviewDialogVisible: false, |
|
|
reviewLoading: false, |
|
|
reviewLoading: false, |
|
|
@ -783,14 +788,15 @@ export default { |
|
|
}).catch(() => {}) |
|
|
}).catch(() => {}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 继续推送 - rqrq |
|
|
|
|
|
|
|
|
// 继续推送(手工触发继续下达任务,防止自动推送异常中断)- rqrq |
|
|
handleContinuePush() { |
|
|
handleContinuePush() { |
|
|
if (!this.headerData) return |
|
|
if (!this.headerData) return |
|
|
this.$confirm('确认继续推送盘点单 ' + this.headerData.countNo + ' 的后续栈板到WCS?', '提示', { |
|
|
|
|
|
|
|
|
this.$confirm('确认继续推送盘点单 ' + this.headerData.countNo + ' 的后续栈板到WCS?\n\n注:如果存在未完成的任务单,将无法继续推送。', '提示', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
|
|
|
this.continuePushLoading = true // 开始loading - rqrq |
|
|
const params = { |
|
|
const params = { |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
countNo: this.headerData.countNo, |
|
|
countNo: this.headerData.countNo, |
|
|
@ -805,6 +811,8 @@ export default { |
|
|
} |
|
|
} |
|
|
}).catch(() => { |
|
|
}).catch(() => { |
|
|
this.$alert('网络错误', '错误', { confirmButtonText: '确定' }) |
|
|
this.$alert('网络错误', '错误', { confirmButtonText: '确定' }) |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
this.continuePushLoading = false // 结束loading - rqrq |
|
|
}) |
|
|
}) |
|
|
}).catch(() => {}) |
|
|
}).catch(() => {}) |
|
|
}, |
|
|
}, |
|
|
|