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