import{_ as z,d as D,aP as P,w as f,b3 as V,aC as k,o as p,G as c,C as u,l as o,u as e,aN as q,aM as L,bS as R,c as T,F as U,D as M,bT as O,H as j,bo as I,bR as l,M as d,L as v,aS as G,b as H,bU as W,aW as Y,aq as J,bI as K,aY as Q}from"./index.56c69f5a.js";import{t as b}from"./status.2df4810d.js";import{h as X}from"./index.d07aea6b.js";const Z={class:"flex justify-between w-full mt-[10px]"},$=D({__name:"order-modal",props:{platform_type:{type:String,required:!0}},emits:["list"],setup(h,{expose:E,emit:F}){const _=h,i=P(!1),y=f(null),{run:B,data:C,loading:x}=V({isList:!0,success:r=>s.value.total=r.count}),g={page:1,size:15,total:0,pay_status:"1",status:[1],companyNo:"",customerNo:""},m=f([]),s=f({...g}),w=()=>B(X({...s.value,platform_type:_.platform_type}));function S(){var r;if(m.value.length===0){Q.warning("\u8BF7\u9009\u62E9\u901A\u7528\u8BA2\u5355");return}F("list",m.value),i.value=!1,(r=y.value)==null||r.clearSelection()}return E({onDisplay:(r,a)=>{i.value=!0,s.value={...g,companyNo:a,customerNo:r},w()}}),(r,a)=>{const A=k("loading");return p(),c(e(K),{modelValue:e(i),"onUpdate:modelValue":a[3]||(a[3]=t=>J(i)?i.value=t:null),title:"\u901A\u7528\u8BA2\u5355\u5217\u8868",center:"",width:"1024px"},{default:u(()=>[o(e(q),{class:"mb-[10px]"},{default:u(()=>[o(e(L),{span:8},{default:u(()=>[o(e(R),{modelValue:String(s.value.status[0]),size:"small",disabled:""},{default:u(()=>[(p(!0),T(U,null,M(e(b),({label:t,value:n})=>(p(),c(e(O),{label:t,value:n,key:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),j((p(),c(e(I),{border:"",size:"small",data:e(C),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=>[d(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=>[d(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(G),null,{default:u(()=>{var n;return[d(v(((n=e(b).find(N=>N.value==t.row.status))==null?void 0:n.label)||"--"),1)]}),_:2},1024)]),_:1}),o(e(l),{label:"\u4E0B\u5355\u65F6\u95F4",width:"100",prop:"addtime","show-overflow-tooltip":""})]),_:1},8,["data"])),[[A,e(x)]]),H("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(()=>[d("\u6DFB\u52A0")]),_:1})])]),_:1},8,["modelValue"])}}});var le=z($,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/currentcyOrderRecord copy/components/order-modal.vue"]]);export{le as default};
