index.06937f.js 3.2 KB

1
  1. import{am as v,aS as N,ci as p,bc as i,ch as h,cj as x,_ as E,d as P,n as S,w as D,ai as k,aO as O,bG as R,r as w,o as c,G as l,C as n,j as d,l as e,bS as I,c2 as T,J as W,a as L,bT as U,be as j,bY as G}from"./index.js";import{s as f}from"./_options.04c95e2d.js";import{a as V}from"./index.de21694d.js";import{t as $}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,...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,...i("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8:")},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",minWidth:175,...i("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=>V({...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:$},{span:4,field:"status",type:"select",placeholder:"\u72B6\u6001",options:f}]},J=P({__name:"index",setup(u){const o="currentcyOrderRecord",{push:a}=S(),r=D(null),{isSuperUser:y}=k(),{hasPermissionWithCode:F}=O(o),B="/InvoiceSales/currentcyOrderRecordDetail",_={pageSearchHook:()=>j(void 0,void 0,m)},C={content:{preview:({payNo:s})=>a(`${B}?id=${s}`),create:()=>a("/InvoiceSales/currentcyOrderRecordDetail")}},{run:g}=R({success:()=>r.value.onSearch()}),b=s=>g(G({payNo:s,status:"4"}));return(s,Y)=>{const A=w("ElTooltip");return c(),l(e(U),{pageName:o},{default:n(()=>[d(e(I),{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)?(c(),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/63107/Desktop/projects/settle-vue3/src/views/InvoiceSales/currentcyOrderRecord/index.vue"]]);export{X as default};