index.d4fb82.js 5.5 KB

123456789101112131415161718192021222324252627
  1. import{al as l,aS as w,ae as D,aT as y,_ as b,d as x,w as p,aN as R,n as S,ah as A,o as k,c as P,j as r,C as c,h as I,l as u,bu as N,bv as U,a as n,bz as M}from"./index.js";import{u as T}from"./use-page-search.25c4eb03.js";import{a as f}from"./configs.4674be10.js";import{h as W}from"./index.4bc73c51.js";import{r as m}from"./columnRenderHelper.e135e093.js";import z from"./index.4a5a75.js";import L from"./index.16360f.js";import"./tootip.c3a9b0a1.js";import"./execl-upload.6821a9a0.js";import"./xlsx.ed122d16.js";import"./index.86c9c740.js";const C={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"},{value:"creater",label:"\u521B\u5EFA\u4EBA"}]}},{field:"companyNo",type:"business-query"},{field:"status",type:"select",placeholder:"\u72B6\u6001",options:f}]};function O(e){const t=e.split(",");return l(y,{src:t[0],previewTeleported:!0,previewSrcList:[t[0]],style:{height:"20px",width:"20px"}})}const Y=[{type:"selection",width:40,align:"center"},{label:"\u5546\u54C1\u7F16\u7801",prop:"spuCode",width:150},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",width:175,...m("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",width:195,...m("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u5546\u54C1\u540D\u79F0",prop:"good_name",minWidth:195},{label:"\u4E3B\u56FE",prop:"good_img",width:55,cellRenderer:({row:e})=>O(e.good_img)},{label:"\u91C7\u8D2D\u7C7B\u76EE\u540D\u79F0",width:120,prop:"cgd_inv_cat_name"},{label:"\u91C7\u8D2D\u5F00\u7968\u5546\u54C1\u540D\u79F0",prop:"cgd_inv_good_name",width:165},{label:"\u91C7\u8D2D\u5F00\u7968\u7C7B\u76EE\u7A0E\u7387",prop:"cgd_inv_tax",width:165,cellRenderer({row:e}){return l("div",{},{default:()=>e.cgd_inv_tax?e.cgd_inv_tax:"--"})}},{label:"\u8D22\u52A1\u7C7B\u76EE\u540D\u79F0",width:120,prop:"inv_cat_name"},{label:"\u8D22\u52A1\u5F00\u7968\u5546\u54C1\u540D\u79F0",prop:"inv_good_name",width:165},{label:"\u8D22\u52A1\u5F00\u7968\u7C7B\u76EE\u7A0E\u7387",prop:"inv_tax",width:165,cellRenderer({row:e}){return l("div",{},{default:()=>e.inv_tax?e.inv_tax:"--"})}},{label:"\u72B6\u6001",prop:"status",width:150,cellRenderer:({row:e})=>l(w,{type:e.status==="2"?"success":""},{default:()=>{var t;return(t=f.find(a=>a.value===String(e.status)))==null?void 0:t.label}})},{label:"\u589E\u503C\u7A0E\u7BA1\u7406\u5185\u5BB9",prop:"addTax",width:"140px"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:140,formatter:({addtime:e})=>D(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u521B\u5EFA\u4EBA",width:80,prop:"creater"},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],j={title:"\u9500\u552E\u6210\u672C\u7C7B\u76EE\u8BBE\u7F6E",superUserNoPerview:!0,companyProp:"supplierNo",columns:Y,apis:{httpList:(e={})=>W({...e,isChild:0})}};const V={class:"main role"},q={"w-full":""},G=x({__name:"index",setup(e){const t=p(null),a=p(null),{permissions:E,hasPermissionWithCode:B}=R("supplyConsultingCost"),h=p([]),{pageContentRef:s,handleResetClick:_,handleSearchClick:g}=T(void 0,void 0,C),{push:F}=S();A();function v(d){F({path:"/supplyInvoiceSaleSettings/supplyConsultingCostDetail",query:{id:d}})}return(d,o)=>(k(),P("div",V,[r(M,{"is-show":u(B)("001")},{default:c(()=>[I("div",q,[r(u(N),{"form-config":u(C),onSearchBtnClick:u(g),onResetBtnClick:u(_)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),r(u(U),{ref_key:"pageContentRef",ref:s,powers:u(E),"content-config":u(j),onPreviewBtnClick:o[0]||(o[0]=({spuCode:i})=>v(i)),onSelectionChange:o[1]||(o[1]=i=>h.value=i)},{header:c(()=>[n(` <ElButton\r
  2. size="small"\r
  3. v-if="hasPermissionWithCode('041')"\r
  4. :icon="useRenderIcon('arrow-down-line')"\r
  5. @click="() => onDownloadTemplate(true)"\r
  6. >\u4E0B\u8F7D\u91C7\u8D2D\u8BBE\u7F6E\u7C7B\u76EE\u6A21\u677F</ElButton\r
  7. > `),n(` <ElButton\r
  8. size="small"\r
  9. type="primary"\r
  10. v-if="hasPermissionWithCode('042') && !isSuperUser"\r
  11. :icon="useRenderIcon('arrow-up-line')"\r
  12. @click="() => procureUploadModalRef.onDisplay()"\r
  13. >\u6279\u91CF\u5BFC\u5165\u91C7\u8D2D\u8BBE\u7F6E\u7C7B\u76EE\u7ED3\u679C</ElButton\r
  14. > `),n(` <ElButton\r
  15. size="small"\r
  16. v-if="hasPermissionWithCode('036')"\r
  17. :icon="useRenderIcon('arrow-down-line')"\r
  18. @click="() => onDownloadTemplate()"\r
  19. >\u4E0B\u8F7D\u8D22\u52A1\u8BBE\u7F6E\u7C7B\u76EE\u6A21\u677F</ElButton\r
  20. > `),n(` <ElButton\r
  21. size="small"\r
  22. type="primary"\r
  23. :icon="useRenderIcon('arrow-up-line')"\r
  24. v-if="hasPermissionWithCode('037') && !isSuperUser"\r
  25. @click="() => execlUploadModalRef.onDisplay()"\r
  26. >\u6279\u91CF\u5BFC\u5165\u8D22\u52A1\u8BBE\u7F6E\u7C7B\u76EE\u7ED3\u679C</ElButton\r
  27. > `)]),_:1},8,["powers","content-config"]),r(z,{ref_key:"execlUploadModalRef",ref:t,onOnSuccess:o[2]||(o[2]=()=>u(s).onSearch())},null,512),r(L,{ref_key:"procureUploadModalRef",ref:a,onOnSuccess:o[3]||(o[3]=()=>u(s).onSearch())},null,512)])]),_:1},8,["is-show"])]))}});var re=b(G,[["__scopeId","data-v-00a5e456"],["__file","C:/Users/63107/Desktop/projects/settle-vue3/src/views/supplyInvoiceSaleSettings/supplyConsultingCost/index.vue"]]);export{re as default};