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