index.919595cf.js 4.8 KB

1
  1. import{af as n,aI as p,aJ as R,aX as _,_ as T,r as S,z as M,D as y,a5 as Y,v as r,o as v,M as g,J as i,w as s,x as l,Q as B,T as z,W as I}from"./index.a7b21180.js";import{d as O,c as H}from"./index.1175dd41.js";import{s as c,i as C,c as b}from"./_opitons.854186b3.js";import{u as U}from"./use-page-search.ddedeb4d.js";import V from"./invoice-modal.34d62f8b.js";import{h as j}from"./export.56de10ee.js";import"./index.0da291a2.js";import"./invoice.541788d0.js";import"./status.3351df60.js";const J=[{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:"\u72B6\u6001",prop:"status",width:160,transform:e=>{var u;return(u=c.find(t=>String(e)===t.value))==null?void 0:u.label},cellRenderer:({row:e,props:u})=>n(p,{size:u.size},{default:()=>{var t;return(t=c.find(o=>String(e.status)===o.value))==null?void 0:t.label}})},{label:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",prop:"invType",width:120,cellRenderer:({row:e,props:u})=>n(p,{size:u.size},{default:()=>{var t;return(t=C.find(o=>String(e.invType)===o.value))==null?void 0:t.label}})},{label:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",width:120,cellRenderer:({row:e,props:u})=>n(p,{size:u.size},{default:()=>{var t;return(t=b.find(o=>String(e.checkApi)===o.value))==null?void 0:t.label}})},{label:"\u53D1\u7968\u56FE\u7247",prop:"inv_img",width:85,cellRenderer:({row:e})=>n(R,{src:e.inv_img,style:{height:"20px"},previewSrcList:[e.inv_img],previewTeleported:!0})},{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:"\u53D1\u7968\u53F7\u7801",width:110,prop:"invoiceNumber"},{label:"\u53D1\u7968\u4EE3\u7801",width:110,prop:"invoiceCode"},{label:"\u5F00\u7968\u65F6\u95F4",prop:"open_time",width:120,formatter:({open_time:e})=>e?_(e).format("YYYY-MM-DD"):""},{label:"\u53D1\u7968\u72B6\u6001",width:110,prop:"invStatus_cn"},{label:"\u53D1\u7968\u7C7B\u578B",width:110,prop:"invoiceType_cn"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:180,formatter:({addtime:e})=>_(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],L={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:J,apis:{httpList:O,httpDelete:H,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},E={formItems:[{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:c},{field:"invType",type:"select",placeholder:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",options:C},{field:"checkApi",type:"select",placeholder:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",options:b},{field:"payNo",type:"input",placeholder:"\u5BF9\u8D26\u7F16\u53F7"},{field:"hpNo",type:"input",placeholder:"\u5BF9\u8D26\u7533\u8BF7\u7F16\u53F7"},{field:"apply_id",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"}}]},$=I("\u5BFC\u51FA\u5F00\u7968\u6570\u636E"),q=S({__name:"index",setup(e){const u="supplyTicketReturn",t="/supply/supplyTicketReturnDetail",o=["3","4","5","6","9","10","12"],{push:d}=M(),h=y(null),F=y(null),{currentCompany:w}=Y(),A={pageSearchHook:()=>U(void 0,void 0,E)},k={content:{preview:({hpNo:m})=>d(`${t}?id=${m}`),create:()=>d(t)}};async function P(){await j({url:"ile",name:"\u5F00\u7968\u6570\u636E\u8868",params:{supplierNo:w.value.companyNo,...F.value.getBasicParams()}})}return(m,f)=>{const D=r("ElButton"),N=r("PageContainer"),x=r("PageAuth");return v(),g(x,{pageName:u},{default:i(()=>[s(N,{hooks:A,events:k,contentConfig:l(L),"search-config":l(E),"get-content-ref":a=>F.value=a},{content_header:i(()=>[s(D,{icon:l(B)("arrow-up-line"),onClick:f[0]||(f[0]=()=>P())},{default:i(()=>[$]),_:1},8,["icon"])]),content_action:i(a=>[o.includes(String(a.status))?(v(),g(D,{key:0,link:"",type:"primary",icon:l(B)("scaletooriginal"),onClick:()=>h.value.onDisplay(a)},null,8,["icon","onClick"])):z("v-if",!0)]),_:1},8,["contentConfig","search-config","get-content-ref"]),s(V,{ref_key:"invoiceModalRef",ref:h},null,512)]),_:1})}}});var oe=T(q,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supply/ticketReturn/index.vue"]]);export{oe as default};