1 |
- import{af as _,aI as F,_ as H,d as W,bn as $,F as h,ad as q,aY as g,B as Y,y as d,o as r,O as i,L as a,z as f,u as t,T as v,V as m,Z as y}from"./index.40211ca7.js";import{b as Z,a as G,h as J}from"./index.73a5e647.js";import{a as K}from"./inv-open.fde8bb4b.js";import{i as Q,f as X,g as ee}from"./status.25ea5e43.js";import{s as w}from"./search.config.36a29aca.js";import{u as ue}from"./use-page-search.c73f758c.js";import oe from"./post-modal.0c9fab87.js";import te from"./index.73059286.js";import{h as ne}from"./export.dbd78c0d.js";import{u as B,w as le}from"./xlsx.ed122d16.js";import"./tootip.6a2c1433.js";import"./execl-upload.8f23c39b.js";const ae=[{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:l})=>_(F,null,{default:()=>{var e;return((e=K.find(u=>u.value==l.status+""))==null?void 0:e.label)||"--"}})},{label:"\u53D1\u7968\u7C7B\u578B",prop:"status",minWidth:160,cellRenderer:({row:l})=>_(F,null,{default:()=>{var e;return((e=Q.find(u=>u.value==l.inv_type+""))==null?void 0:e.label)||"--"}})},{label:"\u53D1\u7968\u53F7\u7801",prop:"inv_number",width:130},{label:"\u53D1\u7968\u4EE3\u7801",prop:"inv_code",width:100},{label:"\u8D2D\u4E70\u65B9\u62AC\u5934\u72B6\u6001",prop:"seller_check",width:130,cellRenderer:({row:l})=>_(F,null,{default:()=>{var e;return((e=X.find(u=>u.value==l.seller_check+""))==null?void 0:e.label)||"--"}})},{label:"\u9500\u552E\u65B9\u62AC\u5934\u72B6\u6001",prop:"buyer_check",width:130,cellRenderer:({row:l})=>_(F,null,{default:()=>{var e;return((e=ee.find(u=>u.value==l.buyer_check+""))==null?void 0:e.label)||"--"}})},{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:ae,superUserNoAction:!0,companyProp:"inv_out",apis:{httpList:Z,httpAdd:!0}},re={\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"},ie=y("\u5F00\u7968\u4FE1\u606F\u5BFC\u51FA"),ce=y("\u4E0B\u8F7D\u53D1\u7968\u4FE1\u606F\u5BFC\u5165\u6A21\u677F"),pe=y("\u6279\u91CF\u5BFC\u5165\u8D22\u52A1\u5F00\u7968\u7ED3\u679C\uFF08\u53D1\u7968\u7533\u8BF7\uFF09"),de=W({__name:"index",setup(l){const e="invoiceApply",{hasPermissionWithCode:u}=$(e),C="/InvoiceSales/invoiceApplyDetail",D=h(null),E=h(null),{isSuperUser:k}=q(),c=h(null),{run:x}=g({success:()=>c.value.onSearch()}),{run:S}=g({success:()=>c.value.onSearch()}),P=({invNo:n})=>S(G({invNo:n,status:"7"})),{push:A}=Y(),R=h([]),T={pageSearchHook:()=>ue(void 0,void 0,w)};function N(n){x(J(n))}const U={content:{preview:({invNo:n})=>A(`${C}?id=${n}`),create:()=>A(C)}};async function I(){await ne({url:"/ipe",name:"\u5F00\u7968\u4FE1\u606F",params:{...c.value.getBasicParams()}})}function V(){const n=B.book_new(),o=B.json_to_sheet([re]);B.book_append_sheet(n,o,"sheet"),le(n,"\u5F00\u7968\u6A21\u677F.xlsx",{bookType:"xlsx"})}return(n,o)=>{const p=d("ElButton"),z=d("ElTooltip"),O=d("ElPopconfirm"),L=d("PageContainer"),M=d("PageAuth");return r(),i(M,{pageName:e},{default:a(()=>[f(L,{hooks:T,events:U,contentConfig:t(se),"search-config":t(w),"get-content-ref":s=>c.value=s,onContentSelectChange:o[3]||(o[3]=s=>R.value=s)},{content_header:a(()=>[t(u)("026")?(r(),i(p,{key:0,icon:t(v)("arrow-up-line"),size:"small",onClick:o[0]||(o[0]=()=>I())},{default:a(()=>[ie]),_:1},8,["icon"])):m("v-if",!0),t(u)("027")?(r(),i(p,{key:1,icon:t(v)("arrow-down-line"),size:"small",onClick:o[1]||(o[1]=()=>V())},{default:a(()=>[ce]),_:1},8,["icon"])):m("v-if",!0),!t(k)&&t(u)("028")?(r(),i(p,{key:2,onClick:o[2]||(o[2]=()=>E.value.onDisplay()),size:"small"},{default:a(()=>[pe]),_:1})):m("v-if",!0)]),content_action:a(({status:s,post_code:j,invNo:b})=>[!t(k)&&String(s)==="3"&&!j?(r(),i(z,{key:0,content:"\u586B\u5199\u7269\u6D41",placement:"top"},{default:a(()=>[f(p,{text:"",type:"primary",style:{"margin-left":"0px"},icon:t(v)("promotion"),onClick:()=>D.value.onDisplay(b)},null,8,["icon","onClick"])]),_:2},1024)):m("v-if",!0),(String(s)==="1"||String(s)==="5")&&t(u)("010")?(r(),i(O,{key:1,placement:"top",title:"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u5F00\u7968\u7533\u8BF7?","on-confirm":()=>P({invNo:b})},{reference:a(()=>[f(p,{text:"",type:"primary",style:{"margin-left":"0px"},icon:t(v)("refresh-right")},null,8,["icon"])]),_:2},1032,["on-confirm"])):m("v-if",!0)]),_:1},8,["contentConfig","search-config","get-content-ref"]),f(oe,{ref_key:"postModalRef",ref:D,onPostSave:N},null,512),f(te,{ref_key:"execlUploadRef",ref:E,onOnSuccess:o[4]||(o[4]=()=>c.value.onSearch())},null,512)]),_:1})}}});var Ae=H(de,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/invoiceApply/index.vue"]]);export{Ae as default};
|