index.540494c8.js 4.7 KB

1
  1. import{af as g,aI as k,_ as H,d as W,bn as $,F,ad as q,aY as w,B as Y,y as c,o as l,O as i,L as s,z as m,u,T as _,V as f,Z as h}from"./index.340e35db.js";import{b as Z,a as G,h as J}from"./index.ad569c66.js";import{I as K}from"./inv-open.8d1922c8.js";import{i as Q}from"./status.36e06c63.js";import{s as b}from"./search.config.ba546861.js";import{u as X}from"./use-page-search.f08e511e.js";import ee from"./post-modal.ee2edcf1.js";import ue from"./index.1d9565ac.js";import{h as oe}from"./export.b71812e2.js";import{u as v,w as te}from"./xlsx.ed122d16.js";import"./tootip.219bbe54.js";import"./execl-upload.67cf1be3.js";const ne=[{label:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7",prop:"invNo",width:155},{label:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u53F7",prop:"inv_out",width:155},{label:"\u5BA2\u6237\u516C\u53F8\u540D\u79F0",prop:"buyer_title",width:175},{label:"\u7533\u8BF7\u989D\u5EA6",prop:"inv_value",width:110},{label:"\u72B6\u6001",prop:"status",width:125,cellRenderer:({row:d})=>g(k,null,{default:()=>{var t;return((t=K.find(n=>n.value==d.status+""))==null?void 0:t.label)||"--"}})},{label:"\u53D1\u7968\u7C7B\u578B",prop:"status",minWidth:160,cellRenderer:({row:d})=>g(k,null,{default:()=>{var t;return((t=Q.find(n=>n.value==d.inv_type+""))==null?void 0:t.label)||"--"}})},{label:"\u53D1\u7968\u53F7\u7801",prop:"inv_number",width:130},{label:"\u53D1\u7968\u4EE3\u7801",prop:"inv_code",width:100},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",width:140,prop:"addtime"},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],se={title:"\u53D1\u7968\u7533\u8BF7\u7BA1\u7406",columns:ne,superUserNoAction:!0,companyProp:"inv_out",apis:{httpList:Z,httpAdd:!0}},ae={\u53D1\u7968\u7533\u8BF7\u7F16\u53F7:"INV20210712w0vHkk",\u53D1\u7968\u7C7B\u578B:"\u589E\u503C\u7A0E\u7535\u5B50\u666E\u901A\u53D1\u7968",\u53D1\u7968\u4EE3\u7801:"011002000711",\u53D1\u7968\u53F7\u7801:"51678540",\u53D1\u7968\u91D1\u989D:"4900",\u53D1\u7968\u7A0E\u540E\u91D1\u989D:"",\u6821\u9A8C\u7801:"",\u5F00\u7968\u65E5\u671F:"2020/12/17 0:00:00"},le=h("\u5F00\u7968\u4FE1\u606F\u5BFC\u51FA"),ie=h("\u4E0B\u8F7D\u53D1\u7968\u4FE1\u606F\u5BFC\u5165\u6A21\u677F"),re=h("\u6279\u91CF\u5BFC\u5165\u8D22\u52A1\u5F00\u7968\u7ED3\u679C\uFF08\u53D1\u7968\u7533\u8BF7\uFF09"),pe=W({__name:"index",setup(d){const t="invoiceApply",{hasPermissionWithCode:n}=$(t),C="/InvoiceSales/invoiceApplyDetail",D=F(null),E=F(null),{isSuperUser:B}=q(),r=F(null),{run:x}=w({success:()=>r.value.onSearch()}),{run:S}=w({success:()=>r.value.onSearch()}),P=({invNo:o})=>S(G({invNo:o,status:"7"})),{push:y}=Y(),T=F([]),I={pageSearchHook:()=>X(void 0,void 0,b)};function N(o){x(J(o))}const R={content:{preview:({invNo:o})=>y(`${C}?id=${o}`),create:()=>y(C)}};async function U(){await oe({url:"/ipe",name:"\u5F00\u7968\u4FE1\u606F",params:{...r.value.getBasicParams()}})}function V(){const o=v.book_new(),e=v.json_to_sheet([ae]);v.book_append_sheet(o,e,"sheet"),te(o,"\u5F00\u7968\u6A21\u677F.xlsx",{bookType:"xlsx"})}return(o,e)=>{const p=c("ElButton"),z=c("ElTooltip"),O=c("ElPopconfirm"),L=c("PageContainer"),M=c("PageAuth");return l(),i(M,{pageName:t},{default:s(()=>[m(L,{hooks:I,events:R,contentConfig:u(se),"search-config":u(b),"get-content-ref":a=>r.value=a,onContentSelectChange:e[3]||(e[3]=a=>T.value=a)},{content_header:s(()=>[u(n)("026")?(l(),i(p,{key:0,icon:u(_)("arrow-up-line"),size:"small",onClick:e[0]||(e[0]=()=>U())},{default:s(()=>[le]),_:1},8,["icon"])):f("v-if",!0),u(n)("027")?(l(),i(p,{key:1,icon:u(_)("arrow-down-line"),size:"small",onClick:e[1]||(e[1]=()=>V())},{default:s(()=>[ie]),_:1},8,["icon"])):f("v-if",!0),!u(B)&&u(n)("028")?(l(),i(p,{key:2,onClick:e[2]||(e[2]=()=>E.value.onDisplay()),size:"small"},{default:s(()=>[re]),_:1})):f("v-if",!0)]),content_action:s(({status:a,post_code:j,invNo:A})=>[!u(B)&&String(a)==="3"&&!j?(l(),i(z,{key:0,content:"\u586B\u5199\u7269\u6D41",placement:"top"},{default:s(()=>[m(p,{text:"",type:"primary",style:{"margin-left":"0px"},icon:u(_)("promotion"),onClick:()=>D.value.onDisplay(A)},null,8,["icon","onClick"])]),_:2},1024)):f("v-if",!0),(String(a)==="1"||String(a)==="5")&&u(n)("010")?(l(),i(O,{key:1,placement:"top",title:"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u5F00\u7968\u7533\u8BF7?","on-confirm":()=>P({invNo:A})},{reference:s(()=>[m(p,{text:"",type:"primary",style:{"margin-left":"0px"},icon:u(_)("refresh-right")},null,8,["icon"])]),_:2},1032,["on-confirm"])):f("v-if",!0)]),_:1},8,["contentConfig","search-config","get-content-ref"]),m(ee,{ref_key:"postModalRef",ref:D,onPostSave:N},null,512),m(ue,{ref_key:"execlUploadRef",ref:E,onOnSuccess:e[4]||(e[4]=()=>r.value.onSearch())},null,512)]),_:1})}}});var ye=H(pe,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/invoiceApply/index.vue"]]);export{ye as default};