|
@@ -541,6 +541,12 @@ const billsGuidance = (function () {
|
|
|
for( let billsNode of billsNodes) {
|
|
for( let billsNode of billsNodes) {
|
|
|
let billsMatch = getMatchContent(billsNode);
|
|
let billsMatch = getMatchContent(billsNode);
|
|
|
if (selMatch === billsMatch) {//只进行一次成功匹配
|
|
if (selMatch === billsMatch) {//只进行一次成功匹配
|
|
|
|
|
+ // 特殊处理:如果匹配成功,但是清单名称不同,将造价书清单的名称设成清单库中的清单名称
|
|
|
|
|
+ const stdName = selNode.data.name || '';
|
|
|
|
|
+ const billsName = billsNode.data.name || '';
|
|
|
|
|
+ if (billsName !== stdName) {
|
|
|
|
|
+ postData.push({updateType: updateType.update, updateData: {ID: billsNode.data.ID, name: stdName}});
|
|
|
|
|
+ }
|
|
|
matchNode = billsNode;
|
|
matchNode = billsNode;
|
|
|
isMatched = true;
|
|
isMatched = true;
|
|
|
if (selNode.children.length === 0) {//成功匹配且为选中的最底节点,则为自动定位节点
|
|
if (selNode.children.length === 0) {//成功匹配且为选中的最底节点,则为自动定位节点
|