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,