Commit 0cc81ff9 by Joey

fix(@gms/gms-plugin-billexpand): 判断子表是否为空公式修改

parent 84a2de49
......@@ -8,32 +8,12 @@ export default {
if (context.getTableType) {
let _tn = context.getTableType(table);
let _data = context.getSubData(_tn.title);
if (_data instanceof Array) {
let field = arguments[0][0].FieldCode
let matchProp = arguments[0][1].StaticValue
let matchValue = arguments[0][2].StaticValue
if (matchValue) {
for (const iterator of _data) {
let _val = iterator.getValue(field)
if (_val instanceof Object) {
if (_val[matchProp] == matchValue) {
size++;
}
} else {
if (_val == matchValue) {
size++;
}
}
}
} else {
size = _data.length
}
}
return _data.length>0
}
}
return size
},
getResultType: function () {
return FMR.ConstDataTypes.General;
return 1;
}
}
\ No newline at end of file
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