index.016c17.js 2.4 KB

1
  1. import{cA as n,af as f,cf as _,_ as C,d as h,k as m,cc as g,c9 as v,cC as w,o as y,c as B,h as s,y as k,e as F,i as e,d1 as b,d2 as x,dj as R}from"./index.js";import{f as S}from"./index.5a135550.js";function N(o){const u=o.split(",");return f(_,{src:u[0],previewTeleported:!0,previewSrcList:[u[0]],style:{height:"20px",width:"20px"},"text-key":"91110113MA028K5Y7Y"})}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: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:P,apis:{httpList:S}},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":""},A=h({__name:"index",setup(o){const u=m();g(!1);const{permissions:t,hasPermissionWithCode:r}=v("modifyRecord"),{pageContentRef:l,handleResetClick:c,handleSearchClick:p}=w(void 0,void 0,a);function d(i){u.push({path:"/InvoiceSaleSettings/modifyRecordDetail",query:{spuCode:i.spuCode}})}return(i,j)=>(y(),B("div",D,[s(R,{"is-show":e(r)("001")},{default:k(()=>[F("div",L,[s(e(b),{"form-config":e(a),onSearchBtnClick:e(p),onResetBtnClick:e(c)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),s(e(x),{ref_key:"pageContentRef",ref:l,powers:e(t),"content-config":e(I),onPreviewBtnClick:d},null,8,["powers","content-config"])])]),_:1},8,["is-show"])]))}});var O=C(A,[["__scopeId","data-v-0e2f2240"],["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSaleSettings/modifyRecord/index.vue"]]);export{O as default};