1 |
- import{u as C,_ as y}from"./use-page-search.e3909779.js";import{P as B}from"./page-content.cced853d.js";import{i as _}from"./status.a5cd00d1.js";import{aG as E,aH as w,ah as D,aE as b,aX as p,_ as A,q as g,B as c,C as Y,aQ as k,r as P,o as R,n as x,t as a,H as d,p as M,v as t,bw as I}from"./index.aa2c66f0.js";import{I as V}from"./index.a5b1751a.js";import"./basic-form.c093d7d1.js";import"./global.9ad647c8.js";import"./hooks.f43cc186.js";import"./index.e0449aed.js";import"./responseHandle.b474db9a.js";import"./use-response-handle.8ad944b5.js";import"./invoice.afb6639b.js";import"./status.b8063a0d.js";const N={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:"\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:_}]},{VITE_PROXY_DOMAIN_REAL:ne,VITE_PROXY_USER_REAL:S}=w(),H=S+"/admin/",O=e=>E.request("post",`${H}orderinvlist`,{data:{...e,status:"3"}}),L=[{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},{prop:"buyer_title",label:"\u5BA2\u6237\u53D1\u7968\u62AC\u5934",width:200},{label:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u53F7",prop:"inv_out",width:200},{label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",prop:"inv_company"},{label:"\u7A0E\u540E\u91D1\u989D",prop:"inv_value",width:110},{label:"\u53D1\u7968\u7C7B\u578B",width:130,cellRenderer({row:e}){const u=_.find(i=>i.value===e.inv_type);return D(b,{type:u.type},{default:()=>u.label})}},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u7533\u8BF7\u65F6\u95F4",width:165,prop:"addtime",formatter:({addtime:e})=>e?p(e).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u64CD\u4F5C",fixed:"right",width:55,slot:"operation"}],s={title:"\u53D1\u7968\u516C\u6D77\u6C60",powers:["001","002","003","004","005","006","007","008"],inv:!0,columns:L,apis:{httpList:O}};const T={class:"main role"},U={"w-full":""},X={name:"invoicePool"},$=g({...X,setup(e){const u=c(!1),i=c(""),m=({timer:l})=>{const[o,r]=l;return{result:{start:p(o).format("YYYY-MM-DD"),end:p(r).format("YYYY-MM-DD")},deleteProps:["timer"]}};async function f(l){u.value=!0,i.value=l}const{pageContentRef:v,handleResetClick:h,handleSearchClick:F}=C(m);return Y(()=>s.powers=k().getMenuActions("invoicePool")),(l,o)=>{const r=P("el-dialog");return R(),x("div",T,[a(I,{"is-show":t(s).powers.some(n=>n==="001")},{default:d(()=>[M("div",U,[a(t(y),{"form-config":t(N),onSearchBtnClick:t(F),onResetBtnClick:t(h)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),a(t(B),{ref_key:"pageContentRef",ref:v,"content-config":t(s),onPreviewBtnClick:o[0]||(o[0]=({inv_number:n})=>f(n))},null,8,["content-config"])]),a(r,{width:"1040px",modelValue:u.value,"onUpdate:modelValue":o[1]||(o[1]=n=>u.value=n)},{default:d(()=>[a(t(V),{"inv-number":i.value,type:"sale"},null,8,["inv-number"])]),_:1},8,["modelValue"])]),_:1},8,["is-show"])])}}});var ae=A($,[["__scopeId","data-v-38462234"]]);export{ae as default};
|