1 |
- import{al as B,aO as y,_ as M,d as U,w as i,X as j,W as L,Z as H,r as d,aC as I,o as _,G as h,C as c,b,l as s,M as w,H as q,u as D,bn as G,c as W,F as X,D as Z,bw as J}from"./index.0bc83371.js";import{c as K}from"./index.b39a4bf1.js";import{c as Q}from"./tootip.d8389d77.js";const Y=[{value:"1",label:"\u91D1\u7A0E\u9000\u7968"},{value:"2",label:"\u7EBF\u4E0B\u9000\u7968"}],$=[{value:"0",label:"\u5F85\u8D22\u52A1\u5BA1\u6838"},{value:"1",label:"\u5F85\u9000\u7968"},{value:"2",label:"\u9000\u7968\u6210\u529F"},{value:"3",label:"\u5BA1\u6838\u9A73\u56DE"},{value:"4",label:"\u9000\u7968\u5931\u8D25"}],ee=[{value:"1",label:"\u9500\u8D27\u9000\u56DE"},{value:"2",label:"\u5F00\u7968\u6709\u8BEF"},{value:"3",label:"\u670D\u52A1\u7EC8\u6B62"},{value:"4",label:"\u9500\u552E\u6298\u8BA9"}],de=[{field:"returnCode",label:"\u9000\u7968\u7F16\u7801"},{field:"status",label:"\u72B6\u6001",render(t){return B(y,{size:"small"},{default:()=>{var u;return((u=$.find(o=>o.value===String(t)))==null?void 0:u.label)||"--"}})}},{field:"apply_name",label:"\u7533\u8BF7\u4EBA",render:(t,{apply_id:u})=>Q(t,"\u7533\u8BF7\u4EBAID : "+u,160)},{field:"addtime",label:"\u7533\u8BF7\u65F6\u95F4"},{field:"invNo",label:"\u5F00\u7968\u7533\u8BF7\u7F16\u7801"},{field:"red_inv",label:"\u7EA2\u51B2\u4FE1\u606F\u8868\u7F16\u7801"},{field:"return_reason",label:"\u7EA2\u51B2\u539F\u56E0",render(t){return B(y,{size:"small"},{default:()=>{var u;return((u=ee.find(o=>o.value===String(t)))==null?void 0:u.label)||"--"}})}},{field:"return_type",label:"\u9000\u7968\u65B9\u5F0F",render(t){return B(y,{size:"small"},{default:()=>{var u;return((u=Y.find(o=>o.value===String(t)))==null?void 0:u.label)||"--"}})}},{field:"reason",label:"\u9000\u7968\u539F\u56E0",span:24},{field:"remark",label:"\u5907\u6CE8",span:24},{field:"eaxm_remark",label:"\u5BA1\u6838\u5907\u6CE8",span:24}],ue=[{label:"\u53D1\u7968\u7533\u8BF7\u7F16\u7801",prop:"invNo",width:150},{label:"\u4E1A\u52A1\u516C\u53F8\u7F16\u7801",prop:"inv_out",width:160},{label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",prop:"inv_company",width:140},{label:"\u53D1\u7968\u53F7\u7801",prop:"inv_code",width:110},{label:"\u53D1\u7968\u4EE3\u7801",prop:"inv_number",width:110},{label:"\u53D1\u7968\u989D\u5EA6",prop:"inv_value",width:110},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u5F00\u7968\u65E5\u671F",width:145,prop:"open_date"},{label:"\u521B\u5EFA\u65F6\u95F4",width:145,prop:"addtime"}];const le={flex:"","mb-2":""},ae={flex:"","flex-1":"",gap:"5",pr:"20px"},te={flex:"",width:"120px"},ne={flex:"","justify-between":"","mt-2":""},oe=U({__name:"capital-modal",emits:["choose"],setup(t,{expose:u,emit:o}){const z=i([]),g=i([]),v=i({invNo:""}),F=i(!1),m=i(!1),E=i(null),S=j(),{currentCompany:x}=L(),l=H({pageSize:15,currentPage:1,total:0});async function f(){const{pageSize:n,currentPage:e}=l;F.value=!0;const{code:C,message:r,data:p}=await K({status:"4",inv_out:x.value.companyNo,size:n,page:e,...v.value});S({code:C,message:r,handler:()=>{l.total=p.count,z.value=p.list}}),F.value=!1}function k(){m.value=!1,o("choose",D(g.value[0]))}function N(n){if(n.length>1){const e=n.pop();E.value.clearSelection(),E.value.toggleRowSelection(e,!0),g.value=[e]}else g.value=[n[0]]}function P(){l.currentPage=1,f()}function A(n=!1){n&&(v.value={invNo:""}),l.currentPage=1,f()}return u({onDisplay:()=>m.value=!0}),(n,e)=>{const C=d("el-input"),r=d("el-button"),p=d("el-table-column"),V=d("el-pagination"),O=d("el-dialog"),T=I("loading");return _(),h(O,{"close-on-click-modal":!1,modelValue:m.value,"onUpdate:modelValue":e[5]||(e[5]=a=>m.value=a),title:"\u53D1\u7968\u5217\u8868",center:"",width:"1040px",onOpen:e[6]||(e[6]=()=>f())},{default:c(()=>[b("div",le,[b("div",ae,[s(C,{placeholder:"\u53D1\u7968\u7533\u8BF7\u7F16\u7801",size:"small",modelValue:v.value.invNo,"onUpdate:modelValue":e[0]||(e[0]=a=>v.value.invNo=a)},null,8,["modelValue"])]),b("div",te,[s(r,{size:"small",type:"primary",onClick:e[1]||(e[1]=()=>A())},{default:c(()=>[w("\u641C\u7D22")]),_:1}),s(r,{size:"small",onClick:e[2]||(e[2]=()=>A(!0))},{default:c(()=>[w("\u91CD\u7F6E")]),_:1})])]),q((_(),h(D(G),{border:"",ref_key:"tableRef",ref:E,data:z.value,size:"small","row-key":"id",onSelectionChange:N,"max-height":"520px"},{default:c(()=>[s(p,{type:"selection",align:"center",width:"40"}),(_(!0),W(X,null,Z(D(ue),(a,R)=>(_(),h(p,J({key:R},a,{"show-overflow-tooltip":""}),null,16))),128))]),_:1},8,["data"])),[[T,F.value]]),b("div",ne,[s(V,{"current-page":l.currentPage,"onUpdate:currentPage":e[3]||(e[3]=a=>l.currentPage=a),"page-size":l.pageSize,"onUpdate:pageSize":e[4]||(e[4]=a=>l.pageSize=a),total:l.total,onCurrentChange:f,onSizeChange:P,layout:"sizes, prev, pager, next","page-sizes":[15,50,100]},null,8,["current-page","page-size","total"]),s(r,{type:"primary",size:"small",onClick:k},{default:c(()=>[w("\u786E\u5B9A")]),_:1})])]),_:1},8,["modelValue"])}}});var ie=M(oe,[["__scopeId","data-v-4f4627ac"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/returnTicket/components/capital-modal.vue"]]),ce=Object.freeze(Object.defineProperty({__proto__:null,default:ie},Symbol.toStringTag,{value:"Module"}));export{ie as C,ce as c,de as i};
|