From 1d076880f368cd0f53b83c160e3a115f6b136a26 Mon Sep 17 00:00:00 2001 From: Aoi_Tori <2547614904@qq.com> Date: Mon, 7 Jul 2025 10:10:42 +0800 Subject: [PATCH] 2025/7/7 --- src/views/modules/part/quicklyCreateBom.vue | 136 +++++++++++++++++--- 1 file changed, 118 insertions(+), 18 deletions(-) diff --git a/src/views/modules/part/quicklyCreateBom.vue b/src/views/modules/part/quicklyCreateBom.vue index 3825fdc..b144987 100644 --- a/src/views/modules/part/quicklyCreateBom.vue +++ b/src/views/modules/part/quicklyCreateBom.vue @@ -19,10 +19,13 @@ 完成 + 已有料号 新增料号 + + 修改节点 + + 删除节点 @@ -123,7 +130,7 @@ - + - + @@ -211,6 +218,67 @@ + + +
+ 编辑 + 保存 + + +
+ + 已有料号 + + 新增料号 + + +
+
+ + + +
+ + + +
+ + 关闭 + +
+ @@ -308,6 +376,7 @@ export default { pageSize2: 20, totalPage2: 0, partList: [], + partList1: [], searchData: { site: '', buNo: '', @@ -367,14 +436,14 @@ export default { }, dataList: [ { - Family: '', - Orientation: '', - Lanes: '', - WebWidth: '', - PrintingLanes: null, - BodingPitch: null, - BondingLanes: null, - ConvertingUp: null, + // Family: '', + // Orientation: '', + // Lanes: '', + // WebWidth: '', + // PrintingLanes: null, + // BodingPitch: null, + // BondingLanes: null, + // ConvertingUp: null, } ], currentNode: {}, @@ -570,7 +639,9 @@ export default { resetAllLoading: false, bomLoading: false, routingLoading: false, - treeVisible: false + treeVisible: false, + addNodeFlag: true, + batchUpdateFlag: false } }, created () { @@ -579,7 +650,6 @@ export default { // 校验用户是否收藏 this.favoriteIsOk() // 获取树形结构 - this.getNodeTree() // this.searchData = { // site: '2', // buNo: '03-RFID', @@ -598,7 +668,7 @@ export default { this.searchData.partDesc = this.$route.query.data.testPartDesc this.searchData.codeNo = this.$route.query.data.partCodeNo this.getNodeTree(); - this.getPartItem() + this.getPartItem(); } }, methods: { @@ -677,6 +747,7 @@ export default { site: data.site, nodeId: data.nodeId, nodeName: data.nodeName, + mainPart: this.searchData.partNo, createBy: this.$store.state.user.name, updateBy: this.$store.state.user.name, } @@ -686,7 +757,7 @@ export default { // 删除节点 deleteTreeItem (data) { - this.$confirm('将删除该节点下的子节点数据!', '提示', { + this.$confirm('将删除该节点及其子节点数据!', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' @@ -1193,9 +1264,9 @@ export default { recordType: 'IP' } getPartItem(tempData).then(({data}) => { - if (data && data.code === 0) { + if (data && data.code === 0 && data.rows.length > 0) { for (let i = 0; i < data.rows.length; i++) { - if (data.rows[i].itemDesc === 'Family1'){ + /*if (data.rows[i].itemDesc === 'Family1'){ this.dataList[0].Family = data.rows[i].textValue } else if (data.rows[i].itemDesc === 'Family2'){ this.dataList[0].Orientation = data.rows[i].textValue @@ -1211,13 +1282,42 @@ export default { this.dataList[0].BondingLanes = data.rows[i].numValue } else if (data.rows[i].itemDesc === 'CL60k-UP'){ this.dataList[0].ConvertingUp = data.rows[i].textValue + }*/ + if (data.rows[i].itemDesc === 'Family1'){ + this.$set(this.dataList[0], 'Family', data.rows[i].textValue); + } else if (data.rows[i].itemDesc === 'Family2'){ + this.$set(this.dataList[0], 'Orientation', data.rows[i].textValue); + } else if (data.rows[i].itemDesc === 'Lanes0 web'){ + this.$set(this.dataList[0], 'Lanes', data.rows[i].textValue); + } else if (data.rows[i].itemDesc === 'Lamination width'){ + this.$set(this.dataList[0], 'WebWidth', data.rows[i].textValue); + } else if (data.rows[i].itemDesc === 'Printing lanes'){ + this.$set(this.dataList[0], 'PrintingLanes', data.rows[i].numValue); + } else if (data.rows[i].itemDesc === 'Bonding Pitch'){ + this.$set(this.dataList[0], 'BodingPitch', data.rows[i].numValue); + } else if (data.rows[i].itemDesc === '绑定列数'){ + this.$set(this.dataList[0], 'BondingLanes', data.rows[i].numValue); + } else if (data.rows[i].itemDesc === 'CL60k-UP'){ + this.$set(this.dataList[0], 'ConvertingUp', data.rows[i].textValue); } } - console.log(this.dataList[0]) } else { this.dataList = [] } }) + }, + + handleBatchUpdatePart(){ + + this.batchUpdateFlag = true + }, + + batchUpdateEdit(){ + + }, + + batchUpdateSave(){ + } }