From 63e5cd20d737bb802871b3251c05737bf626ed54 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 9 Sep 2026 14:34:28 +0800 Subject: [PATCH] =?UTF-8?q?2026-09-08=20=E9=A1=B9=E7=9B=AE=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=A2=9E=E5=8A=A0oa=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectInfo/com_project_info_part.vue | 77 ++++++++++++++++++- 1 file changed, 73 insertions(+), 4 deletions(-) diff --git a/src/views/modules/project/projectInfo/com_project_info_part.vue b/src/views/modules/project/projectInfo/com_project_info_part.vue index 0eb1c85..97657ce 100644 --- a/src/views/modules/project/projectInfo/com_project_info_part.vue +++ b/src/views/modules/project/projectInfo/com_project_info_part.vue @@ -125,6 +125,14 @@ BU + + + + + + + + @@ -748,7 +756,7 @@ - +
@@ -772,7 +780,7 @@
- + 可选物料: - +
添加>> 删除<< 上传
- + 已选物料:
+ + + + + +
@@ -1587,6 +1617,8 @@ import CodeGeneration from "../../code/generation.vue"; customerNo: '', buNo: '', buDesc: '', + applicationDesc: '', + productCategory: '', plmPartNo: '', ifsPartNo: '', showInQueryFlag: '', @@ -1685,6 +1717,20 @@ import CodeGeneration from "../../code/generation.vue"; trigger: ['blur','change'] } ], + applicationDesc: [ + { + required: true, + message: ' ', + trigger: ['blur','change'] + } + ], + productCategory: [ + { + required: true, + message: ' ', + trigger: ['blur','change'] + } + ], }, inventoryPartTable: 'General', tempCodeNo: '', @@ -1782,6 +1828,7 @@ import CodeGeneration from "../../code/generation.vue"; partListAll: [], partList1: [], partList2: [], + productCategoryOptions: ['Label', 'Diecut', 'Decoration', 'Material'], partData: { site: this.$store.state.user.site, partNo: '', @@ -2357,6 +2404,8 @@ import CodeGeneration from "../../code/generation.vue"; partNoSource: '料号新增', buNo: '', buDesc: '', + applicationDesc: '', + productCategory: '', partItemList: [], plmPartNo: '', ifsPartNo: '', @@ -2494,6 +2543,8 @@ import CodeGeneration from "../../code/generation.vue"; customerNo: this.searchData.customerId, buNo: data.rows.buNo, buDesc: data.rows.buDesc, + applicationDesc: data.rows.applicationDesc || '', + productCategory: data.rows.productCategory || '', partItemList: [], plmPartNo: data.rows.plmPartNo, ifsPartNo: data.rows.ifsPartNo, @@ -2627,6 +2678,8 @@ import CodeGeneration from "../../code/generation.vue"; partNoSource: '料号复制', buNo: '', buDesc: '', + applicationDesc: '', + productCategory: '', partItemList: [], plmPartNo: data.rows.plmPartNo, ifsPartNo: data.rows.ifsPartNo, @@ -2737,6 +2790,14 @@ import CodeGeneration from "../../code/generation.vue"; this.$message.warning('请选择BU!') return } + if (this.modalData.applicationDesc === '' || this.modalData.applicationDesc == null || !String(this.modalData.applicationDesc).trim()) { + this.$message.warning('请填写应用描述!') + return + } + if (this.modalData.productCategory === '' || this.modalData.productCategory == null) { + this.$message.warning('请选择产品类别!') + return + } if (this.partItemList.length > 0 && (this.modalData.codeNo == null || this.modalData.codeNo === '')) { this.$message.warning('存在物料属性,属性模板不能为空值!') return @@ -2956,6 +3017,14 @@ 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('应用描述不能为空!') + return + } + if (this.partList2.some(x => x.productCategory == null || x.productCategory === '')) { + this.$message.warning('产品类别不能为空!') + return + } let tempData = { site: this.searchData.site, projectId: this.searchData.projectId,