1 |
- import{aj as a,aF as i,aG as M,ah as w,_ as I,d as O,E as c,aZ as j,ai as H,A as L,a5 as V,x as m,o as d,N as F,K as r,y,u as o,R as _,a as v,W as A}from"./index.1417328f.js";import{a as q,h as W}from"./index.28d5e629.js";import{s as D,i as N,c as P}from"./_opitons.2a65e7c0.js";import{e as $,f as G,i as K}from"./status.727086c1.js";import{u as Z}from"./use-page-search.7e7b4728.js";import J from"./invoice-modal.8491135f.js";import{h as Q}from"./export.0c2421ad.js";import X from"./index.04acc5a4.js";import"./index.68c806ba.js";import"./invoice.d2c04353.js";import"./xlsx.ed122d16.js";import"./execl-upload.2ed330c3.js";const ee=[{type:"selection",width:55,hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u5BF9\u8D26\u56DE\u7968\u7533\u8BF7",prop:"hpNo",width:180},{label:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",width:180},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u5356\u65B9\u516C\u53F8\u7F16\u53F7",prop:"supplierNo",width:145},{label:"\u5356\u65B9\u516C\u53F8\u540D\u79F0",prop:"supplierName",width:145},{label:"\u53D1\u7968\u7A0E\u524D\u91D1\u989D",width:"110px",prop:"inv_subtotal_amount"},{label:"\u53D1\u7968\u7A0E\u540E\u91D1\u989D",width:"110px",prop:"total"},{label:"\u4E70\u65B9\u516C\u53F8\u7F16\u53F7",prop:"companyNo",width:145},{label:"\u4E70\u65B9\u516C\u53F8\u540D\u79F0",prop:"companyName",width:145},{label:"\u72B6\u6001",prop:"status",width:160,transform:e=>{var u;return(u=D.find(t=>String(e)===String(t.value)))==null?void 0:u.label},cellRenderer:({row:e,props:u})=>a(i,{size:u.size},{default:()=>{var t;return(t=D.find(l=>String(e.status)===String(l.value)))==null?void 0:t.label}})},{label:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",prop:"invType",width:120,cellRenderer:({row:e,props:u})=>a(i,{size:u.size},{default:()=>{var t;return(t=N.find(l=>String(e.invType)===String(l.value)))==null?void 0:t.label}})},{label:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",width:120,cellRenderer:({row:e,props:u})=>a(i,{size:u.size},{default:()=>{var t;return(t=P.find(l=>String(e.checkApi)===l.value))==null?void 0:t.label}})},{label:"\u53D1\u7968\u56FE\u7247",prop:"inv_img",width:85,cellRenderer:({row:e})=>a(M,{src:e.inv_img,style:{height:"20px"},previewSrcList:[e.inv_img],previewTeleported:!0})},{label:"\u8D2D\u4E70\u65B9\u62AC\u5934\u72B6\u6001",prop:"seller_check",width:130,cellRenderer:({row:e})=>a(i,null,{default:()=>{var u;return((u=$.find(t=>t.value==e.seller_check+""))==null?void 0:u.label)||"--"}})},{label:"\u9500\u552E\u65B9\u62AC\u5934\u72B6\u6001",prop:"buyer_check",width:130,cellRenderer:({row:e})=>a(i,null,{default:()=>{var u;return((u=G.find(t=>t.value==e.buyer_check+""))==null?void 0:u.label)||"--"}})},{label:"\u53D1\u7968\u53F7\u7801",width:110,prop:"invoiceNumber"},{label:"\u53D1\u7968\u4EE3\u7801",width:110,prop:"invoiceCode"},{label:"\u5F00\u7968\u65E5\u671F",prop:"open_time",width:120,formatter:({open_time:e})=>e?w(e).format("YYYY-MM-DD"):""},{label:"\u53D1\u7968\u72B6\u6001",width:110,prop:"invStatus_cn"},{label:"\u53D1\u7968\u7C7B\u578B",width:110,cellRenderer({row:e}){return a(i,null,{default:()=>{var u;return((u=K.find(({value:t})=>t===e.invoiceType))==null?void 0:u.label)||"--"}})}},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:180,formatter:({addtime:e})=>w(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],ue={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:ee,apis:{httpList:q,httpDelete:W,httpAdd:!0},deleteProp:"hpNo",superUserNoAction:!0,delTooltip:"\u662F\u5426\u64A4\u56DE\u91C7\u8D2D\u56DE\u7968\u7533\u8BF7",companyProp:"supplierNo",showDelete:({status:e})=>Number(e)!==6},k={formItems:[{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:D},{field:"companyNo",type:"business-query"},{field:"invType",type:"select",placeholder:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",options:N},{field:"checkApi",type:"select",placeholder:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",options:P},{field:"payNo",type:"input",placeholder:"\u5BF9\u8D26\u7F16\u53F7"},{field:"hpNo",type:"input",placeholder:"\u5BF9\u8D26\u56DE\u7968\u7533\u8BF7\u7F16\u53F7"},{field:"apply_name",type:"input",placeholder:"\u7533\u8BF7\u4EBA"},{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u65B0\u5EFA\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u65B0\u5EFA\u7ED3\u675F\u65F6\u95F4"}},{field:"open_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"open_start",endProp:"open_end",startPlaceholder:"\u5F00\u7968\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u5F00\u7968\u7ED3\u675F\u65F6\u95F4"}}]};const te=A("\u5BFC\u51FA\u5BF9\u8D26\u5F00\u7968\u6570\u636E"),oe=A("\u6279\u91CF\u521B\u5EFA\u5F00\u7968\u6570\u636E"),le=O({__name:"index",setup(e){const u="supplyTicketReturn",t="/supply/supplyTicketReturnDetail",l=["4","10"],p=c(!1),{hasPermissionWithCode:B}=j(u),{isSuperUser:x}=H(),{push:E}=L(),g=c(null),b=c(null),f=c(null),{currentCompany:R}=V(),S={pageSearchHook:()=>Z(void 0,void 0,k)},T={content:{preview:({hpNo:C})=>E(`${t}?id=${C}`),create:()=>E(t)}};async function z(){await Q({url:"ile",name:"\u5F00\u7968\u6570\u636E\u8868",onStart:()=>p.value=!0,onSuccess:()=>p.value=!1,onFail:()=>p.value=!1,params:{supplierNo:R.value.companyNo,...f.value.getBasicParams()}})}return(C,n)=>{const h=m("ElButton"),U=m("PageContainer"),Y=m("PageAuth");return d(),F(Y,{pageName:u},{default:r(()=>[y(U,{hooks:S,events:T,contentConfig:o(ue),"search-config":o(k),"get-content-ref":s=>f.value=s},{content_header:r(()=>[o(B)("032")?(d(),F(h,{key:0,size:"small",icon:o(_)("arrow-down-line"),loading:p.value,onClick:n[0]||(n[0]=()=>z())},{default:r(()=>[te]),_:1},8,["icon","loading"])):v("v-if",!0),o(B)("033")&&!o(x)?(d(),F(h,{key:1,size:"small",icon:o(_)("arrow-up-line"),onClick:n[1]||(n[1]=()=>b.value.onDisplay())},{default:r(()=>[oe]),_:1},8,["icon"])):v("v-if",!0)]),content_action:r(s=>[l.includes(String(s.status))?(d(),F(h,{key:0,link:"",type:"primary",icon:o(_)("scaletooriginal"),onClick:()=>g.value.onDisplay(s)},null,8,["icon","onClick"])):v("v-if",!0)]),_:1},8,["contentConfig","search-config","get-content-ref"]),y(J,{ref_key:"invoiceModalRef",ref:g},null,512),y(X,{ref_key:"execelUploadRef",ref:b,onOnSuccess:n[2]||(n[2]=()=>f.value.onSearch())},null,512)]),_:1})}}});var ye=I(le,[["__scopeId","data-v-78d10555"],["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/supply/ticketReturn/index.vue"]]);export{ye as default};
|