var n=(T,p,i)=>new Promise((E,s)=>{var c=t=>{try{r(i.next(t))}catch(e){s(e)}},a=t=>{try{r(i.throw(t))}catch(e){s(e)}},r=t=>t.done?E(t.value):Promise.resolve(t.value).then(c,a);r((i=i.apply(T,p)).next())});import{bq as d,a as o,O as I,d as _,N as L,l as U,aF as f,__tla as B}from"./index-f0df2f76.js";import{n as D,u as m}from"./vue-1631514e.js";import{a2 as b}from"./antd-057b41b1.js";let u,g,A,S,O,w,C,h,R,z=Promise.all([(()=>{try{return B}catch(T){}})()]).then(()=>n(void 0,null,function*(){C=a=>n(void 0,null,function*(){let r="";a.order!=null&&(r=a.order=="descend"?a.field+" desc":a.field);let t="1=1";(a==null?void 0:a.BILLCODE)!=null&&(a==null?void 0:a.BILLCODE)!=""&&(t+=" And BILLCODE like '%"+(a==null?void 0:a.BILLCODE)+"%'"),(a==null?void 0:a.BILLDATE)!=null&&(a==null?void 0:a.BILLDATE)!=""&&(t+=" And BILLDATE > '"+(a==null?void 0:a.BILLDATE[0])+"'"),(a==null?void 0:a.BILLDATE)!=null&&(a==null?void 0:a.BILLDATE)!=""&&(t+=" And BILLDATE < '"+(a==null?void 0:a.BILLDATE[1])+"'"),d(a==null?void 0:a.STATUS)||(t+=" And STATUS = '"+(a==null?void 0:a.STATUS)+"'");var e={UserId:o().getUserInfo.userId,ByOrg:!0,OrgCode:o().getUserInfo.orgCode};const l=I("BIZ_ERP_PROD_RETURN",{QueryAble_T:"",where:t,order:r,page:{pageAble_T:"string",draw:1,pageIndex:a.page,pageSize:a.pageSize},option:e},e);return T(l)});function T(a){return n(this,null,function*(){const r=yield _.post({url:L.QueryUrl,params:a},{isTransformResponse:!1});return{items:r.Data.page.data,total:r.Data.page.totals}})}u=a=>n(void 0,null,function*(){let r="";a.order!=null&&(r=a.order=="descend"?a.field+" desc":a.field);let t="1=1";(a==null?void 0:a.BILLCODE)!=null&&(a==null?void 0:a.BILLCODE)!=""&&(t+=" And BILLCODE like '%"+(a==null?void 0:a.BILLCODE)+"%'"),(a==null?void 0:a.ITEM_CODE)!=null&&(a==null?void 0:a.ITEM_CODE)!=""&&(t+=" And ITEM_CODE like '%"+(a==null?void 0:a.ITEM_CODE)+"%'"),d(a==null?void 0:a.LINESTATUS)||(t+=" And LINESTATUS = '"+(a==null?void 0:a.LINESTATUS)+"'");var e={UserId:o().getUserInfo.userId,ByOrg:!0,OrgCode:o().getUserInfo.orgCode};if(d(a.page)){const l=I("V_BIZ_ERP_PROD_RETURN_DTL",{QueryAble_T:"",where:t,order:"BILLLINE*1",option:e},e);return p(l)}else{const l=I("V_BIZ_ERP_PROD_RETURN_DTL",{QueryAble_T:"",where:t,order:"BILLLINE*1 "+r,page:{pageAble_T:"string",draw:1,pageIndex:a.page,pageSize:a.pageSize},option:e},e);return p(l)}});function p(a){return n(this,null,function*(){const r=yield _.post({url:L.QueryUrl,params:a},{isTransformResponse:!1});let t={};return d(r.Data.page)?t={items:r.Data.Items}:t={items:r.Data.page.data,total:r.Data.page.totals},t})}O=a=>n(void 0,null,function*(){let r="";a.order!=null&&(r=a.order=="descend"?a.field+" desc":a.field);let t="1=1";(a==null?void 0:a.BILLCODE)!=null&&(a==null?void 0:a.BILLCODE)!=""&&(t+=" And BUSINESSCODE like '%"+(a==null?void 0:a.BILLCODE)+"%'"),(a==null?void 0:a.ITEM_CODE)!=null&&(a==null?void 0:a.ITEM_CODE)!=""&&(t+=" And ITEM_CODE like '%"+(a==null?void 0:a.ITEM_CODE)+"%'"),(a==null?void 0:a.SN)!=null&&(a==null?void 0:a.SN)!=""&&(t+=" And SN like '%"+(a==null?void 0:a.SN)+"%'");var e={UserId:o().getUserInfo.userId,ByOrg:!0,OrgCode:o().getUserInfo.orgCode};if(d(a.page)){const l=I("BIZ_ERP_PROD_RETURN_SN",{QueryAble_T:"",where:t,option:e},e);return i(l)}else{const l=I("BIZ_ERP_PROD_RETURN_SN",{QueryAble_T:"",where:t,order:r,page:{pageAble_T:"string",draw:1,pageIndex:a.page,pageSize:a.pageSize},option:e},e);return i(l)}});function i(a){return n(this,null,function*(){const r=yield _.post({url:L.QueryUrl,params:a},{isTransformResponse:!1});let t={};return d(r.Data.page)?t={items:r.Data.Items}:t={items:r.Data.page.data,total:r.Data.page.totals},t})}let E,s,c;E=a=>n(void 0,null,function*(){const r=I("BIZ_ERP_PROD_RETURN+STATUSs","");return yield _.post({url:L.urlQueryEnum,params:r},{errorMessageMode:"none",isTransformResponse:!1})}),{t:s}=U(),{getLocale:c}=f(),A=[{title:"\u5355\u636E\u4EE3\u7801",resizable:!0,sorter:!0,dataIndex:"BILLCODE",width:200},{title:"\u5355\u636E\u65E5\u671F",resizable:!0,sorter:!0,dataIndex:"BILLDATE",width:180},{title:s("\u521B\u5EFA\u65F6\u95F4"),resizable:!0,sorter:!0,dataIndex:"CREATE_TIME",width:180},{title:s("\u64CD\u4F5C\u65F6\u95F4"),resizable:!0,sorter:!0,dataIndex:"UPDATE_TIME",width:180},{title:s("T100\u5355\u636E\u4EE3\u7801"),resizable:!0,sorter:!0,dataIndex:"ERP_BILL_CODE",width:180},{title:"\u72B6\u6001",resizable:!0,sorter:!0,dataIndex:"STATUS",width:180,customRender:({record:a})=>{const r=a.STATUS;let t="",e="";switch(r){case 0:t="\u65B0\u589E",e="blue";break;case 1:t="\u5F85\u8D28\u68C0",e="#C2C247";break;case 2:t="\u8D28\u68C0\u5B8C\u6210",e="#C2C247";break;case 3:t="\u5DF2\u6E05\u70B9",e="green";break;case 4:t="\u5DF2\u5BA1\u6838",e="green";break;case 5:t="\u4F5C\u4E1A\u4E2D",e="green";break;case 6:t="\u5B8C\u6210",e="green";break}return D(b,{color:e},()=>t)}},{title:"\u4ED3\u5E93\u540D\u79F0",resizable:!0,sorter:!0,dataIndex:"WAREHOUSECODE",width:180},{title:"\u521B\u5EFA\u4EBA",resizable:!0,sorter:!0,dataIndex:"CREATE_USER",width:180}],R=[{field:"BILLCODE",label:"\u5355\u636E\u4EE3\u7801",colProps:{span:8},component:"Input"},{field:"BILLDATE",label:"\u5355\u636E\u65E5\u671F",colProps:{span:8},component:"RangePicker"},{field:"STATUS",label:"\u5355\u636E\u72B6\u6001",component:"ApiSelect",colProps:{span:8},componentProps:{api:E,resultField:"Data",labelField:"Desc",valueField:"Value"}}],g=[{title:s("\u7EC4\u7EC7\u673A\u6784\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_ORG",width:200,ifShow:!1},{title:s("\u751F\u4EA7\u5355\u5143\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_PROD",width:200,ifShow:!1},{title:s("\u4ED3\u5E93\u5355\u5143\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_WH",width:200,ifShow:!1},{title:s("\u5E8F\u53F7"),resizable:!0,sorter:!0,dataIndex:"BILLLINE",width:100},{title:s("\u7269\u6599\u7F16\u7801"),resizable:!0,sorter:!0,dataIndex:"ITEM_CODE",width:200},{title:s("\u7269\u6599\u540D\u79F0"),resizable:!0,sorter:!0,dataIndex:"ITEM_NAME",width:200},{title:s("\u9700\u6C42\u6570\u91CF"),resizable:!0,sorter:!0,dataIndex:"PRQTY",width:100},{title:s("\u5165\u5E93\u6570\u91CF"),resizable:!0,sorter:!0,dataIndex:"INVENTORYQTY",width:100},{title:s("\u6B20\u5165\u6570\u91CF"),resizable:!0,sorter:!0,dataIndex:"OWEIN_QTY",width:100},{title:s("\u64CD\u4F5C\u65F6\u95F4"),resizable:!0,sorter:!0,dataIndex:"CREATE_TIME",width:180},{title:s("\u72B6\u6001"),resizable:!0,sorter:!0,dataIndex:"LINESTATUS",width:180,customRender:({record:a})=>{const r=a.LINESTATUS;let t="",e="";switch(r){case 0:t="\u65B0\u589E",e="blue";break;case 1:t="\u5F85\u8D28\u68C0",e="#C2C247";break;case 2:t="\u8D28\u68C0\u5B8C\u6210",e="#C2C247";break;case 3:t="\u5DF2\u6E05\u70B9",e="green";break;case 4:t="\u5DF2\u5BA1\u6838",e="green";break;case 5:t="\u4F5C\u4E1A\u4E2D",e="green";break;case 6:t="\u5B8C\u6210",e="green";break}return D(b,{color:e},()=>t)}}],w=[{title:s("\u7EC4\u7EC7\u673A\u6784\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_ORG",width:200,ifShow:!1},{title:s("\u751F\u4EA7\u5355\u5143\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_PROD",width:200,ifShow:!1},{title:s("\u4ED3\u5E93\u5355\u5143\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_WH",width:200,ifShow:!1},{title:s("\u6761\u7801"),resizable:!0,sorter:!0,dataIndex:"SN",width:200},{title:s("\u4FEE\u6539\u65F6\u95F4"),resizable:!0,sorter:!0,dataIndex:"UPDATE_TIME",width:180},{title:s("\u7269\u6599\u7F16\u7801"),resizable:!0,sorter:!0,dataIndex:"ITEM_CODE",width:200},{title:s("\u6570\u91CF"),resizable:!0,sorter:!0,dataIndex:"QTY",width:200}],S=[{field:"ITEM_CODE",label:s("\u7269\u6599\u7F16\u7801"),colProps:{span:8},component:"Input"},{field:"LINESTATUS",label:s("\u72B6\u6001"),component:"ApiSelect",colProps:{span:8},componentProps:{api:E,resultField:"Data",labelField:m(c)=="zh_CN"?"Desc":"Name",valueField:"Value"}}],h=[{field:"ITEM_CODE",label:s("\u7269\u6599\u7F16\u7801"),colProps:{span:8},component:"Input"},{field:"SN",label:s("\u6761\u7801"),colProps:{span:8},component:"Input"}]}));export{z as __tla,u as a,g as b,A as c,S as d,O as e,w as f,C as g,h,R as s};