1 |
- import{ah as p,aE as m,aF as w,aW as d,_ as g,q as A,B as R,x as S,C as Y,aP as x,r as P,o as F,n as N,t as l,H as c,p as T,v as u,K as M,P as z,bx as I,S as H}from"./index.f00b3728.js";import{S as D}from"./ticket-return.f368d668.js";import{i as B,c as y}from"./configs.9c8020db.js";import{h as O,d as V}from"./index.f76ac300.js";import{u as $,_ as q}from"./use-page-search.65ce9740.js";import{P as L}from"./page-content.46df3069.js";import U from"./invoice-dialog.3e72723e.js";import{u as j}from"./hooks.704e488b.js";import"./basic-form.11f5b8be.js";import"./global.9ad647c8.js";import"./index.892782bc.js";import"./responseHandle.dd0170ee.js";import"./use-response-handle.10a5ad96.js";import"./index.1fa4a2c8.js";import"./invoice.ce69c88b.js";import"./status.b8063a0d.js";const K={formItems:[{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:D},{field:"invType",type:"select",placeholder:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",options:B},{field:"checkApi",type:"select",placeholder:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",options:y},{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"}}]},W=[{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:o})=>p(m,{size:o.size},{default:()=>{var t;return(t=D.find(i=>e.status===i.value))==null?void 0:t.label}})},{label:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",prop:"invType",width:120,cellRenderer:({row:e,props:o})=>p(m,{size:o.size},{default:()=>{var t;return(t=B.find(i=>e.invType===i.value))==null?void 0:t.label}})},{label:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",width:120,cellRenderer:({row:e,props:o})=>p(m,{size:o.size},{default:()=>{var t;return(t=y.find(i=>e.checkApi===i.value))==null?void 0:t.label}})},{label:"\u53D1\u7968\u56FE\u7247",prop:"inv_img",width:85,cellRenderer:({row:e})=>p(w,{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}],_={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:W,apis:{httpList:O,httpDelete:V},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 G={class:"main role"},J={"w-full":""},Q=H("\u65B0\u5EFA"),X={name:"ticketReturn"},Z=A({...X,setup(e){const o=R(null),{push:t}=S();function i({create_timer:n,open_timer:r}){const[s,a]=n,[h,f]=r;return{result:{start:s,end:a,open_start:h?d(h).format("YYYY-MM-DD"):"",open_end:f?d(f).format("YYYY-MM-DD"):""},deleteProps:["create_timer","open_timer"]}}const v=["3","4","5","6","9","10","12"],{pageContentRef:C,handleResetClick:E,handleSearchClick:b}=$(i);function k({hpNo:n}){t({path:"/purchase/ticketReturnDetail",query:{id:n}})}return Y(()=>_.powers=x().getMenuActions("ticketReturn")),(n,r)=>{const s=P("el-button");return F(),N("div",G,[l(I,{isShow:u(_).powers.some(a=>a==="001")},{default:c(()=>[T("div",J,[l(u(q),{"form-config":u(K),onSearchBtnClick:u(b),onResetBtnClick:u(E)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),l(u(L),{ref_key:"pageContentRef",ref:C,onPreviewBtnClick:k,"content-config":u(_)},{create:c(()=>[l(s,{type:"primary",onClick:r[0]||(r[0]=()=>u(t)("/purchase/ticketReturnDetail"))},{default:c(()=>[Q]),_:1})]),custom:c(a=>[v.includes(String(a.status))?(F(),M(s,{key:0,type:"primary",link:"",icon:u(j)("scaletooriginal"),onClick:()=>o.value.onDisplay(a)},null,8,["icon","onClick"])):z("",!0)]),_:1},8,["content-config"])])]),_:1},8,["isShow"]),l(U,{ref_key:"invoiceDialogRef",ref:o},null,512)])}}});var Fe=g(Z,[["__scopeId","data-v-b3e66028"]]);export{Fe as default};
|