|
|
|
@ -4238,7 +4238,8 @@ |
|
|
|
|
|
|
|
// 提交 |
|
|
|
submitData () { |
|
|
|
if (this.plmChangeRequestArr) { |
|
|
|
const needValidateRequired = this.modalData.nodeConclusion === 'Y' |
|
|
|
if (needValidateRequired && this.plmChangeRequestArr) { |
|
|
|
for (let i = 0; i < this.plmChangeRequestArr.length; i++) { |
|
|
|
if (!this.modalData[this.plmChangeRequestArr[i].fieldId] && this.plmChangeRequestArr[i].required === 'Y') { |
|
|
|
this.$message.warning(this.plmChangeRequestArr[i].fieldName + '不能为空!') |
|
|
|
@ -4246,7 +4247,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.plmChangeRequestDetailArr) { // 所选技术参数卡 |
|
|
|
if (needValidateRequired && this.plmChangeRequestDetailArr) { // 所选技术参数卡 |
|
|
|
for (let i = 0; i < this.plmChangeRequestDetailArr.length; i++) { |
|
|
|
// 判断集合中的该属性是否都有值 |
|
|
|
let val = this.chooseDataList.every(item => { |
|
|
|
@ -4260,7 +4261,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.plmChangeCostImpactArr) { // 库存成本影响 |
|
|
|
if (needValidateRequired && this.plmChangeCostImpactArr) { // 库存成本影响 |
|
|
|
for (let i = 0; i < this.plmChangeCostImpactArr.length; i++) { |
|
|
|
if (!this.costImpactData[this.plmChangeCostImpactArr[i].fieldId] && this.plmChangeCostImpactArr[i].required === 'Y') { |
|
|
|
this.$message.warning(this.plmChangeCostImpactArr[i].fieldName + '不能为空!') |
|
|
|
@ -4268,7 +4269,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.plmChangeFAItemArr) { // 评估信息 |
|
|
|
if (needValidateRequired && this.plmChangeFAItemArr) { // 评估信息 |
|
|
|
for (let i = 0; i < this.plmChangeFAItemArr.length; i++) { |
|
|
|
let val = this.chooseItemList2.every(item => { |
|
|
|
const value = item[this.plmChangeFAItemArr[i].fieldId] |
|
|
|
@ -4280,7 +4281,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.plmChangeExecutionInfoArr) { |
|
|
|
if (needValidateRequired && this.plmChangeExecutionInfoArr) { |
|
|
|
for (let i = 0; i < this.plmChangeExecutionInfoArr.length; i++) { |
|
|
|
if (!this.executionInfoData[this.plmChangeExecutionInfoArr[i].fieldId] && this.plmChangeExecutionInfoArr[i].required === 'Y') { |
|
|
|
this.$message.warning(this.plmChangeExecutionInfoArr[i].fieldName + '不能为空!') |
|
|
|
@ -4288,7 +4289,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.plmChangeItemArr) { // 执行信息 |
|
|
|
if (needValidateRequired && this.plmChangeItemArr) { // 执行信息 |
|
|
|
for (let i = 0; i < this.plmChangeItemArr.length; i++) { |
|
|
|
let val = this.chooseItemList.every(item => { |
|
|
|
const value = item[this.plmChangeItemArr[i].fieldId] |
|
|
|
@ -4300,7 +4301,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.plmChangeCountersignatureItemArr) { // 会签信息 |
|
|
|
if (needValidateRequired && this.plmChangeCountersignatureItemArr) { // 会签信息 |
|
|
|
for (let i = 0; i < this.plmChangeCountersignatureItemArr.length; i++) { |
|
|
|
let val = this.currentChooseCSItemList.every(item => { |
|
|
|
const value = item[this.plmChangeCountersignatureItemArr[i].fieldId] |
|
|
|
|