SOURCE

let x=0;
if(罗马帘安装方式=='IM')
{
    x=(成品宽-0.25)*2.54
}
if(罗马帘安装方式=='OM')
{
    x=成品宽*2.54
}
return x


let x=0;
if(罗马帘安装方式=='IM')
{
    x=(成品宽-0.25)*2.54
}
if(罗马帘安装方式=='OM')
{
    if(罗马帘升降方式=='[Standard] Cordless')
    {
        x=成品宽*2.54+14
    }
    if(罗马帘升降方式=='[Standard] Cordless TDBU')
    {
        x=成品宽*2.54+10
    }
    if(罗马帘升降方式=='[Standard] Motorized')
    {
        x=成品宽*2.54+18
    }
    else
    {
         x=成品宽*2.54
    }
    
}
return x



L上轨宽


let x=0;
if(罗马帘安装方式=='IM')
{
    if(罗马帘升降方式=='[Waterfall] Cordless  Dual'||罗马帘升降方式=='[Standard] Cordless TDBU')
    {
       x=(成品宽-0.25)*2.54-1
    }
    else
    {
        x=(成品宽-0.25)*2.54
    }
}
if(罗马帘安装方式=='OM')
{
    if(罗马帘升降方式=='[Waterfall] Cordless  Dual'||罗马帘升降方式=='[Standard] Cordless TDBU')
    {
       x=成品宽*2.54-1
    }
    if(罗马帘升降方式=='[Standard] Cordless'||罗马帘升降方式=='[Standard] Motorized')
    {
       x=成品宽*2.54+2
    }
    else
    {
        x=成品宽*2.54
    }
}
return x


L上轨高



let x=0;

 if(罗马帘升降方式=='[Waterfall] Motorized')
    {
       x=6
    }
    
return x


L纤维棒宽

let x=0;
if(罗马帘安装方式=='IM')
{
    if(款式名称=='中PlainFold'||款式名称=='中Ribbed'||款式名称=='中FlatA'||款式名称=='中Hobbled')
    {
       x=(成品宽-0.25)*2.54-2  
    }
    if(款式名称=='中FlatB')
    {
       x=(成品宽-0.25)*2.54-2.5 
    } 
}
if(罗马帘安装方式=='OM')
{
    if(款式名称=='中PlainFold'||款式名称=='中Ribbed'||款式名称=='中FlatA'||款式名称=='中Hobbled')
    {
       x=成品宽*2.54-2  
    }
    if(款式名称=='中FlatB')
    {
       x=成品宽*2.54-2.5 
    }
}
return x

纤维棒数量

let x=0;
let gao=成品高*2.54+0.5;


if(款式名称=='中PlainFold'||款式名称=='中Ribbed'||款式名称=='中FlatA'||款式名称=='中FlatB')
{
if(gao<=72){x=3}
if(gao<=92){x=4}
if(gao<=112){x=5}
if(gao<=130){x=6}
if(gao<=150){x=7}
if(gao<=168){x=8}
if(gao<=184){x=9}
if(gao<=205){x=10}
if(gao<=223){x=11}
if(gao<=244){x=12}
}
if(款式名称=='中Hobbled')
{
if(gao<=64){x=3}
if(gao<=82){x=4}
if(gao<=99){x=5}
if(gao<=117){x=6}
if(gao<=132){x=7}
if(gao<=148){x=8}
if(gao<=168){x=9}
if(gao<=184){x=10}
if(gao<=203){x=11}
if(gao<=220){x=12}
if(gao<=244){x=13}
}
else
{
if(gao<=72){x=3}
if(gao<=92){x=4}
if(gao<=112){x=5}
if(gao<=130){x=6}
if(gao<=150){x=7}
if(gao<=168){x=8}
if(gao<=184){x=9}
if(gao<=205){x=10}
if(gao<=223){x=11}
if(gao<=244){x=12}
}
return x


下轨宽


let x=0;
if(罗马帘安装方式=='IM')
{
    if(款式名称=='中PlainFold'||款式名称=='中Ribbed'||款式名称=='中FlatA'||款式名称=='中FlatB'||款式名称=='中Hobbled')
    {
        x=(成品宽-0.25)*2.54-4
    }
    if(款式名称=='中Relaxed')
    {
        x=(成品宽-0.25)*2.54-6
    }
    if(款式名称=='中Tulip')
    {
        x=(成品宽-0.25)*2.54-22
    }
}
if(罗马帘安装方式=='OM')
{
   if(款式名称=='中PlainFold'||款式名称=='中Ribbed'||款式名称=='中FlatA'||款式名称=='中FlatB'||款式名称=='中Hobbled')
    {
        x=成品宽*2.54-4
    }
    if(款式名称=='中Relaxed')
    {
        x=成品宽*2.54-6
    }
    if(款式名称=='中Tulip')
    {
        x=成品宽*2.54-22
    }
}
return x



下轨数量


let x=1;
if(罗马帘升降方式=='[Waterfall] Cordless  Dual')
    {
       x=2
    }
return x
console 命令行工具 X clear

                    
>
console