index.e8f8e0bb.js 2.6 KB

1
  1. import{u as m,_}from"./use-page-search.65ce9740.js";import{P as f}from"./page-content.46df3069.js";import{aG as g,aH as h,ah as l,aE as E,aW as C,aF as F,_ as B,q as y,x as v,o as R,n as x,t as i,v as o}from"./index.f00b3728.js";import{a as r}from"./configs.12642357.js";import"./basic-form.11f5b8be.js";import"./global.9ad647c8.js";import"./hooks.704e488b.js";import"./index.892782bc.js";import"./responseHandle.dd0170ee.js";import"./use-response-handle.10a5ad96.js";const A={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:j,VITE_PROXY_USER_REAL:k}=h(),b=k+"/admin/",D=e=>g.request("post",`${b}goodlist`,{data:{...e,isZx:1}});function w(e){const t=e.split(",");return t.map(u=>l(F,{src:u,style:{height:"30px",marginRight:"10px"},previewTeleported:!0,previewSrcList:t}))}const I=[{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})=>w(e.good_img)},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:e})=>l(E,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})=>C(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],S={title:"\u54A8\u8BE2\u6210\u4EA4\u7C7B\u76EE\u8BBE\u7F6E",columns:I,apis:{httpList:D},powers:["001","002","003","004","005","006","007","008"]};const P={class:"main role"},Y={name:"invoiceheader"},T=y({...Y,setup(e){const{pageContentRef:t,handleResetClick:u,handleSearchClick:s}=m(),{push:p}=v();function c(n){p({path:"/InvoiceSaleSettings/consultingCostDetail",query:{id:n}})}return(n,a)=>(R(),x("div",P,[i(o(_),{"form-config":o(A),onSearchBtnClick:o(s),onResetBtnClick:o(u)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),i(o(f),{ref_key:"pageContentRef",ref:t,"content-config":o(S),onPreviewBtnClick:a[0]||(a[0]=({spuCode:d})=>c(d))},null,8,["content-config"])]))}});var U=B(T,[["__scopeId","data-v-5fb5e8de"]]);export{U as default};