import{am as N,aR as D,cs as d,bb as m,cr as B,ct as E,_ as P,d as S,x as k,p as R,aM as O,bG as w,r as T,o as r,G as p,D as a,l as h,m as e,c2 as I,bY as f,M as W,a as y,J as L,c3 as V,bd as G,cx as M}from"./index.js";import{s as g}from"./_options.61c25632.js";import{a as $}from"./index.f522024d.js";import{t as j}from"./_options.cdd82887.js";const q=[{label:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",fixed:"left",minWidth:"150px"},{label:"\u5BF9\u8D26\u5355\u603B\u91D1\u989D",prop:"total_fee",width:"100px"},{label:"\u72B6\u6001",prop:"status",width:"120px",cellRenderer({row:o}){return N(D,null,{default:()=>{var t;return((t=g.find(({value:u})=>u===String(o.status)))==null?void 0:t.label)||"--"}})}},{label:"\u4E1A\u52A1\u7C7B\u578B",width:95,...d(B,"is_comon")},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...d(E,"has_account")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",minWidth:175,...m("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8:")},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",minWidth:175,...m("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u521B\u5EFA\u4EBA",prop:"apply_name",minWidth:"100px"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:"145px"},{label:"\u64CD\u4F5C",fixed:"right",width:140,slot:"operation"}],z={title:"\u901A\u7528\u8BA2\u5355\u5BF9\u8D26\u7BA1\u7406",columns:q,transformCompany:!0,companyProp:"supplierNo",apis:{httpList:o=>$({...o,noRela:!0})},payProps:{prop:"payNo",type:"1"},returnProps:{prop:"payNo",type:"2"},showPayTagFn:({status:o,is_comon:t},u)=>String(o)==="2"&&u.includes("013")&&String(t)==="1",showReturnTagFn:({status:o,is_comon:t},u)=>String(o)==="2"&&u.includes("014")&&String(t)==="1"},F={formItems:[{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"}},{field:"companyNo",type:"business-query"},{field:"payNo",type:"input",placeholder:"\u5BF9\u8D26\u7F16\u53F7"},{field:"is_comon",type:"select",placeholder:"\u4E1A\u52A1\u7C7B\u578B",span:4,options:B},{span:4,field:"tag_id",type:"select",placeholder:"\u6807\u7B7E\u72B6\u6001",options:j},{span:4,field:"status",type:"select",placeholder:"\u72B6\u6001",options:g}]},H=S({__name:"index",setup(o){const t="currentcyOrderRecord",u=k(),{push:i}=R(),{hasPermissionWithCode:c,permissions:J}=O(t),_="/InvoiceSales/currentcyOrderRecordDetail",C={pageSearchHook:()=>G(void 0,void 0,F)},b={content:{preview:({payNo:s})=>i(`${_}?id=${s}`)}},{run:x}=w({success:()=>u.value.onSearch()}),A=s=>x(M({payNo:s,status:"4"}));return(s,l)=>{const v=T("ElTooltip");return r(),p(e(V),{pageName:t},{default:a(()=>[h(e(I),{hooks:C,events:b,contentConfig:e(z),searchConfig:e(F)},{content_header:a(()=>[e(c)("002")?(r(),p(e(f),{key:0,size:"small",type:"primary",onClick:l[0]||(l[0]=()=>e(i)("/InvoiceSales/currentcyOrderRecordDetail"))},{default:a(()=>[W(" \u6DFB\u52A0 ")]),_:1})):y("v-if",!0)]),content_action:a(n=>[h(v,{placement:"top",content:"\u64A4\u9500\u5BF9\u8D26\u7533\u8BF7"},{default:a(()=>[(String(n.status)==="1"||String(n.status)==="2")&&e(c)("022")&&String(n.is_comon)==="1"?(r(),p(e(f),{key:0,type:"primary",link:"",text:"",icon:e(L)("refresh-right"),onClick:()=>A(n.payNo)},null,8,["icon","onClick"])):y("v-if",!0)]),_:2},1024)]),_:1},8,["contentConfig","searchConfig"])]),_:1})}}});var X=P(H,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/currentcyOrderRecord copy/index.vue"]]);export{X as default};
