diff --git a/fe/PC/src/views/padManage/isPadForKittingPack.vue b/fe/PC/src/views/padManage/isPadForKittingPack.vue index 9a76ae3ed..279eb645c 100644 --- a/fe/PC/src/views/padManage/isPadForKittingPack.vue +++ b/fe/PC/src/views/padManage/isPadForKittingPack.vue @@ -3,6 +3,7 @@
+ 【{{loginName}}】您好!
{{ item.chassisNumber }} + >{{ item.chassisNumber }} ({{item.itemCode}})
暂无数据
@@ -76,12 +77,7 @@ > - -
@@ -104,6 +100,7 @@ export default { name: "isPadForKittingPack", data() { return { + loginName:store.getters.name.name, loading:false, // 循环数据定时器 intervalId:false, @@ -162,9 +159,7 @@ export default { MaxResultCount: 9999, } this.loading = true - console.log(111) return getPageList(_data, 'auth/auth/page-lock') - console.log(222) }, // 左侧按钮点击事件 -获取是否锁定 async getPageLockList(selectItem){ @@ -352,9 +347,31 @@ export default { }); }, // 完成该组底盘 - finishChassisHandle(){ + async finishChassisHandle(){ if(this.isLock)return - this.$confirm('是否确定完成该组底盘', '提示', { + // 先判断是否别人锁定,如果是别人锁定,踢出 + let _filter= [ + { + logic: "And", + column: "menuCode", + action: "==", + value: this.$route.name + '_' + this.currentKittingInfo.code, + }, + { + logic: "And", + column: "userAccount", + action: "!=", + value: store.getters.name.name, + } + ] + let _lockList = await this.getPageLockListHttp(_filter) + this.loading = false + if(_lockList && _lockList.items && _lockList.items.length > 0){ + this.$errorMsg(this.lockTip) + this.isLock=true + return + } + this.$confirm('是否确定完成该组底盘?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning'