|
|
@ -161,45 +161,12 @@ export default {
|
|
|
|
isLockedByMe: (parent: any, __: any, { req }: { req: any }) => isLockedByMe(parent, { req }),
|
|
|
|
isLockedByMe: (parent: any, __: any, { req }: { req: any }) => isLockedByMe(parent, { req }),
|
|
|
|
isLocked: (parent: any, __: any, { req }: { req: any }) => isLocked(parent, { req })
|
|
|
|
isLocked: (parent: any, __: any, { req }: { req: any }) => isLocked(parent, { req })
|
|
|
|
},
|
|
|
|
},
|
|
|
|
DimensionsAndLoad: {
|
|
|
|
NumRange: {
|
|
|
|
minBoxLength: (parent: any) => {
|
|
|
|
min: (parent: string) => {
|
|
|
|
if (!parent.boxLengthRange || parent.boxLengthRange === 'empty') {
|
|
|
|
return parent.split(',')[0].replace('[', '');
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return parent.boxLengthRange ? (parent.boxLengthRange as string).split(',')[0].replace('[', '') : null;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
maxBoxLength: (parent: any) => {
|
|
|
|
|
|
|
|
if (!parent.boxLengthRange || parent.boxLengthRange === 'empty') {
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const str = (parent.boxLengthRange as string).split(',')[1].replace(']', '');
|
|
|
|
|
|
|
|
return (str.length > 0) ? str : null;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
minBoxWidth: (parent: any) => {
|
|
|
|
|
|
|
|
if (!parent.boxWidthRange || parent.boxWidthRange === 'empty') {
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return parent.boxWidthRange ? (parent.boxWidthRange as string).split(',')[0].replace('[', '') : null;
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
maxBoxWidth: (parent: any) => {
|
|
|
|
max: (parent: string) => {
|
|
|
|
if (!parent.boxWidthRange || parent.boxWidthRange === 'empty') {
|
|
|
|
return parent.split(',')[1].replace(']', '');
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const str = (parent.boxWidthRange as string).split(',')[1].replace(']', '');
|
|
|
|
|
|
|
|
return (str.length > 0) ? str : null;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
minBoxHeight: (parent: any) => {
|
|
|
|
|
|
|
|
if (!parent.boxHeightRange || parent.boxHeightRange === 'empty') {
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return parent.boxHeightRange ? (parent.boxHeightRange as string).split(',')[0].replace('[', '') : null;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
maxBoxHeight: (parent: any) => {
|
|
|
|
|
|
|
|
if (!parent.boxHeightRange || parent.boxHeightRange === 'empty') {
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const str = (parent.boxHeightRange as string).split(',')[1].replace(']', '');
|
|
|
|
|
|
|
|
return (str.length > 0) ? str : null;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Equipment: {
|
|
|
|
Equipment: {
|
|
|
|