Browse Source

2025/6/23

java8
Aoi_Tori 7 months ago
parent
commit
1a0858d23c
  1. 1
      src/views/modules/inquiry/inquiryTechnicalMaterialsNoBuilt.vue
  2. 8
      src/views/modules/part/quicklyCreateBom.vue

1
src/views/modules/inquiry/inquiryTechnicalMaterialsNoBuilt.vue

@ -2398,6 +2398,7 @@ export default {
rfqNo: this.inquiryCurrentRow.rfqNo,
testPartId: row.testPartId,
partNo: row.partNo,
partDesc: row.partDesc,
codeNo: row.codeNo,
recordType: 'PRICECHECK',
codeDesc: '',

8
src/views/modules/part/quicklyCreateBom.vue

@ -257,8 +257,8 @@ export default {
'nodeData.pId': {
deep: true,
handler: function (newV, oldV) {
if (!newV || newV.trim().length === 0) {
this.childrenNodeList = [];
if (!newV || newV.trim().length === 0) {
return;
}
const findNodeById = (nodes, targetId) => {
@ -275,7 +275,11 @@ export default {
return null;
};
const foundNode = findNodeById(this.treeData1, newV);
this.childrenNodeList = foundNode ? foundNode.nodeList : [];
if (foundNode && foundNode.nodeList) {
this.childrenNodeList = foundNode.nodeList.filter(node => node.nodeName!==null&&node.nodeName.trim()!=="");
} else {
this.childrenNodeList = [];
}
}
}
},

Loading…
Cancel
Save