index.e8c7dc.js 5.4 KB

123456789101112131415161718192021222324252627
  1. import{bb as c,am as n,aR as D,ae as w,aS as y,_ as b,d as x,x as p,aM as R,bd as S,p as A,ai as k,o as P,c as I,l as r,D as m,h as N,m as u,bE as U,bF as M,a as l,bV as T}from"./index.js";import{a as E}from"./configs.8c6595cd.js";import{h as W}from"./index.e27c52c8.js";import L from"./index.97429c.js";import z from"./index.d2d2ca.js";import"./execl-upload.7c83427b.js";import"./xlsx.ed122d16.js";import"./index.24943c38.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:E}]};function O(e){const t=e.split(",");return n(y,{src:t[0],previewTeleported:!0,previewSrcList:[t[0]],style:{height:"20px",width:"20px"}})}const V=[{type:"selection",width:40,align:"center",fixed:"left"},{label:"\u5546\u54C1\u7F16\u7801",prop:"spuCode",width:150},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",width:175,...c("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",width:195,...c("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 n("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 n("div",{},{default:()=>e.inv_tax?e.inv_tax:"--"})}},{label:"\u72B6\u6001",prop:"status",width:150,cellRenderer:({row:e})=>n(D,{type:e.status==="2"?"success":""},{default:()=>{var t;return(t=E.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})=>w(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"}],Y={title:"\u9500\u552E\u6210\u672C\u7C7B\u76EE\u8BBE\u7F6E",superUserNoPerview:!0,companyProp:"supplierNo",columns:V,apis:{httpList:(e={})=>W({...e,isChild:0})}};const j={class:"main role"},q={"w-full":""},G=x({__name:"index",setup(e){const t=p(null),a=p(null),{permissions:f,hasPermissionWithCode:B}=R("supplyConsultingCost"),_=p([]),{pageContentRef:s,handleResetClick:h,handleSearchClick:g}=S(void 0,void 0,C),{push:F}=A();k();function v(d){F({path:"/supplyInvoiceSaleSettings/supplyConsultingCostDetail",query:{id:d}})}return(d,o)=>(P(),I("div",j,[r(T,{"is-show":u(B)("001")},{default:m(()=>[N("div",q,[r(u(U),{"form-config":u(C),onSearchBtnClick:u(g),onResetBtnClick:u(h)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),r(u(M),{ref_key:"pageContentRef",ref:s,powers:u(f),"content-config":u(Y),onPreviewBtnClick:o[0]||(o[0]=({spuCode:i})=>v(i)),onSelectionChange:o[1]||(o[1]=i=>_.value=i)},{header:m(()=>[l(` <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. > `),l(` <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. > `),l(` <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. > `),l(` <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(L,{ref_key:"execlUploadModalRef",ref:t,onOnSuccess:o[2]||(o[2]=()=>u(s).onSearch())},null,512),r(z,{ref_key:"procureUploadModalRef",ref:a,onOnSuccess:o[3]||(o[3]=()=>u(s).onSearch())},null,512)])]),_:1},8,["is-show"])]))}});var ue=b(G,[["__scopeId","data-v-00a5e456"],["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supplyInvoiceSaleSettings/supplyConsultingCost/index.vue"]]);export{ue as default};