index.14e31e.js 2.4 KB

1
  1. import{bc as a,am as m,aT as _,_ as C,d as f,p as h,aG as g,aO as y,be as v,o as b,c as w,l as t,D as B,h as F,m as e,bE as k,bF as x,bO as R}from"./index.js";import{f as N}from"./index.5aded471.js";function S(o){const u=o.split(",");return m(_,{src:u[0],previewTeleported:!0,previewSrcList:[u[0]],style:{height:"20px",width:"20px"}})}const E=[{value:"0",label:"\u975E\u5E93\u5B58\u5546\u54C1"},{value:"1",label:"\u5E93\u5B58\u5546\u54C1"}],P=[{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=E.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})=>S(o.good_img)},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],D={columns:P,companyProp:"supplierNo",apis:{httpList:N}},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":""},O=f({__name:"index",setup(o){const u=h();g(!1);const{permissions:s,hasPermissionWithCode:l}=y("supplyModifyRecord"),{pageContentRef:r,handleResetClick:p,handleSearchClick:c}=v(void 0,void 0,i);function d(n){u.push({path:"/supplyInvoiceSaleSettings/supplyModifyRecordDetail",query:{spuCode:n.spuCode}})}return(n,G)=>(b(),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 A=C(O,[["__scopeId","data-v-e0ebdec4"],["__file","C:/Users/63107/Desktop/mine/settle-vue3/src/views/supplyInvoiceSaleSettings/supplyModifyRecord/index.vue"]]);export{A as default};