var o=(p,S,E)=>new Promise((D,a)=>{var A=t=>{try{r(E.next(t))}catch(s){a(s)}},e=t=>{try{r(E.throw(t))}catch(s){a(s)}},r=t=>t.done?D(t.value):Promise.resolve(t.value).then(A,e);r((E=E.apply(p,S)).next())});import{bq as i,a as n,O as d,d as I,N as T,J as x,ay as _,l as H,aF as y,__tla as W}from"./index-f0df2f76.js";import{n as c,u as U}from"./vue-1631514e.js";import{a2 as O}from"./antd-057b41b1.js";let R,u,C,L,b,w,g,m,h,f,M,B,z,N,k=Promise.all([(()=>{try{return W}catch(p){}})()]).then(()=>o(void 0,null,function*(){h=e=>o(void 0,null,function*(){let r="";e.order!=null&&(r=e.order=="descend"?e.field+" desc":e.field);let t="1=1";(e==null?void 0:e.BILLCODE)!=null&&(e==null?void 0:e.BILLCODE)!=""&&(t+=" And BILLCODE like '%"+(e==null?void 0:e.BILLCODE)+"%'"),(e==null?void 0:e.BILLDATE)!=null&&(e==null?void 0:e.BILLDATE)!=""&&(t+=" And BILLDATE > '"+(e==null?void 0:e.BILLDATE[0])+"'"),i(e==null?void 0:e.BILLDATE)||(t+=" And BILLDATE < '"+(e==null?void 0:e.BILLDATE[1])+"'"),i(e==null?void 0:e.STATUS)||(t+=" And STATUS = '"+(e==null?void 0:e.STATUS)+"'");let s={UserId:n().getUserInfo.userId,ByOrg:!0,OrgCode:n().getUserInfo.orgCode};if(i(e.page)){const l=d("BIZ_WMS_TRANSFER",{QueryAble_T:"",where:t,option:s},s);return p(l)}else{const l=d("BIZ_WMS_TRANSFER",{QueryAble_T:"",where:t,order:i(r)?"UPDATE_TIME desc":"UPDATE_TIME, "+r,page:{pageAble_T:"string",draw:1,pageIndex:e.page,pageSize:e.pageSize},option:s},s);return p(l)}});function p(e){return o(this,null,function*(){const r=yield I.post({url:T.QueryUrl,params:e},{isTransformResponse:!1});let t={};return i(r.Data.page)?t={items:r.Data.Items}:t={items:r.Data.page.data,total:r.Data.page.totals},t})}w=e=>o(void 0,null,function*(){let r="";e.order!=null&&(r=e.order=="descend"?e.field+" desc":e.field);let t="1=1";(e==null?void 0:e.BILLCODE)!=null&&(e==null?void 0:e.BILLCODE)!=""&&(t+=" And BILLCODE like '%"+(e==null?void 0:e.BILLCODE)+"%'"),(e==null?void 0:e.ITEM_CODE)!=null&&(e==null?void 0:e.ITEM_CODE)!=""&&(t+=" And ITEM_CODE like '%"+(e==null?void 0:e.ITEM_CODE)+"%'");var s={UserId:n().getUserInfo.userId,ByOrg:!0,OrgCode:n().getUserInfo.orgCode};if(i(e.page)){const l=d("V_BIZ_WMS_TRANSFER_DTL",{QueryAble_T:"",where:t,option:s},s);return S(l)}else{const l=d("V_BIZ_WMS_TRANSFER_DTL",{QueryAble_T:"",where:t,order:"BILLLINE*1"+r,page:{pageAble_T:"string",draw:1,pageIndex:e.page,pageSize:e.pageSize},option:s},s);return S(l)}});function S(e){return o(this,null,function*(){const r=yield I.post({url:T.QueryUrl,params:e},{isTransformResponse:!1});let t={};return i(r.Data.page)?t={items:r.Data.Items}:t={items:r.Data.page.data,total:r.Data.page.totals},t})}M=e=>o(void 0,null,function*(){let r="";e.order!=null&&(r=e.order=="descend"?e.field+" desc":e.field);let t="1=1";(e==null?void 0:e.ITEM_CODE)!=null&&(e==null?void 0:e.ITEM_CODE)!=""&&(t+=" And ITEM_CODE like '%"+(e==null?void 0:e.ITEM_CODE)+"%'"),(e==null?void 0:e.BILLCODE)!=null&&(e==null?void 0:e.BILLCODE)!=""&&(t+=" And BILLCODE like '%"+(e==null?void 0:e.BILLCODE)+"%'"),(e==null?void 0:e.SN)!=null&&(e==null?void 0:e.SN)!=""&&(t+=" And SN like '%"+(e==null?void 0:e.SN)+"%'"),i(e==null?void 0:e.LINESTATUS)||(t+=" And LINESTATUS = '"+(e==null?void 0:e.LINESTATUS)+"'");var s={UserId:n().getUserInfo.userId,ByOrg:!0,OrgCode:n().getUserInfo.orgCode};if(i(e.page)){const l=d("BIZ_WMS_TRANSFER_SN",{QueryAble_T:"",where:t,option:s},s);return E(l)}else{const l=d("BIZ_WMS_TRANSFER_SN",{QueryAble_T:"",where:t,order:r,page:{pageAble_T:"string",draw:1,pageIndex:e.page,pageSize:e.pageSize},option:s},s);return E(l)}});function E(e){return o(this,null,function*(){const r=yield I.post({url:T.QueryUrl,params:e},{isTransformResponse:!1});let t={};return i(r.Data.page)?t={items:r.Data.Items}:t={items:r.Data.page.data,total:r.Data.page.totals},t})}let D,a,A;R=e=>o(void 0,null,function*(){let r;{e.ID=x(),e.CREATE_USER=n().getUserInfo.userId,e.UPDATE_USER=n().getUserInfo.userId,e.AUTH_ORG=n().getUserInfo.orgCode,e.UPDATE_TIME=_(new Date);const t={ID:e.ID,CREATE_USER:e.CREATE_USER,UPDATE_USER:e.UPDATE_USER,UPDATE_TIME:e.UPDATE_TIME,BILLDATE:e.UPDATE_TIME,AUTH_ORG:e.AUTH_ORG,BILLCODE:e.BILLCODE,INWAREHOUSECODE:e.INWAREHOUSECODE,OUTWAREHOUSECODE:e.OUTWAREHOUSECODE,STATUS:e.STATUS,REMARK:e.REMARK};r=yield I.post({url:T.AddEntity,params:d("BIZ_WMS_TRANSFER",t)},{errorMessageMode:"none",isTransformResponse:!1})}return r}),C=(e,r)=>o(void 0,null,function*(){let t=[],s;return e.forEach(l=>{const P={ID:l.ID,CREATE_USER:l.CREATE_USER,UPDATE_USER:l.UPDATE_USER,UPDATE_TIME:_(new Date),AUTH_ORG:l.AUTH_ORG,OUTWAREHOUSECODE:r.OUTWAREHOUSECODE,INWAREHOUSECODE:r.INWAREHOUSECODE,BILLCODE:r.BILLCODE,ITEM_CODE:l.ITEM_CODE,BILLLINE:l.BILLLINE,PRQTY:l.PRQTY,UNITCODE:l.UNITCODE};t.push(P)}),s=yield I.post({url:T.AddListEntity,params:d("BIZ_WMS_TRANSFER_DTL",t)},{errorMessageMode:"none",isTransformResponse:!1}),s}),u=()=>o(void 0,null,function*(){return(yield I.get({url:T.GetCreateTFBillCode},{isTransformResponse:!1})).Data}),D=e=>o(void 0,null,function*(){const r=d("BIZ_WMS_TRANSFER+STATUSs","");var t=yield I.post({url:T.urlQueryEnum,params:r},{errorMessageMode:"none",isTransformResponse:!1});return t}),{t:a}=H("WMS.Transfer"),{getLocale:A}=y(),L=[{title:a("\u5355\u636E\u4EE3\u7801"),resizable:!0,sorter:!0,dataIndex:"BILLCODE",width:200},{title:a("\u5355\u636E\u65E5\u671F"),resizable:!0,sorter:!0,dataIndex:"BILLDATE",width:180},{title:a("\u521B\u5EFA\u65F6\u95F4"),resizable:!0,sorter:!0,dataIndex:"CREATE_TIME",width:180},{title:a("\u64CD\u4F5C\u65F6\u95F4"),resizable:!0,sorter:!0,dataIndex:"UPDATE_TIME",width:180},{title:a("\u72B6\u6001"),resizable:!0,sorter:!0,dataIndex:"STATUS",width:180,customRender:({record:e})=>{const r=e.STATUS;let t="",s="";switch(r){case-1:t=a("\u624B\u52A8\u65B0\u589E"),s="blue";break;case 0:t=a("\u65B0\u589E"),s="blue";break;case 1:t=a("\u4F5C\u4E1A\u4E2D"),s="#C2C247";break;case 2:t=a("\u5B8C\u6210"),s="#C2C247";break;case 3:t=a("\u8C03\u62E8\u5B8C\u6210"),s="green";break;case 4:t=a("\u624B\u52A8\u4E0B\u67B6\u5B8C\u6210"),s="green";break;case 5:t=a("\u8C03\u51FA"),s="green";break}return c(O,{color:s},()=>t)}},{title:a("\u8C03\u51FA\u4ED3\u5E93"),resizable:!0,sorter:!0,dataIndex:"OUTWAREHOUSECODE",width:180},{title:a("\u8C03\u5165\u4ED3\u5E93"),resizable:!0,sorter:!0,dataIndex:"INWAREHOUSECODE",width:180},{title:a("T100\u5355\u636E\u4EE3\u7801"),resizable:!0,sorter:!0,dataIndex:"ERP_BILL_CODE",width:180},{title:a("\u521B\u5EFA\u4EBA"),resizable:!0,width:180,dataIndex:"CREATE_USER"}],N=[{field:"BILLCODE",label:a("\u5355\u636E\u4EE3\u7801"),colProps:{span:8},component:"Input"},{field:"BILLDATE",label:a("\u5355\u636E\u65E5\u671F"),colProps:{span:8},component:"RangePicker"},{field:"STATUS",label:a("\u72B6\u6001"),component:"ApiSelect",colProps:{span:8},componentProps:{api:D,resultField:"Data",labelField:U(A)=="zh_CN"?"Desc":"Name",valueField:"Value"}}],g=[{title:a("\u7EC4\u7EC7\u673A\u6784\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_ORG",width:200,ifShow:!1},{title:a("\u751F\u4EA7\u5355\u5143\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_PROD",width:200,ifShow:!1},{title:a("\u4ED3\u5E93\u5355\u5143\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_WH",width:200,ifShow:!1},{title:a("\u5E8F\u53F7"),resizable:!0,sorter:!0,dataIndex:"BILLLINE",width:100},{title:a("\u7269\u6599\u7F16\u7801"),resizable:!0,sorter:!0,dataIndex:"ITEM_CODE",width:200},{title:a("\u9700\u6C42\u6570\u91CF"),resizable:!0,sorter:!0,dataIndex:"PRQTY",width:100},{title:a("\u53D1\u51FA\u6570\u91CF"),resizable:!0,sorter:!0,dataIndex:"OUTQTY",width:100},{title:a("\u8F6C\u5165\u6570\u91CF"),resizable:!0,sorter:!0,dataIndex:"INQTY",width:100},{title:a("\u7269\u6599\u540D\u79F0"),resizable:!0,sorter:!0,dataIndex:"ITEM_NAME",width:200},{title:a("\u64CD\u4F5C\u65F6\u95F4"),resizable:!0,sorter:!0,dataIndex:"CREATE_TIME",width:180}],b=[{title:a("\u7EC4\u7EC7\u673A\u6784\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_ORG",width:200,ifShow:!1},{title:a("\u751F\u4EA7\u5355\u5143\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_PROD",width:200,ifShow:!1},{title:a("\u4ED3\u5E93\u5355\u5143\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_WH",width:200,ifShow:!1},{title:a("\u5E8F\u53F7"),resizable:!0,sorter:!0,editRow:!0,editable:!0,dataIndex:"BILLLINE",width:100},{title:a("\u7269\u6599\u7F16\u7801"),resizable:!0,sorter:!0,dataIndex:"ITEM_CODE",width:200},{title:a("\u9700\u6C42\u6570\u91CF"),resizable:!0,editRule:!0,editComponent:"InputNumber",sorter:!0,editRow:!0,dataIndex:"PRQTY",width:100},{title:a("\u7269\u6599\u540D\u79F0"),resizable:!0,sorter:!0,dataIndex:"ITEM_NAME",width:200},{title:a("\u89C4\u683C"),resizable:!0,editable:!0,sorter:!0,editRow:!0,dataIndex:"UNITCODE",width:200},{title:a("\u64CD\u4F5C\u65F6\u95F4"),resizable:!0,editComponent:"DatePicker",editComponentProps:{valueFormat:"YYYY-MM-DD HH:mm:ss",format:"YYYY-MM-DD HH:mm:ss"},sorter:!0,editRow:!0,dataIndex:"CREATE_TIME",width:180}],B=[{title:a("\u7EC4\u7EC7\u673A\u6784\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_ORG",width:200,ifShow:!1},{title:a("\u751F\u4EA7\u5355\u5143\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_PROD",width:200,ifShow:!1},{title:a("\u4ED3\u5E93\u5355\u5143\u6388\u6743\u6807\u8BC6\u5B57\u6BB5"),resizable:!0,sorter:!0,dataIndex:"AUTH_WH",width:200,ifShow:!1},{title:a("\u6761\u7801"),resizable:!0,sorter:!0,dataIndex:"SN",width:200},{title:a("\u4FEE\u6539\u65F6\u95F4"),resizable:!0,sorter:!0,dataIndex:"UPDATE_TIME",width:180},{title:a("\u72B6\u6001"),resizable:!0,sorter:!0,dataIndex:"STATUS",width:180,customRender:({record:e})=>{const r=e.STATUS;let t="",s="";switch(r){case 0:t=a("\u65B0\u589E"),s="blue";break;case 1:t=a("\u4F5C\u4E1A\u4E2D"),s="#C2C247";break;case 2:t=a("\u5B8C\u6210"),s="#C2C247";break;case 3:t=a("\u8C03\u62E8\u5B8C\u6210"),s="green";break}return c(O,{color:s},()=>t)}},{title:a("\u7269\u6599\u7F16\u7801"),resizable:!0,sorter:!0,dataIndex:"ITEM_CODE",width:200},{title:a("\u6570\u91CF"),resizable:!0,sorter:!0,dataIndex:"QTY",width:200}],f=[{field:"ITEM_CODE",label:a("\u7269\u6599\u7F16\u7801"),colProps:{span:8},component:"Input"},{field:"OUTWAREHOUSECODE",label:a("\u51FA\u5E93\u4ED3\u5E93"),colProps:{span:8},component:"Input"},{field:"INWAREHOUSECODE",label:a("\u5165\u5E93\u4ED3\u5E93"),colProps:{span:8},component:"Input"}],z=[{field:"ITEM_CODE",label:a("\u7269\u6599\u7F16\u7801"),colProps:{span:8},component:"Input"},{field:"SN",label:a("\u6761\u7801"),colProps:{span:8},component:"Input"}],m=[{field:"BILLCODE",label:"\u5355\u636E\u4EE3\u7801",dynamicDisabled:!0,required:!0,component:"Input",colProps:{span:8}},{field:"ID",label:"ID",component:"Input",show:!1},{field:"STATUS",label:"\u72B6\u6001",required:!0,component:"ApiSelect",defaultValue:-1,dynamicDisabled:!0,colProps:{span:8},componentProps:{api:D,resultField:"Data",labelField:U(A)=="zh_CN"?"Desc":"Name",valueField:"Value"}},{field:"OUTWAREHOUSECODE",label:"\u8C03\u51FA\u4ED3\u5E93",required:!0,component:"Input",colProps:{span:8}},{field:"INWAREHOUSECODE",label:"\u8C03\u5165\u4ED3\u5E93",required:!0,component:"Input",colProps:{span:8}},{field:"REMARK",label:"\u5907\u6CE8",component:"Input",colProps:{span:12},defaultValue:"\u624B\u5DE5\u4E0B\u67B6",dynamicDisabled:!0}]}));export{R as A,u as C,k as __tla,C as a,L as b,b as c,w as d,g as e,m as f,h as g,f as h,M as i,B as j,z as k,N as s};