import{_ as D,d as V,cc as k,n as c,cB as q,aw as P,o as d,A as f,y as u,h as o,i as e,dM as L,dn as O,dU as R,c as T,F as U,z as j,dq as h,dV as M,B as G,cY as H,dQ as l,H as p,G as v,ce as I,e as Q,dW as W,dm as Y,dD as J,cm as K}from"./index.js";import{h as X}from"./index.43fba9db.js";const Z={class:"flex justify-between w-full mt-[10px]"},$=V({__name:"order-modal",props:{platform_type:{type:String,required:!0}},emits:["list"],setup(b,{expose:B,emit:y}){const E=y,F=b,n=k(!1),_=c(null),{run:C,data:x,loading:A}=q({isList:!0,success:r=>s.value.total=r.count}),g={page:1,size:15,total:0,pay_status:"1",status:[1],companyNo:"",customerNo:""},m=c([]),s=c({...g}),w=()=>C(X({...s.value,platform_type:F.platform_type}));function S(){var r;if(m.value.length===0){K.warning("\u8BF7\u9009\u62E9\u901A\u7528\u8BA2\u5355");return}E("list",m.value),n.value=!1,(r=_.value)==null||r.clearSelection()}return B({onDisplay:(r,a)=>{n.value=!0,s.value={...g,companyNo:a,customerNo:r},w()}}),(r,a)=>{const z=P("loading");return d(),f(e(J),{modelValue:n.value,"onUpdate:modelValue":a[3]||(a[3]=t=>n.value=t),title:"\u901A\u7528\u8BA2\u5355\u5217\u8868",center:"",width:"1024px","close-on-click-modal":!1,"close-on-press-escape":!1},{default:u(()=>[o(e(L),{class:"mb-[10px]"},{default:u(()=>[o(e(O),{span:8},{default:u(()=>[o(e(R),{modelValue:String(s.value.status[0]),size:"small",disabled:""},{default:u(()=>[(d(!0),T(U,null,j(e(h),({label:t,value:i})=>(d(),f(e(M),{label:t,value:i,key:i},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),G((d(),f(e(H),{border:"",size:"small",data:e(x),class:"mt-[10px]",onSelectionChange:a[0]||(a[0]=t=>m.value=t)},{default:u(()=>[o(e(l),{type:"selection",fixed:"left"}),o(e(l),{label:"\u901A\u7528\u8BA2\u5355\u7F16\u53F7","min-width":"160",prop:"tyCode","show-overflow-tooltip":""}),o(e(l),{label:"\u786E\u8BA4\u5355\u7F16\u53F7","min-width":"160",prop:"orderCode","show-overflow-tooltip":""}),o(e(l),{label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u53F7","min-width":"160",prop:"cxCode","show-overflow-tooltip":""}),o(e(l),{label:"\u5546\u54C1\u7F16\u53F7","min-width":"160",prop:"goodNo","show-overflow-tooltip":""}),o(e(l),{label:"\u5546\u54C1\u540D\u79F0","min-width":"160",prop:"goodName","show-overflow-tooltip":""}),o(e(l),{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:"100px","show-overflow-tooltip":""}),o(e(l),{label:"\u4E70\u5165\u65B9\u516C\u53F8","min-width":"160",prop:"customerName","show-overflow-tooltip":""}),o(e(l),{label:"\u5356\u51FA\u65B9\u516C\u53F8","min-width":"160",prop:"companyName","show-overflow-tooltip":""}),o(e(l),{label:"\u4E0B\u5355\u6570\u91CF",width:"80",prop:"goodNum","show-overflow-tooltip":""},{default:u(t=>[p(v(t.row.qrd?t.row.qrd.goodNum:""),1)]),_:1}),o(e(l),{label:"\u9500\u552E\u5355\u4EF7",width:"80",prop:"goodPrice","show-overflow-tooltip":""},{default:u(t=>[p(v(t.row.qrd?t.row.qrd.goodPrice:""),1)]),_:1}),o(e(l),{label:"\u5BF9\u8D26\u72B6\u6001",width:"80",prop:"status","show-overflow-tooltip":""},{default:u(t=>[o(e(I),null,{default:u(()=>{var i;return[p(v(((i=e(h).find(N=>N.value==t.row.status))==null?void 0:i.label)||"--"),1)]}),_:2},1024)]),_:1}),o(e(l),{label:"\u4E0B\u5355\u65F6\u95F4",width:"100",prop:"addtime","show-overflow-tooltip":""})]),_:1},8,["data"])),[[z,e(A)]]),Q("div",Z,[o(e(W),{currentPage:s.value.page,"onUpdate:currentPage":a[1]||(a[1]=t=>s.value.page=t),pageSize:s.value.size,"onUpdate:pageSize":a[2]||(a[2]=t=>s.value.size=t),layout:"total,prev, pager, next, jumper",total:s.value.total,background:!0,small:!0,onSizeChange:w,onCurrentChange:w},null,8,["currentPage","pageSize","total"]),o(e(Y),{type:"primary",size:"small",onClick:S},{default:u(()=>a[4]||(a[4]=[p("\u6DFB\u52A0")])),_:1})])]),_:1},8,["modelValue"])}}});var te=D($,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/currentcyOrderRecord copy/components/order-modal.vue"]]);export{te as default};
