import{u as k}from"./usePermission.8064505c.js";import{_ as R,P as x}from"./page-content.e0c7af12.js";import{u as y}from"./use-page-search.0f272301.js";import{c as P,d as $}from"./shopStock.64721617.js";import{a as D,r as c}from"./column-helper.64ceba17.js";import{_ as L}from"./edit-dialog.vue_vue_type_script_setup_true_lang.2f53c83b.js";import{_ as O}from"./add-dialog.vue_vue_type_script_setup_true_lang.e5cc1308.js";import{F as S,b as A}from"./status.2b37e8be.js";import{_ as T}from"./ListModal.vue_vue_type_script_setup_true_lang.bd516856.js";import{a as I,r as a,b as C,c as h,j as g,h as p,f as r,u as e,x as N,l as M}from"./index.4d061c66.js";import"./btnList.6c44b4ef.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"./goodDetail.config.df7d45a7.js";import"./good.75e37e88.js";import"./pageListModal.b8e2dd01.js";import"./ladder-table.vue_vue_type_script_setup_true_lang.6b7448ff.js";const V={formItems:[{field:["inventory_start","inventory_end"],type:"range",otherOptions:{startPlaceholder:"\u5E93\u5B58\u8D77\u59CB\u503C",endPlaceholder:"\u5E93\u5B58\u7ED3\u675F\u503C",precision:0}},{field:"good_name",type:"input",placeholder:"\u5546\u54C1\u7F16\u53F7"},{field:"good_name",type:"input",placeholder:"\u5546\u54C1\u540D\u79F0"}]},_=V,W=[{prop:"good_code",label:"\u5546\u54C1\u7F16\u7801",width:140},{label:"\u56FE\u7247",prop:"good_cover_img",width:60,showOverflowTooltip:!0,...D("good_cover_img")},{label:"\u5546\u54C1\u540D\u79F0",prop:"good_name",minWidth:160},{prop:"inventory",label:"\u5E93\u5B58\u6570",width:"110px"},{label:"\u552E\u4EF7",prop:"price",width:110,showOverflowTooltip:!0},{label:"\u5355\u4F4D",prop:"unit",width:50,showOverflowTooltip:!0},{label:"\u8D77\u8BA2\u91CF",prop:"moq",width:60,showOverflowTooltip:!0},{label:"\u6B65\u957F",prop:"step",width:50,showOverflowTooltip:!0},{prop:"updatetime",label:"\u66F4\u65B0\u65F6\u95F4",width:"140px"},{label:"\u64CD\u4F5C",fixed:"right",width:110,slot:"operation"}],q={title:"\u5361\u7C7B\u578B\u7BA1\u7406",columns:W,apis:{httpList:P}},G=q,U={isHide:!0,formItems:[]},j=[{prop:"good_code",label:"\u5546\u54C1\u7F16\u7801",width:160},{label:"\u5546\u54C1\u540D\u79F0",prop:"good_name",minWidth:160},{prop:"before_inventory",label:"\u4FEE\u6539\u524D\u5E93\u5B58",width:"110px"},{prop:"flag",label:"\u4FEE\u6539\u65B9\u5F0F",...c(S,"flag"),width:"70px"},{prop:"after_inventory",label:"\u4FEE\u6539\u540E\u5E93\u5B58",width:"110px"},{prop:"source",label:"\u64CD\u4F5C\u6765\u6E90",...c(A,"source"),width:"110px"},{prop:"addtime",label:"\u64CD\u4F5C\u65F6\u95F4",width:"140px"}],H={title:"\u5361\u7C7B\u578B\u7BA1\u7406",notReuqiredInit:!0,columns:j,apis:{httpList:$}},z={title:"\u5E93\u5B58\u4FEE\u6539\u8BB0\u5F55",searchConfig:U,contentConfig:H},J=z,Eo=I({__name:"index",setup(K){const s="shopStock",{hasPermissionWithCode:F,permissions:w}=k(s),d=a(null),m=a(null),{pageContentRef:i,handleResetClick:B,handleSearchClick:E}=y(void 0,void 0,_),f=a(null);function v(n){f.value.show(n)}function l(n,o,u){u==="create"?m.value.show(n,o,u):d.value.show(n,o,u)}return(n,o)=>{const u=C("el-button"),b=C("PageAuth");return h(),g(b,{pageName:s},{default:p(()=>[r(e(R),{"form-config":e(_),onSearchBtnClick:e(E),onResetBtnClick:e(B)},{action:p(()=>[e(F)("002")?(h(),g(u,{key:0,type:"primary",onClick:o[0]||(o[0]=t=>l({},"","create"))},{default:p(()=>[N(" \u65B0\u589E ")]),_:1})):M("",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),r(e(x),{ref_key:"pageContentRef",ref:i,powers:e(w),"content-config":e(G),onPreviewBtnClick:o[1]||(o[1]=t=>l(t,t.id,"view")),onUpdateBtnClick:o[2]||(o[2]=t=>l(t,t.id,"edit")),onLogBtnClick:o[3]||(o[3]=({id:t})=>v(t))},null,8,["powers","content-config"]),r(O,{ref_key:"modelAddRef",ref:m,onReload:o[4]||(o[4]=t=>e(i).onSearch())},null,512),r(L,{ref_key:"modelEditRef",ref:d,onReload:o[5]||(o[5]=t=>e(i).onSearch())},null,512),r(e(T),{ref_key:"ListModalRef",ref:f,modalConfig:e(J)},null,8,["modalConfig"])]),_:1})}}});export{Eo as default};
