index.1f707156.js 3.1 KB

1
  1. import{u as _,_ as f}from"./use-page-search.1bd27f66.js";import{P as m}from"./page-content.d06dc603.js";import{i as l}from"./status.8979b6f7.js";import{aG as F,aH as h,ah as v,aE as C,aX as E,_ as B,q as D,B as w,C as y,aQ as g,o as A,n as k,t as a,H as b,p as R,v as t,bo as P}from"./index.07834df0.js";import x from"./detail-dialog.e9f2e66a.js";import"./basic-form.e5acd813.js";import"./global.be899199.js";import"./hooks.528d8af4.js";import"./index.9cab530e.js";import"./responseHandle.f3c3dfa4.js";import"./use-response-handle.540736d3.js";import"./inv-open.0561d4ed.js";import"./basic-descriptions.b3e3214e.js";import"./index.47c5a368.js";const S={formItems:[{field:"invNo",type:"input",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u7533\u8BF7\u7F16\u53F7"},{field:"inv_out",type:"input",placeholder:"\u4E1A\u52A1\u4F01\u4E1A\u516C\u53F8"},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startPlaceholder:"\u5F00\u7968\u65E5\u671F\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u5F00\u7968\u65E5\u671F\u7ED3\u675F\u65F6\u95F4"}},{field:"inv_type",type:"select",placeholder:"\u8BF7\u9009\u62E9\u53D1\u7968\u7C7B\u578B",options:l}]},{VITE_PROXY_DOMAIN_REAL:ue,VITE_PROXY_USER_REAL:Y}=h(),H=Y+"/admin/",I=e=>F.request("post",`${H}orderinvlist`,{data:{...e,status:"3"}}),M=[{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:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7",prop:"invNo",width:160},{label:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u53F7",prop:"inv_out",width:160},{label:"\u53D1\u7968\u989D\u5EA6",prop:"inv_value",width:110},{label:"\u672A\u5F00\u7968\u91D1\u989D",prop:"winv_fee",width:160},{label:"\u5DF2\u5F00\u7968\u91D1\u989D",prop:"ainv_fee",width:160},{label:"\u53D1\u7968\u7C7B\u578B",cellRenderer({row:e}){const u=l.find(i=>i.value===e.inv_type);return v(C,{type:u.type},{default:()=>u.label})}},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",width:145,prop:"createTime",formatter:({createTime:e})=>E(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:55,slot:"operation"}],r={title:"\u53D1\u7968\u516C\u6D77\u6C60",powers:["001","002","003","004","005","006","007","008"],columns:M,apis:{httpList:I}};const N={class:"main role"},O={"w-full":""},T={name:"invoiceheader"},V=D({...T,setup(e){const u=w(null);function i({timer:s}){const[n,o]=s;return{result:{start:n,end:o},deleteProps:["timer"]}}const{pageContentRef:p,handleResetClick:c,handleSearchClick:d}=_(i);return y(()=>r.powers=g().getMenuActions("invoicePool")),(s,n)=>(A(),k("div",N,[a(P,{"is-show":t(r).powers.some(o=>o==="001")},{default:b(()=>[R("div",O,[a(t(f),{"form-config":t(S),onSearchBtnClick:t(d),onResetBtnClick:t(c)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),a(t(m),{ref_key:"pageContentRef",ref:p,"content-config":t(r),onPreviewBtnClick:n[0]||(n[0]=({invNo:o})=>u.value.onDisplay(o))},null,8,["content-config"])]),a(x,{ref_key:"detailDialogRef",ref:u},null,512)]),_:1},8,["is-show"])]))}});var oe=B(V,[["__scopeId","data-v-dd4f3f42"]]);export{oe as default};