|
|
|
@ -90,6 +90,7 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-link v-if="authUpdate && scope.row.changeStatus !== '已完成'" style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link> |
|
|
|
<el-link v-if="authIssue && scope.row.changeStatus === '草稿'" style="cursor: pointer" @click="issueModal(scope.row)">下达</el-link> |
|
|
|
<el-link v-if="authDelete && scope.row.changeStatus === '草稿'" style="cursor: pointer" @click="deleteChangeRecord(scope.row)">删除</el-link> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -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){ |
|
|
|
|