|
@@ -371,7 +371,6 @@ const gatherChapter = {
|
|
|
return [gclChapter, otherChapter, customChapter];
|
|
|
},
|
|
|
_getGclChapter: function (chapter, data, field) {
|
|
|
- console.log(chapter, data, field);
|
|
|
for (const c of chapter) {
|
|
|
if (c.filter) {
|
|
|
const reg = new RegExp(c.filter);
|
|
@@ -395,7 +394,6 @@ const gatherChapter = {
|
|
|
const gatherRelaFields = function (chapter, source, field) {
|
|
|
const fields = field instanceof Array ? field : [field];
|
|
|
for (const f of fields) {
|
|
|
- console.log(chapter, source);
|
|
|
chapter[f.target] = ctx.helper.add(chapter[f.target], source[f.target]);
|
|
|
}
|
|
|
};
|
|
@@ -1261,8 +1259,6 @@ const splitXmjCode = {
|
|
|
} else if (helper.check18SubCode(d[options.code]) && isSplitSub) {
|
|
|
const parent = helper._.find(data, {ledger_id: d.ledger_pid});
|
|
|
const splitParent = !parent || parent.level < 5 ? parent : this._getParentByLevel(data, d, 4);
|
|
|
- if (d.ledger_id === 11) console.log(parent);
|
|
|
- if (d.ledger_id === 11) console.log(splitParent);
|
|
|
d[target] = !splitParent || helper.check18MainCode(splitParent.code)
|
|
|
? d[options.code]
|
|
|
: d[options.code].replace(splitParent[options.code], '');
|