import{_ as F,P as b}from"./page-content.e0c7af12.js";import{u as k}from"./use-page-search.0f272301.js";import{S as C,G as O}from"./status.2b37e8be.js";import{c as y,r as m,a as S}from"./column-helper.64ceba17.js";import{c as T,d as P,e as A}from"./pageListModal.b8e2dd01.js";import{u as R}from"./usePermission.8064505c.js";import{_ as x}from"./edit-dialog.vue_vue_type_script_setup_true_lang.a470287e.js";import{a as D,r as E,b as c,c as d,j as f,h as i,f as n,u as o,x as N,l as $}from"./index.4d061c66.js";import"./remote-select.36ee67a3.js";import"./useAsync.df7387ce.js";import"./useNav.5e73c372.js";import"./image.e35d846c.js";import"./hooks.9f8f44e2.js";/* empty css                                                              */import"./image.4c97dbe3.js";/* empty css                                                              */import"./index.e63aea62.js";import"./responseHandle.fe68d5aa.js";import"./good.75e37e88.js";import"./btnList.6c44b4ef.js";import"./ComCard.vue_vue_type_script_setup_true_lang.ad550102.js";import"./remoteSelect.403add72.js";import"./ladder-table.vue_vue_type_script_setup_true_lang.8ca68982.js";const I={formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001",options:y(C)},{field:"company_title",type:"input",placeholder:"\u516C\u53F8"},{field:"card_title",type:"input",placeholder:"\u5361\u7C7B\u578B"},{field:"good_code",type:"input",placeholder:"\u5546\u54C1\u7F16\u7801"}]},h=I,G=[{label:"\u5546\u54C1\u7F16\u53F7",prop:"good_code",width:160,showOverflowTooltip:!0},{prop:"status",label:"\u72B6\u6001",...m(C)},{prop:"company_title",label:"\u516C\u53F8\u540D\u79F0"},{prop:"card_title",label:"\u5361\u7C7B\u578B"},{label:"\u5546\u54C1\u7C7B\u578B",prop:"type",width:95,showOverflowTooltip:!0,...m(O,"type")},{label:"\u56FE\u7247",prop:"good_cover_img",width:60,showOverflowTooltip:!0,...S("good_cover_img")},{label:"\u5546\u54C1\u540D\u79F0",prop:"good_name",minWidth:160},{label:"\u5355\u4F4D",prop:"unit",width:80,showOverflowTooltip:!0},{label:"\u8D77\u8BA2\u91CF",prop:"moq",width:80,showOverflowTooltip:!0},{label:"\u6B65\u957F",prop:"step",width:80,showOverflowTooltip:!0},{label:"\u552E\u4EF7",prop:"price",width:110,showOverflowTooltip:!0},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",width:155},{label:"\u64CD\u4F5C",fixed:"right",width:160,slot:"operation"}],V={title:"\u4F01\u4E1A\u5546\u54C1\u7BA1\u7406",columns:G,apis:{httpList:T,httpStatus:P,httpDelete:A}},W=V,mo=D({__name:"index",setup(j){const p="setComGood",{pageContentRef:u,handleResetClick:_,handleSearchClick:w}=k(void 0,void 0,h),l=E(null),{hasPermissionWithCode:g,permissions:B}=R(p);function a(s,e,r){l.value.show(s,e,r)}return(s,e)=>{const r=c("el-button"),v=c("PageAuth");return d(),f(v,{pageName:p},{default:i(()=>[n(o(F),{"form-config":o(h),onSearchBtnClick:o(w),onResetBtnClick:o(_)},{action:i(()=>[o(g)("002")?(d(),f(r,{key:0,type:"primary",onClick:e[0]||(e[0]=t=>a({},"","create"))},{default:i(()=>[N(" \u65B0\u589E ")]),_:1})):$("",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),n(o(b),{ref_key:"pageContentRef",ref:u,powers:o(B),"content-config":o(W),onPreviewBtnClick:e[1]||(e[1]=t=>a(t,t.id,"view"))},null,8,["powers","content-config"]),n(x,{ref_key:"modelRef",ref:l,onReload:e[2]||(e[2]=t=>o(u).onSearch())},null,512)]),_:1})}}});export{mo as default};
