1 |
- import{aH as g,aI as h,aa as l,aF as C,aW as E,aG as F,_ as v,r as B,z as y,o as w,p as R,w as a,J as x,q as b,x as o,bo as k,bp as A,bv as S}from"./index.c437e4ff.js";import{u as D}from"./use-page-search.0f6a6d4f.js";import{a as r}from"./configs.55a98f5f.js";import{u as I}from"./use-permission.c2a64e5d.js";const P={formItems:[{field:"status",type:"select",placeholder:"\u5546\u54C1\u72B6\u6001",options:r},{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:z,VITE_PROXY_USER_REAL:N}=h(),Y=N+"/admin/",T=e=>g.request("post",`${Y}goodlist`,{data:{...e,isZx:1}});function L(e){const t=e.split(",");return t.map(u=>l(F,{src:u,style:{height:"30px",marginRight:"10px"},previewTeleported:!0,previewSrcList:t}))}const V=[{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})=>L(e.good_img)},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:e})=>l(C,null,{default:()=>{var t;return(t=r.find(u=>u.value===e.status))==null?void 0:t.label}})},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",formatter:({createTime:e})=>E(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:V,apis:{httpList:T},powers:["001","002","003","004","005","006","007","008"]};const q={class:"main role"},H={"w-full":""},M={name:"invoiceheader"},O=B({...M,setup(e){const{pageContentRef:t,handleResetClick:u,handleSearchClick:c}=D(),{push:p}=y();function d(s){p({path:"/InvoiceSaleSettings/consultingCostDetail",query:{id:s}})}const{permission:f,contentConfigRef:_}=I({pageName:"consultingCost",contentConfig:i,callback:s=>i.powers=s});return(s,n)=>(w(),R("div",q,[a(S,{"is-show":o(f).list},{default:x(()=>[b("div",H,[a(o(k),{"form-config":o(P),onSearchBtnClick:o(c),onResetBtnClick:o(u)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),a(o(A),{ref_key:"pageContentRef",ref:t,"content-config":o(_),onPreviewBtnClick:n[0]||(n[0]=({spuCode:m})=>d(m))},null,8,["content-config"])])]),_:1},8,["is-show"])]))}});var J=v(O,[["__scopeId","data-v-e8348bd0"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSaleSettings/consultingCost/index.vue"]]);export{J as default};
|