index.558f7b93.js 2.9 KB

1
  1. import{ah as r,aE as m,aX as f,aF as _,_ as F,q as C,x as g,o as h,n as E,t as l,v as t}from"./index.413ee8cb.js";import{u as B,P as v}from"./use-page-search.4f9e3dd3.js";import{P as y}from"./page-content.f28f89ee.js";import{e as i,f as b}from"./index.1544549c.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"./configs.7848e9a7.js";const k={formItems:[{field:"status",type:"select",placeholder:"\u5546\u54C1\u72B6\u6001",options:i},{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"}]};function x(e){const u=e.split(",");return r(_,{src:u[0],previewTeleported:!0,previewSrcList:[u[0]],style:{height:"20px"}})}const A=[{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:"\u4F9B\u5E94\u5546\u7F16\u53F7",prop:"supplierNo"},{label:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u53F7",prop:"companyNo"},{label:"\u5546\u54C1\u540D\u79F0",prop:"good_name"},{label:"\u5546\u54C1\u4E3B\u56FE",prop:"good_img",cellRenderer:({row:e})=>x(e.good_img)},{label:"\u7C7B\u76EE\u540D\u79F0",prop:"inv_cat_name"},{label:"\u5F00\u7968\u5546\u54C1\u540D\u79F0",prop:"inv_good_name"},{label:"\u521B\u5EFA\u4EBA",prop:"creater"},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:e})=>r(m,null,{default:()=>{var u;return(u=i.find(o=>o.value===e.status))==null?void 0:u.label}})},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",formatter:({createTime:e})=>f(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],D={title:"\u9500\u552E\u6210\u672C\u7C7B\u76EE\u8BBE\u7F6E",columns:A,apis:{httpList:b},powers:["001","002","003","004","005","006","007","008"]};const S={class:"main role"},w={name:"invoiceheader"},R=C({...w,setup(e){const{pageContentRef:u,handleResetClick:o,handleSearchClick:p}=B(),{push:s}=g();function c(a){s({path:"/InvoiceSaleSettings/commodityCostDetail",query:{id:a}})}return(a,n)=>(h(),E("div",S,[l(t(v),{"form-config":t(k),onSearchBtnClick:t(p),onResetBtnClick:t(o)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),l(t(y),{ref_key:"pageContentRef",ref:u,"content-config":t(D),onPreviewBtnClick:n[0]||(n[0]=({spuCode:d})=>c(d))},null,8,["content-config"])]))}});var V=F(R,[["__scopeId","data-v-0fa4429b"],["__file","D:/work/accout-vue3-ui/src/views/InvoiceSaleSettings/commodityCost/index.vue"]]);export{V as default};