|
@@ -3043,7 +3043,27 @@ $(document).ready(() => {
|
|
|
const node = stageTree.nodes.find(x => {return x.id === changeBills.gcl_id});
|
|
|
SpreadJsObj.locateTreeNode(slSpread.getActiveSheet(), node.ledger_id);
|
|
|
} else {
|
|
|
- toastr.warning('该清单无法定位');
|
|
|
+ const cb = {
|
|
|
+ b_code: changeBills.code || '',
|
|
|
+ name: changeBills.name || '',
|
|
|
+ unit: changeBills.unit || '',
|
|
|
+ unit_price: changeBills.unit_price || 0,
|
|
|
+ };
|
|
|
+ for (const node of stageTree.nodes) {
|
|
|
+ if (node.children && node.children.length > 0) continue;
|
|
|
+
|
|
|
+ const b = {
|
|
|
+ b_code: bills.b_code || '',
|
|
|
+ name: bills.name || '',
|
|
|
+ unit: bills.unit || '',
|
|
|
+ unit_price: bills.unit_price || 0,
|
|
|
+ };
|
|
|
+ if (_.isMatch(cb, b)) {
|
|
|
+ SpreadJsObj.locateTreeNode(slSpread.getActiveSheet(), node.ledger_id);
|
|
|
+ stagePosSpreadObj.loadCurPosData();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
disabled: function (key, opt) {
|