Browse Source

2025-11-14

工程变更申请增加删除按钮
master
fengyuan_yang 2 months ago
parent
commit
b06ed78db3
  1. 50
      src/views/modules/changeManagement/changeRecord.vue

50
src/views/modules/changeManagement/changeRecord.vue

@ -90,6 +90,7 @@
<template slot-scope="scope"> <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="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="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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -1390,7 +1391,8 @@
technicalSpecificationSearch2, // technicalSpecificationSearch2, //
choosePartNoList, // choosePartNoList, //
checkSuperAdmin, // checkSuperAdmin, //
searchDelegateAccess
searchDelegateAccess,
deleteTempChangeInfo, //
} from '@/api/changeManagement/changeManagement.js' } from '@/api/changeManagement/changeManagement.js'
import { import {
getNodeList getNodeList
@ -3012,6 +3014,7 @@
authFileDownLoad: false, authFileDownLoad: false,
authFileRemove: false, authFileRemove: false,
authFilePreview: false, authFilePreview: false,
authDelete: false,
partModelFlag: false, partModelFlag: false,
createBy2: this.$store.state.user.name, createBy2: this.$store.state.user.name,
superAdmin: false, 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 () { submitDataModal () {
this.rejectOpinion = '' 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) { if (this.chooseDataList.length === 0) {
this.$message.warning('请添加需要变更的技术参数卡!') this.$message.warning('请添加需要变更的技术参数卡!')
return return
@ -5142,6 +5147,7 @@
this.authFileDownLoad = this.isAuth(this.menuId+":fileDownLoad") this.authFileDownLoad = this.isAuth(this.menuId+":fileDownLoad")
this.authFileRemove = this.isAuth(this.menuId+":fileRemove") this.authFileRemove = this.isAuth(this.menuId+":fileRemove")
this.authFilePreview = this.isAuth(this.menuId+":filePreview") this.authFilePreview = this.isAuth(this.menuId+":filePreview")
this.authDelete = this.isAuth(this.menuId+":delete")
}, },
queryByAnyField(params){ queryByAnyField(params){

Loading…
Cancel
Save