1 |
- import{u as y,_ as B}from"./use-page-search.bec6fb0d.js";import{P as E}from"./page-content.b704528a.js";import{i as d}from"./status.a0228b6d.js";import{ar as w,as as b,V as g,ap as A,aI as D,_ as P,e as k,q as r,r as R,o as x,c as I,h as o,A as s,a as V,j as t,bp as N}from"./index.e7c72e95.js";import{I as Y}from"./index.f93c2f51.js";import{u as S}from"./use-permission.13411f65.js";import"./basic-form.82727b1d.js";import"./global.9ad647c8.js";import"./hooks.93e407ab.js";import"./index.e6c308d2.js";import"./responseHandle.c92eeb9c.js";import"./use-response-handle.0e27bb38.js";import"./export.c7be1f75.js";import"./xlsx.ed122d16.js";import"./invoice.4b0f079c.js";import"./status.b8063a0d.js";const p={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\u7F16\u53F7"},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u7533\u8BF7\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7533\u8BF7\u7ED3\u675F\u65F6\u95F4"}},{field:"inv_type",type:"select",placeholder:"\u8BF7\u9009\u62E9\u53D1\u7968\u7C7B\u578B",options:d}]},{VITE_PROXY_DOMAIN_REAL:le,VITE_PROXY_USER_REAL:O}=b(),L=O+"/admin/",M=e=>w.request("post",`${L}orderinvlist`,{data:{...e,status:"3"}}),T=[{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:200},{label:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u53F7",prop:"inv_out",width:200},{label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",prop:"inv_company",width:200},{prop:"buyer_title",label:"\u5BA2\u6237\u53D1\u7968\u62AC\u5934",width:200},{label:"\u7A0E\u540E\u91D1\u989D",prop:"inv_value",width:110},{label:"\u53D1\u7968\u7C7B\u578B",width:130,cellRenderer({row:e}){const u=d.find(n=>n.value===e.inv_type);return g(A,{type:u.type},{default:()=>u.label})}},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u7533\u8BF7\u65F6\u95F4",width:170,prop:"addtime",formatter:({addtime:e})=>e?D(e).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u64CD\u4F5C",fixed:"right",width:55,slot:"operation"}],c={title:"\u53D1\u7968\u516C\u6D77\u6C60",powers:["001","002","003","004","005","006","007","008"],inv:!0,columns:T,apis:{httpList:M}};const $={class:"main role"},j={"w-full":""},q={name:"invoicePool"},H=k({...q,setup(e){const u=r(!1),n=r("");async function m(i){u.value=!0,n.value=i}const{pageContentRef:_,handleResetClick:f,handleSearchClick:v}=y(void 0,void 0,p),{permission:F,contentConfigRef:h}=S({pageName:"invoicePool",contentConfig:c,callback:i=>c.powers=i});return(i,a)=>{const C=R("el-dialog");return x(),I("div",$,[o(N,{"is-show":t(F).list},{default:s(()=>[V("div",j,[o(t(B),{"form-config":t(p),onSearchBtnClick:t(v),onResetBtnClick:t(f)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),o(t(E),{ref_key:"pageContentRef",ref:_,"content-config":t(h),onPreviewBtnClick:a[0]||(a[0]=({inv_number:l})=>m(l))},null,8,["content-config"])]),o(C,{width:"1040px",modelValue:u.value,"onUpdate:modelValue":a[1]||(a[1]=l=>u.value=l)},{default:s(()=>[o(t(Y),{"inv-number":n.value,type:"sale"},null,8,["inv-number"])]),_:1},8,["modelValue"])]),_:1},8,["is-show"])])}}});var re=P(H,[["__scopeId","data-v-703d2652"]]);export{re as default};
|