var n=(_,u,d)=>new Promise((D,c)=>{var A=a=>{try{E(d.next(a))}catch(t){c(t)}},e=a=>{try{E(d.throw(a))}catch(t){c(t)}},E=a=>a.done?D(a.value):Promise.resolve(a.value).then(A,e);E((d=d.apply(_,u)).next())});import{a as I,bq as i,O as o,d as p,N as T,l as f,aF as P,__tla as h}from"./index-f0df2f76.js";import{n as g,u as V}from"./vue-1631514e.js";import{a2 as b}from"./antd-057b41b1.js";let S,R,C,m,O,U,w,M,L,y=Promise.all([(()=>{try{return h}catch(_){}})()]).then(()=>n(void 0,null,function*(){O=a=>n(void 0,null,function*(){let t="";a.order!=null&&(t=a.order=="descend"?a.field+" desc":a.field);let r="1=1";(a==null?void 0:a.DELIVERY_NO)!=null&&(a==null?void 0:a.DELIVERY_NO)!=""&&(r+=" And DELIVERY_NO like '%"+(a==null?void 0:a.DELIVERY_NO)+"%'"),(a==null?void 0:a.RECEIVE_DATE)!=null&&(a==null?void 0:a.RECEIVE_DATE)!=""&&(r+=" And RECEIVE_DATE > '"+(a==null?void 0:a.RECEIVE_DATE[0])+"'"),(a==null?void 0:a.RECEIVE_DATE)!=null&&(a==null?void 0:a.RECEIVE_DATE)!=""&&(r+=" And RECEIVE_DATE < '"+(a==null?void 0:a.RECEIVE_DATE[1])+"'"),(a==null?void 0:a.STATUS)!=null&&(a==null?void 0:a.STATUS)!=""&&(r+=" And STATUS = '"+(a==null?void 0:a.STATUS)+"'"),(a==null?void 0:a.PURCHASE_TYPE)!=null&&(a==null?void 0:a.PURCHASE_TYPE)!=""&&(r+=" And PURCHASE_TYPE = '"+(a==null?void 0:a.PURCHASE_TYPE)+"'");var s={UserId:I().getUserInfo.userId,ByOrg:!0,OrgCode:I().getUserInfo.orgCode};if(i(a.page)){const l=o("BIZ_SRM_DLVY",{QueryAble_T:"",where:r,option:s},s);return _(l)}else{const l=o("BIZ_SRM_DLVY",{QueryAble_T:"",where:r,order:t,page:{pageAble_T:"string",draw:1,pageIndex:a.page,pageSize:a.pageSize},option:s},s);return _(l)}});function _(a){return n(this,null,function*(){const t=yield p.post({url:T.QueryUrl,params:a},{isTransformResponse:!1});let r={};return i(t.Data.page)?r={items:t.Data.Items}:r={items:t.Data.page.data,total:t.Data.page.totals},r})}w=a=>n(void 0,null,function*(){let t="";a.order!=null&&(t=a.order=="descend"?a.field+" desc":a.field);let r="1=1";(a==null?void 0:a.BILLCODE)!=null&&(a==null?void 0:a.BILLCODE)!=""&&(r+=" And DELIVERY_NO = '"+(a==null?void 0:a.BILLCODE)+"'"),(a==null?void 0:a.ITEM_CODE)!=null&&(a==null?void 0:a.ITEM_CODE)!=""&&(r+=" And ITEM_CODE = '"+(a==null?void 0:a.ITEM_CODE)+"'");var s={UserId:I().getUserInfo.userId,ByOrg:!0,OrgCode:I().getUserInfo.orgCode};if(i(a.page)){const l=o("V_BIZ_SRM_DLVY_DTL",{QueryAble_T:"",where:r,order:"LINE_NO*1",option:s},s);return u(l)}else{const l=o("V_BIZ_SRM_DLVY_DTL",{QueryAble_T:"",where:r,order:"LINE_NO*1 "+t,page:{pageAble_T:"string",draw:1,pageIndex:a.page,pageSize:a.pageSize},option:s},s);return u(l)}});function u(a){return n(this,null,function*(){const t=yield p.post({url:T.QueryUrl,params:a},{isTransformResponse:!1});let r={};return i(t.Data.page)?r={items:t.Data.Items}:r={items:t.Data.page.data,total:t.Data.page.totals},r})}S=a=>n(void 0,null,function*(){let t="";a.order!=null&&(t=a.order=="descend"?a.field+" desc":a.field);let r="1=1";(a==null?void 0:a.BILLCODE)!=null&&(a==null?void 0:a.BILLCODE)!=""&&(r+=" And DELIVERY_NO = '"+(a==null?void 0:a.BILLCODE)+"'"),(a==null?void 0:a.ITEM_CODE)!=null&&(a==null?void 0:a.ITEM_CODE)!=""&&(r+=" And ITEM_CODE = '"+(a==null?void 0:a.ITEM_CODE)+"'"),i(a==null?void 0:a.STATUS)||(r+=" And STATUS = '"+(a==null?void 0:a.STATUS)+"'");var s={UserId:I().getUserInfo.userId,ByOrg:!0,OrgCode:I().getUserInfo.orgCode};if(i(a.page)){const l=o("V_SRM_ITEM",{QueryAble_T:"",where:r,option:s},s);return d(l)}else{const l=o("V_SRM_ITEM",{QueryAble_T:"",where:r,order:t,page:{pageAble_T:"string",draw:1,pageIndex:a.page,pageSize:a.pageSize},option:s},s);return d(l)}});function d(a){return n(this,null,function*(){const t=yield p.post({url:T.QueryUrl,params:a},{isTransformResponse:!1});let r={};return i(t.Data.page)?r={items:t.Data.Items}:r={items:t.Data.page.data,total:t.Data.page.totals},r})}let D,c,A,e,E;D=a=>n(void 0,null,function*(){const t=o("BIZ_SRM_DLVY+STATUSs","");return yield p.post({url:T.urlQueryEnum,params:t},{errorMessageMode:"none",isTransformResponse:!1})}),c=a=>n(void 0,null,function*(){const t=o("WMS_ITEM+STATUSs","");return yield p.post({url:T.urlQueryEnum,params:t},{errorMessageMode:"none",isTransformResponse:!1})}),A=a=>n(void 0,null,function*(){const t=o("BIZ_SRM_DLVY+PURCHASE_TYPEs","");return yield p.post({url:T.urlQueryEnum,params:t},{errorMessageMode:"none",isTransformResponse:!1})}),{t:e}=f(),{getLocale:E}=P(),U=[{title:e("\u9001\u8D27\u5355\u53F7"),dataIndex:"DELIVERY_NO",width:200,resizable:!0,sorter:!0},{title:"\u9001\u8D27\u65E5\u671F",dataIndex:"DELIVERY_DATE",width:180,resizable:!0,sorter:!0},{title:e("\u521B\u5EFA\u65F6\u95F4"),dataIndex:"CREATE_TIME",width:180,resizable:!0,sorter:!0},{title:e("\u4FEE\u6539\u65F6\u95F4"),dataIndex:"UPDATE_TIME",width:180,resizable:!0,sorter:!0},{title:"\u4F9B\u5E94\u5546\u540D\u79F0",dataIndex:"SUPP_NAME",width:180,resizable:!0,sorter:!0},{title:e("\u91C7\u8D2D\u7C7B\u578B"),dataIndex:"PURCHASE_TYPE",width:180,customRender:({record:a})=>{const t=a.PURCHASE_TYPE;let r="",s="";switch(t){case 0:r=e("\u4E00\u822C\u91C7\u8D2D"),s="green";break;case 1:r=e("\u59D4\u5916\u91C7\u8D2D"),s="blue";break}return g(b,{color:s},()=>r)},resizable:!0,sorter:!0},{title:e("\u521B\u5EFA\u4EBA"),dataIndex:"CREATE_USER",width:180,resizable:!0,sorter:!0}],M=[{field:"DELIVERY_NO",label:e("\u9001\u8D27\u5355\u53F7"),colProps:{span:8},component:"Input"},{field:"RECEIVE_DATE",label:e("\u6536\u8D27\u65E5\u671F"),colProps:{span:8},component:"RangePicker"},{field:"STATUS",label:e("\u72B6\u6001"),component:"ApiSelect",componentProps:{api:D,resultField:"Data",labelField:"Desc",valueField:"Value"},colProps:{span:8}},{field:"PURCHASE_TYPE",label:e("\u91C7\u8D2D\u7C7B\u578B"),component:"ApiSelect",componentProps:{api:A,resultField:"Data",labelField:"Desc",valueField:"Value"},colProps:{span:8}}],C=[{title:e("\u9001\u8D27\u5355\u884C\u53F7"),dataIndex:"LINE_NO",width:100,resizable:!0,sorter:!0},{title:e("\u7269\u6599\u7F16\u7801"),dataIndex:"ITEM_CODE",width:200,resizable:!0,sorter:!0},{title:e("\u7269\u6599\u540D\u79F0"),dataIndex:"ITEM_NAME",width:200,resizable:!0,sorter:!0},{title:e("\u4FEE\u6539\u65F6\u95F4"),dataIndex:"UPDATE_TIME",width:180,resizable:!0,sorter:!0},{title:e("\u6570\u91CF"),dataIndex:"QTY",width:200,resizable:!0,sorter:!0},{title:e("\u8BA1\u4EF7\u6570\u91CF"),dataIndex:"VALUATION_QTY",width:200,resizable:!0,sorter:!0}],R=[{title:e("\u7269\u6599\u7F16\u7801"),dataIndex:"ITEM_CODE",width:200,resizable:!0,sorter:!0},{title:e("\u4FEE\u6539\u65F6\u95F4"),dataIndex:"UPDATE_TIME",width:180,resizable:!0,sorter:!0},{title:e("\u5C0F\u5305\u6761\u7801"),dataIndex:"SMALL_BARCODE",width:200,resizable:!0,sorter:!0},{title:e("\u5927\u5305\u6761\u7801"),dataIndex:"BIG_BARCODE",width:200,resizable:!0,sorter:!0},{title:e("\u5916\u7BB1\u6761\u7801"),dataIndex:"OUTER_BARCODE",width:200,resizable:!0,sorter:!0},{title:e("\u751F\u4EA7\u65E5\u671F"),dataIndex:"PROD_DATE",width:200,resizable:!0,sorter:!0},{title:e("\u72B6\u6001"),dataIndex:"STATUS",width:180,customRender:({record:a})=>{const t=a.STATUS;let r="",s="";switch(t){case 0:r="\u4E0D\u5B58\u5728",s="green";break;case 10:r="\u9001\u8D27\u4E2D",s="blue";break;case 20:r="\u5F85\u68C0\u9A8C",s="green";break;case 30:r="\u5F85\u5165\u5E93",s="#C2C247";break;case 40:r="\u5728\u5E93\u4E2D",s="blue";break;case 50:r="\u5DF2\u4E0B\u67B6",s="green";break;case 60:r="\u5DF2\u53D1\u6599",s="red";break;case 70:r="\u5DF2\u4E0A\u6599",s="red";break;case 80:r="\u5DF2\u8017\u5C3D",s="green";break;case 90:r="\u5DF2\u9000\u6599",s="green";break;case 100:r="\u5DF2\u53D1\u8D27",s="green";break}return g(b,{color:s},()=>r)}},{title:e("\u6570\u91CF"),dataIndex:"QTY",width:200,resizable:!0,sorter:!0}],L=[{field:"ITEM_CODE",label:e("\u7269\u6599\u7F16\u7801"),colProps:{span:8},component:"Input"}],m=[{field:"ITEM_CODE",label:e("\u7269\u6599\u7F16\u7801"),colProps:{span:8},component:"Input"},{field:"STATUS",label:e("\u72B6\u6001"),component:"ApiSelect",colProps:{span:8},componentProps:{api:c,resultField:"Data",labelField:V(E)=="zh_CN"?"Desc":"Name",valueField:"Value"}}]}));export{y as __tla,S as a,R as b,C as c,m as d,O as e,U as f,w as g,M as h,L as s};
|