import{al as m,aT as C,_,d as f,n as h,aP as g,aL as y,o as v,c as b,l as s,C as w,b as B,u as e,bt as F,bu as k,by as x}from"./index.56c69f5a.js";import{g as R}from"./index.31f6223c.js";import{r as a}from"./columnRenderHelper.6c05b86e.js";import{u as N}from"./use-page-search.27df6d7f.js";function P(o){const u=o.split(",");return m(C,{src:u[0],previewTeleported:!0,previewSrcList:[u[0]],style:{height:"20px",width:"20px"}})}const S=[{value:"0",label:"\u975E\u5E93\u5B58\u5546\u54C1"},{value:"1",label:"\u5E93\u5B58\u5546\u54C1"}],E=[{label:"\u5546\u54C1\u7F16\u7801",prop:"spuCode",width:150},{label:"\u5546\u54C1\u540D\u79F0",prop:"good_name",minWidth:195},{label:"\u5546\u54C1\u7C7B\u578B",width:120,cellRenderer({row:o}){var u;return Number(o.isZx)==1?"\u53CD\u9988\u5546\u54C1":((u=S.find(({value:t})=>t===String(o.is_stock)))==null?void 0:u.label)||"--"}},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",width:175,...a("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",width:195,...a("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E3B\u56FE",prop:"good_img",width:55,cellRenderer:({row:o})=>P(o.good_img)},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],I={columns:E,companyProp:"supplierNo",apis:{httpList:R}},i={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"}]}},{field:"companyNo",type:"business-query"}]};const D={class:"main role"},L={"w-full":""},M=f({__name:"index",setup(o){const u=h();g(!1);const{permissions:t,hasPermissionWithCode:r}=y("supplyModifyRecord"),{pageContentRef:l,handleResetClick:p,handleSearchClick:c}=N(void 0,void 0,i);function d(n){u.push({path:"/supplyInvoiceSaleSettings/supplyModifyRecordDetail",query:{spuCode:n.spuCode}})}return(n,q)=>(v(),b("div",D,[s(x,{"is-show":e(r)("001")},{default:w(()=>[B("div",L,[s(e(F),{"form-config":e(i),onSearchBtnClick:e(c),onResetBtnClick:e(p)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),s(e(k),{ref_key:"pageContentRef",ref:l,powers:e(t),"content-config":e(I),onPreviewBtnClick:d},null,8,["powers","content-config"])])]),_:1},8,["is-show"])]))}});var V=_(M,[["__scopeId","data-v-e0ebdec4"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supplyInvoiceSaleSettings/supplyModifyRecord/index.vue"]]);export{V as default};
