1 |
- import{aj as m,aF as b,_ as R,d as j,E as i,a6 as M,a5 as U,a7 as I,x as d,aA as H,o as g,N as y,K as c,b as F,y as s,O as q,u as h,b5 as K,c as W,M as G,L as J,W as A,b4 as Q}from"./index.1417328f.js";import{c as X}from"./index.cc00443d.js";import{c as Y}from"./tootip.8c37fa8a.js";import{i as Z}from"./status.727086c1.js";const $=[{value:"1",label:"\u91D1\u7A0E\u9000\u7968"},{value:"2",label:"\u7EBF\u4E0B\u9000\u7968"}],ee=[{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"}],ue=[{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"}],me=[{field:"returnCode",label:"\u9000\u7968\u7F16\u53F7"},{field:"status",label:"\u72B6\u6001",render(l){return m(b,{size:"small"},{default:()=>{var u;return((u=ee.find(a=>a.value===String(l)))==null?void 0:u.label)||"--"}})}},{field:"apply_name",label:"\u7533\u8BF7\u4EBA",render:(l,{apply_id:u})=>Y(l,"\u7533\u8BF7\u4EBAID : "+u,160)},{field:"addtime",label:"\u7533\u8BF7\u65F6\u95F4"},{field:"invNo",label:"\u5F00\u7968\u7533\u8BF7\u7F16\u53F7"},{field:"red_inv",label:"\u7EA2\u51B2\u4FE1\u606F\u8868\u7F16\u53F7"},{field:"return_reason",label:"\u7EA2\u51B2\u539F\u56E0",render(l){return m(b,{size:"small"},{default:()=>{var u;return((u=ue.find(a=>a.value===String(l)))==null?void 0:u.label)||"--"}})}},{field:"return_type",label:"\u9000\u7968\u65B9\u5F0F",render(l){return m(b,{size:"small"},{default:()=>{var u;return((u=$.find(a=>a.value===String(l)))==null?void 0:u.label)||"--"}})}},{field:"inv_type",label:"\u9000\u7968\u53D1\u7968\u7C7B\u578B",span:8,render(l){return m(b,{size:"small"},{default:()=>{var u;return((u=Z.find(a=>a.value===String(l)))==null?void 0:u.label)||"--"}})}},{field:"inv_number",label:"\u9000\u7968\u53D1\u7968\u53F7\u7801",span:8},{field:"inv_code",label:"\u9000\u7968\u53D1\u7968\u4EE3\u7801",span:8},{field:"check_code",label:"\u9000\u7968\u53D1\u7968\u6821\u9A8C\u7801",span:8},{field:"inv_subtotal",label:"\u9000\u7968\u53D1\u7968\u7A0E\u524D\u91D1\u989D",span:8},{field:"inv_value",label:"\u9000\u7968\u53D1\u7968\u4EF7\u7A0E\u5408\u8BA1",span:8},{field:"check_remark",span:24,label:"\u53D1\u7968\u9A8C\u8BC1\u5931\u8D25\u539F\u56E0"},{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}],le=[{label:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7",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 ae={flex:"","mb-2":""},te={flex:"","flex-1":"",gap:"5",pr:"20px"},ne={flex:"",width:"120px"},oe=A("\u641C\u7D22"),ie=A("\u91CD\u7F6E"),se={flex:"","justify-between":"","mt-2":""},re=A("\u786E\u5B9A"),pe=j({__name:"capital-modal",emits:["choose"],setup(l,{expose:u,emit:a}){const z=i([]),E=i([]),v=i({invNo:""}),D=i(!1),_=i(!1),B=i(null),x=M(),{currentCompany:S}=U(),t=I({pageSize:15,currentPage:1,total:0});async function f(){const{pageSize:o,currentPage:e}=t;D.value=!0;const{code:C,message:r,data:p}=await X({status:"4",inv_out:S.value.companyNo,size:o,page:e,...v.value});x({code:C,message:r,handler:()=>{t.total=p.count,z.value=p.list}}),D.value=!1}function k(){_.value=!1,a("choose",h(E.value[0]))}function N(o){if(o.length>1){const e=o.pop();B.value.clearSelection(),B.value.toggleRowSelection(e,!0),E.value=[e]}else E.value=[o[0]]}function P(){t.currentPage=1,f()}function w(o=!1){o&&(v.value={invNo:""}),t.currentPage=1,f()}return u({onDisplay:()=>_.value=!0}),(o,e)=>{const C=d("el-input"),r=d("el-button"),p=d("el-table-column"),V=d("el-pagination"),O=d("el-dialog"),T=H("loading");return g(),y(O,{modelValue:_.value,"onUpdate:modelValue":e[5]||(e[5]=n=>_.value=n),title:"\u53D1\u7968\u5217\u8868",center:"",width:"1040px",onOpen:e[6]||(e[6]=()=>f())},{default:c(()=>[F("div",ae,[F("div",te,[s(C,{placeholder:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7",size:"small",modelValue:v.value.invNo,"onUpdate:modelValue":e[0]||(e[0]=n=>v.value.invNo=n)},null,8,["modelValue"])]),F("div",ne,[s(r,{size:"small",type:"primary",onClick:e[1]||(e[1]=()=>w())},{default:c(()=>[oe]),_:1}),s(r,{size:"small",onClick:e[2]||(e[2]=()=>w(!0))},{default:c(()=>[ie]),_:1})])]),q((g(),y(h(K),{border:"",ref_key:"tableRef",ref:B,data:z.value,size:"small","row-key":"id",onSelectionChange:N,"max-height":"520px"},{default:c(()=>[s(p,{type:"selection",width:"55"}),(g(!0),W(J,null,G(h(le),(n,L)=>(g(),y(p,Q({key:L},n,{"show-overflow-tooltip":""}),null,16))),128))]),_:1},8,["data"])),[[T,D.value]]),F("div",se,[s(V,{"current-page":t.currentPage,"onUpdate:current-page":e[3]||(e[3]=n=>t.currentPage=n),"page-size":t.pageSize,"onUpdate:page-size":e[4]||(e[4]=n=>t.pageSize=n),total:t.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(()=>[re]),_:1})])]),_:1},8,["modelValue"])}}});var de=R(pe,[["__scopeId","data-v-4f4627ac"],["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/InvoiceSales/returnTicket/components/capital-modal.vue"]]),be=Object.freeze(Object.defineProperty({__proto__:null,default:de},Symbol.toStringTag,{value:"Module"}));export{de as C,be as c,me as i};
|