1 |
- import{u as C,_ as E}from"./use-page-search.665e4825.js";import{P as y}from"./page-content.c90a59ec.js";import{i as d}from"./status.8979b6f7.js";import{aG as B,aH as w,ah as A,aE as b,aX as g,_ as D,q as k,B as p,C as R,aQ as x,r as P,o as I,n as H,t as i,H as c,p as V,v as o,bo as S}from"./index.d8ce26ef.js";import{I as Y}from"./index.4b54201b.js";import{b as M}from"./index.b38c0e7a.js";import{u as N}from"./use-response-handle.e6cae34f.js";import"./basic-form.147ada95.js";import"./global.9ad647c8.js";import"./hooks.3def80f5.js";import"./index.4ed99b91.js";import"./responseHandle.f073653a.js";import"./inv-open.f70179a7.js";const O={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:d}]},{VITE_PROXY_DOMAIN_REAL:le,VITE_PROXY_USER_REAL:L}=w(),T=L+"/admin/",U=e=>B.request("post",`${T}orderinvlist`,{data:{...e,status:"3"}}),X=[{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 n=d.find(l=>l.value===e.inv_type);return A(b,{type:n.type},{default:()=>n.label})}},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",width:165,prop:"addtime",formatter:({addtime:e})=>e?g(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:X,apis:{httpList:U}};const $={class:"main role"},q={"w-full":""},j={name:"invoiceheader"},G=k({...j,setup(e){const n=p(!1),l=p({}),_=N();function m({timer:s}){const[t,a]=s;return{result:{start:t,end:a},deleteProps:["timer"]}}async function f(s){n.value=!0;const{code:t,message:a,data:u}=await M({invNo:s});_({code:t,message:a,handler:()=>{l.value=u}})}const{pageContentRef:h,handleResetClick:F,handleSearchClick:v}=C(m);return R(()=>r.powers=x().getMenuActions("invoicePool")),(s,t)=>{const a=P("el-dialog");return I(),H("div",$,[i(S,{"is-show":o(r).powers.some(u=>u==="001")},{default:c(()=>[V("div",q,[i(o(E),{"form-config":o(O),onSearchBtnClick:o(v),onResetBtnClick:o(F)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),i(o(y),{ref_key:"pageContentRef",ref:h,"content-config":o(r),onPreviewBtnClick:t[0]||(t[0]=({invNo:u})=>f(u))},null,8,["content-config"])]),i(a,{width:"1040px",modelValue:n.value,"onUpdate:modelValue":t[1]||(t[1]=u=>n.value=u)},{default:c(()=>[i(o(Y),{"invoice-data":l.value},null,8,["invoice-data"])]),_:1},8,["modelValue"])]),_:1},8,["is-show"])])}}});var se=D(G,[["__scopeId","data-v-72bcc9fc"]]);export{se as default};
|