Browse Source

2025-11-14

工程变更申请增加删除按钮
master
fengyuan_yang 3 months ago
parent
commit
92b2fcc61b
  1. 12
      src/views/modules/changeManagement/changeRecord.vue
  2. 2
      src/views/modules/changeManagement/changeRequest.vue
  3. 8
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

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

@ -244,7 +244,7 @@
<div class="rq"> <div class="rq">
<el-table <el-table
:data="chooseDataList" :data="chooseDataList"
height="345px"
height="273px"
border border
style="width:100%"> style="width:100%">
<!-- <el-table-column--> <!-- <el-table-column-->
@ -351,7 +351,7 @@
width="60" width="60"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link v-if="currentRow.stepId === 10 || currentRow.stepId == null || currentRow.stepId === ''" style="cursor: pointer" @click="deleteChooseDataModal(scope.row)">删除</el-link>
<el-link style="cursor: pointer" @click="deleteChooseDataModal(scope.row)">删除</el-link>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -4132,6 +4132,10 @@
// //
deleteChooseDataModal (row) { deleteChooseDataModal (row) {
if (!(this.currentRow.stepId === 10 || this.currentRow.stepId == null || this.currentRow.stepId === '')) {
this.$message.warning('变更单已提交,不能删除!')
return;
}
this.$confirm(`是否删除该技术参数卡的变更?`, '提示', { this.$confirm(`是否删除该技术参数卡的变更?`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -4713,6 +4717,10 @@
// //
addChangeDetail () { addChangeDetail () {
if (!(this.currentRow.stepId === 10 || this.currentRow.stepId == null || this.currentRow.stepId === '')) {
this.$message.warning('变更单已提交,不能新增!')
return;
}
this.searchData2.buNo = this.modalData.buNo this.searchData2.buNo = this.modalData.buNo
technicalSpecificationSearch2(this.searchData2).then(({data}) => { technicalSpecificationSearch2(this.searchData2).then(({data}) => {
if (data.code === 0) { if (data.code === 0) {

2
src/views/modules/changeManagement/changeRequest.vue

@ -241,7 +241,7 @@
<div class="rq"> <div class="rq">
<el-table <el-table
:data="chooseDataList" :data="chooseDataList"
height="345px"
height="273px"
border border
style="width:100%"> style="width:100%">
<!-- <el-table-column--> <!-- <el-table-column-->

8
src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

@ -1326,9 +1326,10 @@
if (this.tagNo1 === 9) { if (this.tagNo1 === 9) {
this.dataForm.planOperator = val.username this.dataForm.planOperator = val.username
this.dataForm.planOperatorName = val.userDisplay this.dataForm.planOperatorName = val.userDisplay
this.$nextTick(() => {
this.$triggerInputEvent(this.$refs.planOperatorName);
})
this.$forceUpdate(); //
// this.$nextTick(() => {
// this.$triggerInputEvent(this.$refs.planOperatorName);
// })
} }
if (this.tagNo1 === 10) { if (this.tagNo1 === 10) {
this.dataForm.qualityEngineerNo = val.username this.dataForm.qualityEngineerNo = val.username
@ -2082,6 +2083,7 @@
} }
this.dataForm.dcc = dccName this.dataForm.dcc = dccName
this.dataForm.dccList = JSON.parse(JSON.stringify(this.dccList)) this.dataForm.dccList = JSON.parse(JSON.stringify(this.dccList))
this.$forceUpdate(); //
this.dccVisible = false this.dccVisible = false
}, },

Loading…
Cancel
Save