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, rfqNo: this.inquiryCurrentRow.rfqNo,
testPartId: row.testPartId, testPartId: row.testPartId,
partNo: row.partNo, partNo: row.partNo,
partDesc: row.partDesc,
codeNo: row.codeNo, codeNo: row.codeNo,
recordType: 'PRICECHECK', recordType: 'PRICECHECK',
codeDesc: '', codeDesc: '',

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

@ -257,8 +257,8 @@ export default {
'nodeData.pId': { 'nodeData.pId': {
deep: true, deep: true,
handler: function (newV, oldV) { handler: function (newV, oldV) {
if (!newV || newV.trim().length === 0) {
this.childrenNodeList = []; this.childrenNodeList = [];
if (!newV || newV.trim().length === 0) {
return; return;
} }
const findNodeById = (nodes, targetId) => { const findNodeById = (nodes, targetId) => {
@ -275,7 +275,11 @@ export default {
return null; return null;
}; };
const foundNode = findNodeById(this.treeData1, newV); 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