Ben Lin
2024-05-01 532e24e6c347c56757124f627945b73c5c637ff5
1
var n=(T,c,o)=>new Promise((E,r)=>{var p=t=>{try{s(o.next(t))}catch(e){r(e)}},a=t=>{try{s(o.throw(t))}catch(e){r(e)}},s=t=>t.done?E(t.value):Promise.resolve(t.value).then(p,a);s((o=o.apply(T,c)).next())});import{bq as d,a as i,O as I,d as L,N as S,l as N,aF as R,__tla as f}from"./index-f0df2f76.js";import{n as _,u}from"./vue-1631514e.js";import{a2 as g}from"./antd-057b41b1.js";let D,b,A,C,U,B,O,m,w,h=Promise.all([(()=>{try{return f}catch(T){}})()]).then(()=>n(void 0,null,function*(){O=a=>n(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:i().getUserInfo.userId,ByOrg:!0,OrgCode:i().getUserInfo.orgCode};const l=I("BIZ_ERP_SALE_RETURN",{QueryAble_T:"",where:t,order:s,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 s=yield L.post({url:S.QueryUrl,params:a},{isTransformResponse:!1});return{items:s.Data.page.data,total:s.Data.page.totals}})}D=a=>n(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.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:i().getUserInfo.userId,ByOrg:!0,OrgCode:i().getUserInfo.orgCode};if(d(a.page)){const l=I("V_BIZ_ERP_SALE_RETURN_DTL",{QueryAble_T:"",where:t,order:"BILLLINE*1",option:e},e);return c(l)}else{const l=I("V_BIZ_ERP_SALE_RETURN_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 c(l)}});function c(a){return n(this,null,function*(){const s=yield L.post({url:S.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})}U=a=>n(void 0,null,function*(){let s="";a.order!=null&&(s=a.order=="descend"?a.field+" desc":a.field);let t="";(a==null?void 0:a.BUSINESSCODE)!=null&&(a==null?void 0:a.BUSINESSCODE)!=""&&(t+=" And BUSINESSCODE like '%"+(a==null?void 0:a.BUSINESSCODE)+"%'"),(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:i().getUserInfo.userId,ByOrg:!0,OrgCode:i().getUserInfo.orgCode};if(d(a.page)){const l=I("BIZ_ERP_SALE_RETURN_SN",{QueryAble_T:"",where:t,option:e},e);return o(l)}else{const l=I("BIZ_ERP_SALE_RETURN_SN",{QueryAble_T:"",where:t,order:s,page:{pageAble_T:"string",draw:1,pageIndex:a.page,pageSize:a.pageSize},option:e},e);return o(l)}});function o(a){return n(this,null,function*(){const s=yield L.post({url:S.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 E,r,p;E=a=>n(void 0,null,function*(){const s=I("BIZ_ERP_SALE_RETURN+STATUSs","");return yield L.post({url:S.urlQueryEnum,params:s},{errorMessageMode:"none",isTransformResponse:!1})}),{t:r}=N("WMS.Salebackorder"),{getLocale:p}=R(),A=[{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("\u521B\u5EFA\u65F6\u95F4"),resizable:!0,sorter:!0,dataIndex:"CREATE_TIME",width:180},{title:r("\u64CD\u4F5C\u65F6\u95F4"),resizable:!0,sorter:!0,dataIndex:"UPDATE_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("\u5F85\u8D28\u68C0"),e="#C2C247";break;case"2":t=r("\u8D28\u68C0\u5B8C\u6210"),e="#C2C247";break;case"3":t=r("\u5DF2\u6E05\u70B9"),e="green";break;case"4":t=r("\u5DF2\u5BA1\u6838"),e="green";break;case"5":t=r("\u4F5C\u4E1A\u4E2D"),e="green";break;case"6":t=r("\u5B8C\u6210"),e="green";break}return _(g,{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}],w=[{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:E,resultField:"Data",labelField:u(p)=="zh_CN"?"Desc":"Name",valueField:"Value"}}],b=[{title:r("\u5E8F\u53F7"),resizable:!0,sorter:!0,dataIndex:"BILLLINE",width:100},{title:r("\u7269\u6599\u7F16\u7801"),resizable:!0,sorter:!0,dataIndex:"ITEM_CODE",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\u5165\u6570\u91CF"),resizable:!0,sorter:!0,dataIndex:"OWEIN_QTY",width:100},{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("\u5F85\u8D28\u68C0"),e="#C2C247";break;case"2":t=r("\u8D28\u68C0\u5B8C\u6210"),e="#C2C247";break;case"3":t=r("\u5DF2\u6E05\u70B9"),e="green";break;case"4":t=r("\u5DF2\u5BA1\u6838"),e="green";break;case"5":t=r("\u4F5C\u4E1A\u4E2D"),e="green";break;case"6":t=r("\u5B8C\u6210"),e="green";break}return _(g,{color:e},()=>t)}}],B=[{title:r("\u6761\u7801"),resizable:!0,sorter:!0,dataIndex:"SN",width:200},{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},{title:r("\u4FEE\u6539\u65F6\u95F4"),resizable:!0,sorter:!0,dataIndex:"UPDATE_TIME",width:180}],C=[{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:E,resultField:"Data",labelField:u(p)=="zh_CN"?"Desc":"Name",valueField:"Value"}}],m=[{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"}]}));export{h as __tla,D as a,b,A as c,C as d,U as e,B as f,O as g,m as h,w as s};