import{af as v,ce as N,dS as r,dR as h,dT as x,cA as p,_ as b,d as E,k as D,n as P,ab as k,c9 as S,d3 as R,r as O,o as i,A as c,y as n,h as l,i as e,dr as w,dm as I,D as T,a as W,ds as L,cC as U,dx as V}from"./index.js";import{s as f}from"./_options.04c95e2d.js";import{a as $}from"./index.d650a936.js";import{t as j}from"./_options.cdd82887.js";const q=[{prop:"payNo",fixed:"left",label:"\u5BF9\u8D26\u7F16\u53F7",minWidth:"150px"},{label:"\u5BF9\u8D26\u5355\u603B\u91D1\u989D",prop:"total_fee",width:"100px"},{label:"\u72B6\u6001",prop:"status",width:"120px",cellRenderer({row:u}){return v(N,null,{default:()=>{var o;return((o=f.find(({value:a})=>a===String(u.status)))==null?void 0:o.label)||"--"}})}},{label:"\u4E1A\u52A1\u7C7B\u578B",width:95,...r(h,"is_comon")},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...r(x,"has_account")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",minWidth:175,...p("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8:")},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",minWidth:175,...p("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:205,slot:"operation"}],H={title:"\u901A\u7528\u8BA2\u5355\u5BF9\u8D26\u7BA1\u7406",columns:q,transformCompany:!0,companyProp:"supplierNo",superUserNoAction:!0,apis:{httpList:u=>$({...u,noRela:!0}),httpAdd:!0},payProps:{prop:"payNo",type:"1"},returnProps:{prop:"payNo",type:"2"}},d={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:h},{span:4,field:"tag_id",type:"select",placeholder:"\u6807\u7B7E\u72B6\u6001",options:j},{span:4,field:"status",type:"select",placeholder:"\u72B6\u6001",options:f}]},m="currentcyOrderRecord",z="/InvoiceSales/currentcyOrderRecordDetail",G=E({__name:"index",setup(u){const{push:o}=D(),a=P(null),{isSuperUser:y}=k(),{hasPermissionWithCode:F}=S(m),B={pageSearchHook:()=>U(void 0,void 0,d)},_={content:{preview:({payNo:s})=>o(`${z}?id=${s}`),create:()=>o("/InvoiceSales/currentcyOrderRecordDetail")}},{run:C}=R({success:()=>a.value.onSearch()}),g=s=>C(V({payNo:s,status:"4"}));return(s,J)=>{const A=O("ElTooltip");return i(),c(e(L),{pageName:m},{default:n(()=>[l(e(w),{hooks:B,events:_,searchConfig:e(d),contentConfig:e(H),"get-content-ref":t=>a.value=t},{content_action:n(t=>[l(A,{placement:"top",content:"\u64A4\u9500\u5BF9\u8D26\u7533\u8BF7"},{default:n(()=>[(String(t.status)==="1"||String(t.status)==="2")&&e(F)("022")&&String(t.is_comon)==="1"&&!e(y)?(i(),c(e(I),{key:0,link:"",text:"",type:"primary",icon:e(T)("refresh-right"),onClick:()=>g(t.payNo)},null,8,["icon","onClick"])):W("v-if",!0)]),_:2},1024)]),_:1},8,["searchConfig","contentConfig","get-content-ref"])]),_:1})}}});var Y=b(G,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/currentcyOrderRecord/index.vue"]]);export{Y as default};
