index.6c7fa16d.js 3.0 KB

1
  1. import{u as _,_ as f}from"./use-page-search.f69d0651.js";import{P as m}from"./page-content.28283dd3.js";import{i as s}from"./status.8979b6f7.js";import{aG as F,aH as h,ah as v,aE as C,aX as B,_ as E,q as y,B as w,C as g,aQ as D,o as k,n as A,t as a,H as b,p as R,v as t,bo as P}from"./index.f1f72fab.js";import x from"./detail-dialog.96a6a2b4.js";import"./basic-form.3fcecd34.js";import"./global.9ad647c8.js";import"./hooks.56104ccd.js";import"./index.e06d2700.js";import"./responseHandle.e1b4a6cf.js";import"./use-response-handle.848983a0.js";import"./inv-open.f84935aa.js";import"./basic-descriptions.d6904302.js";import"./index.2b229228.js";const S={formItems:[{field:"invNo",type:"input",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u7533\u8BF7\u7F16\u53F7",options:s},{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}=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:"\u4F01\u4E1A\u5BA2\u6237\u7F16\u7801",prop:"inv_in",width:160},{label:"\u4F01\u4E1A\u5BA2\u6237\u540D\u79F0",prop:"username"},{label:"\u53D1\u7968\u989D\u5EA6",prop:"inv_value",width:110},{label:"\u53D1\u7968\u7C7B\u578B",cellRenderer({row:e}){const u=s.find(i=>i.value===e.inv_type);return v(C,{type:u.type},{default:()=>u.label})}},{label:"\u4E1A\u52A1\u516C\u53F8\u7F16\u7801",prop:"inv_out",width:160},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",width:145,prop:"createTime",formatter:({createTime:e})=>B(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=y({...T,setup(e){const u=w(null);function i({timer:l}){const[n,o]=l;return{result:{start:n,end:o},deleteProps:["timer"]}}const{pageContentRef:p,handleResetClick:c,handleSearchClick:d}=_(i);return g(()=>r.powers=D().getMenuActions("invoicePool")),(l,n)=>(k(),A("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=E(V,[["__scopeId","data-v-dd4f3f42"]]);export{oe as default};