var o=(c,p,n)=>new Promise((i,r)=>{var I=t=>{try{s(n.next(t))}catch(e){r(e)}},a=t=>{try{s(n.throw(t))}catch(e){r(e)}},s=t=>t.done?i(t.value):Promise.resolve(t.value).then(I,a);s((n=n.apply(c,p)).next())});import{bq as d,a as T,O as E,d as u,N as L,l as B,aF as f,__tla as z}from"./index-f0df2f76.js";import{n as S,u as _}from"./vue-1631514e.js";import{a2 as A}from"./antd-057b41b1.js";let b,C,D,g,O,U,m,w,h,N=Promise.all([(()=>{try{return z}catch(c){}})()]).then(()=>o(void 0,null,function*(){m=a=>o(void 0,null,function*(){let s="";a.order!=null&&(s=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:T().getUserInfo.userId,ByOrg:!0,OrgCode:T().getUserInfo.orgCode};const l=E("BIZ_ERP_SALE_OUT",{QueryAble_T:"",where:t,order:s,page:{pageAble_T:"string",draw:1,pageIndex:a.page,pageSize:a.pageSize}},e);return c(l)});function c(a){return o(this,null,function*(){const s=yield u.post({url:L.QueryUrl,params:a},{isTransformResponse:!1});return{items:s.Data.page.data,total:s.Data.page.totals}})}b=a=>o(void 0,null,function*(){let s="";a.order!=null&&(s=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 = '"+(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 = '"+(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:T().getUserInfo.userId,ByOrg:!0,OrgCode:T().getUserInfo.orgCode};if(d(a.page)){const l=E("V_BIZ_ERP_SALE_OUT_DTL",{QueryAble_T:"",where:t,order:"BILLLINE*1",option:e},e);return p(l)}else{const l=E("V_BIZ_ERP_SALE_OUT_DTL",{QueryAble_T:"",where:t,order:"BILLLINE*1 "+s,page:{pageAble_T:"string",draw:1,pageIndex:a.page,pageSize:a.pageSize},option:e},e);return p(l)}});function p(a){return o(this,null,function*(){const s=yield u.post({url:L.QueryUrl,params:a},{isTransformResponse:!1});let t={};return d(s.Data.page)?t={items:s.Data.Items}:t={items:s.Data.page.data,total:s.Data.page.totals},t})}O=a=>o(void 0,null,function*(){let s="";a.order!=null&&(s=a.order=="descend"?a.field+" desc":a.field);let t="1=1";(a==null?void 0:a.ITEM_CODE)!=null&&(a==null?void 0:a.ITEM_CODE)!=""&&(t+=" And ITEM_CODE = '"+(a==null?void 0:a.ITEM_CODE)+"'"),(a==null?void 0:a.ORDER_NO)!=null&&(a==null?void 0:a.ORDER_NO)!=""&&(t+=" And ORDER_NO = '"+(a==null?void 0:a.ORDER_NO)+"'"),(a==null?void 0:a.SN)!=null&&(a==null?void 0:a.SN)!=""&&(t+=" And SN = '"+(a==null?void 0:a.SN)+"'"),d(a==null?void 0:a.STATUS)||(t+=" And STATUS = '"+(a==null?void 0:a.STATUS)+"'");var e={UserId:T().getUserInfo.userId,ByOrg:!0,OrgCode:T().getUserInfo.orgCode};if(d(a.page)){const l=E("BIZ_ERP_SALE_OUT_SN",{QueryAble_T:"",where:t,option:e},e);return n(l)}else{const l=E("BIZ_ERP_SALE_OUT_SN",{QueryAble_T:"",where:t,order:s,page:{pageAble_T:"string",draw:1,pageIndex:a.page,pageSize:a.pageSize},option:e},e);return n(l)}});function n(a){return o(this,null,function*(){const s=yield u.post({url:L.QueryUrl,params:a},{isTransformResponse:!1});let t={};return d(s.Data.page)?t={items:s.Data.Items}:t={items:s.Data.page.data,total:s.Data.page.totals},t})}let i,r,I;i=a=>o(void 0,null,function*(){const s=E("BIZ_ERP_SALE_OUT+STATUSs","");return yield u.post({url:L.urlQueryEnum,params:s},{errorMessageMode:"none",isTransformResponse:!1})}),{t:r}=B("WMS.Saleoutorder"),{getLocale:I}=f(),D=[{title:r("\u5355\u636E\u4EE3\u7801"),resizable:!0,sorter:!0,dataIndex:"BILLCODE",width:200},{title:r("\u5355\u636E\u65E5\u671F"),resizable:!0,sorter:!0,dataIndex:"BILLDATE",width:180},{title:r("\u64CD\u4F5C\u65F6\u95F4"),resizable:!0,sorter:!0,dataIndex:"CREATE_TIME",width:180},{title:r("T100\u5355\u636E\u4EE3\u7801"),resizable:!0,sorter:!0,dataIndex:"ERP_BILL_CODE",width:180},{title:r("\u72B6\u6001"),resizable:!0,sorter:!0,dataIndex:"STATUS",width:180,customRender:({record:a})=>{const s=a.STATUS;let t="",e="";switch(s){case 0:t=r("\u65B0\u589E"),e="blue";break;case 1:t=r("\u4F5C\u4E1A\u4E2D"),e="#C2C247";break;case 2:t=r("\u5B8C\u6210"),e="green";break}return S(A,{color:e},()=>t)}},{title:r("\u4ED3\u5E93\u540D\u79F0"),resizable:!0,sorter:!0,dataIndex:"WAREHOUSECODE",width:180},{title:r("\u521B\u5EFA\u4EBA"),resizable:!0,sorter:!0,dataIndex:"CREATE_USER",width:180}],h=[{field:"BILLCODE",label:r("\u5355\u636E\u4EE3\u7801"),colProps:{span:8},component:"Input"},{field:"BILLDATE",label:r("\u5355\u636E\u65E5\u671F"),colProps:{span:8},component:"RangePicker"},{field:"STATUS",label:r("\u72B6\u6001"),component:"ApiSelect",colProps:{span:8},componentProps:{api:i,resultField:"Data",labelField:_(I)=="zh_CN"?"Desc":"Name",valueField:"Value"}}],C=[{title:r("\u5E8F\u53F7"),resizable:!0,sorter:!0,dataIndex:"BILLLINE",width:200},{title:r("\u7269\u6599\u540D\u79F0"),resizable:!0,sorter:!0,dataIndex:"ITEM_NAME",width:200},{title:r("\u7269\u6599\u7F16\u7801"),resizable:!0,sorter:!0,dataIndex:"ITEM_CODE",width:200},{title:r("\u64CD\u4F5C\u65F6\u95F4"),resizable:!0,sorter:!0,dataIndex:"CREATE_TIME",width:180},{title:r("\u72B6\u6001"),resizable:!0,sorter:!0,dataIndex:"LINESTATUS",width:180,customRender:({record:a})=>{const s=a.LINESTATUS;let t="",e="";switch(s){case 0:t=r("\u65B0\u589E"),e="blue";break;case 1:t=r("\u4F5C\u4E1A\u4E2D"),e="#C2C247";break;case 2:t=r("\u5B8C\u6210"),e="#C2C247";break}return S(A,{color:e},()=>t)}},{title:r("\u4ED3\u5E93\u540D\u79F0"),resizable:!0,sorter:!0,dataIndex:"WAREHOUSECODE",width:200},{title:r("\u9700\u6C42\u6570\u91CF"),resizable:!0,sorter:!0,dataIndex:"PRQTY",width:100},{title:r("\u5DF2\u53D1\u6570\u91CF"),resizable:!0,sorter:!0,dataIndex:"QTY",width:100},{title:r("\u6B20\u53D1\u6570\u91CF"),resizable:!0,sorter:!0,dataIndex:"OWE_QTY",width:100}],U=[{title:r("\u6761\u7801"),resizable:!0,sorter:!0,dataIndex:"SN",width:200},{title:r("\u4FEE\u6539\u65F6\u95F4"),resizable:!0,sorter:!0,dataIndex:"UPDATE_TIME",width:180},{title:r("\u72B6\u6001"),resizable:!0,sorter:!0,dataIndex:"STATUS",width:180,customRender:({record:a})=>{const s=a.STATUS;let t="",e="";switch(s){case 0:t=r("\u4E0D\u5B58\u5728"),e="blue";break;case 10:t=r("\u9001\u8D27\u4E2D"),e="#C2C247";break;case 20:t=r("\u5F85\u68C0\u9A8C"),e="#C2C247";break;case 30:t=r("\u5F85\u5165\u5E93"),e="#C2C247";break;case 40:t=r("\u5728\u5E93\u4E2D"),e="#C2C247";break;case 50:t=r("\u5DF2\u4E0B\u67B6"),e="#C2C247";break;case 60:t=r("\u5DF2\u53D1\u6599"),e="#C2C247";break;case 70:t=r("\u5DF2\u4E0A\u6599"),e="#C2C247";break;case 80:t=r("\u5DF2\u8017\u5C3D"),e="#C2C247";break;case 90:t=r("\u5DF2\u9000\u6599"),e="#C2C247";break;case 100:t=r("\u5DF2\u53D1\u8D27"),e="#C2C247";break}return S(A,{color:e},()=>t)}},{title:r("\u7269\u6599\u7F16\u7801"),resizable:!0,sorter:!0,dataIndex:"ITEM_CODE",width:200},{title:r("\u6570\u91CF"),resizable:!0,sorter:!0,dataIndex:"QTY",width:200}],g=[{field:"ITEM_CODE",label:r("\u7269\u6599\u7F16\u7801"),colProps:{span:8},component:"Input"},{field:"LINESTATUS",label:r("\u72B6\u6001"),component:"ApiSelect",colProps:{span:8},componentProps:{api:i,resultField:"Data",labelField:_(I)=="zh_CN"?"Desc":"Name",valueField:"Value"}}],w=[{field:"ITEM_CODE",label:r("\u7269\u6599\u7F16\u7801"),colProps:{span:8},component:"Input"},{field:"SN",label:r("\u6761\u7801"),colProps:{span:8},component:"Input"},{field:"STATUS",label:r("\u72B6\u6001"),component:"ApiSelect",colProps:{span:8},componentProps:{api:i,resultField:"Data",labelField:_(I)=="zh_CN"?"Desc":"Name",valueField:"Value"}}]}));export{N as __tla,b as a,C as b,D as c,g as d,O as e,U as f,m as g,w as h,h as s};
|