import{af as x,ce as S,dS as c,dR as B,dT as k,cA as d,_ as D,d as E,n as P,k as b,c9 as R,d3 as w,r as O,o as i,A as p,y as n,h as m,i as e,dr as T,dm as h,H as I,a as f,D as W,ds as L,cC as V,dX as H}from"./index.js";import{s as g}from"./_options.61c25632.js";import{a as $}from"./index.d650a936.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:t}){return x(S,null,{default:()=>{var o;return((o=g.find(({value:u})=>u===String(t.status)))==null?void 0:o.label)||"--"}})}},{label:"\u4E1A\u52A1\u7C7B\u578B",width:95,...c(B,"is_comon")},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...c(k,"has_account")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",minWidth:175,...d("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8:")},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",minWidth:175,...d("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:t=>$({...t,noRela:!0})},payProps:{prop:"payNo",type:"1"},returnProps:{prop:"payNo",type:"2"},showPayTagFn:({status:t,is_comon:o},u)=>String(t)==="2"&&u.includes("013")&&String(o)==="1",showReturnTagFn:({status:t,is_comon:o},u)=>String(t)==="2"&&u.includes("014")&&String(o)==="1"},y={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}]},F="currentcyOrderRecord",X="/InvoiceSales/currentcyOrderRecordDetail",G=E({__name:"index",setup(t){const o=P(),{push:u}=b(),{hasPermissionWithCode:l,permissions:J}=R(F),C={pageSearchHook:()=>V(void 0,void 0,y)},_={content:{preview:({payNo:a})=>u(`${X}?id=${a}`)}},{run:A}=w({success:()=>o.value.onSearch()}),v=a=>A(H({payNo:a,status:"4"}));return(a,s)=>{const N=O("ElTooltip");return i(),p(e(L),{pageName:F},{default:n(()=>[m(e(T),{hooks:C,events:_,contentConfig:e(z),searchConfig:e(y)},{content_header:n(()=>[e(l)("002")?(i(),p(e(h),{key:0,size:"small",type:"primary",onClick:s[0]||(s[0]=()=>e(u)("/InvoiceSales/currentcyOrderRecordDetail"))},{default:n(()=>s[1]||(s[1]=[I(" \u6DFB\u52A0 ")])),_:1})):f("v-if",!0)]),content_action:n(r=>[m(N,{placement:"top",content:"\u64A4\u9500\u5BF9\u8D26\u7533\u8BF7"},{default:n(()=>[(String(r.status)==="1"||String(r.status)==="2")&&e(l)("022")&&String(r.is_comon)==="1"?(i(),p(e(h),{key:0,type:"primary",link:"",text:"",icon:e(W)("refresh-right"),onClick:()=>v(r.payNo)},null,8,["icon","onClick"])):f("v-if",!0)]),_:2},1024)]),_:1},8,["contentConfig","searchConfig"])]),_:1})}}});var Y=D(G,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/currentcyOrderRecord copy/index.vue"]]);export{Y as default};
