12 |
- import{_ as P,d as $,w as c,b3 as z,r as w,aC as I,o as b,c as K,j as e,aX as R,H as M,l as m,G as O,C as a,M as s,L as d,bo as U,h as W,F as G,aY as y}from"./index.js";import{h as H}from"./index.e26e2d11.js";import{t as X}from"./status.2df4810d.js";const Y={class:"flex justify-end w-full mt-[10px]"},J=$({__name:"batch",props:{platformType:{type:String,required:!0},customerNo:{type:null,required:!0},companyNo:{type:String,required:!0}},emits:["list"],setup(B,{emit:g}){const f=B,n=c(""),C=c(null),{run:x,data:i,loading:D}=z({isList:!0,success:l=>E.value.total=l.count}),A={page:1,size:100,total:0,pay_status:"",status:[0]},N=c([]),E=c({...A});function q(){if(!i.value||i.value.length===0){y.warning("\u81F3\u5C11\u6DFB\u52A0\u4E00\u6761\u901A\u7528\u8BA2\u5355");return}g("list",i.value),i.value=[]}const T=async l=>x(H({orderCode:l,...E.value,platform_type:f.platformType,customerNo:f.customerNo,companyNo:f.companyNo})),v=" ",F=`
- `;function S(l=""){if(!l)return"";let u=l;const r=u.includes(v),o=u.includes(F);return r&&(u=u.split(v).join("")),o&&(u=u.split(F).join("")),u}async function k(){const l=S(n.value),u=l.replace(/[,。;、; .]/g,",").replace(/(^,*)|(,*$)/g,""),r=u.split(",");if(u.length===0||r.length===0){y.warning("\u4E0D\u80FD\u89E3\u6790\u7A7A\u6587\u672C"),n.value=l;return}await T(r),n.value=""}const V=[{value:"1",label:"\u672A\u56DE\u6B3E"},{value:"2",label:"\u90E8\u5206\u56DE\u6B3E"},{value:"3",label:"\u5DF2\u56DE\u6B3E"}];return(l,u)=>{const r=w("ElInput"),o=w("ElTableColumn"),_=w("ElTag"),j=w("ElButton"),L=I("loading");return b(),K(G,null,[e(r,{rows:4,modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=t=>n.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(k,["enter"])},null,8,["modelValue","onKeydown"]),M((b(),O(m(U),{ref_key:"tableRef",ref:C,border:"",size:"small",data:m(i),class:"mt-[10px]",onSelectionChange:u[1]||(u[1]=t=>N.value=t),"max-height":"500px"},{default:a(()=>[e(o,{label:"\u901A\u7528\u8BA2\u5355\u7F16\u53F7","min-width":"160",prop:"tyCode","show-overflow-tooltip":""}),e(o,{label:"\u786E\u8BA4\u5355\u7F16\u53F7","min-width":"160",prop:"orderCode","show-overflow-tooltip":""}),e(o,{label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u53F7","min-width":"160",prop:"cxCode","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u7F16\u53F7","min-width":"160",prop:"goodNo","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u540D\u79F0","min-width":"160",prop:"goodName","show-overflow-tooltip":""}),e(o,{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:"100px","show-overflow-tooltip":""}),e(o,{label:"\u4E70\u5165\u65B9\u516C\u53F8","min-width":"160",prop:"customerName","show-overflow-tooltip":""}),e(o,{label:"\u5356\u51FA\u65B9\u516C\u53F8","min-width":"160",prop:"companyName","show-overflow-tooltip":""}),e(o,{label:"\u4E0B\u5355\u6570\u91CF",width:"80",prop:"goodNum","show-overflow-tooltip":""},{default:a(t=>[s(d(t.row.qrd?t.row.qrd.goodNum:""),1)]),_:1}),e(o,{label:"\u9500\u552E\u5355\u4EF7",width:"80",prop:"goodPrice","show-overflow-tooltip":""},{default:a(t=>[s(d(t.row.qrd?t.row.qrd.goodPrice:""),1)]),_:1}),e(o,{label:"\u5173\u8054\u5DF2\u56DE\u6B3E\u72B6\u6001",width:"110",prop:"pay_status","show-overflow-tooltip":""},{default:a(t=>[e(_,null,{default:a(()=>{var p;return[s(d(((p=V.find(h=>h.value==t.row.qrd.pay_status))==null?void 0:p.label)||"--"),1)]}),_:2},1024)]),_:1}),e(o,{label:"\u5BF9\u8D26\u72B6\u6001",width:"80",prop:"status","show-overflow-tooltip":""},{default:a(t=>[e(_,null,{default:a(()=>{var p;return[s(d(((p=m(X).find(h=>h.value==t.row.status))==null?void 0:p.label)||"--"),1)]}),_:2},1024)]),_:1}),e(o,{label:"\u7A0E\u7387",width:"80",prop:"goodPrice","show-overflow-tooltip":""},{default:a(t=>[s(d(t.row.qrd?`${t.row.qrd.tax}%`:""),1)]),_:1}),e(o,{label:"\u4E0B\u5355\u65F6\u95F4",width:"100",prop:"addtime","show-overflow-tooltip":""})]),_:1},8,["data"])),[[L,m(D)]]),W("div",Y,[e(j,{type:"primary",size:"small",onClick:q},{default:a(()=>[s("\u6DFB\u52A0")]),_:1})])],64)}}});var oe=P(J,[["__file","C:/Users/63107/Desktop/projects/settle-vue3/src/views/InvoiceSales/currentcyOrderRecord/components/batch.vue"]]);export{oe as default};
|