|
|
@@ -317,10 +317,16 @@ const billsGuidance = (function () {
|
|
|
* 找到的清单树中清单子项含有非清单项或输入了计算基数,则中止该清单的对比,不可插入数据
|
|
|
* */
|
|
|
|
|
|
+ const oneSevenBillsSymbol = Symbol('固定清单{第100章至700章清单}');
|
|
|
//获取节点的匹配数据:编码-名称-单位
|
|
|
//@param {Object}node @return {String}
|
|
|
function getMatchContent(node) {
|
|
|
- return `${node.data.code ? node.data.code : '*'}-${node.data.name ? node.data.name : '*'}-${node.data.unit ? node.data.unit: '*'}`;
|
|
|
+ // 标准清单第一个根节点与项目清单(固定类别为100-700章清单)写死能对应匹配上
|
|
|
+ const firstStdNode = bills.tree.roots[0];
|
|
|
+ if (node === firstStdNode || node.getFlag() === commonConstants.fixedFlag.ONE_SEVEN_BILLS) {
|
|
|
+ return oneSevenBillsSymbol;
|
|
|
+ }
|
|
|
+ return `${node.data.code ? node.data.code : '*'}-${node.data.name ? node.data.name : '*'}-${node.data.unit ? node.data.unit : '*'}`;
|
|
|
}
|
|
|
//**对比清单主树节点片段与选中树节点片段,获取需要更新和插入的数据**
|
|
|
//@param {Object}parent - 主树片段的父节点 {Array}mainTreeFragment {Array}stdTreeFragment
|