|
|
|
@ -3041,9 +3041,10 @@ import CodeGeneration from "../../code/generation.vue"; |
|
|
|
this.searchTypeChange() |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 新增项目物料 |
|
|
|
*/ |
|
|
|
isTemporaryImportPart (row) { |
|
|
|
return row && row.status === 'N' |
|
|
|
}, |
|
|
|
|
|
|
|
saveProjectPartModal () { |
|
|
|
if (this.partList2.some(x => x.buNo == null || x.buNo === '')) { |
|
|
|
this.$message.warning('BU不能为空!') |
|
|
|
@ -3053,12 +3054,12 @@ import CodeGeneration from "../../code/generation.vue"; |
|
|
|
this.$message.warning('客户料号不能为空!') |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.partList2.some(x => x.applicationDesc == null || String(x.applicationDesc).trim() === '')) { |
|
|
|
this.$message.warning('应用描述不能为空!') |
|
|
|
if (this.partList2.some(x => this.isTemporaryImportPart(x) && (x.applicationDesc == null || String(x.applicationDesc).trim() === ''))) { |
|
|
|
this.$message.warning('临时物料应用描述不能为空!') |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.partList2.some(x => x.productCategory == null || x.productCategory === '')) { |
|
|
|
this.$message.warning('产品类别不能为空!') |
|
|
|
if (this.partList2.some(x => this.isTemporaryImportPart(x) && (x.productCategory == null || x.productCategory === ''))) { |
|
|
|
this.$message.warning('临时物料产品类别不能为空!') |
|
|
|
return |
|
|
|
} |
|
|
|
let tempData = { |
|
|
|
|