1 |
- import{u as h,_ as g}from"./use-page-search.bec6fb0d.js";import{P as C}from"./page-content.b704528a.js";import{ar as E,as as F,V as r,ap as B,aI as y,aq as R,_ as v,e as w,m as A,o as x,c as k,h as s,A as b,a as D,j as o,bp as I}from"./index.e7c72e95.js";import{a as l}from"./configs.5f5963b2.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";const P={formItems:[{field:"status",type:"select",placeholder:"\u5546\u54C1\u72B6\u6001",options:l},{field:"spuCode",type:"input",placeholder:"\u5546\u54C1\u7F16\u7801"},{field:"good_name",type:"input",placeholder:"\u5546\u54C1\u540D\u79F0"},{field:"companyNo",type:"input",placeholder:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u53F7"},{field:"supplierNo",type:"input",placeholder:"\u4F9B\u5E94\u5546\u7F16\u53F7"},{field:"creater",type:"input",placeholder:"\u521B\u5EFA\u4EBA\u540D\u79F0"}]},{VITE_PROXY_DOMAIN_REAL:oe,VITE_PROXY_USER_REAL:N}=F(),Y=N+"/admin/",T=e=>E.request("post",`${Y}goodlist`,{data:{...e,isZx:1}});function V(e){const t=e.split(",");return t.map(u=>r(R,{src:u,style:{height:"30px",marginRight:"10px"},previewTeleported:!0,previewSrcList:t}))}const 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:"\u5546\u54C1\u7F16\u7801",prop:"spuCode"},{label:"\u5546\u54C1\u540D\u79F0",prop:"good_name"},{label:"\u5546\u54C1\u4E3B\u56FE",prop:"good_img",cellRenderer:({row:e})=>V(e.good_img)},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:e})=>r(B,null,{default:()=>{var t;return(t=l.find(u=>u.value===e.status))==null?void 0:t.label}})},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",formatter:({createTime:e})=>y(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],i={title:"\u54A8\u8BE2\u6210\u4EA4\u7C7B\u76EE\u8BBE\u7F6E",columns:L,apis:{httpList:T},powers:["001","002","003","004","005","006","007","008"]};const q={class:"main role"},M={"w-full":""},O={name:"invoiceheader"},$=w({...O,setup(e){const{pageContentRef:t,handleResetClick:u,handleSearchClick:p}=h(),{push:c}=A();function d(n){c({path:"/InvoiceSaleSettings/consultingCostDetail",query:{id:n}})}const{permission:m,contentConfigRef:f}=S({pageName:"consultingCost",contentConfig:i,callback:n=>i.powers=n});return(n,a)=>(x(),k("div",q,[s(I,{"is-show":o(m).list},{default:b(()=>[D("div",M,[s(o(g),{"form-config":o(P),onSearchBtnClick:o(p),onResetBtnClick:o(u)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),s(o(C),{ref_key:"pageContentRef",ref:t,"content-config":o(f),onPreviewBtnClick:a[0]||(a[0]=({spuCode:_})=>d(_))},null,8,["content-config"])])]),_:1},8,["is-show"])]))}});var ue=v($,[["__scopeId","data-v-d9636fd0"]]);export{ue as default};
|