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