|
@@ -157,9 +157,9 @@ const ledgerCheckUtil = {
|
|
|
return list.other;
|
|
|
};
|
|
|
const getRatio = function (type, status) {
|
|
|
- if (type === 'gxby') return null;
|
|
|
- const gs = option.status.dagl.find(x => { return x.value === status });
|
|
|
- return gs ? gs.ratio : null;
|
|
|
+ const statusConst = type === 'gxby' ? option.status.gxby : option.status.dagl;
|
|
|
+ const sc = statusConst.dagl.find(x => { return x.value === status });
|
|
|
+ return sc ? sc.ratio : null;
|
|
|
};
|
|
|
const getValid = function (type, status, limit) {
|
|
|
if (limit) {
|