Commit 2b04601e by Joey

fix(@gms/gms-plugin-billexpand): 检查子表不相等公式

- 比较对象的时候比较objectcode
parent e5b0880c
...@@ -16,16 +16,18 @@ export default { ...@@ -16,16 +16,18 @@ export default {
let _data1 = dataFun[i].getData() let _data1 = dataFun[i].getData()
for (let j = i + 1; j < dataFun.length; j++) { for (let j = i + 1; j < dataFun.length; j++) {
let _data2 = dataFun[j].getData() let _data2 = dataFun[j].getData()
if (_data1[subFieldCode].value !== _data2[subFieldCode].value) { const data1Val = typeof _data1[subFieldCode].value == 'object' ? _data1[subFieldCode].value.objectcode : _data1[subFieldCode].value
return false; const data2Val = typeof _data2[subFieldCode].value == 'object' ? _data2[subFieldCode].value.objectcode : _data2[subFieldCode].value
if (data1Val !== data2Val) {
return false
} }
} }
} }
return true; return true
} else if (dataFun.length <= 1) { } else if (dataFun.length <= 1) {
return true return true
}else{ }else{
return true; return true
} }
}, },
getResultType:function(){ getResultType:function(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment