Browse Source

优化

master
常熟吴彦祖 2 months ago
parent
commit
76255788aa
  1. 16
      src/views/modules/check/currentPhysicalInventory.vue

16
src/views/modules/check/currentPhysicalInventory.vue

@ -6,8 +6,7 @@
<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 -->
<el-button type="success" @click="handleComplete" v-if="headerData && headerData.status === 'APPROVED'" :disabled="headerLoading"> </el-button> <el-button type="success" @click="handleComplete" v-if="headerData && headerData.status === 'APPROVED'" :disabled="headerLoading"> </el-button>
@ -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(() => {})
}, },

Loading…
Cancel
Save