var N=Object.defineProperty;var Q=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var S=(n,o,r)=>o in n?N(n,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[o]=r,Y=(n,o)=>{for(var r in o||(o={}))P.call(o,r)&&S(n,r,o[r]);if(Q)for(var r of Q(o))q.call(o,r)&&S(n,r,o[r]);return n};var i=(n,o,r)=>new Promise((a,p)=>{var _=t=>{try{e(r.next(t))}catch(s){p(s)}},E=t=>{try{e(r.throw(t))}catch(s){p(s)}},e=t=>t.done?a(t.value):Promise.resolve(t.value).then(_,E);e((r=r.apply(n,o)).next())});import{B as F,__tla as U}from"./BasicForm-1f7b4828.js";import{__tla as W}from"./componentMap-44c327dc.js";import{u as G,__tla as H}from"./useForm-2e36096a.js";import{__tla as k}from"./RadioButtonGroup-3086b2b2.js";import{a as L,O as u,d as I,N as m,J as K,l as v,ay as V,b as J,_ as j,__tla as Z}from"./index-f0df2f76.js";import{n as $,d as X,k as ee,u as g,e as te,a7 as D,_ as ae,a8 as re,a9 as se,f as ne,ac as oe}from"./vue-1631514e.js";import{as as ie}from"./antd-057b41b1.js";import{B as le,a as de,__tla as ce}from"./index-49ac20fc.js";let C,b,M,y,A,B,pe=Promise.all([(()=>{try{return U}catch(n){}})(),(()=>{try{return W}catch(n){}})(),(()=>{try{return H}catch(n){}})(),(()=>{try{return k}catch(n){}})(),(()=>{try{return Z}catch(n){}})(),(()=>{try{return ce}catch(n){}})()]).then(()=>i(void 0,null,function*(){y=e=>i(void 0,null,function*(){let t="";e.order!=null&&(t=e.order=="descend"?e.field+" desc":e.field);let s="1=1";(e==null?void 0:e.BILLCODE)!=null&&(e==null?void 0:e.BILLCODE)!=""&&(s+=" And BILLCODE = '"+(e==null?void 0:e.BILLCODE)+"'");var l={UserId:L().getUserInfo.userId,ByOrg:!0,OrgCode:L().getUserInfo.orgCode};const d=u("BIZ_ERP_IQC",{QueryAble_T:"",where:s,order:t,page:{pageAble_T:"string",draw:1,pageIndex:e.page,pageSize:e.pageSize},option:l},l);return n(d)});function n(e){return i(this,null,function*(){const t=yield I.post({url:m.QueryUrl,params:e},{isTransformResponse:!1});return{items:t.Data.page.data,total:t.Data.page.totals}})}let o,r,a,p,_;o=(e,t)=>i(void 0,null,function*(){let s;return t?s=yield I.post({url:m.UpdateEntity,params:u("Minsun.WMS_IQC_H",e)},{errorMessageMode:"none",isTransformResponse:!1}):(e.ID=K(),s=yield I.post({url:m.AddEntity,params:u("Minsun.WMS_IQC_H",e)},{errorMessageMode:"none",isTransformResponse:!1})),s}),r=e=>I.post({url:m.UpdateEntity,params:u("BIZ_ERP_IQC",e)},{errorMessageMode:"none",isTransformResponse:!1}),C=e=>i(void 0,null,function*(){const t=u("Minsun.WMS_IQC_H",[e]);return yield I.post({url:m.DeleteList,params:t},{errorMessageMode:"none",isTransformResponse:!1})}),{t:a}=v("WMS.Inspection"),M=[{title:a("\u5355\u636E\u4EE3\u7801"),dataIndex:"BILLCODE",resizable:!0,sorter:!0,width:200},{title:"\u662F\u5426\u70D8\u70E4",dataIndex:"NEED_BAKE",width:120,customRender:({record:e})=>(Reflect.has(e,"pendingStatus1")||(e.pendingStatus1=!1),$(ie,{checked:e.NEED_BAKE==="Y",checkedChildren:"\u662F",unCheckedChildren:"\u5426",loading:e.pendingStatus1,onChange(t){const s=e.NEED_BAKE;e.pendingStatus1=!0;const l=t?"Y":"N",{createMessage:d}=J();e.NEED_BAKE=l,e.HANDLED_DATE=V(new Date),r(e).then(()=>{d.success("\u662F\u5426\u70D8\u70E4\u5DF2\u6210\u529F\u4FEE\u6539")}).catch(()=>{d.error("\u4FEE\u6539\u5931\u8D25"),e.NEED_BAKE=s}).finally(()=>{e.pendingStatus1=!1})}}))},{title:a("\u63A5\u6536\u6570\u91CF"),dataIndex:"RECEIVEQTY",resizable:!0,sorter:!0,width:180},{title:a("\u590D\u6838\u6570\u91CF"),dataIndex:"REVIEWQTY",resizable:!0,sorter:!0,width:180},{title:a("\u62BD\u6837\u6570\u91CF"),dataIndex:"SAMPLEQTY",resizable:!0,sorter:!0,width:180},{title:a("\u901A\u8FC7\u6570\u91CF"),dataIndex:"SAMPLEPASSQTY",resizable:!0,sorter:!0,width:180},{title:a("\u62BD\u6837\u5B8C\u6210\u6570\u91CF"),dataIndex:"SAMPLENGQTY",resizable:!0,sorter:!0,width:180},{title:a("\u5F00\u59CB\u6570\u91CF"),dataIndex:"BEGINQTY",resizable:!0,sorter:!0,width:180},{title:a("\u7ED3\u675F\u6570\u91CF"),dataIndex:"ENDQTY",resizable:!0,sorter:!0,width:180},{title:a("\u91CD\u5927\u7F3A\u9677"),dataIndex:"FATALQTY",resizable:!0,sorter:!0,width:180},{title:a("\u4E25\u91CD\u7F3A\u9677\u6570\u91CF"),dataIndex:"SERIOUSQTY",resizable:!0,sorter:!0,width:180},{title:a("\u4E00\u822C\u7F3A\u9677\u6570\u91CF"),dataIndex:"COMMONLYQTY",resizable:!0,sorter:!0,width:180},{title:a("\u8F7B\u5FAE\u7F3A\u9677\u6570\u91CF"),dataIndex:"SLIGHTQTY",resizable:!0,sorter:!0,width:180},{title:a("\u68C0\u9A8C\u6570\u91CF"),dataIndex:"QCQTY",resizable:!0,sorter:!0,width:180},{title:a("\u62D2\u7EDD\u6570\u91CF"),dataIndex:"REJECTQTY",resizable:!0,sorter:!0,width:180},{title:a("\u5165\u5E93\u6570\u91CF"),dataIndex:"INSTOCKQTY",resizable:!0,sorter:!0,width:180}],B=[{field:"BILLCODE",label:a("\u5355\u636E\u4EE3\u7801"),colProps:{span:8},component:"Input"}],p=[{field:"BILLCODE",label:"\u5355\u636E\u4EE3\u7801",required:!0,component:"Input"},{field:"REVIEWQTY",label:"\u590D\u6838\u6570\u91CF",required:!0,component:"Input"},{field:"SAMPLEQTY",label:"\u62BD\u6837\u6570\u91CF",required:!0,component:"Input"},{field:"SAMPLEPASSQTY",label:"\u901A\u8FC7\u6570\u91CF",required:!0,component:"Input"},{field:"SAMPLENGQTY",label:"\u62BD\u6837\u5B8C\u6210\u6570\u91CF",required:!0,component:"Input"},{field:"BEGINQTY",label:"\u5F00\u59CB\u6570\u91CF",required:!0,component:"Input"},{field:"ENDQTY",label:"\u7ED3\u675F\u6570\u91CF",required:!0,component:"Input"},{field:"FATALQTY",label:"\u91CD\u5927\u7F3A\u9677",component:"Input",required:!0},{field:"SERIOUSQTY",label:"\u4E25\u91CD\u7F3A\u9677\u6570\u91CF",component:"Input",required:!0},{field:"COMMONLYQTY",label:"\u4E00\u822C\u7F3A\u9677\u6570\u91CF",component:"Input",required:!0},{field:"SLIGHTQTY",label:"\u8F7B\u5FAE\u7F3A\u9677\u6570\u91CF",component:"Input",required:!0},{field:"QCQTY",label:"\u68C0\u9A8C\u6570\u91CF",component:"Input",show:!0},{field:"RECEIVEQTY",label:"\u63A5\u6536\u6570\u91CF",component:"Input",show:!0},{field:"REJECTQTY",label:"\u62D2\u7EDD\u6570\u91CF",component:"Input",show:!0},{field:"INSTOCKQTY",label:"\u5165\u5E93\u6570\u91CF",component:"Input",show:!0}],_=X({name:"WHDrawer",components:{BasicDrawer:le,BasicForm:F},emits:["success","register"],setup(e,{emit:t}){const s=ee(!0),[l,{resetFields:d,setFieldsValue:w,validate:f}]=G({labelWidth:90,schemas:p,showActionButtonGroup:!1}),[T,{setDrawerProps:h,closeDrawer:O}]=de(c=>i(this,null,function*(){d(),h({confirmLoading:!1}),s.value=!!(c!=null&&c.isUpdate),g(s)&&w(Y({},c.record))})),R=te(()=>g(s)?"\u7F16\u8F91\u9001\u68C0\u5355":"\u65B0\u589E\u9001\u68C0\u5355");function x(){return i(this,null,function*(){try{const c=yield f();h({confirmLoading:!0}),o(c,g(s)).then(z=>{z.IsSuccessed&&(O(),t("success"))})}finally{h({confirmLoading:!1})}})}return{registerDrawer:T,registerForm:l,getTitle:R,handleSubmit:x}}});function E(e,t,s,l,d,w){const f=D("BasicForm"),T=D("BasicDrawer");return ae(),re(T,oe(e.$attrs,{onRegister:e.registerDrawer,showFooter:"",title:e.getTitle,width:"500px",onOk:e.handleSubmit}),{default:se(()=>[ne(f,{onRegister:e.registerForm},null,8,["onRegister"])]),_:1},16,["onRegister","title","onOk"])}b=j(_,[["render",E]]),A=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"}))}));export{C as D,b as I,pe as __tla,M as c,y as g,A as i,B as s};
|