import{cA as i,af as f,cf as _,_ as C,d as h,k as m,cc as g,c9 as y,cC as v,o as w,c as B,h as s,y as b,e as k,i as e,d1 as F,d2 as x,dj as R}from"./index.js";import{f as N}from"./index.49bb9470.js";function S(o){const u=o.split(",");return f(_,{src:u[0],previewTeleported:!0,previewSrcList:[u[0]],style:{height:"20px",width:"20px"},"text-key":"91110113MA028K5Y7Y"})}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:t})=>t===String(o.is_stock)))==null?void 0:u.label)||"--"}},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",width:175,...i("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",width:195,...i("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E3B\u56FE",prop:"good_img",width:55,cellRenderer:({row:o})=>S(o.good_img)},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],I={columns:E,companyProp:"supplierNo",apis:{httpList:N}},a={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":""},A=h({__name:"index",setup(o){const u=m();g(!1);const{permissions:t,hasPermissionWithCode:l}=y("supplyModifyRecord"),{pageContentRef:r,handleResetClick:p,handleSearchClick:c}=v(void 0,void 0,a);function d(n){u.push({path:"/supplyInvoiceSaleSettings/supplyModifyRecordDetail",query:{spuCode:n.spuCode}})}return(n,M)=>(w(),B("div",D,[s(R,{"is-show":e(l)("001")},{default:b(()=>[k("div",L,[s(e(F),{"form-config":e(a),onSearchBtnClick:e(c),onResetBtnClick:e(p)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),s(e(x),{ref_key:"pageContentRef",ref:r,powers:e(t),"content-config":e(I),onPreviewBtnClick:d},null,8,["powers","content-config"])])]),_:1},8,["is-show"])]))}});var G=C(A,[["__scopeId","data-v-e0ebdec4"],["__file","D:/work/jiesuan/settle-vue3/src/views/supplyInvoiceSaleSettings/supplyModifyRecord/index.vue"]]);export{G as default};
