|
@@ -162,9 +162,13 @@ const gclGatherModel = (function () {
|
|
|
* @param xmj - 计量单元(最底层项目节)
|
|
|
* @returns {string}
|
|
|
*/
|
|
|
- function getDwgc(xmj) {
|
|
|
- const node = getNodeByLevel(xmj, 2);
|
|
|
- return node ? node.name : '';
|
|
|
+ function getDwgc(peg, xmj) {
|
|
|
+ if (peg) {
|
|
|
+ return peg.name;
|
|
|
+ } else {
|
|
|
+ const node = getNodeByLevel(xmj, 2);
|
|
|
+ return node ? node.name : '';
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|