1 |
- import{ah as p,aE as _,aF as R,aW as d,_ as S,q as Y,B as D,x as P,C as T,aP as x,r as y,o as B,n as N,t as n,H as c,p as M,v as u,K as z,P as I,bw as H,S as O}from"./index.98845fbd.js";import{S as k}from"./ticket-return.8a086624.js";import{i as C,c as v}from"./configs.9c8020db.js";import{h as V,d as $}from"./index.66715845.js";import{u as q,_ as L}from"./use-page-search.4d371fde.js";import{P as U}from"./page-content.f3f3ea4f.js";import j from"./invoice-dialog.3e145184.js";import{u as K}from"./hooks.00703706.js";import"./basic-form.bfd5d386.js";import"./global.9ad647c8.js";import"./index.25743b07.js";import"./responseHandle.cddef92a.js";import"./use-response-handle.2b35b5cc.js";import"./index.e6e002c0.js";import"./invoice.e08bd8cb.js";import"./status.b8063a0d.js";const W={formItems:[{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:k},{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:v},{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",startPlaceholder:"\u65B0\u5EFA\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u65B0\u5EFA\u7ED3\u675F\u65F6\u95F4"}},{field:"open_timer",type:"date_picker",otherOptions:{type:"daterange",startPlaceholder:"\u5F00\u7968\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u5F00\u7968\u7ED3\u675F\u65F6\u95F4"}}]},G=[{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,cellRenderer:({row:e,props:i})=>p(_,{size:i.size},{default:()=>{var t;return(t=k.find(o=>e.status===o.value))==null?void 0:t.label}})},{label:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",prop:"invType",width:120,cellRenderer:({row:e,props:i})=>p(_,{size:i.size},{default:()=>{var t;return(t=C.find(o=>e.invType===o.value))==null?void 0:t.label}})},{label:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",width:120,cellRenderer:({row:e,props:i})=>p(_,{size:i.size},{default:()=>{var t;return(t=v.find(o=>e.checkApi===o.value))==null?void 0:t.label}})},{label:"\u53D1\u7968\u56FE\u7247",prop:"inv_img",width:85,cellRenderer:({row:e})=>p(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?d(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})=>d(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],f={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:G,apis:{httpList:V,httpDelete:$},deleteProp:"hpNo",delTooltip:"\u662F\u5426\u64A4\u56DE\u91C7\u8D2D\u56DE\u7968\u7533\u8BF7",showDelete:({status:e})=>Number(e)!==6,powers:["001","002","003","004","005","006","007","008"]};const J={class:"main role"},Q={"w-full":""},X=O("\u65B0\u5EFA"),Z={name:"ticketReturn"},ee=Y({...Z,setup(e){const i=D(null),t=D(null),{push:o}=P();function g({create_timer:r,open_timer:l}){const[s,m]=r,[a,F]=l;return{result:{start:s,end:m,open_start:a?d(a).format("YYYY-MM-DD"):"",open_end:F?d(F).format("YYYY-MM-DD"):""},deleteProps:["create_timer","open_timer"]}}const w=["3","4","5","6","9","10","12"],{pageContentRef:h,handleResetClick:E,handleSearchClick:b}=q(g);function A({hpNo:r}){o({path:"/purchase/ticketReturnDetail",query:{id:r}})}return T(()=>f.powers=x().getMenuActions("ticketReturn")),(r,l)=>{const s=y("el-button"),m=y("CreateTicketDialog");return B(),N("div",J,[n(H,{isShow:u(f).powers.some(a=>a==="001")},{default:c(()=>[M("div",Q,[n(u(L),{"form-config":u(W),onSearchBtnClick:u(b),onResetBtnClick:u(E)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),n(u(U),{ref_key:"pageContentRef",ref:h,onPreviewBtnClick:A,"content-config":u(f)},{create:c(()=>[n(s,{type:"primary",onClick:l[0]||(l[0]=()=>u(o)("/purchase/ticketReturnDetail"))},{default:c(()=>[X]),_:1})]),custom:c(a=>[w.includes(String(a.status))?(B(),z(s,{key:0,type:"primary",link:"",icon:u(K)("scaletooriginal"),onClick:()=>t.value.onDisplay(a)},null,8,["icon","onClick"])):I("",!0)]),_:1},8,["content-config"])]),n(m,{onReload:l[1]||(l[1]=()=>u(h).onSearch()),ref_key:"TicketDialog",ref:i},null,512)]),_:1},8,["isShow"]),n(j,{ref_key:"invoiceDialogRef",ref:t},null,512)])}}});var De=S(ee,[["__scopeId","data-v-4906dba1"]]);export{De as default};
|