project-bef26fc7.js 723 Bytes
const o=(s,r,e)=>s==="LOCKED"&&!!r&&(e||e===0),c=(s,r,e,t)=>["exchangeRate","profitRate"].includes(s)?!0:r==="LOCKED"&&!!e&&(t||t===0),a=(s,r,e,t)=>["picUrl","productionComment"].includes(s)&&t=="business_user"||!["customerCode","projectNo","innerNo"].includes(s)&&t=="business_user"||["customerCode","projectNo","productionDepartment","innerNo","orderCount","businessPerson"].includes(s)&&(t==="admin"||t==="tracker_user")?r==="LOCKED"&&!!e:!1,D=(s,r,e,t,u)=>{const n=r==="LOCKED"&&!!e;if(!n)return!1;if(n){const i=["PASS","PASS 2ND","PASS 3RD","FAIL RELEASE"].includes(u);if(i)return i;if(s==="midCheckResult")return["PASS","PASS 2ND","PASS 3RD","FAIL RELEASE"].includes(t)}return!1};export{o as a,D as b,a as c,c as g};