1 |
- import{am as v,aR as N,cs as p,bb as c,cr as h,ct as x,_ as E,d as D,p as P,x as k,ai as S,aM as R,bG as O,r as I,o as i,G as l,D as n,l as d,m as e,c2 as w,bY as T,J as W,a as L,c3 as U,bd as G,c8 as V}from"./index.js";import{s as f}from"./_options.04c95e2d.js";import{a as $}from"./index.b44bf5c5.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:s})=>s===String(u.status)))==null?void 0:o.label)||"--"}})}},{label:"\u4E1A\u52A1\u7C7B\u578B",width:95,...p(h,"is_comon")},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...p(x,"has_account")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",minWidth:175,...c("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8:")},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",minWidth:175,...c("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"}},m={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}]},J=D({__name:"index",setup(u){const o="currentcyOrderRecord",{push:s}=P(),r=k(null),{isSuperUser:y}=S(),{hasPermissionWithCode:F}=R(o),B="/InvoiceSales/currentcyOrderRecordDetail",_={pageSearchHook:()=>G(void 0,void 0,m)},C={content:{preview:({payNo:a})=>s(`${B}?id=${a}`),create:()=>s("/InvoiceSales/currentcyOrderRecordDetail")}},{run:g}=O({success:()=>r.value.onSearch()}),b=a=>g(V({payNo:a,status:"4"}));return(a,M)=>{const A=I("ElTooltip");return i(),l(e(U),{pageName:o},{default:n(()=>[d(e(w),{hooks:_,events:C,searchConfig:e(m),contentConfig:e(H),"get-content-ref":t=>r.value=t},{content_action:n(t=>[d(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(),l(e(T),{key:0,link:"",text:"",type:"primary",icon:e(W)("refresh-right"),onClick:()=>b(t.payNo)},null,8,["icon","onClick"])):L("v-if",!0)]),_:2},1024)]),_:1},8,["searchConfig","contentConfig","get-content-ref"])]),_:1})}}});var X=E(J,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/currentcyOrderRecord/index.vue"]]);export{X as default};
|