import{_ as j,d as L,w as c,b3 as U,r as p,aC as I,o as E,c as K,l as o,aX as R,H as $,u as d,G as M,C as n,M as m,L as v,bo as O,b as W,F as G,aY as y}from"./index.56c69f5a.js";import{h as H}from"./index.d07aea6b.js";import{t as X}from"./status.2df4810d.js";const Y={class:"flex justify-between w-full mt-[10px]"},J=L({__name:"batch",props:{platformType:{type:String,required:!0},customerNo:{type:null,required:!0},companyNo:{type:String,required:!0}},emits:["list"],setup(C,{emit:_}){const w=C,s=c(""),b=c(null),{run:B,data:i,loading:x}=U({isList:!0,success:a=>l.value.total=a.count}),A={page:1,size:15,total:0,pay_status:"1",status:[0]},N=c([]),l=c({...A});function D(){if(!i.value||i.value.length===0){y.warning("\u81F3\u5C11\u6DFB\u52A0\u4E00\u6761\u901A\u7528\u8BA2\u5355");return}_("list",i.value),i.value=[]}const f=async a=>B(H({size:1e5,orderCode:a,...l.value,platform_type:w.platformType,customerNo:w.customerNo,companyNo:w.companyNo})),g=" ",F=`
`;function S(a=""){if(!a)return"";let e=a;const r=e.includes(g),u=e.includes(F);return r&&(e=e.split(g).join("")),u&&(e=e.split(F).join("")),e}async function T(){const a=S(s.value),e=a.replace(/[，。；、; .]/g,",").replace(/(^,*)|(,*$)/g,""),r=e.split(",");if(e.length===0||r.length===0){y.warning("\u4E0D\u80FD\u89E3\u6790\u7A7A\u6587\u672C"),s.value=a;return}await f(r),s.value=""}return(a,e)=>{const r=p("ElInput"),u=p("ElTableColumn"),z=p("ElTag"),q=p("ElPagination"),P=p("ElButton"),k=I("loading");return E(),K(G,null,[o(r,{rows:4,modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=t=>s.value=t),style:{"margin-bottom":"10px"},placeholder:"\u9500\u552E\u5355\u7F16\u7801(\u5C0F\u4E8E100\u6761)\uFF0C\u7CFB\u7EDF\u652F\u6301\u7684\u5206\u5272\u7B26\u4E3A\u9017\u53F7(,)\u3001\u53E5\u53F7(.)\u3001\u5206\u53F7(;)\u3001\u987F\u53F7(\u3001)\uFF0C\u56DE\u8F66\u540E\u5F00\u59CB\u89E3\u6790\u3002",type:"textarea",onKeydown:R(T,["enter"])},null,8,["modelValue","onKeydown"]),$((E(),M(d(O),{ref_key:"tableRef",ref:b,border:"",size:"small",data:d(i),class:"mt-[10px]",onSelectionChange:e[1]||(e[1]=t=>N.value=t)},{default:n(()=>[o(u,{label:"\u901A\u7528\u8BA2\u5355\u7F16\u53F7","min-width":"160",prop:"tyCode","show-overflow-tooltip":""}),o(u,{label:"\u786E\u8BA4\u5355\u7F16\u53F7","min-width":"160",prop:"orderCode","show-overflow-tooltip":""}),o(u,{label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u53F7","min-width":"160",prop:"cxCode","show-overflow-tooltip":""}),o(u,{label:"\u5546\u54C1\u7F16\u53F7","min-width":"160",prop:"goodNo","show-overflow-tooltip":""}),o(u,{label:"\u5546\u54C1\u540D\u79F0","min-width":"160",prop:"goodName","show-overflow-tooltip":""}),o(u,{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:"100px","show-overflow-tooltip":""}),o(u,{label:"\u4E70\u5165\u65B9\u516C\u53F8","min-width":"160",prop:"customerName","show-overflow-tooltip":""}),o(u,{label:"\u5356\u51FA\u65B9\u516C\u53F8","min-width":"160",prop:"companyName","show-overflow-tooltip":""}),o(u,{label:"\u4E0B\u5355\u6570\u91CF",width:"80",prop:"goodNum","show-overflow-tooltip":""},{default:n(t=>[m(v(t.row.qrd?t.row.qrd.goodNum:""),1)]),_:1}),o(u,{label:"\u9500\u552E\u5355\u4EF7",width:"80",prop:"goodPrice","show-overflow-tooltip":""},{default:n(t=>[m(v(t.row.qrd?t.row.qrd.goodPrice:""),1)]),_:1}),o(u,{label:"\u5BF9\u8D26\u72B6\u6001",width:"80",prop:"status","show-overflow-tooltip":""},{default:n(t=>[o(z,null,{default:n(()=>{var h;return[m(v(((h=d(X).find(V=>V.value==t.row.status))==null?void 0:h.label)||"--"),1)]}),_:2},1024)]),_:1}),o(u,{label:"\u4E0B\u5355\u65F6\u95F4",width:"100",prop:"addtime","show-overflow-tooltip":""})]),_:1},8,["data"])),[[k,d(x)]]),W("div",Y,[o(q,{currentPage:l.value.page,"onUpdate:currentPage":e[2]||(e[2]=t=>l.value.page=t),pageSize:l.value.size,"onUpdate:pageSize":e[3]||(e[3]=t=>l.value.size=t),layout:"total,prev, pager, next, jumper",total:l.value.total,background:!0,small:!0,onSizeChange:f,onCurrentChange:f},null,8,["currentPage","pageSize","total"]),o(P,{type:"primary",size:"small",onClick:D},{default:n(()=>[m("\u6DFB\u52A0")]),_:1})])],64)}}});var oe=j(J,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/currentcyOrderRecord/components/batch.vue"]]);export{oe as default};
