index.08778859.js 2.4 KB

1
  1. import{al as m,aT as f,_ as C,d as _,n as h,aP as g,aL as v,o as w,c as b,l as s,C as y,b as B,u as e,bt as F,bu as k,by as x}from"./index.fd765376.js";import{g as R}from"./index.a71cd8eb.js";import{r as n}from"./columnRenderHelper.d64097c5.js";import{u as S}from"./use-page-search.414f397e.js";function N(o){const u=o.split(",");return m(f,{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:t})=>t===String(o.is_stock)))==null?void 0:u.label)||"--"}},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",width:175,...n("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",width:195,...n("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"}],I={columns:E,apis:{httpList:R}},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:"supplierNo",type:"supplier-query"}]};const D={class:"main role"},L={"w-full":""},q=_({__name:"index",setup(o){const u=h();g(!1);const{permissions:t,hasPermissionWithCode:r}=v("modifyRecord"),{pageContentRef:l,handleResetClick:p,handleSearchClick:c}=S(void 0,void 0,a);function d(i){u.push({path:"/InvoiceSaleSettings/modifyRecordDetail",query:{spuCode:i.spuCode}})}return(i,A)=>(w(),b("div",D,[s(x,{"is-show":e(r)("001")},{default:y(()=>[B("div",L,[s(e(F),{"form-config":e(a),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 W=C(q,[["__scopeId","data-v-0e2f2240"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSaleSettings/modifyRecord/index.vue"]]);export{W as default};