1 |
- import{cB as nu,bb as tu,am as B,bP as U,aR as f,cV as L,bO as z,cJ as lu,cK as ou,_ as au,d as ru,aM as iu,x as E,ai as su,bc as O,p as pu,r as y,o as p,G as F,D as a,l as i,m as u,c as cu,F as Fu,J as m,M as A,a as c,cA as du,bd as Bu,cz as fu,aZ as g}from"./index.js";import Eu from"./post-modal.4530ee.js";import mu from"./index.1ceb05.js";import{h as Au}from"./export.fc82d641.js";import vu from"./approval-modal.e3703c.js";import Du from"./back-modal.b4ceaf.js";import{u as v,w as I}from"./xlsx.ed122d16.js";import yu from"./invoice-modal.ae81de.js";import"./execl-upload.7c83427b.js";import"./status.4c13d767.js";import"./verification.611d3025.js";import"./index.bf16817a.js";const Cu=[{value:"1",label:"\u91D1\u7A0E\u5F00\u7968\u91D1\u7A0E\u9A8C\u7968"},{value:"2",label:"\u91D1\u7A0E\u5F00\u7968\u7EBF\u4E0B\u9A8C\u7968"},{value:"3",label:"\u7EBF\u4E0B\u5F00\u7968\u7EBF\u4E0B\u9A8C\u7968"}],hu=[{type:"selection",width:40,align:"center",fixed:"left"},{label:"\u53D1\u7968\u7533\u8BF7\u7F16\u7801",prop:"invNo",width:150},{label:"\u4E1A\u52A1\u4F01\u4E1A\u516C\u53F8",prop:"inv_out",width:180,...tu("inv_out","inv_company","\u4E1A\u52A1\u4F01\u4E1A\u516C\u53F8\u7F16\u7801:")},{label:"\u5BA2\u6237\u516C\u53F8\u540D\u79F0",prop:"buyer_title",width:175},{label:"\u7533\u8BF7\u989D\u5EA6",prop:"inv_value",width:110},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u5E73\u53F0\u7C7B\u578B",prop:"platform_type",width:110,cellRenderer:({row:t})=>B(f,null,{default:()=>{var e;return((e=U.find(l=>l.value==t.platform_type+""))==null?void 0:e.label)||"--"}})},{label:"\u662F\u5426\u6709\u5907\u6CE8",width:80,cellRenderer:({row:t})=>B(f,null,{default:()=>t.exam_remark&&t.exam_remark.length>0?"\u662F":"\u5426"})},{label:"\u72B6\u6001",prop:"status",width:125,cellRenderer:({row:t})=>B(f,null,{default:()=>{var e;return((e=L.find(l=>l.value==t.status+""))==null?void 0:e.label)||"--"}})},{label:"\u5F00\u7968\u65B9\u5F0F",prop:"open_type",width:135,cellRenderer:({row:t})=>B(f,null,{default:()=>{var e;return((e=Cu.find(l=>l.value==t.open_type+""))==null?void 0:e.label)||"\u672A\u9009\u62E9"}})},{field:"is_ticket",label:"\u662F\u5426\u652F\u6301\u91D1\u7A0E",width:90,cellRenderer({row:t}){return B(f,null,{default:()=>String(t.is_ticket)==="2"?"\u4E0D\u652F\u6301":String(t.is_ticket)==="1"?"\u652F\u6301":"--"})}},{label:"\u53D1\u7968\u7C7B\u578B",prop:"status",width:150,cellRenderer:({row:t})=>B(f,null,{default:()=>{var e;return((e=z.find(l=>l.value==t.inv_type+""))==null?void 0:e.label)||"--"}})},{label:"\u53D1\u7968\u53F7\u7801",prop:"inv_number",width:130},{label:"\u53D1\u7968\u4EE3\u7801",prop:"inv_code",width:100},{label:"\u8D2D\u4E70\u65B9\u62AC\u5934\u72B6\u6001",prop:"seller_check",width:130,cellRenderer:({row:t})=>B(f,null,{default:()=>{var e;return((e=lu.find(l=>l.value==t.seller_check+""))==null?void 0:e.label)||"--"}})},{label:"\u9500\u552E\u65B9\u62AC\u5934\u72B6\u6001",prop:"buyer_check",width:130,cellRenderer:({row:t})=>B(f,null,{default:()=>{var e;return((e=ou.find(l=>l.value==t.buyer_check+""))==null?void 0:e.label)||"--"}})},{label:"\u521B\u5EFA\u65F6\u95F4",width:140,prop:"addtime"},{label:"\u64CD\u4F5C",fixed:"right",width:140,slot:"operation"}],_u={title:"\u53D1\u7968\u7533\u8BF7\u7BA1\u7406",columns:hu,superUserNoAction:!0,companyProp:"inv_out",apis:{httpList:nu,httpAdd:!0}},T={colLayout:{span:8},formItems:[{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u7533\u8BF7\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7533\u8BF7\u7ED3\u675F\u65F6\u95F4"}},{field:"status",type:"select",placeholder:"\u72B6\u6001",span:4,options:L},{field:"platform_type",type:"select",placeholder:"\u5E73\u53F0\u7C7B\u578B",span:4,options:U},{field:"buyer_name",type:"input",placeholder:"\u5BA2\u6237\u540D\u79F0"},{field:"invNo",type:"input",placeholder:"\u53D1\u7968\u7533\u8BF7\u7F16\u7801"},{field:"inv_number",type:"input",placeholder:"\u53D1\u7968\u53F7\u7801"},{field:"c",type:"range",otherOptions:{startProp:"inv_lower",endProp:"inv_uper",startPlaceholder:"\u7533\u8BF7\u989D\u5EA6\u4E0A\u9650",endPlaceholder:"\u7533\u8BF7\u989D\u5EA6\u4E0B\u9650"}},{field:"inv_type",type:"select",placeholder:"\u53D1\u7968\u7C7B\u578B",options:z,span:4},{field:"apply_name",type:"input",placeholder:"\u7533\u8BF7\u4EBA",span:4}]},ku={\u53D1\u7968\u7533\u8BF7\u7F16\u7801:"INV20210712w0vHkk",\u53D1\u7968\u7C7B\u578B:"\u589E\u503C\u7A0E\u7535\u5B50\u666E\u901A\u53D1\u7968",\u53D1\u7968\u4EE3\u7801:"011002000711",\u53D1\u7968\u53F7\u7801:"51678540",\u4EF7\u7A0E\u5408\u8BA1:"4900",\u53D1\u7968\u7A0E\u524D\u91D1\u989D:"",\u6821\u9A8C\u7801:"",\u5F00\u7968\u65E5\u671F:"2020/12/17 0:00:00"},gu=ru({__name:"index",setup(t){const e="invoiceApply",{hasPermissionWithCode:l}=iu(e),C=E(!1),b="/InvoiceSales/invoiceApplyDetail",w=E(null),P=E(null),S=E(null),x=E(null),R=E(null),{isSuperUser:D}=su(),d=E(null),{run:N}=O({success:()=>d.value.onSearch()}),{run:V}=O({success:()=>d.value.onSearch()}),Y=({invNo:o})=>V(du({invNo:o,status:"7"})),{push:_}=pu(),h=E([]),j={pageSearchHook:()=>Bu(void 0,void 0,T)};function Q(o){N(fu(o))}const $={content:{preview:({invNo:o})=>_(`${b}?id=${o}`),create:()=>_(b)}};async function H(){const{total:o}=d.value.getPagination();if(o>50){g.warning("\u5BFC\u51FA\u53D1\u7968\u7533\u8BF7\u4E0D\u5141\u8BB8\u8D85\u8FC750\u6761");return}await Au({url:"/ipe",name:"\u5F00\u7968\u4FE1\u606F",onStart:()=>C.value=!0,onSuccess:()=>C.value=!1,onFail:()=>C.value=!1,params:{...d.value.getBasicParams()}})}function J(){if(h.value.length===0){g.warning('\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u6761"\u5F85\u8D22\u52A1\u5BA1\u6838"\u7684\u53D1\u7968\u7533\u8BF7');return}if(!h.value.every(({status:o})=>String(o)==="1")){g.warning('\u8BF7\u9009\u62E9\u72B6\u6001\u4E3A"\u5F85\u8D22\u52A1\u5BA1\u6838"\u7684\u53D1\u7968\u7533\u8BF7');return}x.value.onDisplay(h.value)}function W(){const o=v.book_new(),n=v.json_to_sheet([ku]);v.book_append_sheet(o,n,"sheet"),I(o,"\u5F00\u7968\u6A21\u677F.xlsx",{bookType:"xlsx"})}function q(){const o=v.book_new(),n=v.json_to_sheet([{\u5206\u7EC4:"1",\u53D1\u7968\u7C7B\u578B:"\u7535\u5B50\u53D1\u7968\uFF08\u589E\u503C\u7A0E\u4E13\u7528\u53D1\u7968\uFF09",\u7535\u5B50\u90AE\u7BB1:"shangyu1@wanyuhengong.cn",\u8BA2\u5355\u7F16\u53F7:"FQR2410150940395002",\u8BA2\u5355\u5E73\u53F0\u7C7B\u578B:"toB",\u5F00\u7968\u91D1\u989D:"100",\u5E73\u53F0\u91C7\u8D2DPO:"PO-YL31-2024-1596"},{\u5206\u7EC4:"2",\u53D1\u7968\u7C7B\u578B:"\u7535\u5B50\u53D1\u7968\uFF08\u589E\u503C\u7A0E\u4E13\u7528\u53D1\u7968\uFF09",\u7535\u5B50\u90AE\u7BB1:"shangyu2@wanyuhengong.cn",\u8BA2\u5355\u7F16\u53F7:"FQR2410150940395001",\u8BA2\u5355\u5E73\u53F0\u7C7B\u578B:"toB",\u5F00\u7968\u91D1\u989D:"300",\u5E73\u53F0\u91C7\u8D2DPO:"PO-YL32-2024-1696"},{\u5206\u7EC4:"3",\u53D1\u7968\u7C7B\u578B:"\u7535\u5B50\u53D1\u7968\uFF08\u589E\u503C\u7A0E\u4E13\u7528\u53D1\u7968\uFF09",\u7535\u5B50\u90AE\u7BB1:"shangyu3@wanyuhengong.cn",\u8BA2\u5355\u7F16\u53F7:"FQR2410150940399002",\u8BA2\u5355\u5E73\u53F0\u7C7B\u578B:"toC",\u5F00\u7968\u91D1\u989D:"900",\u5E73\u53F0\u91C7\u8D2DPO:"PO-YL31-2024-1597"}]);v.book_append_sheet(o,n,"sheet"),I(o,"\u6279\u91CF\u521B\u5EFA\u53D1\u7968\u7533\u8BF7\u6A21\u677F(\u901A\u7528\u8BA2\u5355\u5143\u9686\u5B9A\u5236).xlsx",{bookType:"xlsx"})}return(o,n)=>{const s=y("ElButton"),M=y("ElTooltip"),G=y("ElPopconfirm"),K=y("PageContainer"),Z=y("PageAuth");return p(),F(Z,{pageName:e},{default:a(()=>[i(K,{hooks:j,events:$,contentConfig:u(_u),"search-config":u(T),"get-content-ref":r=>d.value=r,onContentSelectChange:n[4]||(n[4]=r=>h.value=r)},{content_header:a(()=>[u(l)("069")?(p(),cu(Fu,{key:0},[u(D)?c("v-if",!0):(p(),F(s,{key:0,size:"small",icon:u(m)("arrow-up-line"),onClick:n[0]||(n[0]=r=>u(_)("/InvoiceSales/batchImportYunlong"))},{default:a(()=>[A(" \u6279\u91CF\u521B\u5EFA\u53D1\u7968\u7533\u8BF7(\u901A\u7528\u8BA2\u5355\u5143\u9686\u5B9A\u5236) ")]),_:1},8,["icon"])),i(s,{size:"small",icon:u(m)("arrow-down-line"),onClick:q},{default:a(()=>[A(" \u4E0B\u8F7D\u6279\u91CF\u521B\u5EFA\u53D1\u7968\u7533\u8BF7\u6A21\u677F(\u901A\u7528\u8BA2\u5355\u5143\u9686\u5B9A\u5236) ")]),_:1},8,["icon"])],64)):c("v-if",!0),u(l)("040")&&!u(D)?(p(),F(s,{key:1,size:"small",onClick:J},{default:a(()=>[A(" \u8D22\u52A1\u6279\u91CF\u5BA1\u6838(\u52FE\u9009) ")]),_:1})):c("v-if",!0),u(l)("026")?(p(),F(s,{key:2,icon:u(m)("arrow-up-line"),size:"small",loading:C.value,onClick:n[1]||(n[1]=()=>H())},{default:a(()=>[A("\u5F00\u7968\u4FE1\u606F\u5BFC\u51FA")]),_:1},8,["icon","loading"])):c("v-if",!0),u(l)("027")?(p(),F(s,{key:3,icon:u(m)("arrow-down-line"),size:"small",onClick:n[2]||(n[2]=()=>W())},{default:a(()=>[A("\u4E0B\u8F7D\u53D1\u7968\u4FE1\u606F\u5BFC\u5165\u6A21\u677F")]),_:1},8,["icon"])):c("v-if",!0),c(` v-if="!isSuperUser && hasPermissionWithCode('028')" `),i(s,{onClick:n[3]||(n[3]=()=>S.value.onDisplay()),size:"small"},{default:a(()=>[A("\u6279\u91CF\u5BFC\u5165\u8D22\u52A1\u5F00\u7968\u7ED3\u679C\uFF08\u53D1\u7968\u7533\u8BF7\uFF09")]),_:1})]),content_action:a(({status:r,post_code:X,invNo:k,inv_type:uu,inv_number:eu})=>[!u(D)&&String(r)==="3"&&!X?(p(),F(M,{key:0,content:"\u586B\u5199\u7269\u6D41",placement:"top"},{default:a(()=>[i(s,{text:"",type:"primary",style:{"margin-left":"0px"},icon:u(m)("promotion"),onClick:()=>w.value.onDisplay(k)},null,8,["icon","onClick"])]),_:2},1024)):c("v-if",!0),(String(r)==="1"||String(r)==="5")&&u(l)("010")&&!u(D)?(p(),F(G,{key:1,placement:"top",title:"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u5F00\u7968\u7533\u8BF7?",onConfirm:()=>Y({invNo:k})},{reference:a(()=>[i(s,{text:"",type:"primary",style:{"margin-left":"0px"},icon:u(m)("refresh-right")},null,8,["icon"])]),_:2},1032,["onConfirm"])):c("v-if",!0),i(M,{content:"\u4FEE\u6539\u53D1\u7968\u4FE1\u606F",placement:"top"},{default:a(()=>[String(r)==="5"&&u(l)("005")&&!u(D)?(p(),F(s,{key:0,text:"",style:{"margin-left":"0px"},icon:u(m)("edit"),type:"primary",onClick:()=>R.value.onDisplay(uu,k)},null,8,["icon","onClick"])):c("v-if",!0)]),_:2},1024),String(r)==="4"||String(r)==="6"?(p(),F(s,{key:2,link:"",type:"primary",icon:u(m)("scaletooriginal"),onClick:()=>P.value.open(eu)},null,8,["icon","onClick"])):c("v-if",!0)]),_:1},8,["contentConfig","search-config","get-content-ref"]),i(Eu,{ref_key:"postModalRef",ref:w,onPostSave:Q},null,512),i(vu,{ref_key:"approvalModalRef",ref:x,onOnBatchApprovalComplete:n[5]||(n[5]=()=>d.value.onSearch())},null,512),i(mu,{ref_key:"execlUploadRef",ref:S,onOnSuccess:n[6]||(n[6]=()=>d.value.onSearch())},null,512),i(Du,{ref_key:"backModalRef",ref:R,onRefresh:n[7]||(n[7]=()=>d.value.onSearch())},null,512),i(yu,{ref_key:"invModalRef",ref:P},null,512)]),_:1})}}});var zu=au(gu,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/invoiceApply/index.vue"]]);export{zu as default};
|