1 |
- import{u as h,_ as C}from"./use-page-search.c21c835a.js";import{P as y}from"./page-content.d81fe6d5.js";import{i as c}from"./status.a0228b6d.js";import{ar as B,as as E,V as w,ap as A,aI as b,_ as g,e as D,q as r,v as k,aA as P,r as R,o as x,c as I,h as n,A as p,a as V,j as t,bl as N}from"./index.197db209.js";import{I as S}from"./index.82ea8d3e.js";import"./basic-form.1636836f.js";import"./global.9ad647c8.js";import"./hooks.f1aab91e.js";import"./index.a1329aaa.js";import"./responseHandle.86881388.js";import"./use-response-handle.d2980b3d.js";import"./invoice.45f6cc28.js";import"./status.b8063a0d.js";const d={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:c}]},{VITE_PROXY_DOMAIN_REAL:oe,VITE_PROXY_USER_REAL:Y}=E(),M=Y+"/admin/",O=e=>B.request("post",`${M}orderinvlist`,{data:{...e,status:"3"}}),H=[{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=c.find(a=>a.value===e.inv_type);return w(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?b(e).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u64CD\u4F5C",fixed:"right",width:55,slot:"operation"}],l={title:"\u53D1\u7968\u516C\u6D77\u6C60",powers:["001","002","003","004","005","006","007","008"],inv:!0,columns:H,apis:{httpList:O}};const L={class:"main role"},T={"w-full":""},U={name:"invoicePool"},$=D({...U,setup(e){const u=r(!1),a=r("");async function _(s){u.value=!0,a.value=s}const{pageContentRef:m,handleResetClick:f,handleSearchClick:v}=h(void 0,void 0,d);return k(()=>l.powers=P().getMenuActions("invoicePool")),(s,i)=>{const F=R("el-dialog");return x(),I("div",L,[n(N,{"is-show":t(l).powers.some(o=>o==="001")},{default:p(()=>[V("div",T,[n(t(C),{"form-config":t(d),onSearchBtnClick:t(v),onResetBtnClick:t(f)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),n(t(y),{ref_key:"pageContentRef",ref:m,"content-config":t(l),onPreviewBtnClick:i[0]||(i[0]=({inv_number:o})=>_(o))},null,8,["content-config"])]),n(F,{width:"1040px",modelValue:u.value,"onUpdate:modelValue":i[1]||(i[1]=o=>u.value=o)},{default:p(()=>[n(t(S),{"inv-number":a.value,type:"sale"},null,8,["inv-number"])]),_:1},8,["modelValue"])]),_:1},8,["is-show"])])}}});var ne=g($,[["__scopeId","data-v-699574cc"]]);export{ne as default};
|