index.a4a242f0.js 3.3 KB

1
  1. import{u as _,_ as f}from"./use-page-search.50fcf0fa.js";import{P as m}from"./page-content.4a54e94e.js";import{i as s}from"./status.8979b6f7.js";import{aG as h,aH as F,ah as v,aE as C,aX as y,_ as B,q as D,B as E,C as w,aQ as A,o as g,n as b,t as i,H as k,p as R,v as t,bo as P}from"./index.46adee50.js";import x from"./detail-dialog.d3385f07.js";import"./basic-form.95be38fa.js";import"./global.be899199.js";import"./hooks.eaa45ef2.js";import"./index.9bb3d6d6.js";import"./responseHandle.60ea6152.js";import"./use-response-handle.07b63870.js";import"./inv-open.3d1b8958.js";import"./basic-descriptions.ca35ab0c.js";import"./index.4cbb4bec.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:"buyer_name",type:"input",placeholder:"\u5BA2\u6237\u53D1\u7968\u62AC\u5934"},{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:s}]},{VITE_PROXY_DOMAIN_REAL:ue,VITE_PROXY_USER_REAL:Y}=F(),H=Y+"/admin/",I=e=>h.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},{prop:"buyer_title",label:"\u5BA2\u6237\u53D1\u7968\u62AC\u5934",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=s.find(a=>a.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})=>y(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=E(null);function a({timer:l}){const[n,o]=l;return{result:{start:n,end:o},deleteProps:["timer"]}}const{pageContentRef:p,handleResetClick:c,handleSearchClick:d}=_(a);return w(()=>r.powers=A().getMenuActions("invoicePool")),(l,n)=>(g(),b("div",N,[i(P,{"is-show":t(r).powers.some(o=>o==="001")},{default:k(()=>[R("div",O,[i(t(f),{"form-config":t(S),onSearchBtnClick:t(d),onResetBtnClick:t(c)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),i(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"])]),i(x,{ref_key:"detailDialogRef",ref:u},null,512)]),_:1},8,["is-show"])]))}});var oe=B(V,[["__scopeId","data-v-dd4f3f42"]]);export{oe as default};