|
@@ -1145,7 +1145,15 @@ INTERFACE_EXPORT = (() => {
|
|
|
chapterNodes.forEach((cnode) => {
|
|
chapterNodes.forEach((cnode) => {
|
|
|
if (_chkIfValid100(cnode)) {
|
|
if (_chkIfValid100(cnode)) {
|
|
|
let chapterIdx = cnode.data.name.indexOf("00章");
|
|
let chapterIdx = cnode.data.name.indexOf("00章");
|
|
|
- nodeAttrs.push({ ItemNo: order, ChapterNo: cnode.data.name.substr(chapterIdx - 1, 3), Name: cnode.data.name, Sum: _getFee(cnode) });
|
|
|
|
|
|
|
+ let chpNoStr = '';
|
|
|
|
|
+ const ch = cnode.data.name.substr(chapterIdx - 2, 2);
|
|
|
|
|
+ if (isNaN(parseFloat(ch))) {
|
|
|
|
|
+ chpNoStr = cnode.data.name.substr(chapterIdx - 1, 3);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ chpNoStr = cnode.data.name.substr(chapterIdx - 2, 4);
|
|
|
|
|
+ }
|
|
|
|
|
+ // nodeAttrs.push({ ItemNo: order, ChapterNo: cnode.data.name.substr(chapterIdx - 1, 3), Name: cnode.data.name, Sum: _getFee(cnode) });
|
|
|
|
|
+ nodeAttrs.push({ ItemNo: order, ChapterNo: chpNoStr, Name: cnode.data.name, Sum: _getFee(cnode) });
|
|
|
order++;
|
|
order++;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|