diff --git a/src/views/modules/changeManagement/changeRecord.vue b/src/views/modules/changeManagement/changeRecord.vue index 5aede87..ee86139 100644 --- a/src/views/modules/changeManagement/changeRecord.vue +++ b/src/views/modules/changeManagement/changeRecord.vue @@ -90,6 +90,7 @@ @@ -1390,7 +1391,8 @@ technicalSpecificationSearch2, // 获取技术参数卡列表 choosePartNoList, // 根据视图查物料计划 checkSuperAdmin, // 校验是否为超级管理员 - searchDelegateAccess + searchDelegateAccess, + deleteTempChangeInfo, // 删除临时变更数据 } from '@/api/changeManagement/changeManagement.js' import { getNodeList @@ -3012,6 +3014,7 @@ authFileDownLoad: false, authFileRemove: false, authFilePreview: false, + authDelete: false, partModelFlag: false, createBy2: this.$store.state.user.name, superAdmin: false, @@ -3812,6 +3815,29 @@ }) }, + // 删除变更申请模态框 + deleteChangeRecord (row) { + this.$confirm(`是否删除该变更记录?`, '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + let tempData = { + ...row + } + deleteTempChangeInfo(tempData).then(({data}) => { + if (data && data.code === 0) { + this.getDataList() + this.$message({message: '操作成功', type: 'success'}) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }) + }, + // 打开提交模态框 submitDataModal () { this.rejectOpinion = '' @@ -4237,27 +4263,6 @@ } } - if (this.executionInfoData.originalDieCuttingRuleNo == null || this.executionInfoData.originalDieCuttingRuleNo === '') { - this.$message.warning('请填写原碑刀编号!') - return; - } - if (this.executionInfoData.newDieCuttingRuleNo == null || this.executionInfoData.newDieCuttingRuleNo === '') { - this.$message.warning('请填写新碑刀编号!') - return; - } - if (this.executionInfoData.originalStencilNo == null || this.executionInfoData.originalStencilNo === '') { - this.$message.warning('请填写原网板/印版编号!') - return; - } - if (this.executionInfoData.newStencilNo == null || this.executionInfoData.newStencilNo === '') { - this.$message.warning('请填写新网板/印版编号!') - return; - } - if (this.executionInfoData.executionDate == null || this.executionInfoData.executionDate === '') { - this.$message.warning('请选择ECN执行日期!') - return; - } - if (this.chooseDataList.length === 0) { this.$message.warning('请添加需要变更的技术参数卡!') return @@ -5142,6 +5147,7 @@ this.authFileDownLoad = this.isAuth(this.menuId+":fileDownLoad") this.authFileRemove = this.isAuth(this.menuId+":fileRemove") this.authFilePreview = this.isAuth(this.menuId+":filePreview") + this.authDelete = this.isAuth(this.menuId+":delete") }, queryByAnyField(params){