import{_ as O,d as j,w as f,b3 as M,x as U,r as u,aC as G,o as d,c as v,l as e,C as l,F as h,D as H,u as i,G as E,H as I,M as c,L as g,bo as Y,b as J,aY as K}from"./index.56c69f5a.js";import{h as Q}from"./index.d07aea6b.js";import{t as b}from"./status.2df4810d.js";const W={class:"flex justify-between w-full mt-[10px]"},X=j({__name:"single",props:{platformType:{type:String,required:!0},customerNo:{type:null,required:!0},companyNo:{type:String,required:!0}},emits:["list"],setup(y,{expose:C,emit:F}){const m=y,_=f(null),{run:B,data:N,loading:S}=M({isList:!0,success:r=>a.value.total=r.count}),x={page:1,size:15,total:0,status:[0],pay_status:"1"},w=f([]),a=f({...x});function z(){var r;if(w.value.length===0){K.warning("\u8BF7\u9009\u62E9\u901A\u7528\u8BA2\u5355");return}F("list",w.value),(r=_.value)==null||r.clearSelection()}const p=()=>B(Q({...a.value,platform_type:m.platformType,customerNo:m.customerNo,companyNo:m.companyNo}));return U(()=>p()),C({search:()=>p()}),(r,s)=>{const A=u("ElOption"),k=u("ElSelect"),q=u("ElCol"),D=u("ElRow"),t=u("ElTableColumn"),P=u("ElTag"),T=u("ElPagination"),L=u("ElButton"),R=G("loading");return d(),v(h,null,[e(D,{class:"mb-[10px]"},{default:l(()=>[e(q,{span:8},{default:l(()=>[e(k,{modelValue:String(a.value.status[0]),size:"small",disabled:""},{default:l(()=>[(d(!0),v(h,null,H(i(b),({label:o,value:n})=>(d(),E(A,{label:o,value:n,key:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),I((d(),E(i(Y),{ref_key:"tableRef",ref:_,border:"",size:"small",data:i(N),class:"mt-[10px]",onSelectionChange:s[0]||(s[0]=o=>w.value=o)},{default:l(()=>[e(t,{type:"selection",fixed:"left"}),e(t,{label:"\u901A\u7528\u8BA2\u5355\u7F16\u53F7","min-width":"160",prop:"tyCode","show-overflow-tooltip":""}),e(t,{label:"\u786E\u8BA4\u5355\u7F16\u53F7","min-width":"160",prop:"orderCode","show-overflow-tooltip":""}),e(t,{label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u53F7","min-width":"160",prop:"cxCode","show-overflow-tooltip":""}),e(t,{label:"\u5546\u54C1\u7F16\u53F7","min-width":"160",prop:"goodNo","show-overflow-tooltip":""}),e(t,{label:"\u5546\u54C1\u540D\u79F0","min-width":"160",prop:"goodName","show-overflow-tooltip":""}),e(t,{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:"100px","show-overflow-tooltip":""}),e(t,{label:"\u4E70\u5165\u65B9\u516C\u53F8","min-width":"160",prop:"customerName","show-overflow-tooltip":""}),e(t,{label:"\u5356\u51FA\u65B9\u516C\u53F8","min-width":"160",prop:"companyName","show-overflow-tooltip":""}),e(t,{label:"\u4E0B\u5355\u6570\u91CF",width:"80",prop:"goodNum","show-overflow-tooltip":""},{default:l(o=>[c(g(o.row.qrd?o.row.qrd.goodNum:""),1)]),_:1}),e(t,{label:"\u9500\u552E\u5355\u4EF7",width:"80",prop:"goodPrice","show-overflow-tooltip":""},{default:l(o=>[c(g(o.row.qrd?o.row.qrd.goodPrice:""),1)]),_:1}),e(t,{label:"\u5BF9\u8D26\u72B6\u6001",width:"80",prop:"status","show-overflow-tooltip":""},{default:l(o=>[e(P,null,{default:l(()=>{var n;return[c(g(((n=i(b).find(V=>V.value==o.row.status))==null?void 0:n.label)||"--"),1)]}),_:2},1024)]),_:1}),e(t,{label:"\u4E0B\u5355\u65F6\u95F4",width:"100",prop:"addtime","show-overflow-tooltip":""})]),_:1},8,["data"])),[[R,i(S)]]),J("div",W,[e(T,{currentPage:a.value.page,"onUpdate:currentPage":s[1]||(s[1]=o=>a.value.page=o),pageSize:a.value.size,"onUpdate:pageSize":s[2]||(s[2]=o=>a.value.size=o),layout:"total,prev, pager, next, jumper",total:a.value.total,background:!0,small:!0,onSizeChange:p,onCurrentChange:p},null,8,["currentPage","pageSize","total"]),e(L,{type:"primary",size:"small",onClick:z},{default:l(()=>[c("\u6DFB\u52A0")]),_:1})])],64)}}});var oe=O(X,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/currentcyOrderRecord/components/single.vue"]]);export{oe as default};
