1 |
- import{ah as F,aK as _,_ as $,d as j,bn as q,F as h,ag as K,aY as g,B as Y,y as d,o as s,O as i,L as a,z as f,u as o,T as v,V as m,Z as B}from"./index.78cddaf4.js";import{b as Z,a as G,h as J}from"./index.bbc31f85.js";import{a as x}from"./inv-open.36ce2138.js";import{i as Q,f as X,g as ee}from"./status.25ea5e43.js";import{u as ue}from"./use-page-search.5f4967b2.js";import te from"./post-modal.242c9c70.js";import oe from"./index.6a775753.js";import{h as ne}from"./export.3e55a498.js";import{u as y,w as le}from"./xlsx.ed122d16.js";import"./tootip.eee0d23c.js";import"./execl-upload.ff995411.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=x.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"}],re={title:"\u53D1\u7968\u7533\u8BF7\u7BA1\u7406",columns:ae,superUserNoAction:!0,companyProp:"inv_out",apis:{httpList:Z,httpAdd:!0}},w={colLayout:{span:8},formItems:[{field:"invNo",type:"input",placeholder:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7"},{field:"buyer_name",type:"input",placeholder:"\u5BA2\u6237\u540D\u79F0"},{field:"apply_name",type:"input",placeholder:"\u7533\u8BF7\u4EBA"},{field:"status",type:"select",placeholder:"\u72B6\u6001",span:4,options:x},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u7533\u8BF7\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7533\u8BF7\u7ED3\u675F\u65F6\u95F4"}}]},se={\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=B("\u5F00\u7968\u4FE1\u606F\u5BFC\u51FA"),pe=B("\u4E0B\u8F7D\u53D1\u7968\u4FE1\u606F\u5BFC\u5165\u6A21\u677F"),ce=B("\u6279\u91CF\u5BFC\u5165\u8D22\u52A1\u5F00\u7968\u7ED3\u679C\uFF08\u53D1\u7968\u7533\u8BF7\uFF09"),de=j({__name:"index",setup(l){const e="invoiceApply",{hasPermissionWithCode:u}=q(e),D="/InvoiceSales/invoiceApplyDetail",E=h(null),C=h(null),{isSuperUser:k}=K(),p=h(null),{run:P}=g({success:()=>p.value.onSearch()}),{run:S}=g({success:()=>p.value.onSearch()}),R=({invNo:n})=>S(G({invNo:n,status:"7"})),{push:A}=Y(),N=h([]),T={pageSearchHook:()=>ue(void 0,void 0,w)};function I(n){P(J(n))}const U={content:{preview:({invNo:n})=>A(`${D}?id=${n}`),create:()=>A(D)}};async function V(){await ne({url:"/ipe",name:"\u5F00\u7968\u4FE1\u606F",params:{...p.value.getBasicParams()}})}function O(){const n=y.book_new(),t=y.json_to_sheet([se]);y.book_append_sheet(n,t,"sheet"),le(n,"\u5F00\u7968\u6A21\u677F.xlsx",{bookType:"xlsx"})}return(n,t)=>{const c=d("ElButton"),z=d("ElTooltip"),L=d("ElPopconfirm"),M=d("PageContainer"),H=d("PageAuth");return s(),i(H,{pageName:e},{default:a(()=>[f(M,{hooks:T,events:U,contentConfig:o(re),"search-config":o(w),"get-content-ref":r=>p.value=r,onContentSelectChange:t[3]||(t[3]=r=>N.value=r)},{content_header:a(()=>[o(u)("026")?(s(),i(c,{key:0,icon:o(v)("arrow-up-line"),size:"small",onClick:t[0]||(t[0]=()=>V())},{default:a(()=>[ie]),_:1},8,["icon"])):m("v-if",!0),o(u)("027")?(s(),i(c,{key:1,icon:o(v)("arrow-down-line"),size:"small",onClick:t[1]||(t[1]=()=>O())},{default:a(()=>[pe]),_:1},8,["icon"])):m("v-if",!0),!o(k)&&o(u)("028")?(s(),i(c,{key:2,onClick:t[2]||(t[2]=()=>C.value.onDisplay()),size:"small"},{default:a(()=>[ce]),_:1})):m("v-if",!0)]),content_action:a(({status:r,post_code:W,invNo:b})=>[!o(k)&&String(r)==="3"&&!W?(s(),i(z,{key:0,content:"\u586B\u5199\u7269\u6D41",placement:"top"},{default:a(()=>[f(c,{text:"",type:"primary",style:{"margin-left":"0px"},icon:o(v)("promotion"),onClick:()=>E.value.onDisplay(b)},null,8,["icon","onClick"])]),_:2},1024)):m("v-if",!0),(String(r)==="1"||String(r)==="5")&&o(u)("010")?(s(),i(L,{key:1,placement:"top",title:"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u5F00\u7968\u7533\u8BF7?","on-confirm":()=>R({invNo:b})},{reference:a(()=>[f(c,{text:"",type:"primary",style:{"margin-left":"0px"},icon:o(v)("refresh-right")},null,8,["icon"])]),_:2},1032,["on-confirm"])):m("v-if",!0)]),_:1},8,["contentConfig","search-config","get-content-ref"]),f(te,{ref_key:"postModalRef",ref:E,onPostSave:I},null,512),f(oe,{ref_key:"execlUploadRef",ref:C,onOnSuccess:t[4]||(t[4]=()=>p.value.onSearch())},null,512)]),_:1})}}});var ke=$(de,[["__file","D:/work/accout-vue3-ui/src/views/InvoiceSales/invoiceApply/index.vue"]]);export{ke as default};
|