index.e53200f5.js 3.4 KB

1
  1. import{aG as C,aH as w,ah as B,aE as y,aX as p,_ as E,q as D,B as c,C as b,aQ as g,r as A,o as P,n as k,t as a,H as d,p as Y,v as t,bw as x}from"./index.413ee8cb.js";import{u as R,P as I}from"./use-page-search.4f9e3dd3.js";import{P as M}from"./page-content.f28f89ee.js";import{i as m}from"./status.a5cd00d1.js";import{I as S}from"./index.f743a2a6.js";import"./basic-form.1f1ab9b1.js";import"./global.9ad647c8.js";import"./hooks.217daa00.js";import"./index.bef541ea.js";import"./responseHandle.6d0667d8.js";import"./use-response-handle.9aced8b8.js";import"./invoice.49ba270a.js";import"./status.b8063a0d.js";const V={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",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:m}]},{VITE_PROXY_DOMAIN_REAL:ne,VITE_PROXY_USER_REAL:N}=w(),H=N+"/admin/",O=e=>C.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},{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 o=m.find(i=>i.value===e.inv_type);return B(y,{type:o.type},{default:()=>o.label})}},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u7533\u8BF7\u65F6\u95F4",width:170,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"},q=D({...X,setup(e){const o=c(!1),i=c(""),_=({timer:l})=>{const[u,r]=l;return{result:{start:u?p(u).format("YYYY-MM-DD"):"",end:r?p(r).format("YYYY-MM-DD"):""},deleteProps:["timer"]}};async function f(l){o.value=!0,i.value=l}const{pageContentRef:v,handleResetClick:F,handleSearchClick:h}=R(_);return b(()=>s.powers=g().getMenuActions("invoicePool")),(l,u)=>{const r=A("el-dialog");return P(),k("div",T,[a(x,{"is-show":t(s).powers.some(n=>n==="001")},{default:d(()=>[Y("div",U,[a(t(I),{"form-config":t(V),onSearchBtnClick:t(h),onResetBtnClick:t(F)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),a(t(M),{ref_key:"pageContentRef",ref:v,"content-config":t(s),onPreviewBtnClick:u[0]||(u[0]=({inv_number:n})=>f(n))},null,8,["content-config"])]),a(r,{width:"1040px",modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=n=>o.value=n)},{default:d(()=>[a(t(S),{"inv-number":i.value,type:"sale"},null,8,["inv-number"])]),_:1},8,["modelValue"])]),_:1},8,["is-show"])])}}});var ae=E(q,[["__scopeId","data-v-35d02eb6"],["__file","D:/work/accout-vue3-ui/src/views/InvoiceSales/invoicePool/index.vue"]]);export{ae as default};