1 |
- import{aK as f,aL as C,af as l,aI as F,aX as g,aJ as E,_ as B,d as w,B as b,bn as v,o as y,c as x,z as a,L as R,a as D,u,bo as A,bp as k,bu as I}from"./index.a584ddad.js";import{u as N}from"./use-page-search.5ed9bf1b.js";import{a as r}from"./configs.2a8e85c4.js";const n={formItems:[{field:"group",type_field:"group_type",type:"input_group",otherOptions:{inputGroupOptions:[{value:"spuCode",label:"\u5546\u54C1\u7F16\u7801"},{value:"good_name",label:"\u5546\u54C1\u540D\u79F0"},{value:"supplierNo",label:"\u5356\u65B9\u516C\u53F8\u7F16\u53F7"},{value:"creater",label:"\u521B\u5EFA\u4EBA"}]}},{field:"status",type:"select",placeholder:"\u5173\u8054\u72B6\u6001",options:r}]},{VITE_PROXY_DOMAIN_REAL:U,VITE_PROXY_USER_REAL:S}=C(),P=S+"/admin/",L=e=>f.request("post",`${P}goodlist`,{data:{...e,isZx:1}});function T(e){const t=e.split(",");return l(E,{src:t[0],previewTeleported:!0,previewSrcList:[t[0]],style:{height:"20px",width:"20px"}})}const Y=[{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",width:185},{label:"\u5356\u65B9\u516C\u53F8\u7F16\u53F7",prop:"supplierNo",width:175},{label:"\u5356\u65B9\u516C\u53F8\u540D\u79F0",prop:"supplierName",width:175},{label:"\u4E70\u65B9\u516C\u53F8\u7F16\u53F7",prop:"companyNo",width:175},{label:"\u4E70\u65B9\u516C\u53F8\u540D\u79F0",prop:"companyName",width:195},{label:"\u5546\u54C1\u540D\u79F0",prop:"good_name",width:195},{label:"\u4E3B\u56FE",prop:"good_img",width:55,cellRenderer:({row:e})=>T(e.good_img)},{label:"\u7C7B\u76EE\u540D\u79F0",width:120,prop:"inv_cat_name"},{label:"\u5F00\u7968\u5546\u54C1\u540D\u79F0",prop:"inv_good_name",width:165},{label:"\u72B6\u6001",prop:"status",width:85,cellRenderer:({row:e})=>l(F,null,{default:()=>{var t;return(t=r.find(o=>o.value===String(e.status)))==null?void 0:t.label}})},{label:"\u589E\u503C\u7A0E\u7BA1\u7406\u5185\u5BB9",prop:"addTax",width:"140px"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:140,formatter:({addtime:e})=>g(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u521B\u5EFA\u4EBA",width:80,prop:"creater"},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],O={title:"\u9500\u552E\u6210\u672C\u7C7B\u76EE\u8BBE\u7F6E",superUserNoPerview:!0,columns:Y,apis:{httpList:L}};const V={class:"main role"},M={"w-full":""},X={name:"invoiceheader"},$=w({...X,setup(e){const{pageContentRef:t,handleResetClick:o,handleSearchClick:p}=N(void 0,void 0,n),{push:d}=b();function c(s){d({path:"/InvoiceSaleSettings/consultingCostDetail",query:{id:s}})}const{permissions:_,hasPermissionWithCode:h}=v("consultingCost");return(s,i)=>(y(),x("div",V,[a(I,{"is-show":u(h)("001")},{default:R(()=>[D("div",M,[a(u(A),{"form-config":u(n),onSearchBtnClick:u(p),onResetBtnClick:u(o)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),a(u(k),{ref_key:"pageContentRef",ref:t,powers:u(_),"content-config":u(O),onPreviewBtnClick:i[0]||(i[0]=({spuCode:m})=>c(m))},null,8,["powers","content-config"])])]),_:1},8,["is-show"])]))}});var j=B($,[["__scopeId","data-v-a8ed1f78"]]);export{j as default};
|