index.84d92dda.js 3.0 KB

1
  1. import{aU as y,ac as C,al as A,aS as E,_ as g,d as v,n as b,aL as x,r as a,o as p,G as l,C as n,l as D,u as o,M as N,a as P}from"./index.811f3c32.js";import{h as O}from"./status.0f05917e.js";import{a as R,r as i}from"./columnRenderHelper.0e4091a8.js";import{t as k}from"./_options.cdd82887.js";import{u as w}from"./use-page-search.bc3d7101.js";const d=[{value:"1",label:"\u4E70\u65B9\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{value:"2",label:"\u5BA1\u6838\u6210\u529F"},{value:"3",label:"\u4E70\u65B9\u9A73\u56DE"},{value:"4",label:"\u5DF2\u64A4\u9500\u5BF9\u8D26"}],{VITE_PROXY_USER_REAL:S}=C(),I=`${S}/admin/`,L=u=>y.request("post",`${I}paylist`,{data:u}),T=[{label:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",fixed:"left",minWidth:"150px"},{label:"\u5BF9\u8D26\u5355\u603B\u91D1\u989D",prop:"dzTotalAmount",width:"100px"},{label:"\u72B6\u6001",prop:"status",width:"120px",cellRenderer({row:u}){return A(E,null,{default:()=>{var e;return((e=d.find(({value:t})=>t===String(u.status)))==null?void 0:e.label)||"--"}})}},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...R(O,"has_account")},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",minWidth:175,...i("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",minWidth:175,...i("companyNo","companyName","\u4E70\u5165\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:60,slot:"operation"}],W={title:"\u901A\u7528\u8BA2\u5355\u5BF9\u8D26\u7BA1\u7406",columns:T,apis:{httpList:L}},c={formItems:[{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"}},{field:"supplierNo",type:"supplier-query"},{field:"companyNo",type:"business-query"},{field:"payNo",type:"input",placeholder:"\u5BF9\u8D26\u7F16\u53F7"},{field:"tag_status",type:"select",span:"4",placeholder:"\u6807\u7B7E\u72B6\u6001",options:k},{field:"status",type:"select",placeholder:"\u72B6\u6001",span:"4",options:d}]},U=v({__name:"index",setup(u){const e="currentcyOrderRecord",{push:t}=b(),{hasPermissionWithCode:m}=x(e),h={pageSearchHook:()=>w(void 0,void 0,c)},F={content:{preview:({payNo:r})=>t("/InvoiceSales/currentcyOrderRecordDetail?id="+r)}};return(r,s)=>{const f=a("ElButton"),B=a("PageContainer"),_=a("PageAuth");return p(),l(_,{pageName:e},{default:n(()=>[D(B,{hooks:h,events:F,contentConfig:o(W),"search-config":o(c)},{content_header:n(()=>[o(m)("002")?(p(),l(f,{key:0,type:"primary",onClick:s[0]||(s[0]=V=>o(t)("/InvoiceSales/currentcyOrderRecordDetail"))},{default:n(()=>[N("\u6DFB\u52A0")]),_:1})):P("v-if",!0)]),_:1},8,["contentConfig","search-config"])]),_:1})}}});var H=g(U,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/currentcyOrderRecord/index.vue"]]);export{H as default};