|
|
|
@ -320,7 +320,7 @@ |
|
|
|
min-width="170" |
|
|
|
label="New IFS Part No."> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input clearable @keydown.native.prevent :ref="`newPartNo${scope.$index}`" v-model="scope.row.finalPartNo" style="width:77%"></el-input> |
|
|
|
<el-input clearable @keydown.native.prevent @clear="scope.row.newPartNo = ''" :ref="`newPartNo${scope.$index}`" v-model="scope.row.finalPartNo" style="width:77%"></el-input> |
|
|
|
<el-button :disabled="showModalFlag||changeRequestDetailFlag('newPartNo') === 'N'" type="primary" @click="choosePartNo(scope.row)" style="width:18%;padding: 3px 7px">· · ·</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -4284,7 +4284,12 @@ |
|
|
|
this.modalData.menuId = this.$route.meta.menuId |
|
|
|
|
|
|
|
// 处理明细列表:前端显示用finalPartNo(IFS物料编码),后端存储用newPartNo(PLM物料编码) |
|
|
|
// newPartNo在选择物料时已经正确设置为PLM编码,这里直接传递即可 |
|
|
|
// finalPartNo 已清空时同步清除 newPartNo,防止 clearable 后旧值残留被提交 |
|
|
|
this.chooseDataList.forEach(item => { |
|
|
|
if (!item.finalPartNo) { |
|
|
|
item.newPartNo = '' |
|
|
|
} |
|
|
|
}) |
|
|
|
this.modalData.detailList = this.chooseDataList |
|
|
|
this.modalData.ecnTypeData = this.form |
|
|
|
this.modalData.costImpactData = this.costImpactData |
|
|
|
@ -4632,6 +4637,12 @@ |
|
|
|
this.countersignatureData.changeNo = this.modalData.changeNo |
|
|
|
this.countersignatureData.chooseCSItemList = this.chooseCSItemList |
|
|
|
|
|
|
|
// finalPartNo 已清空时同步清除 newPartNo,防止 clearable 后旧值残留被提交 |
|
|
|
this.chooseDataList.forEach(item => { |
|
|
|
if (!item.finalPartNo) { |
|
|
|
item.newPartNo = '' |
|
|
|
} |
|
|
|
}) |
|
|
|
this.modalData.detailList = this.chooseDataList |
|
|
|
this.modalData.ecnTypeData = this.form |
|
|
|
this.modalData.costImpactData = this.costImpactData |
|
|
|
|