index.526017bf.js 3.6 KB

1
  1. import{al as x,aS as S,_ as D,d as E,w as P,n as k,aL as R,bv as w,r as O,o as r,G as p,C as a,l as d,u as e,bC as T,aW as m,M as I,a as h,J as W,bD as L}from"./index.56c69f5a.js";import{s as B}from"./_options.04c95e2d.js";import{o as C,h as V}from"./status.2df4810d.js";import{a as $}from"./index.dd812b2f.js";import{a as f,r as y}from"./columnRenderHelper.6c05b86e.js";import{t as j}from"./_options.cdd82887.js";import{u as q}from"./use-page-search.27df6d7f.js";import{d as z}from"./index.2e257471.js";const G=[{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 x(S,null,{default:()=>{var t;return((t=B.find(({value:u})=>u===String(o.status)))==null?void 0:t.label)||"--"}})}},{label:"\u4E1A\u52A1\u7C7B\u578B",width:95,...f(C,"is_comon")},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...f(V,"has_account")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",minWidth:175,...y("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8:")},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",minWidth:175,...y("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"}],H={title:"\u901A\u7528\u8BA2\u5355\u5BF9\u8D26\u7BA1\u7406",columns:G,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:C},{span:4,field:"tag_id",type:"select",placeholder:"\u6807\u7B7E\u72B6\u6001",options:j},{span:4,field:"status",type:"select",placeholder:"\u72B6\u6001",options:B}]},J=E({__name:"index",setup(o){const t="currentcyOrderRecord",u=P(),{push:i}=k(),{hasPermissionWithCode:c,permissions:M}=R(t),g="/InvoiceSales/currentcyOrderRecordDetail",_={pageSearchHook:()=>q(void 0,void 0,F)},v={content:{preview:({payNo:s})=>i(`${g}?id=${s}`)}},{run:A}=w({success:()=>u.value.onSearch()}),b=s=>A(z({payNo:s,status:"4"}));return(s,l)=>{const N=O("ElTooltip");return r(),p(e(L),{pageName:t},{default:a(()=>[d(e(T),{hooks:_,events:v,contentConfig:e(H),searchConfig:e(F)},{content_header:a(()=>[e(c)("002")?(r(),p(e(m),{key:0,size:"small",type:"primary",onClick:l[0]||(l[0]=()=>e(i)("/InvoiceSales/currentcyOrderRecordDetail"))},{default:a(()=>[I(" \u6DFB\u52A0 ")]),_:1})):h("v-if",!0)]),content_action:a(n=>[d(N,{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(m),{key:0,type:"primary",link:"",text:"",icon:e(W)("refresh-right"),onClick:()=>b(n.payNo)},null,8,["icon","onClick"])):h("v-if",!0)]),_:2},1024)]),_:1},8,["contentConfig","searchConfig"])]),_:1})}}});var oe=D(J,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/currentcyOrderRecord/index.vue"]]);export{oe as default};