1 |
- import{aj as L,aF as K,_ as Z,d as $,A as G,E as g,b8 as H,aZ as J,ai as M,x as B,o as d,c as Q,y as u,K as o,b as X,u as e,a_ as Y,N as f,a as _,a$ as uu,W as s,T as x,R as S,b0 as eu}from"./index.1417328f.js";import{u as h,w as N}from"./xlsx.ed122d16.js";import{u as ou}from"./use-page-search.7e7b4728.js";import tu from"./index.18ed087e.js";import lu from"./index.dcff53ec.js";import{e as au,f as iu}from"./configs.511ce139.js";import{c as nu,d as su}from"./index.644f3a37.js";import{a as R}from"./tragelog.5720fe1a.js";import{h as ru}from"./export.0c2421ad.js";import{x as pu,a as du}from"./status.727086c1.js";import"./execl-upload.2ed330c3.js";const P={formItems:[{field:"tradNo",type:"input",placeholder:"\u8D44\u91D1\u7F16\u53F7"},{field:"status",type:"select",placeholder:"\u8BA4\u9886\u72B6\u6001",options:au},{type:"input",field:"bank",placeholder:"\u4EA4\u6613\u94F6\u884C"},{type:"input",field:"name",placeholder:"\u4ED8\u6B3E\u5355\u4F4D\u540D\u79F0"},{type:"range",field:"gold",otherOptions:{startProp:"total_lower",endProp:"total_upper",startPlaceholder:"\u6536\u5165\u8D77\u59CB\u91D1\u989D",endPlaceholder:"\u6536\u5165\u7ED3\u675F\u91D1\u989D"}},{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u4EA4\u6613\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u4EA4\u6613\u7ED3\u675F\u65F6\u95F4"}}]},cu=[{type:"expand",slot:"expand",fixed:"left"},{label:"\u8D44\u91D1\u7F16\u53F7",prop:"tradNo",fixed:"left",width:140},{label:"\u72B6\u6001",prop:"status",width:100,cellRenderer:({row:b,props:D})=>L(K,{size:D.size},{default:()=>{var F;return((F=(b.logNo?R:iu).find(E=>String(b.status)===String(E.value)))==null?void 0:F.label)||"--"}})},{label:"\u6536\u5165\u91D1\u989D",prop:"total_fee",width:120},{label:"\u672A\u8BA4\u9886\u91D1\u989D",prop:"balance",width:120},{label:"\u5DF2\u8BA4\u9886\u91D1\u989D",prop:"used_fee",width:120},{label:"\u4EA4\u6613\u7528\u9014",prop:"trade_used",width:120},{label:"\u4EA4\u6613\u65F6\u95F4",prop:"trade_time",width:140},{label:"\u4ED8\u6B3E\u5355\u4F4D\u540D\u79F0",prop:"trade_out",width:160},{label:"\u4ED8\u6B3E\u5355\u4F4D\u8D26\u53F7",prop:"trade_account",width:160},{label:"\u6536\u6B3E\u516C\u53F8\u8D26\u6237",prop:"trade_in_account",width:145},{label:"\u4EA4\u6613\u884C\u540D",prop:"trade_bank",width:160},{label:"\u6536\u6B3E\u516C\u53F8\u7F16\u53F7",prop:"companyNo",width:145},{label:"\u6536\u6B3E\u516C\u53F8\u540D\u79F0",prop:"companyName",width:145},{label:"\u8D44\u91D1\u5BFC\u5165\u65F6\u95F4",prop:"addtime",width:140},{label:"\u64CD\u4F5C",fixed:"right",width:60,slot:"operation"}],fu={title:"\u8D44\u91D1\u8BA4\u9886\u7BA1\u7406",columns:cu,isTree:!0,apis:{httpList:nu}},_u={\u6536\u6B3E\u65B9\u516C\u53F8\u7F16\u53F7:"",\u6536\u6B3E\u65B9\u516C\u53F8\u540D\u79F0:"",\u6536\u6B3E\u65B9\u8D26\u6237:"",\u4EA4\u6613\u65F6\u95F4:"",\u6536\u5165\u91D1\u989D:"",\u8D26\u53F7\u4F59\u989D:"",\u4EA4\u6613\u884C\u540D:"",\u5BF9\u65B9\u7701\u5E02:"",\u5BF9\u65B9\u8D26\u53F7:"",\u5BF9\u65B9\u6237\u540D:"",\u4EA4\u6613\u7528\u9014:""},hu={\u6536\u6B3E\u65B9\u516C\u53F8\u7F16\u53F7:"",\u6536\u6B3E\u65B9\u516C\u53F8\u540D\u79F0:"",\u8D44\u91D1\u7F16\u53F7:"",\u8BA2\u5355\u7F16\u53F7:"",\u8BA4\u9886\u8D44\u91D1:""};const Fu={class:"main role"},mu={"w-full":""},Bu=s(" \u8D44\u91D1\u8BA4\u9886\u6570\u636E\u5BFC\u51FA "),Du=s("\u4E0B\u8F7D\u8D44\u91D1\u5BFC\u5165\u6A21\u677F "),wu=s("\u6279\u91CF\u5BFC\u5165\u5BA2\u6237\u4ED8\u6B3E\u8D44\u91D1\u6570\u636E "),Cu=s("\u4E0B\u8F7D\u8BA2\u5355\u8BA4\u6B3E\u5BFC\u5165\u6A21\u677F "),bu=s("\u6279\u91CF\u5BFC\u5165\u8BA2\u5355\u8BA4\u6B3E\u6570\u636E "),Au=$({__name:"index",setup(b){const{push:D}=G(),A=g(null),F=g(null),E="capitalClaim",{run:T}=H({success:()=>v.value.onSearch()}),{hasPermissionWithCode:c,permissions:U}=J(E),w=g(!1),{isSuperUser:C}=M(),{pageContentRef:v,handleResetClick:k,handleSearchClick:I}=ou(void 0,void 0,P),O=i=>T(su(i));function W(){const i=h.book_new(),l=h.json_to_sheet([_u]);h.book_append_sheet(i,l,"sheet"),N(i,"\u8D44\u91D1\u8BA4\u9886\u6A21\u677F.xlsx",{bookType:"xlsx"})}function q(){const i=h.book_new(),l=h.json_to_sheet([hu]);h.book_append_sheet(i,l,"sheet"),N(i,"\u8BA2\u5355\u8BA4\u6B3E\u5BFC\u5165\u6A21\u677F.xlsx",{bookType:"xlsx"})}async function j(){await ru({url:"/ope",name:"\u8D44\u91D1\u8BA4\u9886\u6570\u636E\u8868",onStart:()=>w.value=!0,onSuccess:()=>w.value=!1,onFail:()=>w.value=!1,params:{...v.value.getBasicParams()}})}return(i,l)=>{const r=B("el-button"),t=B("el-table-column"),y=B("el-tag"),V=B("el-popconfirm"),z=B("el-table");return d(),Q("div",Fu,[u(eu,{"is-show":e(c)("001")},{default:o(()=>[X("div",mu,[u(e(Y),{"form-config":e(P),onSearchBtnClick:e(I),onResetBtnClick:e(k)},{action:o(()=>[u(r,{loading:w.value,onClick:l[0]||(l[0]=()=>j())},{default:o(()=>[Bu]),_:1},8,["loading"]),!e(C)&&e(c)("029")?(d(),f(r,{key:0,onClick:W},{default:o(()=>[Du]),_:1})):_("v-if",!0),!e(C)&&e(c)("030")?(d(),f(r,{key:1,type:"primary",onClick:l[1]||(l[1]=()=>A.value.onDisplay())},{default:o(()=>[wu]),_:1})):_("v-if",!0),!e(C)&&e(c)("034")?(d(),f(r,{key:2,onClick:q},{default:o(()=>[Cu]),_:1})):_("v-if",!0),!e(C)&&e(c)("035")?(d(),f(r,{key:3,type:"primary",onClick:l[2]||(l[2]=()=>F.value.onDisplay())},{default:o(()=>[bu]),_:1})):_("v-if",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),u(e(uu),{ref_key:"pageContentRef",ref:v,"content-config":e(fu),powers:e(U),onPreviewBtnClick:l[3]||(l[3]=p=>e(D)("/InvoiceSales/claimDetail?id="+p.tradNo+"&back=capitalClaim"))},{expand:o(p=>[p.child.length>0?(d(),f(z,{key:0,style:{width:"100%",display:"inline-block !important"},size:"small",data:p.child,border:""},{default:o(()=>[u(t,{label:"\u8D44\u91D1\u8BA4\u9886\u7F16\u53F7",prop:"logNo",width:"188",fixed:"left","show-overflow-tooltip":""}),u(t,{label:"\u8BA4\u9886\u72B6\u6001",prop:"status",width:"100","show-overflow-tooltip":""},{default:o(({$index:a})=>[u(y,null,{default:o(()=>{var n;return[s(x(((n=e(R).find(m=>m.value===p.child[a].status))==null?void 0:n.label)||"--"),1)]}),_:2},1024)]),_:2},1024),u(t,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"orderCode",width:"160","show-overflow-tooltip":""}),u(t,{label:"\u9500\u552E\u4E3B\u5355\u53F7",prop:"cxCode",width:"160","show-overflow-tooltip":""}),u(t,{label:"\u8BA2\u5355\u6765\u6E90",prop:"qrdSource",width:"90","show-overflow-tooltip":""},{default:o(({$index:a})=>[u(y,null,{default:o(()=>{var n;return[s(x((n=e(pu).find(m=>m.value===p.child[a].qrdSource))==null?void 0:n.label),1)]}),_:2},1024)]),_:2},1024),u(t,{label:"\u5E73\u53F0\u5355\u53F7",prop:"poCode",width:"180","show-overflow-tooltip":""}),u(t,{label:"\u5546\u54C1\u7F16\u53F7",prop:"goodNo",width:"160","show-overflow-tooltip":""}),u(t,{label:"\u5546\u54C1\u6765\u6E90",prop:"qrdType",width:"90","show-overflow-tooltip":""},{default:o(({$index:a})=>[u(y,null,{default:o(()=>{var n;return[s(x((n=e(du).find(m=>m.value===p.child[a].qrdType))==null?void 0:n.label),1)]}),_:2},1024)]),_:2},1024),u(t,{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",minWidth:"180","show-overflow-tooltip":""}),u(t,{label:"\u4F01\u4E1A\u5BA2\u6237\u7F16\u53F7",prop:"customerNo",width:"160","show-overflow-tooltip":""}),u(t,{label:"\u4F01\u4E1A\u5BA2\u6237\u540D\u79F0",prop:"customerName",minWidth:"180","show-overflow-tooltip":""}),u(t,{label:"\u8BA2\u5355\u521B\u5EFA\u4EBA",prop:"ownerName",width:"80","show-overflow-tooltip":""}),u(t,{label:"\u8BA4\u9886\u4EBA",prop:"apply_name",width:"80","show-overflow-tooltip":""}),u(t,{label:"\u8BA4\u9886\u65F6\u95F4",prop:"addtime",width:"145","show-overflow-tooltip":""}),u(t,{fixed:"right",label:"\u64CD\u4F5C",width:"60px"},{default:o(({row:a})=>[u(r,{icon:e(S)("eye-view"),onClick:()=>e(D)("/InvoiceSales/capitalDetail?id="+a.logNo),type:"primary",link:""},null,8,["icon","onClick"]),e(c)("009")&&String(a.status)==="1"?(d(),f(V,{key:0,placement:"top",title:"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u8D44\u91D1\u8BA4\u9886?","on-confirm":()=>O({logNo:a.logNo})},{reference:o(()=>[u(r,{icon:e(S)("refresh-right"),type:"primary",link:""},null,8,["icon"])]),_:2},1032,["on-confirm"])):_("v-if",!0)]),_:2},1024)]),_:2},1032,["data"])):_("v-if",!0)]),_:1},8,["content-config","powers"])])]),_:1},8,["is-show"]),u(tu,{ref_key:"execlUploadRef",ref:A,onOnSuccess:e(k)},null,8,["onOnSuccess"]),u(lu,{ref_key:"execlCapitalUploadRef",ref:F,onOnSuccess:e(k)},null,8,["onOnSuccess"])])}}});var Uu=Z(Au,[["__scopeId","data-v-a768f3c6"],["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/InvoiceSales/capitalClaim/index.vue"]]);export{Uu as default};
|