import{bb as a,am as _,aS as m,_ as C,d as f,p as h,aP as g,aM as y,bd as b,o as v,c as w,l as t,D as B,h as F,m as e,bE as k,bF as x,bV as R}from"./index.js";import{f as S}from"./index.ab253282.js";function N(o){const u=o.split(",");return _(m,{src:u[0],previewTeleported:!0,previewSrcList:[u[0]],style:{height:"20px",width:"20px"}})}const P=[{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=P.find(({value:s})=>s===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})=>N(o.good_img)},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],D={columns:E,companyProp:"supplierNo",apis:{httpList:S}},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 I={class:"main role"},L={"w-full":""},M=f({__name:"index",setup(o){const u=h();g(!1);const{permissions:s,hasPermissionWithCode:l}=y("supplyModifyRecord"),{pageContentRef:r,handleResetClick:p,handleSearchClick:c}=b(void 0,void 0,i);function d(n){u.push({path:"/supplyInvoiceSaleSettings/supplyModifyRecordDetail",query:{spuCode:n.spuCode}})}return(n,V)=>(v(),w("div",I,[t(R,{"is-show":e(l)("001")},{default:B(()=>[F("div",L,[t(e(k),{"form-config":e(i),onSearchBtnClick:e(c),onResetBtnClick:e(p)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),t(e(x),{ref_key:"pageContentRef",ref:r,powers:e(s),"content-config":e(D),onPreviewBtnClick:d},null,8,["powers","content-config"])])]),_:1},8,["is-show"])]))}});var G=C(M,[["__scopeId","data-v-e0ebdec4"],["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supplyInvoiceSaleSettings/supplyModifyRecord/index.vue"]]);export{G as default};
