index.590fca66.js 3.1 KB

1
  1. import{ah as n,aK as f,af as C,aL as F,_ as g,d as w,bn as B,B as b,o as v,c as E,z as a,L as y,a as x,u,bo as D,bp as k,bu as S}from"./index.614c217e.js";import{u as P}from"./use-page-search.5719e73b.js";import{e as r,f as N}from"./index.f6dcb463.js";import"./configs.9735d20d.js";const l={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}]};function R(e){const t=e.split(",");return n(F,{src:t[0],previewTeleported:!0,previewSrcList:[t[0]],style:{height:"20px",width:"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",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})=>R(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})=>n(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\u4EBA",width:80,prop:"creater"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:140,formatter:({addtime:e})=>C(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],I={title:"\u9500\u552E\u6210\u672C\u7C7B\u76EE\u8BBE\u7F6E",superUserNoPerview:!0,columns:A,apis:{httpList:N}};const L={class:"main role"},T={"w-full":""},Y=w({__name:"index",setup(e){const{permissions:t,hasPermissionWithCode:o}=B("commodityCost"),{pageContentRef:p,handleResetClick:d,handleSearchClick:c}=P(void 0,void 0,l),{push:m}=b();function h(i){m({path:"/InvoiceSaleSettings/commodityCostDetail",query:{id:i}})}return(i,s)=>(v(),E("div",L,[a(S,{"is-show":u(o)("001")},{default:y(()=>[x("div",T,[a(u(D),{"form-config":u(l),onSearchBtnClick:u(c),onResetBtnClick:u(d)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),a(u(k),{ref_key:"pageContentRef",ref:p,powers:u(t),"content-config":u(I),onPreviewBtnClick:s[0]||(s[0]=({spuCode:_})=>h(_))},null,8,["powers","content-config"])])]),_:1},8,["is-show"])]))}});var V=g(Y,[["__scopeId","data-v-0fa4429b"],["__file","D:/work/accout-vue3-ui/src/views/InvoiceSaleSettings/commodityCost/index.vue"]]);export{V as default};