diff --git a/src/views/modules/part/quicklyCreateBom.vue b/src/views/modules/part/quicklyCreateBom.vue
index d1926e0..076b9c5 100644
--- a/src/views/modules/part/quicklyCreateBom.vue
+++ b/src/views/modules/part/quicklyCreateBom.vue
@@ -283,8 +283,23 @@
:min-width="item.columnWidth"
:label="item.columnLabel">
- {{scope.row[item.columnProp]}}
-
+
+
+
+ 成品
+
+
+ 半成品
+
+
+ 原材料
+
+
+
+ {{scope.row[item.columnProp]}}
+
+
+
@@ -327,8 +342,8 @@
:label="item.columnLabel">
- {{scope.row[item.columnProp]}}
-
+ {{scope.row[item.columnProp]}}
+
{{scope.row[item.columnProp]}}
-
+
@@ -382,14 +397,14 @@
-
+
-
+
-
+
{
@@ -2505,6 +2527,7 @@ export default {
createBy: this.$store.state.user.name,
updateBy: this.$store.state.user.name,
mainPart: this.searchData.partNo,
+ rfqDetailId: this.searchData.rfqDetailId,
}
this.treeData1 = [
{
@@ -2520,20 +2543,6 @@ export default {
this.nodeModalFlag = true
},
- // 新增子节点
- // addTreeItem (data) {
- // this.nodeData = {
- // flag: '1',
- // site: this.$store.state.user.site,
- // nodeId: '',
- // nodeName: '',
- // pId: data.id,
- // createBy: this.$store.state.user.name,
- // updateBy: this.$store.state.user.name,
- // }
- // this.nodeModalDisableFlag = false
- // this.nodeModalFlag = true
- // },
// 修改节点
editTreeItem (data) {
@@ -2717,7 +2726,9 @@ export default {
nodeFlag: true,
page: 1,
limit: 10,
- mainPart: this.searchData.partNo
+ mainPart: this.searchData.partNo,
+ nodeId: this.treeData[0].nodeId,
+ engChgLevel: this.treeData[0].engChgLevel
}
this.currentNode = data
this.queryPartList()
@@ -3637,48 +3648,58 @@ export default {
} else {
for (let i = 0; i < this.partList1.length; i++) {
if (!this.partList1[i].partNo||this.partList1[i].partNo===''){
+ console.log('处理行数据',i+1)
// 没有物料编号就新增料号
// 没有填写物料描述就认为用户暂时不在这个节点新建料号
if (this.partList1[i].partDesc === '' || this.partList1[i].partDesc == null) {
+ console.log('没有物料描述的行数据',i+1)
continue
}
- this.partList1[i].partNo = '*'
- this.partList1[i].active = 'Y'
- this.partList1[i].createBy = this.$store.state.user.name
- this.partList1[i].mainPart = this.searchData.partNo
-
if (this.partList1[i].buNo === '' || this.partList1[i].buNo == null) {
+ console.log('没有BU的行数据',i+1)
this.$message.warning('请选择'+ this.partList1[i].nodeName +'节点的BU!')
return
}
if (this.partList1[i].partType2 === '' || this.partList1[i].partType2 == null) {
+ console.log('没有零件类型的行数据',i+1)
this.$message.warning('请选择'+ this.partList1[i].nodeName +'节点的零件类型!')
return
}
if (this.partList1[i].umId2 === '' || this.partList1[i].umId2 == null) {
+ console.log('没有计量单位的行数据',i+1)
this.$message.warning('请选择'+ this.partList1[i].nodeName +'节点的计量单位!')
return
}
if (this.partList1[i].partType2 === 'Purchased (raw)' && (this.partList1[i].familyID === '' || this.partList1[i].familyID == null)) {
+ console.log('没有物料分类的行数据',i+1)
this.$message.warning('请选择'+ this.partList1[i].nodeName +'节点的物料分类!')
return
}
if (this.partList1[i].partType2 !== 'Purchased (raw)' && (this.partList1[i].productGroupId1 === '' || this.partList1[i].productGroupId1 == null)) {
+ console.log('没有商品组1的行数据',i+1)
this.$message.warning('请选择'+ this.partList1[i].nodeName +'节点的商品组1!')
return
}
if (this.partList1[i].partType2 !== 'Purchased (raw)' && (this.partList1[i].productGroupId2 === '' || this.partList1[i].productGroupId2 == null)) {
+ console.log('没有商品组2的行数据',i+1)
this.$message.warning('请选择'+ this.partList1[i].nodeName +'节点的商品组2!')
return
}
if (this.partList1[i].codeNo === '' || this.partList1[i].codeNo == null) {
+ console.log('没有属性模板的行数据',i+1)
this.$message.warning('请选择'+ this.partList1[i].nodeName +'节点的属性模板!')
return
}
let flag = true
+ this.partList1[i].partNo = '*'
+ this.partList1[i].active = 'Y'
+ this.partList1[i].createBy = this.$store.state.user.name
+ this.partList1[i].mainPart = this.searchData.partNo
+ console.log('其他数据赋值完成',i+1)
// 创建物料
await savePartInfo(this.partList1[i]).then((data) => {
if (data.data && data.data.code === 0) {
+ console.log('创建物料成功',i+1)
this.partList1[i].partNo = data.data.rows.partNo
updatePartNoOfNode(this.partList1[i]).then((data) => {
if (data.data && data.data.code === 0) {
diff --git a/src/views/modules/part/routing_create.vue b/src/views/modules/part/routing_create.vue
index 6a6c930..9c10071 100644
--- a/src/views/modules/part/routing_create.vue
+++ b/src/views/modules/part/routing_create.vue
@@ -462,6 +462,7 @@ export default {
title: '',
site: '',
buNo: '',
+ codeNo: '',
partNo: '',
partDesc: '',
routingRevision: '',
@@ -1825,6 +1826,7 @@ export default {
flag: '2',
site: row.site,
buNo: row.buNo,
+ codeNo: row.codeNo,
partNo: row.partNo,
partDesc: row.partDesc,
routingRevision: row.routingRevision,
@@ -2149,6 +2151,7 @@ export default {
site: this.modalData.site,
buNo: this.modalData.buNo,
partNo: this.modalData.partNo,
+ codeNo: this.modalData.codeNo,
operationList: this.standardOperationList
}
calculationTime(tempData).then(({data}) => {