|
@@ -109,7 +109,7 @@ $(document).ready(() => {
|
|
for (const p of posRange) {
|
|
for (const p of posRange) {
|
|
let nP = _.find(node.pos, {id: p.id});
|
|
let nP = _.find(node.pos, {id: p.id});
|
|
if (!nP) {
|
|
if (!nP) {
|
|
- nP = {id: p.id};
|
|
|
|
|
|
+ nP = {id: p.id, name: p.name };
|
|
node.pos.push(nP);
|
|
node.pos.push(nP);
|
|
}
|
|
}
|
|
for (const f of posCompareField) {
|
|
for (const f of posCompareField) {
|
|
@@ -130,7 +130,7 @@ $(document).ready(() => {
|
|
for (const p of posRange) {
|
|
for (const p of posRange) {
|
|
let nP = _.find(node.pos, {id: p.id});
|
|
let nP = _.find(node.pos, {id: p.id});
|
|
if (!nP) {
|
|
if (!nP) {
|
|
- nP = {id: p.id};
|
|
|
|
|
|
+ nP = {id: p.id, name: p.name};
|
|
node.pos.push(nP);
|
|
node.pos.push(nP);
|
|
}
|
|
}
|
|
for (const f of posCompareField) {
|
|
for (const f of posCompareField) {
|
|
@@ -340,7 +340,7 @@ $(document).ready(() => {
|
|
if (!searchLedger) {
|
|
if (!searchLedger) {
|
|
searchLedger = $.ledgerSearch({
|
|
searchLedger = $.ledgerSearch({
|
|
selector: '#search',
|
|
selector: '#search',
|
|
- ledger: { billsTree: billsTree, getLedgerPos: function (node){ return node.pos; } },
|
|
|
|
|
|
+ ledger: { billsTree: billsTree, getLedgerPos: function (node){ return node.pos; }, posId: 'id', },
|
|
resultSpreadSetting: {
|
|
resultSpreadSetting: {
|
|
cols: [
|
|
cols: [
|
|
{title: '项目节编号', field: 'code', hAlign: 0, width: 90, formatter: '@', readOnly: true},
|
|
{title: '项目节编号', field: 'code', hAlign: 0, width: 90, formatter: '@', readOnly: true},
|